@ckeditor/ckeditor5-track-changes 47.7.1 → 47.7.2

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 (230) 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 +26 -26
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/ai.js +1 -1
  158. package/src/integrations/aiassistant.js +1 -1
  159. package/src/integrations/aiquickactions.js +1 -1
  160. package/src/integrations/alignment.js +1 -1
  161. package/src/integrations/basicstyles.js +1 -1
  162. package/src/integrations/blockquote.js +1 -1
  163. package/src/integrations/bookmark.js +1 -1
  164. package/src/integrations/casechange.js +1 -1
  165. package/src/integrations/ckbox.js +1 -1
  166. package/src/integrations/codeblock.js +1 -1
  167. package/src/integrations/comments.js +1 -1
  168. package/src/integrations/deletecommand.js +1 -1
  169. package/src/integrations/emoji.js +1 -1
  170. package/src/integrations/entercommand.js +1 -1
  171. package/src/integrations/findandreplace.js +1 -1
  172. package/src/integrations/font.js +1 -1
  173. package/src/integrations/footnotes.js +1 -1
  174. package/src/integrations/formatpainter.js +1 -1
  175. package/src/integrations/heading.js +1 -1
  176. package/src/integrations/highlight.js +1 -1
  177. package/src/integrations/horizontalline.js +1 -1
  178. package/src/integrations/htmlembed.js +1 -1
  179. package/src/integrations/image.js +1 -1
  180. package/src/integrations/imagereplace.js +1 -1
  181. package/src/integrations/imagestyle.js +1 -1
  182. package/src/integrations/importword.js +1 -1
  183. package/src/integrations/indent.js +1 -1
  184. package/src/integrations/inputcommand.js +1 -1
  185. package/src/integrations/legacylist.js +1 -1
  186. package/src/integrations/legacylistproperties.js +1 -1
  187. package/src/integrations/lineheight.js +1 -1
  188. package/src/integrations/link.js +1 -1
  189. package/src/integrations/list.js +1 -1
  190. package/src/integrations/listproperties.js +1 -1
  191. package/src/integrations/mediaembed.js +1 -1
  192. package/src/integrations/mention.js +1 -1
  193. package/src/integrations/mergefields.js +1 -1
  194. package/src/integrations/multilevellist.js +1 -1
  195. package/src/integrations/pagebreak.js +1 -1
  196. package/src/integrations/paragraph.js +1 -1
  197. package/src/integrations/removeformat.js +1 -1
  198. package/src/integrations/replacesourcecommand.js +1 -1
  199. package/src/integrations/restrictededitingmode.js +1 -1
  200. package/src/integrations/shiftentercommand.js +1 -1
  201. package/src/integrations/standardeditingmode.js +1 -1
  202. package/src/integrations/style.js +1 -1
  203. package/src/integrations/table.js +1 -1
  204. package/src/integrations/tablecaption.js +1 -1
  205. package/src/integrations/tableclipboard.js +2 -2
  206. package/src/integrations/tablecolumnresize.js +1 -1
  207. package/src/integrations/tableheadings.js +1 -1
  208. package/src/integrations/tablelayout.js +1 -1
  209. package/src/integrations/tablemergesplit.js +1 -1
  210. package/src/integrations/tableofcontents.js +1 -1
  211. package/src/integrations/tableproperties.js +1 -1
  212. package/src/integrations/template.js +1 -1
  213. package/src/integrations/title.js +1 -1
  214. package/src/integrations/undo.js +1 -1
  215. package/src/integrations/uploadcare.js +1 -1
  216. package/src/integrations/utils.js +1 -1
  217. package/src/suggestion.js +2 -2
  218. package/src/suggestiondescriptionfactory.js +1 -1
  219. package/src/trackchanges.js +1 -1
  220. package/src/trackchangesdata.js +1 -1
  221. package/src/trackchangesediting.js +1 -1
  222. package/src/trackchangespreview.js +1 -1
  223. package/src/trackchangesui.js +1 -1
  224. package/src/ui/suggestioncontroller.js +2 -2
  225. package/src/ui/view/basesuggestionthreadview.js +1 -1
  226. package/src/ui/view/suggestionthreadview.js +1 -1
  227. package/src/ui/view/suggestionview.js +1 -1
  228. package/src/ui/view/trackchangespreviewview.js +1 -1
  229. package/src/utils/common-translations.js +1 -1
  230. 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 _0x55c88c,Plugin as _0x1061bc,PendingActions as _0xf99456}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xfd9767,ObservableMixin as _0x4b9957,uid as _0x1b5ac0,priorities as _0x5bf0fe,insertToPriorityArray as _0x523eaf,logWarning as _0x3587d4,getEnvKeystrokeText as _0x2b647c,FocusTracker as _0x7dfc5d,KeystrokeHandler as _0x492a2e,Collection as _0x24c07d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1727c6,IconCancel as _0x152be5,IconTrackChanges as _0x23a792}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3280d2,View as _0x4f4180,ViewCollection as _0x2e2df7,FocusCycler as _0x2188cf,UIModel as _0x38a8a5,createDropdown as _0xd8592f,SplitButtonView as _0x36e4fd,addListToDropdown as _0x4ee6cb,MenuBarMenuView as _0x5a9577,MenuBarMenuListView as _0x12850b,ListSeparatorView as _0x428d40,MenuBarMenuListItemView as _0x345a8f,MenuBarMenuListItemButtonView as _0x5e5b2b,BodyCollection as _0x12fbee,Dialog as _0xc9d929}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x5ea722,Users as _0x14dd6c,DocumentCompare as _0x52e720,fixElementSuggestionRange as _0x5f2831,hashObject as _0x5620e2,splitSuggestionMarkerName as _0x3156a3,surroundingMarkersDetector as _0x596740,FOCUS_ANNOTATION_KEYSTROKE as _0x285271,AriaDescriptionView as _0x535ee5,setupThreadKeyboardNavigation as _0x3dfb16,trimHtml as _0x636b2e,UserView as _0x5452b8,LateFocusButtonView as _0x5a0786,getDateTimeFormatter as _0x435636,getAllMarkersDomElementsSorted as _0x3639d0,sanitizeEditorConfig as _0x1309ab}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x266e0d,ModelLiveRange as _0x321f06,ModelLivePosition as _0x25b560,ViewDowncastWriter as _0x38c2b3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x1334ec,set as _0xbd4a53,isEqual as _0x548ac7,unset as _0x1aef69,omit as Jt}from'es-toolkit/compat';import{Delete as _0x3ac569,Input as _0x14a973}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x561d33}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x25b63a}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x55c88c{['_enabledCommands'];constructor(_0x2d2b19,_0x4bca15){super(_0x2d2b19),this['_enabledCommands']=_0x4bca15,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 _0x1276e8 of this['editor']['commands']['commands']())_0x1276e8['affectsData']&&!this['_enabledCommands']['has'](_0x1276e8)&&_0x1276e8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x610c3f of this['editor']['commands']['commands']())_0x610c3f['affectsData']&&!this['_enabledCommands']['has'](_0x610c3f)&&_0x610c3f['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x55c88c{['_suggestions'];constructor(_0x57b519,_0x289792){super(_0x57b519),this['_suggestions']=_0x289792,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xcb84d2){const _0x4f8496=this['_suggestions']['get'](_0xcb84d2);if(!_0x4f8496)throw new _0xfd9767('track-changes-accept-suggestion-not-found',this);const _0x2a99ad=_0x4f8496['getRanges']();this['editor']['model']['canEditAt'](_0x2a99ad)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4f8496);}}class x extends _0x55c88c{['_suggestions'];constructor(_0x438dae,_0x190002){super(_0x438dae),this['_suggestions']=_0x190002,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2cba3d){const _0x56451a=this['_suggestions']['get'](_0x2cba3d);if(!_0x56451a)throw new _0xfd9767('track-changes-discard-suggestion-not-found',this);const _0x360eab=_0x56451a['getRanges']();this['editor']['model']['canEditAt'](_0x360eab)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x56451a);}}function ls(_0x454b12,_0x51cc43){let _0x5ad8cf='';return _0x5ad8cf+=_0x454b12['split']('*')['map']((_0x32bd2f,_0xf96758)=>_0xf96758%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x32bd2f)+'</span>':rn(_0x32bd2f))['join'](''),_0x51cc43&&(_0x5ad8cf+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x51cc43['value']+'\x22\x20title=\x22'+_0x51cc43['title']+'\x22></span>'),_0x5ad8cf;}function rn(_0x1c78eb){const _0x464b70=document['createElement']('span');return _0x464b70['innerText']=_0x1c78eb,_0x464b70['innerHTML'];}function ts(_0x5a76f9){return _0x5a76f9['sort']((_0x400373,_0x1939f5)=>'attribute'===_0x400373['type']&&'attribute'!==_0x1939f5['type']?-0x1:'attribute'!==_0x400373['type']&&'attribute'===_0x1939f5['type']?0x1:'deletion'==_0x400373['type']&&'deletion'!=_0x1939f5['type']?-0x1:'deletion'!=_0x400373['type']&&'deletion'==_0x1939f5['type']?0x1:0x0);}function to(_0x478644,_0x570607){let _0x3828eb,_0x2d0440=0x0;const _0x811a80=[],_0x17e142=_0x570607['schema'];for(;_0x2d0440<_0x478644['length'];){const _0x2fad79=_0x478644[_0x2d0440],_0xe792d4=_0x478644[_0x2d0440+0x1];_0x3828eb||(_0x3828eb=_0x570607['createPositionBefore'](_0x2fad79)),cn(_0x570607,_0x2fad79,_0xe792d4)||(_0x811a80['push'](_0x570607['createRange'](_0x3828eb,_0x17e142['isObject'](_0x2fad79)?_0x570607['createPositionAfter'](_0x2fad79):_0x570607['createPositionAt'](_0x2fad79,'end'))),_0x3828eb=null),_0x2d0440++;}return _0x811a80;}function cn(_0x31919e,_0x3d4df2,_0x3a0e76){if(!_0x3a0e76)return!0x1;const _0x4b2e94=_0x31919e['createPositionAfter'](_0x3d4df2),_0x144fe0=_0x31919e['createPositionBefore'](_0x3a0e76);return _0x4b2e94['isTouching'](_0x144fe0);}function rs(_0x4a9f4e,_0x1ab8d1,_0x425cf7){for(;_0x425cf7['length'];){const _0x5d097c=_0x425cf7['splice'](0x0,0x64);_0x4a9f4e['change'](()=>{for(const _0x234025 of _0x5d097c)_0x234025['isInContent']&&_0x1ab8d1['execute'](_0x234025['id']);});}}class M extends _0x55c88c{['_command'];['_suggestions'];constructor(_0x1ec17d,_0x18fb79,_0x447ca1){super(_0x1ec17d),this['_command']=_0x18fb79,this['_suggestions']=_0x447ca1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x873868=Array['from'](this['_suggestions']['values']())['some'](_0x1b7cd0=>_0x1b7cd0['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x873868;}['execute'](){const _0x89274b=ts(Array['from'](this['_suggestions']['values']()));for(const _0x577d63 of _0x89274b){const _0x499d21=_0x577d63['getRanges']();if(!this['editor']['model']['canEditAt'](_0x499d21))return;}rs(this['editor']['model'],this['_command'],_0x89274b);}}class R extends _0x55c88c{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4dbb88,_0x41e409,_0x21d0ba){super(_0x4dbb88),this['_command']=_0x41e409,this['_suggestions']=_0x21d0ba,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4f805c=this['editor']['model']['document']['selection'],_0xe0b3b2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x41b0bb,_0x4f43c9){const _0x513f9d=Array['from'](_0x41b0bb['getRanges']()),_0x5d95d6=new Set();for(const _0x28bfb5 of _0x4f43c9)if(_0x28bfb5['isInContent']){for(const _0xd820d9 of _0x513f9d)for(const _0x4434c7 of _0x28bfb5['getRanges']())(_0xd820d9['isIntersecting'](_0x4434c7)||_0x41b0bb['isCollapsed']&&!_0x28bfb5['isMultiRange']&&_0x28bfb5['next']&&_0x4434c7['end']['isTouching'](_0xd820d9['start']))&&_0x5d95d6['add'](_0x28bfb5);}return _0x5d95d6;}(_0x4f805c,_0xe0b3b2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5b5860=ts(Array['from'](this['_selectedSuggestions']));for(const _0x11606c of _0x5b5860){const _0x4909c3=_0x11606c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4909c3))return;}rs(this['editor']['model'],this['_command'],_0x5b5860);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x4b9957(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4766ea,_0x35e134){super(),this['id']=_0x35e134['id'],this['type']=_0x35e134['type'],this['subType']=_0x35e134['subType']||null,this['author']=_0x35e134['author'],this['creator']=_0x35e134['creator']||_0x35e134['author'],this['isExternal']=Boolean(_0x35e134['attributes']&&_0x35e134['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x35e134['originalSuggestionId']||null,this['_model']=_0x4766ea,this['_onAccept']=_0x35e134['onAccept'],this['_onDiscard']=_0x35e134['onDiscard'],this['_onAttributesChange']=_0x35e134['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x35e134['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 _0xf07ee3=this;for(;_0xf07ee3['previous'];)_0xf07ee3=_0xf07ee3['previous'];return _0xf07ee3;}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'](_0x5a3a8b){this['_markerNames']['add'](_0x5a3a8b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x109307=>this['_model']['markers']['get'](_0x109307))['filter'](_0x23e2d1=>_0x23e2d1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x261df0=>{for(const _0x3024d6 of this['getMarkers']())_0x261df0['removeMarker'](_0x3024d6);}),this['_markerNames']['clear']();}['removeMarker'](_0x3d35af){this['_model']['change'](_0x28b654=>{_0x28b654['removeMarker'](_0x3d35af);}),this['_markerNames']['delete'](_0x3d35af);}['addRange'](_0x1b6bc4){const _0x4e2741='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x4e2741),this['_model']['change'](_0x3b3a23=>{_0x3b3a23['addMarker'](_0x4e2741,{'range':_0x1b6bc4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4155fd){for(const _0x10e467 of this['getRanges']())if(_0x10e467['isIntersecting'](_0x4155fd))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x44c2ff=>_0x44c2ff['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2195d6,_0x5654b9)=>[..._0x2195d6,..._0x5654b9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x49373e=this['getRanges']();if(0x1!=_0x49373e['length'])return null;const _0x2e8492=_0x49373e[0x0],_0x4ee7c3=_0x2e8492['start']['nodeAfter'],_0xfdfb4a=_0x2e8492['end']['nodeBefore'];return _0x4ee7c3 instanceof _0x266e0d?_0x4ee7c3!=_0xfdfb4a?null:_0x4ee7c3: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 _0x2756e8=[];let _0x54e8ae=this['head'];for(;_0x54e8ae;)_0x2756e8['push'](_0x54e8ae),_0x54e8ae=_0x54e8ae['next'];return _0x2756e8;}['setAttribute'](_0x250ef5,_0x46ba52){const _0x2a03ce=_0x1334ec(this['attributes']);_0xbd4a53(_0x2a03ce,_0x250ef5,_0x46ba52),_0x548ac7(_0x2a03ce,this['attributes'])||(this['attributes']=_0x2a03ce,this['_onAttributesChange'](_0x2a03ce));}['removeAttribute'](_0x2e7f5d){const _0x1be4a5=_0x1334ec(this['attributes']);_0x1aef69(_0x1be4a5,_0x2e7f5d),_0x548ac7(_0x1be4a5,this['attributes'])||(this['attributes']=_0x1be4a5,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 _0x1b5ac0()['substr'](0x1,0x5);}}function o(_0x7b6de6,_0x39e10a,_0x3e506c){const _0x51d9c5=_0x7b6de6['t'],t=_0x7b6de6['t'];switch(_0x39e10a){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',_0x3e506c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3e506c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3e506c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3e506c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3e506c);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',_0x3e506c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3e506c);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',_0x3e506c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3e506c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3e506c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3e506c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3e506c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3e506c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3e506c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3e506c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3e506c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3e506c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3e506c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3e506c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3e506c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3e506c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3e506c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3e506c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3e506c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3e506c);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'},_0x3e506c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3e506c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3e506c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3e506c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3e506c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3e506c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3e506c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3e506c);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'},_0x3e506c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3e506c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3e506c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3e506c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3e506c);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x3e506c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3e506c);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'},_0x3e506c);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'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x3e506c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3e506c);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'},_0x3e506c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3e506c);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'},_0x3e506c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3e506c);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3e506c);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3e506c);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3e506c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3e506c);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'},_0x3e506c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3e506c);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 _0x51d9c5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3e506c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x51d9c5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3e506c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3e506c);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'},_0x3e506c);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'},_0x3e506c);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'},_0x3e506c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x39e10a;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x38611a,_0xba3e63){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x38611a,this['_locale']=_0xba3e63;}['getDescriptions'](_0xaeceed){const _0x1b7a4b=[],_0x2c745a=new Set(),_0x1a963a=new Set();for(let _0x2fdd10=0x0;_0x2fdd10<_0xaeceed['length'];_0x2fdd10++){const _0x143f5c=_0xaeceed[_0x2fdd10];if(!_0x143f5c['isInContent'])continue;const _0x13b226=this['_handleCustomCallbackDescription'](_0x143f5c);if(_0x13b226){if(null!=_0x143f5c['subType']){if(_0x2c745a['has'](_0x143f5c['subType']))continue;_0x2c745a['add'](_0x143f5c['subType']);}_0x1b7a4b['push'](_0x13b226);}else{if('attribute'==_0x143f5c['type']){const _0x5cec0c=_0x143f5c['data']['key'];if(_0x1a963a['has'](_0x5cec0c))continue;_0x1a963a['add'](_0x143f5c['data']['key']),_0x5cec0c==m?this['_handleRenameSuggestionDescription'](_0x1b7a4b,_0x143f5c):this['_handleAttributeSuggestionDescription'](_0x1b7a4b,_0x143f5c);continue;}'insertion'!=_0x143f5c['type']&&'deletion'!=_0x143f5c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1b7a4b,_0x143f5c,_0xaeceed[_0x2fdd10+0x1]);}}return this['_resolveDescriptionItems'](_0x1b7a4b);}['registerDescriptionCallback'](_0xf3f46b){this['_customCallbacks']['push'](_0xf3f46b);}['registerElementLabel'](_0x474b94,_0xe2b997,_0x597781=_0x5bf0fe['normal']){'function'==typeof _0x474b94?_0x523eaf(this['_itemLabelsCallbacks'],{'matchingCallback':_0x474b94,'label':_0xe2b997,'priority':_0x597781}):this['_itemLabels']['set'](_0x474b94,_0xe2b997);}['registerAttributeLabel'](_0x300ad4,_0x4a6e0a){this['_attributeLabels']['set'](_0x300ad4,_0x4a6e0a);}['getItemLabel'](_0x1b8e57,_0x1707a6=0x1){let _0x1664d3;for(const _0x23f096 of this['_itemLabelsCallbacks'])if(_0x23f096['matchingCallback'](_0x1b8e57)){_0x1664d3=_0x23f096['label'];break;}return _0x1664d3||(_0x1664d3=this['_itemLabels']['get'](_0x1b8e57['name'])),_0x1664d3?_0x1664d3(_0x1707a6):0x1!==_0x1707a6?_0x1707a6+'\x20'+_0x1b8e57['name']+'s':''+_0x1b8e57['name'];}['_addDescriptionItems'](_0x2fe293,_0x161b0e){const _0x24b4c2=_0x161b0e['getFirstRange']()['getWalker'](),_0x399f52='insertion'==_0x161b0e['type']?'add':'remove';for(const _0x4bbc92 of _0x24b4c2){const _0x5af45f=_0x4bbc92['item'],_0x43ef17=_0x2fe293[_0x2fe293['length']-0x1];if(_0x5af45f['is']('$textProxy'))_0x43ef17&&_0x43ef17['type']['indexOf']('Container')>-0x1&&_0x2fe293['pop'](),_0x43ef17&&'text'==_0x43ef17['type']?_0x43ef17[_0x399f52]+=_0x5af45f['data']:_0x2fe293['push']({'type':'text','add':'add'==_0x399f52?_0x5af45f['data']:'','remove':'remove'==_0x399f52?_0x5af45f['data']:''});else{if(this['_schema']['isObject'](_0x5af45f)){const _0x4a203e=_0x5af45f;if(_0x43ef17&&_0x43ef17['type']['indexOf']('Container')>-0x1&&_0x2fe293['pop'](),'elementEnd'==_0x4bbc92['type'])continue;_0x43ef17&&_0x43ef17['type']==_0x399f52+'Object'&&_0x43ef17['element']['name']==_0x4a203e['name']?_0x43ef17['quantity']++:_0x2fe293['push']({'type':_0x399f52+'Object','element':_0x4a203e,'quantity':0x1}),_0x24b4c2['skip'](_0x105a5c=>!('elementEnd'==_0x105a5c['type']&&_0x105a5c['item']==_0x5af45f));}else{if(this['_schema']['checkChild'](_0x5af45f,'$text')||_0x5af45f['is']('element','softBreak')){const _0x5286e6=_0x5af45f;if('add'==_0x399f52&&'elementStart'==_0x4bbc92['type']||'remove'==_0x399f52&&'elementEnd'==_0x4bbc92['type'])continue;if(_0x43ef17&&-0x1==_0x43ef17['type']['indexOf']('Container')){'text'==_0x43ef17['type']&&(_0x43ef17[_0x399f52]+='\x0a');continue;}let _0x4ebb56;if(_0x4ebb56='add'==_0x399f52?_0x5286e6['nextSibling']&&!this['_schema']['isObject'](_0x5286e6['nextSibling'])?_0x5286e6['nextSibling']:null:_0x5286e6['previousSibling']&&!this['_schema']['isObject'](_0x5286e6['previousSibling'])?_0x5286e6['previousSibling']:null,_0x5286e6['isEmpty']||_0x4ebb56&&_0x4ebb56['isEmpty']){const _0x3109d9=_0x4ebb56&&_0x4ebb56['isEmpty']?_0x4ebb56:_0x5286e6;_0x43ef17&&_0x43ef17['type']==_0x399f52+'EmptyContainer'&&_0x43ef17['element']['name']==_0x3109d9['name']?_0x43ef17['quantity']++:_0x2fe293['push']({'type':_0x399f52+'EmptyContainer','element':_0x3109d9,'quantity':0x1});}else _0x2fe293['push']({'type':_0x399f52+'Container','element':_0x5286e6});}}}}}['_resolveDescriptionItems'](_0x4124c5){const _0x2cacd1=this['_locale'],_0x4d2705=[],_0x25e54c=[],_0x2c6f4b=[];for(const _0x54d407 of _0x4124c5)switch(_0x54d407['type']){case'text':if(_0x54d407['add']=_0x54d407['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x54d407['remove']=_0x54d407['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x54d407['add']&&''!=_0x54d407['remove']){_0x4d2705['push']({'type':'replace','content':o(_0x2cacd1,'REPLACE_TEXT',['\x22'+_0x54d407['remove']+'\x22','\x22'+_0x54d407['add']+'\x22'])});continue;}if(null!=_0x54d407['add']['match'](/^ +$/)){_0x4d2705['push']({'type':'insertion','content':o(_0x2cacd1,'*Insert:*\x20%0',o(_0x2cacd1,'ELEMENT_SPACE',_0x54d407['add']['length']))});continue;}if(null!=_0x54d407['remove']['match'](/^ +$/)){_0x4d2705['push']({'type':'deletion','content':o(_0x2cacd1,'*Remove:*\x20%0',o(_0x2cacd1,'ELEMENT_SPACE',_0x54d407['remove']['length']))});continue;}if(''!=_0x54d407['add']){_0x4d2705['push']({'type':'insertion','content':o(_0x2cacd1,'*Insert:*\x20%0','\x22'+_0x54d407['add']+'\x22')});continue;}_0x4d2705['push']({'type':'deletion','content':o(_0x2cacd1,'*Remove:*\x20%0','\x22'+_0x54d407['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4d2705['push']({'type':'insertion','content':o(_0x2cacd1,'*Insert:*\x20%0',this['getItemLabel'](_0x54d407['element'],_0x54d407['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4d2705['push']({'type':'deletion','content':o(_0x2cacd1,'*Remove:*\x20%0',this['getItemLabel'](_0x54d407['element'],_0x54d407['quantity']))});continue;case'addContainer':_0x4d2705['push']({'type':'insertion','content':o(_0x2cacd1,'*Split:*\x20%0',this['getItemLabel'](_0x54d407['element'],_0x54d407['quantity']))});continue;case'removeContainer':_0x4d2705['push']({'type':'deletion','content':o(_0x2cacd1,'*Merge:*\x20%0',this['getItemLabel'](_0x54d407['element'],_0x54d407['quantity']))});continue;case'addFormat':_0x25e54c['push'](_0x54d407['key']);continue;case'removeFormat':_0x2c6f4b['push'](_0x54d407['key']);continue;default:_0x4d2705['push'](_0x54d407);}if(_0x25e54c['length']){const _0x14375e=_0x25e54c['map'](_0x37303d=>this['_attributeLabels']['has'](_0x37303d)?this['_attributeLabels']['get'](_0x37303d):_0x37303d)['join'](',\x20');_0x4d2705['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x14375e)});}if(_0x2c6f4b['length']){const _0x2710be=_0x2c6f4b['map'](_0x187d53=>this['_attributeLabels']['has'](_0x187d53)?this['_attributeLabels']['get'](_0x187d53):_0x187d53)['join'](',\x20');_0x4d2705['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2710be)});}return _0x4d2705;}['_handleCustomCallbackDescription'](_0x583e1a){for(const _0x18308b of this['_customCallbacks']){const _0x547320=_0x18308b(_0x583e1a);if(_0x547320&&'type'in _0x547320)return _0x547320;}}['_handleAttributeSuggestionDescription'](_0x25a273,_0x26d085){const _0x5ae158=_0x26d085['data'],_0x1d6c42=void 0x0===_0x5ae158['newValue']?'removeFormat':'addFormat';_0x25a273['push']({'type':_0x1d6c42,'key':_0x5ae158['key']});}['_handleRenameSuggestionDescription'](_0x494b12,_0x20f47a){_0x494b12['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x20f47a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x10cadd,_0x167927,_0x3acb20){if(this['_addDescriptionItems'](_0x10cadd,_0x167927),_0x3acb20&&_0x3acb20['getFirstRange']()&&!_0x167927['getFirstRange']()['end']['isEqual'](_0x3acb20['getFirstRange']()['start'])){const _0x3cf295=_0x10cadd[_0x10cadd['length']-0x1],_0x5f4ee9='insertion'==_0x167927['type']?'add':'remove';_0x3cf295&&'text'==_0x3cf295['type']&&(_0x3cf295[_0x5f4ee9]+='\x0a');}}}class U extends _0x1061bc{['afterInit'](){const _0x594880=this['editor'],_0x241e54=_0x594880['plugins']['get']('TrackChangesEditing');_0x594880['commands']['get']('showAIAssistant')&&_0x241e54['enableCommand']('showAIAssistant');}}class V extends _0x1061bc{['afterInit'](){const _0x46004e=this['editor'],_0xca1fd6=_0x46004e['plugins']['get']('TrackChangesEditing');_0x46004e['commands']['get']('toggleAi')&&_0xca1fd6['enableCommand']('toggleAi');}}class F extends _0x1061bc{['afterInit'](){const _0x88b6a9=this['editor'],_0x2e9070=_0x88b6a9['plugins']['get']('TrackChangesEditing');_0x88b6a9['commands']['get']('aiQuickAction')&&_0x2e9070['enableCommand']('aiQuickAction');}}class G extends _0x1061bc{['afterInit'](){const _0x2413a5=this['editor'],_0x34d4eb=_0x2413a5['locale'];if(!_0x2413a5['plugins']['has']('AlignmentEditing'))return;const _0x2ed402=_0x2413a5['plugins']['get']('TrackChangesEditing');_0x2ed402['enableDefaultAttributesIntegration']('alignment'),_0x2ed402['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x34d4eb,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6b1961=this['editor'],_0x3c41e0=_0x6b1961['locale'];_0x6b1961['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x696d09=>{if('formatBlock'!=_0x696d09['type'])return;const {data:_0x459fa8}=_0x696d09;if(_0x459fa8&&'alignment'==_0x459fa8['commandName']){const _0x43fdb0=_0x459fa8['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3c41e0,'*Format:*\x20%0',function(_0x46942c){switch(_0x46942c){case'left':return o(_0x3c41e0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3c41e0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3c41e0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3c41e0,'FORMAT_JUSTIFY_TEXT');}}(_0x43fdb0))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x1061bc{['afterInit'](){const _0x5272aa=this['editor'],_0x430c53=_0x5272aa['plugins']['get']('TrackChangesEditing'),_0x5921a9=_0x5272aa['locale'];for(const _0x5c0841 of ti){if(!_0x5272aa['plugins']['has'](_0x5c0841))continue;const _0x30f1b5=_0x5c0841['slice'](0x0,-0x7)['toLowerCase'](),_0x2690d5='FORMAT_'+_0x30f1b5['toUpperCase']();_0x430c53['enableDefaultAttributesIntegration'](_0x30f1b5),_0x430c53['descriptionFactory']['registerAttributeLabel'](_0x30f1b5,o(_0x5921a9,_0x2690d5));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e6a75=this['editor'],_0xe936c4=_0x2e6a75['locale'],_0x5b095=_0x2e6a75['plugins']['get']('TrackChangesEditing');function _0x1290b8(_0x53d3a9,_0x4db68c){_0x5b095['descriptionFactory']['registerDescriptionCallback'](_0x338ba8=>{if('formatInline'!=_0x338ba8['type'])return;const {data:_0x3c73e7}=_0x338ba8;return _0x3c73e7&&_0x3c73e7['commandName']===_0x53d3a9?_0x3c73e7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe936c4,'*Format:*\x20%0',_0x4db68c)}:{'type':'format','content':o(_0xe936c4,'*Remove\x20format:*\x20%0',_0x4db68c)}:void 0x0;});}_0x1290b8('bold',o(_0xe936c4,'FORMAT_BOLD')),_0x1290b8('italic',o(_0xe936c4,'FORMAT_ITALIC')),_0x1290b8('underline',o(_0xe936c4,'FORMAT_UNDERLINE')),_0x1290b8('code',o(_0xe936c4,'FORMAT_CODE')),_0x1290b8('strikethrough',o(_0xe936c4,'FORMAT_STRIKETHROUGH')),_0x1290b8('subscript',o(_0xe936c4,'FORMAT_SUBSCRIPT')),_0x1290b8('superscript',o(_0xe936c4,'FORMAT_SUPERSCRIPT'));}}class J extends _0x1061bc{['afterInit'](){const _0x43636e=this['editor'],_0x148f0e=_0x43636e['locale'];if(!_0x43636e['plugins']['has']('BlockQuoteEditing'))return;const _0x2d725a=_0x43636e['plugins']['get']('TrackChangesEditing'),_0x18421b=this['editor']['commands']['get']('blockQuote');_0x2d725a['enableCommand']('blockQuote',(_0xe1303b,_0x520aba={})=>{const _0x58d17a=this['editor']['model']['document']['selection'],_0x5456cd=_0x520aba&&void 0x0!==_0x520aba['forceValue']?_0x520aba['forceValue']:!_0x18421b['value'];let _0x30235a=[];if(_0x5456cd){const _0x592e2a=Array['from'](_0x58d17a['getSelectedBlocks']())['filter'](_0x427ef9=>oo(_0x427ef9)||function(_0x2cfd49,_0x12dbdc){const _0x32be3b=_0x12dbdc['checkChild'](_0x2cfd49['parent'],'blockQuote'),_0x16e5bc=_0x12dbdc['checkChild'](['$root','blockQuote'],_0x2cfd49);return _0x32be3b&&_0x16e5bc;}(_0x427ef9,this['editor']['model']['schema']));_0x30235a=to(_0x592e2a,_0x43636e['model']);}else{const _0x16bcf1=Array['from'](_0x58d17a['getSelectedBlocks']())['filter'](_0x3ea894=>oo(_0x3ea894));_0x30235a=to(_0x16bcf1,_0x43636e['model']);}_0x43636e['model']['change'](()=>{for(const _0x3bfa74 of _0x30235a)_0x2d725a['markBlockFormat'](_0x3bfa74,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5456cd}]});});}),_0x2d725a['descriptionFactory']['registerDescriptionCallback'](_0x4aa8c4=>{const {data:_0x54c467}=_0x4aa8c4;if(_0x54c467&&'blockQuote'==_0x54c467['commandName']){const _0x1a8314=o(_0x148f0e,'ELEMENT_BLOCK_QUOTE');return _0x54c467['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x148f0e,'*Set\x20format:*\x20%0',_0x1a8314)}:{'type':'format','content':o(_0x148f0e,'*Remove\x20format:*\x20%0',_0x1a8314)};}});}}function oo(_0x1f638c){return'blockQuote'==_0x1f638c['parent']['name'];}class q extends _0x1061bc{['afterInit'](){const _0x461cca=this['editor'],_0x391825=_0x461cca['locale'],_0x5af556=_0x461cca['plugins']['get']('TrackChangesEditing');_0x461cca['plugins']['has']('BookmarkEditing')&&(_0x5af556['enableCommand']('insertBookmark'),_0x5af556['enableDefaultAttributesIntegration']('updateBookmark'),_0x5af556['descriptionFactory']['registerDescriptionCallback'](_0x21ae13=>{if('insertion'!=_0x21ae13['type']&&'deletion'!=_0x21ae13['type']&&'attribute'!=_0x21ae13['type'])return;const _0x1278f3=_0x21ae13['getContainedElement']();if(null==_0x1278f3)return;if(!_0x1278f3['is']('element','bookmark'))return;const _0x224edf=_0x1278f3['getAttribute']('bookmarkId');if('insertion'==_0x21ae13['type'])return{'type':'insertion','content':o(_0x391825,'*Insert:*\x20%0','\x22'+_0x224edf+'\x22\x20'+o(_0x391825,'ELEMENT_BOOKMARK'))};if('deletion'==_0x21ae13['type'])return{'type':'deletion','content':o(_0x391825,'*Remove:*\x20%0','\x22'+_0x224edf+'\x22\x20'+o(_0x391825,'ELEMENT_BOOKMARK'))};const {data:_0x537a9f}=_0x21ae13;if(!_0x537a9f||'bookmarkId'!=_0x537a9f['key'])return;return{'type':'format','content':o(_0x391825,'*Set\x20bookmark:*\x20%0','\x22'+_0x537a9f['newValue']+'\x22')};}));}}class z extends _0x1061bc{['afterInit'](){const _0x3f27a4=this['editor'];_0x3f27a4['plugins']['has']('CaseChange')&&(_0x3f27a4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f27a4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f27a4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x1061bc{['afterInit'](){const _0x1bcbfa=this['editor'];_0x1bcbfa['commands']['get']('ckbox')&&_0x1bcbfa['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x1061bc{['afterInit'](){const _0x52b95e=this['editor'];if(!_0x52b95e['plugins']['has']('CodeBlock'))return;const _0x592686=_0x52b95e['plugins']['get']('TrackChangesEditing'),_0x53e929=_0x52b95e['locale'],_0x274129=_0x52b95e['config']['get']('codeBlock')['languages'],_0x4fc095=_0x52b95e['commands']['get']('codeBlock');_0x592686['enableCommand']('indentCodeBlock'),_0x592686['enableCommand']('outdentCodeBlock'),_0x592686['enableCommand']('codeBlock',(_0x17e5ad,_0x2d9d47={})=>{const _0x442773=_0x52b95e['model'],_0x3a91f8=_0x52b95e['model']['document']['selection'],_0x4c7475=_0x2d9d47&&void 0x0!==_0x2d9d47['forceValue']?_0x2d9d47['forceValue']:!_0x4fc095['value'];let _0x26eea3;_0x2d9d47['language']||(_0x2d9d47['language']=_0x274129[0x0]['language']),_0x26eea3=_0x4c7475?Array['from'](_0x3a91f8['getSelectedBlocks']())['filter'](_0x4ee146=>co(_0x4ee146)||function(_0x4a67ce,_0x80fde3){if(_0x4a67ce['is']('rootElement')||_0x80fde3['isLimit'](_0x4a67ce))return!0x1;return _0x80fde3['checkChild'](_0x4a67ce['parent'],'codeBlock');}(_0x4ee146,_0x442773['schema'])):Array['from'](_0x3a91f8['getSelectedBlocks']())['filter'](_0x28bca7=>co(_0x28bca7));const _0x2b679f=to(_0x26eea3,_0x442773);_0x442773['change'](()=>{for(const _0xee7a38 of _0x2b679f)_0x592686['markBlockFormat'](_0xee7a38,{'commandName':'codeBlock','commandParams':[{..._0x2d9d47,'forceValue':_0x4c7475}],'formatGroupId':'blockName'});});}),(_0x592686['descriptionFactory']['registerElementLabel']('codeBlock',_0x540dbd=>o(_0x53e929,'ELEMENT_CODE_BLOCK',_0x540dbd)),_0x592686['descriptionFactory']['registerDescriptionCallback'](_0x42404b=>{if('formatBlock'!=_0x42404b['type'])return;const _0x20afa4=_0x53e929['t'],{data:_0x398606}=_0x42404b;if(!_0x398606||'codeBlock'!=_0x398606['commandName'])return;const _0x1c2378=_0x398606['commandParams'][0x0]['language'],_0x13a598=_0x20afa4(_0x274129['find'](_0x270550=>_0x270550['language']===_0x1c2378)['label'])['toLowerCase']();return _0x398606['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53e929,'*Set\x20format:*\x20%0',o(_0x53e929,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x13a598+')')}:{'type':'format','content':o(_0x53e929,'*Remove\x20format:*\x20%0',o(_0x53e929,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xaee235){return'codeBlock'==_0xaee235['name'];}class H extends _0x1061bc{['afterInit'](){const _0x4dc508=this['editor'];if(!_0x4dc508['plugins']['has']('CommentsEditing'))return;_0x4dc508['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x1061bc{static get['requires'](){return[_0x3ac569];}['init'](){const _0x1bf0d7=this['editor'],_0x167325=_0x1bf0d7['plugins']['get']('TrackChangesEditing');_0x167325['enableCommand']('delete');const _0x4f1a3e=_0x1bf0d7['commands']['get']('deleteForward');_0x167325['enableCommand']('deleteForward',(_0x3dd399,_0x1c4c0d={})=>{const _0x3571eb=_0x1bf0d7['model']['createSelection'](_0x1bf0d7['model']['document']['selection']);_0x3571eb['isCollapsed']&&_0x1bf0d7['model']['modifySelection'](_0x3571eb,{'direction':'forward','unit':_0x1c4c0d['unit']});const _0x4e5d03=_0x3571eb['getFirstRange'](),_0x326587=_0x321f06['fromRange'](_0x4e5d03);let _0x3f3bae;_0x3dd399(_0x1c4c0d),_0x3f3bae='$graveyard'==_0x326587['root']['rootName']?_0x1bf0d7['model']['createRange'](_0x4e5d03['start']):_0x1bf0d7['model']['createRange'](_0x326587['start'],_0x326587['end']),_0x326587['detach'](),_0x1bf0d7['model']['enqueueChange'](_0x4f1a3e['buffer']['batch'],_0x5902ea=>{_0x4f1a3e['buffer']['lock'](),_0x5902ea['setSelection'](_0x5902ea['createRange'](_0x3f3bae['end'])),_0x4f1a3e['buffer']['unlock']();});});}}class X extends _0x1061bc{['afterInit'](){const _0x32d5c9=this['editor'];if(!_0x32d5c9['plugins']['has']('ListEditing'))return;const _0x37cfa6=_0x32d5c9['locale'],_0x2d68a5=_0x32d5c9['plugins']['get']('TrackChangesEditing'),_0x3be88a=_0x32d5c9['plugins']['has']('TodoListEditing'),_0x52efe2=!!_0x32d5c9['config']['get']('list.multiBlock');function _0x3070fc(_0xa559cb){return{'type':'format','content':''+o(_0x37cfa6,'*Set\x20format:*\x20%0',_0xa559cb)};}function _0x2476f4(_0x27c711){return{'type':'format','content':''+o(_0x37cfa6,'*Remove\x20format:*\x20%0',_0x27c711)};}_0x2d68a5['enableDefaultAttributesIntegration']('numberedList'),_0x2d68a5['enableDefaultAttributesIntegration']('bulletedList'),_0x2d68a5['enableDefaultAttributesIntegration']('customNumberedList'),_0x2d68a5['enableDefaultAttributesIntegration']('customBulletedList'),_0x2d68a5['enableDefaultAttributesIntegration']('indentList'),_0x2d68a5['enableDefaultAttributesIntegration']('outdentList'),_0x2d68a5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2d68a5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x52efe2&&(_0x2d68a5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2d68a5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3be88a&&(_0x2d68a5['enableDefaultAttributesIntegration']('todoList'),_0x2d68a5['enableDefaultAttributesIntegration']('checkTodoList'),_0x2d68a5['descriptionFactory']['registerDescriptionCallback'](_0x29e9e6=>{const {data:_0xdaaf36}=_0x29e9e6;if(_0xdaaf36&&'todoListChecked'==_0xdaaf36['key'])return{'type':'format','content':_0xdaaf36['newValue']?o(_0x37cfa6,'*Check\x20item*'):o(_0x37cfa6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2a1c69=>{if(_0x2a1c69['batch']['isUndo'])return!0x1;let _0x1fa08a=!0x1;const _0x220db8=_0x2d68a5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a95e4=>'todoListChecked'===_0x2d68a5['_getAttributeKey'](_0x2a95e4));for(const _0x22b251 of _0x220db8){'todo'!=_0x22b251['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2d68a5['_findSuggestions'](_0x22b251['getFirstRange'](),'attribute')['find'](_0x482dd2=>'listType'===_0x2d68a5['_getAttributeKey'](_0x482dd2['suggestion']))||(_0x2a1c69['removeMarker'](_0x22b251['getFirstMarker']()),_0x1fa08a=!0x0));}return _0x1fa08a;})),_0x2d68a5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x37cfa6,'FORMAT_INDENT'));const _0x2af562={'type':'format','content':''};_0x2d68a5['descriptionFactory']['registerDescriptionCallback'](_0x4244f0=>{const {data:_0x36249b}=_0x4244f0;if(!_0x36249b||'listType'!=_0x36249b['key'])return;let _0x356b97=_0x4244f0['head'];for(;_0x356b97;){if(_0x356b97['data']&&(('listStyle'==_0x356b97['data']['key']||'listMarkerStyle'==_0x356b97['data']['key'])&&(_0x356b97['data']['newValue']&&'default'!=_0x356b97['data']['newValue']||'default'!=_0x356b97['data']['oldValue']&&!_0x36249b['newValue'])||!_0x52efe2&&_0x356b97['data']['key']==m))return _0x2af562;_0x356b97=_0x356b97['next'];}if(null==_0x36249b['newValue'])switch(_0x36249b['oldValue']){case'bulleted':return _0x2476f4(o(_0x37cfa6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2476f4(o(_0x37cfa6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2476f4(o(_0x37cfa6,'ELEMENT_TODO_LIST'));}switch(_0x36249b['newValue']){case'bulleted':return _0x3070fc(o(_0x37cfa6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3070fc(o(_0x37cfa6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3070fc(o(_0x37cfa6,'ELEMENT_TODO_LIST'));}}),_0x2d68a5['descriptionFactory']['registerDescriptionCallback'](_0x320d1e=>{const {data:_0x34a7b5}=_0x320d1e;if(_0x34a7b5&&'listIndent'==_0x34a7b5['key'])return null==_0x34a7b5['newValue']||null==_0x34a7b5['oldValue']&&0x0==_0x34a7b5['newValue']?_0x2af562:void 0x0;}),_0x2d68a5['descriptionFactory']['registerDescriptionCallback'](_0x24ced6=>{if('attribute'!=_0x24ced6['type'])return;const {data:_0xed0e60}=_0x24ced6;if(!_0xed0e60||'listItemId'!=_0xed0e60['key'])return;const _0x3f839b=Te(_0x24ced6);return'newValue'==_0x3f839b?{'type':'format','content':o(_0x37cfa6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3f839b?{'type':'format','content':o(_0x37cfa6,'*Split:*\x20list\x20item')}:_0x2af562;}),_0x32d5c9['model']['document']['registerPostFixer'](_0x1969d1=>this['listItemIdFixer'](_0x1969d1)),_0x32d5c9['model']['document']['registerPostFixer'](_0x18e78b=>this['noTrackChangesFixer'](_0x18e78b)),_0x32d5c9['model']['document']['on']('change:data',(_0x655384,_0x4c557f)=>{if(_0x4c557f['isUndo']||!_0x4c557f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x377d38){if(_0x377d38['batch']['isUndo']||!_0x377d38['batch']['isLocal'])return!0x1;let _0x26e7b9=!0x1;const _0x30e4a8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22c6d5=>_0x22c6d5['data']&&'listItemId'==_0x22c6d5['data']['key'])['filter'](_0x3ad3a7=>_0x3ad3a7['data']['newValue']&&_0x3ad3a7['data']['oldValue']);for(const _0x1daf52 of _0x30e4a8)Te(_0x1daf52)||(_0x377d38['removeMarker'](_0x1daf52['getFirstMarker']()),_0x26e7b9=!0x0);return _0x26e7b9;}['noTrackChangesFixer'](_0x1dd892){if(_0x1dd892['batch']['isUndo']||!_0x1dd892['batch']['isLocal'])return!0x1;const _0x3342e2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3342e2['trackChangesCommand']['value'])return!0x1;let _0x3f1342=!0x1;const _0x3fb5be=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x15eb78=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1281a4=>'attribute'==_0x1281a4['type'])['filter'](_0x1224a9=>_0x3fb5be['includes'](_0x1224a9['attributeKey']));if(0x0==_0x15eb78['length'])return _0x3f1342;for(const _0x2c97a6 of _0x15eb78){const _0x3bf52e=_0x3342e2['_findSuggestions'](_0x2c97a6['range'],'attribute')['filter'](_0x3b2e57=>!_0x3b2e57['meta']['isNextTo'])['map'](_0x11719b=>_0x11719b['suggestion'])['filter'](_0x3b8cef=>{const _0x45149e=_0x3342e2['_getAttributeKey'](_0x3b8cef);return _0x3fb5be['includes'](_0x45149e);});if(_0x3bf52e['length']){for(const _0x414f22 of _0x3bf52e)_0x1dd892['removeMarker'](_0x414f22['getFirstMarker']());_0x3f1342=!0x0;}}return _0x3f1342;}['assureChains'](){const _0x45ce42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15e3ae=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x185c5c;const _0x257408=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5613be=>{if(_0x5613be['data']['oldRange']||!_0x5613be['data']['newRange'])return null;if(!_0x5613be['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x162e0c}=_0x45ce42['_splitMarkerName'](_0x5613be['name']);if(!_0x45ce42['hasSuggestion'](_0x162e0c))return null;const _0x5de303=_0x45ce42['getSuggestion'](_0x162e0c);return _0x15e3ae['includes'](_0x5de303['data']['key']);})['map'](_0x21c17f=>{const {id:_0xa6f23b}=_0x45ce42['_splitMarkerName'](_0x21c17f['name']),_0x4ef793=_0x45ce42['getSuggestion'](_0xa6f23b);return _0x185c5c=_0x4ef793['attributes']['groupId'],_0x4ef793['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x257408['size'])return;const _0xa81e6c=_0x45ce42['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35e01c=>'attribute'==_0x35e01c['type']&&_0x35e01c['data']&&_0x15e3ae['includes'](_0x35e01c['data']['key'])&&_0x35e01c['attributes']['groupId']!=_0x185c5c)['map'](_0x451d94=>({'listItem':_0x451d94['getFirstRange']()['start']['nodeAfter'],'groupId':_0x451d94['attributes']['groupId']})),_0x920653=new Set();for(const {groupId:_0x32ba07,listItem:_0x1a2ac0}of _0xa81e6c)_0x257408['has'](_0x1a2ac0)&&_0x920653['add'](_0x32ba07);for(const _0x49a267 of _0x45ce42['getSuggestions']())_0x920653['has'](_0x49a267['attributes']['groupId'])&&_0x49a267['setAttribute']('groupId',_0x185c5c);}['_supportLegacySuggestions'](){const _0x2389fa=this['editor'],_0x188d83=_0x2389fa['locale'],_0x57f26f=_0x2389fa['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x57f26f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3a0d07,_0x14f61b){const _0x2c9b8d=[];for(let _0x3696c6 of _0x3a0d07)_0x3696c6['start']['nodeAfter']===_0x3696c6['end']['parent']&&(_0x3696c6=_0x2389fa['model']['createRange'](_0x2389fa['model']['createPositionAt'](_0x3696c6['start']['nodeAfter'],0x0))),_0x2c9b8d['push'](_0x3696c6);_0x2389fa['model']['change'](_0x234b56=>{const _0x3fe22a=_0x2389fa['model']['document']['selection'],_0x4ef35c=Array['from'](_0x3fe22a['getRanges']())['map'](_0x38b3bb=>_0x321f06['fromRange'](_0x38b3bb));_0x234b56['setSelection'](_0x2c9b8d),_0x2389fa['commands']['get'](_0x14f61b['commandName'])['refresh'](),_0x14f61b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2389fa['execute'](_0x14f61b['commandName'],..._0x14f61b['commandParams']),_0x234b56['setSelection'](_0x4ef35c);for(const _0x27089d of _0x4ef35c)_0x27089d['detach']();});}),_0x57f26f['descriptionFactory']['registerElementLabel'](function(_0x45eca){const _0xcb705b=!_0x2389fa['model']['schema']['isObject'](_0x45eca),_0x497926=_0x45eca['previousSibling'],_0x363b82=_0x45eca['nextSibling'],_0x4e48ad=_0x45eca['getAttribute']('listItemId'),_0x5282ee=!_0x497926||_0x497926['getAttribute']('listItemId')!==_0x4e48ad,_0x2dfcc2=!_0x363b82||_0x363b82['getAttribute']('listItemId')!==_0x4e48ad;return _0xcb705b&&Boolean(_0x4e48ad)&&_0x5282ee&&_0x2dfcc2;},_0x18834d=>o(_0x188d83,'ELEMENT_LIST_ITEM',_0x18834d));}['_registerLegacyDescription'](){const _0x44f0a3=this['editor'],_0x218573=_0x44f0a3['locale'];function _0x2c3883(_0x34275b){const _0x279273=_0x44f0a3['commands']['get']('bulletedList')['value'],_0x196bc4=_0x44f0a3['commands']['get']('numberedList')['value'];return'numberedList'===_0x34275b?_0x279273:_0x196bc4;}_0x44f0a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xf95cee){if('formatBlock'!=_0xf95cee['type'])return;const {data:_0x1ae3bc}=_0xf95cee;if(!_0x1ae3bc)return;let _0x2af739,_0x56374c,_0x5e5c43,_0x5f5dc4;switch(_0x1ae3bc['commandName']){case'bulletedList':_0x5e5c43=_0x1ae3bc['commandParams'][0x0]['forceValue'],_0x5f5dc4=_0x2c3883(_0x1ae3bc['commandName']),_0x2af739=_0x5e5c43?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5f5dc4&&_0x44f0a3['config']['get']('list.multiBlock')||(_0x2af739='*Change\x20to:*\x20%0'),_0x56374c={'type':'format','content':o(_0x218573,_0x2af739,o(_0x218573,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5e5c43=_0x1ae3bc['commandParams'][0x0]['forceValue'],_0x5f5dc4=_0x2c3883(_0x1ae3bc['commandName']),_0x2af739=_0x5e5c43?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5f5dc4&&_0x44f0a3['config']['get']('list.multiBlock')||(_0x2af739='*Change\x20to:*\x20%0'),_0x56374c={'type':'format','content':o(_0x218573,_0x2af739,o(_0x218573,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2af739='*Indent:*\x20%0',_0x56374c={'type':'format','content':o(_0x218573,_0x2af739,o(_0x218573,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2af739=function(_0x23d2d2){const _0x4ed7d4=_0x23d2d2['getFirstRange']();let _0xf8b89=_0x4ed7d4['start']['nodeAfter'];for(;_0xf8b89&&_0x4ed7d4['containsItem'](_0xf8b89);){if(_0xf8b89['getAttribute']('listIndent')>0x0)return!0x1;_0xf8b89=_0xf8b89['nextSibling'];}return!0x0;}(_0xf95cee)?o(_0x218573,'*Format:*\x20remove\x20from\x20%0',o(_0x218573,function(_0x1ddd4b){return'ELEMENT_'+_0x1ddd4b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xf95cee))):o(_0x218573,'*Outdent:*\x20%0',o(_0x218573,'ELEMENT_LIST_ITEM')),_0x56374c={'type':'format','content':_0x2af739};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ae3bc['multipleBlocks']&&(_0x2af739='*Merge:*\x20%0',_0x56374c={'type':'deletion','content':o(_0x218573,_0x2af739,o(_0x218573,'ELEMENT_LIST_ITEM'))});}return _0x56374c;});}}function Te(_0x303bf3){let _0x220e2f=_0x303bf3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x220e2f;){const _0x186dd9=_0x220e2f['getAttribute']('listItemId');if(!_0x186dd9)return!0x1;if(_0x186dd9==_0x303bf3['data']['newValue'])return'newValue';if(_0x186dd9==_0x303bf3['data']['oldValue'])return'oldValue';_0x220e2f=_0x220e2f['previousSibling'];}return!0x1;}class Y extends _0x1061bc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x27e818=this['editor']['config']['get']('list.properties'),_0x521a08=this['editor']['plugins']['get']('TrackChangesEditing');_0x27e818['styles']&&_0x521a08['enableDefaultAttributesIntegration']('listStyle'),_0x27e818['reversed']&&_0x521a08['enableDefaultAttributesIntegration']('listReversed'),_0x27e818['startIndex']&&_0x521a08['enableDefaultAttributesIntegration']('listStart');const _0x50c584={'type':'format','content':''};_0x521a08['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2f2814=this['editor']['locale'];_0x521a08['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2f2814,'FORMAT_LIST_REVERSED')),_0x521a08['descriptionFactory']['registerDescriptionCallback'](_0x364e71=>{const {data:_0x5c3dc7}=_0x364e71;if(_0x5c3dc7&&'listReversed'==_0x5c3dc7['key'])return null==_0x5c3dc7['newValue']||0x0==_0x5c3dc7['newValue']&&null==_0x5c3dc7['oldValue']?_0x50c584:void 0x0;}),_0x521a08['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2f2814,'FORMAT_LIST_START')),_0x521a08['descriptionFactory']['registerDescriptionCallback'](_0x313ac4=>{const {data:_0xddf29f}=_0x313ac4;if(_0xddf29f&&'listStart'==_0xddf29f['key'])return null==_0xddf29f['newValue']||0x1==_0xddf29f['newValue']&&null==_0xddf29f['oldValue']?_0x50c584:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x34badd=>{if(_0x34badd['batch']['isUndo'])return!0x1;let _0x50769a=!0x1;const _0x98bde4=_0x521a08['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b9aaa=>{const _0x2d4ac0=_0x521a08['_getAttributeKey'](_0x1b9aaa);return'listStart'==_0x2d4ac0||'listReversed'==_0x2d4ac0;});for(const _0x4a127a of _0x98bde4){const _0x1e6ddc=_0x4a127a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1e6ddc||'customNumbered'==_0x1e6ddc)continue;_0x521a08['_findSuggestions'](_0x4a127a['getFirstRange'](),'attribute')['find'](_0x1ad7fb=>'listType'==_0x521a08['_getAttributeKey'](_0x1ad7fb['suggestion']))||(_0x34badd['removeMarker'](_0x4a127a['getFirstMarker']()),_0x50769a=!0x0);}return _0x50769a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x9c30d4){const _0x488afa=this['editor']['locale'],{data:_0x965587}=_0x9c30d4,_0x491593={'type':'format','content':''};if(!_0x965587||'listStyle'!=_0x965587['key'])return;if(!_0x965587['oldValue'])return'default'==_0x965587['newValue']?_0x491593:{'type':'format','content':''+o(_0x488afa,'*Set\x20format:*\x20%0',o(_0x488afa,this['_getTranslationKeyForListStyle'](_0x965587['newValue'])))};if(!_0x965587['newValue']){if('default'==_0x965587['oldValue'])return _0x491593;let _0x137cf2=_0x9c30d4['head'];for(;_0x137cf2;){if(_0x137cf2['data']&&'listType'==_0x137cf2['data']['key']&&_0x137cf2['data']['newValue'])return _0x491593;_0x137cf2=_0x137cf2['next'];}return{'type':'format','content':''+o(_0x488afa,'*Remove\x20format:*\x20%0',o(_0x488afa,this['_getTranslationKeyForListStyle'](_0x965587['oldValue'])))};}if('default'!=_0x965587['newValue'])return{'type':'format','content':''+o(_0x488afa,'*Set\x20format:*\x20%0',o(_0x488afa,this['_getTranslationKeyForListStyle'](_0x965587['newValue'])))};let _0x45265d=_0x9c30d4['head'];for(;_0x45265d;){if(_0x45265d['data']&&'listType'==_0x45265d['data']['key']&&_0x45265d['data']['newValue']&&_0x45265d['data']['oldValue'])return _0x491593;_0x45265d=_0x45265d['next'];}return{'type':'format','content':o(_0x488afa,'*Set\x20format:*\x20%0',o(_0x488afa,'ELEMENT_'+_0x9c30d4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x6d88d=this['editor'],_0x9b3013=_0x6d88d['locale'];_0x6d88d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31d687=>{if('formatBlock'!=_0x31d687['type'])return;const {data:_0x599c01}=_0x31d687;if(!_0x599c01)return;let _0xad9fce,_0x50bf6a;switch(_0x599c01['commandName']){case'listStyle':_0xad9fce='*Change\x20to:*\x20%0',_0x50bf6a={'type':'format','content':o(_0x9b3013,_0xad9fce,o(_0x9b3013,this['_getTranslationKeyForListStyle'](_0x599c01['commandParams'][0x0]['type'])))};break;case'listReversed':_0xad9fce=_0x599c01['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x50bf6a={'type':'format','content':o(_0x9b3013,_0xad9fce)};break;case'listStart':_0xad9fce='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x50bf6a={'type':'format','content':o(_0x9b3013,_0xad9fce,_0x599c01['commandParams'][0x0]['startIndex'])};}return _0x50bf6a;});}['_getTranslationKeyForListStyle'](_0x21d71a){return'ELEMENT_'+function(_0x24e291){if(ye['includes'](_0x24e291))return'bulleted';if(Se['includes'](_0x24e291))return'numbered';return null;}(_0x21d71a)['toUpperCase']()+'_LIST_'+_0x21d71a['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x1061bc{['afterInit'](){const _0x1b9597=this['editor'];_0x1b9597['commands']['get']('emoji')&&_0x1b9597['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x1061bc{static get['requires'](){return[_0x561d33];}['init'](){const _0x56441d=this['editor'],_0x5a61fe=_0x56441d['plugins']['get']('TrackChangesEditing'),_0x53cb82=_0x56441d['commands']['get']('enter');_0x5a61fe['enableCommand']('enter',()=>{_0x56441d['model']['change'](_0x255c0a=>{const _0x46d75f=_0x56441d['model']['document']['selection'],_0x588146=_0x46d75f['getFirstPosition'](),_0x3b14d8=_0x321f06['fromRange'](_0x46d75f['getFirstRange']());if(_0x53cb82['enterBlock'](_0x255c0a)){const _0x4b31ee=_0x56441d['model']['createPositionAt'](_0x588146['parent']['nextSibling'],0x0),_0x201265=_0x255c0a['createRange'](_0x588146,_0x4b31ee);_0x5a61fe['markInsertion'](_0x201265);}else _0x255c0a['setSelection'](_0x255c0a['createRange'](_0x3b14d8['end']));_0x3b14d8['detach'](),_0x53cb82['fire']('afterExecute',{'writer':_0x255c0a});});});}}class nt extends _0x1061bc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x36b997=this['editor']['plugins']['get']('TrackChangesEditing');_0x36b997['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x36b997['enableCommand']('findNext'),_0x36b997['enableCommand']('findPrevious'),_0x36b997['enableCommand']('replace'),_0x36b997['enableCommand']('replaceAll');}['handleFindCommand'](_0x6513ec,_0x574d74,_0x4f77bf={}){const _0xf5796a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x6513ec(_0x31c4fa=>{let _0x3e436d=('string'==typeof _0x574d74?_0xf5796a['findByTextCallback'](_0x574d74,_0x4f77bf):_0x574d74)(_0x31c4fa);Array['isArray'](_0x3e436d)&&(_0x3e436d={'results':_0x3e436d,'searchText':'string'==typeof _0x574d74?_0x574d74:''});const _0x1a68fe=_0x3e436d['results']['filter'](_0x4a73d3=>!0x1===this['_isInDeletionRange'](_0x4a73d3,_0x31c4fa['item']));return{..._0x3e436d,'results':_0x1a68fe};},_0x4f77bf);}['_isInDeletionRange'](_0x5c6eec,_0x190184){const _0x271558=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x190184,_0x5c6eec['start']),this['editor']['model']['createPositionAt'](_0x190184,_0x5c6eec['end']));for(const _0x3d593b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x271558['getIntersection'](_0x3d593b['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x1061bc{['afterInit'](){const _0xa62409=this['editor']['locale'],_0x21e6d9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x475c75,commandName:_0x28f56c}of eo)this['editor']['plugins']['has'](_0x475c75)&&_0x21e6d9['enableDefaultAttributesIntegration'](_0x28f56c);_0x21e6d9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xa62409,'FORMAT_FONT_SIZE')),_0x21e6d9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xa62409,'FORMAT_FONT_FAMILY')),_0x21e6d9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xa62409,'FORMAT_FONT_COLOR')),_0x21e6d9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xa62409,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ca60c=this['editor'],_0xe5634b=_0x5ca60c['locale'];_0x5ca60c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52273f=>{const _0x68cb48=_0xe5634b['t'];if('formatInline'!=_0x52273f['type'])return;const {data:_0x382489}=_0x52273f;if(null!=_0x382489){if('fontSize'==_0x382489['commandName']){const _0x845789=_0x382489['commandParams'][0x0]['value'];if(_0x845789){const _0x7656cf=_0x68cb48(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2ed5ec=>_0x2ed5ec['model']==_0x845789)['title'])['toLowerCase']();return{'type':'format','content':o(_0xe5634b,'*Set\x20font\x20size:*\x20%0',_0x7656cf)};}return{'type':'format','content':o(_0xe5634b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x382489['commandName']){const _0x5d844f=_0x382489['commandParams'][0x0]['value'];return _0x5d844f?{'type':'format','content':o(_0xe5634b,'*Set\x20font\x20family:*\x20%0',_0x5d844f)}:{'type':'format','content':o(_0xe5634b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x382489['commandName']){const _0x65815b=_0x382489['commandParams'][0x0]['value'];if(_0x65815b){const _0x17ffc0=_0x3280d2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4d59f9=>_0x4d59f9['model']==_0x65815b);let _0x4b1c1c=_0x65815b,_0x220b6c='';return _0x17ffc0&&(_0x4b1c1c=_0x17ffc0['label'],_0x220b6c=_0x68cb48(_0x4b1c1c)['toLowerCase']()),{'type':'format','content':o(_0xe5634b,'*Set\x20font\x20color:*\x20%0',_0x220b6c)['trim'](),'color':{'value':_0x65815b,'title':_0x220b6c||_0x4b1c1c}};}return{'type':'format','content':o(_0xe5634b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x382489['commandName']){const _0x18dd96=_0x382489['commandParams'][0x0]['value'];if(_0x18dd96){const _0x6ce635=_0x3280d2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2c9df9=>_0x2c9df9['model']==_0x18dd96);let _0x261b96=_0x18dd96,_0x525178='';return _0x6ce635&&(_0x261b96=_0x6ce635['label'],_0x525178=_0x68cb48(_0x261b96)['toLowerCase']()),{'type':'format','content':o(_0xe5634b,'*Set\x20font\x20background\x20color:*\x20%0',_0x525178)['trim'](),'color':{'value':_0x18dd96,'title':_0x525178||_0x261b96}};}return{'type':'format','content':o(_0xe5634b,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x1061bc{['afterInit'](){const {plugins:_0x2e2613}=this['editor'];_0x2e2613['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2e2613['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x4a38b5,plugins:_0x5c37aa,commands:_0x29cf2d}=this['editor'],_0x25a372=_0x5c37aa['get']('TrackChangesEditing');_0x29cf2d['get']('footnotesStyle')&&_0x25a372['enableDefaultAttributesIntegration']('footnotesStyle'),_0x29cf2d['get']('footnotesStart')&&_0x25a372['enableDefaultAttributesIntegration']('footnotesStart'),_0x25a372['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x4a38b5,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x25a372['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x4a38b5,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xa9e968=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x32c7f9,commands:_0x3db690}=this['editor'];_0x3db690['get']('insertFootnote')&&_0xa9e968['enableCommand']('insertFootnote'),_0xa9e968['descriptionFactory']['registerElementLabel']('footnoteRef',_0x3b3e88=>o(_0x32c7f9,'ELEMENT_FOOTNOTE_REF',_0x3b3e88)),_0xa9e968['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x536e2c=>o(_0x32c7f9,'ELEMENT_FOOTNOTE_DEFINITION',_0x536e2c)),_0xa9e968['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x4ea910=>o(_0x32c7f9,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x4ea910));}}class st extends _0x1061bc{['afterInit'](){const _0x195397=this['editor'],_0x275d11=_0x195397['plugins']['get']('TrackChangesEditing'),_0x1d1d67=_0x195397['commands']['get']('copyFormat'),_0x4b474e=_0x195397['commands']['get']('pasteFormat');_0x1d1d67&&_0x4b474e&&(_0x275d11['enableDefaultAttributesIntegration']('pasteFormat'),_0x275d11['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x7aa7a=this['editor'],_0xa98157=_0x7aa7a['locale'];_0x7aa7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b0d6c=>{if('formatBlock'!=_0x5b0d6c['type']&&'formatInline'!=_0x5b0d6c['type'])return;const {data:_0x45bce6}=_0x5b0d6c;if(_0x45bce6&&'pasteFormat'===_0x45bce6['commandName']){const _0x171f1a=[],_0x5dcf17=_0x45bce6['commandParams'][0x0];for(const [_0x5a43eb,_0x46fc72]of Object['entries'](_0x5dcf17))_0x171f1a['push'](ro(_0x7aa7a,_0x5a43eb,_0x46fc72));return _0x171f1a['length']?{'type':'format','content':o(_0xa98157,'*Set\x20format\x20to:*\x20%0',_0x171f1a['join'](',\x20'))}:{'type':'format','content':o(_0xa98157,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x273e3a,_0x13527a,_0x80f5c1){const _0x5aba7a=_0x273e3a['locale']['t'],_0xae1c32=_0x13527a['split'](/(?=[A-Z])/)['join']('\x20'),_0x2b726b=_0x5aba7a(_0xae1c32['charAt'](0x0)['toUpperCase']()+_0xae1c32['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x80f5c1)return _0x2b726b;if('fontColor'===_0x13527a||'fontBackgroundColor'===_0x13527a){const _0x3d7490=_0x3280d2(_0x273e3a['config']['get']('fontColor.colors'))['find'](_0x40e706=>_0x40e706['model']==_0x80f5c1);return _0x2b726b+'\x20('+(_0x3d7490?_0x5aba7a(_0x3d7490['label'])['toLowerCase']():_0x80f5c1)+')';}if('fontSize'===_0x13527a&&isNaN(parseFloat(_0x80f5c1))){const _0x47a6ac=_0x273e3a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x273e3a['config']['get']('fontSize.options'))['find'](_0x186e1d=>_0x186e1d['model']==_0x80f5c1);return _0x2b726b+'\x20('+(_0x47a6ac?_0x5aba7a(_0x47a6ac['title'])['toLowerCase']():_0x80f5c1)+')';}return _0x2b726b+'\x20('+_0x80f5c1+')';}class ot extends _0x1061bc{['_headingOptions'];['afterInit'](){const _0x55b324=this['editor'];if(!_0x55b324['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x55b324['config']['get']('heading.options');const _0x3bcce0=_0x55b324['locale'],_0x2495f3=_0x55b324['plugins']['get']('TrackChangesEditing');_0x2495f3['enableDefaultAttributesIntegration']('heading');for(const _0x731bf4 of this['_headingOptions'])'paragraph'!=_0x731bf4['model']&&_0x2495f3['descriptionFactory']['registerElementLabel'](_0x731bf4['model'],_0x347cf1=>{const _0x1d2b3d=this['_getHeadingLevel'](_0x731bf4['model']);return null!==_0x1d2b3d?_0x3aeb9f(_0x347cf1,_0x1d2b3d):_0x116f3e(_0x347cf1,_0x731bf4['title']);});function _0x3aeb9f(_0xf967da,_0x3cd33c){return o(_0x3bcce0,'ELEMENT_HEADING',[_0xf967da,_0x3cd33c]);}function _0x116f3e(_0x32f4b9,_0x19d182){return o(_0x3bcce0,'ELEMENT_HEADING_CUSTOM',[_0x32f4b9,_0x19d182]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb1f7af=this['editor'],_0x40ef20=_0xb1f7af['locale'];function _0x18e69a(_0x33c53a,_0x3773bf){return o(_0x40ef20,'ELEMENT_HEADING_CUSTOM',[_0x33c53a,_0x3773bf]);}_0xb1f7af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fe5db=>{if('formatBlock'!=_0x4fe5db['type'])return;const {data:_0x56fe95}=_0x4fe5db;if(_0x56fe95&&'heading'==_0x56fe95['commandName']){const _0x20f306=_0x56fe95['commandParams'][0x0]['value'],_0x5a9344=this['_getHeadingLevel'](_0x20f306);if(null!==_0x5a9344)return{'type':'format','content':o(_0x40ef20,'*Change\x20to:*\x20%0',(_0x1fc353=0x1,_0x190104=_0x5a9344,o(_0x40ef20,'ELEMENT_HEADING',[_0x1fc353,_0x190104])))};const _0x239a1d=this['_headingOptions']['find'](_0x4b8735=>_0x4b8735['model']===_0x20f306)['title'];return{'type':'format','content':o(_0x40ef20,'*Change\x20to:*\x20%0',_0x18e69a(0x1,_0x239a1d))};}var _0x1fc353,_0x190104;});}['_getHeadingLevel'](_0x25624b){const _0x1eafea=_0x25624b['match'](/^heading(\d+)/);if(_0x1eafea)return _0x1eafea[0x1];const _0x77b374=this['_headingOptions']?.['find'](_0x2fb45c=>_0x2fb45c['model']==_0x25624b);if(_0x77b374&&_0x77b374['view']){const _0x4f5479=_0x77b374['view'],_0x22a977=(_0x4f5479['name']??_0x4f5479)['match'](/^h(\d+)/);if(_0x22a977)return _0x22a977[0x1];}return null;}}class rt extends _0x1061bc{['afterInit'](){const _0x2db1cf=this['editor'];if(!_0x2db1cf['plugins']['has']('HighlightEditing'))return;const _0x4f0f28=_0x2db1cf['plugins']['get']('TrackChangesEditing'),_0x1726f2=_0x2db1cf['locale'];_0x4f0f28['enableDefaultAttributesIntegration']('highlight'),_0x4f0f28['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1726f2,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x324411=this['editor'],_0x1e1714=_0x324411['locale'];_0x324411['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d228f=>{if('formatInline'!=_0x4d228f['type'])return;const {data:_0x59314f}=_0x4d228f;if(_0x59314f&&'highlight'==_0x59314f['commandName']){const _0x136be4=_0x1e1714['t'],_0x34bc7a=_0x59314f['commandParams'][0x0]['value'];if(_0x34bc7a){const _0x50d1c1=_0x324411['config']['get']('highlight.options')['find'](_0xea9ad9=>_0xea9ad9['model']==_0x34bc7a),_0x95e698=_0x136be4(_0x50d1c1['title'])['toLowerCase']();return{'type':'format','content':o(_0x1e1714,'*Set\x20highlight:*\x20%0',_0x95e698),'color':{'value':_0x50d1c1['color'],'title':_0x50d1c1['title']}};}return{'type':'format','content':o(_0x1e1714,'*Remove\x20highlight*',o(_0x1e1714,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x1061bc{['afterInit'](){const _0xe72781=this['editor'];if(!_0xe72781['plugins']['has']('HorizontalLineEditing'))return;_0xe72781['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x306477=_0xe72781['plugins']['get']('TrackChangesEditing'),_0x36c07d=_0xe72781['locale'];_0x306477['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5e519c=>o(_0x36c07d,'ELEMENT_HORIZONTAL_LINE',_0x5e519c));}}class ct extends _0x1061bc{['afterInit'](){const _0x422cf5=this['editor'];if(!_0x422cf5['plugins']['has']('HtmlEmbed'))return;const _0x21acf1=_0x422cf5['plugins']['get']('TrackChangesEditing'),_0x2c06b7=_0x422cf5['locale'];_0x21acf1['descriptionFactory']['registerElementLabel']('rawHtml',_0xced593=>o(_0x2c06b7,'ELEMENT_HTML_EMBED',_0xced593)),_0x21acf1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x21acf1['descriptionFactory']['registerDescriptionCallback'](_0x43d395=>{if('attribute'!=_0x43d395['type'])return;const {data:_0x3f2034}=_0x43d395;if(_0x3f2034&&'value'==_0x3f2034['key']&&_0x43d395['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1ba38=o(_0x2c06b7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2c06b7,'*Change\x20%0\x20content*',_0x1ba38)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x208981=this['editor'],_0x4b71e7=_0x208981['locale'];_0x208981['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a600c=>{if('formatBlock'!=_0x2a600c['type'])return;const {data:_0x566a88}=_0x2a600c;if(_0x566a88&&'htmlEmbed'==_0x566a88['commandName']){const _0x15beed=o(_0x4b71e7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4b71e7,'*Change\x20%0\x20content*',_0x15beed)};}});}}class ut extends _0x1061bc{['afterInit'](){const _0x2dcbca=this['editor'];if(!_0x2dcbca['plugins']['has']('ImageEditing'))return;const _0x35b496=_0x2dcbca['plugins']['get']('TrackChangesEditing'),_0x94c456=_0x2dcbca['plugins']['get']('ImageUtils'),_0x4a377a=_0x2dcbca['locale'];_0x35b496['enableCommand']('insertImage'),_0x35b496['descriptionFactory']['registerElementLabel']('imageBlock',_0x584393=>o(_0x4a377a,'ELEMENT_IMAGE',_0x584393)),_0x35b496['descriptionFactory']['registerElementLabel']('imageInline',_0xac7914=>o(_0x4a377a,'ELEMENT_INLINE_IMAGE',_0xac7914)),_0x35b496['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4a377a,'ELEMENT_CAPTION')),_0x2dcbca['plugins']['has']('ImageUploadEditing')&&_0x35b496['enableCommand']('uploadImage'),_0x2dcbca['plugins']['has']('ImageBlockEditing')&&_0x2dcbca['plugins']['has']('ImageInlineEditing')&&(_0x35b496['enableCommand']('imageTypeInline',(_0x565453,_0x47a56f)=>{const _0x58e7ee=_0x94c456['getClosestSelectedImageElement'](_0x2dcbca['model']['document']['selection']);_0x2dcbca['model']['change'](()=>{_0x35b496['markBlockFormat'](_0x58e7ee,{'commandName':'imageTypeInline','commandParams':[_0x47a56f]},[],'convertBlockImageToInline');});}),_0x35b496['enableCommand']('imageTypeBlock',(_0xb25287,_0x10fa99)=>{_0x2dcbca['model']['change'](_0x3b660c=>{let _0x2603e0=_0x94c456['getClosestSelectedImageElement'](_0x2dcbca['model']['document']['selection']),_0x526c08=_0x3b660c['createRangeOn'](_0x2603e0);const _0x38358b=_0x25b560['fromPosition'](_0x526c08['start'],'toPrevious'),_0x2bb27b=_0x25b560['fromPosition'](_0x526c08['end'],'toNext');_0x35b496['forceDefaultExecution'](()=>_0xb25287(_0x10fa99)),_0x2603e0=_0x94c456['getClosestSelectedImageElement'](_0x2dcbca['model']['document']['selection']),_0x526c08=_0x3b660c['createRangeOn'](_0x2603e0);const _0x2edf73=_0x3b660c['createRange'](_0x38358b,_0x2bb27b);_0x38358b['detach'](),_0x2bb27b['detach'](),_0x35b496['markBlockFormat'](_0x2603e0,{'commandName':'imageTypeInline','commandParams':[_0x10fa99]},[],'convertInlineImageToBlock'),_0x2edf73['start']['isBefore'](_0x526c08['start'])&&_0x35b496['markInsertion'](_0x3b660c['createRange'](_0x2edf73['start'],_0x526c08['start']),'convertInlineImageToBlock'),_0x526c08['end']['isBefore'](_0x2edf73['end'])&&_0x35b496['markInsertion'](_0x3b660c['createRange'](_0x526c08['end'],_0x2edf73['end']),'convertInlineImageToBlock');});}),_0x35b496['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x35b496['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x35b496['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x35b496['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x35b496['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x35b496['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x35ce8e])=>{const _0x283861=_0x35b496['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x35fef8=_0x35ce8e['start'],_0x31aa36=_0x35ce8e['end'];const _0x282350=_0x2dcbca['model']['schema']['getNearestSelectionRange'](_0x35fef8,'backward'),_0x20b8e5=_0x2dcbca['model']['schema']['getNearestSelectionRange'](_0x31aa36,'forward');_0x282350['isCollapsed']&&(_0x35fef8=_0x282350['start']),_0x20b8e5['isCollapsed']&&(_0x31aa36=_0x20b8e5['end']),_0x283861([_0x2dcbca['model']['createRange'](_0x35fef8,_0x31aa36)]);}),_0x35b496['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2bc889),_0x35b496['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2bc889)),_0x2dcbca['plugins']['has']('ImageCaptionEditing')&&(_0x35b496['enableCommand']('toggleImageCaption',(_0x49f5fa,_0x1c83ce)=>{const _0x5f2e12=_0x2dcbca['plugins']['get']('ImageCaptionUtils');let _0x14f343=_0x94c456['getClosestSelectedImageElement'](_0x2dcbca['model']['document']['selection']),_0x376861=_0x5f2e12['getCaptionFromImageModelElement'](_0x14f343);_0x2dcbca['model']['change'](()=>{if(_0x376861)return void _0x35b496['markDeletion'](_0x2dcbca['model']['createRangeOn'](_0x376861));const _0x38d0b1=_0x94c456['isBlockImage'](_0x14f343);_0x49f5fa(_0x1c83ce),_0x14f343=_0x94c456['getClosestSelectedImageElement'](_0x2dcbca['model']['document']['selection']),_0x376861=_0x5f2e12['getCaptionFromImageModelElement'](_0x14f343),_0x35b496['markInsertion'](_0x2dcbca['model']['createRangeOn'](_0x376861),_0x38d0b1?null:'imageCaption');});}),_0x35b496['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2bc889));const _0x3beb8f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x410e16(_0x3f7ce1,_0x166b06){const _0x2a7032=_0x3beb8f['findIndex'](({type:_0x2954da,subType:_0x191fa5})=>_0x3f7ce1['type']==_0x2954da&&_0x3f7ce1['subType']==_0x191fa5),_0x2bdd4b=_0x3beb8f['findIndex'](({type:_0x556e81,subType:_0x53a995})=>_0x166b06['type']==_0x556e81&&_0x166b06['subType']==_0x53a995);if(_0x2a7032<0x0||_0x2bdd4b<0x0)return!0x1;const _0x400e8d=_0x3f7ce1['getFirstRange'](),_0x24510e=_0x166b06['getFirstRange']();if((0x0==_0x2a7032||0x1==_0x2a7032)&&0x2==_0x2bdd4b&&_0x400e8d['isIntersecting'](_0x24510e))return!0x0;if(0x2==_0x2a7032&&0x3==_0x2bdd4b){const _0x55e554=_0x35b496['_findSuggestions'](_0x400e8d,'insertion')['filter'](({suggestion:_0x19b9ca,meta:_0x5de02b})=>_0x5de02b['isOwn']&&'convertInlineImageToBlock'==_0x19b9ca['subType']);if(_0x55e554['length']>0x1&&_0x24510e['end']['isEqual'](_0x400e8d['start']))return!0x0;if(0x1==_0x55e554['length']&&(_0x400e8d['start']['isEqual'](_0x24510e['end'])||_0x400e8d['end']['isEqual'](_0x24510e['start'])))return!0x0;}if(0x3==_0x2a7032&&0x3==_0x2bdd4b&&_0x400e8d['start']['isBefore'](_0x24510e['start'])){const _0x4f8497=_0x400e8d['end']['nodeAfter'],_0x3d9d5c=_0x24510e['start']['nodeBefore'];return _0x94c456['isBlockImage'](_0x4f8497)&&_0x4f8497===_0x3d9d5c;}return!0x1;}function _0x2bc889(_0x4be083,_0x3c47db){return _0x410e16(_0x4be083,_0x3c47db)?[_0x4be083,_0x3c47db]:_0x410e16(_0x3c47db,_0x4be083)?[_0x3c47db,_0x4be083]:null;}_0x2dcbca['plugins']['has']('ImageResize')&&(_0x35b496['enableDefaultAttributesIntegration']('resizeImage'),_0x35b496['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4a377a,'FORMAT_IMAGE_SIZE'))),_0x2dcbca['plugins']['has']('ImageTextAlternativeEditing')&&_0x35b496['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2dcbca['plugins']['has']('PictureEditing')&&_0x35b496['descriptionFactory']['registerDescriptionCallback'](_0x33e56e=>{if('attribute'!=_0x33e56e['type'])return;const {data:_0x17e2dd}=_0x33e56e;return _0x17e2dd&&'sources'==_0x17e2dd['key']?{'type':'format','content':''}:void 0x0;}),_0x2dcbca['plugins']['has']('ImageSizeAttributes')&&_0x35b496['descriptionFactory']['registerDescriptionCallback'](_0x2807aa=>{if('attribute'!=_0x2807aa['type'])return;const {data:_0x2f7021}=_0x2807aa;return!_0x2f7021||'width'!=_0x2f7021['key']&&'height'!=_0x2f7021['key']?void 0x0:{'type':'format','content':''};}),_0x35b496['descriptionFactory']['registerDescriptionCallback'](_0x3c15b5=>{if(!!_0x3beb8f['find'](({type:_0x3b7c24,subType:_0x10c7f7})=>_0x3c15b5['type']==_0x3b7c24&&_0x3c15b5['subType']==_0x10c7f7))return _0x3c15b5['previous']?{}:void 0x0;}),_0x35b496['descriptionFactory']['registerDescriptionCallback'](_0x120a76=>{if('insertion'==_0x120a76['type']||'deletion'==_0x120a76['type']){const _0x4e1ab9=_0x120a76['getContainedElement']();if(_0x4e1ab9&&_0x4e1ab9['is']('element','caption'))return{'type':'insertion'==_0x120a76['type']?'addObject':'removeObject','element':_0x4e1ab9,'quantity':0x1};}}),_0x35b496['descriptionFactory']['registerDescriptionCallback'](_0x4eaec6=>'formatBlock'==_0x4eaec6['type']&&'convertInlineImageToBlock'==_0x4eaec6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4eaec6['type']&&'convertBlockImageToInline'==_0x4eaec6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x35b496['descriptionFactory']['registerDescriptionCallback'](_0x5ce3f4=>{if('attribute'!=_0x5ce3f4['type'])return;const {data:_0x1fefd2}=_0x5ce3f4;if(!_0x1fefd2||'alt'!=_0x1fefd2['key'])return;const _0x4162e5=_0x1fefd2['newValue'];return _0x4162e5?{'type':'format','content':o(_0x4a377a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4162e5+'\x22')}:{'type':'format','content':o(_0x4a377a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22dac6=this['editor'],_0x364c16=_0x22dac6['locale'];_0x22dac6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d0bc7=>{if('formatBlock'!=_0x3d0bc7['type']&&'formatInline'!=_0x3d0bc7['type'])return;const {data:_0x3d6eb0}=_0x3d0bc7;if(_0x3d6eb0){if('imageTextAlternative'==_0x3d6eb0['commandName']){const _0x259a5a=_0x3d6eb0['commandParams'][0x0]['newValue'];return _0x259a5a?{'type':'format','content':o(_0x364c16,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x259a5a+'\x22')}:{'type':'format','content':o(_0x364c16,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3d6eb0['commandName']){const _0x5be60a=_0x3d6eb0['commandParams'][0x0]['width'];return _0x5be60a?{'type':'format','content':o(_0x364c16,'*Set\x20image\x20width:*\x20%0',_0x5be60a)}:{'type':'format','content':o(_0x364c16,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x1061bc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x35fb10=this['editor']['locale'],_0x12b484=this['editor']['plugins']['get']('TrackChangesEditing');_0x12b484['enableDefaultAttributesIntegration']('replaceImageSource'),_0x12b484['descriptionFactory']['registerDescriptionCallback'](_0x5ec995=>{if('attribute'!=_0x5ec995['type'])return;const {data:_0x2bb3cf}=_0x5ec995;return _0x2bb3cf&&'src'==_0x2bb3cf['key']?_0x2bb3cf['newValue']&&_0x2bb3cf['oldValue']?{'type':'format','content':o(_0x35fb10,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x551748=this['editor']['plugins']['get']('TrackChangesEditing');_0x551748['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x551748['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x551748['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x551748['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51c24c=this['editor'],_0x356464=_0x51c24c['locale'];_0x51c24c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40dd44=>{if('formatBlock'!=_0x40dd44['type']&&'formatInline'!=_0x40dd44['type'])return;const {data:_0x489d83}=_0x40dd44;if(!_0x489d83||'replaceImageSource'!=_0x489d83['commandName'])return;return{'type':'format','content':o(_0x356464,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x1061bc{['afterInit'](){const _0x477500=this['editor'];if(!_0x477500['plugins']['has']('ImageStyleEditing'))return;const _0x50bcff=_0x477500['plugins']['get']('TrackChangesEditing'),_0x4651c6=_0x477500['plugins']['get']('ImageUtils'),_0x3a8a18={};_0x50bcff['enableCommand']('imageStyle',(_0xf91697,_0x2595a0)=>{const _0x238d1e=_0x477500['plugins']['get']('Users')['me'],_0x2fadaf=_0x477500['commands']['get']('imageStyle');let _0x28845f=_0x4651c6['getClosestSelectedImageElement'](_0x477500['model']['document']['selection']),_0x4b10e5=_0x477500['model']['createRangeOn'](_0x28845f),_0x5cb5b7=_0x2fadaf['value'];if(_0x5cb5b7==_0x2595a0['value'])return;const _0x4bfa5c={'commandName':'imageStyle','commandParams':[_0x2595a0],'formatGroupId':_0x1b5ac0()};_0x477500['model']['change'](()=>{if(_0x50bcff['getSuggestions']()['filter'](_0x5b8379=>_0x5b8379['isInContent']&&_0x238d1e==_0x5b8379['author']&&('formatBlock'==_0x5b8379['type']||'formatInline'==_0x5b8379['type'])&&('imageStylePreApply'==_0x5b8379['subType']||'imageStylePostApply'==_0x5b8379['subType'])&&_0x5b8379['getFirstRange']()['isEqual'](_0x4b10e5))['forEach'](_0x1f311b=>_0x50bcff['discardSuggestion'](_0x1f311b['head'])),_0x28845f=_0x4651c6['getClosestSelectedImageElement'](_0x477500['model']['document']['selection']),_0x4b10e5=_0x477500['model']['createRangeOn'](_0x28845f),_0x2fadaf['refresh'](),_0x477500['commands']['get']('imageTypeInline')['refresh'](),_0x477500['commands']['get']('imageTypeBlock')['refresh'](),_0x5cb5b7=_0x2fadaf['value'],_0x5cb5b7!=_0x2595a0['value'])return _0x4651c6['isInlineImage'](_0x28845f)&&_0x2fadaf['shouldConvertImageType'](_0x2595a0['value'],_0x28845f)?(_0xf91697({..._0x2595a0,'setImageSizes':!0x1}),_0x28845f=_0x4651c6['getClosestSelectedImageElement'](_0x477500['model']['document']['selection']),void _0x50bcff['markBlockFormat'](_0x28845f,{..._0x4bfa5c,'commandReversedParams':[{'value':_0x5cb5b7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4651c6['isBlockImage'](_0x28845f)?_0x50bcff['markBlockFormat'](_0x28845f,_0x4bfa5c,[],'imageStylePostApply'):_0x50bcff['markInlineFormat'](_0x4b10e5,_0x4bfa5c,'imageStylePostApply'));});});for(const _0x1ce167 of _0x477500['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3a8a18[_0x1ce167['name']]=_0x1ce167['title']['toLowerCase']();_0x50bcff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x50bcff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x50bcff['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x50bcff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2821ae])=>{_0x4651c6['setImageNaturalSizeAttributes'](_0x2821ae['getContainedElement']());}),_0x50bcff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x575453,_0xd33970)=>{_0x50bcff['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x575453,{'commandName':_0xd33970['commandName'],'commandParams':_0xd33970['commandReversedParams']});}),_0x50bcff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x586c35,_0x19cb9a){if(_0x395a14(_0x586c35,_0x19cb9a))return[_0x586c35,_0x19cb9a];if(_0x395a14(_0x19cb9a,_0x586c35))return[_0x19cb9a,_0x586c35];return null;});const _0x2c95be=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x395a14(_0x182439,_0x3a9d52){const _0x5e7208=_0x2c95be['findIndex'](({type:_0xc51437,subType:_0x3b9e55})=>_0x182439['type']==_0xc51437&&_0x182439['subType']==_0x3b9e55),_0x374f06=_0x2c95be['findIndex'](({type:_0x3e1b5b,subType:_0xbb2853})=>_0x3a9d52['type']==_0x3e1b5b&&_0x3a9d52['subType']==_0xbb2853);if(_0x5e7208<0x0||_0x374f06<0x0)return!0x1;const _0x3c8ed7=_0x182439['getFirstRange'](),_0x3f59a1=_0x3a9d52['getFirstRange']();if((0x0==_0x5e7208||0x1==_0x5e7208)&&0x2==_0x374f06&&_0x3c8ed7['isIntersecting'](_0x3f59a1))return!0x0;if(0x2==_0x5e7208&&0x3==_0x374f06){const _0x5003b4=_0x50bcff['_findSuggestions'](_0x3c8ed7,'insertion')['filter'](({suggestion:_0x444b48,meta:_0x112162})=>_0x112162['isOwn']&&'convertInlineImageToBlock'==_0x444b48['subType']);if(_0x5003b4['length']>0x1&&_0x3f59a1['end']['isEqual'](_0x3c8ed7['start']))return!0x0;if(0x1==_0x5003b4['length']&&(_0x3c8ed7['start']['isEqual'](_0x3f59a1['end'])||_0x3c8ed7['end']['isEqual'](_0x3f59a1['start'])))return!0x0;}if(0x3==_0x5e7208&&0x3==_0x374f06&&_0x3c8ed7['start']['isBefore'](_0x3f59a1['start'])){const _0x1fa516=_0x3c8ed7['end']['nodeAfter'],_0x5c911a=_0x3f59a1['start']['nodeBefore'];return _0x4651c6['isBlockImage'](_0x1fa516)&&_0x1fa516===_0x5c911a;}return!0x1;}_0x477500['model']['document']['registerPostFixer'](()=>{let _0x331006=!0x1;const _0x100af7=Array['from'](_0x477500['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56e9be,data:_0xdf0357}of _0x100af7){const {group:_0x5a8605,type:_0x4ad802,subType:_0x4760a9,id:_0x2ea029}=_0x50bcff['_splitMarkerName'](_0x56e9be);if('suggestion'==_0x5a8605&&_0x50bcff['hasSuggestion'](_0x2ea029)){if('formatBlock'==_0x4ad802&&('imageStylePreApply'==_0x4760a9||'imageStylePostApply'==_0x4760a9)){const _0x581f68=_0x50bcff['getSuggestion'](_0x2ea029);if(_0xdf0357['newRange']){const _0x11680b=_0x581f68['getFirstRange']()['getContainedElement']();if(_0x4651c6['isBlockImage'](_0x11680b))continue;_0x50bcff['discardSuggestion'](_0x581f68),_0x331006=!0x0;}}if('insertion'==_0x4ad802&&'imageCaption'==_0x4760a9&&!_0xdf0357['newRange']){const _0x93ada9=_0x50bcff['getSuggestion'](_0x2ea029);_0x93ada9['next']&&_0x93ada9['next']['isInContent']&&(_0x50bcff['discardSuggestion'](_0x93ada9['next']),_0x331006=!0x0);}}}return _0x331006;}),this['_registerLegacyDescription'](_0x3a8a18);}['_registerLegacyDescription'](_0xb4055a){const _0x170672=this['editor'],_0x4a3a4a=_0x170672['locale'];_0x170672['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ed1c0=>{if('formatBlock'!=_0x4ed1c0['type']&&'formatInline'!=_0x4ed1c0['type'])return;const {data:_0x1131f7}=_0x4ed1c0;if(!_0x1131f7||'imageStyle'!=_0x1131f7['commandName'])return;const _0x348c65=_0x1131f7['commandParams'][0x0]['value'];return _0x441e80('side'===_0x348c65?o(_0x4a3a4a,'FORMAT_SIDE_IMAGE'):_0xb4055a[_0x348c65]||_0x348c65);function _0x441e80(_0x2f4554){return{'type':'format','content':o(_0x4a3a4a,'*Format:*\x20%0',_0x2f4554)};}});}}class lt extends _0x1061bc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x436a1d){super(_0x436a1d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x32b715=this['editor'],_0x71528f=_0x32b715['commands']['get']('importWord'),_0x50f4cc=_0x32b715['commands']['get']('trackChanges');_0x71528f&&(_0x71528f['on']('execute',(_0x256706,[,_0x224705])=>{this['_trackChangesValueDuringImport']=_0x50f4cc['value'],_0x224705['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x71528f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x71528f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x50f4cc['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x32b715['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xde875,_0x244cf5){const {suggestions:_0x245672}=_0x244cf5,_0x207e11=this['editor']['commands']['get']('trackChanges'),_0x5c6d93=_0x207e11['value'];this['_trackChangesValueDuringImport']!==_0x5c6d93&&(_0x207e11['execute'](),this['_trackChangesExecuted']=!0x0),_0x245672&&_0x245672['forEach'](({id:_0x3a8ef3,type:_0x40d22a,author:_0x8711a2,created_at:_0x11a841})=>{const _0x151b85={'id':_0x3a8ef3,'type':_0x40d22a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x8711a2,'createdAt':_0x11a841?new Date(_0x11a841):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x151b85);});}}class gt extends _0x1061bc{['afterInit'](){const _0xc48d2e=this['editor'],_0x1228c5=_0xc48d2e['plugins']['get']('TrackChangesEditing');if(_0xc48d2e['plugins']['has']('IndentEditing')&&(_0x1228c5['enableCommand']('indent'),_0x1228c5['enableCommand']('outdent')),_0xc48d2e['plugins']['has']('IndentBlock')){for(const _0x166ac7 of['indentBlock','outdentBlock'])_0x1228c5['enableDefaultAttributesIntegration'](_0x166ac7);if(_0xc48d2e['plugins']['has']('ListEditing')){for(const _0x2abea3 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x1228c5['enableDefaultAttributesIntegration'](_0x2abea3);}}const _0x530f54=_0xc48d2e['locale'];_0x1228c5['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x530f54,'FORMAT_INDENT')),_0x1228c5['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x530f54,'FORMAT_INDENT')),_0x1228c5['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x530f54,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e9257=this['editor'],_0x41761e=_0x3e9257['locale'],_0x36b202=_0x3e9257['plugins']['get']('TrackChangesEditing');_0x36b202['descriptionFactory']['registerDescriptionCallback'](_0x246e59=>{if('formatBlock'!=_0x246e59['type'])return;const {data:_0x1e6428}=_0x246e59;if(!_0x1e6428)return;if('indentBlock'!=_0x1e6428['commandName']&&'outdentBlock'!=_0x1e6428['commandName'])return;const _0x440fa2=_0x246e59['getItems']()[0x0],_0x26bd4c=_0x36b202['descriptionFactory']['getItemLabel'](_0x440fa2);return'indentBlock'==_0x1e6428['commandName']?{'type':'format','content':o(_0x41761e,'*Indent:*\x20%0',_0x26bd4c)}:'outdentBlock'==_0x1e6428['commandName']?{'type':'format','content':o(_0x41761e,'*Outdent:*\x20%0',_0x26bd4c)}:void 0x0;});}}class mt extends _0x1061bc{static get['requires'](){return[_0x14a973];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x1061bc{['afterInit'](){const _0xd78204=this['editor'];if(!_0xd78204['plugins']['has']('LinkEditing'))return;const _0x5f3f5c=_0xd78204['plugins']['get']('TrackChangesEditing'),_0x221cec=_0xd78204['commands']['get']('link');_0x5f3f5c['enableDefaultAttributesIntegration']('link'),_0x5f3f5c['enableDefaultAttributesIntegration']('unlink');for(const _0x5232a6 of _0x221cec['manualDecorators'])_0x5f3f5c['descriptionFactory']['registerAttributeLabel'](_0x5232a6['id'],'link\x20('+_0x5232a6['label']['toLowerCase']()+')');_0x5f3f5c['descriptionFactory']['registerDescriptionCallback'](_0x51cc66=>{if('attribute'!=_0x51cc66['type'])return;const {data:_0x5a303f}=_0x51cc66;if(!_0x5a303f||'linkHref'!=_0x5a303f['key'])return;const _0x5aa494=_0x5a303f['newValue'],_0x514780=_0xd78204['locale'];return{'type':'format','content':null==_0x5aa494?o(_0x514780,'*Remove\x20link*'):o(_0x514780,'*Set\x20link:*\x20%0','\x22'+_0x5aa494+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x122007=this['editor'],_0x2cc1f9=_0x122007['locale'];_0x122007['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23616d=>{if('formatInline'!=_0x23616d['type'])return;const {data:_0x4c6b1c}=_0x23616d;if(_0x4c6b1c){if('link'==_0x4c6b1c['commandName']){const _0x2bcb87=_0x4c6b1c['commandParams'][0x0];return{'type':'format','content':o(_0x2cc1f9,'*Set\x20link:*\x20%0','\x22'+_0x2bcb87+'\x22')};}return'unlink'==_0x4c6b1c['commandName']?{'type':'format','content':o(_0x2cc1f9,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x1061bc{['afterInit'](){const _0x23e13a=this['editor'],_0x1a90e7=_0x23e13a['locale'];if(!_0x23e13a['plugins']['has']('LegacyListEditing'))return;const _0x53066c=_0x23e13a['plugins']['get']('TrackChangesEditing'),_0x2b1d4a=_0x23e13a['plugins']['has']('LegacyTodoListEditing');function _0x14b087(_0x5414fb){return()=>{const _0x19eea1=_0x23e13a['model']['document']['selection'],_0x57954d=_0x23e13a['commands']['get'](_0x5414fb);if(_0x57954d['value'])return void _0x23e13a['execute']('paragraph',{});const _0x1d22e2=_0x5414fb['slice'](0x0,-0x4),_0x4ae0e4=function(_0x3ab34f,_0x3e5292,_0x50c755){let _0x4c54c8=Array['from'](_0x3ab34f)['filter'](_0x9ecc3a=>function(_0x562a94,_0x58507e){return _0x58507e['checkChild'](_0x562a94['parent'],'listItem')&&!_0x58507e['isObject'](_0x562a94);}(_0x9ecc3a,_0x50c755));_0x4c54c8=_0x4c54c8['filter'](_0x5022f9=>!_0x5022f9['is']('element','listItem')||_0x5022f9['getAttribute']('listType')!=_0x3e5292);const _0x5cff7c=new Set();for(const _0x283822 of _0x4c54c8)_0x283822['is']('element','listItem')?_0x5cff7c['add'](Le(_0x283822)):_0x5cff7c['add'](_0x283822);return Array['from'](_0x5cff7c);}(_0x19eea1['getSelectedBlocks'](),_0x1d22e2,_0x23e13a['model']['schema']);_0x23e13a['model']['change'](()=>{for(const _0x28035 of _0x4ae0e4)_0x53066c['markBlockFormat'](_0x28035,{'commandName':_0x5414fb,'commandParams':[{'forceValue':!_0x57954d['value']}],'formatGroupId':'blockName'},Ee(_0x28035));});};}function _0x213f8b(_0x5ae484){return()=>{const _0x1f3f0a=function(_0x2ff9f3){let _0x525d89=Array['from'](_0x2ff9f3);const _0x466f90=_0x525d89['findIndex'](_0x32a498=>'listItem'!=_0x32a498['name']);return _0x466f90>-0x1&&(_0x525d89=_0x525d89['slice'](0x0,_0x466f90)),_0x525d89;}(_0x23e13a['model']['document']['selection']['getSelectedBlocks']()),_0xf09fe=_0x23e13a['model']['createRange'](_0x23e13a['model']['createPositionAt'](_0x1f3f0a[0x0],'before'),_0x23e13a['model']['createPositionAt'](_0x1f3f0a[_0x1f3f0a['length']-0x1],'end'));_0x23e13a['model']['change'](()=>{_0x53066c['markBlockFormat'](_0xf09fe,{'commandName':_0x5ae484,'commandParams':[],'formatGroupId':'listIndent'},function(_0x492914){const _0x251767=new Set();for(const _0x1ff840 of _0x492914){let _0x2abf08=_0x1ff840['nextSibling'];for(;_0x2abf08&&_0x2abf08['getAttribute']('listIndent')>_0x1ff840['getAttribute']('listIndent');)_0x251767['add'](_0x2abf08),_0x2abf08=_0x2abf08['nextSibling'];}return Array['from'](_0x251767);}(_0x1f3f0a));});};}_0x53066c['enableCommand']('numberedList',_0x14b087('numberedList')),_0x53066c['enableCommand']('bulletedList',_0x14b087('bulletedList')),_0x2b1d4a&&_0x53066c['enableCommand']('todoList',_0x14b087('todoList')),_0x53066c['enableCommand']('indentList',_0x213f8b('indentList')),_0x53066c['enableCommand']('outdentList',_0x213f8b('outdentList')),_0x2b1d4a&&_0x53066c['enableCommand']('checkTodoList',()=>{const _0x59bc9e=_0x23e13a['commands']['get']('checkTodoList'),_0x1e367e=Array['from'](_0x59bc9e['_selectedElements']);_0x1e367e['filter'](_0x37db5a=>_0x37db5a['getAttribute']('todoListChecked')!=_0x59bc9e['value']),_0x23e13a['model']['change'](()=>{for(const _0xc8dba0 of _0x1e367e)_0x53066c['markBlockFormat'](_0xc8dba0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x59bc9e['value']}]});});}),_0x53066c['descriptionFactory']['registerElementLabel']('listItem',_0x285c31=>o(_0x1a90e7,'ELEMENT_LIST_ITEM',_0x285c31)),_0x53066c['descriptionFactory']['registerDescriptionCallback'](_0x515565=>{if('formatBlock'!=_0x515565['type']&&'formatInline'!=_0x515565['type'])return;const {data:_0x121da1}=_0x515565;if(_0x121da1){if('numberedList'==_0x121da1['commandName']||'bulletedList'==_0x121da1['commandName']||'todoList'==_0x121da1['commandName'])switch(_0x121da1['commandName']['replace']('List','')){case'bulleted':return _0x1181ef(o(_0x1a90e7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1181ef(o(_0x1a90e7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1181ef(o(_0x1a90e7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x121da1['commandName'])return{'type':'format','content':o(_0x1a90e7,'*Indent:*\x20%0',o(_0x1a90e7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x121da1['commandName'])return{'type':'format','content':o(_0x1a90e7,'*Outdent:*\x20%0',o(_0x1a90e7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x121da1['commandName'])return _0x121da1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a90e7,'*Check\x20item*')}:{'type':'format','content':o(_0x1a90e7,'*Uncheck\x20item*')};}function _0x1181ef(_0x47f993){return{'type':'format','content':o(_0x1a90e7,'*Change\x20to:*\x20%0',_0x47f993)};}});}}function Le(_0x3e3b8a){const _0x5e477d=_0x3e3b8a['getAttribute']('listIndent');if(0x0==_0x5e477d)return _0x3e3b8a;let _0x26cb47=_0x3e3b8a;for(;_0x3e3b8a['previousSibling']&&_0x3e3b8a['previousSibling']['is']('element','listItem');){const _0x160895=_0x3e3b8a['previousSibling']['getAttribute']('listIndent');if(_0x160895==_0x5e477d)_0x26cb47=_0x3e3b8a['previousSibling'];else{if(_0x160895<_0x5e477d)break;}_0x3e3b8a=_0x3e3b8a['previousSibling'];}return _0x26cb47;}function Ee(_0x3cdb62){const _0xb1c8b5=[];if(_0x3cdb62['is']('element','listItem')&&_0x3cdb62['getAttribute']('listIndent')>0x0){let _0x398082=_0x3cdb62['nextSibling'];for(;_0x398082&&'listItem'==_0x398082['name']&&_0x398082['getAttribute']('listIndent')==_0x3cdb62['getAttribute']('listIndent');)_0xb1c8b5['push'](_0x398082),_0x398082=_0x398082['nextSibling'];}return _0xb1c8b5;}class wt extends _0x1061bc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3b767f=this['editor']['config']['get']('list.properties'),_0x195798=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b767f['styles']&&_0x195798['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3b767f['reversed']&&_0x195798['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3b767f['startIndex']&&_0x195798['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x195798['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x376a17,_0x40c6bb={}){const _0x56314b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6e02a0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x56314b['markMultiRangeBlockFormat'](_0x6e02a0,{'commandName':'listStyle','commandParams':[{'type':_0x40c6bb['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x37611f,_0x1b0f72={}){const _0x996ba0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a4f74=this['_getSuggestionBlocks'](_0xe8de15=>_0xe8de15['is']('element','listItem')&&'numbered'===_0xe8de15['getAttribute']('listType'));if(_0x1a4f74['length']<0x1)return;const _0x23fce5=_0x1a4f74['map'](_0x7e6a3d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x7e6a3d,'before'),this['editor']['model']['createPositionAt'](_0x7e6a3d,0x0)));this['editor']['model']['change'](()=>{_0x996ba0['markMultiRangeBlockFormat'](_0x23fce5,{'commandName':'listReversed','commandParams':[{'reversed':_0x1b0f72['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x48ad13,_0xe1f51e={}){const _0x3a36a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dc52a=this['_getSuggestionBlocks'](_0xb57c39=>_0xb57c39['is']('element','listItem')&&'numbered'===_0xb57c39['getAttribute']('listType'));if(_0x1dc52a['length']<0x1)return;const _0x1fbde7=_0x1dc52a['map'](_0x74ce1b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x74ce1b,'before'),this['editor']['model']['createPositionAt'](_0x74ce1b,0x0)));this['editor']['model']['change'](()=>{_0x3a36a6['markMultiRangeBlockFormat'](_0x1fbde7,{'commandName':'listStart','commandParams':[{'startIndex':_0xe1f51e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2d8bbc){if('formatBlock'!=_0x2d8bbc['type']&&'formatInline'!=_0x2d8bbc['type'])return;const _0x16cb3c=this['editor']['locale'],{data:_0x1cc87d}=_0x2d8bbc;if(!_0x1cc87d)return;let _0x22f423,_0x3f0c67;switch(_0x1cc87d['commandName']){case'listStyle':_0x22f423='*Change\x20to:*\x20%0',_0x3f0c67={'type':'format','content':o(_0x16cb3c,_0x22f423,o(_0x16cb3c,this['_getTranslationKeyForListStyle'](_0x1cc87d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x22f423=_0x1cc87d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3f0c67={'type':'format','content':o(_0x16cb3c,_0x22f423)};break;case'listStart':_0x22f423='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3f0c67={'type':'format','content':o(_0x16cb3c,_0x22f423,_0x1cc87d['commandParams'][0x0]['startIndex'])};}return _0x3f0c67;}['_getSuggestionBlocksForListStyle'](){const _0x2f42dd=this['editor']['plugins']['get']('LegacyListUtils');let _0x1eb3b5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1eb3b5[0x0]?.['is']('element','listItem')&&_0x1eb3b5['unshift'](..._0x2f42dd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1eb3b5[_0x1eb3b5['length']-0x1]?.['is']('element','listItem')&&_0x1eb3b5['push'](..._0x2f42dd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1eb3b5=[...new Set(_0x1eb3b5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1eb3b5=_0x1eb3b5['filter'](_0x52efb3=>_0x52efb3['is']('element','listItem'))),_0x1eb3b5;}['_getSuggestionBlocks'](_0x4b020c){const _0xf1d782=this['editor']['plugins']['get']('LegacyListUtils');let _0x119ba3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4b020c)['map'](_0x7752f6=>{const _0x9c1c7e=this['editor']['model']['createPositionAt'](_0x7752f6,0x0);return[..._0xf1d782['getSiblingNodes'](_0x9c1c7e,'backward'),..._0xf1d782['getSiblingNodes'](_0x9c1c7e,'forward')];})['flat']();return _0x119ba3=[...new Set(_0x119ba3)],_0x119ba3;}['_getTranslationKeyForListStyle'](_0x302a23){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x302a23)||'default')['toUpperCase']()+'_LIST_'+_0x302a23['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x1061bc{['afterInit'](){const _0x4669d9=this['editor'];if(!_0x4669d9['plugins']['has']('MediaEmbedEditing'))return;const _0x1d5846=_0x4669d9['plugins']['get']('TrackChangesEditing'),_0x199949=_0x4669d9['locale'];_0x1d5846['enableCommand']('mediaEmbed'),_0x1d5846['descriptionFactory']['registerElementLabel']('media',_0x99e6f0=>o(_0x199949,'ELEMENT_MEDIA',_0x99e6f0));}}class bt extends _0x1061bc{['afterInit'](){const _0x25a88a=this['editor'];_0x25a88a['plugins']['has']('MentionEditing')&&_0x25a88a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x1061bc{['afterInit'](){const _0xa22b50=this['editor'];if(!_0xa22b50['plugins']['has']('MergeFieldsEditing'))return;const _0x512b5c=_0xa22b50['plugins']['get']('TrackChangesEditing'),_0x33c969=_0xa22b50['locale'];_0x512b5c['enableCommand']('insertMergeField'),_0x512b5c['enableCommand']('insertMergeFieldBlock'),_0x512b5c['enableCommand']('insertMergeFieldImage'),_0x512b5c['descriptionFactory']['registerElementLabel']('mergeField',_0x53cf55=>o(_0x33c969,'ELEMENT_MERGE_FIELD',_0x53cf55)),_0x512b5c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1277bb=>o(_0x33c969,'ELEMENT_MERGE_FIELD',_0x1277bb)),_0x512b5c['descriptionFactory']['registerDescriptionCallback'](_0x580cf4=>{if('insertion'!=_0x580cf4['type']&&'deletion'!=_0x580cf4['type'])return;const _0x22819d=_0x580cf4['getContainedElement']();if(null==_0x22819d)return;const _0x2567ee=_0xa22b50['plugins']['get']('MergeFieldsEditing');let _0x26e308;switch(_0x2567ee['getMergeFieldType'](_0x22819d)){case null:return;case'image':{const _0x425f5a=_0x2567ee['unwrapAffixes'](_0x22819d['getAttribute']('src'));_0x26e308=_0x2567ee['getLabel'](_0x425f5a)||_0x425f5a;break;}default:{const _0x45a447=_0x22819d['getAttribute']('id');_0x26e308=_0x2567ee['getLabel'](_0x45a447)||_0x45a447;break;}}return'insertion'==_0x580cf4['type']?{'type':'insertion','content':o(_0x33c969,'*Insert:*\x20%0','\x22'+_0x26e308+'\x22\x20'+o(_0x33c969,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x33c969,'*Remove:*\x20%0','\x22'+_0x26e308+'\x22\x20'+o(_0x33c969,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x1061bc{['afterInit'](){const _0x3729be=this['editor'],_0x5846a4=_0x3729be['plugins']['get']('TrackChangesEditing');_0x3729be['plugins']['has']('MultiLevelList')&&(_0x5846a4['enableDefaultAttributesIntegration']('multiLevelList'),_0x5846a4['descriptionFactory']['registerDescriptionCallback'](_0x1374b4=>this['handleDescriptions'](_0x1374b4)));}['handleDescriptions'](_0x4461bc){const _0x25928b=this['editor']['locale'],{data:_0x1e40d4}=_0x4461bc,_0x467d56={'type':'format','content':''};if(_0x1e40d4&&'listMarkerStyle'==_0x1e40d4['key']){if(!_0x1e40d4['oldValue'])return{'type':'format','content':o(_0x25928b,'*Set\x20format:*\x20%0',o(_0x25928b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e40d4['newValue']+')'};if(!_0x1e40d4['newValue']){let _0x352203=_0x4461bc['head'];for(;_0x352203;){if(_0x352203['data']&&'listType'==_0x352203['data']['key']&&_0x352203['data']['newValue'])return _0x467d56;_0x352203=_0x352203['next'];}return{'type':'format','content':o(_0x25928b,'*Remove\x20format:*\x20%0',o(_0x25928b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e40d4['oldValue']+')'};}}}}class St extends _0x1061bc{['afterInit'](){const _0x46e5bc=this['editor'];if(!_0x46e5bc['plugins']['has']('PageBreakEditing'))return;_0x46e5bc['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x30ae90=_0x46e5bc['plugins']['get']('TrackChangesEditing'),_0x4e4571=_0x46e5bc['locale'];_0x30ae90['descriptionFactory']['registerElementLabel']('pageBreak',_0x50d689=>o(_0x4e4571,'ELEMENT_PAGE_BREAK',_0x50d689));}}class It extends _0x1061bc{['afterInit'](){const _0x1a4b1d=this['editor'];if(!_0x1a4b1d['plugins']['has']('Paragraph'))return;const _0x410f26=_0x1a4b1d['locale'],_0x1fb18f=_0x1a4b1d['plugins']['get']('TrackChangesEditing');_0x1fb18f['descriptionFactory']['registerElementLabel']('paragraph',_0x52d86e=>o(_0x410f26,'ELEMENT_PARAGRAPH',_0x52d86e)),_0x1fb18f['enableDefaultAttributesIntegration']('paragraph'),_0x1fb18f['enableCommand']('insertParagraph');const _0xfdd571=_0x1fb18f['descriptionFactory'];_0xfdd571['registerDescriptionCallback'](_0x4c5394=>{if('insertion'!==_0x4c5394['type'])return;const {start:_0x34033a,end:_0x49c3b5}=_0x4c5394['getFirstRange']();if(!_0x34033a['isTouching'](_0x49c3b5)||!_0x34033a['nodeAfter'])return;const _0x1296a2=_0x1a4b1d['model']['schema'],_0x3f58b5=_0x34033a['nodeAfter'];return _0x1296a2['isBlock'](_0x3f58b5)&&!_0x1296a2['isLimit'](_0x3f58b5)&&_0x1296a2['checkChild'](_0x3f58b5,'$text')?{'type':'insertion','content':o(_0x410f26,'*Insert:*\x20%0',_0xfdd571['getItemLabel'](_0x3f58b5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x250744=this['editor'],_0x312f1b=_0x250744['locale'];_0x250744['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c9bd6=>{if('formatBlock'!=_0x1c9bd6['type'])return;const {data:_0xbfce55}=_0x1c9bd6;return _0xbfce55&&'paragraph'==_0xbfce55['commandName']?{'type':'format','content':o(_0x312f1b,'*Change\x20to:*\x20%0',o(_0x312f1b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x1061bc{['afterInit'](){const _0x239cdb=this['editor'];_0x239cdb['commands']['get']('replaceSource')&&_0x239cdb['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x1061bc{['afterInit'](){const _0x19030c=this['editor'];if(!_0x19030c['plugins']['has']('RemoveFormatEditing'))return;_0x19030c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42ce45=this['editor'];_0x42ce45['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a4b44=>{if('formatBlock'!=_0x2a4b44['type']&&'formatInline'!=_0x2a4b44['type'])return;const {data:_0x4d2582}=_0x2a4b44;return _0x4d2582&&'removeFormat'==_0x4d2582['commandName']?{'type':'format','content':o(_0x42ce45['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x1061bc{['afterInit'](){const _0xb1ed3b=this['editor'];if(!_0xb1ed3b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x30b9a1=_0xb1ed3b['plugins']['get']('TrackChangesEditing');_0x30b9a1['enableCommand']('goToPreviousRestrictedEditingException'),_0x30b9a1['enableCommand']('goToNextRestrictedEditingException');const _0x13b7cc=_0xb1ed3b['plugins']['get']('RestrictedEditingModeEditing');_0x13b7cc['enableCommand']('trackChanges'),_0x13b7cc['enableCommand']('acceptSuggestion'),_0x13b7cc['enableCommand']('discardSuggestion'),_0x13b7cc['enableCommand']('acceptAllSuggestions'),_0x13b7cc['enableCommand']('discardAllSuggestions'),_0x13b7cc['enableCommand']('acceptSelectedSuggestions'),_0x13b7cc['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x1061bc{['afterInit'](){const _0x272c98=this['editor'];if(!_0x272c98['plugins']['has']('ShiftEnter'))return;const _0x98f606=_0x272c98['plugins']['get']('TrackChangesEditing');_0x98f606['enableCommand']('shiftEnter'),_0x98f606['descriptionFactory']['registerElementLabel']('softBreak',_0x1b8358=>o(_0x272c98['locale'],'ELEMENT_LINE_BREAK',_0x1b8358));}}function an(_0x24faa2,_0x2d628c,_0x1086f2){const _0x5956a4=[];for(const _0x457efa of _0x2d628c['getItems']())_0x457efa['hasAttribute'](_0x24faa2)&&_0x5956a4['push'](_0x1086f2['createRangeOn'](_0x457efa));return _0x5956a4;}class $t extends _0x1061bc{['afterInit'](){const _0x4448b8=this['editor'],_0x132aea=_0x4448b8['plugins']['get']('TrackChangesEditing');_0x4448b8['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x132aea['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x5d2a0a=this['editor'],_0x23eacc=_0x5d2a0a['model'],_0xcef2e1=_0x5d2a0a['locale'],_0x56496d=_0x5d2a0a['plugins']['get']('TrackChangesEditing'),_0x5d416a='restrictedEditingException',_0xad37f7=_0x5d2a0a['commands']['get'](_0x5d416a);_0x56496d['enableCommand'](_0x5d416a,(_0x38a4e9,_0x2a303b={})=>{const _0x3b4d8d=_0x23eacc['document']['selection'];if(_0x3b4d8d['isCollapsed'])return void _0x38a4e9(_0x2a303b);const _0x5c2b7f=void 0x0!==_0x2a303b['forceValue']?_0x2a303b['forceValue']:!_0xad37f7['value'];_0x23eacc['change'](()=>{const _0x546aa5=Array['from'](_0x3b4d8d['getRanges']());for(const _0x16ad81 of _0x546aa5){const _0x249b8a=_0x5c2b7f?[_0x16ad81]:an(_0x5d416a,_0x16ad81,_0x23eacc);for(const _0x25fe1e of _0x249b8a)_0x56496d['markInlineFormat'](_0x25fe1e,{'commandName':_0x5d416a,'commandParams':[{'forceValue':_0x5c2b7f}]});}});}),_0x56496d['descriptionFactory']['registerDescriptionCallback'](_0x43ff18=>{if('formatBlock'!=_0x43ff18['type']&&'formatInline'!=_0x43ff18['type'])return;const {data:_0x2bd16e}=_0x43ff18;return _0x2bd16e&&_0x2bd16e['commandName']==_0x5d416a?_0x2bd16e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xcef2e1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xcef2e1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x36b3c6=this['editor'],_0x1db893=_0x36b3c6['locale'],_0x425310=_0x36b3c6['plugins']['get']('TrackChangesEditing'),_0x408d16='restrictedEditingExceptionBlock',_0x3c0faa=this['editor']['commands']['get'](_0x408d16);_0x425310['enableCommand'](_0x408d16,(_0x3dc11e,_0x436831={})=>{const _0x357fbc=this['editor']['model']['document']['selection'],_0x22c688=_0x436831&&void 0x0!==_0x436831['forceValue']?_0x436831['forceValue']:!_0x3c0faa['value'];let _0x36fccf=[];if(_0x22c688){const _0x303855=Array['from'](_0x357fbc['getSelectedBlocks']())['filter'](_0x176857=>function(_0xea309d){return!!_0xea309d['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x176857)||function(_0x18be96,_0x4d085c){const _0x305cd2=_0x4d085c['createContext'](_0x18be96['parent']);if(!_0x4d085c['checkChild'](_0x305cd2,'restrictedEditingException'))return!0x1;if(!_0x4d085c['checkChild'](_0x305cd2['push']('restrictedEditingException'),_0x18be96))return!0x1;return!0x0;}(_0x176857,this['editor']['model']['schema']));_0x36fccf=to(_0x303855,_0x36b3c6['model']);}else{const _0x216c85=Array['from'](_0x357fbc['getSelectedBlocks']())['map'](_0x12a1ae=>function(_0x1e1908){let _0x2a815a=_0x1e1908;for(;_0x2a815a['parent'];){if('restrictedEditingException'==_0x2a815a['parent']['name'])return _0x2a815a;_0x2a815a=_0x2a815a['parent'];}return null;}(_0x12a1ae))['filter'](_0xde7316=>!!_0xde7316);_0x36fccf=to(_0x216c85,_0x36b3c6['model']);}_0x36b3c6['model']['change'](()=>{for(const _0x478e35 of _0x36fccf)_0x425310['markBlockFormat'](_0x478e35,{'commandName':_0x408d16,'commandParams':[{'forceValue':_0x22c688}]});});}),_0x425310['descriptionFactory']['registerDescriptionCallback'](_0x58a40c=>{const {data:_0x2561a6}=_0x58a40c;if(_0x2561a6&&_0x2561a6['commandName']==_0x408d16)return _0x2561a6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1db893,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1db893,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x1061bc{['afterInit'](){const _0x391262=this['editor'];if(!_0x391262['plugins']['has']('Style')||!_0x391262['plugins']['has']('DataSchema'))return;const _0x1d8e7a=_0x391262['plugins']['get']('TrackChangesEditing'),_0x4f3819=_0x391262['locale'],_0x44f3ab=_0x391262['config']['get']('style')||{},_0x5a783d=_0x391262['plugins']['get']('GeneralHtmlSupport'),_0x30ad69=_0x391262['plugins']['get']('StyleUtils')['normalizeConfig'](_0x391262['plugins']['get']('DataSchema'),_0x44f3ab['definitions']);_0x1d8e7a['enableDefaultAttributesIntegration']('style');const _0xc4ce25=new Set();for(const _0x55818b of _0x30ad69['block']){const _0x576520=_0x5a783d['getGhsAttributeNameForElement'](_0x55818b['element']);_0xc4ce25['add'](_0x576520);}const _0x183213=new Set();for(const _0x2d1d49 of _0x30ad69['inline']){const _0xa2ae23=_0x5a783d['getGhsAttributeNameForElement'](_0x2d1d49['element']);_0x183213['add'](_0xa2ae23);for(const _0x7f03 of _0x2d1d49['ghsAttributes'])_0x183213['add'](_0x7f03);}for(const _0x49c8e3 of _0xc4ce25)_0x1d8e7a['descriptionFactory']['registerAttributeLabel'](_0x49c8e3,o(_0x4f3819,'FORMAT_STYLE'));for(const _0x30ade1 of _0x183213)_0x1d8e7a['descriptionFactory']['registerAttributeLabel'](_0x30ade1,o(_0x4f3819,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f8344=this['editor'],_0x5cb67c=_0x1f8344['locale'];_0x1f8344['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b065e=>{if('formatBlock'!=_0x5b065e['type']&&'formatInline'!=_0x5b065e['type'])return;const {data:_0x4e8913}=_0x5b065e;return _0x4e8913&&'style'===_0x4e8913['commandName']?_0x4e8913['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5cb67c,'*Set\x20format:*\x20%0',_0x4e8913['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5cb67c,'*Remove\x20format:*\x20%0',_0x4e8913['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x1061bc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x262e2c){super(_0x262e2c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1ff007=this['editor'],_0x215ef6=_0x1ff007['model']['document']['selection'];if(!_0x1ff007['plugins']['has']('TableEditing'))return;const _0x1f9af5=_0x1ff007['locale'],_0x59f270=_0x1ff007['plugins']['get']('TrackChangesEditing'),_0x3032db=_0x1ff007['plugins']['get']('TableUtils');_0x59f270['descriptionFactory']['registerElementLabel']('table',_0x120c04=>o(_0x1f9af5,'ELEMENT_TABLE',_0x120c04)),this['_setupColumnsRowsFixing'](),_0x59f270['enableCommand']('insertTable'),_0x59f270['enableCommand']('selectTableRow'),_0x59f270['enableCommand']('selectTableColumn');for(const _0x5a62fe of['insertTableRowAbove','insertTableRowBelow']){const _0x1bd29c=_0x1ff007['commands']['get'](_0x5a62fe);_0x59f270['enableCommand'](_0x5a62fe,_0x1c250a=>{_0x1ff007['model']['change'](_0x303197=>{_0x1c250a();const _0x8243af='above'===_0x1bd29c['order'],_0x43a0f8=_0x3032db['getSelectionAffectedTableCells'](_0x215ef6),_0x24c3ac=_0x3032db['getRowIndexes'](_0x43a0f8),_0x50d643=_0x8243af?_0x24c3ac['first']-0x1:_0x24c3ac['last']+0x1,_0x30de25=_0x43a0f8[0x0]['findAncestor']('table'),_0x3106e5=_0x3032db['createTableWalker'](_0x30de25,{'startRow':_0x50d643,'endRow':_0x50d643}),_0x49a845=Array['from'](_0x3106e5)['map'](_0x3ef489=>_0x303197['createRangeOn'](_0x3ef489['cell']));_0x59f270['markMultiRangeInsertion'](_0x49a845,'tableRow');});});}for(const _0x5394d9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x287367=_0x1ff007['commands']['get'](_0x5394d9);_0x59f270['enableCommand'](_0x5394d9,_0x4df4b6=>{_0x1ff007['model']['change'](_0x3658ff=>{_0x4df4b6();const _0x18ab5a='left'===_0x287367['order'],_0x4e3b36=_0x3032db['getSelectionAffectedTableCells'](_0x215ef6),_0xcd3a34=_0x3032db['getColumnIndexes'](_0x4e3b36),_0x183015=_0x18ab5a?_0xcd3a34['first']-0x1:_0xcd3a34['last']+0x1,_0x3a03f2=_0x4e3b36[0x0]['findAncestor']('table'),_0x4d8b73=_0x3032db['createTableWalker'](_0x3a03f2,{'startRow':0x0,'column':_0x183015,'includeAllSlots':!0x1}),_0x283490=Array['from'](_0x4d8b73)['map'](_0x1b813c=>_0x3658ff['createRangeOn'](_0x1b813c['cell']));_0x59f270['markMultiRangeInsertion'](_0x283490,'tableColumn');});});}for(const _0x1b4d45 of['removeTableRow','removeTableColumn']){const _0x879ac0=_0x1b4d45['substr'](0xb),_0x1c48ed=_0x879ac0['toLowerCase'](),_0x5ed091=_0x1c48ed['substr'](0x0,0x3)+'span',_0x28b28c='table'+_0x879ac0,_0x4f59b2='min'+_0x879ac0,_0x15358b='max'+_0x879ac0;_0x59f270['enableCommand'](_0x1b4d45,()=>{_0x1ff007['model']['change'](_0x3b9534=>{const _0x1ff554=_0x3032db['getSelectionAffectedTableCells'](_0x215ef6),_0x2ebee2=_0x1ff554[0x0]['findAncestor']('table');let _0x3016cb;if('removeTableRow'==_0x1b4d45){const _0xf10d4b=_0x3032db['getRowIndexes'](_0x1ff554);_0x3016cb={'startRow':_0xf10d4b['first'],'endRow':_0xf10d4b['last'],'includeAllSlots':!0x0};}else{const _0xe3dc3f=_0x3032db['getColumnIndexes'](_0x1ff554);_0x3016cb={'startColumn':_0xe3dc3f['first'],'endColumn':_0xe3dc3f['last'],'includeAllSlots':!0x0};}const _0x1c7ff1=_0x3032db['createTableWalker'](_0x2ebee2,_0x3016cb),_0x472984=Array['from'](_0x1c7ff1)['map'](({cell:_0x5545d3})=>_0x5545d3),_0x54c51b=_e(_0x472984['filter'](_0x2f2cf5=>_0x2f2cf5['hasAttribute'](_0x5ed091))),_0x3117ee=_e(_0x472984['filter'](_0x535073=>!_0x535073['hasAttribute'](_0x5ed091)))['map'](_0x301c98=>_0x3b9534['createRangeOn'](_0x301c98)),_0x551d70=_0x59f270['markMultiRangeDeletion'](_0x3117ee,_0x28b28c);if(_0x551d70&&('tableRow'==_0x551d70['subType']||'tableColumn'==_0x551d70['subType'])){const _0x42448c=this['_getSuggestionCoords'](_0x551d70);for(const _0xa5ea80 of _0x54c51b){const _0x442794=_0x3b9534['createRangeOn'](_0xa5ea80),_0x3aa300=_0x3032db['getCellLocation'](_0xa5ea80),_0x1faa38=_0xa5ea80['getAttribute'](_0x5ed091)-0x1,_0x2a1b5b=_0x42448c[_0x4f59b2],_0x582f1e=_0x42448c[_0x15358b];_0x2a1b5b<=_0x3aa300[_0x1c48ed]&&_0x3aa300[_0x1c48ed]+_0x1faa38<=_0x582f1e&&_0x551d70['addRange'](_0x442794);}}});});}function _0x508746(_0x468426){const _0x829d67=Array['from'](_0x215ef6['getRanges']())['map'](_0x25d7bf=>_0x321f06['fromRange'](_0x25d7bf));_0x1ff007['model']['change'](_0x173765=>{const _0x10ac8c=_0x173765['batch'];_0x468426=_0x468426['filter'](_0x4e0896=>'$graveyard'!=_0x4e0896['root']['rootName']),_0x173765['setSelection'](_0x468426),_0x1ff007['commands']['get']('removeTableRow')['refresh'](),_0x1ff007['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1ff007['model']['enqueueChange'](()=>{_0x1ff007['model']['enqueueChange'](_0x10ac8c,_0x523188=>{const _0x229c5b=_0x829d67['filter'](_0x4975ce=>'$graveyard'!=_0x4975ce['root']['rootName']);_0x229c5b['length']>0x0&&_0x523188['setSelection'](_0x229c5b);for(const _0x5888f6 of _0x829d67)_0x5888f6['detach']();});});});}function _0x1dce4d(_0x3ac8c7){_0x1ff007['model']['change'](_0x1ccbc3=>{const _0x4c8582=Array['from'](_0x215ef6['getRanges']())['map'](_0x4e7b39=>_0x321f06['fromRange'](_0x4e7b39)),_0xa00a26=[];for(const _0x3e9c87 of _0x3ac8c7)for(const _0x1fa63e of _0x3e9c87['getItems']({'shallow':!0x0}))_0xa00a26['push'](_0x1fa63e);for(const _0x532060 of _0xa00a26)'$graveyard'!=_0x532060['root']['rootName']&&(_0x1ccbc3['setSelection'](_0x1ccbc3['createPositionAt'](_0x532060,0x0)),_0x1ff007['commands']['get']('removeTableColumn')['refresh'](),_0x1ff007['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2cd2f9=_0x4c8582['filter'](_0x42c82e=>'$graveyard'!=_0x42c82e['root']['rootName']);_0x2cd2f9['length']>0x0&&_0x1ccbc3['setSelection'](_0x2cd2f9);for(const _0x416bdb of _0x4c8582)_0x416bdb['detach']();});}function _0x49d2e0(_0x1c5f88,_0x50da2d){return _0x50da2d['every'](_0x2ae21a=>_0x1c5f88['some'](_0x411dcd=>_0x411dcd['end']['isEqual'](_0x2ae21a['start'])||_0x2ae21a['end']['isEqual'](_0x411dcd['start'])));}function _0x8f230c(_0xba12d,_0x452698){return!_0xba12d['some'](_0x37cbea=>_0x452698['some'](_0x364531=>_0x37cbea['isIntersecting'](_0x364531)))&&_0xba12d['some'](_0xbaa96e=>_0x452698['some'](_0x3aa03c=>_0xbaa96e['end']['isTouching'](_0x3aa03c['start'])));}_0x59f270['descriptionFactory']['registerDescriptionCallback'](_0x3f70fe=>{if('insertion'!=_0x3f70fe['type']&&'deletion'!=_0x3f70fe['type'])return;const _0x53b148=_0x3f70fe['getContainedElement']();if(null!=_0x53b148&&_0x53b148['is']('element','table')){if('insertion'==_0x3f70fe['type']){const _0x138548=_0x3f70fe['getItems']()['filter'](_0x7a5b08=>_0x7a5b08['is']('$textProxy'))['map'](_0x4a36c1=>_0x4a36c1['data']);if(_0x138548['length'])return{'type':'insertion','content':o(_0x1f9af5,'*Insert:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x138548['join']('\x20')+'\x22'))};}if('deletion'==_0x3f70fe['type']){const _0x36f24b=_0x3f70fe['getItems']()['filter'](_0x1469f7=>_0x1469f7['is']('$textProxy'))['map'](_0xb39918=>_0xb39918['data']);if(_0x36f24b['length'])return{'type':'deletion','content':o(_0x1f9af5,'*Remove:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36f24b['join']('\x20')+'\x22'))};}}}),_0x59f270['descriptionFactory']['registerDescriptionCallback'](_0x596e4d=>{if('tableRow'==_0x596e4d['subType']){const _0x375525=_0x596e4d['getItems']()['filter'](_0x2f24ac=>_0x2f24ac['is']('$textProxy'))['map'](_0xd3dd32=>_0xd3dd32['data']),_0x39b01e=this['_getSuggestionCoords'](_0x596e4d),_0x13c7e8=_0x39b01e['maxRow']-_0x39b01e['minRow']+0x1;if('insertion'==_0x596e4d['type'])return _0x375525['length']?{'type':'insertion','content':o(_0x1f9af5,'*Insert:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x13c7e8,'\x22'+_0x375525['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1f9af5,'*Insert:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_ROW',_0x13c7e8))};if('deletion'==_0x596e4d['type'])return _0x375525['length']?{'type':'deletion','content':o(_0x1f9af5,'*Remove:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x13c7e8,'\x22'+_0x375525['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1f9af5,'*Remove:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_ROW',_0x13c7e8))};}if('tableColumn'==_0x596e4d['subType']){const _0x417945=_0x596e4d['getItems']()['filter'](_0x2327c8=>_0x2327c8['is']('$textProxy'))['map'](_0x761f01=>_0x761f01['data']),_0x5b4ffc=this['_getSuggestionCoords'](_0x596e4d),_0x4a9c91=_0x5b4ffc['maxColumn']-_0x5b4ffc['minColumn']+0x1;if('insertion'==_0x596e4d['type'])return _0x417945['length']?{'type':'insertion','content':o(_0x1f9af5,'*Insert:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a9c91,'\x22'+_0x417945['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1f9af5,'*Insert:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_COLUMN',_0x4a9c91))};if('deletion'==_0x596e4d['type'])return _0x417945['length']?{'type':'deletion','content':o(_0x1f9af5,'*Remove:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a9c91,'\x22'+_0x417945['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1f9af5,'*Remove:*\x20%0',o(_0x1f9af5,'ELEMENT_TABLE_COLUMN',_0x4a9c91))};}}),_0x59f270['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x508746),_0x59f270['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x508746),_0x59f270['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1dce4d),_0x59f270['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1dce4d),_0x59f270['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x49d2e0),_0x59f270['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x49d2e0),_0x59f270['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x8f230c),_0x59f270['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x8f230c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x362bf1=this['editor'],_0x8ab298=_0x362bf1['model']['document']['selection'];return(_0x5966f2,_0x5900e9)=>{_0x362bf1['model']['change'](_0xe81d8f=>{const {commandName:_0x41efd0,commandParams:_0x1785f5}=_0x5900e9;let _0x58eecb=_0x5966f2[0x0]['end']['nodeBefore'];_0x1785f5&&_0x1785f5[0x0]&&!0x1===_0x1785f5[0x0]['forceValue']&&(_0x58eecb=_0x5966f2[0x0]['start']['nodeAfter']);const _0x35d69c=_0xe81d8f['createRangeIn'](_0x58eecb);if('$graveyard'==_0x35d69c['root']['rootName'])return;const _0x51b40b=Array['from'](_0x8ab298['getRanges']())['map'](_0x412dd3=>_0x321f06['fromRange'](_0x412dd3));_0xe81d8f['setSelection'](_0x35d69c),_0x362bf1['commands']['get'](_0x41efd0)['refresh'](),_0x1785f5['push']({'forceDefaultExecution':!0x0}),_0x362bf1['execute'](_0x41efd0,..._0x1785f5);const _0x5c07ce=_0x51b40b['filter'](_0x355c03=>'$graveyard'!=_0x355c03['root']['rootName']);_0x5c07ce['length']>0x0&&_0xe81d8f['setSelection'](_0x5c07ce);for(const _0x3f7e03 of _0x51b40b)_0x3f7e03['detach']();});};}['_getCoordsForCells'](_0x85825f){const _0x4eacb2=this['editor']['plugins']['get']('TableUtils');let _0x3747e3=Number['MAX_SAFE_INTEGER'],_0x25787=Number['MIN_SAFE_INTEGER'],_0x3fbd2f=Number['MAX_SAFE_INTEGER'],_0x1db552=Number['MIN_SAFE_INTEGER'];for(const _0x4dad40 of _0x85825f){if('$graveyard'==_0x4dad40['root']['rootName'])continue;const {row:_0xb5601,column:_0x4f9d1e}=_0x4eacb2['getCellLocation'](_0x4dad40),_0x5ae73d=_0x4dad40['hasAttribute']('rowspan')?_0x4dad40['getAttribute']('rowspan')-0x1:0x0,_0x52f0a9=_0x4dad40['hasAttribute']('colspan')?_0x4dad40['getAttribute']('colspan')-0x1:0x0;_0x3747e3=_0xb5601<_0x3747e3?_0xb5601:_0x3747e3,_0x25787=_0xb5601+_0x5ae73d>_0x25787?_0xb5601+_0x5ae73d:_0x25787,_0x3fbd2f=_0x4f9d1e<_0x3fbd2f?_0x4f9d1e:_0x3fbd2f,_0x1db552=_0x4f9d1e+_0x52f0a9>_0x1db552?_0x4f9d1e+_0x52f0a9:_0x1db552;}return{'minRow':_0x3747e3,'maxRow':_0x25787,'minColumn':_0x3fbd2f,'maxColumn':_0x1db552};}['_setupColumnsRowsFixing'](){const _0x549dc0=this['editor'],_0x8017dd=_0x549dc0['plugins']['get']('TrackChangesEditing'),_0x3a17b0=_0x549dc0['plugins']['get']('TableUtils');_0x549dc0['model']['document']['on']('change:data',()=>{const _0x4c2f20=Array['from'](_0x549dc0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25b671,data:_0x53216e}of _0x4c2f20){const {group:_0x213c7c,id:_0x3a34eb,subType:_0x4c14db}=_0x8017dd['_splitMarkerName'](_0x25b671);if('suggestion'!=_0x213c7c)continue;if(null!=_0x53216e['oldRange'])continue;const _0x38345b=_0x8017dd['getSuggestion'](_0x3a34eb);this['_tablePostFixingSubtypes']['includes'](_0x4c14db)&&this['_tableSuggestions']['add'](_0x38345b);}},{'priority':'low'});const _0x48615c=(_0x39ce9a,_0x3a3d94)=>{let _0x5d9665=!0x1;const _0x18702b=_0x3a3d94['createRangeOn'](_0x39ce9a),_0x4a8b5d=_0x39ce9a['findAncestor']('table'),_0x3b8a35=_0x3a17b0['getCellLocation'](_0x39ce9a);for(const _0x44cbea of this['_tableSuggestions']){const _0x5789c3=_0x44cbea['subType'],_0x6ed3dc=_0x5789c3['startsWith']('tablePaste'),_0x552b63=_0x5789c3['substr'](_0x6ed3dc?0xa:0x5),_0x3fcdcd=_0x552b63['toLowerCase'](),_0x43a13e=_0x3fcdcd['substr'](0x0,0x3)+'span',_0x221593='min'+_0x552b63,_0x43ef01='max'+_0x552b63;if(!_0x44cbea['isInContent'])continue;if(_0x4a8b5d!=_0x44cbea['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x44cbea['isIntersectingWithRange'](_0x18702b))continue;const _0x37b346=_0x39ce9a['hasAttribute'](_0x43a13e)?_0x39ce9a['getAttribute'](_0x43a13e)-0x1:0x0,_0x236889=this['_getSuggestionCoords'](_0x44cbea),_0x4d9220=_0x236889[_0x221593],_0xea22db=_0x236889[_0x43ef01];_0x4d9220<=_0x3b8a35[_0x3fcdcd]&&_0x3b8a35[_0x3fcdcd]+_0x37b346<=_0xea22db&&(_0x44cbea['addRange'](_0x18702b),_0x5d9665=!0x0);}return _0x5d9665;};_0x549dc0['model']['document']['registerPostFixer'](_0x36ea56=>{let _0x326929=!0x1;for(const _0x48d31c of _0x549dc0['model']['document']['differ']['getChanges']())if('insert'==_0x48d31c['type']){if('tableRow'==_0x48d31c['name']){for(const _0x48bc10 of _0x48d31c['position']['nodeAfter']['getChildren']())_0x326929=_0x326929||_0x48615c(_0x48bc10,_0x36ea56);}else'tableCell'==_0x48d31c['name']&&(_0x326929=_0x326929||_0x48615c(_0x48d31c['position']['nodeAfter'],_0x36ea56));}return _0x326929;});}['_getSuggestionCoords'](_0x5f3867){return this['_getCoordsForCells'](_0x5f3867['getRanges']()['map'](_0x24f874=>_0x24f874['start']['nodeAfter']));}}function _e(_0x74dd73){return Array['from'](new Set(_0x74dd73)['values']());}class Bt extends _0x1061bc{static get['requires'](){return[Dt];}['afterInit'](){const _0x5bdc12=this['editor'],_0x364f99=_0x5bdc12['model']['document']['selection'],_0x520939=_0x5bdc12['locale'];if(!_0x5bdc12['plugins']['has']('TableEditing'))return;const _0x1628d9=_0x5bdc12['plugins']['get']('TrackChangesEditing'),_0x48af60=_0x5bdc12['plugins']['get']('TableUtils'),_0x58db1f=_0x5bdc12['plugins']['get'](Dt);_0x58db1f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1628d9['enableCommand']('mergeTableCells',()=>{const _0x453fa3=_0x48af60['getSelectionAffectedTableCells'](_0x5bdc12['model']['document']['selection']);_0x5bdc12['model']['change'](()=>{_0x1628d9['markMultiRangeBlockFormat'](_0x453fa3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5bdc12['commands']['get']('mergeTableCells')['on']('execute',(_0x4a4eee,_0xbb98e9)=>{_0x5bdc12['commands']['get']('trackChanges')['value']&&(_0xbb98e9['length']>0x0&&_0xbb98e9[_0xbb98e9['length']-0x1]&&_0xbb98e9[_0xbb98e9['length']-0x1]['forceDefaultExecution']||_0x1628d9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4a4eee['stop']());},{'priority':'highest'});for(const _0x51c5a9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xdabe7f=_0x5bdc12['commands']['get'](_0x51c5a9);_0x1628d9['enableCommand'](_0x51c5a9,()=>{const _0xbeaff1=_0x5bdc12['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x52df2e=>_0x52df2e['is']('element','tableCell')),_0x4ddb58=_0xdabe7f['value'];_0x5bdc12['model']['change'](()=>{_0x1628d9['markMultiRangeBlockFormat']([_0xbeaff1,_0x4ddb58],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x45a419 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3d867e=_0x5bdc12['commands']['get'](_0x45a419);_0x1628d9['enableCommand'](_0x45a419,()=>{const _0x4946bb=_0x48af60['getSelectionAffectedTableCells'](_0x5bdc12['model']['document']['selection'])[0x0],_0x4a5de8=_0x4946bb['findAncestor']('table'),{column:_0x409cfc,row:_0x17e2ae}=_0x48af60['getCellLocation'](_0x4946bb);let _0x113d09=[];if('horizontally'==_0x3d867e['direction']){const _0x2c9d9d=_0x48af60['createTableWalker'](_0x4a5de8,{'startRow':_0x17e2ae,'endRow':_0x17e2ae,'includeAllSlots':!0x0});_0x113d09=Array['from'](_0x2c9d9d)['map'](_0x591980=>_0x591980['cell']);}else{const _0x161da6=_0x48af60['createTableWalker'](_0x4a5de8,{'column':_0x409cfc,'includeAllSlots':!0x0});_0x113d09=Array['from'](_0x161da6)['map'](_0x270100=>_0x270100['cell']);}_0x5bdc12['model']['change'](_0x42916c=>{_0x1628d9['markBlockFormat'](_0x42916c['createRangeOn'](_0x4946bb),{'commandName':_0x45a419,'commandParams':[]},_0x113d09,_0x45a419);});});}_0x1628d9['descriptionFactory']['registerDescriptionCallback'](_0x468a29=>{if('formatBlock'!=_0x468a29['type']&&'formatInline'!=_0x468a29['type'])return;const {data:_0x8e3fb4}=_0x468a29;return _0x8e3fb4&&'mergeTableCells'==_0x8e3fb4['commandName']?{'type':'format','content':o(_0x520939,'*Merge\x20cells*')}:void 0x0;}),_0x1628d9['descriptionFactory']['registerDescriptionCallback'](_0x776d34=>{if('formatBlock'!=_0x776d34['type']&&'formatInline'!=_0x776d34['type'])return;const {data:_0x45e7f5}=_0x776d34;return _0x45e7f5?'splitTableCellVertically'==_0x45e7f5['commandName']?{'type':'format','content':o(_0x520939,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x45e7f5['commandName']?{'type':'format','content':o(_0x520939,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x10380d=_0x58db1f['_acceptFormatSuggestionCallbackFactory']();for(const _0x355642 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1628d9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x355642,'accept',_0x10380d);for(const _0x185388 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1628d9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x185388,'accept',_0x10380d);_0x1628d9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x208501=>{_0x5bdc12['model']['change'](_0x199aec=>{const _0x1c9d90=Array['from'](_0x364f99['getRanges']())['map'](_0x1f983c=>_0x321f06['fromRange'](_0x1f983c));_0x199aec['setSelection'](_0x208501),_0x5bdc12['commands']['get']('mergeTableCells')['refresh'](),_0x5bdc12['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x565d93=_0x1c9d90['filter'](_0x4215e8=>'$graveyard'!=_0x4215e8['root']['rootName']);_0x565d93['length']>0x0&&_0x199aec['setSelection'](_0x565d93);for(const _0x57e796 of _0x1c9d90)_0x57e796['detach']();});});for(const _0x5799a5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xd89806=_0x5bdc12['commands']['get'](_0x5799a5);_0xd89806['on']('set:isEnabled',(_0x535cc6,_0x33887c,_0x5079e0)=>{if(_0x5079e0){const _0x4527a3=_0x5bdc12['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4dd7c0=>_0x4dd7c0['is']('element','tableCell'));this['_areMergableCells'](_0xd89806['value'],_0x4527a3)||(_0x535cc6['return']=!0x1,_0x535cc6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x14aefd=this['editor']['commands']['get']('mergeTableCells'),_0x49ed87=this['editor']['plugins']['get']('TableUtils');if(!_0x14aefd['isEnabled'])return!0x1;const _0x1cf39e=_0x49ed87['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x47537b of _0x1cf39e)for(const _0x4beac5 of _0x1cf39e)if(_0x47537b!=_0x4beac5&&!this['_areMergableCells'](_0x47537b,_0x4beac5))return!0x1;return!0x0;}['_areMergableCells'](_0x8844ba,_0x1d55e0){const _0x234120=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25f727=this['editor']['model']['createRangeOn'](_0x8844ba),_0x155696=this['editor']['model']['createRangeOn'](_0x1d55e0),_0x25f832=new Set(),_0x968c98=new Set();for(const _0x28f893 of _0x234120['getSuggestions']())if(('insertion'==_0x28f893['type']||'deletion'==_0x28f893['type']||'mergeTableCells'==_0x28f893['subType'])&&_0x28f893['isInContent']){for(const _0x58a6c1 of _0x28f893['getRanges']())_0x58a6c1['containsRange'](_0x25f727,!0x0)&&_0x25f832['add'](_0x28f893['type']+':'+_0x28f893['author']['id']),_0x58a6c1['containsRange'](_0x155696,!0x0)&&_0x968c98['add'](_0x28f893['type']+':'+_0x28f893['author']['id']);}if(_0x25f832['size']!=_0x968c98['size'])return!0x1;for(const _0x5bf4a4 of _0x25f832)if(!_0x968c98['has'](_0x5bf4a4))return!0x1;return!0x0;}}class Ot extends _0x1061bc{static get['requires'](){return[Dt];}['afterInit'](){const _0xdcdb61=this['editor'];if(!_0xdcdb61['plugins']['has']('TableEditing'))return;const _0x1e5752=_0xdcdb61['locale'],_0x383699=_0xdcdb61['plugins']['get']('TrackChangesEditing');_0x383699['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x383699['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x383699['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1e5752,'FORMAT_HEADER_ROW')),_0x383699['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1e5752,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54e145=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e0784=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x54e145['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2e0784),_0x54e145['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2e0784),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x590f98=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39156e=this['editor']['plugins']['get']('TableUtils');function _0x2e7375({showActiveMarker:_0x18aa44=!0x0,setDataAttribute:_0x2fb852=!0x0}={}){return(_0x4baff7,_0x5c4579,_0x45810c)=>{const {type:_0x33c8b1,id:_0x50e338}=_0x590f98['_splitMarkerName'](_0x5c4579['markerName']);if(!_0x590f98['hasSuggestion'](_0x50e338))return;const _0x437d0b=_0x590f98['getSuggestion'](_0x50e338),_0x521950=_0x437d0b['data'];if('formatBlock'!=_0x437d0b['type']||!_0x521950||'setTableColumnHeader'!=_0x521950['commandName'])return;if(_0x5c4579['item'])return void _0x4baff7['stop']();if(!_0x45810c['consumable']['consume'](_0x5c4579['markerRange'],_0x4baff7['name']))return;const _0x290e92=_0x5c4579['markerRange']['start']['nodeAfter'],_0x1a87ae=_0x5c4579['markerRange']['end']['nodeBefore'],_0x20407a=_0x290e92['parent']['parent'],{column:_0x53e78e}=_0x39156e['getCellLocation'](_0x290e92),{column:_0x1978e4}=_0x39156e['getCellLocation'](_0x1a87ae);for(let _0x426e21=_0x53e78e;_0x426e21<=_0x1978e4;_0x426e21++){const _0xbd9bd=_0x39156e['createTableWalker'](_0x20407a,{'column':_0x426e21,'includeAllSlots':!0x1});for(const _0x3cc7c5 of _0xbd9bd){const _0x5328bb=_0x3cc7c5['cell'],_0x1b8c07=_0x45810c['mapper']['toViewElement'](_0x5328bb);_0x45810c['writer']['addClass']('ck-suggestion-marker-'+_0x33c8b1,_0x1b8c07),_0x2fb852&&_0x45810c['writer']['setAttribute']('data-suggestion',_0x50e338,_0x1b8c07),_0x45810c['mapper']['bindElementToMarker'](_0x1b8c07,_0x5c4579['markerName']),_0x18aa44&&(_0x590f98['activeMarkers']['includes'](_0x5c4579['markerName'])?_0x45810c['writer']['addClass']('ck-suggestion-marker--active',_0x1b8c07):_0x45810c['writer']['removeClass']('ck-suggestion-marker--active',_0x1b8c07));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2e7375(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x519b90,_0x16916a,_0x5f59f9)=>{_0x5f59f9['options']['showSuggestionHighlights']&&_0x2e7375({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x519b90,_0x16916a,_0x5f59f9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5c1d3c,_0x32177c,_0x5e700a)=>{const {type:_0x1ca79d,id:_0x1affee}=_0x590f98['_splitMarkerName'](_0x32177c['markerName']);if(!_0x590f98['hasSuggestion'](_0x1affee))return;const _0x144176=_0x590f98['getSuggestion'](_0x1affee),_0x357989=_0x144176['data'];if('formatBlock'!=_0x144176['type']||!_0x357989||'setTableColumnHeader'!=_0x357989['commandName'])return;const _0x234ae9=_0x5e700a['mapper']['markerNameToElements'](_0x32177c['markerName']);if(_0x234ae9){for(const _0x5ab6f1 of _0x234ae9)_0x5e700a['writer']['removeClass']('ck-suggestion-marker-'+_0x1ca79d,_0x5ab6f1),_0x5e700a['writer']['removeClass']('ck-suggestion-marker--active',_0x5ab6f1),_0x5e700a['writer']['removeAttribute']('data-suggestion',_0x5ab6f1),_0x5e700a['mapper']['unbindElementFromMarkerName'](_0x5ab6f1,_0x32177c['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x59bef6=this['editor'],_0x1a287f=_0x59bef6['locale'];function _0x40cfca(_0x2fe10e){return{'type':'format','content':o(_0x1a287f,'*Format:*\x20%0',_0x2fe10e)};}_0x59bef6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x397644=>{if('formatBlock'!=_0x397644['type'])return;const {data:_0x51e846}=_0x397644;if(_0x51e846){if('setTableRowHeader'==_0x51e846['commandName']){const _0x422237=_0x51e846['commandParams'][0x0]['forceValue'];return _0x40cfca(o(_0x1a287f,_0x422237?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x51e846['commandName']){const _0x25002b=_0x51e846['commandParams'][0x0]['forceValue'];return _0x40cfca(o(_0x1a287f,_0x25002b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x1061bc{['afterInit'](){const _0x3b6e45=this['editor'],_0x9ea1e8=_0x3b6e45['locale'],_0x50722b=_0x3b6e45['plugins']['get']('TrackChangesEditing');function _0x50fbe4(_0x4d1473){return{'type':'format','content':''+o(_0x9ea1e8,'*Set\x20table\x20type:*\x20%0',_0x4d1473)};}_0x3b6e45['plugins']['has']('TableLayout')&&(_0x50722b['enableCommand']('insertTableLayout'),_0x50722b['enableDefaultAttributesIntegration']('tableType'),_0x50722b['descriptionFactory']['registerElementLabel'](_0x221288=>_0x221288['is']('element','table')&&'layout'===_0x221288['getAttribute']('tableType'),_0x14c4d7=>o(_0x9ea1e8,'ELEMENT_LAYOUT_TABLE',_0x14c4d7)),_0x50722b['descriptionFactory']['registerDescriptionCallback'](_0x4d7357=>{const {data:_0x3adbf6}=_0x4d7357;if(_0x3adbf6&&'tableType'==_0x3adbf6['key'])switch(_0x3adbf6['newValue']){case'layout':return _0x50fbe4(o(_0x9ea1e8,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x50fbe4(o(_0x9ea1e8,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x3c2e44=>[_0x3c2e44,null]));class Mt extends _0x1061bc{static get['requires'](){return[Dt];}['afterInit'](){const _0x3c5129=this['editor'];if(!_0x3c5129['plugins']['has']('TableClipboard'))return;const _0x53bd11=_0x3c5129['plugins']['get']('TrackChangesEditing'),_0x2aa63b=_0x3c5129['plugins']['get']('TableUtils'),_0x32a8c1=_0x3c5129['plugins']['get'](Dt),_0x4df360=_0x3c5129['plugins']['get']('TableClipboard'),_0xd6f18d=_0x3c5129['plugins']['get']('TableSelection'),_0x4e8a26=_0x3c5129['plugins']['get'](_0x25b63a);_0x32a8c1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3c5129['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3c5129['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5f04a9=null,_0x5da191=!0x1;_0x4e8a26['on']('contentInsertion',(_0x1b89c0,_0x9bc748)=>{_0x5da191='paste'===_0x9bc748['method'];}),_0x3c5129['model']['on']('insertContent',(_0xc6a628,_0x3fa7c2)=>{if(!_0x5da191&&null===_0xd6f18d['getSelectedTableCells']())return;const [_0x186fc4,_0x29cfd2]=_0x3fa7c2,_0x3c62e5=_0x3fa7c2[_0x3fa7c2['length']-0x1];_0x3c62e5&&_0x3c62e5['forceDefaultExecution']||_0x53bd11['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1570b4,_0x4fd1a7,_0x3f7874,_0x59c897,_0x3922e2){if(_0x4fd1a7&&!_0x4fd1a7['is']('documentSelection'))return!0x1;const _0x380c7a=_0x3922e2['getTableIfOnlyTableInContent'](_0x1570b4,_0x3f7874);if(!_0x380c7a||!Oe(_0x380c7a,void 0x0,_0x59c897))return!0x1;const _0x414112=_0x59c897['getSelectionAffectedTableCells'](_0x3f7874['document']['selection']);if(!_0x414112['length'])return!0x1;const _0x4da2ed=_0x414112[0x0]['findAncestor']('table'),_0x5b76ae=_0x59c897['getRowIndexes'](_0x414112),_0x44dc25=_0x59c897['getColumnIndexes'](_0x414112),_0x4c652a={'startRow':_0x5b76ae['first'],'endRow':_0x5b76ae['last'],'startColumn':_0x44dc25['first'],'endColumn':_0x44dc25['last']};return 0x1==_0x414112['length']&&(_0x4c652a['endRow']+=_0x59c897['getRows'](_0x380c7a)-0x1,_0x4c652a['endColumn']+=_0x59c897['getColumns'](_0x380c7a)-0x1),Oe(_0x4da2ed,_0x4c652a,_0x59c897);}(_0x186fc4,_0x29cfd2,_0x3c5129['model'],_0x2aa63b,_0x4df360)&&(_0xc6a628['stop'](),_0x5f04a9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3c5129['model']['change'](()=>{_0x3c5129['model']['insertContent'](_0x3fa7c2[0x0],_0x3fa7c2[0x1],_0x3fa7c2[0x2],{'forceDefaultExecution':!0x0});const _0x370217=_0x1b5ac0(),{rowInsertionRanges:_0x1ec58a,columnInsertionRanges:_0x4de2a5,insertionRanges:_0x2d1f09,deletionRanges:_0x3dad31,cells:_0x11b8e5}=_0x5f04a9;_0x1ec58a['length']&&_0x53bd11['markMultiRangeInsertion'](_0x1ec58a,'tablePasteRow',{'tablePasteChainId':_0x370217}),_0x4de2a5['length']&&_0x53bd11['markMultiRangeInsertion'](_0x4de2a5,'tablePasteColumn',{'tablePasteChainId':_0x370217}),_0x2d1f09['length']&&(_0x53bd11['markMultiRangeInsertion'](_0x2d1f09,'tablePaste',{'tablePasteChainId':_0x370217,'skipNestingCheck':!0x0}),_0x2d1f09['forEach'](_0xab238d=>_0xab238d['detach']?.())),_0x3dad31['length']&&(_0x53bd11['markMultiRangeDeletion'](_0x3dad31,'tablePaste',{'tablePasteChainId':_0x370217,'skipNestingCheck':!0x0}),_0x3dad31['forEach'](_0x4504d7=>_0x4504d7['detach']?.()));const _0x30bcfa=_0x53bd11['markMultiRangeBlockFormat'](_0x11b8e5['map'](({element:_0xb40215})=>_0xb40215),{'formatGroupId':_0x1b5ac0()},[],'tablePasteCell',{'tablePasteChainId':_0x370217});if(_0x30bcfa){const _0x460f98=_0x30bcfa['getMarkers'](),_0x2a2135=[];for(const {element:_0x5eecfe,attributes:_0x423fad}of _0x11b8e5){if(!_0x423fad)continue;const _0x4583dd=_0x3c5129['model']['createRangeOn'](_0x5eecfe),_0x418acd=_0x460f98['find'](_0x863452=>_0x863452['getRange']()['isEqual'](_0x4583dd));_0x418acd&&_0x2a2135['push']([_0x418acd['name'],_0x423fad]);}_0x2a2135['length']&&_0x30bcfa['setAttribute']('markerAttributes',Object['fromEntries'](_0x2a2135));}_0x5f04a9=null;}));},{'priority':_0x5bf0fe['high']+0xa}),_0x4e8a26['on']('contentInsertion',()=>{_0x5da191=!0x1;},{'priority':'lowest'}),_0x3c5129['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x195999,_0x10371d)=>{const [_0x13f821,_0x2743eb,,_0x1d4887]=_0x10371d;if(!_0x5f04a9)return;_0x195999['stop']();const _0x235370=_0x13f821['cell'],_0x2bbc8a=_0x2743eb,_0x5f4371=Be(_0x235370),_0x511830=Be(_0x2bbc8a);_0x195999['return']=_0x235370;let _0x48384f=null,_0x46f894=null;if(_0x511830||_0x5f4371){if(_0x5f4371&&!_0x511830){_0x1d4887['remove'](_0x235370['getChild'](0x0));for(const _0x1e8d94 of Array['from'](_0x2bbc8a['getChildren']()))_0x1d4887['insert'](_0x1e8d94,_0x235370,'end');const _0x2272df=_0x5f04a9['rowInsertionIndexes']['includes'](_0x13f821['row']),_0x2676eb=_0x5f04a9['columnInsertionIndexes']['includes'](_0x13f821['column']);_0x2272df||_0x2676eb||(_0x48384f=_0x321f06['fromRange'](_0x1d4887['createRangeIn'](_0x235370)));}else _0x511830&&!_0x5f4371&&(_0x46f894=_0x1d4887['createRangeIn'](_0x235370));}else{const _0x386cce=_0x1d4887['createElement']('tableCellSuggestion'),_0x3d5f84=_0x1d4887['createElement']('tableCellSuggestion');_0x1d4887['wrap'](_0x1d4887['createRangeIn'](_0x235370),_0x3d5f84),_0x1d4887['insert'](_0x386cce,_0x235370,0x0);for(const _0x20baf1 of Array['from'](_0x2bbc8a['getChildren']()))_0x1d4887['insert'](_0x20baf1,_0x386cce,'end');_0x48384f=_0x321f06['fromRange'](_0x1d4887['createRangeOn'](_0x386cce)),_0x46f894=_0x321f06['fromRange'](_0x1d4887['createRangeOn'](_0x3d5f84));}const _0x26dee9=Array['from'](_0x2bbc8a['getAttributes']())['filter'](([_0x46186f])=>Re['includes'](_0x46186f));_0x5f04a9['cells']['push']({'element':_0x235370,'attributes':_0x26dee9['length']?Object['fromEntries'](_0x26dee9):null}),_0x48384f&&_0x5f04a9['insertionRanges']['push'](_0x48384f),_0x46f894&&_0x5f04a9['deletionRanges']['push'](_0x46f894);},{'priority':'high'}),_0x2aa63b['on']('insertColumns',(_0x27c7fa,_0x48d7c0)=>{const [_0x403749,_0x43abad={}]=_0x48d7c0;if(!_0x5f04a9)return;const _0x3b4c99=_0x43abad['at']||0x0,_0x5b0048=_0x43abad['columns']||0x1;_0x5f04a9['columnInsertionIndexes']=new Array(_0x5b0048)['fill'](_0x3b4c99)['map']((_0x524868,_0x43ea7a)=>_0x524868+_0x43ea7a);for(const {cell:_0x4570de}of _0x2aa63b['createTableWalker'](_0x403749,{'startColumn':_0x3b4c99,'endColumn':_0x3b4c99+_0x5b0048-0x1}))_0x5f04a9['columnInsertionRanges']['push'](_0x3c5129['model']['createRangeOn'](_0x4570de));},{'priority':'low'}),_0x2aa63b['on']('insertRows',(_0x479ee9,_0x477e02)=>{const [_0x18386c,_0x43c73d={}]=_0x477e02;if(!_0x5f04a9)return;const _0x214697=_0x43c73d['at']||0x0,_0x3be114=_0x43c73d['rows']||0x1;_0x5f04a9['rowInsertionIndexes']=new Array(_0x3be114)['fill'](_0x214697)['map']((_0x5e5ff1,_0x21f41f)=>_0x5e5ff1+_0x21f41f);for(const {cell:_0x58dfb2}of _0x2aa63b['createTableWalker'](_0x18386c,{'startRow':_0x214697,'endRow':_0x214697+_0x3be114-0x1}))_0x5f04a9['rowInsertionRanges']['push'](_0x3c5129['model']['createRangeOn'](_0x58dfb2));},{'priority':'low'}),_0x53bd11['descriptionFactory']['registerDescriptionCallback'](_0x16074f=>{if(_0x16074f['subType']&&_0x16074f['subType']['startsWith']('tablePaste'))return _0x16074f['previous']?{}:{'type':'insertion','content':o(_0x3c5129['locale'],'*Replace\x20table\x20cells*')};});const _0x29675d=()=>!0x1;for(const _0x4f2fd6 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x53bd11['_suggestionFactory']['registerCustomCallback']('insertion',_0x4f2fd6,'join',_0x29675d),_0x53bd11['_suggestionFactory']['registerCustomCallback']('deletion',_0x4f2fd6,'join',_0x29675d),_0x53bd11['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4f2fd6,'join',_0x29675d);_0x53bd11['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x29675d),_0x53bd11['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2cdcfb,_0x30094c,_0xbbd3ff)=>{const _0x2961dc=_0x2cdcfb['map'](_0x53ba8c=>_0x53ba8c['getContainedElement']())['filter'](_0x493a53=>_0x493a53),_0x435b0c=new Map(_0x2961dc['map'](_0x4582a5=>[_0x4582a5,null]));if(_0x5f04a9){for(const {element:_0x290ba9,attributes:_0x1d0119}of _0x5f04a9['cells'])_0x1d0119&&_0x435b0c['set'](_0x290ba9,_0x1d0119);}else{if(_0xbbd3ff&&_0xbbd3ff['markerAttributes'])for(const [_0x16313,_0x486ad7]of Object['entries'](_0xbbd3ff['markerAttributes'])){const _0x3d0c0f=_0x3c5129['model']['markers']['get'](_0x16313),_0x1ff5fd=_0x3d0c0f?_0x3d0c0f['getRange']()['getContainedElement']():null;_0x1ff5fd&&_0x435b0c['set'](_0x1ff5fd,_0x486ad7);}}_0x3c5129['model']['change'](_0x24b86c=>{for(const [_0x111845,_0xd06e4d]of _0x435b0c)_0x24b86c['setAttributes']({...Ae,..._0xd06e4d},_0x111845);});});const _0x2f951e=(_0x49dc09,_0x45e220)=>{_0x53bd11['_suggestionFactory']['registerCustomCallback'](_0x49dc09,'tablePaste',_0x45e220,(_0x2b3b6d,_0x512d7e,_0xe70f92)=>{_0x3c5129['model']['change'](_0xb48256=>{const _0x14238b=[];for(const _0x455a3f of _0x2b3b6d){const _0x52fcc6=_0x455a3f['start']['nodeAfter'];_0x52fcc6['is']('element','tableCellSuggestion')&&_0x14238b['push'](_0x52fcc6);}_0x53bd11['_suggestionFactory']['getSuggestionCallback'](_0x49dc09,null,_0x45e220)(_0x2b3b6d,_0x512d7e,_0xe70f92);for(const _0xe2eed0 of _0x14238b)'$graveyard'!=_0xe2eed0['root']['rootName']&&_0xb48256['unwrap'](_0xe2eed0);});});};_0x2f951e('insertion','accept'),_0x2f951e('insertion','discard'),_0x2f951e('deletion','accept'),_0x2f951e('deletion','discard'),_0x53bd11['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x362c4c=>{const _0x529386=_0x362c4c['map'](_0x51fcab=>_0x51fcab['getContainedElement']()),_0x2a88dc=_0x529386[0x0]['findAncestor']('table'),{minRow:_0x16d718,maxRow:_0x3e3efd}=_0x32a8c1['_getCoordsForCells'](_0x529386);_0x2aa63b['removeRows'](_0x2a88dc,{'at':_0x16d718,'rows':_0x3e3efd-_0x16d718+0x1});}),_0x53bd11['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x34ee2b=>{const _0x3b0334=_0x34ee2b['map'](_0x3e9de5=>_0x3e9de5['getContainedElement']()),_0x21afdf=_0x3b0334[0x0]['findAncestor']('table'),{minColumn:_0x1be157,maxColumn:_0x39b598}=_0x32a8c1['_getCoordsForCells'](_0x3b0334);_0x2aa63b['removeColumns'](_0x21afdf,{'at':_0x1be157,'columns':_0x39b598-_0x1be157+0x1});});const _0xbddda1=(_0x455252,_0x1860e4)=>{if(!_0x1860e4['subType']||!_0x1860e4['subType']['startsWith']('tablePaste'))return;const _0x6b7462=_0x1860e4['attributes']['tablePasteChainId'],_0x5174df=_0x53bd11['getSuggestions']()['filter'](_0x28bb9a=>_0x28bb9a['isInContent']&&_0x28bb9a['attributes']&&_0x28bb9a['attributes']['tablePasteChainId']==_0x6b7462);_0x5174df['length']&&_0x1860e4['getAllAdjacentSuggestions']()['length']!=_0x5174df['length']&&_0x5174df['reduce']((_0x566caf,_0x37e3a2)=>(_0x566caf['next']=_0x37e3a2,_0x37e3a2['previous']=_0x566caf,_0x37e3a2));};function _0x3dab41(_0x5e6d23,_0x273ef1=!0x0){const {id:_0x1c06fb,authorId:_0x37ff85}=_0x53bd11['_splitMarkerName'](_0x5e6d23['markerName']),_0x32f155=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x25849c=_0x53bd11['activeMarkers']['includes'](_0x5e6d23['markerName']);return _0x25849c&&_0x32f155['push']('ck-suggestion-marker--active'),{'classes':_0x32f155,'attributes':{'data-suggestion':_0x1c06fb,'data-author-id':_0x37ff85},'priority':_0x25849c&&_0x273ef1?0xbc2:0xbb8};}_0x53bd11['on']('suggestionLoaded',_0xbddda1,{'priority':'high'}),_0x53bd11['on']('suggestionUnloaded',_0xbddda1,{'priority':'high'}),_0x3c5129['model']['document']['registerPostFixer'](()=>{let _0x4df458=!0x1;const _0x409675=Array['from'](_0x3c5129['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e8c35,data:_0x56478e}of _0x409675){const {group:_0x326d64,type:_0x2d753d,id:_0x12d7ec}=_0x53bd11['_splitMarkerName'](_0x4e8c35);if('suggestion'!=_0x326d64||'deletion'!=_0x2d753d||_0x56478e['oldRange'])continue;if(!_0x53bd11['hasSuggestion'](_0x12d7ec))continue;const _0x1c4645=_0x53bd11['getSuggestion'](_0x12d7ec)['getRanges'](),_0x22bf3f=_0x3c5129['plugins']['get']('Users')['me'];for(const _0x1a26fa of _0x53bd11['getSuggestions']()){if(!_0x1a26fa['isInContent']||_0x1a26fa['author']!=_0x22bf3f)continue;if('formatBlock'!=_0x1a26fa['type']||'tablePasteCell'!=_0x1a26fa['subType'])continue;if(_0x1a26fa['getRanges']()['every'](_0x56d4ba=>_0x1c4645['some'](_0x5f2874=>_0x5f2874['containsRange'](_0x56d4ba,!0x0)))){for(const _0x556620 of _0x1a26fa['getAllAdjacentSuggestions']())_0x556620['isInContent']&&(_0x556620['discard'](),_0x4df458=!0x0);}}}return _0x4df458;}),_0x3c5129['model']['document']['registerPostFixer'](_0x52ddbb=>{const _0x1841c1=_0x3c5129['commands']['get']('redo');if(!_0x1841c1||!_0x1841c1['_createdBatches']['has'](_0x52ddbb['batch']))return!0x1;let _0x2b15f4=!0x1;const _0x416295=_0x3c5129['plugins']['get']('Users')['me'],_0x341d3c=_0x3c5129['model']['document']['differ']['getChanges'](),_0x226434=Array['from'](_0x3c5129['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x52e937,data:_0x470f9f})=>{const {group:_0x3b9fbf,subType:_0x2debb6,authorId:_0xd4a0da}=_0x53bd11['_splitMarkerName'](_0x52e937);return'suggestion'==_0x3b9fbf&&'tablePaste'==_0x2debb6&&_0xd4a0da==_0x416295['id']&&!_0x470f9f['oldRange'];});for(const _0x35dd52 of _0x341d3c){if('insert'!=_0x35dd52['type']||'tableCellSuggestion'!=_0x35dd52['name']||0x1!=_0x35dd52['length'])continue;const _0x148536=_0x52ddbb['createRange'](_0x35dd52['position'],_0x35dd52['position']['getShiftedBy'](0x1));if(!_0x226434['find'](({data:_0x8d88ae})=>_0x8d88ae['newRange']['isEqual'](_0x148536))){for(const {name:_0x29ff4d,data:_0x565589}of _0x226434)if(_0x148536['containsRange'](_0x565589['newRange'])){_0x52ddbb['updateMarker'](_0x29ff4d,{'range':_0x148536}),_0x2b15f4=!0x0;break;}}}return _0x2b15f4;}),_0x3c5129['model']['document']['registerPostFixer'](_0x24fbf3=>{let _0x5e5764=!0x1;const _0x59b8e4=_0x3c5129['plugins']['get']('Users')['me'],_0x430d5=_0x53bd11['getSuggestions']()['filter'](_0x56a87f=>_0x56a87f['isInContent']&&_0x56a87f['author']==_0x59b8e4),_0x287a4a=new Set(),_0x3ccfe6=new Set();for(const _0x299109 of _0x430d5)if('tablePaste'==_0x299109['subType'])for(const _0x36d0a6 of _0x299109['getMarkers']()){const _0x563d3a=_0x36d0a6['getRange']()['getContainedElement']();if(_0x563d3a){if(_0x563d3a['is']('element','tableCellSuggestion')&&Be(_0x563d3a)){_0x299109['removeMarker'](_0x36d0a6['name']),_0x287a4a['add'](_0x563d3a),_0x5e5764=!0x0;const _0x3c2d39=_0x563d3a['nextSibling'],_0x4da09b=_0x563d3a['previousSibling'],_0x4cfe74=_0x3c2d39&&_0x3c2d39['is']('element','tableCellSuggestion'),_0x433260=_0x4da09b&&_0x4da09b['is']('element','tableCellSuggestion');_0x4cfe74&&!_0x287a4a['has'](_0x3c2d39)&&_0x3ccfe6['add'](_0x3c2d39),_0x433260&&!_0x287a4a['has'](_0x4da09b)&&_0x3ccfe6['add'](_0x4da09b);}else _0x563d3a['is']('element','paragraph')&&_0x563d3a['isEmpty']&&(_0x299109['removeMarker'](_0x36d0a6['name']),_0x5e5764=!0x0);}}else{if('tablePasteCell'==_0x299109['subType']){if(!_0x299109['attributes']||!_0x299109['attributes']['tablePasteChainId'])continue;const _0x275788=_0x299109['attributes']['markerAttributes'];if(_0x275788&&Object['keys'](_0x275788)['length'])continue;const _0x313bed=_0x299109['attributes']['tablePasteChainId'];let _0x118664=!0x0,_0x3a36be=!0x0;for(const _0x12fb2c of _0x430d5)if(_0x12fb2c['subType']&&_0x12fb2c['subType']['startsWith']('tablePaste')){if(!_0x12fb2c['attributes']['tablePasteChainId']){_0x3a36be=!0x1;break;}if(_0x12fb2c['id']!=_0x299109['id']&&_0x12fb2c['attributes']['tablePasteChainId']==_0x313bed){_0x118664=!0x1;break;}}_0x3a36be&&_0x118664&&(_0x299109['removeMarkers'](),_0x5e5764=!0x0);}}for(const _0xc08735 of _0x287a4a)_0x24fbf3['remove'](_0xc08735);for(const _0x236da7 of _0x3ccfe6)_0x24fbf3['unwrap'](_0x236da7);return _0x5e5764;}),_0x3c5129['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4cb6ec=>_0x3dab41(_0x4cb6ec),'converterPriority':'high'}),_0x3c5129['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5eb00c,_0x3c90a6)=>_0x3c90a6['options']['showSuggestionHighlights']?_0x3dab41(_0x5eb00c,!0x1):null,'converterPriority':'high'});const _0x6ff38=_0x3c5129['editing']['view'];this['listenTo'](_0x6ff38['document'],'clipboardOutput',(_0x217637,_0x2ba1bd)=>{const _0x54ba0e=[];for(const _0x19908c of _0x6ff38['createRangeIn'](_0x2ba1bd['content'])['getItems']())_0x19908c['is']('element','suggestion-td')&&_0x54ba0e['push'](_0x19908c);_0x6ff38['change'](_0x87f697=>{for(const _0x259f21 of _0x54ba0e)_0x87f697['move'](_0x87f697['createRangeIn'](_0x259f21),_0x87f697['createPositionBefore'](_0x259f21)),_0x87f697['remove'](_0x259f21);});});}}function Be(_0x46eac6){if(_0x46eac6['isEmpty'])return!0x0;const _0x48fc08=_0x46eac6['getChild'](0x0);return _0x48fc08['is']('element','paragraph')&&_0x48fc08['isEmpty'];}function Oe(_0xdc3e06,_0x5b5646={},_0x585e0b){for(const {isAnchor:_0x1cd964,cellHeight:_0x2e0f23,cellWidth:_0x48ac71}of _0x585e0b['createTableWalker'](_0xdc3e06,{'includeAllSlots':!0x0,..._0x5b5646}))if(!_0x1cd964||0x1!=_0x2e0f23||0x1!=_0x48ac71)return!0x1;return!0x0;}class Rt extends _0x1061bc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x893bf1=this['editor']['plugins']['get']('TrackChangesEditing');_0x893bf1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x893bf1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x893bf1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x893bf1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x893bf1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x893bf1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xff0489,_0xe9e83c){const _0x2fb881=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbf1c19=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5af5c0=_0xe9e83c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x549e28=_0xbf1c19['getColumnGroupElement'](_0x5af5c0);let _0x4e762e=_0x549e28?_0xbf1c19['getTableColumnsWidths'](_0x549e28):null,_0x173609=_0x5af5c0['getAttribute']('tableWidth')||null;const _0x58e84e=_0xe9e83c['tableWidth']||_0x173609,_0x290648=_0xe9e83c['columnWidths']||_0x4e762e,_0x2c5cd1=this['editor']['plugins']['get']('Users')['me'];for(const _0x2e812f of _0x2fb881['getSuggestions']()){const _0x3664ee=_0x2e812f['getContainedElement']();if('resizeTable'===_0x2e812f['subType']&&_0x3664ee===_0x5af5c0){_0x2e812f['author']!==_0x2c5cd1&&_0x2e812f['discard']();const _0x324343=_0x2e812f['data']['commandParams'];_0x173609=_0x324343[0x0]['tableWidth'],_0x4e762e=_0x324343[0x0]['columnWidths'];break;}}_0xff0489({'table':_0x5af5c0,'tableWidth':_0x58e84e,'columnWidths':_0x290648}),_0x2fb881['markBlockFormat'](_0x5af5c0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x173609,'columnWidths':_0x4e762e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x16bca7){if('formatBlock'!=_0x16bca7['type']&&'formatInline'!=_0x16bca7['type'])return;const {data:_0x1c5fe3}=_0x16bca7;if(_0x1c5fe3&&'resizeTable'===_0x1c5fe3['formatGroupId']){const _0x16664f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x16664f)};}}}class Tt extends _0x1061bc{['afterInit'](){const _0x45799b=this['editor'];_0x45799b['plugins']['has']('Template')&&_0x45799b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x1061bc{['afterInit'](){const _0x57a280=this['editor'];if(!_0x57a280['commands']['get']('insertTableOfContents'))return;_0x57a280['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4cb210=_0x57a280['plugins']['get']('TrackChangesEditing'),_0x120701=_0x57a280['locale'];_0x4cb210['descriptionFactory']['registerElementLabel']('tableOfContents',_0x473c83=>o(_0x120701,'ELEMENT_TABLE_OF_CONTENTS',_0x473c83));}}class Ut extends _0x1061bc{['afterInit'](){const _0x2bee6a=this['editor'];if(!_0x2bee6a['plugins']['has']('Title'))return;const _0xf44f40=_0x2bee6a['plugins']['get']('TrackChangesEditing');_0xf44f40['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2bee6a['locale'],'ELEMENT_TITLE')),_0x2bee6a['model']['document']['registerPostFixer'](_0x1f1112=>{let _0x5d2425=!0x1;const _0x10124e=Array['from'](_0x2bee6a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47b683,data:_0x481b9e}of _0x10124e){const {group:_0x1aa24f}=_0xf44f40['_splitMarkerName'](_0x47b683);if('suggestion'!==_0x1aa24f||!_0x481b9e['newRange'])continue;const _0x39187d=_0x481b9e['newRange'],_0x56d060=_0x39187d['end']['nodeBefore'];if(!_0x56d060||!_0x56d060['is']('element','title-content'))continue;if(!_0x39187d['start']['isTouching'](_0x39187d['end']))continue;const _0x1082ae=_0x2bee6a['model']['schema']['getNearestSelectionRange'](_0x39187d['end'],'forward');if(_0x1082ae&&_0x1082ae['isCollapsed']){const _0x1ec014=_0x1f1112['createRange'](_0x39187d['start'],_0x1082ae['start']);_0x1ec014['isEqual'](_0x39187d)||(_0x1f1112['updateMarker'](_0x47b683,{'range':_0x1ec014}),_0x5d2425=!0x0);}_0x5d2425||(_0x1f1112['removeMarker'](_0x47b683),_0x5d2425=!0x0);}return _0x5d2425;});}}class Vt extends _0x1061bc{['afterInit'](){const _0x37d39d=this['editor'],_0x1815da=_0x37d39d['plugins']['get']('TrackChangesEditing');_0x37d39d['plugins']['has']('Uploadcare')&&(_0x1815da['enableCommand']('uploadcare'),_0x37d39d['plugins']['has']('UploadcareImageEdit')&&(_0x1815da['enableCommand']('uploadcareImageEdit'),_0x1815da['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1815da['descriptionFactory']['registerDescriptionCallback'](_0x28e9a1=>{if('attribute'!=_0x28e9a1['type'])return;const {data:_0x3c430c}=_0x28e9a1;return _0x3c430c&&'uploadcareImageId'==_0x3c430c['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x1061bc{['afterInit'](){const _0x65b134=this['editor'],_0x25679c=_0x65b134['plugins']['get']('TrackChangesEditing');_0x65b134['plugins']['has']('UndoEditing')&&(_0x25679c['enableCommand']('undo'),_0x25679c['enableCommand']('redo'));}}class Pt extends _0x1061bc{static get['requires'](){return[Dt];}['afterInit'](){const _0x31c35d=this['editor'];if(!_0x31c35d['plugins']['has']('TableCaptionEditing'))return;_0x31c35d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x1061bc{['tableProperties'];['tableCellProperties'];constructor(_0x324860){super(_0x324860),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x324860['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x592f0c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x41b43e of this['tableProperties'])_0x592f0c['enableCommand'](_0x41b43e,(_0x17ed4d,_0x41bc57)=>{const _0x389ee5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x41b43e,[_0x389ee5],this['tableProperties'],'tableProperties',_0x17ed4d,_0x41bc57);});_0x592f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x592f0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x184ad0,_0xd4cea4)=>this['handleDiscardAction'](this['tableProperties'],_0x184ad0,_0xd4cea4)),_0x592f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x48b84e of this['tableCellProperties'])this['editor']['commands']['get'](_0x48b84e)&&_0x592f0c['enableCommand'](_0x48b84e,(_0x3f907f,_0x2dfe70)=>{const _0x3b1afa=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x48b84e,_0x3b1afa,this['tableCellProperties'],'tableCellProperties',_0x3f907f,_0x2dfe70);});_0x592f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x592f0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x434610,_0x2867e3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x434610,_0x2867e3)),_0x592f0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x592f0c['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x592f0c['descriptionFactory']['registerDescriptionCallback'](_0x479f0e=>this['handleSuggestionDescription'](_0x479f0e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x19c18f,_0xcbbd97,_0x3870ac,_0x46b832,_0x1fe5bb,_0x547804){const _0x5edc49=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x547804['batch'],()=>{for(const _0x928a3f of _0xcbbd97){if(this['_getSuggestion'](_0x928a3f,_0x46b832))_0x1fe5bb(_0x547804);else{const _0x1eb05d={};for(const _0xd3a847 of _0x3870ac){const _0x11f4a7=_0x928a3f['getAttribute'](_0xd3a847);void 0x0!==_0x11f4a7&&(_0x1eb05d[_0xd3a847]=_0x11f4a7);}_0x1fe5bb(_0x547804),_0x5edc49['markBlockFormat'](_0x928a3f,{'commandParams':[_0x1eb05d]},[],_0x46b832);}}});}['handleDiscardAction'](_0x366270,_0x58ce2b,_0x47f60b){const _0x4a1ad1=_0x58ce2b[0x0]['start']['nodeAfter'],_0x1b1f85=_0x47f60b['commandParams'][0x0];this['editor']['model']['change'](_0x2aa5d4=>{for(const _0x1a1db2 of _0x366270)void 0x0!==_0x1b1f85[_0x1a1db2]?_0x2aa5d4['setAttribute'](_0x1a1db2,_0x1b1f85[_0x1a1db2],_0x4a1ad1):_0x2aa5d4['removeAttribute'](_0x1a1db2,_0x4a1ad1);});}['handleSuggestionDescription'](_0x2f846a){if(_0x2f846a['data'])switch(_0x2f846a['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'](_0xb60043,_0x10bc74){const _0xebaa42=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x377e6a of _0xebaa42['getSuggestions']({'skipNotAttached':!0x0})){const _0x662047=_0x377e6a['getContainedElement']();if(_0x377e6a['subType']===_0x10bc74&&_0x662047===_0xb60043)return _0x377e6a;}return null;}['_registerTablePropertiesAttributes'](){const _0x13d3c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x329959=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x109d82 of _0x329959){const _0x18aa66=_0x109d82['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x13d3c4['descriptionFactory']['registerAttributeLabel'](_0x109d82,o(this['editor']['locale'],'FORMAT_'+_0x18aa66));}}}class Lt extends _0x1061bc{['afterInit'](){const _0x576f1e=this['editor'];if(!_0x576f1e['plugins']['has']('LineHeight'))return;const _0x35f0d7=_0x576f1e['plugins']['get']('TrackChangesEditing'),_0x1e77bd=_0x576f1e['locale'];_0x35f0d7['enableDefaultAttributesIntegration']('lineHeight'),_0x35f0d7['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1e77bd,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x1061bc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x5ea722,_0x14dd6c,_0xf99456,_0x52e720,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15e166){super(_0x15e166),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x585e2d,_0xafe96d,_0x2b090a,_0x33cb66)=>{this['_model']['change'](()=>{for(const _0x3608ab of[..._0x33cb66,..._0x2b090a])this['_model']['markers']['has'](_0x3608ab)&&_0x15e166['editing']['reconvertMarker'](_0x3608ab);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x15e166['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x15e166['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x15e166['config']['get']('trackChanges.trackFormatChanges'),_0x15e166['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x15e166['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x15e166,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3c20c6=this['editor'];_0x3c20c6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x41b9cc,{writer:_0x3c43b0})=>{let _0x69fdef='suggestion:'+_0x41b9cc['getAttribute']('suggestion-type')+':'+_0x41b9cc['getAttribute']('id');return _0x41b9cc['getAttribute']('marker-count')&&(_0x69fdef+=':'+_0x41b9cc['getAttribute']('marker-count')),_0x3c43b0['createElement']('$marker',{'data-name':_0x69fdef});}}),_0x3c20c6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3c20c6['model']['document']['registerPostFixer'](_0x5954a7=>{let _0x544d02=!0x1;const _0x300e7a=Array['from'](_0x3c20c6['model']['document']['differ']['getChangedMarkers']()),_0x2a810f=new Set();for(const {name:_0x29a2e5,data:_0x28c755}of _0x300e7a){const {group:_0x431a5f,type:_0x33065e,subType:_0xccb7ae,id:_0x1acd8a}=this['_splitMarkerName'](_0x29a2e5);if('suggestion'!==_0x431a5f)continue;const _0x2b4de4=_0xccb7ae?'suggestion:'+_0x33065e+':'+_0xccb7ae+':'+_0x1acd8a:'suggestion:'+_0x33065e+':'+_0x1acd8a,_0x5bc48d=_0x3c20c6['model']['markers']['getMarkersGroup'](_0x2b4de4),_0x5868ab=_0x3c20c6['model']['markers']['get'](_0x29a2e5),_0x6a0b06=this['_suggestions']['get'](_0x1acd8a);if(null!=_0x28c755['newRange']){'formatInline'==_0x33065e&&(_0x544d02=_0x544d02||Wt(_0x28c755['newRange'],_0x29a2e5,_0x5954a7,_0x3c20c6['model']['schema']));const _0x7796d2='attribute'==_0x33065e&&this['_isBlockAttribute'](_0xccb7ae['split']('|')[0x0]),_0x8ce057='attribute'==_0x33065e&&this['_isInlineAttribute'](_0xccb7ae['split']('|')[0x0]);if(_0x28c755['newRange']['isCollapsed']||'$graveyard'==_0x28c755['newRange']['root']['rootName']||'formatBlock'==_0x33065e&&!Qt(_0x28c755['newRange'])||_0x7796d2&&!Qt(_0x28c755['newRange'])||_0x8ce057&&Xt(_0x28c755['newRange'])||'deletion'==_0x33065e&&Xt(_0x28c755['newRange'])||_0x5868ab&&Yt(_0x5868ab,_0x5bc48d))_0x5954a7['removeMarker'](_0x29a2e5),_0x544d02=!0x0;else{if(!_0x6a0b06||!_0x6a0b06['isInContent'])continue;if(_0x28c755['newRange']&&_0x28c755['oldRange']&&_0x28c755['newRange']['isEqual'](_0x28c755['oldRange']))continue;_0x2a810f['add'](_0x6a0b06);}}}return _0x2a810f['size']>0x0&&(_0x544d02=!!this['_joinWithAdjacentSuggestions'](_0x2a810f)||_0x544d02),_0x544d02;}),_0x3c20c6['model']['document']['registerPostFixer'](_0x3573ae=>{let _0x1063c5=!0x1;for(const _0x4fa586 of _0x3c20c6['model']['document']['differ']['getChanges']())if('insert'==_0x4fa586['type'])for(const _0x48afb5 of this['_suggestions']['values']()){if(_0x48afb5['isMultiRange']||!_0x48afb5['isInContent'])continue;const _0x450f5b='formatBlock'==_0x48afb5['type'],_0x21cb8b=this['_getAttributeKey'](_0x48afb5),_0x391bc9=_0x21cb8b&&this['_isBlockAttribute'](_0x21cb8b);if(!_0x450f5b&&!_0x391bc9)continue;const _0x1f0bd9=_0x48afb5['getFirstRange']();if(_0x1f0bd9['start']['parent']!=_0x1f0bd9['end']['parent']&&!_0x1f0bd9['end']['isAtEnd']){const _0x18911e=_0x3c20c6['model']['createPositionAt'](_0x1f0bd9['start']['nodeAfter'],'end'),_0x1ba848=_0x3c20c6['model']['createRange'](_0x1f0bd9['start'],_0x18911e);_0x3573ae['updateMarker'](_0x48afb5['getFirstMarker'](),{'range':_0x1ba848}),_0x1063c5=!0x0;}}return _0x1063c5;}),_0x3c20c6['model']['document']['registerPostFixer'](_0xc0fd6e=>this['_processAttributeChanges'](_0xc0fd6e)),_0x3c20c6['model']['document']['registerPostFixer'](_0x5e08c3=>!_0x5e08c3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5e08c3)),_0x3c20c6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3c20c6['model']['document']['on']('change:data',(_0x343bd0,_0x5f1fd7)=>{if(!_0x5f1fd7['isLocal']||_0x5f1fd7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3f0c6d=_0x3c20c6['model']['document']['differ']['getChanges']();if(0x0==_0x3f0c6d['length'])return;const _0x522a7f=[],_0x3ceefd=_0x3f0c6d['filter'](_0x346f47=>'attribute'==_0x346f47['type']),_0x159801=_0x3f0c6d['filter'](_0x3dc2ef=>'insert'==_0x3dc2ef['type']&&'$text'!=_0x3dc2ef['name']);for(const _0xa73912 of _0x3ceefd)this['_isRegisteredAttribute'](_0xa73912['attributeKey'])&&_0x522a7f['push']({'key':_0xa73912['attributeKey'],'newValue':_0xa73912['attributeNewValue'],'oldValue':_0xa73912['attributeOldValue'],'range':Zt(_0xa73912['range'],_0x3c20c6['model'])});for(const _0x1a3c0c of _0x159801){if('rename'!=_0x1a3c0c['action']&&'refresh'!=_0x1a3c0c['action'])continue;const _0xad43b6=tn(_0x1a3c0c['position']['nodeAfter'],_0x3c20c6['model']),_0x37ee3f=_0x1a3c0c['before'];'rename'==_0x1a3c0c['action']&&_0x522a7f['push']({'key':m,'newValue':_0x1a3c0c['name'],'oldValue':_0x37ee3f['name'],'range':_0xad43b6});for(const [_0x446e4c,_0x2f3893]of _0x37ee3f['attributes']){if(!this['_isRegisteredAttribute'](_0x446e4c))continue;const _0x2cfc52=_0x1a3c0c['attributes']['get'](_0x446e4c);_0x2f3893!==_0x2cfc52&&_0x522a7f['push']({'key':_0x446e4c,'newValue':_0x2cfc52,'oldValue':_0x2f3893,'range':_0xad43b6});}for(const [_0xe03450,_0x1a605a]of _0x1a3c0c['attributes'])this['_isRegisteredAttribute'](_0xe03450)&&(_0x37ee3f['attributes']['has'](_0xe03450)||_0x522a7f['push']({'key':_0xe03450,'newValue':_0x1a605a,'oldValue':null,'range':_0xad43b6}));}0x0!=_0x522a7f['length']&&_0x3c20c6['model']['enqueueChange'](_0x5f1fd7,_0xd9342c=>{const _0x2d2d28=_0x1b5ac0();for(const {range:_0x15e451,key:_0x4a4554,oldValue:_0x220990,newValue:_0x21e634}of _0x522a7f)this['markAttributeChange'](_0x15e451,_0x4a4554,_0x220990,_0x21e634,{'groupId':_0x2d2d28});this['_reduceExistingSuggestions'](_0xd9342c,_0x522a7f);});},{'priority':'lowest'}),_0x3c20c6['model']['markers']['on']('update:suggestion',(_0x5668ee,_0x4a33d2,_0x46ab51)=>{if(null==_0x46ab51){const {id:_0x2f1f57}=this['_splitMarkerName'](_0x4a33d2['name']),_0x3532b5=this['_suggestions']['get'](_0x2f1f57);_0x3532b5&&_0x3532b5['addMarkerName'](_0x4a33d2['name']);}}),_0x3c20c6['model']['document']['on']('change:data',()=>{const _0x2391f7=Array['from'](_0x3c20c6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3a3881=>'suggestion'===this['_splitMarkerName'](_0x3a3881['name'])['group']);if(0x0===_0x2391f7['length'])return;_0x2391f7['sort']((_0x3edb91,_0x5b8c93)=>{const _0x171fdd=_0x3edb91['data']['oldRange'],_0x29844f=_0x5b8c93['data']['oldRange'];return null===_0x171fdd&&null===_0x29844f?0x0:null===_0x171fdd&&null!==_0x29844f?-0x1:null!==_0x171fdd&&null===_0x29844f?0x1:_0x171fdd['start']['isBefore'](_0x29844f['start'])?-0x1:0x1;});const _0x131d38=new Set(),_0x4712d4=new Set();for(const {name:_0x5040fe,data:_0x363262}of _0x2391f7){const {id:_0x39d864}=this['_splitMarkerName'](_0x5040fe);if(null===_0x363262['oldRange']){const _0x33ce3d=this['_handleNewSuggestionMarker'](_0x5040fe);_0x4712d4['add'](_0x33ce3d);}else{const _0x412675=this['_suggestions']['get'](_0x39d864);null!==_0x363262['newRange']||_0x412675['isInContent']?(_0x131d38['add'](_0x412675['head']),_0x4712d4['add'](_0x412675)):this['_removeSuggestion'](_0x412675);}}_0x4712d4['size']>0x0&&this['_refreshSuggestionsChain'](_0x4712d4);for(const _0x1715cc of _0x131d38)this['fire']('suggestionChanged',_0x1715cc);}),_0x3c20c6['model']['on']('applyOperation',(_0x588f7e,_0x22b65e)=>{const _0x12c76d=_0x22b65e[0x0];if(!this['_suggestions']['size'])return;if(!_0x12c76d['isDocumentOperation'])return;if(_0x12c76d['batch']['isUndo']||!_0x12c76d['batch']['isLocal'])return;let _0x355596,_0xbf6c9f;switch(_0x12c76d['type']){case'insert':_0x355596=_0x3c20c6['model']['createPositionAt'](_0x12c76d['position']),_0xbf6c9f=_0x355596['getShiftedBy'](_0x12c76d['howMany']);break;case'split':_0x355596=_0x3c20c6['model']['createPositionAt'](_0x12c76d['splitPosition']),_0xbf6c9f=_0x3c20c6['model']['createPositionAt'](_0x12c76d['moveTargetPosition']);break;case'move':_0x355596=_0x3c20c6['model']['createPositionAt'](_0x12c76d['targetPosition']),_0xbf6c9f=_0x355596['getShiftedBy'](_0x12c76d['howMany']);break;default:return;}const _0x305336=_0x3c20c6['model']['createRange'](_0x355596,_0xbf6c9f);_0x3c20c6['model']['change'](()=>{for(const {suggestion:_0x58507a,meta:_0x4c1275}of this['_findSuggestions'](_0x305336)){if(_0x58507a['isMultiRange'])continue;if('formatInline'==_0x58507a['type'])continue;const _0xd65a0e=this['_getAttributeKey'](_0x58507a);if(_0xd65a0e&&this['_isBlockAttribute'](_0xd65a0e)&&'split'!=_0x12c76d['type'])continue;const _0x3cbc79=_0x58507a['data']&&_0x58507a['data']['multipleBlocks'];('formatBlock'!=_0x58507a['type']||'split'==_0x12c76d['type']&&!_0x3cbc79)&&(_0x4c1275['containsRangeInObject']||'insertion'==_0x58507a['type']&&_0x4c1275['isOwn']||_0x58507a['getFirstRange']()['containsRange'](_0x305336)&&this['_breakSuggestionMarker'](_0x58507a,_0x355596,_0xbf6c9f));}});},{'priority':'lowest'}),_0x3c20c6['model']['on']('deleteContent',(_0x38f22b,_0x128847)=>{const _0x25828b=_0x128847[0x0],_0x4b0e53=_0x128847[0x1];if(_0x4b0e53&&_0x4b0e53['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x25828b['isCollapsed'])return;const _0x4fc33f=_0x3c20c6['model']['schema'],{start:_0x22cb14,end:_0x1656d3}=_0x25828b['getFirstRange'](),_0x439014=_0x22cb14['nodeAfter']&&_0x4fc33f['isLimit'](_0x22cb14['nodeAfter'])?null:_0x4fc33f['getNearestSelectionRange'](_0x22cb14,'forward'),_0x2a97c0=_0x1656d3['nodeBefore']&&_0x4fc33f['isLimit'](_0x1656d3['nodeBefore'])?null:_0x4fc33f['getNearestSelectionRange'](_0x1656d3,'backward'),_0x56f488=_0x3c20c6['model']['createRange'](_0x439014?_0x439014['start']:_0x22cb14,_0x2a97c0?_0x2a97c0['end']:_0x1656d3);_0x3c20c6['model']['change'](_0x11fb70=>{this['markDeletion'](_0x56f488);const _0x3bd3e9=_0x3c20c6['model']['schema']['getNearestSelectionRange'](_0x56f488['start']);_0x25828b['is']('documentSelection')?_0x11fb70['setSelection'](_0x3bd3e9):_0x25828b['setTo'](_0x3bd3e9);}),_0x38f22b['stop']();},{'priority':_0x5bf0fe['normal']+0xa}),_0x3c20c6['model']['on']('insertContent',(_0x57f64c,_0x303ce3)=>{const _0x1f38b8=_0x303ce3[_0x303ce3['length']-0x1];_0x1f38b8&&_0x1f38b8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3c20c6['model']['change'](()=>{let _0x550e53=_0x3c20c6['model']['insertContent'](_0x303ce3[0x0],_0x303ce3[0x1],_0x303ce3[0x2],{'forceDefaultExecution':!0x0});if(!_0x550e53)return;_0x57f64c['return']=_0x550e53['clone']();const _0x50a730=_0x550e53['end']['nodeBefore'],_0xff3450=_0x3c20c6['model']['schema'];_0x50a730&&_0xff3450['isBlock'](_0x50a730)&&!_0xff3450['isObject'](_0x50a730)&&(_0x550e53=_0x3c20c6['model']['createRange'](_0x550e53['start'],_0x3c20c6['model']['createPositionAt'](_0x50a730,'end'))),this['markInsertion'](_0x550e53);}),_0x57f64c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x32d5a9=new O(_0x3c20c6,this['_suggestions']);_0x3c20c6['commands']['add']('acceptSuggestion',_0x32d5a9),this['enableCommand']('acceptSuggestion');const _0x5462ef=new x(_0x3c20c6,this['_suggestions']);_0x3c20c6['commands']['add']('discardSuggestion',_0x5462ef),this['enableCommand']('discardSuggestion'),_0x3c20c6['commands']['add']('acceptAllSuggestions',new M(_0x3c20c6,_0x32d5a9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3c20c6['commands']['add']('discardAllSuggestions',new M(_0x3c20c6,_0x5462ef,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3c20c6['commands']['add']('acceptSelectedSuggestions',new R(_0x3c20c6,_0x32d5a9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3c20c6['commands']['add']('discardSelectedSuggestions',new R(_0x3c20c6,_0x5462ef,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x294d43=_0x3c20c6['plugins']['get']('CommentsRepository');this['listenTo'](_0x294d43,'addComment',(_0x20b95d,{threadId:_0x3e1cea})=>{const _0x3f2114=this['_suggestions']['get'](_0x3e1cea);_0x3f2114&&_0x3f2114['commentThread']&&0x1===_0x3f2114['commentThread']['length']&&this['_updateSuggestionData'](_0x3e1cea,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x294d43,'removeComment',(_0x2bb34d,{threadId:_0x27940c})=>{const _0x2430b7=this['_suggestions']['get'](_0x27940c);_0x2430b7&&_0x2430b7['commentThread']&&!_0x2430b7['commentThread']['length']&&this['_updateSuggestionData'](_0x27940c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1cf319){const _0x223a89=_0x4603bb([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x528343=0x3d8d0df,_0x5297b5=0x3df58cf^_0x528343,_0x3e546e=window[_0x4603bb([0x44,0x61,0x74,0x65])][_0x4603bb([0x6e,0x6f,0x77])](),_0x1d0a2b=_0x1cf319[_0x4603bb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12cdc3=new window[(_0x4603bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d46f2=>{_0x1d0a2b[_0x4603bb([0x6f,0x6e,0x63,0x65])](_0x4603bb([0x72,0x65,0x61,0x64,0x79]),_0x5d46f2);}),_0x440901={[_0x4603bb([0x6b,0x74,0x79])]:_0x4603bb([0x45,0x43]),[_0x4603bb([0x75,0x73,0x65])]:_0x4603bb([0x73,0x69,0x67]),[_0x4603bb([0x63,0x72,0x76])]:_0x4603bb([0x50,0x2d,0x32,0x35,0x36]),[_0x4603bb([0x78])]:_0x4603bb([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]),[_0x4603bb([0x79])]:_0x4603bb([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]),[_0x4603bb([0x61,0x6c,0x67])]:_0x4603bb([0x45,0x53,0x32,0x35,0x36])},_0x201931=_0x1d0a2b[_0x4603bb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4603bb([0x67,0x65,0x74])](_0x4603bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xd60d3d(){let _0x558961,_0x5de3a4=null,_0x1cf83f=null;try{if(_0x201931==_0x4603bb([0x47,0x50,0x4c]))return _0x4603bb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x558961=_0x3781f2(),!_0x558961)return _0x4603bb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x558961[_0x4603bb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1cf83f=_0x2f066a(_0x558961[_0x4603bb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x558961[_0x4603bb([0x6a,0x74,0x69])])),await _0x4bc02a()?_0x31b325()?_0x23300c()?_0x4603bb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x289394()?(_0x558961[_0x4603bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4603bb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5de3a4=_0x18dc93(_0x4603bb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f1761()):_0x4603bb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4603bb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4603bb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4603bb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x23300c(){const _0xc5bd9a=[_0x4603bb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4603bb([0x74,0x72,0x69,0x61,0x6c])][_0x4603bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x558961[_0x4603bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e546e/0x3e8:0xe10*_0x5297b5;return _0x558961[_0x4603bb([0x65,0x78,0x70])]<_0xc5bd9a;}function _0x31b325(){const _0x3271a8=_0x558961[_0x4603bb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3271a8)return!0x1;if(_0x3271a8[_0x4603bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4603bb([0x2a])))return!0x0;if(_0x3271a8[_0x4603bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4603bb([0x54,0x43])))return!0x0;if(_0x3271a8[_0x4603bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4603bb([0x52,0x54,0x43]))){if(_0x26db11())return!0x0;if(_0x3f3a7b()||_0x350696())return!0x0;}return!0x1;}function _0x289394(){const _0x34384f=_0x558961[_0x4603bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34384f||0x0==_0x34384f[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44a676}=new URL(window[_0x4603bb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x34384f[_0x4603bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44a676))return!0x0;const _0x1f69dd=_0x44a676[_0x4603bb([0x73,0x70,0x6c,0x69,0x74])](_0x4603bb([0x2e]));return _0x34384f[_0x4603bb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1977e9=>_0x1977e9[_0x4603bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4603bb([0x2a])))[_0x4603bb([0x6d,0x61,0x70])](_0x2a55e3=>_0x2a55e3[_0x4603bb([0x73,0x70,0x6c,0x69,0x74])](_0x4603bb([0x2e])))[_0x4603bb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27804e=>_0x27804e[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1f69dd[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4603bb([0x6d,0x61,0x70])](_0x2adccc=>Array(_0x1f69dd[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2adccc[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4603bb([0x66,0x69,0x6c,0x6c])](_0x2adccc[0x0]===_0x4603bb([0x2a])?_0x4603bb([0x2a]):'')[_0x4603bb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2adccc))[_0x4603bb([0x73,0x6f,0x6d,0x65])](_0x409c8c=>_0x1f69dd[_0x4603bb([0x65,0x76,0x65,0x72,0x79])]((_0x238a2c,_0xda73f7)=>_0x409c8c[_0xda73f7]===_0x238a2c||_0x409c8c[_0xda73f7]===_0x4603bb([0x2a])));}function _0x3f1761(){return _0x5de3a4&&_0x1cf83f?new window[(_0x4603bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c7b83,_0x504a06)=>{_0x5de3a4[_0x4603bb([0x74,0x68,0x65,0x6e])](_0x5c7b83,_0x504a06),_0x1cf83f[_0x4603bb([0x74,0x68,0x65,0x6e])](_0x43aa51=>{_0x43aa51!=_0x4603bb([0x56,0x61,0x6c,0x69,0x64])&&_0x5c7b83(_0x43aa51);},_0x504a06);}):_0x5de3a4||_0x1cf83f||_0x4603bb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f066a(_0xcdc3be,_0x2eb8fd){return new window[(_0x4603bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58883b=>{if(_0x3f4ddc())return _0x58883b(_0x4603bb([0x56,0x61,0x6c,0x69,0x64]));_0x17bbc9(),_0x1d0a2b[_0x4603bb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4603bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x545a9c=!0x1;const _0x1d491e=_0x1b5ac0();function _0x4a94c5(_0x31304c){return!!_0x31304c&&(typeof _0x31304c===_0x4603bb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31304c===_0x4603bb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31304c[_0x4603bb([0x74,0x68,0x65,0x6e])]===_0x4603bb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31304c[_0x4603bb([0x63,0x61,0x74,0x63,0x68])]===_0x4603bb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29752a(_0x2c5e3e){_0x103155(_0x2c5e3e)[_0x4603bb([0x74,0x68,0x65,0x6e])](_0x58258f=>{if(!_0x58258f||_0x58258f[_0x4603bb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4603bb([0x6f,0x6b]))return _0x4603bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4663ca(_0x2b248a(_0x1d491e+_0x2eb8fd))!=_0x58258f[_0x4603bb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4603bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4603bb([0x56,0x61,0x6c,0x69,0x64]);})[_0x4603bb([0x74,0x68,0x65,0x6e])](_0x53dd37=>(_0x489f22(),_0x53dd37),()=>{const _0x3a30da=_0xc52d10();return null==_0x3a30da?(_0x489f22(),_0x4603bb([0x56,0x61,0x6c,0x69,0x64])):_0x4603bb(_0x3e546e-_0x3a30da>(0x27d454df^_0x528343)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4603bb([0x74,0x68,0x65,0x6e])](_0x58883b)[_0x4603bb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58883b(_0x4603bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x526663=0x3ee3e5f^_0x528343;function _0x489f22(){const _0x54e530=_0x4603bb([0x6c,0x6c,0x63,0x74,0x2d])+_0x4663ca(_0x2b248a(_0xcdc3be)),_0x39270a=_0x42cadd(_0x4663ca(window[_0x4603bb([0x4d,0x61,0x74,0x68])][_0x4603bb([0x63,0x65,0x69,0x6c])](_0x3e546e/_0x526663)));window[_0x4603bb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4603bb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54e530,_0x39270a);}function _0xc52d10(){const _0x4fe857=_0x4603bb([0x6c,0x6c,0x63,0x74,0x2d])+_0x4663ca(_0x2b248a(_0xcdc3be)),_0x28c78e=window[_0x4603bb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4603bb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fe857);return _0x28c78e?window[_0x4603bb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42cadd(_0x28c78e),0x10)*_0x526663:null;}function _0x103155(_0x33cb97){return new window[(_0x4603bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc7660d,_0x28ecb8)=>{_0x33cb97[_0x4603bb([0x74,0x68,0x65,0x6e])](_0xc7660d,_0x28ecb8),window[_0x4603bb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28ecb8,0x3d9041f^_0x528343);});}}_0x1d0a2b[_0x4603bb([0x6f,0x6e])](_0x4603bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59845a,_0x23932e)=>{if(_0x23932e[0x0]!=_0xcdc3be)return _0x58883b(_0x4603bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23932e[0x1]={..._0x23932e[0x1],[_0x4603bb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d491e};},{[_0x4603bb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4603bb([0x68,0x69,0x67,0x68])}),_0x1d0a2b[_0x4603bb([0x6f,0x6e])](_0x4603bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x127e98=>{_0x4a94c5(_0x127e98[_0x4603bb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x545a9c=!0x0,_0x29752a(_0x127e98[_0x4603bb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4603bb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4603bb([0x6c,0x6f,0x77])}),_0x12cdc3[_0x4603bb([0x74,0x68,0x65,0x6e])](()=>{_0x545a9c||_0x58883b(_0x4603bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f4ddc(){return _0x1d0a2b[_0x4603bb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4603bb([0x76,0x69,0x65,0x77])][_0x4603bb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4603bb([0x61,0x75,0x74,0x6f]);}function _0x17bbc9(){_0x1d0a2b[_0x4603bb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4603bb([0x76,0x69,0x65,0x77])][_0x4603bb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4603bb([0x61,0x75,0x74,0x6f]);}}function _0x18dc93(_0x4295a4){const _0x447736=[new window[(_0x4603bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x421d2c=>setTimeout(_0x421d2c,0x3d1ee13^_0x528343)),_0x12cdc3[_0x4603bb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4603bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d8ff0=>{let _0xc48502=0x0;_0x1d0a2b[_0x4603bb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4603bb([0x6f,0x6e])](_0x4603bb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x16178f,_0x3befd3)=>{_0x3befd3[0x0][_0x4603bb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc48502++,_0xc48502==(0x3d8d537^_0x528343)&&(_0x4d8ff0(),_0x16178f[_0x4603bb([0x6f,0x66,0x66])]());});}))];return window[_0x4603bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4603bb([0x72,0x61,0x63,0x65])](_0x447736)[_0x4603bb([0x74,0x68,0x65,0x6e])](()=>_0x4295a4);}async function _0x1ba05a(){await _0x12cdc3,_0x1d0a2b[_0x4603bb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4603bb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3280f7,_0x1d0a2b[_0x4603bb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4603bb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3280f7,_0x1d0a2b[_0x4603bb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4603bb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26db11(){return _0x49df6c(_0x4603bb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x10d8e8(_0x4603bb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4603bb([0x73,0x74,0x61,0x74,0x65])]==_0x4603bb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3f3a7b(){return _0x49df6c(_0x4603bb([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 _0x350696(){return _0x49df6c(_0x4603bb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2ff873(_0x28c16f){const _0x479724=_0x252be8();_0x1d0a2b[_0x479724]=_0x4603bb([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x28c16f,_0x28c16f!=_0x4603bb([0x56,0x61,0x6c,0x69,0x64])&&_0x1ba05a();}function _0x252be8(){const _0x30b703=window[_0x4603bb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4603bb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4603bb([0x6e,0x6f,0x77])]())[_0x4603bb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4603bb([0x2e]),'');let _0x54b7d1=_0x4603bb([0x52]);for(let _0xb2ed4=0x0;_0xb2ed4<_0x30b703[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb2ed4+=0x2){let _0x3cbf72=window[_0x4603bb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30b703[_0x4603bb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb2ed4,_0xb2ed4+0x2));_0x3cbf72>=_0x223a89[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3cbf72-=_0x223a89[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x54b7d1+=_0x223a89[_0x3cbf72];}return _0x54b7d1;}function _0x3781f2(){const _0x3afb1e=_0x201931[_0x4603bb([0x73,0x70,0x6c,0x69,0x74])](_0x4603bb([0x2e]));if(0x3!=_0x3afb1e[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x38b96d(_0x3afb1e[0x1]);function _0x38b96d(_0x2d16f9){const _0x5ab6e3=_0x24a626(_0x2d16f9);return _0x5ab6e3&&_0x1b1d19()?_0x5ab6e3:null;function _0x1b1d19(){const _0x29b6b9=_0x5ab6e3[_0x4603bb([0x6a,0x74,0x69])],_0xc5fe88=window[_0x4603bb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29b6b9[_0x4603bb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29b6b9[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e8258={..._0x5ab6e3,[_0x4603bb([0x6a,0x74,0x69])]:_0x29b6b9[_0x4603bb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29b6b9[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e8258[_0x4603bb([0x76,0x63])],_0x2b248a(_0x1e8258)==_0xc5fe88;}}}async function _0x4bc02a(){let _0x44dca5=!0x0;try{const _0x2f5f7f=_0x201931[_0x4603bb([0x73,0x70,0x6c,0x69,0x74])](_0x4603bb([0x2e])),[_0x69f83b,_0x5e3a9d,_0x58ef8b]=_0x2f5f7f;return _0x56fe73(_0x69f83b),await _0x3b3041(_0x69f83b,_0x5e3a9d,_0x58ef8b),_0x44dca5;}catch{return!0x1;}function _0x56fe73(_0x1cfdf6){const _0x26d40b=_0x24a626(_0x1cfdf6);_0x26d40b&&_0x26d40b[_0x4603bb([0x61,0x6c,0x67])]==_0x4603bb([0x45,0x53,0x32,0x35,0x36])||(_0x44dca5=!0x1);}async function _0x3b3041(_0x5cb7ac,_0xef0768,_0x4dad43){const _0x7099de=window[_0x4603bb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4603bb([0x66,0x72,0x6f,0x6d])](_0x4a92a0(_0x4dad43),_0x2215eb=>_0x2215eb[_0x4603bb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x278888=new window[(_0x4603bb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4603bb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5cb7ac+_0x4603bb([0x2e])+_0xef0768),_0xdc15cc=window[_0x4603bb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4603bb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xdc15cc)return;const _0x1356b8=await _0xdc15cc[_0x4603bb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4603bb([0x6a,0x77,0x6b]),_0x440901,{[_0x4603bb([0x6e,0x61,0x6d,0x65])]:_0x4603bb([0x45,0x43,0x44,0x53,0x41]),[_0x4603bb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4603bb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4603bb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xdc15cc[_0x4603bb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4603bb([0x6e,0x61,0x6d,0x65])]:_0x4603bb([0x45,0x43,0x44,0x53,0x41]),[_0x4603bb([0x68,0x61,0x73,0x68])]:{[_0x4603bb([0x6e,0x61,0x6d,0x65])]:_0x4603bb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1356b8,_0x7099de,_0x278888)||(_0x44dca5=!0x1);}}function _0x24a626(_0x4cd41f){return _0x4cd41f[_0x4603bb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4603bb([0x65,0x79]))?JSON[_0x4603bb([0x70,0x61,0x72,0x73,0x65])](_0x4a92a0(_0x4cd41f)):null;}function _0x4a92a0(_0x217e09){return window[_0x4603bb([0x61,0x74,0x6f,0x62])](_0x217e09[_0x4603bb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4603bb([0x2b]))[_0x4603bb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4603bb([0x2f])));}function _0x2b248a(_0x34149c){let _0x33302a=0x1505;function _0xbfb999(_0xc9e7a1){for(let _0x2f87d8=0x0;_0x2f87d8<_0xc9e7a1[_0x4603bb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f87d8++){const _0x422961=_0xc9e7a1[_0x4603bb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f87d8);_0x33302a=(_0x33302a<<0x5)+_0x33302a+_0x422961,_0x33302a&=_0x33302a;}}function _0x4230c0(_0x3f4da7){Array[_0x4603bb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3f4da7)?_0x3f4da7[_0x4603bb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4230c0):_0x3f4da7&&typeof _0x3f4da7==_0x4603bb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4603bb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3f4da7)[_0x4603bb([0x73,0x6f,0x72,0x74])]()[_0x4603bb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6a4841,_0x3fecf1])=>{_0xbfb999(_0x6a4841),_0x4230c0(_0x3fecf1);}):_0xbfb999(window[_0x4603bb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3f4da7));}return _0x4230c0(_0x34149c),_0x33302a>>>0x0;}function _0x4663ca(_0x24dca7){return _0x24dca7[_0x4603bb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4603bb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4603bb([0x30]));}function _0x42cadd(_0x41605a){return _0x41605a[_0x4603bb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4603bb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4603bb([0x6a,0x6f,0x69,0x6e])]('');}function _0x49df6c(_0x355a31){return _0x1d0a2b[_0x4603bb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4603bb([0x68,0x61,0x73])](_0x355a31);}function _0x10d8e8(_0x446a3d){return _0x1d0a2b[_0x4603bb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4603bb([0x67,0x65,0x74])](_0x446a3d);}function _0x3280f7(){}function _0x4603bb(_0x1520bf){return _0x1520bf['map'](_0x426097=>String['fromCharCode'](_0x426097))['join']('');}_0x2ff873(await _0xd60d3d());}(this);}set['adapter'](_0x939bb8){if(this['_adapter'])throw new _0xfd9767('track-changes-adapter-already-set',this);this['_adapter']=_0x939bb8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5e3e08=!0x1,toJSON:_0x26a93a=!0x1}={}){const _0x37a69b=[];for(const _0x43d8bd of this['_suggestions']['values']())_0x5e3e08&&!_0x43d8bd['isInContent']||_0x37a69b['push'](_0x43d8bd);return _0x26a93a?_0x37a69b['map'](_0x41558f=>_0x41558f['toJSON']()):_0x37a69b;}['getSuggestion'](_0x119b7b){const _0x5ede2e=this['_suggestions']['get'](_0x119b7b);if(!_0x5ede2e)throw new _0xfd9767('track-changes-suggestion-not-found',this);return _0x5ede2e;}['hasSuggestion'](_0x5c451c){return this['_suggestions']['has'](_0x5c451c);}['addSuggestionData'](_0x175d14){const {authorId:_0x140681,id:_0x42af24,originalSuggestionId:_0x479937,attributes:_0x16dce1}=_0x175d14,[_0x1812a6,_0x20ed1b]=_0x175d14['type']['split'](':'),_0x35cdf6=this['_suggestions']['get'](_0x42af24)||this['_createSuggestion'](_0x1812a6,_0x20ed1b,_0x42af24,_0x140681,_0x16dce1,_0x479937);if(this['_addThreadToSuggestion'](_0x35cdf6),this['_checkSuggestionCorrectness'](_0x35cdf6,_0x1812a6,_0x20ed1b||null,_0x140681),_0x35cdf6['createdAt']=_0x175d14['createdAt'],_0x35cdf6['_isDataLoaded']=!0x0,_0x16dce1&&_0x16dce1['@external']){const _0x4026a9=_0x16dce1['@external'],_0x358992=this['_getExternalAuthor'](_0x4026a9['authorName']);_0x35cdf6['authoredAt']=_0x4026a9['createdAt'],_0x35cdf6['author']=_0x358992,_0x35cdf6['isExternal']=!0x0;}else _0x35cdf6['authoredAt']=_0x175d14['createdAt'];switch(_0x175d14['data']&&(_0x35cdf6['data']=_0x175d14['data']),_0x175d14['attributes']&&(_0x35cdf6['attributes']=_0x175d14['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x35cdf6['_saved']=!0x0),this['_suggestionState']['get'](_0x35cdf6)){case'notReady':this['_suggestionState']['set'](_0x35cdf6,'dataReady');break;case'markerReady':_0x35cdf6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x35cdf6])),this['_refreshSuggestionsChain'](new Set([_0x35cdf6])),this['_suggestionState']['set'](_0x35cdf6,'ready'),this['fire']('suggestionLoaded',_0x35cdf6)):this['_suggestionState']['set'](_0x35cdf6,'removed');}return _0x35cdf6;}['acceptSuggestion'](_0x5d3564){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x56cdb8 of _0x5d3564['getAllAdjacentSuggestions']())_0x56cdb8['accept']();});});}['discardSuggestion'](_0x508d7a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x414156 of _0x508d7a['getAllAdjacentSuggestions']())_0x414156['discard']();});});}['enableCommand'](_0x3726de,_0x4c2fda){const _0x3f81c9=this['editor']['commands']['get'](_0x3726de);if(!_0x3f81c9)throw new _0xfd9767('track-changes-command-not-found',this,{'commandName':_0x3726de});if(this['_enabledCommands']['has'](_0x3f81c9))throw new _0xfd9767('track-changes-enable-command-twice',this,{'commandName':_0x3726de});this['_enabledCommands']['add'](_0x3f81c9),_0x4c2fda&&_0x3f81c9['on']('execute',(_0x982e26,_0x54510c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x54510c['length']>0x0&&_0x54510c[_0x54510c['length']-0x1]&&_0x54510c[_0x54510c['length']-0x1]['forceDefaultExecution']?_0x54510c['pop']():(_0x982e26['return']=_0x4c2fda((..._0xa2aed7)=>_0x3f81c9['execute'](..._0xa2aed7,{'forceDefaultExecution':!0x0}),..._0x54510c),_0x982e26['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x53e448){let _0x3dda65,_0x2a97c6;const _0x29dd65=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3dda65=_0x53e448();}catch(_0x4578be){_0x2a97c6=_0x4578be;}return _0x29dd65||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2a97c6&&_0xfd9767['rethrowUnexpectedError'](_0x2a97c6,this),_0x3dda65;}['markInsertion'](_0x1f34d2,_0x501479=null,_0xc8fe02={}){if(_0x1f34d2['isCollapsed'])return null;const _0x2b4c96=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xc8fe02['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x18d6fb,meta:_0x56ebbd}of this['_findSuggestions'](_0x1f34d2,'insertion'))if(_0x56ebbd['isOwn']){if(!_0x56ebbd['isNextTo']){if(_0x56ebbd['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x18d6fb,_0xc8fe02))continue;return _0x18d6fb;}if(sn(_0x18d6fb,_0xc8fe02))return _0x18d6fb;this['_breakSuggestionMarker'](_0x18d6fb,_0x1f34d2['start'],_0x1f34d2['end']);break;}if(_0x501479==_0x18d6fb['subType']&&sn(_0x18d6fb,_0xc8fe02)){const _0x446897=_0x18d6fb['getFirstRange']();return _0x446897['start']['isEqual'](_0x1f34d2['end'])?this['_setSuggestionRange'](_0x18d6fb,this['_model']['createRange'](_0x1f34d2['start'],_0x446897['end'])):this['_setSuggestionRange'](_0x18d6fb,this['_model']['createRange'](_0x446897['start'],_0x1f34d2['end'])),_0x18d6fb;}}const _0x5f33f5=_0x1b5ac0(),_0x25b3a0=_0x2b4c96['id'],_0x2eb2b8=_0x501479?'insertion:'+_0x501479:'insertion',_0x5483c0=this['_setSuggestionData']({'id':_0x5f33f5,'type':_0x2eb2b8,'createdAt':new Date(),'authorId':_0x25b3a0,'attributes':_0xc8fe02});return this['_addSuggestionMarker'](_0x2eb2b8,_0x5f33f5,_0x25b3a0,_0x1f34d2),_0x5483c0;}['markMultiRangeInsertion'](_0x15951a,_0x4d43b5='multi',_0x12d350={}){const _0x5ef393=this['editor']['plugins']['get']('Users')['me'],_0x305a16=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4d43b5,'join');this['_trackingSessionId']&&(_0x12d350['trackingSessionId']=this['_trackingSessionId']);for(const _0x113f5e of this['getSuggestions']())if(_0x113f5e['author']['id']==_0x5ef393['id']&&'insertion'==_0x113f5e['type']&&_0x113f5e['subType']==_0x4d43b5&&sn(_0x113f5e,_0x12d350)&&(_0x305a16(_0x113f5e['getRanges'](),_0x15951a)||_0x305a16(_0x15951a,_0x113f5e['getRanges']()))){for(const _0x4340c6 of _0x15951a)_0x113f5e['addRange'](_0x4340c6);return _0x113f5e;}for(const {suggestion:_0x45668d,meta:_0x2e4233}of this['_findSuggestions'](_0x15951a,'insertion')){if(!_0x2e4233['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2e4233['containsRangeInObject'])continue;if(!sn(_0x45668d,_0x12d350))continue;let _0x2d7061=!0x0;for(const _0x449407 of _0x45668d['getRanges']())for(const _0x22bdab of _0x15951a)if(!_0x449407['containsRange'](_0x22bdab)){_0x2d7061=!0x1;break;}if(_0x2d7061)return _0x45668d;}const _0xec4143=_0x1b5ac0(),_0x2d328b=_0x5ef393['id'],_0x50b800='insertion:'+_0x4d43b5,_0x2ac908=this['_setSuggestionData']({'id':_0xec4143,'type':_0x50b800,'createdAt':new Date(),'authorId':_0x2d328b,'attributes':_0x12d350});for(const _0x30164b of _0x15951a)this['_addSuggestionMarker'](_0x50b800,_0xec4143,_0x2d328b,_0x30164b,T['getMultiRangeId']());return _0x2ac908;}['markInlineFormat'](_0x3d921c,_0x43ad7e,_0x4c71d0=null,_0x2f44d8={}){if(_0x4c71d0=_0x4c71d0||Ht(_0x43ad7e),_0x3d921c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2f44d8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x25cb23=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4c71d0,'accept');return this['forceDefaultExecution'](()=>_0x25cb23([_0x3d921c],_0x43ad7e,_0x2f44d8)),null;}const _0x4c807a=this['editor']['plugins']['get']('Users')['me'],_0x3fa54e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2dc025,meta:_0x2209d8}of this['_findSuggestions'](_0x3d921c,'insertion'))_0x2209d8['isOwn']&&!_0x2209d8['isInsideObject']&&_0x3fa54e['push'](..._0x2dc025['getRanges']());}const _0x5c0702=function(_0x5841d0,_0x145234){const _0x180545=[];for(const _0x4e46b1 of _0x145234){const _0x276a01=_0x5841d0['getIntersection'](_0x4e46b1);_0x276a01&&_0x180545['push'](_0x276a01);}return _0x180545;}(_0x3d921c,_0x3fa54e),_0x572e82=function(_0x3da129,_0x5245a4){const _0x1da8f4=[_0x3da129];for(const _0x15b909 of _0x5245a4){let _0x2810ec=0x0;for(;_0x2810ec<_0x1da8f4['length'];){const _0x3dfae3=_0x1da8f4[_0x2810ec]['getDifference'](_0x15b909);_0x1da8f4['splice'](_0x2810ec,0x1,..._0x3dfae3),_0x2810ec+=_0x3dfae3['length'];}}return _0x1da8f4;}(_0x3d921c,_0x3fa54e);_0x5c0702['length']&&this['_model']['change'](()=>{for(const _0x5f3929 of _0x5c0702){const _0x791df1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4c71d0,'accept');this['forceDefaultExecution'](()=>_0x791df1([_0x5f3929],_0x43ad7e,_0x2f44d8));}});for(const _0x5cb7a6 of _0x572e82){let _0x1f4546=null,_0x5414ec=_0x5cb7a6['start'],_0x14b54b=_0x5cb7a6['end'];for(const {suggestion:_0x126634,meta:_0x1e586c}of this['_findSuggestions'](_0x5cb7a6,'formatInline')){if(!_0x1e586c['isOwn'])continue;if(_0x126634['subType']!=_0x4c71d0)continue;if(!sn(_0x126634,_0x2f44d8))continue;const _0x1443ce=_0x126634['getFirstRange']();if(_0x1443ce['containsRange'](_0x5cb7a6,!0x0))return null;_0x5414ec=_0x5414ec['isBefore'](_0x1443ce['start'])?_0x5414ec:_0x1443ce['start'],_0x14b54b=_0x14b54b['isAfter'](_0x1443ce['end'])?_0x14b54b:_0x1443ce['end'],_0x1f4546?_0x1443ce['start']['isBefore'](_0x1f4546['getFirstRange']()['start'])?(_0x1f4546['removeMarkers'](),_0x1f4546=_0x126634):_0x126634['removeMarkers']():_0x1f4546=_0x126634;}const _0x1575df=this['_model']['createRange'](_0x5414ec,_0x14b54b);if(_0x1f4546)this['_setSuggestionRange'](_0x1f4546,_0x1575df);else{const _0x2fef66=_0x1b5ac0(),_0x5dccfa=_0x4c807a['id'];this['_setSuggestionData']({'id':_0x2fef66,'type':'formatInline:'+_0x4c71d0,'data':_0x43ad7e,'createdAt':new Date(),'authorId':_0x5dccfa,'attributes':_0x2f44d8}),this['_addSuggestionMarker']('formatInline:'+_0x4c71d0,_0x2fef66,_0x5dccfa,_0x1575df);}}return null;}['markBlockFormat'](_0x153f19,_0x2fff15,_0x2ddb2a=[],_0x5d58ba=null,_0x53a29a={}){_0x2fff15['formatGroupId']||(_0x2fff15['formatGroupId']=_0x2fff15['commandName']),_0x2fff15['multipleBlocks']=_0x153f19['is']('range'),_0x5d58ba=_0x5d58ba||Ht(_0x2fff15);const _0x38fce8=_0x2ddb2a['map'](_0x985e01=>tn(_0x985e01,this['_model'])),_0x96deb0=_0x153f19['is']('range')?_0x153f19:tn(_0x153f19,this['_model']);if(this['_trackingSessionId']&&(_0x53a29a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xf612a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d58ba,'accept');return this['forceDefaultExecution'](()=>_0xf612a([_0x96deb0],_0x2fff15,_0x53a29a)),null;}_0x38fce8['push'](_0x96deb0);let _0x312c85=!0x0;for(const _0x486ba5 of _0x38fce8)if(!this['_rangeIsInLocalUserInsertion'](_0x486ba5)){_0x312c85=!0x1;break;}if(_0x312c85&&'always'!==this['_trackFormatChanges']){const _0x10da5a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d58ba,'accept');return this['forceDefaultExecution'](()=>_0x10da5a([_0x96deb0],_0x2fff15,_0x53a29a)),null;}let _0xeea99f=null,_0x1587ca=_0x96deb0['start'],_0x258db2=_0x96deb0['end'];for(const {suggestion:_0x118da8,meta:_0x3b4479}of this['_findSuggestions'](_0x96deb0,'formatBlock')){if(!_0x3b4479['isOwn'])continue;if(_0x3b4479['isNextTo']||_0x3b4479['containsRangeInObject']||_0x3b4479['isInsideObject'])continue;if(_0x118da8['data']['formatGroupId']!=_0x2fff15['formatGroupId'])continue;if(!sn(_0x118da8,_0x53a29a))continue;const _0x8322c4=_0x118da8['getFirstRange']();if(_0x118da8['subType']==_0x5d58ba){if(_0x8322c4['containsRange'](_0x96deb0,!0x0))return null;_0x1587ca=_0x1587ca['isBefore'](_0x8322c4['start'])?_0x1587ca:_0x8322c4['start'],_0x258db2=_0x258db2['isAfter'](_0x8322c4['end'])?_0x258db2:_0x8322c4['end'],_0xeea99f?_0x8322c4['start']['isBefore'](_0xeea99f['getFirstRange']()['start'])?(_0xeea99f['removeMarkers'](),_0xeea99f=_0x118da8):_0x118da8['removeMarkers']():_0xeea99f=_0x118da8;}else{const _0x27c7d7=_0x96deb0['getIntersection'](_0x8322c4);this['_cutOutSuggestionMarker'](_0x118da8,_0x27c7d7);}}const _0x3b79e9=this['editor']['plugins']['get']('Users')['me'],_0x9e817a=_0x1b5ac0(),_0x5996a1=_0x3b79e9['id'];if(_0xeea99f)return this['_setSuggestionRange'](_0xeea99f,this['_model']['createRange'](_0x1587ca,_0x258db2)),_0xeea99f;{const _0x5980cf=this['_setSuggestionData']({'id':_0x9e817a,'type':'formatBlock:'+_0x5d58ba,'data':_0x2fff15,'createdAt':new Date(),'authorId':_0x5996a1,'attributes':_0x53a29a});return this['_addSuggestionMarker']('formatBlock:'+_0x5d58ba,_0x9e817a,_0x5996a1,this['_model']['createRange'](_0x1587ca,_0x258db2)),_0x5980cf;}}['markMultiRangeBlockFormat'](_0x2439ca,_0x9f0d6e,_0x51d377=[],_0x57f145=null,_0x4ca9fc={}){_0x9f0d6e['formatGroupId']||(_0x9f0d6e['formatGroupId']=_0x9f0d6e['commandName']);const _0x10a8a9=_0x2439ca[0x0];_0x9f0d6e['multipleBlocks']=_0x10a8a9['is']('range'),_0x57f145=_0x57f145||Ht(_0x9f0d6e);const _0xe4bb6a=_0x51d377['map'](_0x32a289=>tn(_0x32a289,this['_model'])),_0x57dd41=_0x10a8a9['is']('range')?_0x2439ca:_0x2439ca['map'](_0x4440b2=>tn(_0x4440b2,this['_model']));if(this['_trackingSessionId']&&(_0x4ca9fc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xdd8fd6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57f145,'accept');return this['forceDefaultExecution'](()=>_0xdd8fd6(_0x57dd41,_0x9f0d6e,_0x4ca9fc)),null;}_0xe4bb6a['push'](..._0x57dd41);let _0x285694=!0x0;for(const _0x2c2c26 of _0xe4bb6a)if(!this['_rangeIsInLocalUserInsertion'](_0x2c2c26)){_0x285694=!0x1;break;}if(_0x285694&&'always'!==this['_trackFormatChanges']){const _0x22a79e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57f145,'accept');return this['forceDefaultExecution'](()=>_0x22a79e(_0x57dd41,_0x9f0d6e,_0x4ca9fc)),null;}const _0x3b8810=this['editor']['plugins']['get']('Users')['me'];for(const _0x5aad79 of this['getSuggestions']()){const _0x1adbd1=_0x5aad79['data'];if(_0x5aad79['author']['id']!=_0x3b8810['id'])continue;if('formatBlock'!=_0x5aad79['type']||_0x1adbd1['formatGroupId']!=_0x9f0d6e['formatGroupId'])continue;if(!sn(_0x5aad79,_0x4ca9fc))continue;const _0x4217f4=_0x5aad79['subType']==_0x57f145;for(let _0x445226=0x0;_0x445226<_0x57dd41['length'];_0x445226++){const _0x11af31=_0x57dd41[_0x445226];for(const _0x47d34a of _0x5aad79['getMarkers']()){const _0x44760d=_0x47d34a['getRange']();if(_0x11af31['isEqual'](_0x44760d)){_0x4217f4?(_0x57dd41['splice'](_0x445226,0x1),_0x445226--):_0x5aad79['removeMarker'](_0x47d34a['name']);break;}}}}if(0x0==_0x57dd41['length'])return null;const _0x11fcc9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57f145,'join');for(const _0x34ff01 of this['getSuggestions']()){const _0x276ddd=_0x34ff01['data'];if(_0x34ff01['author']['id']==_0x3b8810['id']&&('formatBlock'==_0x34ff01['type']&&_0x276ddd['formatGroupId']==_0x9f0d6e['formatGroupId']&&_0x34ff01['subType']==_0x57f145&&sn(_0x34ff01,_0x4ca9fc)&&(_0x11fcc9(_0x34ff01['getRanges'](),_0x57dd41)||_0x11fcc9(_0x57dd41,_0x34ff01['getRanges']())))){for(const _0x540aa5 of _0x57dd41)_0x34ff01['addRange'](_0x540aa5);return _0x34ff01;}}const _0x3f162a=_0x1b5ac0(),_0x149327=_0x3b8810['id'],_0x187643='formatBlock:'+_0x57f145,_0x51bf7f=this['_setSuggestionData']({'id':_0x3f162a,'type':_0x187643,'data':_0x9f0d6e,'createdAt':new Date(),'authorId':_0x149327,'attributes':_0x4ca9fc});for(const _0x816eab of _0x57dd41)this['_addSuggestionMarker'](_0x187643,_0x3f162a,_0x149327,_0x816eab,T['getMultiRangeId']());return _0x51bf7f;}['markDeletion'](_0x39bae8,_0x2acc8f=null,_0x1e3418={}){if(_0x39bae8['isCollapsed'])return null;const _0x287738=this['editor']['plugins']['get']('Users')['me'],_0x5e2ea4=new _0x321f06(_0x39bae8['start'],_0x39bae8['end']);this['_trackingSessionId']&&(_0x1e3418['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x253a6a,meta:_0x4c11cb}of this['_findSuggestions'](_0x5e2ea4,'insertion'))if(_0x4c11cb['isOwn']&&!_0x4c11cb['isNextTo']){if(_0x253a6a['isMultiRange']){const _0x379c05=_0x253a6a['getRanges']()['filter'](_0x58ece9=>'$graveyard'!=_0x58ece9['root']['rootName']);_0x379c05['every'](_0x50916c=>_0x5e2ea4['containsRange'](_0x50916c,!0x0))&&_0x253a6a['discard']();if(_0x379c05['some'](_0x3ef80=>_0x3ef80['containsRange'](_0x5e2ea4,!0x0))){const _0x51be3a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2acc8f,'accept');return this['forceDefaultExecution'](()=>_0x51be3a([_0x5e2ea4],null,_0x1e3418)),null;}}else{const _0x3fde2b=_0x5e2ea4['getIntersection'](_0x253a6a['getFirstRange']());null!==_0x3fde2b&&_0x253a6a['_onDiscard']([_0x3fde2b],null,_0x1e3418);}}if(_0x5e2ea4['detach'](),_0x5e2ea4['isCollapsed']||'$graveyard'==_0x5e2ea4['root']['rootName'])return null;let _0x1baa47=null,_0x117164=_0x5e2ea4['start'],_0x2de7c5=_0x5e2ea4['end'];const _0x2a2147=this['_findSuggestions'](_0x5e2ea4,'deletion');for(const {suggestion:_0x26b375,meta:_0x390cc2}of _0x2a2147){const _0x569dac=this['_model']['createRange'](_0x117164,_0x2de7c5);if(_0x390cc2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x390cc2['containsRangeInObject']&&!_0x390cc2['isInsideObject'])){if(_0x26b375['isMultiRange']){if(!sn(_0x26b375,_0x1e3418))continue;let _0x19eeba=!0x0;for(const _0x4b9a18 of _0x26b375['getRanges']()){if(_0x4b9a18['containsRange'](_0x569dac,!0x0))return _0x26b375;_0x569dac['containsRange'](_0x4b9a18)||(_0x19eeba=!0x1);}_0x19eeba&&_0x26b375['discard']();}else{const _0x353e8b=_0x26b375['getFirstRange']();if(_0x353e8b['containsRange'](_0x569dac,!0x0))return _0x26b375;if(!sn(_0x26b375,_0x1e3418)){_0x569dac['containsRange'](_0x353e8b)?_0x26b375['removeMarkers']():_0x353e8b['containsPosition'](_0x117164)?_0x117164=_0x353e8b['end']:_0x353e8b['containsPosition'](_0x2de7c5)&&(_0x2de7c5=_0x353e8b['start']);continue;}_0x117164=_0x117164['isBefore'](_0x353e8b['start'])?_0x117164:_0x353e8b['start'],_0x2de7c5=_0x2de7c5['isAfter'](_0x353e8b['end'])?_0x2de7c5:_0x353e8b['end'],_0x1e3418=Object['assign']({},_0x26b375['attributes']),_0x1baa47?_0x353e8b['start']['isBefore'](_0x1baa47['getFirstRange']()['start'])?(_0x1baa47['removeMarkers'](),_0x1baa47=_0x26b375):_0x26b375['removeMarkers']():_0x1baa47=_0x26b375;}}}if(_0x1baa47)return this['_setSuggestionRange'](_0x1baa47,this['_model']['createRange'](_0x117164,_0x2de7c5)),_0x1baa47;{const _0x3ed7d1=_0x1b5ac0(),_0x61fddd=this['_model']['createRange'](_0x117164,_0x2de7c5),_0x58d8d5=_0x287738['id'],_0xcadfef=_0x2acc8f?'deletion:'+_0x2acc8f:'deletion',_0xceb871=this['_setSuggestionData']({'id':_0x3ed7d1,'type':_0xcadfef,'createdAt':new Date(),'authorId':_0x58d8d5,'attributes':_0x1e3418});return this['_addSuggestionMarker'](_0xcadfef,_0x3ed7d1,_0x58d8d5,_0x61fddd),_0xceb871;}}['markMultiRangeDeletion'](_0x28dcc9,_0x3f055d='multi',_0xede9f2={}){const _0x2e783b=this['editor']['plugins']['get']('Users')['me'],_0x38714d=_0x28dcc9['map'](_0x183b33=>new _0x321f06(_0x183b33['start'],_0x183b33['end'])),_0x5cfc26=new Set();this['_trackingSessionId']&&(_0xede9f2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2b332a,meta:_0x395773}of this['_findSuggestions'](_0x38714d,'insertion'))_0x395773['isOwn']&&!_0x395773['isNextTo']&&_0x5cfc26['add'](_0x2b332a);for(const _0xb7fbe9 of _0x5cfc26)if(_0xb7fbe9['isMultiRange']){const _0x520c55=_0xb7fbe9['getRanges']();(!_0xb7fbe9['attributes']||!_0xb7fbe9['attributes']['skipNestingCheck'])&&(_0x520c55['every'](_0x27a00e=>_0x38714d['some'](_0x351cf2=>_0x351cf2['containsRange'](_0x27a00e,!0x0)))&&_0xb7fbe9['discard']());if(_0x38714d['every'](_0x1aac71=>_0x520c55['some'](_0x346317=>_0x346317['containsRange'](_0x1aac71,!0x0)))){const _0xb1e46b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f055d,'accept');return this['forceDefaultExecution'](()=>_0xb1e46b(_0x28dcc9,null,_0xede9f2)),null;}}else{const _0x255de2=_0xb7fbe9['getFirstRange']();_0x38714d['some'](_0x3901be=>_0x3901be['containsRange'](_0x255de2,!0x0))&&_0xb7fbe9['discard']();if(_0x38714d['every'](_0x57d028=>_0x255de2['containsRange'](_0x57d028,!0x0))){const _0x5f235c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f055d,'accept');return this['forceDefaultExecution'](()=>_0x5f235c(_0x38714d,null,_0xede9f2)),null;}}const _0x155164=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f055d,'join');let _0x325da7=null;for(const _0x2d2b38 of this['getSuggestions']())if(_0x2d2b38['author']['id']==_0x2e783b['id']&&_0x2d2b38['isInContent']&&'deletion'==_0x2d2b38['type']&&_0x2d2b38['subType']==_0x3f055d&&sn(_0x2d2b38,_0xede9f2)&&(_0x155164(_0x2d2b38['getRanges'](),_0x38714d)||_0x155164(_0x38714d,_0x2d2b38['getRanges']()))){if(_0x325da7){if(_0x2d2b38['commentThread']&&_0x2d2b38['commentThread']['length'])continue;for(const _0x11014d of _0x2d2b38['getRanges']())_0x325da7['isIntersectingWithRange'](_0x11014d)||_0x325da7['addRange'](_0x11014d);_0x2d2b38['removeMarkers']();}else{_0x325da7=_0x2d2b38;for(const _0x3d9c8d of _0x38714d)_0x2d2b38['isIntersectingWithRange'](_0x3d9c8d)||_0x2d2b38['addRange'](_0x3d9c8d);}}if(_0x325da7)return _0x325da7;_0x5cfc26['clear']();for(const {suggestion:_0x20ee9c,meta:_0x49eb03}of this['_findSuggestions'](_0x38714d,'deletion'))_0x49eb03['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49eb03['containsRangeInObject']&&!_0x49eb03['isInsideObject'])&&sn(_0x20ee9c,_0xede9f2)&&_0x5cfc26['add'](_0x20ee9c);for(const _0x48a1e2 of _0x5cfc26){const _0x4bfbb0=_0x48a1e2['getRanges']();if(!_0xede9f2||!_0xede9f2['skipNestingCheck']){if(_0x38714d['every'](_0x46a098=>_0x4bfbb0['some'](_0x5188e3=>_0x5188e3['containsRange'](_0x46a098,!0x0))))return _0x48a1e2;}(!_0x48a1e2['attributes']||!_0x48a1e2['attributes']['skipNestingCheck'])&&(_0x4bfbb0['every'](_0x4092ba=>_0x38714d['some'](_0x41e9fa=>_0x41e9fa['containsRange'](_0x4092ba,!0x0)))&&_0x48a1e2['discard']());}const _0x53f792=_0x1b5ac0(),_0x55dfad=_0x2e783b['id'],_0x28eb24='deletion:'+_0x3f055d,_0x2a8d7=this['_setSuggestionData']({'id':_0x53f792,'type':_0x28eb24,'createdAt':new Date(),'authorId':_0x55dfad,'attributes':_0xede9f2});for(const _0x56167e of _0x38714d)_0x56167e['detach'](),_0x56167e['isCollapsed']||'$graveyard'==_0x56167e['root']['rootName']||this['_addSuggestionMarker'](_0x28eb24,_0x53f792,_0x55dfad,_0x56167e,T['getMultiRangeId']());return _0x2a8d7;}['markAttributeChange'](_0x3ad81e,_0x23fc35,_0x4dd980,_0x4bf26e,_0x2d4d00){if(_0x3ad81e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1b486f=this['editor']['plugins']['get']('Users')['me']['id'],_0x31ad52=Array['from'](this['_suggestions']['values']())['filter'](_0x5cb372=>'attribute'==_0x5cb372['type']&&_0x5cb372['data']['key']==_0x23fc35&&_0x5cb372['isIntersectingWithRange'](_0x3ad81e));if(this['_trackingSessionId']&&(_0x2d4d00['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3b99b5=this['_findSuggestions'](_0x3ad81e,'insertion')['filter'](({meta:_0x4a0465})=>_0x4a0465['isOwn']&&!_0x4a0465['isInsideObject']&&!_0x4a0465['isNextTo'])['map'](({suggestion:_0x872b17})=>_0x872b17);_0x31ad52['unshift'](..._0x3b99b5);}const _0x49076f=new Map([[_0x3ad81e,_0x4dd980]]);for(const _0x43d083 of _0x31ad52){const _0x21c0f9='attribute'==_0x43d083['type']?_0x43d083['data']['oldValue']:void 0x0,_0x324867=_0x43d083['getFirstRange'](),_0x3a0697=Array['from'](_0x49076f['keys']())['find'](_0x41b15e=>_0x41b15e['isIntersecting'](_0x324867));if(!_0x3a0697)continue;const _0x4c9f7a=_0x3a0697['getDifference'](_0x324867);this['_isBlockAttribute'](_0x23fc35)&&'insertion'==_0x43d083['type']&&0x0!=_0x4c9f7a['length']||(_0x49076f['delete'](_0x3a0697),_0x4c9f7a['forEach'](_0x330d6c=>{_0x49076f['set'](_0x330d6c,_0x4dd980);}),'insertion'!=_0x43d083['type']&&_0x21c0f9!=_0x4bf26e&&_0x49076f['set'](_0x3a0697['getIntersection'](_0x324867),_0x21c0f9));}const _0xad2e8d=[];for(const [_0x4ce290,_0xf0f11b]of _0x49076f){const _0x4e5a52=_0x1b5ac0(),_0x5ec82a={'key':_0x23fc35,'oldValue':_0xf0f11b,'newValue':_0x4bf26e};_0x23fc35['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':_0x23fc35});const _0x9dd93c=('attribute:'+(_0x23fc35+'|'+Ht({'newValue':_0x4bf26e})))['substring'](0x0,0x3c),_0x430cd7=this['_setSuggestionData']({'id':_0x4e5a52,'type':_0x9dd93c,'data':_0x5ec82a,'createdAt':new Date(),'authorId':_0x1b486f,'attributes':_0x2d4d00});_0xad2e8d['push'](_0x430cd7),this['_addSuggestionMarker'](_0x9dd93c,_0x4e5a52,_0x1b486f,_0x4ce290);}return _0xad2e8d;}['enableDefaultAttributesIntegration'](_0x16aba1){this['enableCommand'](_0x16aba1,(_0x32f842,..._0x4e91e5)=>{this['recordAttributeChanges'](()=>{_0x32f842(..._0x4e91e5);});});}['registerBlockAttribute'](_0x28f1a5){this['editor']['plugins']['get'](_0x5ea722)['registerBlockAttribute'](_0x28f1a5);}['registerInlineAttribute'](_0x38f875){this['editor']['plugins']['get'](_0x5ea722)['registerInlineAttribute'](_0x38f875);}['startTrackingSession'](_0x377cf9){return this['_trackingSessionId']=void 0x0!==_0x377cf9?_0x377cf9:_0x1b5ac0(),this['_trackingSessionId'];}['_getAttributeKey'](_0x213005){return'attribute'==_0x213005['type']?_0x213005['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x26dbe2){if(0x0==_0x26dbe2['length'])return;const _0x3f18ea=this['editor'],_0x37ad05=_0x3f18ea['plugins']['get'](_0x52e720),_0x4e5f38=[];_0x3f18ea['model']['change'](_0x4ed5a1=>{for(let _0x5eec5b=0x0;_0x5eec5b<_0x26dbe2['length'];_0x5eec5b++){const _0x54f136=_0x26dbe2[_0x5eec5b];if(_0x54f136['baseVersion']=_0x3f18ea['model']['document']['version'],_0x54f136['isDocumentOperation']=!0x0,_0x37ad05['isMarkedRemoveOperation'](_0x54f136)){const _0x2e94b3=_0x5f2831(_0x54f136['newRange'],_0x3f18ea['model']);_0x4e5f38['unshift'](_0x321f06['fromRange'](_0x2e94b3));}else switch(_0x54f136['type']){case'rename':{const _0x1904de=_0x54f136['oldName'],_0x358d54=_0x54f136['newName'];if(_0x1904de==_0x358d54)break;_0x4ed5a1['batch']['addOperation'](_0x54f136),_0x3f18ea['model']['applyOperation'](_0x54f136);const _0x212237='$elementName',_0x9bdae0=_0x54f136['position'],_0x2b69bf=_0x3f18ea['model']['createRange'](_0x9bdae0,_0x3f18ea['model']['createPositionAt'](_0x9bdae0['nodeAfter'],'end'));this['markAttributeChange'](_0x2b69bf,_0x212237,_0x1904de,_0x358d54,{'groupId':_0x1b5ac0()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2266b3=_0x54f136['oldValue'],_0x10190f=_0x54f136['newValue'];if(_0x2266b3==_0x10190f)break;_0x4ed5a1['batch']['addOperation'](_0x54f136),_0x3f18ea['model']['applyOperation'](_0x54f136);const _0xa631b2=_0x54f136['key'];if(!this['_isRegisteredAttribute'](_0xa631b2))break;const _0x469614=_0x5f2831(_0x54f136['range'],_0x3f18ea['model']);this['markAttributeChange'](_0x469614,_0xa631b2,_0x2266b3,_0x10190f,{'groupId':_0x1b5ac0()});break;}case'insert':{_0x4ed5a1['batch']['addOperation'](_0x54f136),_0x3f18ea['model']['applyOperation'](_0x54f136);if(_0x26dbe2[_0x5eec5b+0x1]&&'move'==_0x26dbe2[_0x5eec5b+0x1]['type'])break;const _0x1dd143=_0x54f136['position'],_0x25a3cf=_0x54f136['howMany'],_0xed9e17=_0x5f2831(_0x3f18ea['model']['createRange'](_0x1dd143,_0x1dd143['getShiftedBy'](_0x25a3cf)),_0x3f18ea['model']);this['markInsertion'](_0xed9e17);break;}case'split':{_0x4ed5a1['batch']['addOperation'](_0x54f136),_0x3f18ea['model']['applyOperation'](_0x54f136);const _0x140aa0=_0x54f136['splitPosition'],_0x5e88b8=_0x54f136['moveTargetPosition'];this['markInsertion'](_0x3f18ea['model']['createRange'](_0x140aa0,_0x5e88b8));break;}case'move':case'remove':_0x4ed5a1['batch']['addOperation'](_0x54f136),_0x3f18ea['model']['applyOperation'](_0x54f136);}}for(const _0x122e48 of _0x4e5f38)_0x122e48['detach'](),this['markDeletion'](_0x122e48);});}['_setSuggestionRange'](_0x256a7f,_0x231062){const _0x5c5411=_0x256a7f['getFirstMarker']();this['_model']['change'](_0x7ca9c6=>{_0x7ca9c6['updateMarker'](_0x5c5411,{'range':_0x231062});});}['_addThreadToSuggestion'](_0x3f88ce){const _0x20d3ed=_0x3f88ce['id'],_0x56d95f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x20d3ed)||this['_commentsRepository']['addCommentThread']({'channelId':_0x56d95f,'threadId':_0x20d3ed,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xa050ee=this['_commentsRepository']['getCommentThread'](_0x20d3ed);_0xa050ee['unbind']('isRemovable'),_0xa050ee['isRemovable']=!0x1,_0x3f88ce['commentThread']=_0xa050ee;}['_checkSuggestionCorrectness'](_0x2a1d29,_0x50d938,_0x29ec31,_0x971ac1){if(_0x2a1d29['type']!=_0x50d938||_0x2a1d29['subType']!=_0x29ec31||_0x2a1d29['creator']['id']!=_0x971ac1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xfd9767('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3db529,_0x2c26a3){const _0x86d2ac=_0x3db529['getFirstRange']();if(_0x2c26a3['isEqual'](_0x86d2ac))_0x3db529['removeMarkers']();else{if(_0x86d2ac['containsRange'](_0x2c26a3)){const _0xf64923=this['_model']['createPositionAt'](_0x2c26a3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3db529,this['_model']['createRange'](_0x86d2ac['start'],_0xf64923));const _0x40650a=_0x1b5ac0(),_0x25b0b3=_0x3db529['creator']['id'],_0x5130cd=_0x3db529['type']+':'+_0x3db529['subType'];this['_setSuggestionData']({'id':_0x40650a,'type':_0x5130cd,'createdAt':new Date(),'authorId':_0x25b0b3,'data':_0x3db529['data'],'attributes':_0x3db529['attributes']});const _0x89f398=this['_model']['createPositionAt'](_0x2c26a3['end']['parent'],'after'),_0x15bc3a=this['_model']['createRange'](_0x89f398,_0x86d2ac['end']);this['_addSuggestionMarker'](_0x5130cd,_0x40650a,_0x25b0b3,_0x15bc3a);}else{if(_0x86d2ac['containsPosition'](_0x2c26a3['start'])){const _0x17879b=this['_model']['createPositionAt'](_0x2c26a3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3db529,this['_model']['createRange'](_0x86d2ac['start'],_0x17879b));}else{const _0xa2a00=this['_model']['createPositionAt'](_0x2c26a3['end']['parent'],'after');this['_setSuggestionRange'](_0x3db529,this['_model']['createRange'](_0xa2a00,_0x86d2ac['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x557506){for(const {suggestion:_0x27a02e,meta:_0x7031d5}of this['_findSuggestions'](_0x557506,'insertion')){if(!_0x7031d5['isOwn'])continue;const _0x3dac03=_0x27a02e['getRanges']();for(const _0x1962c9 of _0x3dac03)if(!_0x557506['getDifference'](_0x1962c9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1249a4){return this['editor']['plugins']['get']('Users')['getUser'](_0x1249a4);}['_getExternalAuthor'](_0x2eec20){const _0x22983e=this['editor']['plugins']['get']('Users'),_0x3b83d6=_0x5620e2('external:'+_0x2eec20),_0x564396=_0x22983e['getUser'](_0x3b83d6);return _0x564396||_0x22983e['addUser']({'id':_0x3b83d6,'name':_0x2eec20});}['_createSuggestion'](_0x313cdf,_0x35a64a,_0x39760f,_0x4e04d4,_0x452d92,_0x598645){const _0x3709c3=this['_getAuthorFromId'](_0x4e04d4);if(!_0x3709c3)throw new _0xfd9767('track-changes-user-not-found',this,{'authorId':_0x4e04d4,'suggestionId':_0x39760f});const _0x51830b=this['_suggestionFactory']['buildSuggestion'](_0x313cdf,_0x35a64a,_0x39760f,_0x3709c3,_0x452d92,_0x37f4c3=>{this['_updateSuggestionData'](_0x39760f,{'attributes':_0x37f4c3});const _0x4cb9eb=this['getSuggestion'](_0x39760f);this['_joinWithAdjacentSuggestions'](new Set([_0x4cb9eb])),this['_refreshSuggestionsChain'](new Set([_0x4cb9eb]));},_0x598645);return this['listenTo'](_0x51830b,'accept',()=>{this['_updateSuggestionData'](_0x39760f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x51830b,'discard',()=>{this['_updateSuggestionData'](_0x39760f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x39760f,_0x51830b),this['_suggestionState']['set'](_0x51830b,'notReady'),_0x51830b;}['_splitMarkerName'](_0x487ea2){return _0x3156a3(_0x487ea2);}['_breakSuggestionMarker'](_0x12bed0,_0x4e1813,_0x2d3598){const _0x280933=_0x12bed0['getFirstRange'](),_0x359ffc=_0x280933['start'],_0x47e27c=_0x280933['end'];this['_setSuggestionRange'](_0x12bed0,this['_model']['createRange'](_0x359ffc,_0x4e1813));const _0x453a7e=_0x1b5ac0(),_0x4867b4=_0x12bed0['creator']['id'],_0x39112b=_0x12bed0['type']+(_0x12bed0['subType']?':'+_0x12bed0['subType']:'');this['_setSuggestionData']({'id':_0x453a7e,'type':_0x39112b,'createdAt':new Date(),'authorId':_0x4867b4,'originalSuggestionId':_0x12bed0['_originalSuggestionId']||_0x12bed0['id'],'attributes':_0x12bed0['attributes'],'data':_0x12bed0['data']});const _0x2d9964=this['_getAttributeKey'](_0x12bed0);('formatBlock'==_0x12bed0['type']||_0x2d9964&&this['_isBlockAttribute'](_0x2d9964))&&(_0x2d3598=this['_model']['createPositionBefore'](_0x2d3598['parent'])),this['_addSuggestionMarker'](_0x39112b,_0x453a7e,_0x4867b4,this['_model']['createRange'](_0x2d3598,_0x47e27c));}['_findSuggestions'](_0x3a3365,_0x8aeb19=null){const _0x29d3cb=[],_0x33e9e7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3a3365)||(_0x3a3365=[_0x3a3365]);for(const _0x33e387 of this['getSuggestions']()){if(!_0x33e387['isInContent'])continue;if(_0x8aeb19&&_0x33e387['type']!=_0x8aeb19)continue;let _0x5e1a8a=!0x1;for(const _0xc1dbac of _0x33e387['getRanges']()){for(const _0x1c22e8 of _0x3a3365){const _0x4bf76b=_0x1c22e8['start']['isEqual'](_0xc1dbac['end'])||_0x1c22e8['end']['isEqual'](_0xc1dbac['start']);if(_0x4bf76b||_0x1c22e8['getIntersection'](_0xc1dbac)){const _0x45c737=_0x1c22e8['containsRange'](_0xc1dbac)&&zt(this['_model']['schema'],_0xc1dbac['start'],_0x1c22e8),_0x5ad3d5=_0xc1dbac['containsRange'](_0x1c22e8)&&zt(this['_model']['schema'],_0x1c22e8['start'],_0xc1dbac);_0x29d3cb['push']({'suggestion':_0x33e387,'meta':{'isOwn':_0x33e9e7==_0x33e387['author'],'isNextTo':_0x4bf76b,'isInsideObject':_0x45c737,'containsRangeInObject':_0x5ad3d5}}),_0x5e1a8a=!0x0;break;}}if(_0x5e1a8a)break;}}return _0x29d3cb;}['_addSuggestionMarker'](_0x41e54a,_0x559253,_0x17e364,_0x55c187,_0x11886c){this['_model']['change'](_0x127db1=>{let _0xe8710a='suggestion:'+_0x41e54a+':'+_0x559253+':'+_0x17e364;_0x11886c&&(_0xe8710a=_0xe8710a+':'+_0x11886c),_0x127db1['addMarker'](_0xe8710a,{'range':_0x55c187,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x33eb62){const _0x1b1a18=_0x33eb62['previous'],_0x387f6c=_0x33eb62['next'];_0x33eb62['previous']=null,_0x33eb62['next']=null,null!=_0x1b1a18&&_0x1b1a18['next']==_0x33eb62&&(_0x1b1a18['next']=_0x387f6c),null!=_0x387f6c&&_0x387f6c['previous']==_0x33eb62&&(_0x387f6c['previous']=_0x1b1a18),'ready'==this['_suggestionState']['get'](_0x33eb62)&&(this['_suggestionState']['set'](_0x33eb62,'removed'),this['fire']('suggestionUnloaded',_0x33eb62,_0x1b1a18,_0x387f6c));}['_setSuggestionData'](_0x2627e5){const _0x3e2b6f=_0x2627e5['id'],_0x303b6d=this['addSuggestionData'](_0x2627e5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x32b25d=this['editor']['plugins']['get']('PendingActions'),_0x32e98d=_0x303b6d['hasComments'],_0x1cca08=_0x303b6d['subType']?_0x303b6d['type']+':'+_0x303b6d['subType']:_0x303b6d['type'],_0x27ebb4=this['editor']['locale'],_0x377e71=_0x32b25d['add'](o(_0x27ebb4,'PENDING_ACTION_SUGGESTION')),_0x178ba7={'id':_0x3e2b6f,'type':_0x1cca08,'hasComments':_0x32e98d,'data':_0x2627e5['data']||null,'originalSuggestionId':_0x2627e5['originalSuggestionId']||null,'attributes':_0x303b6d['attributes']};this['_adapter']['addSuggestion'](_0x178ba7)['then'](_0xa035e1=>{_0x303b6d['_saved']=!0x0,_0x32b25d['remove'](_0x377e71),_0xa035e1&&_0xa035e1['createdAt']&&(this['_suggestions']['get'](_0x3e2b6f)['createdAt']=_0xa035e1['createdAt']);})['catch'](_0x4f505f=>{throw _0x3587d4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x303b6d['discard']();}),_0x303b6d['stopListening'](),this['_suggestions']['delete'](_0x303b6d['id']),this['_suggestionState']['delete'](_0x303b6d),_0x4f505f;});}return _0x303b6d;}['_isBlockAttribute'](_0x15ff81){return this['editor']['plugins']['get'](_0x5ea722)['isBlockAttribute'](_0x15ff81);}['_isInlineAttribute'](_0x5dbad7){return this['editor']['plugins']['get'](_0x5ea722)['isInlineAttribute'](_0x5dbad7);}['_updateSuggestionData'](_0x23637e,_0x58dadf){const _0x2e7f41=this['editor']['plugins']['get']('PendingActions'),_0x5f1247=this['getSuggestion'](_0x23637e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5f1247['_saved']){const _0x3339d9=_0x2e7f41['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x23637e,_0x58dadf)['then'](()=>{_0x2e7f41['remove'](_0x3339d9);});}else _0x5f1247['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x23637e,_0x58dadf);});}}['_getSuggestionData'](_0x457aea){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xfd9767('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x457aea);}['_handleNewSuggestionMarker'](_0x501caa){const {id:_0x308e80,type:_0x336e86,subType:_0x2ae1a8,authorId:_0x1c53a4}=this['_splitMarkerName'](_0x501caa),_0x29fa0e=this['_suggestions']['get'](_0x308e80)||this['_createSuggestion'](_0x336e86,_0x2ae1a8,_0x308e80,_0x1c53a4,{});switch(this['_checkSuggestionCorrectness'](_0x29fa0e,_0x336e86,_0x2ae1a8,_0x1c53a4),this['_suggestionState']['get'](_0x29fa0e)){case'notReady':this['_getSuggestionData'](_0x308e80)['then'](_0x239599=>{let _0x4d9284=Promise['resolve']();_0x239599['hasComments']&&(_0x4d9284=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x308e80})),_0x4d9284['then'](()=>{this['addSuggestionData'](_0x239599)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x29fa0e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x308e80,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x29fa0e,'ready'),this['fire']('suggestionLoaded',_0x29fa0e);break;case'ready':this['fire']('suggestionChanged',_0x29fa0e);}return _0x29fa0e['addMarkerName'](_0x501caa),_0x29fa0e;}['_refreshSuggestionsChain'](_0x5af4cc){const _0x4b0c6f=Array['from'](_0x5af4cc),_0x4f8b6d=_0x4b0c6f['filter'](_0x16c9ec=>'attribute'==_0x16c9ec['type']);this['_refreshAttributeSuggestionsChain'](_0x4f8b6d);const _0x4ff748=_0x4b0c6f['filter'](_0x52c908=>!_0x52c908['isMultiRange']&&'attribute'!=_0x52c908['type']),_0x4bfec3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40018f=>!_0x40018f['isMultiRange']&&'attribute'!=_0x40018f['type']),_0x420936=_0x4bfec3['filter'](_0x5a0158=>!_0x5af4cc['has'](_0x5a0158)),_0x172319=new Map(_0x4bfec3['map'](_0x4212dc=>[_0x4212dc,this['_suggestionFactory']['getSuggestionCallback'](_0x4212dc['type'],_0x4212dc['subType'],'chain')])),_0x57b727=new Map(_0x4bfec3['map'](_0x5bff83=>[_0x5bff83,_0x5bff83['getFirstRange']()])),_0x5051b1=new Set(),_0x5a5e06=new Set();for(let _0x2ccf38=0x0;_0x2ccf38<_0x4ff748['length'];_0x2ccf38++)_0x188ad4(_0x4ff748[_0x2ccf38],_0x4ff748,_0x2ccf38+0x1);for(let _0x1b9f17=0x0;_0x1b9f17<_0x4ff748['length'];_0x1b9f17++)_0x188ad4(_0x4ff748[_0x1b9f17],_0x420936,0x0);const _0x5a63cd=new Set();for(let _0x334424=0x0;_0x334424<_0x4ff748['length'];_0x334424++){const _0x194276=_0x4ff748[_0x334424];!_0x5a5e06['has'](_0x194276)&&_0x194276['previous']&&(_0x5a63cd['add'](_0x194276['previous']),_0x194276['previous']['next']===_0x194276&&(_0x194276['previous']['next']=null),_0x194276['previous']=null),!_0x5051b1['has'](_0x194276)&&_0x194276['next']&&(_0x5a63cd['add'](_0x194276['next']),_0x194276['next']['previous']===_0x194276&&(_0x194276['next']['previous']=null),_0x194276['next']=null);}function _0x188ad4(_0x1cb63a,_0x266ff1,_0x1f4a4d){for(let _0x5cf836=_0x1f4a4d;_0x5cf836<_0x266ff1['length'];_0x5cf836++){const _0x3d018e=_0x10284f(_0x1cb63a,_0x266ff1[_0x5cf836]);_0x3d018e&&(_0x3d018e[0x0]['next']=_0x3d018e[0x1],_0x3d018e[0x1]['previous']=_0x3d018e[0x0],_0x5051b1['add'](_0x3d018e[0x0]),_0x5a5e06['add'](_0x3d018e[0x1]));}}function _0x10284f(_0x320f17,_0x20a41c){if(_0x320f17['author']['id']!==_0x20a41c['author']['id'])return null;const _0x21f870=_0x172319['get'](_0x320f17)(_0x320f17,_0x20a41c,_0x57b727['get'](_0x320f17),_0x57b727['get'](_0x20a41c));if(!_0x21f870)return null;return _0x172319['get'](_0x20a41c)(_0x320f17,_0x20a41c,_0x57b727['get'](_0x320f17),_0x57b727['get'](_0x20a41c))?_0x21f870[0x1]['commentThread']&&_0x21f870[0x1]['commentThread']['length']?null:_0x21f870:null;}_0x5a63cd['size']&&this['_refreshSuggestionsChain'](_0x5a63cd);}['_refreshAttributeSuggestionsChain'](_0x34c1fd){if(0x0==_0x34c1fd['length'])return;const _0x551fef=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d1115=>'attribute'==_0x5d1115['type']&&_0x5d1115['_isDataLoaded']),_0x57b3a3=[],_0xc25ef1=new Map();for(const _0x3fbbc0 of _0x551fef){const _0x13b2bd=_0x5620e2(_0x3fbbc0['attributes']);_0xc25ef1['has'](_0x13b2bd)||(_0xc25ef1['set'](_0x13b2bd,_0x57b3a3['length']),_0x57b3a3['push']([]));const _0x3f4a27=_0xc25ef1['get'](_0x13b2bd);_0x57b3a3[_0x3f4a27]['push'](_0x3fbbc0);}!(function(){_0x57b3a3['sort']((_0x37ad85,_0x3a2610)=>{const _0x408138=_0x37ad85[0x0]['createdAt'],_0x811964=_0x3a2610[0x0]['createdAt'];return _0x408138==_0x811964?_0x37ad85[0x0]['attributes']['groupId']<_0x3a2610[0x0]['attributes']['groupId']?-0x1:0x1:_0x408138<_0x811964?-0x1:0x1;});for(const _0x7bd45 of _0x57b3a3)_0x7bd45['sort']((_0x9a3fee,_0x37f6fc)=>_0x9a3fee['id']<_0x37f6fc['id']?-0x1:0x1);}());for(let _0x31c6c5=0x0;_0x31c6c5<_0x57b3a3['length'];_0x31c6c5++){if(0x0==_0x57b3a3[_0x31c6c5]['length'])continue;const _0x2157b6=[];for(let _0x4a1b63=_0x31c6c5+0x1;_0x4a1b63<_0x57b3a3['length'];_0x4a1b63++)0x0!=_0x57b3a3[_0x4a1b63]['length']&&_0x48b2ed(_0x57b3a3[_0x31c6c5],_0x57b3a3[_0x4a1b63])&&_0x2157b6['push'](_0x4a1b63);for(const _0x5c78df of _0x2157b6)_0x57b3a3[_0x31c6c5]=_0x57b3a3[_0x31c6c5]['concat'](_0x57b3a3[_0x5c78df]),_0x57b3a3[_0x5c78df]=[];}for(const _0x55544f of _0x57b3a3)for(let _0x54745c=0x0;_0x54745c<_0x55544f['length'];_0x54745c++){const _0x1c1448=_0x55544f[_0x54745c+0x1]||null;_0x55544f[_0x54745c]['next']!==_0x1c1448&&(_0x55544f[_0x54745c]['next']=_0x1c1448);}for(const _0x21d809 of _0x57b3a3)for(let _0x4aeb72=0x0;_0x4aeb72<_0x21d809['length'];_0x4aeb72++){const _0x172ccf=_0x21d809[_0x4aeb72-0x1]||null;_0x21d809[_0x4aeb72]['previous']!==_0x172ccf&&(_0x21d809[_0x4aeb72]['previous']=_0x172ccf);}function _0x48b2ed(_0x3ddc57,_0x21434c){if(_0x3ddc57[0x0]['attributes']['groupId']!==_0x21434c[0x0]['attributes']['groupId']&&_0x3ddc57[0x0]['author']!==_0x21434c[0x0]['author'])return!0x1;if(!function(_0x3d3686,_0x44fdb2){if(!_0x3d3686['hasComments']&&!_0x44fdb2['hasComments'])return!0x0;if(_0x3d3686['hasComments']&&_0x44fdb2['hasComments'])return!0x1;if(_0x3d3686['hasComments']&&_0x44fdb2['createdAt']<_0x3d3686['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x44fdb2['hasComments']&&_0x3d3686['createdAt']<_0x44fdb2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3ddc57[0x0],_0x21434c[0x0]))return!0x1;const _0x533e7a=Jt(_0x3ddc57[0x0]['attributes'],['groupId','trackingSessionId']),_0x2a8604=Jt(_0x21434c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x548ac7(_0x533e7a,_0x2a8604))return!0x1;if(_0x3ddc57[0x0]['attributes']['groupId']==_0x21434c[0x0]['attributes']['groupId'])return!0x0;if(_0x3ddc57[0x0]['attributes']['trackingSessionId']!==_0x21434c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3ddc57['every'](_0x1e1ca4=>_0x21434c['some'](_0x10ea13=>_0x1e1ca4['getFirstRange']()['isEqual'](_0x10ea13['getFirstRange']())))&&_0x21434c['every'](_0x2a3f0c=>_0x3ddc57['some'](_0x2d2016=>_0x2a3f0c['getFirstRange']()['isEqual'](_0x2d2016['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x24fab7){const _0x4f3acc=Array['from'](_0x24fab7),_0x51080c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x235976=_0x51080c['filter'](_0x412590=>!_0x24fab7['has'](_0x412590)),_0x5de769=new Map(_0x4f3acc['map'](_0x139364=>[_0x139364,this['_suggestionFactory']['getSuggestionCallback'](_0x139364['type'],_0x139364['subType'],'join')])),_0x28bcb3=new Map(_0x51080c['map'](_0x38f0e9=>[_0x38f0e9,_0x38f0e9['getRanges']()]));for(let _0x1d6506=0x0;_0x1d6506<_0x4f3acc['length'];_0x1d6506++){if(_0x5ae55f(this,_0x4f3acc[_0x1d6506],_0x4f3acc,_0x1d6506+0x1))return!0x0;}for(let _0x2f07e0=0x0;_0x2f07e0<_0x4f3acc['length'];_0x2f07e0++){if(_0x5ae55f(this,_0x4f3acc[_0x2f07e0],_0x235976,0x0))return!0x0;}return!0x1;function _0x5ae55f(_0x17aca5,_0xc9b3ea,_0x4653af,_0xb6e9f3){for(let _0x1fb0d8=_0xb6e9f3;_0x1fb0d8<_0x4653af['length'];_0x1fb0d8++){const _0x5efda0=_0x4653af[_0x1fb0d8];if(_0x5efda0['type']!==_0xc9b3ea['type']||_0x5efda0['author']['id']!==_0xc9b3ea['author']['id']||_0x5efda0['subType']!==_0xc9b3ea['subType'])continue;if(!en(_0xc9b3ea,_0x5efda0))continue;if('attribute'==_0xc9b3ea['type']&&_0xc9b3ea['data']['oldValue']!=_0x5efda0['data']['oldValue'])continue;if('attribute'==_0xc9b3ea['type']&&_0x17aca5['_isBlockAttribute'](_0xc9b3ea['data']['key']))continue;if('formatBlock'==_0xc9b3ea['type']){const _0x2a98d8=_0x17aca5['editor']['model'],_0x2b0247=_0xc9b3ea['getContainedElement']();if(_0x2b0247&&(_0x2a98d8['schema']['isObject'](_0x2b0247)||_0x2a98d8['schema']['isLimit'](_0x2b0247)))continue;}const _0xa0bf24=_0x5de769['get'](_0xc9b3ea),_0x4af4ad=_0x28bcb3['get'](_0xc9b3ea),_0x3fd519=_0x28bcb3['get'](_0x5efda0),_0x57ccfc=_0xc9b3ea['commentThread']&&_0xc9b3ea['commentThread']['length'],_0x452e3=_0x5efda0['commentThread']&&_0x5efda0['commentThread']['length'];if(!_0x57ccfc&&_0xa0bf24(_0x3fd519,_0x4af4ad))return _0x17aca5['_joinSuggestions'](_0x5efda0,_0xc9b3ea),_0x28bcb3['delete'](_0xc9b3ea),!0x0;if(!_0x452e3&&_0xa0bf24(_0x4af4ad,_0x3fd519))return _0x17aca5['_joinSuggestions'](_0xc9b3ea,_0x5efda0),_0x28bcb3['delete'](_0x5efda0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2339eb,_0x342f77){if(_0x2339eb['isMultiRange']){for(const _0x451561 of _0x342f77['getRanges']())_0x2339eb['addRange'](_0x451561);}else{const _0x2610e9=_0x342f77['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2339eb,this['_model']['createRange'](_0x2339eb['getFirstRange']()['start'],_0x2610e9));}_0x342f77['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5c95cb,_0x5af10e,_0x1c5805){const _0x4c2717=_0x5c95cb['startsWith']('format')||_0x5c95cb['startsWith']('attribute')?'FORMATTING':_0x5c95cb['toUpperCase']();return o(this['editor']['locale'],_0x5af10e+'_'+_0x4c2717+'_SUGGESTION_ANNOUNCEMENT',_0x1c5805);}['_initAriaMarkerChangeAnnouncements'](){const _0x18ef82=this['editor'];if(!_0x18ef82['ui'])return;const {ariaLiveAnnouncer:_0x16d8c8}=_0x18ef82['ui'];_0x596740(this['_model'],({left:_0x400a0a,entered:_0x3be136})=>{for(const _0x3fd3bb of _0x400a0a){const {group:_0x186f98,type:_0x27ef92}=this['_splitMarkerName'](_0x3fd3bb['name']);if('suggestion'===_0x186f98){_0x16d8c8['announce'](this['_getMarkerAnnouncementText'](_0x27ef92,'LEAVE'));break;}}for(const _0x132a22 of _0x3be136){const {group:_0x1ac6dc,type:_0x219510}=this['_splitMarkerName'](_0x132a22['name']);if('suggestion'===_0x1ac6dc){_0x16d8c8['announce'](this['_getMarkerAnnouncementText'](_0x219510,'ENTER',_0x2b647c(_0x285271)));break;}}});}['_processAttributeChanges'](_0x493c41){if(this['_recordAttributeSuggestions'])return!0x1;const _0x18c77c=this['editor'],_0x2b5165=_0x18c77c['model']['document']['differ']['getChanges']();if(0x0==_0x2b5165['length'])return!0x1;const _0x85c3bf=[],_0x4e1282=_0x2b5165['filter'](_0x3116e4=>'attribute'==_0x3116e4['type']),_0x196d6e=_0x2b5165['filter'](_0x114e30=>'insert'==_0x114e30['type']&&'$text'!=_0x114e30['name']),_0x46b6d5=_0x2b5165['filter'](_0x473593=>'remove'==_0x473593['type']&&'$text'!=_0x473593['name']);for(const _0x24539f of _0x4e1282)_0x85c3bf['push']({'key':_0x24539f['attributeKey'],'newValue':_0x24539f['attributeNewValue'],'oldValue':_0x24539f['attributeOldValue'],'range':Zt(_0x24539f['range'],_0x18c77c['model'])});for(const _0x1dca77 of _0x196d6e){const _0x39c9f9=_0x46b6d5['find'](_0x1c7dd6=>_0x1c7dd6['position']['isEqual'](_0x1dca77['position']));_0x39c9f9&&_0x85c3bf['push']({'key':m,'newValue':_0x1dca77['name'],'oldValue':_0x39c9f9['name'],'range':_0x18c77c['model']['createRangeOn'](_0x1dca77['position']['nodeAfter'])});}return 0x0!=_0x85c3bf['length']&&this['_reduceExistingSuggestions'](_0x493c41,_0x85c3bf);}['_processAttributeSuggestions'](_0x50ebbc){let _0x59bd4e=!0x1;const _0x556fee=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4fce16=>_0x4fce16['data']['newRange']&&_0x4fce16['name']['startsWith']('suggestion:attribute:'));for(const _0x20a6e5 of _0x556fee){const {subType:_0x58083a,id:_0x115400}=this['_splitMarkerName'](_0x20a6e5['name']),_0x507af6=_0x58083a['split']('|')[0x0];for(const _0x51f449 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x51f449['id']!=_0x115400&&'attribute'==_0x51f449['type']&&_0x51f449['data']&&_0x51f449['data']['key']==_0x507af6&&_0x51f449['getFirstRange']()['isIntersecting'](_0x20a6e5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x51f449,_0x20a6e5['data']['newRange'],_0x50ebbc),_0x59bd4e=!0x0);}return _0x59bd4e;}['recordAttributeChanges'](_0x336f56){this['_recordAttributeSuggestions']=!0x0,_0x336f56();}['_isRegisteredAttribute'](_0x25b9e7){return this['editor']['plugins']['get'](_0x5ea722)['isRegisteredAttribute'](_0x25b9e7);}['_reduceExistingSuggestions'](_0x1ce6f6,_0x35ef86){if(0x0==_0x35ef86['length'])return!0x1;let _0x3ea10f=!0x1;for(const _0x21f6cc of _0x35ef86){const _0x412c55=this['_findSuggestions'](_0x21f6cc['range'],'attribute')['filter'](_0x18b177=>!_0x18b177['meta']['isNextTo'])['map'](_0x7cd16b=>_0x7cd16b['suggestion']),_0x311f50=_0x5620e2({'newValue':_0x21f6cc['newValue']});_0x412c55['filter'](_0x1f35fc=>{const [_0x3f76aa,_0xadf1ea]=_0x1f35fc['subType']['split']('|');return _0x3f76aa==_0x21f6cc['key']&&_0xadf1ea!=_0x311f50;})['forEach'](_0x4b06f0=>{this['_reduceSuggestionAttributeRange'](_0x4b06f0,_0x21f6cc['range'],_0x1ce6f6),_0x3ea10f=!0x0;});}return _0x3ea10f;}['_reduceSuggestionAttributeRange'](_0x1bfedb,_0x4e5751,_0x1318b7){const _0x5ee59d=_0x1bfedb['getFirstRange']()['getDifference'](_0x4e5751);0x0!==_0x5ee59d['length']?0x1!==_0x5ee59d['length']?this['_breakSuggestionMarker'](_0x1bfedb,_0x4e5751['start'],_0x4e5751['end']):this['_setSuggestionRange'](_0x1bfedb,_0x5ee59d[0x0]):_0x1318b7['removeMarker'](_0x1bfedb['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x499850){this['_editor']=_0x499850,this['_model']=_0x499850['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2b649f,_0x23cf53,_0x452b1e,_0x35bd5c,_0x59050b,_0x5457b0,_0x1059a4){return new T(this['_model'],{'type':_0x2b649f,'subType':_0x23cf53,'id':_0x452b1e,'originalSuggestionId':_0x1059a4,'author':_0x35bd5c,'creator':_0x35bd5c,'attributes':_0x59050b,'onAttributesChange':_0x5457b0,'onAccept':(..._0x1b18dc)=>this['getSuggestionCallback'](_0x2b649f,_0x23cf53,'accept')(..._0x1b18dc),'onDiscard':(..._0x29c39f)=>this['getSuggestionCallback'](_0x2b649f,_0x23cf53,'discard')(..._0x29c39f)});}['registerCustomCallback'](_0x40d010,_0x5e5775,_0x13aa0a,_0x25ea4e){const _0x47e3b8=_0x40d010+':'+_0x5e5775+':'+_0x13aa0a;this['_customCallbacks']['set'](_0x47e3b8,_0x25ea4e);}['getSuggestionCallback'](_0x1f725a,_0x25d74d,_0x774ecf){const _0x369ee=_0x1f725a+':'+_0x25d74d+':'+_0x774ecf;return this['_customCallbacks']['get'](_0x369ee)||this['_defaultCallbacks']['get'](_0x1f725a+':'+_0x774ecf);}['_registerDefaultCallbacks'](){const _0x2b4c15=()=>!0x1,_0xe0249a=_0x16a8b1=>{_0x16a8b1['sort']((_0x248bf9,_0x1ef07c)=>_0x248bf9['start']['isBefore'](_0x1ef07c['start'])?0x1:-0x1),this['_model']['change'](_0x4a4802=>{for(const _0x13e9d2 of _0x16a8b1){let _0x577364;_0x577364=_0x13e9d2['end']['isAtEnd']&&_0x13e9d2['end']['parent']==_0x13e9d2['start']['nodeAfter']?_0x4a4802['createSelection'](_0x13e9d2['start']['nodeAfter'],'on'):_0x4a4802['createSelection'](_0x13e9d2),this['_model']['deleteContent'](_0x577364,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1c1dcc=(_0x12f77c,_0x16c0bf)=>{_0x16c0bf&&this['_model']['change'](_0x5a3906=>{const {commandName:_0xd46d6b,commandParams:_0x3768e4=[]}=_0x16c0bf,_0x29b83e=_0x12f77c['map'](_0x3cf843=>(Kt(_0x3cf843)&&(_0x3cf843=this['_model']['createRange'](_0x3cf843['end'])),_0x3cf843))['filter'](_0x17735a=>'$graveyard'!==_0x17735a['root']['rootName']);if(_0x29b83e['length']<0x1)return;const _0x4028ca=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2b44d8=>_0x321f06['fromRange'](_0x2b44d8));_0x5a3906['setSelection'](_0x29b83e);for(const _0x6614cf of this['_editor']['commands']['commands']())_0x6614cf['refresh']();_0x3768e4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xd46d6b,..._0x3768e4);const _0x1b1934=_0x4028ca['filter'](_0x142254=>'$graveyard'!=_0x142254['root']['rootName']);_0x1b1934['length']>0x0&&_0x5a3906['setSelection'](_0x1b1934);for(const _0x140149 of _0x4028ca)_0x140149['detach']();});},_0x1af876=(_0x59c3e2,_0x232894)=>0x1==_0x59c3e2['length']&&0x1==_0x232894['length']&&_0x59c3e2[0x0]['end']['isEqual'](_0x232894[0x0]['start']),_0x29fd3c=(_0x294d9f,_0x3d6702,_0x23fbea,_0x3cdc70)=>nn(_0x294d9f,_0x3d6702,_0x23fbea,_0x3cdc70)?[_0x294d9f,_0x3d6702]:nn(_0x3d6702,_0x294d9f,_0x3cdc70,_0x23fbea)?[_0x3d6702,_0x294d9f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2b4c15),this['_defaultCallbacks']['set']('insertion:discard',_0xe0249a),this['_defaultCallbacks']['set']('insertion:join',_0x1af876),this['_defaultCallbacks']['set']('insertion:chain',_0x29fd3c),this['_defaultCallbacks']['set']('deletion:accept',_0xe0249a),this['_defaultCallbacks']['set']('deletion:discard',_0x2b4c15),this['_defaultCallbacks']['set']('deletion:join',_0x1af876),this['_defaultCallbacks']['set']('deletion:chain',_0x29fd3c),this['_defaultCallbacks']['set']('formatInline:accept',_0x1c1dcc),this['_defaultCallbacks']['set']('formatInline:discard',_0x2b4c15),this['_defaultCallbacks']['set']('formatInline:join',_0x1af876),this['_defaultCallbacks']['set']('formatInline:chain',_0x2b4c15),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1c1dcc),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2b4c15),this['_defaultCallbacks']['set']('formatBlock:join',_0x1af876),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2b4c15),this['_defaultCallbacks']['set']('attribute:accept',_0x2b4c15),this['_defaultCallbacks']['set']('attribute:discard',(_0x31bbaa,_0xc38ad0)=>{if(!_0xc38ad0)return;const _0x4875c8=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x23271d=>{if(_0xc38ad0['key']==m)for(const _0x48a914 of _0x31bbaa){const _0x3c1b8d=_0x48a914['start']['nodeAfter'],_0x192c0c=_0xc38ad0['oldValue'];_0x23271d['rename'](_0x3c1b8d,_0x192c0c);}else{if(_0x4875c8['_isBlockAttribute'](_0xc38ad0['key'])){for(const _0x4c11d8 of _0x31bbaa)void 0x0!==_0xc38ad0['oldValue']?_0x23271d['setAttribute'](_0xc38ad0['key'],_0xc38ad0['oldValue'],_0x4c11d8['start']['nodeAfter']):_0x23271d['removeAttribute'](_0xc38ad0['key'],_0x4c11d8['start']['nodeAfter']);}else{for(const _0x303e3a of _0x31bbaa)_0xc38ad0['oldValue']?_0x23271d['setAttribute'](_0xc38ad0['key'],_0xc38ad0['oldValue'],_0x303e3a):_0x23271d['removeAttribute'](_0xc38ad0['key'],_0x303e3a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1af876);}}function zt(_0x236220,_0x219647,_0x468daf){for(const _0x52decd of _0x219647['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x52decd['root']==_0x52decd)return!0x1;if(!_0x468daf['containsItem'](_0x52decd))return!0x1;if(_0x236220['isObject'](_0x52decd)||_0x236220['isLimit'](_0x52decd))return!0x0;}return!0x1;}function Kt(_0x1e34a1){return _0x1e34a1['end']['parent']==_0x1e34a1['start']['nodeAfter']&&_0x1e34a1['end']['isAtStart'];}function Wt(_0x27838d,_0x21f0fb,_0xedcc51,_0x33073b){const _0x3cbfc1=_0x24cffb=>!_0x24cffb['item']['is']('$textProxy')&&!_0x33073b['isObject'](_0x24cffb['item']),_0x4de7cd=_0x27838d['start']['getLastMatchingPosition'](_0x3cbfc1),_0x4f2024=_0x27838d['end']['getLastMatchingPosition'](_0x3cbfc1,{'direction':'backward'});return(!_0x27838d['start']['isEqual'](_0x4de7cd)||!_0x27838d['end']['isEqual'](_0x4f2024))&&(_0x4de7cd['isBefore'](_0x4f2024)?_0xedcc51['updateMarker'](_0x21f0fb,{'range':_0xedcc51['createRange'](_0x4de7cd,_0x4f2024)}):_0xedcc51['removeMarker'](_0x21f0fb),!0x0);}function Ht(_0x53cd82){return _0x5620e2(_0x53cd82);}function Qt(_0x2986f4){const _0x235c7d=_0x2986f4['start']['nodeAfter'];return _0x235c7d&&_0x235c7d['is']('element');}function Xt(_0x819d46){return Kt(_0x819d46)||function(_0x1c7318){return _0x1c7318['start']['parent']==_0x1c7318['end']['nodeBefore']&&_0x1c7318['start']['isAtEnd'];}(_0x819d46);}function Yt(_0x172e8d,_0x5b4f6b){try{const _0x4e4b3f=_0x172e8d['getRange']();for(const _0x186809 of _0x5b4f6b)if(_0x172e8d!==_0x186809&&_0x4e4b3f&&_0x4e4b3f['isIntersecting'](_0x186809['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x594dd2,_0x15d759){return null==_0x594dd2['end']['nodeBefore']&&_0x594dd2['end']['parent']==_0x594dd2['start']['nodeAfter']?tn(_0x594dd2['start']['nodeAfter'],_0x15d759):_0x594dd2;}function tn(_0x2153cc,_0x19d66f){const _0x51860d=_0x19d66f['schema']['isObject'](_0x2153cc)||_0x19d66f['schema']['isSelectable'](_0x2153cc);return _0x19d66f['createRange'](_0x19d66f['createPositionAt'](_0x2153cc,'before'),_0x51860d?_0x19d66f['createPositionAfter'](_0x2153cc):_0x19d66f['createPositionAt'](_0x2153cc,'end'));}function nn(_0x124a21,_0x5a34f2,_0x538b94,_0x14a17b){return!!en(_0x124a21,_0x5a34f2)&&_0x538b94['end']['isEqual'](_0x14a17b['start']);}function en(_0x494e97,_0x3a7119){if(!_0x494e97['_isDataLoaded']||!_0x3a7119['_isDataLoaded'])return!0x1;const _0x37d3fe=new Set(Object['keys'](_0x494e97['attributes'])),_0x228a3a=new Set(Object['keys'](_0x3a7119['attributes']));if(_0x37d3fe['delete']('groupId'),_0x228a3a['delete']('groupId'),0x0==_0x37d3fe['size']&&0x0==_0x228a3a['size'])return!0x0;if(_0x37d3fe['size']!=_0x228a3a['size'])return!0x1;const _0x475561={..._0x494e97['attributes']},_0x1ad1c6={..._0x3a7119['attributes']};return delete _0x475561['groupId'],delete _0x1ad1c6['groupId'],JSON['stringify'](_0x475561)==JSON['stringify'](_0x1ad1c6);}function sn(_0x9d6159,_0x5d3e69){const _0x26b994=on(_0x9d6159['attributes']),_0xd7d887=on(_0x5d3e69);if(!_0x9d6159['_isDataLoaded'])return!0x1;for(const _0x39f5df of Object['keys'](_0xd7d887))if(!_0x548ac7(_0x26b994[_0x39f5df],_0xd7d887[_0x39f5df]))return!0x1;return!0x0;}function on(_0x2b6518){const _0x38c6f5=Object['assign']({},_0x2b6518);return delete _0x38c6f5['skipNestingCheck'],delete _0x38c6f5['tablePasteChainId'],_0x38c6f5;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x4b9957(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4fa007,_0x598dbd,_0x4fbbb2,_0x3463db){super(),this['model']=_0x598dbd,this['view']=_0x4fbbb2,this['commentThreadController']=_0x3463db,this['_editor']=_0x4fa007,this['_acceptCommand']=_0x4fa007['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4fa007['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x20cd7f,_0x403e17)=>_0x20cd7f||_0x403e17),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2097e0=>_0x2097e0&&this['_editor']['model']['canEditAt'](_0x598dbd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x19ae59=>_0x19ae59&&this['_editor']['model']['canEditAt'](_0x598dbd['getRanges']())),this['_pendingAction']=null,_0x4fbbb2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4fbbb2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4fbbb2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4fbbb2,'change:isDirty',()=>{_0x4fbbb2['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 _0x11519c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x11519c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x4f4180{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3f330c,_0x289fc7,_0x42e276,_0x290bf4){super(_0x3f330c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x535ee5(_0x3f330c,o(_0x3f330c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x289fc7['authoredAt']),this['bind']('authoredAt')['to'](_0x289fc7),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',_0x289fc7,'authoredAt',this,'descriptionParts',(_0x1b5375,_0x4c5d6f,_0x3b7c41)=>{const _0x39fa96=_0x3b7c41['map'](_0x5a7e14=>ls(_0x5a7e14['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1b5375-0x1,_0x289fc7['author']['name'],_0x4c5d6f?_0x290bf4['formatDateTime'](_0x4c5d6f):'',new DOMParser()['parseFromString'](_0x39fa96,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2e2df7(),this['focusTracker']=new _0x7dfc5d(),this['keystrokes']=new _0x492a2e(),this['focusCycler']=new _0x2188cf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2e588c=>_0x2e588c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x289fc7,this['_localUser']=_0x42e276,this['_config']=_0x290bf4,_0x290bf4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3dfb16(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x198a75}=this['_config'];this['commentsListView']=new _0x198a75(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',_0x3ae7ed=>_0x3ae7ed+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2acd3d,_0x132846)=>_0x2acd3d||!!_0x132846);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3cbb63}=this['_config'],_0x39aa7d=new _0x3cbb63(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2ef7d9=_0x39aa7d['commentInputView'];return _0x39aa7d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2ef7d9,'value',(_0x1ab1aa,_0x1f9847,_0x1ca266)=>!!_0x1ca266||_0x1ab1aa&&!_0x1f9847),_0x2ef7d9['on']('submit',(_0x39ad15,_0x377829)=>{this['fire']('addComment',_0x377829),_0x2ef7d9['editor']['setData']('');}),_0x2ef7d9['on']('cancel',()=>this['focus']()),_0x2ef7d9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x39aa7d;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x4db5f1,_0x6b65ea,_0x50f3c6,_0x82f562){super(_0x4db5f1,_0x6b65ea,_0x50f3c6,_0x82f562),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x447acf=>_0x447acf&&_0x447acf[0x0]?_0x447acf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x528673,_0x2a85f3)=>{let _0x542915='';for(const _0xaee063 of _0x528673)_0x542915+='<p>'+ls(_0xaee063['content'],_0xaee063['color'])+'</p>';return _0x2a85f3?_0x542915:_0x636b2e(_0x542915,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x82f562['SuggestionView'](_0x4db5f1,_0x6b65ea,{'formatDateTime':_0x82f562['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 _0x5813eb=this['bindTemplate'],_0x150bd8=[this['suggestionView']];return this['commentsListView']&&_0x150bd8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x150bd8['push'](this['commentThreadInputView']),_0x150bd8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5813eb['if']('isActive','ck-suggestion-wrapper--active'),_0x5813eb['to']('type',_0x51e095=>'ck-suggestion-'+_0x51e095),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':_0x5813eb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x150bd8};}['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 _0x4f4180{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x62342b,_0x394fca,_0x26e965){super(_0x62342b),this['_model']=_0x394fca,this['_config']=_0x26e965,this['set']('description',''),this['bind']('authoredAt')['to'](_0x394fca),this['acceptButton']=this['_createButton'](o(_0x62342b,'Accept\x20suggestion'),_0x1727c6,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x62342b,'Discard\x20suggestion'),_0x152be5,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5452b8(_0x62342b,_0x394fca['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2e2df7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x7dfc5d(),this['keystrokes']=new _0x492a2e(),this['focusCycler']=new _0x2188cf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x203b21=>_0x203b21['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1485d6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1485d6['innerHTML']=this['description'],this['on']('change:description',(_0x1e667a,_0xa5f379,_0x16dec3)=>{_0x1485d6['innerHTML']=_0x16dec3;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1f3afe=this['bindTemplate'],_0x1151bd=[{'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':_0x1f3afe['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1f3afe['to']('authoredAt',_0x5c2e8d=>this['_config']['formatDateTime'](_0x5c2e8d))}]}]},{'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']&&_0x1151bd['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':_0x1151bd}]};}['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'](_0xca5656,_0x5eb41f,_0x28a2dc,_0x27ce3c,_0x1e0c20){const _0x14b8ed=new _0x5a0786(this['locale']);return _0x14b8ed['set']({'label':_0xca5656,'icon':_0x5eb41f,'tooltip':!0x0,'tooltipPosition':_0x1e0c20}),_0x14b8ed['extendTemplate']({'attributes':{'class':_0x28a2dc}}),_0x14b8ed['on']('execute',()=>{this['fire'](_0x27ce3c,this['_model']['id']);}),_0x14b8ed;}['_setupKeyboardNavigation'](){const _0x497880=this['element'];this['keystrokes']['listenTo'](_0x497880);for(const _0x1dfb4e of this['focusables'])this['focusTracker']['add'](_0x1dfb4e['element']),this['keystrokes']['listenTo'](_0x1dfb4e['element']);this['keystrokes']['set']('enter',(_0x32dbba,_0x420e9b)=>{_0x497880===_0x32dbba['target']&&(this['focusCycler']['focusFirst'](),_0x420e9b());}),this['keystrokes']['set']('esc',(_0xcad19b,_0x3dc2a5)=>{_0x497880!==_0xcad19b['target']&&(this['focus'](),_0x3dc2a5());});}}class u extends _0x1061bc{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x14dd6c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5dac6a){super(_0x5dac6a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2cb05b=this['editor']['config'];_0x2cb05b['define']('trackChanges.SuggestionThreadView',fe),_0x2cb05b['define']('trackChanges.SuggestionView',we),_0x2cb05b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2cb05b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5eeac1,_0x231a77){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5563d4,_0x2d334e]of this['_handleControllerBuffer']){const _0x3b3418=this['_suggestionToController']['has'](_0x5563d4);_0x3b3418||_0x2d334e?_0x3b3418&&_0x2d334e&&this['_destroyController'](_0x5563d4):this['_initializeController'](_0x5563d4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5eeac1,_0x231a77);}['init'](){const _0x43e474=this['editor'],_0x48de96=_0x43e474['plugins']['get']('TrackChangesEditing'),_0x206a93=_0x43e474['plugins']['get']('Annotations'),_0x11b740=_0x43e474['plugins']['get']('EditorAnnotations'),_0x54e79b=_0x43e474['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x11b740['addSourceCollector'](()=>{const _0x183105=[];for(const [_0xb2578c,_0x11b3b2]of Array['from'](this['_suggestionToController'])){const _0x14dbf7=_0xb2578c['getAllAdjacentSuggestions'](),_0x209ff2=[];for(const _0x5b998d of _0x14dbf7){if(!_0x5b998d['isInContent'])continue;if(_0x5b998d['isMultiRange']){_0x209ff2['push'](..._0x5b998d['getRanges']());continue;}const _0x3e21cb=_0x5b998d['getFirstRange']();if(_0x209ff2['length']>0x0){const _0x46f7b6=_0x209ff2[0x0]['getJoined'](_0x3e21cb);if(_0x46f7b6){_0x209ff2[0x0]=_0x46f7b6;continue;}}_0x209ff2['push'](_0x3e21cb);}_0x183105['push']([_0x11b3b2['view'],_0x209ff2]);}return _0x183105;}),this['listenTo'](_0x48de96,'suggestionLoaded',(_0x579552,_0x4406e8)=>{this['listenTo'](_0x4406e8,'change:previous',(_0x10301a,_0x5d859d,_0x34becb,_0x391869)=>{_0x4406e8['isInContent']&&(null==_0x34becb?(this['_updateController'](_0x391869['head']),this['_handleSuggestionControllerDelayed'](_0x4406e8,!0x1)):(this['_updateController'](_0x34becb['head']),null==_0x391869&&this['_handleSuggestionControllerDelayed'](_0x4406e8,!0x0)));}),null!==_0x4406e8['previous']?this['_updateController'](_0x4406e8['head']):this['_handleSuggestionControllerDelayed'](_0x4406e8,!0x1);}),this['listenTo'](_0x48de96,'suggestionUnloaded',(_0x46e16f,_0x459f8f,_0x59f902)=>{this['stopListening'](_0x459f8f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x459f8f),this['_suggestionToController']['has'](_0x459f8f)&&this['_destroyController'](_0x459f8f),_0x59f902&&this['_updateController'](_0x59f902['head']);}),this['listenTo'](_0x48de96,'suggestionChanged',(_0x46ff35,_0x243487)=>{this['_updateController'](_0x243487);}),this['listenTo'](_0x206a93,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x54e79b,'addComment',(_0x26da69,{threadId:_0x38e964,isFromAdapter:_0x5d02fd})=>{if(_0x5d02fd||!_0x48de96['hasSuggestion'](_0x38e964))return;const _0x5ac597=_0x48de96['getSuggestion'](_0x38e964);this['_suggestionToController']['get'](_0x5ac597)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1bffdd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x802770;for(const _0x113a87 in _0x1bffdd){const _0x1b5e4b=_0x113a87,_0xf25403=_0x1bffdd[_0x1b5e4b];if('trackChangesLicenseKeyValid'==_0xf25403||'trackChangesLicenseKeyInvalid'==_0xf25403||'trackChangesLicenseKeyExpired'==_0xf25403||'trackChangesLicenseKeyDomainLimit'==_0xf25403||'trackChangesLicenseKeyNotAllowed'==_0xf25403||'trackChangesLicenseKeyEvaluationLimit'==_0xf25403||'trackChangesLicenseKeyUsageLimit'==_0xf25403){delete _0x1bffdd[_0x1b5e4b],_0x802770=_0xf25403,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x802770&&_0x1bffdd['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x802770&&_0x1bffdd['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x802770&&_0x1bffdd['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x802770&&_0x1bffdd['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x802770&&_0x1bffdd['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x802770&&_0x1bffdd['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4e31bb){const _0x4ab657=this['_suggestionToController']['get'](_0x4e31bb);if(!_0x4ab657)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4ab657['view'])||null;}['getSuggestionForAnnotation'](_0x53575a){const _0x3b0fe=this['_viewToController']['get'](_0x53575a['innerView']);return _0x3b0fe?_0x3b0fe['model']:null;}['_refreshActiveMarkers'](){const _0x24fed7=this['editor']['plugins']['get']('Annotations'),_0x4f73dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39d5f6=Array['from'](_0x24fed7['activeAnnotations'],_0x278c1c=>_0x278c1c['innerView'])['filter'](_0x24f4cf=>this['_viewToController']['has'](_0x24f4cf)),_0x239dbe=[];for(const _0x5e5b06 of _0x39d5f6){const _0x2bfd98=this['_viewToController']['get'](_0x5e5b06)['model']['getAllAdjacentSuggestions']();_0x239dbe['push'](..._0x2bfd98['reduce']((_0xf76ac0,_0x58c8f4)=>[..._0xf76ac0,..._0x58c8f4['getMarkerNames']()],[]));}_0x4f73dc['activeMarkers']=_0x239dbe;}['_addUIComponentsToFactory'](){const _0x9ee594=this['editor'],_0x4be892=_0x9ee594['locale'],_0x2abbe4=o(_0x4be892,'Track\x20changes'),_0x297cd3=new _0x24c07d([{'type':'switchbutton','model':new _0x38a8a5({'withText':!0x0,'isToggleable':!0x0,'label':_0x2abbe4,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x38a8a5({'withText':!0x0,'label':o(_0x4be892,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38a8a5({'withText':!0x0,'label':o(_0x4be892,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38a8a5({'withText':!0x0,'label':o(_0x4be892,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x38a8a5({'withText':!0x0,'label':o(_0x4be892,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x9ee594['plugins']['has']('TrackChangesPreview')&&_0x297cd3['addMany']([{'type':'separator'},{'type':'button','model':new _0x38a8a5({'withText':!0x0,'label':o(_0x4be892,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x8f2945 of _0x297cd3)if(ke(_0x8f2945)){const _0x3a2f67=_0x9ee594['commands']['get'](_0x8f2945['model']['commandName']);_0x8f2945['model']['bind']('isOn','isEnabled')['to'](_0x3a2f67,'value','isEnabled');}_0x9ee594['ui']['componentFactory']['add']('trackChanges',_0xcb477a=>this['_createToolbarButton'](_0xcb477a,_0x297cd3,_0x2abbe4)),_0x9ee594['ui']['componentFactory']['add']('menuBar:trackChanges',_0x26f8ef=>this['_createMenuBarMenu'](_0x26f8ef,_0x297cd3,_0x2abbe4));}['_createToolbarButton'](_0x75afae,_0x4c9ee4,_0x2cadb3){const _0x2da3e6=_0xd8592f(_0x75afae,_0x36e4fd),_0x5b9d82=this['editor']['commands']['get']('trackChanges');_0x2da3e6['buttonView']['set']({'tooltip':_0x2cadb3,'label':_0x2cadb3,'icon':_0x23a792}),_0x2da3e6['buttonView']['bind']('isOn')['to'](_0x5b9d82,'value'),_0x2da3e6['buttonView']['on']('execute',()=>{_0x5b9d82['execute'](),this['editor']['editing']['view']['focus']();}),_0x4ee6cb(_0x2da3e6,_0x4c9ee4,{'role':'menu'});const _0x1a9b6d=[];for(const _0x4782e7 of _0x4c9ee4)ke(_0x4782e7)&&_0x1a9b6d['push'](this['editor']['commands']['get'](_0x4782e7['model']['commandName']));const _0xd3f3b=_0x2da3e6['buttonView'];return _0xd3f3b['actionView']['unbind']('isEnabled'),_0xd3f3b['arrowView']['unbind']('isEnabled'),_0xd3f3b['actionView']['bind']('isEnabled')['to'](_0x5b9d82,'isEnabled'),_0xd3f3b['arrowView']['bind']('isEnabled')['toMany'](_0x1a9b6d,'isEnabled',(..._0x498920)=>_0x498920['some'](_0x41958c=>_0x41958c)),_0x2da3e6['on']('execute',_0x218fb6=>{this['editor']['execute'](_0x218fb6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2da3e6;}['_createMenuBarMenu'](_0x10714d,_0x1aa1c5,_0x4bad88){const _0x1b1fd2=new _0x5a9577(_0x10714d),_0x252bb9=this['editor']['commands']['get']('trackChanges');_0x1b1fd2['buttonView']['set']({'label':_0x4bad88,'icon':_0x23a792});const _0x2e6ebc=new _0x12850b(_0x10714d);for(const _0xf608db of _0x1aa1c5){if('separator'==_0xf608db['type']){_0x2e6ebc['items']['add'](new _0x428d40(_0x10714d));continue;}const _0x39b604=new _0x345a8f(_0x10714d,_0x1b1fd2),_0x45e742=new _0x5e5b2b(_0x10714d),_0x20b486=_0xf608db['model'];_0x45e742['bind'](...Object['keys'](_0x20b486))['to'](_0x20b486),_0x45e742['delegate']('execute')['to'](_0x1b1fd2),_0x45e742['on']('execute',()=>{this['editor']['execute'](_0x20b486['commandName']),this['editor']['editing']['view']['focus']();}),_0x39b604['children']['add'](_0x45e742),_0x2e6ebc['items']['add'](_0x39b604);}return _0x1b1fd2['bind']('isEnabled')['to'](_0x252bb9,'isEnabled'),_0x1b1fd2['panelView']['children']['add'](_0x2e6ebc),_0x1b1fd2;}['_initializeController'](_0x604773){const _0x345b8f=this['editor'],_0x391d10=_0x345b8f['config'],_0x1eebd1=_0x345b8f['plugins']['get']('Annotations'),_0x539918=_0x345b8f['plugins']['get']('CommentsRepository'),_0x56f0f2=_0x345b8f['plugins']['get']('EditorAnnotations'),_0x292904=_0x345b8f['plugins']['get'](_0x14dd6c)['me'],_0x2acb2a=_0x391d10['get']('trackChanges')['SuggestionThreadView'],_0x102c49=_0x391d10['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3033f1,CommentThreadInputView:_0x1f1a25}=_0x345b8f['plugins']['get']('CommentsUI');let _0x79b618,_0x238f95,_0x4f55d5;this['_annotationViews']['has'](_0x604773['id'])?(_0x238f95=this['_annotationViews']['get'](_0x604773['id']),_0x79b618=_0x238f95['mainView']):(_0x79b618=new _0x2acb2a(_0x345b8f['locale'],_0x604773,_0x292904,{'disableComments':this['_disableComments'],'editorConfig':{..._0x391d10['get']('comments.editorConfig'),'licenseKey':_0x391d10['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x391d10['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x391d10['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x391d10['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x435636(_0x391d10['get']('locale'),_0x345b8f['locale']),'CommentView':_0x391d10['get']('comments')['CommentView'],'CommentsListView':_0x3033f1,'CommentThreadInputView':_0x1f1a25,'SuggestionView':_0x102c49}),_0x79b618['suggestionView']['acceptButton']['on']('execute',()=>{_0x345b8f['editing']['view']['focus']();}),_0x79b618['suggestionView']['discardButton']['on']('execute',()=>{_0x345b8f['editing']['view']['focus']();}),_0x238f95=_0x1eebd1['createAnnotationView'](this['editor']['locale'],_0x79b618),_0x238f95['bind']('isDirty')['to'](_0x79b618,'isDirty'),_0x238f95['bind']('length')['to'](_0x79b618),_0x238f95['bind']('type')['to'](_0x79b618,'type',_0x36835a=>'suggestion-'+_0x36835a),_0x79b618['on']('escape',()=>{_0x4f55d5['fire']('escape');}),this['_annotationViews']['set'](_0x604773['id'],_0x238f95));const _0x3607a8=_0x539918['createCommentThreadController'](_0x604773['commentThread'],_0x79b618),_0x47a2e6=new pe(_0x345b8f,_0x604773,_0x79b618,_0x3607a8),_0x52512a=_0x604773['getAllAdjacentSuggestions']()['filter'](_0x4896ff=>_0x4896ff['isInContent']);_0x79b618['descriptionParts']=_0x345b8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x52512a),this['_suggestionToController']['set'](_0x604773,_0x47a2e6),this['_viewToController']['set'](_0x79b618,_0x47a2e6);const _0x1fd988=()=>{const _0x1c085c=[],_0x2764ba=_0x604773['getAllAdjacentSuggestions']()['filter'](_0x2e522d=>_0x2e522d['isInContent']);for(const _0x3c0169 of _0x2764ba)_0x1c085c['push'](..._0x3c0169['getMarkers']());return _0x3639d0(_0x345b8f['editing'],_0x1c085c);};_0x4f55d5=_0x1eebd1['createAnnotation']({'view':_0x238f95,'target':_0x1fd988,'type':()=>'suggestion-'+_0x47a2e6['view']['type'],'isVisible':!!_0x1fd988()}),_0x539918['_bindAnnotationToEditors'](_0x79b618,_0x4f55d5),_0x1eebd1['add'](_0x4f55d5),_0x56f0f2['registerAnnotation'](_0x4f55d5);}['_destroyController'](_0x502a12){const _0x54285e=this['editor']['plugins']['get']('CommentsRepository'),_0x48d18b=this['editor']['plugins']['get']('Annotations'),_0x226cec=this['_suggestionToController']['get'](_0x502a12),_0x452c6f=_0x226cec['view'],_0x2b893f=_0x48d18b['getByInnerView'](_0x452c6f);_0x54285e['_unbindEditors'](_0x452c6f),_0x2b893f&&_0x48d18b['remove'](_0x2b893f),this['_suggestionToController']['delete'](_0x502a12),this['_viewToController']['delete'](_0x452c6f),_0x226cec['destroy']();}['_updateController'](_0x19ca8e){if(!_0x19ca8e['isInContent']||!this['_suggestionToController']['has'](_0x19ca8e))return;const _0x36385a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x101ca6=this['_suggestionToController']['get'](_0x19ca8e),_0x290352=_0x19ca8e['getAllAdjacentSuggestions']();_0x101ca6['view']['descriptionParts']=_0x36385a['descriptionFactory']['getDescriptions'](_0x290352);}['destroy'](){for(const _0x29a64e of this['_suggestionToController']['keys']())this['_destroyController'](_0x29a64e);for(const _0x24caac of this['_annotationViews']['values']())_0x24caac['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1965be){return'model'in _0x1965be;}class Ne extends _0x1061bc{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x947c4f){this['editor']['plugins']['get'](d)['adapter']=_0x947c4f;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0xdd92c2){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0xdd92c2);}['getSuggestions']({skipNotAttached:_0xb52c1d=!0x1,toJSON:_0x27db2d=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0xb52c1d,'toJSON':_0x27db2d});}['getSuggestion'](_0x9ec031){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x9ec031);}}const p=['Pagination'];class re extends _0x1061bc{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1b8b98=this['editor'];if(_0x1b8b98['config']['define']('trackChangesData.editorCreator',_0x4ed9d0=>{const _0x4d98b3=_0x1b8b98['model']['document']['getRootNames']()['reduce']((_0x3dad15,_0x27f42a)=>(_0x3dad15[_0x27f42a]='',_0x3dad15),{});return _0x1b8b98['constructor']['create'](_0x4d98b3,_0x4ed9d0);}),'function'!=typeof _0x1b8b98['config']['get']('trackChangesData')['editorCreator'])throw new _0xfd9767('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xa13db){return P(this['editor'],!0x0,_0xa13db);}['getDataWithDiscardedSuggestions'](_0x1c28e9){return P(this['editor'],!0x1,_0x1c28e9);}}class Fe extends _0x1061bc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a2d30){function _0x99da42(_0xd97a7a){return _0xd97a7a['map'](_0x27824d=>String['fromCharCode'](_0x27824d))['join']('');}super(_0x5a2d30),this['result']='end',_0x5a2d30[_0x99da42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x99da42([0x76,0x69,0x65,0x77])][_0x99da42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x99da42([0x61,0x75,0x74,0x6f]),_0x5a2d30[_0x99da42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x99da42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x99da42([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x99da42([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x99da42([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 De(_0x43272c){return void 0x0!==_0x43272c['getRootsAttributes'];}async function P(_0x3752fd,_0x18f1d1,_0x3d60bb){const _0x1994b4=_0x1309ab(_0x3752fd,p);_0x1994b4['plugins']['push'](d,Fe),_0x1994b4['rootsAttributes']=De(_0x3752fd)?_0x3752fd['getRootsAttributes']():void 0x0;const _0x4dbc03=document['createDocumentFragment'](),_0x4e4d21=_0x3752fd['config']['get']('trackChangesData')['editorCreator'],_0x34ed26=await _0x4e4d21(_0x1994b4,()=>function(_0x358762){const _0x509550=document['createElement']('div');return _0x358762['appendChild'](_0x509550),_0x509550;}(_0x4dbc03));!function(_0x36906c,_0x112a82){const _0x2a919a=_0x36906c['model']['document']['getRootNames']()['reduce']((_0x4478f3,_0x4a7568)=>(_0x4478f3[_0x4a7568]=_0x36906c['data']['get']({'rootName':_0x4a7568}),_0x4478f3),{}),_0x5212bc=_0x36906c['plugins']['get']('Users')['users']['map'](_0x375e38=>({'id':_0x375e38['id'],'name':_0x375e38['name']})),_0x4e71ff=_0x36906c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5bdac7=_0x36906c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2899b3=_0x112a82['plugins']['get']('Users'),_0x3fef29=_0x112a82['plugins']['get']('TrackChangesEditing'),_0x3efab9=_0x112a82['plugins']['get']('CommentsRepository');for(const _0x48e25a of _0x3efab9['getCommentThreads']())_0x48e25a['remove']();for(const _0x127fce of _0x5212bc)_0x2899b3['getUser'](_0x127fce['id'])||_0x2899b3['addUser'](_0x127fce);_0x2899b3['me']||_0x2899b3['useAnonymousUser']();for(const _0x206048 of _0x5bdac7)_0x3efab9['addCommentThread'](_0x206048);for(const _0x27def8 of _0x4e71ff)_0x3fef29['addSuggestionData'](_0x27def8);_0x112a82['data']['set'](_0x2a919a);}(_0x3752fd,_0x34ed26),_0x34ed26['execute'](_0x18f1d1?'acceptAllSuggestions':'discardAllSuggestions');const _0x267371=De(_0x34ed26)?_0x34ed26['getFullData'](_0x3d60bb):_0x34ed26['data']['get'](_0x3d60bb);return await _0x34ed26['destroy'](),_0x267371;}class Me extends _0x4f4180{['options'];constructor(_0x525fa2,_0x497651){super(_0x525fa2),this['options']=_0x497651,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'](_0x58a1c8,_0x4ccf34){if(!this['element'])return;const _0x6ed236=[];for(const [_0x30350a,_0x3147a3]of _0x58a1c8){const _0x5ab4ee=document['createElement']('div');_0x5ab4ee['setAttribute']('data-ck-root-name',_0x30350a),_0x5ab4ee['className']=_0x3147a3['classes']+'\x20ck-track-changes-preview__root-container',_0x5ab4ee['innerHTML']=_0x3147a3['content'],_0x6ed236['push'](_0x5ab4ee);}_0x4ccf34(this['element'],_0x6ed236),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x55c88c{constructor(_0xe0b7ec){super(_0xe0b7ec),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x6ac497=this['editor'],_0x51fb85=_0x6ac497['locale'],_0x47ad87=_0x6ac497['plugins']['get']('Dialog');let _0x35c234;const _0x5e69e2=function(_0x1a407c){const _0x48c20a={};if('editables'in _0x1a407c['ui']['view']){for(const [_0x4e35e0,_0x196701]of Object['entries'](_0x1a407c['ui']['view']['editables']))_0x48c20a[_0x4e35e0]=_0x196701['element'];}else _0x48c20a[_0x1a407c['model']['document']['getRootNames']()[0x0]]=_0x1a407c['ui']['view']['editable']['element'];return _0x48c20a;}(_0x6ac497),_0x24adce=function(_0xb0bc7a){let _0x4c969c=0x0;for(const _0x4e9153 of Object['values'](_0xb0bc7a))_0x4c969c=Math['max'](_0x4c969c,_0x4e9153['getBoundingClientRect']()['width']);let _0x2f04fe=0x0;for(const _0x462db2 of Object['values'](_0xb0bc7a))_0x2f04fe+=_0x462db2['getBoundingClientRect']()['height'];const _0x5f3dd1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2deaa3=Math['min'](_0x2f04fe,_0x5f3dd1);return{'width':_0x4c969c,'height':_0x2deaa3};}(_0x5e69e2);_0x47ad87['show']({'id':'finalContentPreview','title':o(_0x51fb85,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x51fb85,{'dialogRects':_0x24adce}),'onHide':()=>{_0x35c234['detachFromDom']();},'onShow':()=>{_0x6ac497['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x580931=>{const _0x10f7b4=this['_standarizeRootsData'](_0x580931,_0x6ac497,_0x5e69e2);_0x47ad87['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x10f7b4,_0x6ac497['config']['get']('trackChanges.preview.renderFunction'));}),_0x35c234=new _0x12fbee(_0x51fb85,[_0x47ad87['view']]),_0x35c234['attachToDom'](),_0x35c234['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x6ac497['once']('destroy',()=>{_0x35c234['detachFromDom']();});const _0x34b3a2=_0x47ad87['view']['headerView']['class'];_0x47ad87['view']['headerView']['class']=_0x34b3a2?_0x34b3a2+'\x20ck-reset_all':'ck-reset_all',_0x47ad87['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x47ad87['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xab9eff=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x13f2cb=_0xab9eff['previewMode'],_0x18a86b={};if('$labels'===_0x13f2cb){for(const _0x460dbe of _0xab9eff['getMergeFieldsIds']())_0x18a86b[_0x460dbe]=_0xab9eff['getLabel'](_0x460dbe)||_0x460dbe;}else{const _0x2cdfbb='$defaultValues'===_0x13f2cb?_0xab9eff['getDefaultValues']():_0xab9eff['getDataSetValues'](_0x13f2cb,!0x0);for(const _0xb46ad6 of Object['entries'](_0x2cdfbb)){const [_0x19cb53,_0x5f3829]=_0xb46ad6;_0x18a86b[_0x19cb53]=null!==_0x5f3829?_0x5f3829:_0xab9eff['getLabel'](_0x19cb53)||_0x19cb53;}}return{'mergeFieldsData':_0x18a86b};}['_standarizeRootsData'](_0x55ec95,_0x374e20,_0x2cead0){let _0x59da97;if('string'==typeof _0x55ec95){const _0x238d9d=_0x374e20['model']['document']['getRootNames']()[0x0];_0x59da97={[_0x238d9d]:_0x55ec95};}else _0x59da97=_0x55ec95;const _0x32af6f=this['_fixMediaEmbeds'](_0x59da97,_0x374e20),_0x4ddbb5=function(_0x47b5ce,_0x1fa6d8){for(const [_0x446033,_0x918a88]of _0x47b5ce)_0x918a88['classes']=_0x1fa6d8[_0x446033]['classList']['value']['replace']('ck-focused','');return _0x47b5ce;}(this['_sortRoots'](_0x374e20)['reduce']((_0x5c572e,_0x3b272a)=>(_0x5c572e['push']([_0x3b272a,{'content':_0x32af6f[_0x3b272a],'classes':''}]),_0x5c572e),[]),_0x2cead0);return _0x4ddbb5;}['_fixMediaEmbeds'](_0x421efd,_0x4cb1fd){if(!_0x4cb1fd['plugins']['has']('MediaEmbedEditing'))return _0x421efd;const _0x53e3a2=_0x4cb1fd['plugins']['get']('MediaEmbedEditing');for(const [_0x5c4208,_0x310c90]of Object['entries'](_0x421efd)){const _0xc722b=document['createElement']('div');_0xc722b['innerHTML']=_0x310c90,(_0xc722b['querySelectorAll']('figure.media')['forEach'](_0x293a13=>{const _0x3dbebb=_0x293a13['querySelector']('oembed');if(_0x3dbebb){const _0x7c75e5=_0x3dbebb['getAttribute']('url');if(_0x7c75e5){const _0xd7b601=_0x53e3a2['registry']['getMediaViewElement'](new _0x38c2b3(_0x4cb1fd['editing']['view']['document']),_0x7c75e5,{'elementName':'','renderForEditingView':!0x0}),_0x4bd246=document['createElement']('div');_0x4bd246['classList']['add']('ck-media__wrapper'),_0xd7b601['render'](_0x4bd246,_0x4cb1fd['editing']['view']['domConverter']),_0x3dbebb['replaceWith'](_0x4bd246);}}}),_0x421efd[_0x5c4208]=_0xc722b['innerHTML']);}return _0x421efd;}['_sortRoots'](_0x212a6d){if(!function(_0x56718c){return void 0x0!==_0x56718c['getRootsAttributes'];}(_0x212a6d))return _0x212a6d['model']['document']['getRootNames']();const _0x1b143a=[],_0x1a80aa=new Map();for(const _0x489683 of _0x212a6d['model']['document']['getRootNames']()){const _0x1b2d64=_0x212a6d['editing']['view']['getDomRoot'](_0x489683)['getClientRects']()['item'](0x0);_0x1b143a['push'](_0x489683),_0x1a80aa['set'](_0x489683,_0x1b2d64);}return _0x1b143a['sort']((_0x22615d,_0x493e49)=>{const _0x9cf618=_0x1a80aa['get'](_0x22615d),_0x23f54b=_0x1a80aa['get'](_0x493e49);return _0x9cf618['y']-_0x23f54b['y']||_0x9cf618['x']-_0x23f54b['x'];}),_0x1b143a;}}class Ue extends _0x1061bc{static get['requires'](){return[re,_0xc9d929];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x138cb3){super(_0x138cb3),_0x138cb3['commands']['add']('previewFinalContent',new te(this['editor'])),_0x138cb3['config']['define']('trackChanges.preview.renderFunction',(_0x52aa0f,_0x3145b4)=>{for(const _0x4dcad0 of _0x3145b4)_0x52aa0f['appendChild'](_0x4dcad0);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0xb6fba0,Plugin as _0x27110f,PendingActions as _0x3971aa}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x24cfe7,ObservableMixin as _0x3874f9,uid as _0x3412ef,priorities as _0x200ca3,insertToPriorityArray as _0xa410b4,logWarning as _0x324ef4,getEnvKeystrokeText as _0x26c066,FocusTracker as _0xab16db,KeystrokeHandler as _0x927733,Collection as _0x1d4491}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x211090,IconCancel as _0x1c277c,IconTrackChanges as _0x5567ec}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x51d9c1,View as _0x3e1a2d,ViewCollection as _0x18582e,FocusCycler as _0x2212f4,UIModel as _0x4179e9,createDropdown as _0x472ff2,SplitButtonView as _0x4a69f1,addListToDropdown as _0x18712b,MenuBarMenuView as _0x1173fa,MenuBarMenuListView as _0x299773,ListSeparatorView as _0x2204e2,MenuBarMenuListItemView as _0xbdf1a0,MenuBarMenuListItemButtonView as _0x18f814,BodyCollection as _0x533c45,Dialog as _0x3c0422}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x4b540f,Users as _0x399566,DocumentCompare as _0x3436ad,fixElementSuggestionRange as _0x22f27f,hashObject as _0x482fc4,splitSuggestionMarkerName as _0x541f96,surroundingMarkersDetector as _0x4efaaf,FOCUS_ANNOTATION_KEYSTROKE as _0x4bd9e8,AriaDescriptionView as _0x3813ff,setupThreadKeyboardNavigation as _0x210cbe,trimHtml as _0x553c3d,UserView as _0x4535ed,LateFocusButtonView as _0xd1dcb9,getDateTimeFormatter as _0xab422,getAllMarkersDomElementsSorted as _0x4c4c36,sanitizeEditorConfig as _0x303e57}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x1b55af,ModelLiveRange as _0x6f966d,ModelLivePosition as _0x28764a,ViewDowncastWriter as _0x335976}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x2ed2de,set as _0x5154c9,isEqual as _0x221f98,unset as _0x48d7bb,omit as Jt}from'es-toolkit/compat';import{Delete as _0x59b850,Input as _0x21b16b}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5258ff}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3e7675}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0xb6fba0{['_enabledCommands'];constructor(_0x402fe3,_0x1e913b){super(_0x402fe3),this['_enabledCommands']=_0x1e913b,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 _0x4f1c48 of this['editor']['commands']['commands']())_0x4f1c48['affectsData']&&!this['_enabledCommands']['has'](_0x4f1c48)&&_0x4f1c48['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x35c9fc of this['editor']['commands']['commands']())_0x35c9fc['affectsData']&&!this['_enabledCommands']['has'](_0x35c9fc)&&_0x35c9fc['clearForceDisabled']('TrackChangesCommand');}}class O extends _0xb6fba0{['_suggestions'];constructor(_0x1ebbe6,_0x55db96){super(_0x1ebbe6),this['_suggestions']=_0x55db96,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x355ce1){const _0x46464f=this['_suggestions']['get'](_0x355ce1);if(!_0x46464f)throw new _0x24cfe7('track-changes-accept-suggestion-not-found',this);const _0x41a38e=_0x46464f['getRanges']();this['editor']['model']['canEditAt'](_0x41a38e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x46464f);}}class x extends _0xb6fba0{['_suggestions'];constructor(_0x1504f2,_0x290477){super(_0x1504f2),this['_suggestions']=_0x290477,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x23e12c){const _0x20d4c8=this['_suggestions']['get'](_0x23e12c);if(!_0x20d4c8)throw new _0x24cfe7('track-changes-discard-suggestion-not-found',this);const _0x2e4e91=_0x20d4c8['getRanges']();this['editor']['model']['canEditAt'](_0x2e4e91)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x20d4c8);}}function ls(_0x3178dd,_0x2d113f){let _0x3f047e='';return _0x3f047e+=_0x3178dd['split']('*')['map']((_0x26a477,_0x334eb0)=>_0x334eb0%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+on(_0x26a477)+'</span>':on(_0x26a477))['join'](''),_0x2d113f&&(_0x3f047e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2d113f['value']+'\x22\x20title=\x22'+_0x2d113f['title']+'\x22></span>'),_0x3f047e;}function on(_0x51516e){const _0x2ba6c7=document['createElement']('span');return _0x2ba6c7['innerText']=_0x51516e,_0x2ba6c7['innerHTML'];}function ts(_0x568ab4){return _0x568ab4['sort']((_0x34a3c1,_0x2cd466)=>'attribute'===_0x34a3c1['type']&&'attribute'!==_0x2cd466['type']?-0x1:'attribute'!==_0x34a3c1['type']&&'attribute'===_0x2cd466['type']?0x1:'deletion'==_0x34a3c1['type']&&'deletion'!=_0x2cd466['type']?-0x1:'deletion'!=_0x34a3c1['type']&&'deletion'==_0x2cd466['type']?0x1:0x0);}function to(_0x2c1bee,_0x1ad116){let _0x5a041b,_0x5b3439=0x0;const _0x37ad0b=[],_0x23e4a9=_0x1ad116['schema'];for(;_0x5b3439<_0x2c1bee['length'];){const _0x1b4952=_0x2c1bee[_0x5b3439],_0x2991c2=_0x2c1bee[_0x5b3439+0x1];_0x5a041b||(_0x5a041b=_0x1ad116['createPositionBefore'](_0x1b4952)),rn(_0x1ad116,_0x1b4952,_0x2991c2)||(_0x37ad0b['push'](_0x1ad116['createRange'](_0x5a041b,_0x23e4a9['isObject'](_0x1b4952)?_0x1ad116['createPositionAfter'](_0x1b4952):_0x1ad116['createPositionAt'](_0x1b4952,'end'))),_0x5a041b=null),_0x5b3439++;}return _0x37ad0b;}function rn(_0x227fa2,_0x5e7c96,_0x56fefb){if(!_0x56fefb)return!0x1;const _0x59e364=_0x227fa2['createPositionAfter'](_0x5e7c96),_0x1cc1c3=_0x227fa2['createPositionBefore'](_0x56fefb);return _0x59e364['isTouching'](_0x1cc1c3);}function rs(_0x17a9ef,_0x45b03e,_0x20d03){for(;_0x20d03['length'];){const _0x33ad69=_0x20d03['splice'](0x0,0x64);_0x17a9ef['change'](()=>{for(const _0x2cfa90 of _0x33ad69)_0x2cfa90['isInContent']&&_0x45b03e['execute'](_0x2cfa90['id']);});}}class M extends _0xb6fba0{['_command'];['_suggestions'];constructor(_0x50c088,_0x5367db,_0x2cf439){super(_0x50c088),this['_command']=_0x5367db,this['_suggestions']=_0x2cf439,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x12c508=Array['from'](this['_suggestions']['values']())['some'](_0x21d81e=>_0x21d81e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x12c508;}['execute'](){const _0x2c6a4c=ts(Array['from'](this['_suggestions']['values']()));for(const _0x106988 of _0x2c6a4c){const _0x4beb7b=_0x106988['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4beb7b))return;}rs(this['editor']['model'],this['_command'],_0x2c6a4c);}}class R extends _0xb6fba0{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2f3761,_0x17804a,_0x2ff121){super(_0x2f3761),this['_command']=_0x17804a,this['_suggestions']=_0x2ff121,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x53b44e=this['editor']['model']['document']['selection'],_0x171af0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x24a4f2,_0x5c5f3f){const _0xa5cff4=Array['from'](_0x24a4f2['getRanges']()),_0x40b7fe=new Set();for(const _0x5ed88d of _0x5c5f3f)if(_0x5ed88d['isInContent']){for(const _0x23ac31 of _0xa5cff4)for(const _0x4069c2 of _0x5ed88d['getRanges']())(_0x23ac31['isIntersecting'](_0x4069c2)||_0x24a4f2['isCollapsed']&&!_0x5ed88d['isMultiRange']&&_0x5ed88d['next']&&_0x4069c2['end']['isTouching'](_0x23ac31['start']))&&_0x40b7fe['add'](_0x5ed88d);}return _0x40b7fe;}(_0x53b44e,_0x171af0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x8b5329=ts(Array['from'](this['_selectedSuggestions']));for(const _0x186ca6 of _0x8b5329){const _0x30d537=_0x186ca6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x30d537))return;}rs(this['editor']['model'],this['_command'],_0x8b5329);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x3874f9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x57570f,_0x40e02c){super(),this['id']=_0x40e02c['id'],this['type']=_0x40e02c['type'],this['subType']=_0x40e02c['subType']||null,this['author']=_0x40e02c['author'],this['creator']=_0x40e02c['creator']||_0x40e02c['author'],this['isExternal']=Boolean(_0x40e02c['attributes']&&_0x40e02c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x40e02c['originalSuggestionId']||null,this['_model']=_0x57570f,this['_onAccept']=_0x40e02c['onAccept'],this['_onDiscard']=_0x40e02c['onDiscard'],this['_onAttributesChange']=_0x40e02c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x40e02c['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 _0x4b4916=this;for(;_0x4b4916['previous'];)_0x4b4916=_0x4b4916['previous'];return _0x4b4916;}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'](_0xc90a0){this['_markerNames']['add'](_0xc90a0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x39caa3=>this['_model']['markers']['get'](_0x39caa3))['filter'](_0x4f76d8=>_0x4f76d8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1c5e7b=>{for(const _0x463d0e of this['getMarkers']())_0x1c5e7b['removeMarker'](_0x463d0e);}),this['_markerNames']['clear']();}['removeMarker'](_0x3df696){this['_model']['change'](_0x3e48c3=>{_0x3e48c3['removeMarker'](_0x3df696);}),this['_markerNames']['delete'](_0x3df696);}['addRange'](_0x461dcc){const _0x33542d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x33542d),this['_model']['change'](_0x2600d1=>{_0x2600d1['addMarker'](_0x33542d,{'range':_0x461dcc,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x297b57){for(const _0x21dc1b of this['getRanges']())if(_0x21dc1b['isIntersecting'](_0x297b57))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x735ff=>_0x735ff['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x458995,_0x498b40)=>[..._0x458995,..._0x498b40['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x290d62=this['getRanges']();if(0x1!=_0x290d62['length'])return null;const _0x482624=_0x290d62[0x0],_0x2cbd6b=_0x482624['start']['nodeAfter'],_0x355349=_0x482624['end']['nodeBefore'];return _0x2cbd6b instanceof _0x1b55af?_0x2cbd6b!=_0x355349?null:_0x2cbd6b: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 _0x21a826=[];let _0x43034a=this['head'];for(;_0x43034a;)_0x21a826['push'](_0x43034a),_0x43034a=_0x43034a['next'];return _0x21a826;}['setAttribute'](_0x2b4dbb,_0x3138fe){const _0x3bb467=_0x2ed2de(this['attributes']);_0x5154c9(_0x3bb467,_0x2b4dbb,_0x3138fe),_0x221f98(_0x3bb467,this['attributes'])||(this['attributes']=_0x3bb467,this['_onAttributesChange'](_0x3bb467));}['removeAttribute'](_0x107064){const _0x2151fc=_0x2ed2de(this['attributes']);_0x48d7bb(_0x2151fc,_0x107064),_0x221f98(_0x2151fc,this['attributes'])||(this['attributes']=_0x2151fc,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 _0x3412ef()['substr'](0x1,0x5);}}function o(_0xa6868b,_0xf35cf7,_0x2d9464){const _0x41c81b=_0xa6868b['t'],t=_0xa6868b['t'];switch(_0xf35cf7){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',_0x2d9464);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2d9464);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2d9464);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2d9464);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2d9464);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',_0x2d9464);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2d9464);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',_0x2d9464);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2d9464);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2d9464);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2d9464);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2d9464);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2d9464);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2d9464);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2d9464);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2d9464);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2d9464);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2d9464);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2d9464);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2d9464);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2d9464);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2d9464);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2d9464);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2d9464);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2d9464);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'},_0x2d9464);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2d9464);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2d9464);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2d9464);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2d9464);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2d9464);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2d9464);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2d9464);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'},_0x2d9464);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2d9464);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2d9464);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2d9464);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2d9464);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x2d9464);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2d9464);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'},_0x2d9464);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'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x2d9464);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2d9464);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'},_0x2d9464);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2d9464);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'},_0x2d9464);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2d9464);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2d9464);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2d9464);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2d9464);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2d9464);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'},_0x2d9464);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2d9464);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 _0x41c81b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2d9464);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x41c81b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2d9464);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2d9464);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'},_0x2d9464);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'},_0x2d9464);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'},_0x2d9464);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xf35cf7;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5bcb60,_0x70ff54){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5bcb60,this['_locale']=_0x70ff54;}['getDescriptions'](_0x1f2315){const _0x3e3a0e=[],_0x56214b=new Set(),_0x369f28=new Set();for(let _0x1c2b5e=0x0;_0x1c2b5e<_0x1f2315['length'];_0x1c2b5e++){const _0x5a8149=_0x1f2315[_0x1c2b5e];if(!_0x5a8149['isInContent'])continue;const _0x567d61=this['_handleCustomCallbackDescription'](_0x5a8149);if(_0x567d61){if(null!=_0x5a8149['subType']){if(_0x56214b['has'](_0x5a8149['subType']))continue;_0x56214b['add'](_0x5a8149['subType']);}_0x3e3a0e['push'](_0x567d61);}else{if('attribute'==_0x5a8149['type']){const _0x45d503=_0x5a8149['data']['key'];if(_0x369f28['has'](_0x45d503))continue;_0x369f28['add'](_0x5a8149['data']['key']),_0x45d503==m?this['_handleRenameSuggestionDescription'](_0x3e3a0e,_0x5a8149):this['_handleAttributeSuggestionDescription'](_0x3e3a0e,_0x5a8149);continue;}'insertion'!=_0x5a8149['type']&&'deletion'!=_0x5a8149['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3e3a0e,_0x5a8149,_0x1f2315[_0x1c2b5e+0x1]);}}return this['_resolveDescriptionItems'](_0x3e3a0e);}['registerDescriptionCallback'](_0x1d3d72){this['_customCallbacks']['push'](_0x1d3d72);}['registerElementLabel'](_0x5d8e30,_0x4e3a48,_0x555121=_0x200ca3['normal']){'function'==typeof _0x5d8e30?_0xa410b4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5d8e30,'label':_0x4e3a48,'priority':_0x555121}):this['_itemLabels']['set'](_0x5d8e30,_0x4e3a48);}['registerAttributeLabel'](_0x5c52cb,_0xc9fa19){this['_attributeLabels']['set'](_0x5c52cb,_0xc9fa19);}['getItemLabel'](_0x3fe87c,_0x150448=0x1){let _0x328d1c;for(const _0x211fd8 of this['_itemLabelsCallbacks'])if(_0x211fd8['matchingCallback'](_0x3fe87c)){_0x328d1c=_0x211fd8['label'];break;}return _0x328d1c||(_0x328d1c=this['_itemLabels']['get'](_0x3fe87c['name'])),_0x328d1c?_0x328d1c(_0x150448):0x1!==_0x150448?_0x150448+'\x20'+_0x3fe87c['name']+'s':''+_0x3fe87c['name'];}['_addDescriptionItems'](_0x51d2a4,_0x4c446c){const _0xfc5a43=_0x4c446c['getFirstRange']()['getWalker'](),_0x5dfe95='insertion'==_0x4c446c['type']?'add':'remove';for(const _0x173a6b of _0xfc5a43){const _0x16c7df=_0x173a6b['item'],_0x1c3c1e=_0x51d2a4[_0x51d2a4['length']-0x1];if(_0x16c7df['is']('$textProxy'))_0x1c3c1e&&_0x1c3c1e['type']['indexOf']('Container')>-0x1&&_0x51d2a4['pop'](),_0x1c3c1e&&'text'==_0x1c3c1e['type']?_0x1c3c1e[_0x5dfe95]+=_0x16c7df['data']:_0x51d2a4['push']({'type':'text','add':'add'==_0x5dfe95?_0x16c7df['data']:'','remove':'remove'==_0x5dfe95?_0x16c7df['data']:''});else{if(this['_schema']['isObject'](_0x16c7df)){const _0x25e1b9=_0x16c7df;if(_0x1c3c1e&&_0x1c3c1e['type']['indexOf']('Container')>-0x1&&_0x51d2a4['pop'](),'elementEnd'==_0x173a6b['type'])continue;_0x1c3c1e&&_0x1c3c1e['type']==_0x5dfe95+'Object'&&_0x1c3c1e['element']['name']==_0x25e1b9['name']?_0x1c3c1e['quantity']++:_0x51d2a4['push']({'type':_0x5dfe95+'Object','element':_0x25e1b9,'quantity':0x1}),_0xfc5a43['skip'](_0x1cc900=>!('elementEnd'==_0x1cc900['type']&&_0x1cc900['item']==_0x16c7df));}else{if(this['_schema']['checkChild'](_0x16c7df,'$text')||_0x16c7df['is']('element','softBreak')){const _0x4d86f2=_0x16c7df;if('add'==_0x5dfe95&&'elementStart'==_0x173a6b['type']||'remove'==_0x5dfe95&&'elementEnd'==_0x173a6b['type'])continue;if(_0x1c3c1e&&-0x1==_0x1c3c1e['type']['indexOf']('Container')){'text'==_0x1c3c1e['type']&&(_0x1c3c1e[_0x5dfe95]+='\x0a');continue;}let _0xbd517e;if(_0xbd517e='add'==_0x5dfe95?_0x4d86f2['nextSibling']&&!this['_schema']['isObject'](_0x4d86f2['nextSibling'])?_0x4d86f2['nextSibling']:null:_0x4d86f2['previousSibling']&&!this['_schema']['isObject'](_0x4d86f2['previousSibling'])?_0x4d86f2['previousSibling']:null,_0x4d86f2['isEmpty']||_0xbd517e&&_0xbd517e['isEmpty']){const _0x6b7c4c=_0xbd517e&&_0xbd517e['isEmpty']?_0xbd517e:_0x4d86f2;_0x1c3c1e&&_0x1c3c1e['type']==_0x5dfe95+'EmptyContainer'&&_0x1c3c1e['element']['name']==_0x6b7c4c['name']?_0x1c3c1e['quantity']++:_0x51d2a4['push']({'type':_0x5dfe95+'EmptyContainer','element':_0x6b7c4c,'quantity':0x1});}else _0x51d2a4['push']({'type':_0x5dfe95+'Container','element':_0x4d86f2});}}}}}['_resolveDescriptionItems'](_0x1eba5b){const _0x295bd7=this['_locale'],_0x87677f=[],_0x981224=[],_0x2e949d=[];for(const _0x5b1275 of _0x1eba5b)switch(_0x5b1275['type']){case'text':if(_0x5b1275['add']=_0x5b1275['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5b1275['remove']=_0x5b1275['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5b1275['add']&&''!=_0x5b1275['remove']){_0x87677f['push']({'type':'replace','content':o(_0x295bd7,'REPLACE_TEXT',['\x22'+_0x5b1275['remove']+'\x22','\x22'+_0x5b1275['add']+'\x22'])});continue;}if(null!=_0x5b1275['add']['match'](/^ +$/)){_0x87677f['push']({'type':'insertion','content':o(_0x295bd7,'*Insert:*\x20%0',o(_0x295bd7,'ELEMENT_SPACE',_0x5b1275['add']['length']))});continue;}if(null!=_0x5b1275['remove']['match'](/^ +$/)){_0x87677f['push']({'type':'deletion','content':o(_0x295bd7,'*Remove:*\x20%0',o(_0x295bd7,'ELEMENT_SPACE',_0x5b1275['remove']['length']))});continue;}if(''!=_0x5b1275['add']){_0x87677f['push']({'type':'insertion','content':o(_0x295bd7,'*Insert:*\x20%0','\x22'+_0x5b1275['add']+'\x22')});continue;}_0x87677f['push']({'type':'deletion','content':o(_0x295bd7,'*Remove:*\x20%0','\x22'+_0x5b1275['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x87677f['push']({'type':'insertion','content':o(_0x295bd7,'*Insert:*\x20%0',this['getItemLabel'](_0x5b1275['element'],_0x5b1275['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x87677f['push']({'type':'deletion','content':o(_0x295bd7,'*Remove:*\x20%0',this['getItemLabel'](_0x5b1275['element'],_0x5b1275['quantity']))});continue;case'addContainer':_0x87677f['push']({'type':'insertion','content':o(_0x295bd7,'*Split:*\x20%0',this['getItemLabel'](_0x5b1275['element'],_0x5b1275['quantity']))});continue;case'removeContainer':_0x87677f['push']({'type':'deletion','content':o(_0x295bd7,'*Merge:*\x20%0',this['getItemLabel'](_0x5b1275['element'],_0x5b1275['quantity']))});continue;case'addFormat':_0x981224['push'](_0x5b1275['key']);continue;case'removeFormat':_0x2e949d['push'](_0x5b1275['key']);continue;default:_0x87677f['push'](_0x5b1275);}if(_0x981224['length']){const _0x563d73=_0x981224['map'](_0x24b323=>this['_attributeLabels']['has'](_0x24b323)?this['_attributeLabels']['get'](_0x24b323):_0x24b323)['join'](',\x20');_0x87677f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x563d73)});}if(_0x2e949d['length']){const _0x4173a9=_0x2e949d['map'](_0x1d9563=>this['_attributeLabels']['has'](_0x1d9563)?this['_attributeLabels']['get'](_0x1d9563):_0x1d9563)['join'](',\x20');_0x87677f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4173a9)});}return _0x87677f;}['_handleCustomCallbackDescription'](_0x3aae95){for(const _0x26fadd of this['_customCallbacks']){const _0x255b50=_0x26fadd(_0x3aae95);if(_0x255b50&&'type'in _0x255b50)return _0x255b50;}}['_handleAttributeSuggestionDescription'](_0x2de930,_0x84e1f){const _0x29fb9a=_0x84e1f['data'],_0x1dcda7=void 0x0===_0x29fb9a['newValue']?'removeFormat':'addFormat';_0x2de930['push']({'type':_0x1dcda7,'key':_0x29fb9a['key']});}['_handleRenameSuggestionDescription'](_0x1236ad,_0xb05078){_0x1236ad['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xb05078['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4d432d,_0x251f91,_0x5064c5){if(this['_addDescriptionItems'](_0x4d432d,_0x251f91),_0x5064c5&&_0x5064c5['getFirstRange']()&&!_0x251f91['getFirstRange']()['end']['isEqual'](_0x5064c5['getFirstRange']()['start'])){const _0xd0218=_0x4d432d[_0x4d432d['length']-0x1],_0x5d3ca1='insertion'==_0x251f91['type']?'add':'remove';_0xd0218&&'text'==_0xd0218['type']&&(_0xd0218[_0x5d3ca1]+='\x0a');}}}class U extends _0x27110f{['afterInit'](){const _0x470867=this['editor'],_0x3b6109=_0x470867['plugins']['get']('TrackChangesEditing');_0x470867['commands']['get']('showAIAssistant')&&_0x3b6109['enableCommand']('showAIAssistant');}}class V extends _0x27110f{['afterInit'](){const _0x26bd47=this['editor'],_0x55cd9a=_0x26bd47['plugins']['get']('TrackChangesEditing');_0x26bd47['commands']['get']('toggleAi')&&_0x55cd9a['enableCommand']('toggleAi');}}class F extends _0x27110f{['afterInit'](){const _0x13b4bb=this['editor'],_0x426170=_0x13b4bb['plugins']['get']('TrackChangesEditing');_0x13b4bb['commands']['get']('aiQuickAction')&&_0x426170['enableCommand']('aiQuickAction');}}class G extends _0x27110f{['afterInit'](){const _0x412e68=this['editor'],_0x59e68b=_0x412e68['locale'];if(!_0x412e68['plugins']['has']('AlignmentEditing'))return;const _0x1ef29b=_0x412e68['plugins']['get']('TrackChangesEditing');_0x1ef29b['enableDefaultAttributesIntegration']('alignment'),_0x1ef29b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x59e68b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x80cae0=this['editor'],_0x30bb2b=_0x80cae0['locale'];_0x80cae0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5afc23=>{if('formatBlock'!=_0x5afc23['type'])return;const {data:_0x1bbb6f}=_0x5afc23;if(_0x1bbb6f&&'alignment'==_0x1bbb6f['commandName']){const _0x57892c=_0x1bbb6f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x30bb2b,'*Format:*\x20%0',function(_0x59628b){switch(_0x59628b){case'left':return o(_0x30bb2b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x30bb2b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x30bb2b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x30bb2b,'FORMAT_JUSTIFY_TEXT');}}(_0x57892c))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x27110f{['afterInit'](){const _0x193ad7=this['editor'],_0x141332=_0x193ad7['plugins']['get']('TrackChangesEditing'),_0x837c4c=_0x193ad7['locale'];for(const _0x1a0269 of ti){if(!_0x193ad7['plugins']['has'](_0x1a0269))continue;const _0x2ad29e=_0x1a0269['slice'](0x0,-0x7)['toLowerCase'](),_0x18ed22='FORMAT_'+_0x2ad29e['toUpperCase']();_0x141332['enableDefaultAttributesIntegration'](_0x2ad29e),_0x141332['descriptionFactory']['registerAttributeLabel'](_0x2ad29e,o(_0x837c4c,_0x18ed22));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b9946=this['editor'],_0x41a9d3=_0x1b9946['locale'],_0x2404c8=_0x1b9946['plugins']['get']('TrackChangesEditing');function _0x1dcdbd(_0x528dbd,_0x3d0a13){_0x2404c8['descriptionFactory']['registerDescriptionCallback'](_0x399af8=>{if('formatInline'!=_0x399af8['type'])return;const {data:_0x36ded5}=_0x399af8;return _0x36ded5&&_0x36ded5['commandName']===_0x528dbd?_0x36ded5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41a9d3,'*Format:*\x20%0',_0x3d0a13)}:{'type':'format','content':o(_0x41a9d3,'*Remove\x20format:*\x20%0',_0x3d0a13)}:void 0x0;});}_0x1dcdbd('bold',o(_0x41a9d3,'FORMAT_BOLD')),_0x1dcdbd('italic',o(_0x41a9d3,'FORMAT_ITALIC')),_0x1dcdbd('underline',o(_0x41a9d3,'FORMAT_UNDERLINE')),_0x1dcdbd('code',o(_0x41a9d3,'FORMAT_CODE')),_0x1dcdbd('strikethrough',o(_0x41a9d3,'FORMAT_STRIKETHROUGH')),_0x1dcdbd('subscript',o(_0x41a9d3,'FORMAT_SUBSCRIPT')),_0x1dcdbd('superscript',o(_0x41a9d3,'FORMAT_SUPERSCRIPT'));}}class J extends _0x27110f{['afterInit'](){const _0x294dbd=this['editor'],_0x4ef003=_0x294dbd['locale'];if(!_0x294dbd['plugins']['has']('BlockQuoteEditing'))return;const _0xcbd934=_0x294dbd['plugins']['get']('TrackChangesEditing'),_0x6d5bc4=this['editor']['commands']['get']('blockQuote');_0xcbd934['enableCommand']('blockQuote',(_0x543030,_0x20fba2={})=>{const _0xf6795c=this['editor']['model']['document']['selection'],_0x3693a5=_0x20fba2&&void 0x0!==_0x20fba2['forceValue']?_0x20fba2['forceValue']:!_0x6d5bc4['value'];let _0x330db1=[];if(_0x3693a5){const _0x4e7460=Array['from'](_0xf6795c['getSelectedBlocks']())['filter'](_0x1fc3a3=>oo(_0x1fc3a3)||function(_0x31b911,_0x548e50){const _0xc32fff=_0x548e50['checkChild'](_0x31b911['parent'],'blockQuote'),_0x331098=_0x548e50['checkChild'](['$root','blockQuote'],_0x31b911);return _0xc32fff&&_0x331098;}(_0x1fc3a3,this['editor']['model']['schema']));_0x330db1=to(_0x4e7460,_0x294dbd['model']);}else{const _0x58f397=Array['from'](_0xf6795c['getSelectedBlocks']())['filter'](_0x8339b3=>oo(_0x8339b3));_0x330db1=to(_0x58f397,_0x294dbd['model']);}_0x294dbd['model']['change'](()=>{for(const _0xdc5ae5 of _0x330db1)_0xcbd934['markBlockFormat'](_0xdc5ae5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3693a5}]});});}),_0xcbd934['descriptionFactory']['registerDescriptionCallback'](_0x178b66=>{const {data:_0x5bd7f0}=_0x178b66;if(_0x5bd7f0&&'blockQuote'==_0x5bd7f0['commandName']){const _0x351586=o(_0x4ef003,'ELEMENT_BLOCK_QUOTE');return _0x5bd7f0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ef003,'*Set\x20format:*\x20%0',_0x351586)}:{'type':'format','content':o(_0x4ef003,'*Remove\x20format:*\x20%0',_0x351586)};}});}}function oo(_0x393f15){return'blockQuote'==_0x393f15['parent']['name'];}class q extends _0x27110f{['afterInit'](){const _0xa29bbc=this['editor'],_0x4d6084=_0xa29bbc['locale'],_0x37d4df=_0xa29bbc['plugins']['get']('TrackChangesEditing');_0xa29bbc['plugins']['has']('BookmarkEditing')&&(_0x37d4df['enableCommand']('insertBookmark'),_0x37d4df['enableDefaultAttributesIntegration']('updateBookmark'),_0x37d4df['descriptionFactory']['registerDescriptionCallback'](_0x51a05b=>{if('insertion'!=_0x51a05b['type']&&'deletion'!=_0x51a05b['type']&&'attribute'!=_0x51a05b['type'])return;const _0x2d76ae=_0x51a05b['getContainedElement']();if(null==_0x2d76ae)return;if(!_0x2d76ae['is']('element','bookmark'))return;const _0x4cd070=_0x2d76ae['getAttribute']('bookmarkId');if('insertion'==_0x51a05b['type'])return{'type':'insertion','content':o(_0x4d6084,'*Insert:*\x20%0','\x22'+_0x4cd070+'\x22\x20'+o(_0x4d6084,'ELEMENT_BOOKMARK'))};if('deletion'==_0x51a05b['type'])return{'type':'deletion','content':o(_0x4d6084,'*Remove:*\x20%0','\x22'+_0x4cd070+'\x22\x20'+o(_0x4d6084,'ELEMENT_BOOKMARK'))};const {data:_0x407daf}=_0x51a05b;if(!_0x407daf||'bookmarkId'!=_0x407daf['key'])return;return{'type':'format','content':o(_0x4d6084,'*Set\x20bookmark:*\x20%0','\x22'+_0x407daf['newValue']+'\x22')};}));}}class z extends _0x27110f{['afterInit'](){const _0x418cbc=this['editor'];_0x418cbc['plugins']['has']('CaseChange')&&(_0x418cbc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x418cbc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x418cbc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x27110f{['afterInit'](){const _0x1186e5=this['editor'];_0x1186e5['commands']['get']('ckbox')&&_0x1186e5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x27110f{['afterInit'](){const _0x59342b=this['editor'];if(!_0x59342b['plugins']['has']('CodeBlock'))return;const _0x551c09=_0x59342b['plugins']['get']('TrackChangesEditing'),_0x3be3bc=_0x59342b['locale'],_0x24cbad=_0x59342b['config']['get']('codeBlock')['languages'],_0x74c3e8=_0x59342b['commands']['get']('codeBlock');_0x551c09['enableCommand']('indentCodeBlock'),_0x551c09['enableCommand']('outdentCodeBlock'),_0x551c09['enableCommand']('codeBlock',(_0x8a4533,_0x7113d2={})=>{const _0x5402f4=_0x59342b['model'],_0x3b8e03=_0x59342b['model']['document']['selection'],_0x3bb4ac=_0x7113d2&&void 0x0!==_0x7113d2['forceValue']?_0x7113d2['forceValue']:!_0x74c3e8['value'];let _0x5e5af9;_0x7113d2['language']||(_0x7113d2['language']=_0x24cbad[0x0]['language']),_0x5e5af9=_0x3bb4ac?Array['from'](_0x3b8e03['getSelectedBlocks']())['filter'](_0x9ca7f0=>co(_0x9ca7f0)||function(_0x40526b,_0x45c537){if(_0x40526b['is']('rootElement')||_0x45c537['isLimit'](_0x40526b))return!0x1;return _0x45c537['checkChild'](_0x40526b['parent'],'codeBlock');}(_0x9ca7f0,_0x5402f4['schema'])):Array['from'](_0x3b8e03['getSelectedBlocks']())['filter'](_0x2ae086=>co(_0x2ae086));const _0x4aa3a0=to(_0x5e5af9,_0x5402f4);_0x5402f4['change'](()=>{for(const _0x11fc98 of _0x4aa3a0)_0x551c09['markBlockFormat'](_0x11fc98,{'commandName':'codeBlock','commandParams':[{..._0x7113d2,'forceValue':_0x3bb4ac}],'formatGroupId':'blockName'});});}),(_0x551c09['descriptionFactory']['registerElementLabel']('codeBlock',_0x4ebf35=>o(_0x3be3bc,'ELEMENT_CODE_BLOCK',_0x4ebf35)),_0x551c09['descriptionFactory']['registerDescriptionCallback'](_0x345811=>{if('formatBlock'!=_0x345811['type'])return;const _0xbb1ab3=_0x3be3bc['t'],{data:_0xa0193b}=_0x345811;if(!_0xa0193b||'codeBlock'!=_0xa0193b['commandName'])return;const _0x20e54f=_0xa0193b['commandParams'][0x0]['language'],_0x5f576a=_0xbb1ab3(_0x24cbad['find'](_0x56cc4a=>_0x56cc4a['language']===_0x20e54f)['label'])['toLowerCase']();return _0xa0193b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3be3bc,'*Set\x20format:*\x20%0',o(_0x3be3bc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5f576a+')')}:{'type':'format','content':o(_0x3be3bc,'*Remove\x20format:*\x20%0',o(_0x3be3bc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x2396a7){return'codeBlock'==_0x2396a7['name'];}class H extends _0x27110f{['afterInit'](){const _0x1b35e7=this['editor'];if(!_0x1b35e7['plugins']['has']('CommentsEditing'))return;_0x1b35e7['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x27110f{static get['requires'](){return[_0x59b850];}['init'](){const _0x441bfa=this['editor'],_0x2e850f=_0x441bfa['plugins']['get']('TrackChangesEditing');_0x2e850f['enableCommand']('delete');const _0x58bd87=_0x441bfa['commands']['get']('deleteForward');_0x2e850f['enableCommand']('deleteForward',(_0x22eada,_0x3269d8={})=>{const _0x3f5063=_0x441bfa['model']['createSelection'](_0x441bfa['model']['document']['selection']);_0x3f5063['isCollapsed']&&_0x441bfa['model']['modifySelection'](_0x3f5063,{'direction':'forward','unit':_0x3269d8['unit']});const _0x25ad5c=_0x3f5063['getFirstRange'](),_0x19d7fc=_0x6f966d['fromRange'](_0x25ad5c);let _0x4e5e7b;_0x22eada(_0x3269d8),_0x4e5e7b='$graveyard'==_0x19d7fc['root']['rootName']?_0x441bfa['model']['createRange'](_0x25ad5c['start']):_0x441bfa['model']['createRange'](_0x19d7fc['start'],_0x19d7fc['end']),_0x19d7fc['detach'](),_0x441bfa['model']['enqueueChange'](_0x58bd87['buffer']['batch'],_0x2f0dd0=>{_0x58bd87['buffer']['lock'](),_0x2f0dd0['setSelection'](_0x2f0dd0['createRange'](_0x4e5e7b['end'])),_0x58bd87['buffer']['unlock']();});});}}class X extends _0x27110f{['afterInit'](){const _0x4d84c6=this['editor'];if(!_0x4d84c6['plugins']['has']('ListEditing'))return;const _0x231f68=_0x4d84c6['locale'],_0x4796e2=_0x4d84c6['plugins']['get']('TrackChangesEditing'),_0x1b164d=_0x4d84c6['plugins']['has']('TodoListEditing'),_0x19e0c4=!!_0x4d84c6['config']['get']('list.multiBlock');function _0xb8fdb(_0x53f7dc){return{'type':'format','content':''+o(_0x231f68,'*Set\x20format:*\x20%0',_0x53f7dc)};}function _0x25d2aa(_0xe6353b){return{'type':'format','content':''+o(_0x231f68,'*Remove\x20format:*\x20%0',_0xe6353b)};}_0x4796e2['enableDefaultAttributesIntegration']('numberedList'),_0x4796e2['enableDefaultAttributesIntegration']('bulletedList'),_0x4796e2['enableDefaultAttributesIntegration']('customNumberedList'),_0x4796e2['enableDefaultAttributesIntegration']('customBulletedList'),_0x4796e2['enableDefaultAttributesIntegration']('indentList'),_0x4796e2['enableDefaultAttributesIntegration']('outdentList'),_0x4796e2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4796e2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x19e0c4&&(_0x4796e2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4796e2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1b164d&&(_0x4796e2['enableDefaultAttributesIntegration']('todoList'),_0x4796e2['enableDefaultAttributesIntegration']('checkTodoList'),_0x4796e2['descriptionFactory']['registerDescriptionCallback'](_0x47b096=>{const {data:_0x5bcf94}=_0x47b096;if(_0x5bcf94&&'todoListChecked'==_0x5bcf94['key'])return{'type':'format','content':_0x5bcf94['newValue']?o(_0x231f68,'*Check\x20item*'):o(_0x231f68,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3c017d=>{if(_0x3c017d['batch']['isUndo'])return!0x1;let _0x41db07=!0x1;const _0x1999a2=_0x4796e2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f390c=>'todoListChecked'===_0x4796e2['_getAttributeKey'](_0x4f390c));for(const _0xb961f9 of _0x1999a2){'todo'!=_0xb961f9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4796e2['_findSuggestions'](_0xb961f9['getFirstRange'](),'attribute')['find'](_0x2f2f91=>'listType'===_0x4796e2['_getAttributeKey'](_0x2f2f91['suggestion']))||(_0x3c017d['removeMarker'](_0xb961f9['getFirstMarker']()),_0x41db07=!0x0));}return _0x41db07;})),_0x4796e2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x231f68,'FORMAT_INDENT'));const _0x3c49dd={'type':'format','content':''};_0x4796e2['descriptionFactory']['registerDescriptionCallback'](_0x112354=>{const {data:_0x18f073}=_0x112354;if(!_0x18f073||'listType'!=_0x18f073['key'])return;let _0x12de6d=_0x112354['head'];for(;_0x12de6d;){if(_0x12de6d['data']&&(('listStyle'==_0x12de6d['data']['key']||'listMarkerStyle'==_0x12de6d['data']['key'])&&(_0x12de6d['data']['newValue']&&'default'!=_0x12de6d['data']['newValue']||'default'!=_0x12de6d['data']['oldValue']&&!_0x18f073['newValue'])||!_0x19e0c4&&_0x12de6d['data']['key']==m))return _0x3c49dd;_0x12de6d=_0x12de6d['next'];}if(null==_0x18f073['newValue'])switch(_0x18f073['oldValue']){case'bulleted':return _0x25d2aa(o(_0x231f68,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25d2aa(o(_0x231f68,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25d2aa(o(_0x231f68,'ELEMENT_TODO_LIST'));}switch(_0x18f073['newValue']){case'bulleted':return _0xb8fdb(o(_0x231f68,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb8fdb(o(_0x231f68,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb8fdb(o(_0x231f68,'ELEMENT_TODO_LIST'));}}),_0x4796e2['descriptionFactory']['registerDescriptionCallback'](_0x45dba8=>{const {data:_0x728ee2}=_0x45dba8;if(_0x728ee2&&'listIndent'==_0x728ee2['key'])return null==_0x728ee2['newValue']||null==_0x728ee2['oldValue']&&0x0==_0x728ee2['newValue']?_0x3c49dd:void 0x0;}),_0x4796e2['descriptionFactory']['registerDescriptionCallback'](_0x329764=>{if('attribute'!=_0x329764['type'])return;const {data:_0x305abc}=_0x329764;if(!_0x305abc||'listItemId'!=_0x305abc['key'])return;const _0x5be2e2=Te(_0x329764);return'newValue'==_0x5be2e2?{'type':'format','content':o(_0x231f68,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5be2e2?{'type':'format','content':o(_0x231f68,'*Split:*\x20list\x20item')}:_0x3c49dd;}),_0x4d84c6['model']['document']['registerPostFixer'](_0x8fbcdf=>this['listItemIdFixer'](_0x8fbcdf)),_0x4d84c6['model']['document']['registerPostFixer'](_0x2f8f7d=>this['noTrackChangesFixer'](_0x2f8f7d)),_0x4d84c6['model']['document']['on']('change:data',(_0x3c5101,_0x399e34)=>{if(_0x399e34['isUndo']||!_0x399e34['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1f32e6){if(_0x1f32e6['batch']['isUndo']||!_0x1f32e6['batch']['isLocal'])return!0x1;let _0x7bf855=!0x1;const _0x36644f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1847a2=>_0x1847a2['data']&&'listItemId'==_0x1847a2['data']['key'])['filter'](_0x45d150=>_0x45d150['data']['newValue']&&_0x45d150['data']['oldValue']);for(const _0x58c773 of _0x36644f)Te(_0x58c773)||(_0x1f32e6['removeMarker'](_0x58c773['getFirstMarker']()),_0x7bf855=!0x0);return _0x7bf855;}['noTrackChangesFixer'](_0x5d0a1b){if(_0x5d0a1b['batch']['isUndo']||!_0x5d0a1b['batch']['isLocal'])return!0x1;const _0x6aae8e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x6aae8e['trackChangesCommand']['value'])return!0x1;let _0x585344=!0x1;const _0x7f8af=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5d2753=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xe2ab0b=>'attribute'==_0xe2ab0b['type'])['filter'](_0x45bf88=>_0x7f8af['includes'](_0x45bf88['attributeKey']));if(0x0==_0x5d2753['length'])return _0x585344;for(const _0x1e665f of _0x5d2753){const _0x216be1=_0x6aae8e['_findSuggestions'](_0x1e665f['range'],'attribute')['filter'](_0x150bbf=>!_0x150bbf['meta']['isNextTo'])['map'](_0xfc3a59=>_0xfc3a59['suggestion'])['filter'](_0x31cc9b=>{const _0x2bccc1=_0x6aae8e['_getAttributeKey'](_0x31cc9b);return _0x7f8af['includes'](_0x2bccc1);});if(_0x216be1['length']){for(const _0x2bfbc4 of _0x216be1)_0x5d0a1b['removeMarker'](_0x2bfbc4['getFirstMarker']());_0x585344=!0x0;}}return _0x585344;}['assureChains'](){const _0x4bc150=this['editor']['plugins']['get']('TrackChangesEditing'),_0x94ce7a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3a93bb;const _0x25adcd=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x55c8e3=>{if(_0x55c8e3['data']['oldRange']||!_0x55c8e3['data']['newRange'])return null;if(!_0x55c8e3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x35e303}=_0x4bc150['_splitMarkerName'](_0x55c8e3['name']);if(!_0x4bc150['hasSuggestion'](_0x35e303))return null;const _0x33a105=_0x4bc150['getSuggestion'](_0x35e303);return _0x94ce7a['includes'](_0x33a105['data']['key']);})['map'](_0x33a717=>{const {id:_0x2e672f}=_0x4bc150['_splitMarkerName'](_0x33a717['name']),_0x34239b=_0x4bc150['getSuggestion'](_0x2e672f);return _0x3a93bb=_0x34239b['attributes']['groupId'],_0x34239b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x25adcd['size'])return;const _0x44823c=_0x4bc150['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d0a9c=>'attribute'==_0x4d0a9c['type']&&_0x4d0a9c['data']&&_0x94ce7a['includes'](_0x4d0a9c['data']['key'])&&_0x4d0a9c['attributes']['groupId']!=_0x3a93bb)['map'](_0x71164c=>({'listItem':_0x71164c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x71164c['attributes']['groupId']})),_0x5c8f2e=new Set();for(const {groupId:_0xbf9659,listItem:_0x2c37b5}of _0x44823c)_0x25adcd['has'](_0x2c37b5)&&_0x5c8f2e['add'](_0xbf9659);for(const _0x34d4ec of _0x4bc150['getSuggestions']())_0x5c8f2e['has'](_0x34d4ec['attributes']['groupId'])&&_0x34d4ec['setAttribute']('groupId',_0x3a93bb);}['_supportLegacySuggestions'](){const _0x2903da=this['editor'],_0x52af29=_0x2903da['locale'],_0x233de3=_0x2903da['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x233de3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x56e957,_0x256411){const _0x165de3=[];for(let _0x2e4f57 of _0x56e957)_0x2e4f57['start']['nodeAfter']===_0x2e4f57['end']['parent']&&(_0x2e4f57=_0x2903da['model']['createRange'](_0x2903da['model']['createPositionAt'](_0x2e4f57['start']['nodeAfter'],0x0))),_0x165de3['push'](_0x2e4f57);_0x2903da['model']['change'](_0xbed9d6=>{const _0x424a1b=_0x2903da['model']['document']['selection'],_0x109c06=Array['from'](_0x424a1b['getRanges']())['map'](_0x105abe=>_0x6f966d['fromRange'](_0x105abe));_0xbed9d6['setSelection'](_0x165de3),_0x2903da['commands']['get'](_0x256411['commandName'])['refresh'](),_0x256411['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2903da['execute'](_0x256411['commandName'],..._0x256411['commandParams']),_0xbed9d6['setSelection'](_0x109c06);for(const _0x1cbc01 of _0x109c06)_0x1cbc01['detach']();});}),_0x233de3['descriptionFactory']['registerElementLabel'](function(_0x3a1f50){const _0x546614=!_0x2903da['model']['schema']['isObject'](_0x3a1f50),_0x4cf8da=_0x3a1f50['previousSibling'],_0x1ce340=_0x3a1f50['nextSibling'],_0xdc2817=_0x3a1f50['getAttribute']('listItemId'),_0x106ced=!_0x4cf8da||_0x4cf8da['getAttribute']('listItemId')!==_0xdc2817,_0x13164e=!_0x1ce340||_0x1ce340['getAttribute']('listItemId')!==_0xdc2817;return _0x546614&&Boolean(_0xdc2817)&&_0x106ced&&_0x13164e;},_0x5c9d67=>o(_0x52af29,'ELEMENT_LIST_ITEM',_0x5c9d67));}['_registerLegacyDescription'](){const _0x14948a=this['editor'],_0x21fcba=_0x14948a['locale'];function _0x2dc533(_0x2b622f){const _0x31d837=_0x14948a['commands']['get']('bulletedList')['value'],_0x3827e3=_0x14948a['commands']['get']('numberedList')['value'];return'numberedList'===_0x2b622f?_0x31d837:_0x3827e3;}_0x14948a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4bc7f3){if('formatBlock'!=_0x4bc7f3['type'])return;const {data:_0x48a804}=_0x4bc7f3;if(!_0x48a804)return;let _0xaee397,_0x11ee59,_0x17b2af,_0xd787f6;switch(_0x48a804['commandName']){case'bulletedList':_0x17b2af=_0x48a804['commandParams'][0x0]['forceValue'],_0xd787f6=_0x2dc533(_0x48a804['commandName']),_0xaee397=_0x17b2af?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd787f6&&_0x14948a['config']['get']('list.multiBlock')||(_0xaee397='*Change\x20to:*\x20%0'),_0x11ee59={'type':'format','content':o(_0x21fcba,_0xaee397,o(_0x21fcba,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x17b2af=_0x48a804['commandParams'][0x0]['forceValue'],_0xd787f6=_0x2dc533(_0x48a804['commandName']),_0xaee397=_0x17b2af?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd787f6&&_0x14948a['config']['get']('list.multiBlock')||(_0xaee397='*Change\x20to:*\x20%0'),_0x11ee59={'type':'format','content':o(_0x21fcba,_0xaee397,o(_0x21fcba,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xaee397='*Indent:*\x20%0',_0x11ee59={'type':'format','content':o(_0x21fcba,_0xaee397,o(_0x21fcba,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xaee397=function(_0x52c5fd){const _0x4fc560=_0x52c5fd['getFirstRange']();let _0xe0bae2=_0x4fc560['start']['nodeAfter'];for(;_0xe0bae2&&_0x4fc560['containsItem'](_0xe0bae2);){if(_0xe0bae2['getAttribute']('listIndent')>0x0)return!0x1;_0xe0bae2=_0xe0bae2['nextSibling'];}return!0x0;}(_0x4bc7f3)?o(_0x21fcba,'*Format:*\x20remove\x20from\x20%0',o(_0x21fcba,function(_0x36f5a4){return'ELEMENT_'+_0x36f5a4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4bc7f3))):o(_0x21fcba,'*Outdent:*\x20%0',o(_0x21fcba,'ELEMENT_LIST_ITEM')),_0x11ee59={'type':'format','content':_0xaee397};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x48a804['multipleBlocks']&&(_0xaee397='*Merge:*\x20%0',_0x11ee59={'type':'deletion','content':o(_0x21fcba,_0xaee397,o(_0x21fcba,'ELEMENT_LIST_ITEM'))});}return _0x11ee59;});}}function Te(_0x575688){let _0x3a91f4=_0x575688['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3a91f4;){const _0x23661d=_0x3a91f4['getAttribute']('listItemId');if(!_0x23661d)return!0x1;if(_0x23661d==_0x575688['data']['newValue'])return'newValue';if(_0x23661d==_0x575688['data']['oldValue'])return'oldValue';_0x3a91f4=_0x3a91f4['previousSibling'];}return!0x1;}class Y extends _0x27110f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3ccba5=this['editor']['config']['get']('list.properties'),_0x1c4cb0=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ccba5['styles']&&_0x1c4cb0['enableDefaultAttributesIntegration']('listStyle'),_0x3ccba5['reversed']&&_0x1c4cb0['enableDefaultAttributesIntegration']('listReversed'),_0x3ccba5['startIndex']&&_0x1c4cb0['enableDefaultAttributesIntegration']('listStart');const _0x234ad2={'type':'format','content':''};_0x1c4cb0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x218001=this['editor']['locale'];_0x1c4cb0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x218001,'FORMAT_LIST_REVERSED')),_0x1c4cb0['descriptionFactory']['registerDescriptionCallback'](_0x577e12=>{const {data:_0x2221a6}=_0x577e12;if(_0x2221a6&&'listReversed'==_0x2221a6['key'])return null==_0x2221a6['newValue']||0x0==_0x2221a6['newValue']&&null==_0x2221a6['oldValue']?_0x234ad2:void 0x0;}),_0x1c4cb0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x218001,'FORMAT_LIST_START')),_0x1c4cb0['descriptionFactory']['registerDescriptionCallback'](_0x52e479=>{const {data:_0x5192f8}=_0x52e479;if(_0x5192f8&&'listStart'==_0x5192f8['key'])return null==_0x5192f8['newValue']||0x1==_0x5192f8['newValue']&&null==_0x5192f8['oldValue']?_0x234ad2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x109fb7=>{if(_0x109fb7['batch']['isUndo'])return!0x1;let _0x5bbde0=!0x1;const _0x38be2e=_0x1c4cb0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8b8158=>{const _0x23ef31=_0x1c4cb0['_getAttributeKey'](_0x8b8158);return'listStart'==_0x23ef31||'listReversed'==_0x23ef31;});for(const _0x147030 of _0x38be2e){const _0x5cd65e=_0x147030['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5cd65e||'customNumbered'==_0x5cd65e)continue;_0x1c4cb0['_findSuggestions'](_0x147030['getFirstRange'](),'attribute')['find'](_0x56bdd8=>'listType'==_0x1c4cb0['_getAttributeKey'](_0x56bdd8['suggestion']))||(_0x109fb7['removeMarker'](_0x147030['getFirstMarker']()),_0x5bbde0=!0x0);}return _0x5bbde0;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x335ba8){const _0xd50541=this['editor']['locale'],{data:_0x5770ec}=_0x335ba8,_0x5b6b9c={'type':'format','content':''};if(!_0x5770ec||'listStyle'!=_0x5770ec['key'])return;if(!_0x5770ec['oldValue'])return'default'==_0x5770ec['newValue']?_0x5b6b9c:{'type':'format','content':''+o(_0xd50541,'*Set\x20format:*\x20%0',o(_0xd50541,this['_getTranslationKeyForListStyle'](_0x5770ec['newValue'])))};if(!_0x5770ec['newValue']){if('default'==_0x5770ec['oldValue'])return _0x5b6b9c;let _0x1533d3=_0x335ba8['head'];for(;_0x1533d3;){if(_0x1533d3['data']&&'listType'==_0x1533d3['data']['key']&&_0x1533d3['data']['newValue'])return _0x5b6b9c;_0x1533d3=_0x1533d3['next'];}return{'type':'format','content':''+o(_0xd50541,'*Remove\x20format:*\x20%0',o(_0xd50541,this['_getTranslationKeyForListStyle'](_0x5770ec['oldValue'])))};}if('default'!=_0x5770ec['newValue'])return{'type':'format','content':''+o(_0xd50541,'*Set\x20format:*\x20%0',o(_0xd50541,this['_getTranslationKeyForListStyle'](_0x5770ec['newValue'])))};let _0x5acb9d=_0x335ba8['head'];for(;_0x5acb9d;){if(_0x5acb9d['data']&&'listType'==_0x5acb9d['data']['key']&&_0x5acb9d['data']['newValue']&&_0x5acb9d['data']['oldValue'])return _0x5b6b9c;_0x5acb9d=_0x5acb9d['next'];}return{'type':'format','content':o(_0xd50541,'*Set\x20format:*\x20%0',o(_0xd50541,'ELEMENT_'+_0x335ba8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x14ae00=this['editor'],_0x4b46cb=_0x14ae00['locale'];_0x14ae00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19b133=>{if('formatBlock'!=_0x19b133['type'])return;const {data:_0xb2204f}=_0x19b133;if(!_0xb2204f)return;let _0x332af8,_0x5be24c;switch(_0xb2204f['commandName']){case'listStyle':_0x332af8='*Change\x20to:*\x20%0',_0x5be24c={'type':'format','content':o(_0x4b46cb,_0x332af8,o(_0x4b46cb,this['_getTranslationKeyForListStyle'](_0xb2204f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x332af8=_0xb2204f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5be24c={'type':'format','content':o(_0x4b46cb,_0x332af8)};break;case'listStart':_0x332af8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5be24c={'type':'format','content':o(_0x4b46cb,_0x332af8,_0xb2204f['commandParams'][0x0]['startIndex'])};}return _0x5be24c;});}['_getTranslationKeyForListStyle'](_0x120609){return'ELEMENT_'+function(_0x13c7f1){if(ye['includes'](_0x13c7f1))return'bulleted';if(Se['includes'](_0x13c7f1))return'numbered';return null;}(_0x120609)['toUpperCase']()+'_LIST_'+_0x120609['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x27110f{['afterInit'](){const _0x5e0c9d=this['editor'];_0x5e0c9d['commands']['get']('emoji')&&_0x5e0c9d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x27110f{static get['requires'](){return[_0x5258ff];}['init'](){const _0x1cc641=this['editor'],_0x49559e=_0x1cc641['plugins']['get']('TrackChangesEditing'),_0x20cc0d=_0x1cc641['commands']['get']('enter');_0x49559e['enableCommand']('enter',()=>{_0x1cc641['model']['change'](_0x28a17e=>{const _0x39b558=_0x1cc641['model']['document']['selection'],_0x426cd6=_0x39b558['getFirstPosition'](),_0x4991f6=_0x6f966d['fromRange'](_0x39b558['getFirstRange']());if(_0x20cc0d['enterBlock'](_0x28a17e)){const _0x5e91dd=_0x1cc641['model']['createPositionAt'](_0x426cd6['parent']['nextSibling'],0x0),_0x1f43ff=_0x28a17e['createRange'](_0x426cd6,_0x5e91dd);_0x49559e['markInsertion'](_0x1f43ff);}else _0x28a17e['setSelection'](_0x28a17e['createRange'](_0x4991f6['end']));_0x4991f6['detach'](),_0x20cc0d['fire']('afterExecute',{'writer':_0x28a17e});});});}}class nt extends _0x27110f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2427ec=this['editor']['plugins']['get']('TrackChangesEditing');_0x2427ec['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2427ec['enableCommand']('findNext'),_0x2427ec['enableCommand']('findPrevious'),_0x2427ec['enableCommand']('replace'),_0x2427ec['enableCommand']('replaceAll');}['handleFindCommand'](_0x2e05d0,_0x2da927,_0x5a8d67={}){const _0x19a52f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2e05d0(_0x793c02=>{let _0x5b2a04=('string'==typeof _0x2da927?_0x19a52f['findByTextCallback'](_0x2da927,_0x5a8d67):_0x2da927)(_0x793c02);Array['isArray'](_0x5b2a04)&&(_0x5b2a04={'results':_0x5b2a04,'searchText':'string'==typeof _0x2da927?_0x2da927:''});const _0x25bc53=_0x5b2a04['results']['filter'](_0x568eed=>!0x1===this['_isInDeletionRange'](_0x568eed,_0x793c02['item']));return{..._0x5b2a04,'results':_0x25bc53};},_0x5a8d67);}['_isInDeletionRange'](_0x481719,_0x514b9e){const _0xacc0a3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x514b9e,_0x481719['start']),this['editor']['model']['createPositionAt'](_0x514b9e,_0x481719['end']));for(const _0x156775 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xacc0a3['getIntersection'](_0x156775['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x27110f{['afterInit'](){const _0x5e3213=this['editor']['locale'],_0x2c91fa=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x31ba80,commandName:_0x35422c}of eo)this['editor']['plugins']['has'](_0x31ba80)&&_0x2c91fa['enableDefaultAttributesIntegration'](_0x35422c);_0x2c91fa['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5e3213,'FORMAT_FONT_SIZE')),_0x2c91fa['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5e3213,'FORMAT_FONT_FAMILY')),_0x2c91fa['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5e3213,'FORMAT_FONT_COLOR')),_0x2c91fa['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5e3213,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x151c4b=this['editor'],_0x119a85=_0x151c4b['locale'];_0x151c4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x302bab=>{const _0x347785=_0x119a85['t'];if('formatInline'!=_0x302bab['type'])return;const {data:_0x114ed5}=_0x302bab;if(null!=_0x114ed5){if('fontSize'==_0x114ed5['commandName']){const _0x5a2818=_0x114ed5['commandParams'][0x0]['value'];if(_0x5a2818){const _0x5da7ec=_0x347785(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x54bdbb=>_0x54bdbb['model']==_0x5a2818)['title'])['toLowerCase']();return{'type':'format','content':o(_0x119a85,'*Set\x20font\x20size:*\x20%0',_0x5da7ec)};}return{'type':'format','content':o(_0x119a85,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x114ed5['commandName']){const _0x142b7f=_0x114ed5['commandParams'][0x0]['value'];return _0x142b7f?{'type':'format','content':o(_0x119a85,'*Set\x20font\x20family:*\x20%0',_0x142b7f)}:{'type':'format','content':o(_0x119a85,'*Reset\x20font\x20family*')};}if('fontColor'==_0x114ed5['commandName']){const _0x39514d=_0x114ed5['commandParams'][0x0]['value'];if(_0x39514d){const _0x47cc97=_0x51d9c1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x222091=>_0x222091['model']==_0x39514d);let _0x25fe73=_0x39514d,_0x415bdb='';return _0x47cc97&&(_0x25fe73=_0x47cc97['label'],_0x415bdb=_0x347785(_0x25fe73)['toLowerCase']()),{'type':'format','content':o(_0x119a85,'*Set\x20font\x20color:*\x20%0',_0x415bdb)['trim'](),'color':{'value':_0x39514d,'title':_0x415bdb||_0x25fe73}};}return{'type':'format','content':o(_0x119a85,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x114ed5['commandName']){const _0x1e024f=_0x114ed5['commandParams'][0x0]['value'];if(_0x1e024f){const _0x9dd506=_0x51d9c1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5a11a1=>_0x5a11a1['model']==_0x1e024f);let _0x2f5a4e=_0x1e024f,_0x34ba47='';return _0x9dd506&&(_0x2f5a4e=_0x9dd506['label'],_0x34ba47=_0x347785(_0x2f5a4e)['toLowerCase']()),{'type':'format','content':o(_0x119a85,'*Set\x20font\x20background\x20color:*\x20%0',_0x34ba47)['trim'](),'color':{'value':_0x1e024f,'title':_0x34ba47||_0x2f5a4e}};}return{'type':'format','content':o(_0x119a85,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x27110f{['afterInit'](){const {plugins:_0x2d1d35}=this['editor'];_0x2d1d35['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2d1d35['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x3807ec,plugins:_0x386409,commands:_0x5afc10}=this['editor'],_0x24f62f=_0x386409['get']('TrackChangesEditing');_0x5afc10['get']('footnotesStyle')&&_0x24f62f['enableDefaultAttributesIntegration']('footnotesStyle'),_0x5afc10['get']('footnotesStart')&&_0x24f62f['enableDefaultAttributesIntegration']('footnotesStart'),_0x24f62f['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x3807ec,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x24f62f['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x3807ec,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x551d0d=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x43462f,commands:_0x4879ee}=this['editor'];_0x4879ee['get']('insertFootnote')&&_0x551d0d['enableCommand']('insertFootnote'),_0x551d0d['descriptionFactory']['registerElementLabel']('footnoteRef',_0x45f198=>o(_0x43462f,'ELEMENT_FOOTNOTE_REF',_0x45f198)),_0x551d0d['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x2b06b1=>o(_0x43462f,'ELEMENT_FOOTNOTE_DEFINITION',_0x2b06b1)),_0x551d0d['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x156728=>o(_0x43462f,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x156728));}}class st extends _0x27110f{['afterInit'](){const _0x249144=this['editor'],_0x518e3f=_0x249144['plugins']['get']('TrackChangesEditing'),_0x191263=_0x249144['commands']['get']('copyFormat'),_0x24e8a9=_0x249144['commands']['get']('pasteFormat');_0x191263&&_0x24e8a9&&(_0x518e3f['enableDefaultAttributesIntegration']('pasteFormat'),_0x518e3f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5b61da=this['editor'],_0x70426c=_0x5b61da['locale'];_0x5b61da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40964b=>{if('formatBlock'!=_0x40964b['type']&&'formatInline'!=_0x40964b['type'])return;const {data:_0x3e9e2f}=_0x40964b;if(_0x3e9e2f&&'pasteFormat'===_0x3e9e2f['commandName']){const _0x39e080=[],_0x10241a=_0x3e9e2f['commandParams'][0x0];for(const [_0xb3ac02,_0x384fb1]of Object['entries'](_0x10241a))_0x39e080['push'](ro(_0x5b61da,_0xb3ac02,_0x384fb1));return _0x39e080['length']?{'type':'format','content':o(_0x70426c,'*Set\x20format\x20to:*\x20%0',_0x39e080['join'](',\x20'))}:{'type':'format','content':o(_0x70426c,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x316ac0,_0x55a3aa,_0x4f2ef1){const _0x1e037b=_0x316ac0['locale']['t'],_0x573063=_0x55a3aa['split'](/(?=[A-Z])/)['join']('\x20'),_0x39571e=_0x1e037b(_0x573063['charAt'](0x0)['toUpperCase']()+_0x573063['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4f2ef1)return _0x39571e;if('fontColor'===_0x55a3aa||'fontBackgroundColor'===_0x55a3aa){const _0x2a837c=_0x51d9c1(_0x316ac0['config']['get']('fontColor.colors'))['find'](_0x50f467=>_0x50f467['model']==_0x4f2ef1);return _0x39571e+'\x20('+(_0x2a837c?_0x1e037b(_0x2a837c['label'])['toLowerCase']():_0x4f2ef1)+')';}if('fontSize'===_0x55a3aa&&isNaN(parseFloat(_0x4f2ef1))){const _0x4084d9=_0x316ac0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x316ac0['config']['get']('fontSize.options'))['find'](_0x3acf8d=>_0x3acf8d['model']==_0x4f2ef1);return _0x39571e+'\x20('+(_0x4084d9?_0x1e037b(_0x4084d9['title'])['toLowerCase']():_0x4f2ef1)+')';}return _0x39571e+'\x20('+_0x4f2ef1+')';}class ot extends _0x27110f{['_headingOptions'];['afterInit'](){const _0x3c85f3=this['editor'];if(!_0x3c85f3['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3c85f3['config']['get']('heading.options');const _0x165aaa=_0x3c85f3['locale'],_0x1155c4=_0x3c85f3['plugins']['get']('TrackChangesEditing');_0x1155c4['enableDefaultAttributesIntegration']('heading');for(const _0xb1f9b1 of this['_headingOptions'])'paragraph'!=_0xb1f9b1['model']&&_0x1155c4['descriptionFactory']['registerElementLabel'](_0xb1f9b1['model'],_0x340b5=>{const _0x5ec0b6=this['_getHeadingLevel'](_0xb1f9b1['model']);return null!==_0x5ec0b6?_0x3a18c4(_0x340b5,_0x5ec0b6):_0x2b99d1(_0x340b5,_0xb1f9b1['title']);});function _0x3a18c4(_0x2a88d6,_0x43ff5c){return o(_0x165aaa,'ELEMENT_HEADING',[_0x2a88d6,_0x43ff5c]);}function _0x2b99d1(_0x56434a,_0x2174d1){return o(_0x165aaa,'ELEMENT_HEADING_CUSTOM',[_0x56434a,_0x2174d1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e81c8=this['editor'],_0x273247=_0x3e81c8['locale'];function _0x49632d(_0x379a1d,_0xfd37c2){return o(_0x273247,'ELEMENT_HEADING_CUSTOM',[_0x379a1d,_0xfd37c2]);}_0x3e81c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dee8f=>{if('formatBlock'!=_0x3dee8f['type'])return;const {data:_0x1e712c}=_0x3dee8f;if(_0x1e712c&&'heading'==_0x1e712c['commandName']){const _0x17f977=_0x1e712c['commandParams'][0x0]['value'],_0x1a7ff2=this['_getHeadingLevel'](_0x17f977);if(null!==_0x1a7ff2)return{'type':'format','content':o(_0x273247,'*Change\x20to:*\x20%0',(_0x52d752=0x1,_0x4e08c7=_0x1a7ff2,o(_0x273247,'ELEMENT_HEADING',[_0x52d752,_0x4e08c7])))};const _0x153949=this['_headingOptions']['find'](_0x15859a=>_0x15859a['model']===_0x17f977)['title'];return{'type':'format','content':o(_0x273247,'*Change\x20to:*\x20%0',_0x49632d(0x1,_0x153949))};}var _0x52d752,_0x4e08c7;});}['_getHeadingLevel'](_0x31f594){const _0x26712a=_0x31f594['match'](/^heading(\d+)/);if(_0x26712a)return _0x26712a[0x1];const _0x25f300=this['_headingOptions']?.['find'](_0x602d29=>_0x602d29['model']==_0x31f594);if(_0x25f300&&_0x25f300['view']){const _0x3fc52c=_0x25f300['view'],_0x5500fe=(_0x3fc52c['name']??_0x3fc52c)['match'](/^h(\d+)/);if(_0x5500fe)return _0x5500fe[0x1];}return null;}}class rt extends _0x27110f{['afterInit'](){const _0x56979a=this['editor'];if(!_0x56979a['plugins']['has']('HighlightEditing'))return;const _0x669d11=_0x56979a['plugins']['get']('TrackChangesEditing'),_0xfc1ff0=_0x56979a['locale'];_0x669d11['enableDefaultAttributesIntegration']('highlight'),_0x669d11['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xfc1ff0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x169e4c=this['editor'],_0x53b717=_0x169e4c['locale'];_0x169e4c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ee06d=>{if('formatInline'!=_0x4ee06d['type'])return;const {data:_0x28ef3a}=_0x4ee06d;if(_0x28ef3a&&'highlight'==_0x28ef3a['commandName']){const _0x514f31=_0x53b717['t'],_0x48a4e8=_0x28ef3a['commandParams'][0x0]['value'];if(_0x48a4e8){const _0x522a06=_0x169e4c['config']['get']('highlight.options')['find'](_0x1583e4=>_0x1583e4['model']==_0x48a4e8),_0x430aa9=_0x514f31(_0x522a06['title'])['toLowerCase']();return{'type':'format','content':o(_0x53b717,'*Set\x20highlight:*\x20%0',_0x430aa9),'color':{'value':_0x522a06['color'],'title':_0x522a06['title']}};}return{'type':'format','content':o(_0x53b717,'*Remove\x20highlight*',o(_0x53b717,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x27110f{['afterInit'](){const _0x18f54a=this['editor'];if(!_0x18f54a['plugins']['has']('HorizontalLineEditing'))return;_0x18f54a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x400c2c=_0x18f54a['plugins']['get']('TrackChangesEditing'),_0x5c20fe=_0x18f54a['locale'];_0x400c2c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x11d4d0=>o(_0x5c20fe,'ELEMENT_HORIZONTAL_LINE',_0x11d4d0));}}class ct extends _0x27110f{['afterInit'](){const _0x15a765=this['editor'];if(!_0x15a765['plugins']['has']('HtmlEmbed'))return;const _0x38fc2b=_0x15a765['plugins']['get']('TrackChangesEditing'),_0x407fc6=_0x15a765['locale'];_0x38fc2b['descriptionFactory']['registerElementLabel']('rawHtml',_0x3c7bd5=>o(_0x407fc6,'ELEMENT_HTML_EMBED',_0x3c7bd5)),_0x38fc2b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x38fc2b['descriptionFactory']['registerDescriptionCallback'](_0x501061=>{if('attribute'!=_0x501061['type'])return;const {data:_0x9bef1e}=_0x501061;if(_0x9bef1e&&'value'==_0x9bef1e['key']&&_0x501061['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x7227b=o(_0x407fc6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x407fc6,'*Change\x20%0\x20content*',_0x7227b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x427d40=this['editor'],_0x93866d=_0x427d40['locale'];_0x427d40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a3273=>{if('formatBlock'!=_0x3a3273['type'])return;const {data:_0x52c140}=_0x3a3273;if(_0x52c140&&'htmlEmbed'==_0x52c140['commandName']){const _0x808b65=o(_0x93866d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x93866d,'*Change\x20%0\x20content*',_0x808b65)};}});}}class ut extends _0x27110f{['afterInit'](){const _0x546590=this['editor'];if(!_0x546590['plugins']['has']('ImageEditing'))return;const _0x2b6249=_0x546590['plugins']['get']('TrackChangesEditing'),_0xfe3616=_0x546590['plugins']['get']('ImageUtils'),_0x2d4f08=_0x546590['locale'];_0x2b6249['enableCommand']('insertImage'),_0x2b6249['descriptionFactory']['registerElementLabel']('imageBlock',_0x1be49a=>o(_0x2d4f08,'ELEMENT_IMAGE',_0x1be49a)),_0x2b6249['descriptionFactory']['registerElementLabel']('imageInline',_0x1671d3=>o(_0x2d4f08,'ELEMENT_INLINE_IMAGE',_0x1671d3)),_0x2b6249['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2d4f08,'ELEMENT_CAPTION')),_0x546590['plugins']['has']('ImageUploadEditing')&&_0x2b6249['enableCommand']('uploadImage'),_0x546590['plugins']['has']('ImageBlockEditing')&&_0x546590['plugins']['has']('ImageInlineEditing')&&(_0x2b6249['enableCommand']('imageTypeInline',(_0x186250,_0x59e9c5)=>{const _0x541068=_0xfe3616['getClosestSelectedImageElement'](_0x546590['model']['document']['selection']);_0x546590['model']['change'](()=>{_0x2b6249['markBlockFormat'](_0x541068,{'commandName':'imageTypeInline','commandParams':[_0x59e9c5]},[],'convertBlockImageToInline');});}),_0x2b6249['enableCommand']('imageTypeBlock',(_0x130b6a,_0x301f1e)=>{_0x546590['model']['change'](_0x187a27=>{let _0x5d0455=_0xfe3616['getClosestSelectedImageElement'](_0x546590['model']['document']['selection']),_0x3aeb18=_0x187a27['createRangeOn'](_0x5d0455);const _0x415141=_0x28764a['fromPosition'](_0x3aeb18['start'],'toPrevious'),_0x540ea7=_0x28764a['fromPosition'](_0x3aeb18['end'],'toNext');_0x2b6249['forceDefaultExecution'](()=>_0x130b6a(_0x301f1e)),_0x5d0455=_0xfe3616['getClosestSelectedImageElement'](_0x546590['model']['document']['selection']),_0x3aeb18=_0x187a27['createRangeOn'](_0x5d0455);const _0x1b321e=_0x187a27['createRange'](_0x415141,_0x540ea7);_0x415141['detach'](),_0x540ea7['detach'](),_0x2b6249['markBlockFormat'](_0x5d0455,{'commandName':'imageTypeInline','commandParams':[_0x301f1e]},[],'convertInlineImageToBlock'),_0x1b321e['start']['isBefore'](_0x3aeb18['start'])&&_0x2b6249['markInsertion'](_0x187a27['createRange'](_0x1b321e['start'],_0x3aeb18['start']),'convertInlineImageToBlock'),_0x3aeb18['end']['isBefore'](_0x1b321e['end'])&&_0x2b6249['markInsertion'](_0x187a27['createRange'](_0x3aeb18['end'],_0x1b321e['end']),'convertInlineImageToBlock');});}),_0x2b6249['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2b6249['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2b6249['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2b6249['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2b6249['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2b6249['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2c12b1])=>{const _0x106eda=_0x2b6249['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x38733c=_0x2c12b1['start'],_0x55fa3a=_0x2c12b1['end'];const _0x4605d3=_0x546590['model']['schema']['getNearestSelectionRange'](_0x38733c,'backward'),_0xef86bb=_0x546590['model']['schema']['getNearestSelectionRange'](_0x55fa3a,'forward');_0x4605d3['isCollapsed']&&(_0x38733c=_0x4605d3['start']),_0xef86bb['isCollapsed']&&(_0x55fa3a=_0xef86bb['end']),_0x106eda([_0x546590['model']['createRange'](_0x38733c,_0x55fa3a)]);}),_0x2b6249['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x508e1f),_0x2b6249['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x508e1f)),_0x546590['plugins']['has']('ImageCaptionEditing')&&(_0x2b6249['enableCommand']('toggleImageCaption',(_0x508818,_0x302fdb)=>{const _0x3affad=_0x546590['plugins']['get']('ImageCaptionUtils');let _0x5d5da0=_0xfe3616['getClosestSelectedImageElement'](_0x546590['model']['document']['selection']),_0x476465=_0x3affad['getCaptionFromImageModelElement'](_0x5d5da0);_0x546590['model']['change'](()=>{if(_0x476465)return void _0x2b6249['markDeletion'](_0x546590['model']['createRangeOn'](_0x476465));const _0x34e8c8=_0xfe3616['isBlockImage'](_0x5d5da0);_0x508818(_0x302fdb),_0x5d5da0=_0xfe3616['getClosestSelectedImageElement'](_0x546590['model']['document']['selection']),_0x476465=_0x3affad['getCaptionFromImageModelElement'](_0x5d5da0),_0x2b6249['markInsertion'](_0x546590['model']['createRangeOn'](_0x476465),_0x34e8c8?null:'imageCaption');});}),_0x2b6249['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x508e1f));const _0x46f1f7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x25b7bb(_0x392083,_0x171a23){const _0x53d485=_0x46f1f7['findIndex'](({type:_0x2d7f9c,subType:_0x3b287d})=>_0x392083['type']==_0x2d7f9c&&_0x392083['subType']==_0x3b287d),_0x2ae791=_0x46f1f7['findIndex'](({type:_0x52aa45,subType:_0x5efc75})=>_0x171a23['type']==_0x52aa45&&_0x171a23['subType']==_0x5efc75);if(_0x53d485<0x0||_0x2ae791<0x0)return!0x1;const _0x6ba17a=_0x392083['getFirstRange'](),_0x2473d2=_0x171a23['getFirstRange']();if((0x0==_0x53d485||0x1==_0x53d485)&&0x2==_0x2ae791&&_0x6ba17a['isIntersecting'](_0x2473d2))return!0x0;if(0x2==_0x53d485&&0x3==_0x2ae791){const _0x5ee25a=_0x2b6249['_findSuggestions'](_0x6ba17a,'insertion')['filter'](({suggestion:_0x4eef61,meta:_0x3e62cd})=>_0x3e62cd['isOwn']&&'convertInlineImageToBlock'==_0x4eef61['subType']);if(_0x5ee25a['length']>0x1&&_0x2473d2['end']['isEqual'](_0x6ba17a['start']))return!0x0;if(0x1==_0x5ee25a['length']&&(_0x6ba17a['start']['isEqual'](_0x2473d2['end'])||_0x6ba17a['end']['isEqual'](_0x2473d2['start'])))return!0x0;}if(0x3==_0x53d485&&0x3==_0x2ae791&&_0x6ba17a['start']['isBefore'](_0x2473d2['start'])){const _0x38d08c=_0x6ba17a['end']['nodeAfter'],_0x4616fb=_0x2473d2['start']['nodeBefore'];return _0xfe3616['isBlockImage'](_0x38d08c)&&_0x38d08c===_0x4616fb;}return!0x1;}function _0x508e1f(_0x308a60,_0x48b7fe){return _0x25b7bb(_0x308a60,_0x48b7fe)?[_0x308a60,_0x48b7fe]:_0x25b7bb(_0x48b7fe,_0x308a60)?[_0x48b7fe,_0x308a60]:null;}_0x546590['plugins']['has']('ImageResize')&&(_0x2b6249['enableDefaultAttributesIntegration']('resizeImage'),_0x2b6249['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2d4f08,'FORMAT_IMAGE_SIZE'))),_0x546590['plugins']['has']('ImageTextAlternativeEditing')&&_0x2b6249['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x546590['plugins']['has']('PictureEditing')&&_0x2b6249['descriptionFactory']['registerDescriptionCallback'](_0x266ff2=>{if('attribute'!=_0x266ff2['type'])return;const {data:_0x5886de}=_0x266ff2;return _0x5886de&&'sources'==_0x5886de['key']?{'type':'format','content':''}:void 0x0;}),_0x546590['plugins']['has']('ImageSizeAttributes')&&_0x2b6249['descriptionFactory']['registerDescriptionCallback'](_0x25fb37=>{if('attribute'!=_0x25fb37['type'])return;const {data:_0x1a6b51}=_0x25fb37;return!_0x1a6b51||'width'!=_0x1a6b51['key']&&'height'!=_0x1a6b51['key']?void 0x0:{'type':'format','content':''};}),_0x2b6249['descriptionFactory']['registerDescriptionCallback'](_0x45c5e0=>{if(!!_0x46f1f7['find'](({type:_0x22b99e,subType:_0x48417a})=>_0x45c5e0['type']==_0x22b99e&&_0x45c5e0['subType']==_0x48417a))return _0x45c5e0['previous']?{}:void 0x0;}),_0x2b6249['descriptionFactory']['registerDescriptionCallback'](_0x18a1fc=>{if('insertion'==_0x18a1fc['type']||'deletion'==_0x18a1fc['type']){const _0x4582e1=_0x18a1fc['getContainedElement']();if(_0x4582e1&&_0x4582e1['is']('element','caption'))return{'type':'insertion'==_0x18a1fc['type']?'addObject':'removeObject','element':_0x4582e1,'quantity':0x1};}}),_0x2b6249['descriptionFactory']['registerDescriptionCallback'](_0x148770=>'formatBlock'==_0x148770['type']&&'convertInlineImageToBlock'==_0x148770['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x148770['type']&&'convertBlockImageToInline'==_0x148770['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2b6249['descriptionFactory']['registerDescriptionCallback'](_0x45f7be=>{if('attribute'!=_0x45f7be['type'])return;const {data:_0x307530}=_0x45f7be;if(!_0x307530||'alt'!=_0x307530['key'])return;const _0x2a9a0a=_0x307530['newValue'];return _0x2a9a0a?{'type':'format','content':o(_0x2d4f08,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2a9a0a+'\x22')}:{'type':'format','content':o(_0x2d4f08,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40d04a=this['editor'],_0x1234a3=_0x40d04a['locale'];_0x40d04a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x402acc=>{if('formatBlock'!=_0x402acc['type']&&'formatInline'!=_0x402acc['type'])return;const {data:_0x1ad283}=_0x402acc;if(_0x1ad283){if('imageTextAlternative'==_0x1ad283['commandName']){const _0x5b47fe=_0x1ad283['commandParams'][0x0]['newValue'];return _0x5b47fe?{'type':'format','content':o(_0x1234a3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5b47fe+'\x22')}:{'type':'format','content':o(_0x1234a3,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1ad283['commandName']){const _0xd8f37b=_0x1ad283['commandParams'][0x0]['width'];return _0xd8f37b?{'type':'format','content':o(_0x1234a3,'*Set\x20image\x20width:*\x20%0',_0xd8f37b)}:{'type':'format','content':o(_0x1234a3,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x27110f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x19bd4e=this['editor']['locale'],_0x8fb806=this['editor']['plugins']['get']('TrackChangesEditing');_0x8fb806['enableDefaultAttributesIntegration']('replaceImageSource'),_0x8fb806['descriptionFactory']['registerDescriptionCallback'](_0x2b9feb=>{if('attribute'!=_0x2b9feb['type'])return;const {data:_0x1391fc}=_0x2b9feb;return _0x1391fc&&'src'==_0x1391fc['key']?_0x1391fc['newValue']&&_0x1391fc['oldValue']?{'type':'format','content':o(_0x19bd4e,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x399cfd=this['editor']['plugins']['get']('TrackChangesEditing');_0x399cfd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x399cfd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x399cfd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x399cfd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fa36e=this['editor'],_0xe807fe=_0x4fa36e['locale'];_0x4fa36e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7192ee=>{if('formatBlock'!=_0x7192ee['type']&&'formatInline'!=_0x7192ee['type'])return;const {data:_0x3fe53f}=_0x7192ee;if(!_0x3fe53f||'replaceImageSource'!=_0x3fe53f['commandName'])return;return{'type':'format','content':o(_0xe807fe,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x27110f{['afterInit'](){const _0x4ac79f=this['editor'];if(!_0x4ac79f['plugins']['has']('ImageStyleEditing'))return;const _0x55a34c=_0x4ac79f['plugins']['get']('TrackChangesEditing'),_0x18e0d5=_0x4ac79f['plugins']['get']('ImageUtils'),_0x34c0e9={};_0x55a34c['enableCommand']('imageStyle',(_0x557a95,_0x5f18f6)=>{const _0x1af72d=_0x4ac79f['plugins']['get']('Users')['me'],_0xecc29=_0x4ac79f['commands']['get']('imageStyle');let _0x538612=_0x18e0d5['getClosestSelectedImageElement'](_0x4ac79f['model']['document']['selection']),_0x4a050=_0x4ac79f['model']['createRangeOn'](_0x538612),_0x24ac9c=_0xecc29['value'];if(_0x24ac9c==_0x5f18f6['value'])return;const _0x12dc95={'commandName':'imageStyle','commandParams':[_0x5f18f6],'formatGroupId':_0x3412ef()};_0x4ac79f['model']['change'](()=>{if(_0x55a34c['getSuggestions']()['filter'](_0x5a3558=>_0x5a3558['isInContent']&&_0x1af72d==_0x5a3558['author']&&('formatBlock'==_0x5a3558['type']||'formatInline'==_0x5a3558['type'])&&('imageStylePreApply'==_0x5a3558['subType']||'imageStylePostApply'==_0x5a3558['subType'])&&_0x5a3558['getFirstRange']()['isEqual'](_0x4a050))['forEach'](_0x33b025=>_0x55a34c['discardSuggestion'](_0x33b025['head'])),_0x538612=_0x18e0d5['getClosestSelectedImageElement'](_0x4ac79f['model']['document']['selection']),_0x4a050=_0x4ac79f['model']['createRangeOn'](_0x538612),_0xecc29['refresh'](),_0x4ac79f['commands']['get']('imageTypeInline')['refresh'](),_0x4ac79f['commands']['get']('imageTypeBlock')['refresh'](),_0x24ac9c=_0xecc29['value'],_0x24ac9c!=_0x5f18f6['value'])return _0x18e0d5['isInlineImage'](_0x538612)&&_0xecc29['shouldConvertImageType'](_0x5f18f6['value'],_0x538612)?(_0x557a95({..._0x5f18f6,'setImageSizes':!0x1}),_0x538612=_0x18e0d5['getClosestSelectedImageElement'](_0x4ac79f['model']['document']['selection']),void _0x55a34c['markBlockFormat'](_0x538612,{..._0x12dc95,'commandReversedParams':[{'value':_0x24ac9c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x18e0d5['isBlockImage'](_0x538612)?_0x55a34c['markBlockFormat'](_0x538612,_0x12dc95,[],'imageStylePostApply'):_0x55a34c['markInlineFormat'](_0x4a050,_0x12dc95,'imageStylePostApply'));});});for(const _0x47c145 of _0x4ac79f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x34c0e9[_0x47c145['name']]=_0x47c145['title']['toLowerCase']();_0x55a34c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x55a34c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x55a34c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x55a34c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4bc447])=>{_0x18e0d5['setImageNaturalSizeAttributes'](_0x4bc447['getContainedElement']());}),_0x55a34c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2edb45,_0x4593ea)=>{_0x55a34c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2edb45,{'commandName':_0x4593ea['commandName'],'commandParams':_0x4593ea['commandReversedParams']});}),_0x55a34c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5ad579,_0xa17e5a){if(_0x317673(_0x5ad579,_0xa17e5a))return[_0x5ad579,_0xa17e5a];if(_0x317673(_0xa17e5a,_0x5ad579))return[_0xa17e5a,_0x5ad579];return null;});const _0x49aaba=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x317673(_0x1f5df,_0x4bfa24){const _0x402b56=_0x49aaba['findIndex'](({type:_0x51bea4,subType:_0x1e8f07})=>_0x1f5df['type']==_0x51bea4&&_0x1f5df['subType']==_0x1e8f07),_0x4b986e=_0x49aaba['findIndex'](({type:_0x2ac65f,subType:_0x4a03ed})=>_0x4bfa24['type']==_0x2ac65f&&_0x4bfa24['subType']==_0x4a03ed);if(_0x402b56<0x0||_0x4b986e<0x0)return!0x1;const _0x233ca2=_0x1f5df['getFirstRange'](),_0x58714e=_0x4bfa24['getFirstRange']();if((0x0==_0x402b56||0x1==_0x402b56)&&0x2==_0x4b986e&&_0x233ca2['isIntersecting'](_0x58714e))return!0x0;if(0x2==_0x402b56&&0x3==_0x4b986e){const _0xc6eaf2=_0x55a34c['_findSuggestions'](_0x233ca2,'insertion')['filter'](({suggestion:_0x44faba,meta:_0x25e856})=>_0x25e856['isOwn']&&'convertInlineImageToBlock'==_0x44faba['subType']);if(_0xc6eaf2['length']>0x1&&_0x58714e['end']['isEqual'](_0x233ca2['start']))return!0x0;if(0x1==_0xc6eaf2['length']&&(_0x233ca2['start']['isEqual'](_0x58714e['end'])||_0x233ca2['end']['isEqual'](_0x58714e['start'])))return!0x0;}if(0x3==_0x402b56&&0x3==_0x4b986e&&_0x233ca2['start']['isBefore'](_0x58714e['start'])){const _0x424a51=_0x233ca2['end']['nodeAfter'],_0x22c2f7=_0x58714e['start']['nodeBefore'];return _0x18e0d5['isBlockImage'](_0x424a51)&&_0x424a51===_0x22c2f7;}return!0x1;}_0x4ac79f['model']['document']['registerPostFixer'](()=>{let _0x4cc6f4=!0x1;const _0x35aef0=Array['from'](_0x4ac79f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51241d,data:_0x26e6e7}of _0x35aef0){const {group:_0x345687,type:_0x56ec17,subType:_0x2f6769,id:_0x58bb15}=_0x55a34c['_splitMarkerName'](_0x51241d);if('suggestion'==_0x345687&&_0x55a34c['hasSuggestion'](_0x58bb15)){if('formatBlock'==_0x56ec17&&('imageStylePreApply'==_0x2f6769||'imageStylePostApply'==_0x2f6769)){const _0x219196=_0x55a34c['getSuggestion'](_0x58bb15);if(_0x26e6e7['newRange']){const _0x5722ea=_0x219196['getFirstRange']()['getContainedElement']();if(_0x18e0d5['isBlockImage'](_0x5722ea))continue;_0x55a34c['discardSuggestion'](_0x219196),_0x4cc6f4=!0x0;}}if('insertion'==_0x56ec17&&'imageCaption'==_0x2f6769&&!_0x26e6e7['newRange']){const _0x3a5278=_0x55a34c['getSuggestion'](_0x58bb15);_0x3a5278['next']&&_0x3a5278['next']['isInContent']&&(_0x55a34c['discardSuggestion'](_0x3a5278['next']),_0x4cc6f4=!0x0);}}}return _0x4cc6f4;}),this['_registerLegacyDescription'](_0x34c0e9);}['_registerLegacyDescription'](_0x380019){const _0x1df175=this['editor'],_0x51611f=_0x1df175['locale'];_0x1df175['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x559b73=>{if('formatBlock'!=_0x559b73['type']&&'formatInline'!=_0x559b73['type'])return;const {data:_0x4cc2cb}=_0x559b73;if(!_0x4cc2cb||'imageStyle'!=_0x4cc2cb['commandName'])return;const _0x5c4d31=_0x4cc2cb['commandParams'][0x0]['value'];return _0x15a2be('side'===_0x5c4d31?o(_0x51611f,'FORMAT_SIDE_IMAGE'):_0x380019[_0x5c4d31]||_0x5c4d31);function _0x15a2be(_0x1e3347){return{'type':'format','content':o(_0x51611f,'*Format:*\x20%0',_0x1e3347)};}});}}class lt extends _0x27110f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x31dd25){super(_0x31dd25),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4fa573=this['editor'],_0x1cb1f8=_0x4fa573['commands']['get']('importWord'),_0x59e5db=_0x4fa573['commands']['get']('trackChanges');_0x1cb1f8&&(_0x1cb1f8['on']('execute',(_0x30d7ad,[,_0x29ae10])=>{this['_trackChangesValueDuringImport']=_0x59e5db['value'],_0x29ae10['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1cb1f8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1cb1f8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x59e5db['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4fa573['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x11b867,_0x1ba5f4){const {suggestions:_0x4a8803}=_0x1ba5f4,_0x5de448=this['editor']['commands']['get']('trackChanges'),_0xe053db=_0x5de448['value'];this['_trackChangesValueDuringImport']!==_0xe053db&&(_0x5de448['execute'](),this['_trackChangesExecuted']=!0x0),_0x4a8803&&_0x4a8803['forEach'](({id:_0x16fd06,type:_0x10fb09,author:_0x4b1305,created_at:_0x1634b1})=>{const _0x5a9a30={'id':_0x16fd06,'type':_0x10fb09,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4b1305,'createdAt':_0x1634b1?new Date(_0x1634b1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5a9a30);});}}class gt extends _0x27110f{['afterInit'](){const _0x23a489=this['editor'],_0x4b8ead=_0x23a489['plugins']['get']('TrackChangesEditing');if(_0x23a489['plugins']['has']('IndentEditing')&&(_0x4b8ead['enableCommand']('indent'),_0x4b8ead['enableCommand']('outdent')),_0x23a489['plugins']['has']('IndentBlock')){for(const _0xcac52a of['indentBlock','outdentBlock'])_0x4b8ead['enableDefaultAttributesIntegration'](_0xcac52a);if(_0x23a489['plugins']['has']('ListEditing')){for(const _0x46c30c of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x4b8ead['enableDefaultAttributesIntegration'](_0x46c30c);}}const _0x557875=_0x23a489['locale'];_0x4b8ead['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x557875,'FORMAT_INDENT')),_0x4b8ead['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x557875,'FORMAT_INDENT')),_0x4b8ead['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x557875,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x76d4c1=this['editor'],_0x5518f8=_0x76d4c1['locale'],_0xc30483=_0x76d4c1['plugins']['get']('TrackChangesEditing');_0xc30483['descriptionFactory']['registerDescriptionCallback'](_0xacebbe=>{if('formatBlock'!=_0xacebbe['type'])return;const {data:_0x3999cc}=_0xacebbe;if(!_0x3999cc)return;if('indentBlock'!=_0x3999cc['commandName']&&'outdentBlock'!=_0x3999cc['commandName'])return;const _0x1f44c7=_0xacebbe['getItems']()[0x0],_0x6dd01f=_0xc30483['descriptionFactory']['getItemLabel'](_0x1f44c7);return'indentBlock'==_0x3999cc['commandName']?{'type':'format','content':o(_0x5518f8,'*Indent:*\x20%0',_0x6dd01f)}:'outdentBlock'==_0x3999cc['commandName']?{'type':'format','content':o(_0x5518f8,'*Outdent:*\x20%0',_0x6dd01f)}:void 0x0;});}}class mt extends _0x27110f{static get['requires'](){return[_0x21b16b];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x27110f{['afterInit'](){const _0x5cf8ef=this['editor'];if(!_0x5cf8ef['plugins']['has']('LinkEditing'))return;const _0x421291=_0x5cf8ef['plugins']['get']('TrackChangesEditing'),_0x54d0e3=_0x5cf8ef['commands']['get']('link');_0x421291['enableDefaultAttributesIntegration']('link'),_0x421291['enableDefaultAttributesIntegration']('unlink');for(const _0x43516e of _0x54d0e3['manualDecorators'])_0x421291['descriptionFactory']['registerAttributeLabel'](_0x43516e['id'],'link\x20('+_0x43516e['label']['toLowerCase']()+')');_0x421291['descriptionFactory']['registerDescriptionCallback'](_0x503d7e=>{if('attribute'!=_0x503d7e['type'])return;const {data:_0x54655e}=_0x503d7e;if(!_0x54655e||'linkHref'!=_0x54655e['key'])return;const _0x3aeabe=_0x54655e['newValue'],_0x5789a3=_0x5cf8ef['locale'];return{'type':'format','content':null==_0x3aeabe?o(_0x5789a3,'*Remove\x20link*'):o(_0x5789a3,'*Set\x20link:*\x20%0','\x22'+_0x3aeabe+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f42f=this['editor'],_0x2c3e1c=_0x2f42f['locale'];_0x2f42f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1adca6=>{if('formatInline'!=_0x1adca6['type'])return;const {data:_0x37cef5}=_0x1adca6;if(_0x37cef5){if('link'==_0x37cef5['commandName']){const _0xb3a0d5=_0x37cef5['commandParams'][0x0];return{'type':'format','content':o(_0x2c3e1c,'*Set\x20link:*\x20%0','\x22'+_0xb3a0d5+'\x22')};}return'unlink'==_0x37cef5['commandName']?{'type':'format','content':o(_0x2c3e1c,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x27110f{['afterInit'](){const _0x1dfb1f=this['editor'],_0x36976f=_0x1dfb1f['locale'];if(!_0x1dfb1f['plugins']['has']('LegacyListEditing'))return;const _0x34c60d=_0x1dfb1f['plugins']['get']('TrackChangesEditing'),_0x599e4b=_0x1dfb1f['plugins']['has']('LegacyTodoListEditing');function _0x99924a(_0x2ecf5c){return()=>{const _0x5aef48=_0x1dfb1f['model']['document']['selection'],_0x57c950=_0x1dfb1f['commands']['get'](_0x2ecf5c);if(_0x57c950['value'])return void _0x1dfb1f['execute']('paragraph',{});const _0xe31732=_0x2ecf5c['slice'](0x0,-0x4),_0x1fca07=function(_0x3ecbef,_0x34a0b7,_0x56fc58){let _0xd8fd11=Array['from'](_0x3ecbef)['filter'](_0x3beb50=>function(_0x1e090c,_0x454982){return _0x454982['checkChild'](_0x1e090c['parent'],'listItem')&&!_0x454982['isObject'](_0x1e090c);}(_0x3beb50,_0x56fc58));_0xd8fd11=_0xd8fd11['filter'](_0x47299d=>!_0x47299d['is']('element','listItem')||_0x47299d['getAttribute']('listType')!=_0x34a0b7);const _0x1049b0=new Set();for(const _0x43d0c7 of _0xd8fd11)_0x43d0c7['is']('element','listItem')?_0x1049b0['add'](Le(_0x43d0c7)):_0x1049b0['add'](_0x43d0c7);return Array['from'](_0x1049b0);}(_0x5aef48['getSelectedBlocks'](),_0xe31732,_0x1dfb1f['model']['schema']);_0x1dfb1f['model']['change'](()=>{for(const _0x24fe55 of _0x1fca07)_0x34c60d['markBlockFormat'](_0x24fe55,{'commandName':_0x2ecf5c,'commandParams':[{'forceValue':!_0x57c950['value']}],'formatGroupId':'blockName'},Ee(_0x24fe55));});};}function _0x5cab7a(_0x6f4ac6){return()=>{const _0x15e1a2=function(_0xa57000){let _0x7823f6=Array['from'](_0xa57000);const _0x73e4da=_0x7823f6['findIndex'](_0x450484=>'listItem'!=_0x450484['name']);return _0x73e4da>-0x1&&(_0x7823f6=_0x7823f6['slice'](0x0,_0x73e4da)),_0x7823f6;}(_0x1dfb1f['model']['document']['selection']['getSelectedBlocks']()),_0x7bf764=_0x1dfb1f['model']['createRange'](_0x1dfb1f['model']['createPositionAt'](_0x15e1a2[0x0],'before'),_0x1dfb1f['model']['createPositionAt'](_0x15e1a2[_0x15e1a2['length']-0x1],'end'));_0x1dfb1f['model']['change'](()=>{_0x34c60d['markBlockFormat'](_0x7bf764,{'commandName':_0x6f4ac6,'commandParams':[],'formatGroupId':'listIndent'},function(_0x483bc0){const _0x16de84=new Set();for(const _0x4a219a of _0x483bc0){let _0x9d1e2f=_0x4a219a['nextSibling'];for(;_0x9d1e2f&&_0x9d1e2f['getAttribute']('listIndent')>_0x4a219a['getAttribute']('listIndent');)_0x16de84['add'](_0x9d1e2f),_0x9d1e2f=_0x9d1e2f['nextSibling'];}return Array['from'](_0x16de84);}(_0x15e1a2));});};}_0x34c60d['enableCommand']('numberedList',_0x99924a('numberedList')),_0x34c60d['enableCommand']('bulletedList',_0x99924a('bulletedList')),_0x599e4b&&_0x34c60d['enableCommand']('todoList',_0x99924a('todoList')),_0x34c60d['enableCommand']('indentList',_0x5cab7a('indentList')),_0x34c60d['enableCommand']('outdentList',_0x5cab7a('outdentList')),_0x599e4b&&_0x34c60d['enableCommand']('checkTodoList',()=>{const _0x42223c=_0x1dfb1f['commands']['get']('checkTodoList'),_0x4d1b45=Array['from'](_0x42223c['_selectedElements']);_0x4d1b45['filter'](_0x6c18bf=>_0x6c18bf['getAttribute']('todoListChecked')!=_0x42223c['value']),_0x1dfb1f['model']['change'](()=>{for(const _0x1129b9 of _0x4d1b45)_0x34c60d['markBlockFormat'](_0x1129b9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x42223c['value']}]});});}),_0x34c60d['descriptionFactory']['registerElementLabel']('listItem',_0x30f774=>o(_0x36976f,'ELEMENT_LIST_ITEM',_0x30f774)),_0x34c60d['descriptionFactory']['registerDescriptionCallback'](_0xa4c8df=>{if('formatBlock'!=_0xa4c8df['type']&&'formatInline'!=_0xa4c8df['type'])return;const {data:_0x114130}=_0xa4c8df;if(_0x114130){if('numberedList'==_0x114130['commandName']||'bulletedList'==_0x114130['commandName']||'todoList'==_0x114130['commandName'])switch(_0x114130['commandName']['replace']('List','')){case'bulleted':return _0x11e700(o(_0x36976f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x11e700(o(_0x36976f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x11e700(o(_0x36976f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x114130['commandName'])return{'type':'format','content':o(_0x36976f,'*Indent:*\x20%0',o(_0x36976f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x114130['commandName'])return{'type':'format','content':o(_0x36976f,'*Outdent:*\x20%0',o(_0x36976f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x114130['commandName'])return _0x114130['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x36976f,'*Check\x20item*')}:{'type':'format','content':o(_0x36976f,'*Uncheck\x20item*')};}function _0x11e700(_0x57d272){return{'type':'format','content':o(_0x36976f,'*Change\x20to:*\x20%0',_0x57d272)};}});}}function Le(_0x296e4f){const _0x16f0eb=_0x296e4f['getAttribute']('listIndent');if(0x0==_0x16f0eb)return _0x296e4f;let _0x385483=_0x296e4f;for(;_0x296e4f['previousSibling']&&_0x296e4f['previousSibling']['is']('element','listItem');){const _0x1efc84=_0x296e4f['previousSibling']['getAttribute']('listIndent');if(_0x1efc84==_0x16f0eb)_0x385483=_0x296e4f['previousSibling'];else{if(_0x1efc84<_0x16f0eb)break;}_0x296e4f=_0x296e4f['previousSibling'];}return _0x385483;}function Ee(_0x174f15){const _0xcd54dc=[];if(_0x174f15['is']('element','listItem')&&_0x174f15['getAttribute']('listIndent')>0x0){let _0x467410=_0x174f15['nextSibling'];for(;_0x467410&&'listItem'==_0x467410['name']&&_0x467410['getAttribute']('listIndent')==_0x174f15['getAttribute']('listIndent');)_0xcd54dc['push'](_0x467410),_0x467410=_0x467410['nextSibling'];}return _0xcd54dc;}class wt extends _0x27110f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x83f6ac=this['editor']['config']['get']('list.properties'),_0x117b56=this['editor']['plugins']['get']('TrackChangesEditing');_0x83f6ac['styles']&&_0x117b56['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x83f6ac['reversed']&&_0x117b56['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x83f6ac['startIndex']&&_0x117b56['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x117b56['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x431cd2,_0x234657={}){const _0x54baa5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30eb7c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x54baa5['markMultiRangeBlockFormat'](_0x30eb7c,{'commandName':'listStyle','commandParams':[{'type':_0x234657['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x46fb6d,_0x46f956={}){const _0x50dac6=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa93269=this['_getSuggestionBlocks'](_0x21c9a2=>_0x21c9a2['is']('element','listItem')&&'numbered'===_0x21c9a2['getAttribute']('listType'));if(_0xa93269['length']<0x1)return;const _0x2a5038=_0xa93269['map'](_0x14237f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x14237f,'before'),this['editor']['model']['createPositionAt'](_0x14237f,0x0)));this['editor']['model']['change'](()=>{_0x50dac6['markMultiRangeBlockFormat'](_0x2a5038,{'commandName':'listReversed','commandParams':[{'reversed':_0x46f956['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x27564e,_0x2eb57d={}){const _0x3b9123=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34ced0=this['_getSuggestionBlocks'](_0x2090d5=>_0x2090d5['is']('element','listItem')&&'numbered'===_0x2090d5['getAttribute']('listType'));if(_0x34ced0['length']<0x1)return;const _0x4c10fa=_0x34ced0['map'](_0x139f99=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x139f99,'before'),this['editor']['model']['createPositionAt'](_0x139f99,0x0)));this['editor']['model']['change'](()=>{_0x3b9123['markMultiRangeBlockFormat'](_0x4c10fa,{'commandName':'listStart','commandParams':[{'startIndex':_0x2eb57d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3e3a72){if('formatBlock'!=_0x3e3a72['type']&&'formatInline'!=_0x3e3a72['type'])return;const _0x2b7ef8=this['editor']['locale'],{data:_0x125f90}=_0x3e3a72;if(!_0x125f90)return;let _0x49cbaa,_0x593c5e;switch(_0x125f90['commandName']){case'listStyle':_0x49cbaa='*Change\x20to:*\x20%0',_0x593c5e={'type':'format','content':o(_0x2b7ef8,_0x49cbaa,o(_0x2b7ef8,this['_getTranslationKeyForListStyle'](_0x125f90['commandParams'][0x0]['type'])))};break;case'listReversed':_0x49cbaa=_0x125f90['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x593c5e={'type':'format','content':o(_0x2b7ef8,_0x49cbaa)};break;case'listStart':_0x49cbaa='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x593c5e={'type':'format','content':o(_0x2b7ef8,_0x49cbaa,_0x125f90['commandParams'][0x0]['startIndex'])};}return _0x593c5e;}['_getSuggestionBlocksForListStyle'](){const _0x69aee8=this['editor']['plugins']['get']('LegacyListUtils');let _0x3107ea=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3107ea[0x0]?.['is']('element','listItem')&&_0x3107ea['unshift'](..._0x69aee8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3107ea[_0x3107ea['length']-0x1]?.['is']('element','listItem')&&_0x3107ea['push'](..._0x69aee8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3107ea=[...new Set(_0x3107ea)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3107ea=_0x3107ea['filter'](_0x1b725e=>_0x1b725e['is']('element','listItem'))),_0x3107ea;}['_getSuggestionBlocks'](_0x5cb6dc){const _0x248628=this['editor']['plugins']['get']('LegacyListUtils');let _0x3b4b2b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5cb6dc)['map'](_0xe19103=>{const _0x4d1440=this['editor']['model']['createPositionAt'](_0xe19103,0x0);return[..._0x248628['getSiblingNodes'](_0x4d1440,'backward'),..._0x248628['getSiblingNodes'](_0x4d1440,'forward')];})['flat']();return _0x3b4b2b=[...new Set(_0x3b4b2b)],_0x3b4b2b;}['_getTranslationKeyForListStyle'](_0x46496a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x46496a)||'default')['toUpperCase']()+'_LIST_'+_0x46496a['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x27110f{['afterInit'](){const _0x5c68ba=this['editor'];if(!_0x5c68ba['plugins']['has']('MediaEmbedEditing'))return;const _0xee8b2d=_0x5c68ba['plugins']['get']('TrackChangesEditing'),_0xcd3d34=_0x5c68ba['locale'];_0xee8b2d['enableCommand']('mediaEmbed'),_0xee8b2d['descriptionFactory']['registerElementLabel']('media',_0x49bc36=>o(_0xcd3d34,'ELEMENT_MEDIA',_0x49bc36));}}class bt extends _0x27110f{['afterInit'](){const _0x50cc63=this['editor'];_0x50cc63['plugins']['has']('MentionEditing')&&_0x50cc63['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x27110f{['afterInit'](){const _0x36b26b=this['editor'];if(!_0x36b26b['plugins']['has']('MergeFieldsEditing'))return;const _0xe90bd9=_0x36b26b['plugins']['get']('TrackChangesEditing'),_0x4a02f9=_0x36b26b['locale'];_0xe90bd9['enableCommand']('insertMergeField'),_0xe90bd9['enableCommand']('insertMergeFieldBlock'),_0xe90bd9['enableCommand']('insertMergeFieldImage'),_0xe90bd9['descriptionFactory']['registerElementLabel']('mergeField',_0xc13dd4=>o(_0x4a02f9,'ELEMENT_MERGE_FIELD',_0xc13dd4)),_0xe90bd9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x37f6d1=>o(_0x4a02f9,'ELEMENT_MERGE_FIELD',_0x37f6d1)),_0xe90bd9['descriptionFactory']['registerDescriptionCallback'](_0x31e4ec=>{if('insertion'!=_0x31e4ec['type']&&'deletion'!=_0x31e4ec['type'])return;const _0x5167f4=_0x31e4ec['getContainedElement']();if(null==_0x5167f4)return;const _0xb3d590=_0x36b26b['plugins']['get']('MergeFieldsEditing');let _0x273e97;switch(_0xb3d590['getMergeFieldType'](_0x5167f4)){case null:return;case'image':{const _0x59721a=_0xb3d590['unwrapAffixes'](_0x5167f4['getAttribute']('src'));_0x273e97=_0xb3d590['getLabel'](_0x59721a)||_0x59721a;break;}default:{const _0x437a82=_0x5167f4['getAttribute']('id');_0x273e97=_0xb3d590['getLabel'](_0x437a82)||_0x437a82;break;}}return'insertion'==_0x31e4ec['type']?{'type':'insertion','content':o(_0x4a02f9,'*Insert:*\x20%0','\x22'+_0x273e97+'\x22\x20'+o(_0x4a02f9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4a02f9,'*Remove:*\x20%0','\x22'+_0x273e97+'\x22\x20'+o(_0x4a02f9,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x27110f{['afterInit'](){const _0x461479=this['editor'],_0x3545cc=_0x461479['plugins']['get']('TrackChangesEditing');_0x461479['plugins']['has']('MultiLevelList')&&(_0x3545cc['enableDefaultAttributesIntegration']('multiLevelList'),_0x3545cc['descriptionFactory']['registerDescriptionCallback'](_0x58a64c=>this['handleDescriptions'](_0x58a64c)));}['handleDescriptions'](_0x135ef8){const _0x9f4df=this['editor']['locale'],{data:_0x4b2400}=_0x135ef8,_0x13f48d={'type':'format','content':''};if(_0x4b2400&&'listMarkerStyle'==_0x4b2400['key']){if(!_0x4b2400['oldValue'])return{'type':'format','content':o(_0x9f4df,'*Set\x20format:*\x20%0',o(_0x9f4df,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4b2400['newValue']+')'};if(!_0x4b2400['newValue']){let _0x3b31ef=_0x135ef8['head'];for(;_0x3b31ef;){if(_0x3b31ef['data']&&'listType'==_0x3b31ef['data']['key']&&_0x3b31ef['data']['newValue'])return _0x13f48d;_0x3b31ef=_0x3b31ef['next'];}return{'type':'format','content':o(_0x9f4df,'*Remove\x20format:*\x20%0',o(_0x9f4df,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4b2400['oldValue']+')'};}}}}class St extends _0x27110f{['afterInit'](){const _0x3f7a75=this['editor'];if(!_0x3f7a75['plugins']['has']('PageBreakEditing'))return;_0x3f7a75['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x38e8ce=_0x3f7a75['plugins']['get']('TrackChangesEditing'),_0x1bf9e4=_0x3f7a75['locale'];_0x38e8ce['descriptionFactory']['registerElementLabel']('pageBreak',_0x5d91dc=>o(_0x1bf9e4,'ELEMENT_PAGE_BREAK',_0x5d91dc));}}class It extends _0x27110f{['afterInit'](){const _0x300de6=this['editor'];if(!_0x300de6['plugins']['has']('Paragraph'))return;const _0x45b91e=_0x300de6['locale'],_0x81b2f3=_0x300de6['plugins']['get']('TrackChangesEditing');_0x81b2f3['descriptionFactory']['registerElementLabel']('paragraph',_0x22414c=>o(_0x45b91e,'ELEMENT_PARAGRAPH',_0x22414c)),_0x81b2f3['enableDefaultAttributesIntegration']('paragraph'),_0x81b2f3['enableCommand']('insertParagraph');const _0x3bf5eb=_0x81b2f3['descriptionFactory'];_0x3bf5eb['registerDescriptionCallback'](_0x227e0e=>{if('insertion'!==_0x227e0e['type'])return;const {start:_0x35c8c2,end:_0x3950fc}=_0x227e0e['getFirstRange']();if(!_0x35c8c2['isTouching'](_0x3950fc)||!_0x35c8c2['nodeAfter'])return;const _0x40fa0c=_0x300de6['model']['schema'],_0x7945c8=_0x35c8c2['nodeAfter'];return _0x40fa0c['isBlock'](_0x7945c8)&&!_0x40fa0c['isLimit'](_0x7945c8)&&_0x40fa0c['checkChild'](_0x7945c8,'$text')?{'type':'insertion','content':o(_0x45b91e,'*Insert:*\x20%0',_0x3bf5eb['getItemLabel'](_0x7945c8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ed63b=this['editor'],_0x50dddd=_0x4ed63b['locale'];_0x4ed63b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18573c=>{if('formatBlock'!=_0x18573c['type'])return;const {data:_0x5617be}=_0x18573c;return _0x5617be&&'paragraph'==_0x5617be['commandName']?{'type':'format','content':o(_0x50dddd,'*Change\x20to:*\x20%0',o(_0x50dddd,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x27110f{['afterInit'](){const _0x5c98f8=this['editor'];_0x5c98f8['commands']['get']('replaceSource')&&_0x5c98f8['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x27110f{['afterInit'](){const _0x2b07c1=this['editor'];if(!_0x2b07c1['plugins']['has']('RemoveFormatEditing'))return;_0x2b07c1['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x368df1=this['editor'];_0x368df1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb10cd6=>{if('formatBlock'!=_0xb10cd6['type']&&'formatInline'!=_0xb10cd6['type'])return;const {data:_0x457b50}=_0xb10cd6;return _0x457b50&&'removeFormat'==_0x457b50['commandName']?{'type':'format','content':o(_0x368df1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x27110f{['afterInit'](){const _0x52a725=this['editor'];if(!_0x52a725['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x537898=_0x52a725['plugins']['get']('TrackChangesEditing');_0x537898['enableCommand']('goToPreviousRestrictedEditingException'),_0x537898['enableCommand']('goToNextRestrictedEditingException');const _0xe77c02=_0x52a725['plugins']['get']('RestrictedEditingModeEditing');_0xe77c02['enableCommand']('trackChanges'),_0xe77c02['enableCommand']('acceptSuggestion'),_0xe77c02['enableCommand']('discardSuggestion'),_0xe77c02['enableCommand']('acceptAllSuggestions'),_0xe77c02['enableCommand']('discardAllSuggestions'),_0xe77c02['enableCommand']('acceptSelectedSuggestions'),_0xe77c02['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x27110f{['afterInit'](){const _0xdbe39d=this['editor'];if(!_0xdbe39d['plugins']['has']('ShiftEnter'))return;const _0xe89e1c=_0xdbe39d['plugins']['get']('TrackChangesEditing');_0xe89e1c['enableCommand']('shiftEnter'),_0xe89e1c['descriptionFactory']['registerElementLabel']('softBreak',_0x23eaef=>o(_0xdbe39d['locale'],'ELEMENT_LINE_BREAK',_0x23eaef));}}function cn(_0x2b3eab,_0x55e0d1,_0xac0dca){const _0x329235=[];for(const _0x46d1bd of _0x55e0d1['getItems']())_0x46d1bd['hasAttribute'](_0x2b3eab)&&_0x329235['push'](_0xac0dca['createRangeOn'](_0x46d1bd));return _0x329235;}class $t extends _0x27110f{['afterInit'](){const _0x26eb07=this['editor'],_0x25110d=_0x26eb07['plugins']['get']('TrackChangesEditing');_0x26eb07['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x25110d['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x1442cb=this['editor'],_0x156cf9=_0x1442cb['model'],_0x17302c=_0x1442cb['locale'],_0x23a25e=_0x1442cb['plugins']['get']('TrackChangesEditing'),_0x5398ef='restrictedEditingException',_0x1833a5=_0x1442cb['commands']['get'](_0x5398ef);_0x23a25e['enableCommand'](_0x5398ef,(_0xab4a65,_0x4fce83={})=>{const _0x3cf3a2=_0x156cf9['document']['selection'];if(_0x3cf3a2['isCollapsed'])return void _0xab4a65(_0x4fce83);const _0xb4866c=void 0x0!==_0x4fce83['forceValue']?_0x4fce83['forceValue']:!_0x1833a5['value'];_0x156cf9['change'](()=>{const _0x5bc694=Array['from'](_0x3cf3a2['getRanges']());for(const _0x20990a of _0x5bc694){const _0x239cb2=_0xb4866c?[_0x20990a]:cn(_0x5398ef,_0x20990a,_0x156cf9);for(const _0x1a8f32 of _0x239cb2)_0x23a25e['markInlineFormat'](_0x1a8f32,{'commandName':_0x5398ef,'commandParams':[{'forceValue':_0xb4866c}]});}});}),_0x23a25e['descriptionFactory']['registerDescriptionCallback'](_0xebbb8b=>{if('formatBlock'!=_0xebbb8b['type']&&'formatInline'!=_0xebbb8b['type'])return;const {data:_0x18cc92}=_0xebbb8b;return _0x18cc92&&_0x18cc92['commandName']==_0x5398ef?_0x18cc92['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17302c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x17302c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x9aac61=this['editor'],_0x3bae7d=_0x9aac61['locale'],_0x4c7328=_0x9aac61['plugins']['get']('TrackChangesEditing'),_0x5baf75='restrictedEditingExceptionBlock',_0x1f0ef5=this['editor']['commands']['get'](_0x5baf75);_0x4c7328['enableCommand'](_0x5baf75,(_0x332eb6,_0x1bb126={})=>{const _0x16a8bb=this['editor']['model']['document']['selection'],_0x4297ee=_0x1bb126&&void 0x0!==_0x1bb126['forceValue']?_0x1bb126['forceValue']:!_0x1f0ef5['value'];let _0x3afb9a=[];if(_0x4297ee){const _0x4bd164=Array['from'](_0x16a8bb['getSelectedBlocks']())['filter'](_0x537a1e=>function(_0x205730){return!!_0x205730['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x537a1e)||function(_0x3a14b2,_0x2c1469){const _0x4c9501=_0x2c1469['createContext'](_0x3a14b2['parent']);if(!_0x2c1469['checkChild'](_0x4c9501,'restrictedEditingException'))return!0x1;if(!_0x2c1469['checkChild'](_0x4c9501['push']('restrictedEditingException'),_0x3a14b2))return!0x1;return!0x0;}(_0x537a1e,this['editor']['model']['schema']));_0x3afb9a=to(_0x4bd164,_0x9aac61['model']);}else{const _0x546839=Array['from'](_0x16a8bb['getSelectedBlocks']())['map'](_0x58c039=>function(_0x185f38){let _0x745fdb=_0x185f38;for(;_0x745fdb['parent'];){if('restrictedEditingException'==_0x745fdb['parent']['name'])return _0x745fdb;_0x745fdb=_0x745fdb['parent'];}return null;}(_0x58c039))['filter'](_0x4597a3=>!!_0x4597a3);_0x3afb9a=to(_0x546839,_0x9aac61['model']);}_0x9aac61['model']['change'](()=>{for(const _0x4560fa of _0x3afb9a)_0x4c7328['markBlockFormat'](_0x4560fa,{'commandName':_0x5baf75,'commandParams':[{'forceValue':_0x4297ee}]});});}),_0x4c7328['descriptionFactory']['registerDescriptionCallback'](_0x544aad=>{const {data:_0x2fe0d7}=_0x544aad;if(_0x2fe0d7&&_0x2fe0d7['commandName']==_0x5baf75)return _0x2fe0d7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bae7d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3bae7d,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x27110f{['afterInit'](){const _0x3b3ef5=this['editor'];if(!_0x3b3ef5['plugins']['has']('Style')||!_0x3b3ef5['plugins']['has']('DataSchema'))return;const _0x191ae6=_0x3b3ef5['plugins']['get']('TrackChangesEditing'),_0x3915ea=_0x3b3ef5['locale'],_0x30e9bc=_0x3b3ef5['config']['get']('style')||{},_0x458c33=_0x3b3ef5['plugins']['get']('GeneralHtmlSupport'),_0x1aee61=_0x3b3ef5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3b3ef5['plugins']['get']('DataSchema'),_0x30e9bc['definitions']);_0x191ae6['enableDefaultAttributesIntegration']('style');const _0x35fbca=new Set();for(const _0x19e2be of _0x1aee61['block']){const _0x3c87c5=_0x458c33['getGhsAttributeNameForElement'](_0x19e2be['element']);_0x35fbca['add'](_0x3c87c5);}const _0x279dfa=new Set();for(const _0x367a3e of _0x1aee61['inline']){const _0x39c596=_0x458c33['getGhsAttributeNameForElement'](_0x367a3e['element']);_0x279dfa['add'](_0x39c596);for(const _0xbb01f4 of _0x367a3e['ghsAttributes'])_0x279dfa['add'](_0xbb01f4);}for(const _0x1627db of _0x35fbca)_0x191ae6['descriptionFactory']['registerAttributeLabel'](_0x1627db,o(_0x3915ea,'FORMAT_STYLE'));for(const _0x4e433b of _0x279dfa)_0x191ae6['descriptionFactory']['registerAttributeLabel'](_0x4e433b,o(_0x3915ea,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x292eda=this['editor'],_0x434d96=_0x292eda['locale'];_0x292eda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41eb0c=>{if('formatBlock'!=_0x41eb0c['type']&&'formatInline'!=_0x41eb0c['type'])return;const {data:_0x4874f0}=_0x41eb0c;return _0x4874f0&&'style'===_0x4874f0['commandName']?_0x4874f0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x434d96,'*Set\x20format:*\x20%0',_0x4874f0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x434d96,'*Remove\x20format:*\x20%0',_0x4874f0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x27110f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x32fb14){super(_0x32fb14),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1a8a02=this['editor'],_0xb8dc2e=_0x1a8a02['model']['document']['selection'];if(!_0x1a8a02['plugins']['has']('TableEditing'))return;const _0x36b296=_0x1a8a02['locale'],_0x4dc01c=_0x1a8a02['plugins']['get']('TrackChangesEditing'),_0x54ca47=_0x1a8a02['plugins']['get']('TableUtils');_0x4dc01c['descriptionFactory']['registerElementLabel']('table',_0x4c37e3=>o(_0x36b296,'ELEMENT_TABLE',_0x4c37e3)),this['_setupColumnsRowsFixing'](),_0x4dc01c['enableCommand']('insertTable'),_0x4dc01c['enableCommand']('selectTableRow'),_0x4dc01c['enableCommand']('selectTableColumn');for(const _0x30e665 of['insertTableRowAbove','insertTableRowBelow']){const _0x178984=_0x1a8a02['commands']['get'](_0x30e665);_0x4dc01c['enableCommand'](_0x30e665,_0x2538cc=>{_0x1a8a02['model']['change'](_0x356259=>{_0x2538cc();const _0x5a7cd8='above'===_0x178984['order'],_0x1061c7=_0x54ca47['getSelectionAffectedTableCells'](_0xb8dc2e),_0x13c24d=_0x54ca47['getRowIndexes'](_0x1061c7),_0x484b82=_0x5a7cd8?_0x13c24d['first']-0x1:_0x13c24d['last']+0x1,_0xeff235=_0x1061c7[0x0]['findAncestor']('table'),_0x5defb2=_0x54ca47['createTableWalker'](_0xeff235,{'startRow':_0x484b82,'endRow':_0x484b82}),_0xc5d172=Array['from'](_0x5defb2)['map'](_0x31352a=>_0x356259['createRangeOn'](_0x31352a['cell']));_0x4dc01c['markMultiRangeInsertion'](_0xc5d172,'tableRow');});});}for(const _0x562f6a of['insertTableColumnLeft','insertTableColumnRight']){const _0x359dd7=_0x1a8a02['commands']['get'](_0x562f6a);_0x4dc01c['enableCommand'](_0x562f6a,_0x160c4f=>{_0x1a8a02['model']['change'](_0x4618b9=>{_0x160c4f();const _0x567434='left'===_0x359dd7['order'],_0x2be293=_0x54ca47['getSelectionAffectedTableCells'](_0xb8dc2e),_0x3378a0=_0x54ca47['getColumnIndexes'](_0x2be293),_0x22c7c4=_0x567434?_0x3378a0['first']-0x1:_0x3378a0['last']+0x1,_0x389f5c=_0x2be293[0x0]['findAncestor']('table'),_0x4e71b7=_0x54ca47['createTableWalker'](_0x389f5c,{'startRow':0x0,'column':_0x22c7c4,'includeAllSlots':!0x1}),_0x143939=Array['from'](_0x4e71b7)['map'](_0x4ad27e=>_0x4618b9['createRangeOn'](_0x4ad27e['cell']));_0x4dc01c['markMultiRangeInsertion'](_0x143939,'tableColumn');});});}for(const _0x617e3c of['removeTableRow','removeTableColumn']){const _0x1dc49d=_0x617e3c['substr'](0xb),_0x386563=_0x1dc49d['toLowerCase'](),_0x1cb35d=_0x386563['substr'](0x0,0x3)+'span',_0x27c5ec='table'+_0x1dc49d,_0xd68ad8='min'+_0x1dc49d,_0x496a89='max'+_0x1dc49d;_0x4dc01c['enableCommand'](_0x617e3c,()=>{_0x1a8a02['model']['change'](_0x367a28=>{const _0x1623a6=_0x54ca47['getSelectionAffectedTableCells'](_0xb8dc2e),_0x23059c=_0x1623a6[0x0]['findAncestor']('table');let _0x228ac2;if('removeTableRow'==_0x617e3c){const _0x496c6d=_0x54ca47['getRowIndexes'](_0x1623a6);_0x228ac2={'startRow':_0x496c6d['first'],'endRow':_0x496c6d['last'],'includeAllSlots':!0x0};}else{const _0x47ac25=_0x54ca47['getColumnIndexes'](_0x1623a6);_0x228ac2={'startColumn':_0x47ac25['first'],'endColumn':_0x47ac25['last'],'includeAllSlots':!0x0};}const _0x22b5fd=_0x54ca47['createTableWalker'](_0x23059c,_0x228ac2),_0x248039=Array['from'](_0x22b5fd)['map'](({cell:_0x323968})=>_0x323968),_0x10b9c9=_e(_0x248039['filter'](_0x40ac6f=>_0x40ac6f['hasAttribute'](_0x1cb35d))),_0x3eee44=_e(_0x248039['filter'](_0x4aaeb1=>!_0x4aaeb1['hasAttribute'](_0x1cb35d)))['map'](_0x6e0ad8=>_0x367a28['createRangeOn'](_0x6e0ad8)),_0x4e4d87=_0x4dc01c['markMultiRangeDeletion'](_0x3eee44,_0x27c5ec);if(_0x4e4d87&&('tableRow'==_0x4e4d87['subType']||'tableColumn'==_0x4e4d87['subType'])){const _0x32df5f=this['_getSuggestionCoords'](_0x4e4d87);for(const _0x4ee8fb of _0x10b9c9){const _0x3cfbad=_0x367a28['createRangeOn'](_0x4ee8fb),_0x30f011=_0x54ca47['getCellLocation'](_0x4ee8fb),_0x2804f3=_0x4ee8fb['getAttribute'](_0x1cb35d)-0x1,_0x4d516d=_0x32df5f[_0xd68ad8],_0x2a8325=_0x32df5f[_0x496a89];_0x4d516d<=_0x30f011[_0x386563]&&_0x30f011[_0x386563]+_0x2804f3<=_0x2a8325&&_0x4e4d87['addRange'](_0x3cfbad);}}});});}function _0x444411(_0xe4fe43){const _0x501800=Array['from'](_0xb8dc2e['getRanges']())['map'](_0x5ef175=>_0x6f966d['fromRange'](_0x5ef175));_0x1a8a02['model']['change'](_0xa2713c=>{const _0x48a128=_0xa2713c['batch'];_0xe4fe43=_0xe4fe43['filter'](_0x542cb9=>'$graveyard'!=_0x542cb9['root']['rootName']),_0xa2713c['setSelection'](_0xe4fe43),_0x1a8a02['commands']['get']('removeTableRow')['refresh'](),_0x1a8a02['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1a8a02['model']['enqueueChange'](()=>{_0x1a8a02['model']['enqueueChange'](_0x48a128,_0x1d0b49=>{const _0x344f50=_0x501800['filter'](_0x56ec82=>'$graveyard'!=_0x56ec82['root']['rootName']);_0x344f50['length']>0x0&&_0x1d0b49['setSelection'](_0x344f50);for(const _0xc95999 of _0x501800)_0xc95999['detach']();});});});}function _0x3a3fde(_0x4d4a24){_0x1a8a02['model']['change'](_0x396108=>{const _0x30c693=Array['from'](_0xb8dc2e['getRanges']())['map'](_0x212980=>_0x6f966d['fromRange'](_0x212980)),_0x27c5bd=[];for(const _0x281120 of _0x4d4a24)for(const _0x25ec34 of _0x281120['getItems']({'shallow':!0x0}))_0x27c5bd['push'](_0x25ec34);for(const _0x207708 of _0x27c5bd)'$graveyard'!=_0x207708['root']['rootName']&&(_0x396108['setSelection'](_0x396108['createPositionAt'](_0x207708,0x0)),_0x1a8a02['commands']['get']('removeTableColumn')['refresh'](),_0x1a8a02['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4f08d5=_0x30c693['filter'](_0x2342a4=>'$graveyard'!=_0x2342a4['root']['rootName']);_0x4f08d5['length']>0x0&&_0x396108['setSelection'](_0x4f08d5);for(const _0x757509 of _0x30c693)_0x757509['detach']();});}function _0x29ab20(_0x18bd66,_0x1d2849){return _0x1d2849['every'](_0x469f76=>_0x18bd66['some'](_0x2e5b4e=>_0x2e5b4e['end']['isEqual'](_0x469f76['start'])||_0x469f76['end']['isEqual'](_0x2e5b4e['start'])));}function _0x543824(_0x5ab73f,_0x45c4b9){return!_0x5ab73f['some'](_0xe051e=>_0x45c4b9['some'](_0x4dd087=>_0xe051e['isIntersecting'](_0x4dd087)))&&_0x5ab73f['some'](_0x4c6f02=>_0x45c4b9['some'](_0x261e92=>_0x4c6f02['end']['isTouching'](_0x261e92['start'])));}_0x4dc01c['descriptionFactory']['registerDescriptionCallback'](_0xf0c4aa=>{if('insertion'!=_0xf0c4aa['type']&&'deletion'!=_0xf0c4aa['type'])return;const _0x5e387a=_0xf0c4aa['getContainedElement']();if(null!=_0x5e387a&&_0x5e387a['is']('element','table')){if('insertion'==_0xf0c4aa['type']){const _0x29e630=_0xf0c4aa['getItems']()['filter'](_0x3ce978=>_0x3ce978['is']('$textProxy'))['map'](_0xfde204=>_0xfde204['data']);if(_0x29e630['length'])return{'type':'insertion','content':o(_0x36b296,'*Insert:*\x20%0',o(_0x36b296,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x29e630['join']('\x20')+'\x22'))};}if('deletion'==_0xf0c4aa['type']){const _0x1e7c4e=_0xf0c4aa['getItems']()['filter'](_0x381b68=>_0x381b68['is']('$textProxy'))['map'](_0x3b1011=>_0x3b1011['data']);if(_0x1e7c4e['length'])return{'type':'deletion','content':o(_0x36b296,'*Remove:*\x20%0',o(_0x36b296,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1e7c4e['join']('\x20')+'\x22'))};}}}),_0x4dc01c['descriptionFactory']['registerDescriptionCallback'](_0x3a5e25=>{if('tableRow'==_0x3a5e25['subType']){const _0x73d002=_0x3a5e25['getItems']()['filter'](_0x512976=>_0x512976['is']('$textProxy'))['map'](_0xac5a97=>_0xac5a97['data']),_0x4f3e56=this['_getSuggestionCoords'](_0x3a5e25),_0x3eaac8=_0x4f3e56['maxRow']-_0x4f3e56['minRow']+0x1;if('insertion'==_0x3a5e25['type'])return _0x73d002['length']?{'type':'insertion','content':o(_0x36b296,'*Insert:*\x20%0',o(_0x36b296,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3eaac8,'\x22'+_0x73d002['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36b296,'*Insert:*\x20%0',o(_0x36b296,'ELEMENT_TABLE_ROW',_0x3eaac8))};if('deletion'==_0x3a5e25['type'])return _0x73d002['length']?{'type':'deletion','content':o(_0x36b296,'*Remove:*\x20%0',o(_0x36b296,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3eaac8,'\x22'+_0x73d002['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36b296,'*Remove:*\x20%0',o(_0x36b296,'ELEMENT_TABLE_ROW',_0x3eaac8))};}if('tableColumn'==_0x3a5e25['subType']){const _0x48594a=_0x3a5e25['getItems']()['filter'](_0x4b273d=>_0x4b273d['is']('$textProxy'))['map'](_0x548395=>_0x548395['data']),_0x361813=this['_getSuggestionCoords'](_0x3a5e25),_0x5e9f8a=_0x361813['maxColumn']-_0x361813['minColumn']+0x1;if('insertion'==_0x3a5e25['type'])return _0x48594a['length']?{'type':'insertion','content':o(_0x36b296,'*Insert:*\x20%0',o(_0x36b296,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e9f8a,'\x22'+_0x48594a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x36b296,'*Insert:*\x20%0',o(_0x36b296,'ELEMENT_TABLE_COLUMN',_0x5e9f8a))};if('deletion'==_0x3a5e25['type'])return _0x48594a['length']?{'type':'deletion','content':o(_0x36b296,'*Remove:*\x20%0',o(_0x36b296,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e9f8a,'\x22'+_0x48594a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x36b296,'*Remove:*\x20%0',o(_0x36b296,'ELEMENT_TABLE_COLUMN',_0x5e9f8a))};}}),_0x4dc01c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x444411),_0x4dc01c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x444411),_0x4dc01c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3a3fde),_0x4dc01c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3a3fde),_0x4dc01c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x29ab20),_0x4dc01c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x29ab20),_0x4dc01c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x543824),_0x4dc01c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x543824);}['_acceptFormatSuggestionCallbackFactory'](){const _0x997357=this['editor'],_0x41e60c=_0x997357['model']['document']['selection'];return(_0x1ea554,_0x2dcdd0)=>{_0x997357['model']['change'](_0x47a6d0=>{const {commandName:_0x3e5f3d,commandParams:_0x4a6e06}=_0x2dcdd0;let _0x1e925b=_0x1ea554[0x0]['end']['nodeBefore'];_0x4a6e06&&_0x4a6e06[0x0]&&!0x1===_0x4a6e06[0x0]['forceValue']&&(_0x1e925b=_0x1ea554[0x0]['start']['nodeAfter']);const _0x8b584e=_0x47a6d0['createRangeIn'](_0x1e925b);if('$graveyard'==_0x8b584e['root']['rootName'])return;const _0x5dbb3b=Array['from'](_0x41e60c['getRanges']())['map'](_0x3bfb86=>_0x6f966d['fromRange'](_0x3bfb86));_0x47a6d0['setSelection'](_0x8b584e),_0x997357['commands']['get'](_0x3e5f3d)['refresh'](),_0x4a6e06['push']({'forceDefaultExecution':!0x0}),_0x997357['execute'](_0x3e5f3d,..._0x4a6e06);const _0x216bb8=_0x5dbb3b['filter'](_0x4d5b4f=>'$graveyard'!=_0x4d5b4f['root']['rootName']);_0x216bb8['length']>0x0&&_0x47a6d0['setSelection'](_0x216bb8);for(const _0x202fcc of _0x5dbb3b)_0x202fcc['detach']();});};}['_getCoordsForCells'](_0x50d94a){const _0x37309a=this['editor']['plugins']['get']('TableUtils');let _0xa1d629=Number['MAX_SAFE_INTEGER'],_0x4d5323=Number['MIN_SAFE_INTEGER'],_0x220e02=Number['MAX_SAFE_INTEGER'],_0x39e092=Number['MIN_SAFE_INTEGER'];for(const _0x1acd71 of _0x50d94a){if('$graveyard'==_0x1acd71['root']['rootName'])continue;const {row:_0x368f46,column:_0x4d4cec}=_0x37309a['getCellLocation'](_0x1acd71),_0x3942c7=_0x1acd71['hasAttribute']('rowspan')?_0x1acd71['getAttribute']('rowspan')-0x1:0x0,_0x37b875=_0x1acd71['hasAttribute']('colspan')?_0x1acd71['getAttribute']('colspan')-0x1:0x0;_0xa1d629=_0x368f46<_0xa1d629?_0x368f46:_0xa1d629,_0x4d5323=_0x368f46+_0x3942c7>_0x4d5323?_0x368f46+_0x3942c7:_0x4d5323,_0x220e02=_0x4d4cec<_0x220e02?_0x4d4cec:_0x220e02,_0x39e092=_0x4d4cec+_0x37b875>_0x39e092?_0x4d4cec+_0x37b875:_0x39e092;}return{'minRow':_0xa1d629,'maxRow':_0x4d5323,'minColumn':_0x220e02,'maxColumn':_0x39e092};}['_setupColumnsRowsFixing'](){const _0x1668c9=this['editor'],_0x2f52d5=_0x1668c9['plugins']['get']('TrackChangesEditing'),_0x37f210=_0x1668c9['plugins']['get']('TableUtils');_0x1668c9['model']['document']['on']('change:data',()=>{const _0x22d484=Array['from'](_0x1668c9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x121272,data:_0xefd822}of _0x22d484){const {group:_0x39724a,id:_0x5b3326,subType:_0x43a417}=_0x2f52d5['_splitMarkerName'](_0x121272);if('suggestion'!=_0x39724a)continue;if(null!=_0xefd822['oldRange'])continue;const _0x2c2b86=_0x2f52d5['getSuggestion'](_0x5b3326);this['_tablePostFixingSubtypes']['includes'](_0x43a417)&&this['_tableSuggestions']['add'](_0x2c2b86);}},{'priority':'low'});const _0x2c44e9=(_0x4b138a,_0x4e6f05)=>{let _0x17c2c2=!0x1;const _0x149ff3=_0x4e6f05['createRangeOn'](_0x4b138a),_0x255bbe=_0x4b138a['findAncestor']('table'),_0x287be2=_0x37f210['getCellLocation'](_0x4b138a);for(const _0xc642f8 of this['_tableSuggestions']){const _0x3e31b7=_0xc642f8['subType'],_0x48f30d=_0x3e31b7['startsWith']('tablePaste'),_0x5d2709=_0x3e31b7['substr'](_0x48f30d?0xa:0x5),_0x49dfac=_0x5d2709['toLowerCase'](),_0x4d07c8=_0x49dfac['substr'](0x0,0x3)+'span',_0x2ea527='min'+_0x5d2709,_0x4023d4='max'+_0x5d2709;if(!_0xc642f8['isInContent'])continue;if(_0x255bbe!=_0xc642f8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xc642f8['isIntersectingWithRange'](_0x149ff3))continue;const _0x43f9b6=_0x4b138a['hasAttribute'](_0x4d07c8)?_0x4b138a['getAttribute'](_0x4d07c8)-0x1:0x0,_0x34065f=this['_getSuggestionCoords'](_0xc642f8),_0x5a15da=_0x34065f[_0x2ea527],_0x383598=_0x34065f[_0x4023d4];_0x5a15da<=_0x287be2[_0x49dfac]&&_0x287be2[_0x49dfac]+_0x43f9b6<=_0x383598&&(_0xc642f8['addRange'](_0x149ff3),_0x17c2c2=!0x0);}return _0x17c2c2;};_0x1668c9['model']['document']['registerPostFixer'](_0x77bcbf=>{let _0x114491=!0x1;for(const _0x384dc0 of _0x1668c9['model']['document']['differ']['getChanges']())if('insert'==_0x384dc0['type']){if('tableRow'==_0x384dc0['name']){for(const _0x449678 of _0x384dc0['position']['nodeAfter']['getChildren']())_0x114491=_0x114491||_0x2c44e9(_0x449678,_0x77bcbf);}else'tableCell'==_0x384dc0['name']&&(_0x114491=_0x114491||_0x2c44e9(_0x384dc0['position']['nodeAfter'],_0x77bcbf));}return _0x114491;});}['_getSuggestionCoords'](_0x26e948){return this['_getCoordsForCells'](_0x26e948['getRanges']()['map'](_0x4aa502=>_0x4aa502['start']['nodeAfter']));}}function _e(_0x20ec98){return Array['from'](new Set(_0x20ec98)['values']());}class Bt extends _0x27110f{static get['requires'](){return[Dt];}['afterInit'](){const _0xd75f9b=this['editor'],_0x4a7ec0=_0xd75f9b['model']['document']['selection'],_0x29dba6=_0xd75f9b['locale'];if(!_0xd75f9b['plugins']['has']('TableEditing'))return;const _0x56448a=_0xd75f9b['plugins']['get']('TrackChangesEditing'),_0x355c37=_0xd75f9b['plugins']['get']('TableUtils'),_0x23c3e3=_0xd75f9b['plugins']['get'](Dt);_0x23c3e3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x56448a['enableCommand']('mergeTableCells',()=>{const _0x3f8cd0=_0x355c37['getSelectionAffectedTableCells'](_0xd75f9b['model']['document']['selection']);_0xd75f9b['model']['change'](()=>{_0x56448a['markMultiRangeBlockFormat'](_0x3f8cd0,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xd75f9b['commands']['get']('mergeTableCells')['on']('execute',(_0x1641fe,_0x512638)=>{_0xd75f9b['commands']['get']('trackChanges')['value']&&(_0x512638['length']>0x0&&_0x512638[_0x512638['length']-0x1]&&_0x512638[_0x512638['length']-0x1]['forceDefaultExecution']||_0x56448a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1641fe['stop']());},{'priority':'highest'});for(const _0x3a66ce of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2580d0=_0xd75f9b['commands']['get'](_0x3a66ce);_0x56448a['enableCommand'](_0x3a66ce,()=>{const _0x426951=_0xd75f9b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4af5ef=>_0x4af5ef['is']('element','tableCell')),_0x445ddd=_0x2580d0['value'];_0xd75f9b['model']['change'](()=>{_0x56448a['markMultiRangeBlockFormat']([_0x426951,_0x445ddd],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x625fc5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4688f3=_0xd75f9b['commands']['get'](_0x625fc5);_0x56448a['enableCommand'](_0x625fc5,()=>{const _0x36d36c=_0x355c37['getSelectionAffectedTableCells'](_0xd75f9b['model']['document']['selection'])[0x0],_0x3f4366=_0x36d36c['findAncestor']('table'),{column:_0x2a9b33,row:_0x223721}=_0x355c37['getCellLocation'](_0x36d36c);let _0x815e47=[];if('horizontally'==_0x4688f3['direction']){const _0x1625f7=_0x355c37['createTableWalker'](_0x3f4366,{'startRow':_0x223721,'endRow':_0x223721,'includeAllSlots':!0x0});_0x815e47=Array['from'](_0x1625f7)['map'](_0x3287bf=>_0x3287bf['cell']);}else{const _0x5a8f66=_0x355c37['createTableWalker'](_0x3f4366,{'column':_0x2a9b33,'includeAllSlots':!0x0});_0x815e47=Array['from'](_0x5a8f66)['map'](_0x84ea0a=>_0x84ea0a['cell']);}_0xd75f9b['model']['change'](_0x16b764=>{_0x56448a['markBlockFormat'](_0x16b764['createRangeOn'](_0x36d36c),{'commandName':_0x625fc5,'commandParams':[]},_0x815e47,_0x625fc5);});});}_0x56448a['descriptionFactory']['registerDescriptionCallback'](_0x280d7c=>{if('formatBlock'!=_0x280d7c['type']&&'formatInline'!=_0x280d7c['type'])return;const {data:_0x3680ec}=_0x280d7c;return _0x3680ec&&'mergeTableCells'==_0x3680ec['commandName']?{'type':'format','content':o(_0x29dba6,'*Merge\x20cells*')}:void 0x0;}),_0x56448a['descriptionFactory']['registerDescriptionCallback'](_0x80c1b5=>{if('formatBlock'!=_0x80c1b5['type']&&'formatInline'!=_0x80c1b5['type'])return;const {data:_0x2a1e35}=_0x80c1b5;return _0x2a1e35?'splitTableCellVertically'==_0x2a1e35['commandName']?{'type':'format','content':o(_0x29dba6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2a1e35['commandName']?{'type':'format','content':o(_0x29dba6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x529157=_0x23c3e3['_acceptFormatSuggestionCallbackFactory']();for(const _0x308c42 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x56448a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x308c42,'accept',_0x529157);for(const _0xee9cf1 of['splitTableCellVertically','splitTableCellHorizontally'])_0x56448a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xee9cf1,'accept',_0x529157);_0x56448a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x53358e=>{_0xd75f9b['model']['change'](_0x317bfa=>{const _0x529904=Array['from'](_0x4a7ec0['getRanges']())['map'](_0x187f5d=>_0x6f966d['fromRange'](_0x187f5d));_0x317bfa['setSelection'](_0x53358e),_0xd75f9b['commands']['get']('mergeTableCells')['refresh'](),_0xd75f9b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2f992c=_0x529904['filter'](_0x21ddd0=>'$graveyard'!=_0x21ddd0['root']['rootName']);_0x2f992c['length']>0x0&&_0x317bfa['setSelection'](_0x2f992c);for(const _0xf2adce of _0x529904)_0xf2adce['detach']();});});for(const _0x3eeae9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x58ff11=_0xd75f9b['commands']['get'](_0x3eeae9);_0x58ff11['on']('set:isEnabled',(_0x255ccc,_0x12cc18,_0x4ee9cc)=>{if(_0x4ee9cc){const _0x17ef3b=_0xd75f9b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x375160=>_0x375160['is']('element','tableCell'));this['_areMergableCells'](_0x58ff11['value'],_0x17ef3b)||(_0x255ccc['return']=!0x1,_0x255ccc['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x438f46=this['editor']['commands']['get']('mergeTableCells'),_0x1afaeb=this['editor']['plugins']['get']('TableUtils');if(!_0x438f46['isEnabled'])return!0x1;const _0x48c577=_0x1afaeb['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x59abdb of _0x48c577)for(const _0x310997 of _0x48c577)if(_0x59abdb!=_0x310997&&!this['_areMergableCells'](_0x59abdb,_0x310997))return!0x1;return!0x0;}['_areMergableCells'](_0x2b2885,_0x5cb9db){const _0x5b37d9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b7074=this['editor']['model']['createRangeOn'](_0x2b2885),_0x711f65=this['editor']['model']['createRangeOn'](_0x5cb9db),_0x457ebd=new Set(),_0x5aab18=new Set();for(const _0x1d5a8c of _0x5b37d9['getSuggestions']())if(('insertion'==_0x1d5a8c['type']||'deletion'==_0x1d5a8c['type']||'mergeTableCells'==_0x1d5a8c['subType'])&&_0x1d5a8c['isInContent']){for(const _0x4d343b of _0x1d5a8c['getRanges']())_0x4d343b['containsRange'](_0x1b7074,!0x0)&&_0x457ebd['add'](_0x1d5a8c['type']+':'+_0x1d5a8c['author']['id']),_0x4d343b['containsRange'](_0x711f65,!0x0)&&_0x5aab18['add'](_0x1d5a8c['type']+':'+_0x1d5a8c['author']['id']);}if(_0x457ebd['size']!=_0x5aab18['size'])return!0x1;for(const _0x32a3bb of _0x457ebd)if(!_0x5aab18['has'](_0x32a3bb))return!0x1;return!0x0;}}class Ot extends _0x27110f{static get['requires'](){return[Dt];}['afterInit'](){const _0x15d6f5=this['editor'];if(!_0x15d6f5['plugins']['has']('TableEditing'))return;const _0x3889bd=_0x15d6f5['locale'],_0x3faa11=_0x15d6f5['plugins']['get']('TrackChangesEditing');_0x3faa11['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3faa11['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3faa11['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3889bd,'FORMAT_HEADER_ROW')),_0x3faa11['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3889bd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5ecd8d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cfa89=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x5ecd8d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5cfa89),_0x5ecd8d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5cfa89),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x2cd3e3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20059c=this['editor']['plugins']['get']('TableUtils');function _0x33bd63({showActiveMarker:_0xf5c83=!0x0,setDataAttribute:_0x4a0bcf=!0x0}={}){return(_0x3ec7f0,_0x58fc8a,_0x526ebb)=>{const {type:_0x42dc25,id:_0x5a305a}=_0x2cd3e3['_splitMarkerName'](_0x58fc8a['markerName']);if(!_0x2cd3e3['hasSuggestion'](_0x5a305a))return;const _0x254865=_0x2cd3e3['getSuggestion'](_0x5a305a),_0x2ebcb2=_0x254865['data'];if('formatBlock'!=_0x254865['type']||!_0x2ebcb2||'setTableColumnHeader'!=_0x2ebcb2['commandName'])return;if(_0x58fc8a['item'])return void _0x3ec7f0['stop']();if(!_0x526ebb['consumable']['consume'](_0x58fc8a['markerRange'],_0x3ec7f0['name']))return;const _0x2bc302=_0x58fc8a['markerRange']['start']['nodeAfter'],_0x554a7e=_0x58fc8a['markerRange']['end']['nodeBefore'],_0x241e21=_0x2bc302['parent']['parent'],{column:_0x2c75c8}=_0x20059c['getCellLocation'](_0x2bc302),{column:_0x115e33}=_0x20059c['getCellLocation'](_0x554a7e);for(let _0xdb8ddf=_0x2c75c8;_0xdb8ddf<=_0x115e33;_0xdb8ddf++){const _0x1e0d4e=_0x20059c['createTableWalker'](_0x241e21,{'column':_0xdb8ddf,'includeAllSlots':!0x1});for(const _0x502ff9 of _0x1e0d4e){const _0x26bf65=_0x502ff9['cell'],_0xf4124a=_0x526ebb['mapper']['toViewElement'](_0x26bf65);_0x526ebb['writer']['addClass']('ck-suggestion-marker-'+_0x42dc25,_0xf4124a),_0x4a0bcf&&_0x526ebb['writer']['setAttribute']('data-suggestion',_0x5a305a,_0xf4124a),_0x526ebb['mapper']['bindElementToMarker'](_0xf4124a,_0x58fc8a['markerName']),_0xf5c83&&(_0x2cd3e3['activeMarkers']['includes'](_0x58fc8a['markerName'])?_0x526ebb['writer']['addClass']('ck-suggestion-marker--active',_0xf4124a):_0x526ebb['writer']['removeClass']('ck-suggestion-marker--active',_0xf4124a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x33bd63(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e022d,_0x4877be,_0x37e0b8)=>{_0x37e0b8['options']['showSuggestionHighlights']&&_0x33bd63({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1e022d,_0x4877be,_0x37e0b8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3a2db4,_0x25b492,_0x6a8d99)=>{const {type:_0x291011,id:_0x3d2103}=_0x2cd3e3['_splitMarkerName'](_0x25b492['markerName']);if(!_0x2cd3e3['hasSuggestion'](_0x3d2103))return;const _0x113470=_0x2cd3e3['getSuggestion'](_0x3d2103),_0x121131=_0x113470['data'];if('formatBlock'!=_0x113470['type']||!_0x121131||'setTableColumnHeader'!=_0x121131['commandName'])return;const _0x2cd1ad=_0x6a8d99['mapper']['markerNameToElements'](_0x25b492['markerName']);if(_0x2cd1ad){for(const _0x517070 of _0x2cd1ad)_0x6a8d99['writer']['removeClass']('ck-suggestion-marker-'+_0x291011,_0x517070),_0x6a8d99['writer']['removeClass']('ck-suggestion-marker--active',_0x517070),_0x6a8d99['writer']['removeAttribute']('data-suggestion',_0x517070),_0x6a8d99['mapper']['unbindElementFromMarkerName'](_0x517070,_0x25b492['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x59d6d6=this['editor'],_0x3bfcf9=_0x59d6d6['locale'];function _0x25cd90(_0xb7b63b){return{'type':'format','content':o(_0x3bfcf9,'*Format:*\x20%0',_0xb7b63b)};}_0x59d6d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x103a20=>{if('formatBlock'!=_0x103a20['type'])return;const {data:_0x146994}=_0x103a20;if(_0x146994){if('setTableRowHeader'==_0x146994['commandName']){const _0x186cac=_0x146994['commandParams'][0x0]['forceValue'];return _0x25cd90(o(_0x3bfcf9,_0x186cac?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x146994['commandName']){const _0x5176d4=_0x146994['commandParams'][0x0]['forceValue'];return _0x25cd90(o(_0x3bfcf9,_0x5176d4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x27110f{['afterInit'](){const _0x9caab6=this['editor'],_0x421ce0=_0x9caab6['locale'],_0x44d799=_0x9caab6['plugins']['get']('TrackChangesEditing');function _0x39e41d(_0x219b1f){return{'type':'format','content':''+o(_0x421ce0,'*Set\x20table\x20type:*\x20%0',_0x219b1f)};}_0x9caab6['plugins']['has']('TableLayout')&&(_0x44d799['enableCommand']('insertTableLayout'),_0x44d799['enableDefaultAttributesIntegration']('tableType'),_0x44d799['descriptionFactory']['registerElementLabel'](_0x28c66a=>_0x28c66a['is']('element','table')&&'layout'===_0x28c66a['getAttribute']('tableType'),_0x5534a4=>o(_0x421ce0,'ELEMENT_LAYOUT_TABLE',_0x5534a4)),_0x44d799['descriptionFactory']['registerDescriptionCallback'](_0x2c5ed7=>{const {data:_0x5c6932}=_0x2c5ed7;if(_0x5c6932&&'tableType'==_0x5c6932['key'])switch(_0x5c6932['newValue']){case'layout':return _0x39e41d(o(_0x421ce0,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x39e41d(o(_0x421ce0,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x347632=>[_0x347632,null]));class Mt extends _0x27110f{static get['requires'](){return[Dt];}['afterInit'](){const _0x6153da=this['editor'];if(!_0x6153da['plugins']['has']('TableClipboard'))return;const _0x54c47b=_0x6153da['plugins']['get']('TrackChangesEditing'),_0xa4b7e2=_0x6153da['plugins']['get']('TableUtils'),_0x16f56b=_0x6153da['plugins']['get'](Dt),_0x5f255a=_0x6153da['plugins']['get']('TableClipboard'),_0x483b18=_0x6153da['plugins']['get']('TableSelection'),_0x366a79=_0x6153da['plugins']['get'](_0x3e7675);_0x16f56b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x6153da['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x6153da['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x48a319=null,_0x329fc2=!0x1;_0x366a79['on']('contentInsertion',(_0x28bb96,_0x481cd5)=>{_0x329fc2='paste'===_0x481cd5['method'];}),_0x6153da['model']['on']('insertContent',(_0x440d6d,_0x306454)=>{if(!_0x329fc2&&null===_0x483b18['getSelectedTableCells']())return;const [_0x5f3523,_0x1bd728]=_0x306454,_0x4f8011=_0x306454[_0x306454['length']-0x1];_0x4f8011&&_0x4f8011['forceDefaultExecution']||_0x54c47b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2dd311,_0x325468,_0x33e482,_0x3a5f23,_0x2bd981){if(_0x325468&&!_0x325468['is']('documentSelection'))return!0x1;const _0x454afe=_0x2bd981['getTableIfOnlyTableInContent'](_0x2dd311,_0x33e482);if(!_0x454afe||!Oe(_0x454afe,void 0x0,_0x3a5f23))return!0x1;const _0x44cf67=_0x3a5f23['getSelectionAffectedTableCells'](_0x33e482['document']['selection']);if(!_0x44cf67['length'])return!0x1;const _0x22cf3f=_0x44cf67[0x0]['findAncestor']('table'),_0x4e5e41=_0x3a5f23['getRowIndexes'](_0x44cf67),_0x416700=_0x3a5f23['getColumnIndexes'](_0x44cf67),_0x5931ed={'startRow':_0x4e5e41['first'],'endRow':_0x4e5e41['last'],'startColumn':_0x416700['first'],'endColumn':_0x416700['last']};return 0x1==_0x44cf67['length']&&(_0x5931ed['endRow']+=_0x3a5f23['getRows'](_0x454afe)-0x1,_0x5931ed['endColumn']+=_0x3a5f23['getColumns'](_0x454afe)-0x1),Oe(_0x22cf3f,_0x5931ed,_0x3a5f23);}(_0x5f3523,_0x1bd728,_0x6153da['model'],_0xa4b7e2,_0x5f255a)&&(_0x440d6d['stop'](),_0x48a319={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x6153da['model']['change'](()=>{_0x6153da['model']['insertContent'](_0x306454[0x0],_0x306454[0x1],_0x306454[0x2],{'forceDefaultExecution':!0x0});const _0x46cbf8=_0x3412ef(),{rowInsertionRanges:_0x46c981,columnInsertionRanges:_0x4476fd,insertionRanges:_0x3a4c49,deletionRanges:_0x3efbed,cells:_0x2f9c0a}=_0x48a319;_0x46c981['length']&&_0x54c47b['markMultiRangeInsertion'](_0x46c981,'tablePasteRow',{'tablePasteChainId':_0x46cbf8}),_0x4476fd['length']&&_0x54c47b['markMultiRangeInsertion'](_0x4476fd,'tablePasteColumn',{'tablePasteChainId':_0x46cbf8}),_0x3a4c49['length']&&(_0x54c47b['markMultiRangeInsertion'](_0x3a4c49,'tablePaste',{'tablePasteChainId':_0x46cbf8,'skipNestingCheck':!0x0}),_0x3a4c49['forEach'](_0x2d2e10=>_0x2d2e10['detach']?.())),_0x3efbed['length']&&(_0x54c47b['markMultiRangeDeletion'](_0x3efbed,'tablePaste',{'tablePasteChainId':_0x46cbf8,'skipNestingCheck':!0x0}),_0x3efbed['forEach'](_0x56ab27=>_0x56ab27['detach']?.()));const _0x256d61=_0x54c47b['markMultiRangeBlockFormat'](_0x2f9c0a['map'](({element:_0x5257f0})=>_0x5257f0),{'formatGroupId':_0x3412ef()},[],'tablePasteCell',{'tablePasteChainId':_0x46cbf8});if(_0x256d61){const _0x29424b=_0x256d61['getMarkers'](),_0x4f7f72=[];for(const {element:_0x173e89,attributes:_0x3d5ccf}of _0x2f9c0a){if(!_0x3d5ccf)continue;const _0x144090=_0x6153da['model']['createRangeOn'](_0x173e89),_0xe0ec81=_0x29424b['find'](_0x1980ef=>_0x1980ef['getRange']()['isEqual'](_0x144090));_0xe0ec81&&_0x4f7f72['push']([_0xe0ec81['name'],_0x3d5ccf]);}_0x4f7f72['length']&&_0x256d61['setAttribute']('markerAttributes',Object['fromEntries'](_0x4f7f72));}_0x48a319=null;}));},{'priority':_0x200ca3['high']+0xa}),_0x366a79['on']('contentInsertion',()=>{_0x329fc2=!0x1;},{'priority':'lowest'}),_0x6153da['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1fc733,_0x34c944)=>{const [_0x390f04,_0x572a08,,_0x24bd4c]=_0x34c944;if(!_0x48a319)return;_0x1fc733['stop']();const _0x453a63=_0x390f04['cell'],_0x513f49=_0x572a08,_0x2fedb9=Be(_0x453a63),_0x35af6d=Be(_0x513f49);_0x1fc733['return']=_0x453a63;let _0x2542a3=null,_0x2c4544=null;if(_0x35af6d||_0x2fedb9){if(_0x2fedb9&&!_0x35af6d){_0x24bd4c['remove'](_0x453a63['getChild'](0x0));for(const _0x16d5c9 of Array['from'](_0x513f49['getChildren']()))_0x24bd4c['insert'](_0x16d5c9,_0x453a63,'end');const _0x36b38c=_0x48a319['rowInsertionIndexes']['includes'](_0x390f04['row']),_0x886829=_0x48a319['columnInsertionIndexes']['includes'](_0x390f04['column']);_0x36b38c||_0x886829||(_0x2542a3=_0x6f966d['fromRange'](_0x24bd4c['createRangeIn'](_0x453a63)));}else _0x35af6d&&!_0x2fedb9&&(_0x2c4544=_0x24bd4c['createRangeIn'](_0x453a63));}else{const _0x2983d4=_0x24bd4c['createElement']('tableCellSuggestion'),_0x2268c7=_0x24bd4c['createElement']('tableCellSuggestion');_0x24bd4c['wrap'](_0x24bd4c['createRangeIn'](_0x453a63),_0x2268c7),_0x24bd4c['insert'](_0x2983d4,_0x453a63,0x0);for(const _0x14edc0 of Array['from'](_0x513f49['getChildren']()))_0x24bd4c['insert'](_0x14edc0,_0x2983d4,'end');_0x2542a3=_0x6f966d['fromRange'](_0x24bd4c['createRangeOn'](_0x2983d4)),_0x2c4544=_0x6f966d['fromRange'](_0x24bd4c['createRangeOn'](_0x2268c7));}const _0x598f7f=Array['from'](_0x513f49['getAttributes']())['filter'](([_0x2ac7b0])=>Re['includes'](_0x2ac7b0));_0x48a319['cells']['push']({'element':_0x453a63,'attributes':_0x598f7f['length']?Object['fromEntries'](_0x598f7f):null}),_0x2542a3&&_0x48a319['insertionRanges']['push'](_0x2542a3),_0x2c4544&&_0x48a319['deletionRanges']['push'](_0x2c4544);},{'priority':'high'}),_0xa4b7e2['on']('insertColumns',(_0x3876ae,_0x45fb84)=>{const [_0x3fdb9b,_0x5de46a={}]=_0x45fb84;if(!_0x48a319)return;const _0x305950=_0x5de46a['at']||0x0,_0x3b8cd7=_0x5de46a['columns']||0x1;_0x48a319['columnInsertionIndexes']=new Array(_0x3b8cd7)['fill'](_0x305950)['map']((_0x5e1b3a,_0x575b5c)=>_0x5e1b3a+_0x575b5c);for(const {cell:_0xc63b89}of _0xa4b7e2['createTableWalker'](_0x3fdb9b,{'startColumn':_0x305950,'endColumn':_0x305950+_0x3b8cd7-0x1}))_0x48a319['columnInsertionRanges']['push'](_0x6153da['model']['createRangeOn'](_0xc63b89));},{'priority':'low'}),_0xa4b7e2['on']('insertRows',(_0x306c83,_0xabe0d4)=>{const [_0x44f21e,_0x599c8d={}]=_0xabe0d4;if(!_0x48a319)return;const _0x13aa86=_0x599c8d['at']||0x0,_0x4a680f=_0x599c8d['rows']||0x1;_0x48a319['rowInsertionIndexes']=new Array(_0x4a680f)['fill'](_0x13aa86)['map']((_0x3ea451,_0x1d6770)=>_0x3ea451+_0x1d6770);for(const {cell:_0x31d74b}of _0xa4b7e2['createTableWalker'](_0x44f21e,{'startRow':_0x13aa86,'endRow':_0x13aa86+_0x4a680f-0x1}))_0x48a319['rowInsertionRanges']['push'](_0x6153da['model']['createRangeOn'](_0x31d74b));},{'priority':'low'}),_0x54c47b['descriptionFactory']['registerDescriptionCallback'](_0x478502=>{if(_0x478502['subType']&&_0x478502['subType']['startsWith']('tablePaste'))return _0x478502['previous']?{}:{'type':'insertion','content':o(_0x6153da['locale'],'*Replace\x20table\x20cells*')};});const _0x54329a=()=>!0x1;for(const _0x16644b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x54c47b['_suggestionFactory']['registerCustomCallback']('insertion',_0x16644b,'join',_0x54329a),_0x54c47b['_suggestionFactory']['registerCustomCallback']('deletion',_0x16644b,'join',_0x54329a),_0x54c47b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x16644b,'join',_0x54329a);_0x54c47b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x54329a),_0x54c47b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2f3419,_0x58e2d9,_0x123c0a)=>{const _0x157dc7=_0x2f3419['map'](_0x4f9d0e=>_0x4f9d0e['getContainedElement']())['filter'](_0x50bf46=>_0x50bf46),_0x585049=new Map(_0x157dc7['map'](_0x1e4a07=>[_0x1e4a07,null]));if(_0x48a319){for(const {element:_0x5aa4c6,attributes:_0x2e5669}of _0x48a319['cells'])_0x2e5669&&_0x585049['set'](_0x5aa4c6,_0x2e5669);}else{if(_0x123c0a&&_0x123c0a['markerAttributes'])for(const [_0x3805f7,_0x29af3b]of Object['entries'](_0x123c0a['markerAttributes'])){const _0x56a32b=_0x6153da['model']['markers']['get'](_0x3805f7),_0x12f2e6=_0x56a32b?_0x56a32b['getRange']()['getContainedElement']():null;_0x12f2e6&&_0x585049['set'](_0x12f2e6,_0x29af3b);}}_0x6153da['model']['change'](_0xdc56f2=>{for(const [_0x1765d8,_0x862995]of _0x585049)_0xdc56f2['setAttributes']({...Ae,..._0x862995},_0x1765d8);});});const _0x5634d7=(_0x44b314,_0x13a07d)=>{_0x54c47b['_suggestionFactory']['registerCustomCallback'](_0x44b314,'tablePaste',_0x13a07d,(_0x4ad3c2,_0x4d54a1,_0x21f62e)=>{_0x6153da['model']['change'](_0x50d1b8=>{const _0x4a0a2f=[];for(const _0xbb24f7 of _0x4ad3c2){const _0x88edc7=_0xbb24f7['start']['nodeAfter'];_0x88edc7['is']('element','tableCellSuggestion')&&_0x4a0a2f['push'](_0x88edc7);}_0x54c47b['_suggestionFactory']['getSuggestionCallback'](_0x44b314,null,_0x13a07d)(_0x4ad3c2,_0x4d54a1,_0x21f62e);for(const _0x58d63b of _0x4a0a2f)'$graveyard'!=_0x58d63b['root']['rootName']&&_0x50d1b8['unwrap'](_0x58d63b);});});};_0x5634d7('insertion','accept'),_0x5634d7('insertion','discard'),_0x5634d7('deletion','accept'),_0x5634d7('deletion','discard'),_0x54c47b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x10aa62=>{const _0x5791f6=_0x10aa62['map'](_0x2cb464=>_0x2cb464['getContainedElement']()),_0x2abb75=_0x5791f6[0x0]['findAncestor']('table'),{minRow:_0x2124dc,maxRow:_0x515730}=_0x16f56b['_getCoordsForCells'](_0x5791f6);_0xa4b7e2['removeRows'](_0x2abb75,{'at':_0x2124dc,'rows':_0x515730-_0x2124dc+0x1});}),_0x54c47b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x22b30f=>{const _0x3ac8b4=_0x22b30f['map'](_0x153502=>_0x153502['getContainedElement']()),_0x1d6a62=_0x3ac8b4[0x0]['findAncestor']('table'),{minColumn:_0x27451b,maxColumn:_0x11dc54}=_0x16f56b['_getCoordsForCells'](_0x3ac8b4);_0xa4b7e2['removeColumns'](_0x1d6a62,{'at':_0x27451b,'columns':_0x11dc54-_0x27451b+0x1});});const _0x5d46b0=(_0x486b02,_0x2197e9)=>{if(!_0x2197e9['subType']||!_0x2197e9['subType']['startsWith']('tablePaste'))return;const _0x514f61=_0x2197e9['attributes']['tablePasteChainId'],_0x98232=_0x54c47b['getSuggestions']()['filter'](_0x1a22d3=>_0x1a22d3['isInContent']&&_0x1a22d3['attributes']&&_0x1a22d3['attributes']['tablePasteChainId']==_0x514f61);_0x98232['length']&&_0x2197e9['getAllAdjacentSuggestions']()['length']!=_0x98232['length']&&_0x98232['reduce']((_0x269322,_0x4d649d)=>(_0x269322['next']=_0x4d649d,_0x4d649d['previous']=_0x269322,_0x4d649d));};function _0x2ddd3b(_0x115298,_0x1fca5c=!0x0){const {id:_0xd1ac82,authorId:_0x3e0844}=_0x54c47b['_splitMarkerName'](_0x115298['markerName']),_0x25ddf9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4856a2=_0x54c47b['activeMarkers']['includes'](_0x115298['markerName']);return _0x4856a2&&_0x25ddf9['push']('ck-suggestion-marker--active'),{'classes':_0x25ddf9,'attributes':{'data-suggestion':_0xd1ac82,'data-author-id':_0x3e0844},'priority':_0x4856a2&&_0x1fca5c?0xbc2:0xbb8};}_0x54c47b['on']('suggestionLoaded',_0x5d46b0,{'priority':'high'}),_0x54c47b['on']('suggestionUnloaded',_0x5d46b0,{'priority':'high'}),_0x6153da['model']['document']['registerPostFixer'](()=>{let _0x1aec7c=!0x1;const _0x5cf89b=Array['from'](_0x6153da['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe3c6a4,data:_0x2dd90a}of _0x5cf89b){const {group:_0x5d0ef5,type:_0x5dc1bd,id:_0x56b79e}=_0x54c47b['_splitMarkerName'](_0xe3c6a4);if('suggestion'!=_0x5d0ef5||'deletion'!=_0x5dc1bd||_0x2dd90a['oldRange'])continue;if(!_0x54c47b['hasSuggestion'](_0x56b79e))continue;const _0x7abc9a=_0x54c47b['getSuggestion'](_0x56b79e)['getRanges'](),_0x234758=_0x6153da['plugins']['get']('Users')['me'];for(const _0x1e5f32 of _0x54c47b['getSuggestions']()){if(!_0x1e5f32['isInContent']||_0x1e5f32['author']!=_0x234758)continue;if('formatBlock'!=_0x1e5f32['type']||'tablePasteCell'!=_0x1e5f32['subType'])continue;if(_0x1e5f32['getRanges']()['every'](_0x5ea794=>_0x7abc9a['some'](_0x4773d3=>_0x4773d3['containsRange'](_0x5ea794,!0x0)))){for(const _0xd942ae of _0x1e5f32['getAllAdjacentSuggestions']())_0xd942ae['isInContent']&&(_0xd942ae['discard'](),_0x1aec7c=!0x0);}}}return _0x1aec7c;}),_0x6153da['model']['document']['registerPostFixer'](_0x788eba=>{const _0x333de0=_0x6153da['commands']['get']('redo');if(!_0x333de0||!_0x333de0['_createdBatches']['has'](_0x788eba['batch']))return!0x1;let _0x160b14=!0x1;const _0x319444=_0x6153da['plugins']['get']('Users')['me'],_0x3efaa8=_0x6153da['model']['document']['differ']['getChanges'](),_0x112ab0=Array['from'](_0x6153da['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x127ee8,data:_0x40e84d})=>{const {group:_0x5c83cc,subType:_0x29937c,authorId:_0x527f57}=_0x54c47b['_splitMarkerName'](_0x127ee8);return'suggestion'==_0x5c83cc&&'tablePaste'==_0x29937c&&_0x527f57==_0x319444['id']&&!_0x40e84d['oldRange'];});for(const _0x44da17 of _0x3efaa8){if('insert'!=_0x44da17['type']||'tableCellSuggestion'!=_0x44da17['name']||0x1!=_0x44da17['length'])continue;const _0x414426=_0x788eba['createRange'](_0x44da17['position'],_0x44da17['position']['getShiftedBy'](0x1));if(!_0x112ab0['find'](({data:_0x2c63e7})=>_0x2c63e7['newRange']['isEqual'](_0x414426))){for(const {name:_0x2642cc,data:_0x3fd8ba}of _0x112ab0)if(_0x414426['containsRange'](_0x3fd8ba['newRange'])){_0x788eba['updateMarker'](_0x2642cc,{'range':_0x414426}),_0x160b14=!0x0;break;}}}return _0x160b14;}),_0x6153da['model']['document']['registerPostFixer'](_0x48e7e7=>{let _0x5c79de=!0x1;const _0x297bcf=_0x6153da['plugins']['get']('Users')['me'],_0x154f14=_0x54c47b['getSuggestions']()['filter'](_0x582ac7=>_0x582ac7['isInContent']&&_0x582ac7['author']==_0x297bcf),_0x190e34=new Set(),_0x3ac377=new Set();for(const _0x2f4e77 of _0x154f14)if('tablePaste'==_0x2f4e77['subType'])for(const _0x524921 of _0x2f4e77['getMarkers']()){const _0x2b52c8=_0x524921['getRange']()['getContainedElement']();if(_0x2b52c8){if(_0x2b52c8['is']('element','tableCellSuggestion')&&Be(_0x2b52c8)){_0x2f4e77['removeMarker'](_0x524921['name']),_0x190e34['add'](_0x2b52c8),_0x5c79de=!0x0;const _0x340f48=_0x2b52c8['nextSibling'],_0x533ab8=_0x2b52c8['previousSibling'],_0x146b3a=_0x340f48&&_0x340f48['is']('element','tableCellSuggestion'),_0x168d07=_0x533ab8&&_0x533ab8['is']('element','tableCellSuggestion');_0x146b3a&&!_0x190e34['has'](_0x340f48)&&_0x3ac377['add'](_0x340f48),_0x168d07&&!_0x190e34['has'](_0x533ab8)&&_0x3ac377['add'](_0x533ab8);}else _0x2b52c8['is']('element','paragraph')&&_0x2b52c8['isEmpty']&&(_0x2f4e77['removeMarker'](_0x524921['name']),_0x5c79de=!0x0);}}else{if('tablePasteCell'==_0x2f4e77['subType']){if(!_0x2f4e77['attributes']||!_0x2f4e77['attributes']['tablePasteChainId'])continue;const _0x32d5db=_0x2f4e77['attributes']['markerAttributes'];if(_0x32d5db&&Object['keys'](_0x32d5db)['length'])continue;const _0x30f131=_0x2f4e77['attributes']['tablePasteChainId'];let _0x28f1f5=!0x0,_0x27b3d5=!0x0;for(const _0x486465 of _0x154f14)if(_0x486465['subType']&&_0x486465['subType']['startsWith']('tablePaste')){if(!_0x486465['attributes']['tablePasteChainId']){_0x27b3d5=!0x1;break;}if(_0x486465['id']!=_0x2f4e77['id']&&_0x486465['attributes']['tablePasteChainId']==_0x30f131){_0x28f1f5=!0x1;break;}}_0x27b3d5&&_0x28f1f5&&(_0x2f4e77['removeMarkers'](),_0x5c79de=!0x0);}}for(const _0x56d1a7 of _0x190e34)_0x48e7e7['remove'](_0x56d1a7);for(const _0xbb188e of _0x3ac377)_0x48e7e7['unwrap'](_0xbb188e);return _0x5c79de;}),_0x6153da['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x683a57=>_0x2ddd3b(_0x683a57),'converterPriority':'high'}),_0x6153da['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4f93e0,_0x3eee85)=>_0x3eee85['options']['showSuggestionHighlights']?_0x2ddd3b(_0x4f93e0,!0x1):null,'converterPriority':'high'});const _0x34254b=_0x6153da['editing']['view'];this['listenTo'](_0x34254b['document'],'clipboardOutput',(_0x5a9f2e,_0x1decb)=>{const _0x5e0de3=[];for(const _0x12619b of _0x34254b['createRangeIn'](_0x1decb['content'])['getItems']())_0x12619b['is']('element','suggestion-td')&&_0x5e0de3['push'](_0x12619b);_0x34254b['change'](_0x2f9270=>{for(const _0x4dcdcb of _0x5e0de3)_0x2f9270['move'](_0x2f9270['createRangeIn'](_0x4dcdcb),_0x2f9270['createPositionBefore'](_0x4dcdcb)),_0x2f9270['remove'](_0x4dcdcb);});});}}function Be(_0x244a38){if(_0x244a38['isEmpty'])return!0x0;const _0x16eee2=_0x244a38['getChild'](0x0);return _0x16eee2['is']('element','paragraph')&&_0x16eee2['isEmpty'];}function Oe(_0x44520,_0x20a63c={},_0x5e7f69){for(const {isAnchor:_0x5e54e4,cellHeight:_0x165dd0,cellWidth:_0x362f03}of _0x5e7f69['createTableWalker'](_0x44520,{'includeAllSlots':!0x0,..._0x20a63c}))if(!_0x5e54e4||0x1!=_0x165dd0||0x1!=_0x362f03)return!0x1;return!0x0;}class Rt extends _0x27110f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5e4288=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e4288['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5e4288['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5e4288['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e4288['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5e4288['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5e4288['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xf30ebf,_0x43b784){const _0x76979b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16275b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x13931e=_0x43b784['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xd76c05=_0x16275b['getColumnGroupElement'](_0x13931e);let _0x22afed=_0xd76c05?_0x16275b['getTableColumnsWidths'](_0xd76c05):null,_0x19bbe8=_0x13931e['getAttribute']('tableWidth')||null;const _0x69bb46=_0x43b784['tableWidth']||_0x19bbe8,_0x51e3fa=_0x43b784['columnWidths']||_0x22afed,_0x52f2e0=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d94b6 of _0x76979b['getSuggestions']()){const _0x2a65da=_0x3d94b6['getContainedElement']();if('resizeTable'===_0x3d94b6['subType']&&_0x2a65da===_0x13931e){_0x3d94b6['author']!==_0x52f2e0&&_0x3d94b6['discard']();const _0x4f2924=_0x3d94b6['data']['commandParams'];_0x19bbe8=_0x4f2924[0x0]['tableWidth'],_0x22afed=_0x4f2924[0x0]['columnWidths'];break;}}_0xf30ebf({'table':_0x13931e,'tableWidth':_0x69bb46,'columnWidths':_0x51e3fa}),_0x76979b['markBlockFormat'](_0x13931e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x19bbe8,'columnWidths':_0x22afed}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x40d9d0){if('formatBlock'!=_0x40d9d0['type']&&'formatInline'!=_0x40d9d0['type'])return;const {data:_0x45dc88}=_0x40d9d0;if(_0x45dc88&&'resizeTable'===_0x45dc88['formatGroupId']){const _0x5d8cad='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5d8cad)};}}}class Tt extends _0x27110f{['afterInit'](){const _0x4d49ae=this['editor'];_0x4d49ae['plugins']['has']('Template')&&_0x4d49ae['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x27110f{['afterInit'](){const _0x3cba83=this['editor'];if(!_0x3cba83['commands']['get']('insertTableOfContents'))return;_0x3cba83['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xcbc82a=_0x3cba83['plugins']['get']('TrackChangesEditing'),_0x106ff2=_0x3cba83['locale'];_0xcbc82a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x490753=>o(_0x106ff2,'ELEMENT_TABLE_OF_CONTENTS',_0x490753));}}class Ut extends _0x27110f{['afterInit'](){const _0x44aecb=this['editor'];if(!_0x44aecb['plugins']['has']('Title'))return;const _0x47cb65=_0x44aecb['plugins']['get']('TrackChangesEditing');_0x47cb65['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x44aecb['locale'],'ELEMENT_TITLE')),_0x44aecb['model']['document']['registerPostFixer'](_0x2ad86c=>{let _0x585eb3=!0x1;const _0x249fcb=Array['from'](_0x44aecb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x97ef43,data:_0x1ab445}of _0x249fcb){const {group:_0x1a966d}=_0x47cb65['_splitMarkerName'](_0x97ef43);if('suggestion'!==_0x1a966d||!_0x1ab445['newRange'])continue;const _0x5c4fd6=_0x1ab445['newRange'],_0x1eaa5f=_0x5c4fd6['end']['nodeBefore'];if(!_0x1eaa5f||!_0x1eaa5f['is']('element','title-content'))continue;if(!_0x5c4fd6['start']['isTouching'](_0x5c4fd6['end']))continue;const _0x181e86=_0x44aecb['model']['schema']['getNearestSelectionRange'](_0x5c4fd6['end'],'forward');if(_0x181e86&&_0x181e86['isCollapsed']){const _0x22185f=_0x2ad86c['createRange'](_0x5c4fd6['start'],_0x181e86['start']);_0x22185f['isEqual'](_0x5c4fd6)||(_0x2ad86c['updateMarker'](_0x97ef43,{'range':_0x22185f}),_0x585eb3=!0x0);}_0x585eb3||(_0x2ad86c['removeMarker'](_0x97ef43),_0x585eb3=!0x0);}return _0x585eb3;});}}class Vt extends _0x27110f{['afterInit'](){const _0x3fbf45=this['editor'],_0x242fd8=_0x3fbf45['plugins']['get']('TrackChangesEditing');_0x3fbf45['plugins']['has']('Uploadcare')&&(_0x242fd8['enableCommand']('uploadcare'),_0x3fbf45['plugins']['has']('UploadcareImageEdit')&&(_0x242fd8['enableCommand']('uploadcareImageEdit'),_0x242fd8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x242fd8['descriptionFactory']['registerDescriptionCallback'](_0xe37226=>{if('attribute'!=_0xe37226['type'])return;const {data:_0x351228}=_0xe37226;return _0x351228&&'uploadcareImageId'==_0x351228['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x27110f{['afterInit'](){const _0x54fade=this['editor'],_0xe34bd4=_0x54fade['plugins']['get']('TrackChangesEditing');_0x54fade['plugins']['has']('UndoEditing')&&(_0xe34bd4['enableCommand']('undo'),_0xe34bd4['enableCommand']('redo'));}}class Pt extends _0x27110f{static get['requires'](){return[Dt];}['afterInit'](){const _0x58d4b5=this['editor'];if(!_0x58d4b5['plugins']['has']('TableCaptionEditing'))return;_0x58d4b5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x27110f{['tableProperties'];['tableCellProperties'];constructor(_0x2d0615){super(_0x2d0615),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x2d0615['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xeb141d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x479a59 of this['tableProperties'])_0xeb141d['enableCommand'](_0x479a59,(_0x3b3108,_0x28eec1)=>{const _0x49ab55=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x479a59,[_0x49ab55],this['tableProperties'],'tableProperties',_0x3b3108,_0x28eec1);});_0xeb141d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xeb141d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xeb141d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x77b8af,_0x194a9f)=>this['handleDiscardAction'](this['tableProperties'],_0x77b8af,_0x194a9f)),_0xeb141d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2dfc52 of this['tableCellProperties'])this['editor']['commands']['get'](_0x2dfc52)&&_0xeb141d['enableCommand'](_0x2dfc52,(_0xf2d565,_0x38abc7)=>{const _0x1ffca1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2dfc52,_0x1ffca1,this['tableCellProperties'],'tableCellProperties',_0xf2d565,_0x38abc7);});_0xeb141d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xeb141d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xeb141d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x155c81,_0x5a834e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x155c81,_0x5a834e)),_0xeb141d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0xeb141d['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0xeb141d['descriptionFactory']['registerDescriptionCallback'](_0x2fb07a=>this['handleSuggestionDescription'](_0x2fb07a)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x9eff60,_0x693d0,_0x2c83c7,_0x5f3cd2,_0x571dde,_0x252d9b){const _0x19d43d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x252d9b['batch'],()=>{for(const _0x3eb3b2 of _0x693d0){if(this['_getSuggestion'](_0x3eb3b2,_0x5f3cd2))_0x571dde(_0x252d9b);else{const _0x4e92d3={};for(const _0x2a40d2 of _0x2c83c7){const _0x228005=_0x3eb3b2['getAttribute'](_0x2a40d2);void 0x0!==_0x228005&&(_0x4e92d3[_0x2a40d2]=_0x228005);}_0x571dde(_0x252d9b),_0x19d43d['markBlockFormat'](_0x3eb3b2,{'commandParams':[_0x4e92d3]},[],_0x5f3cd2);}}});}['handleDiscardAction'](_0x831149,_0x3629f2,_0x24efee){const _0x4c3c25=_0x3629f2[0x0]['start']['nodeAfter'],_0x7c01a3=_0x24efee['commandParams'][0x0];this['editor']['model']['change'](_0x162f92=>{for(const _0x521e97 of _0x831149)void 0x0!==_0x7c01a3[_0x521e97]?_0x162f92['setAttribute'](_0x521e97,_0x7c01a3[_0x521e97],_0x4c3c25):_0x162f92['removeAttribute'](_0x521e97,_0x4c3c25);});}['handleSuggestionDescription'](_0x31f935){if(_0x31f935['data'])switch(_0x31f935['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'](_0x53bd3a,_0x403734){const _0x254468=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x47acd6 of _0x254468['getSuggestions']({'skipNotAttached':!0x0})){const _0x343c93=_0x47acd6['getContainedElement']();if(_0x47acd6['subType']===_0x403734&&_0x343c93===_0x53bd3a)return _0x47acd6;}return null;}['_registerTablePropertiesAttributes'](){const _0x10fca4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x199a5b=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3afa8b of _0x199a5b){const _0x3edf19=_0x3afa8b['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x10fca4['descriptionFactory']['registerAttributeLabel'](_0x3afa8b,o(this['editor']['locale'],'FORMAT_'+_0x3edf19));}}}class Lt extends _0x27110f{['afterInit'](){const _0x24f788=this['editor'];if(!_0x24f788['plugins']['has']('LineHeight'))return;const _0x285e6a=_0x24f788['plugins']['get']('TrackChangesEditing'),_0x43a732=_0x24f788['locale'];_0x285e6a['enableDefaultAttributesIntegration']('lineHeight'),_0x285e6a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x43a732,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x27110f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x4b540f,_0x399566,_0x3971aa,_0x3436ad,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f8d40){super(_0x2f8d40),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3af3a8,_0x63016c,_0x3a89aa,_0x57a0b2)=>{this['_model']['change'](()=>{for(const _0x580674 of[..._0x57a0b2,..._0x3a89aa])this['_model']['markers']['has'](_0x580674)&&_0x2f8d40['editing']['reconvertMarker'](_0x580674);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2f8d40['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2f8d40['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2f8d40['config']['get']('trackChanges.trackFormatChanges'),_0x2f8d40['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2f8d40['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2f8d40,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x140760=this['editor'];_0x140760['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x404df3,{writer:_0x243e4e})=>{let _0x68cfaa='suggestion:'+_0x404df3['getAttribute']('suggestion-type')+':'+_0x404df3['getAttribute']('id');return _0x404df3['getAttribute']('marker-count')&&(_0x68cfaa+=':'+_0x404df3['getAttribute']('marker-count')),_0x243e4e['createElement']('$marker',{'data-name':_0x68cfaa});}}),_0x140760['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x140760['model']['document']['registerPostFixer'](_0x2dd02b=>{let _0x4b5af9=!0x1;const _0x2c9554=Array['from'](_0x140760['model']['document']['differ']['getChangedMarkers']()),_0x530b7d=new Set();for(const {name:_0x266bb3,data:_0x25ec95}of _0x2c9554){const {group:_0x54c89a,type:_0x3f087a,subType:_0x35551a,id:_0x17fa06}=this['_splitMarkerName'](_0x266bb3);if('suggestion'!==_0x54c89a)continue;const _0x315cfd=_0x35551a?'suggestion:'+_0x3f087a+':'+_0x35551a+':'+_0x17fa06:'suggestion:'+_0x3f087a+':'+_0x17fa06,_0x48d04c=_0x140760['model']['markers']['getMarkersGroup'](_0x315cfd),_0x14df35=_0x140760['model']['markers']['get'](_0x266bb3),_0xba00ba=this['_suggestions']['get'](_0x17fa06);if(null!=_0x25ec95['newRange']){'formatInline'==_0x3f087a&&(_0x4b5af9=_0x4b5af9||Kt(_0x25ec95['newRange'],_0x266bb3,_0x2dd02b,_0x140760['model']['schema']));const _0x4d6adc='attribute'==_0x3f087a&&this['_isBlockAttribute'](_0x35551a['split']('|')[0x0]),_0x2efc66='attribute'==_0x3f087a&&this['_isInlineAttribute'](_0x35551a['split']('|')[0x0]);if(_0x25ec95['newRange']['isCollapsed']||'$graveyard'==_0x25ec95['newRange']['root']['rootName']||'formatBlock'==_0x3f087a&&!Ht(_0x25ec95['newRange'])||_0x4d6adc&&!Ht(_0x25ec95['newRange'])||_0x2efc66&&Qt(_0x25ec95['newRange'])||'deletion'==_0x3f087a&&Qt(_0x25ec95['newRange'])||_0x14df35&&Xt(_0x14df35,_0x48d04c))_0x2dd02b['removeMarker'](_0x266bb3),_0x4b5af9=!0x0;else{if(!_0xba00ba||!_0xba00ba['isInContent'])continue;if(_0x25ec95['newRange']&&_0x25ec95['oldRange']&&_0x25ec95['newRange']['isEqual'](_0x25ec95['oldRange']))continue;_0x530b7d['add'](_0xba00ba);}}}return _0x530b7d['size']>0x0&&(_0x4b5af9=!!this['_joinWithAdjacentSuggestions'](_0x530b7d)||_0x4b5af9),_0x4b5af9;}),_0x140760['model']['document']['registerPostFixer'](_0x19014b=>{let _0xd9ae52=!0x1;for(const _0x681bc5 of _0x140760['model']['document']['differ']['getChanges']())if('insert'==_0x681bc5['type'])for(const _0x795dab of this['_suggestions']['values']()){if(_0x795dab['isMultiRange']||!_0x795dab['isInContent'])continue;const _0x24e2b5='formatBlock'==_0x795dab['type'],_0x4eeb37=this['_getAttributeKey'](_0x795dab),_0x2ba035=_0x4eeb37&&this['_isBlockAttribute'](_0x4eeb37);if(!_0x24e2b5&&!_0x2ba035)continue;const _0x43c643=_0x795dab['getFirstRange']();if(_0x43c643['start']['parent']!=_0x43c643['end']['parent']&&!_0x43c643['end']['isAtEnd']){const _0x3aeedb=_0x140760['model']['createPositionAt'](_0x43c643['start']['nodeAfter'],'end'),_0x227e3e=_0x140760['model']['createRange'](_0x43c643['start'],_0x3aeedb);_0x19014b['updateMarker'](_0x795dab['getFirstMarker'](),{'range':_0x227e3e}),_0xd9ae52=!0x0;}}return _0xd9ae52;}),_0x140760['model']['document']['registerPostFixer'](_0x383fcc=>this['_processAttributeChanges'](_0x383fcc)),_0x140760['model']['document']['registerPostFixer'](_0x3ff260=>!_0x3ff260['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3ff260)),_0x140760['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x140760['model']['document']['on']('change:data',(_0x32e180,_0x148119)=>{if(!_0x148119['isLocal']||_0x148119['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x70c755=_0x140760['model']['document']['differ']['getChanges']();if(0x0==_0x70c755['length'])return;const _0x5c2c8a=[],_0x35b094=_0x70c755['filter'](_0x290495=>'attribute'==_0x290495['type']),_0x5d01cb=_0x70c755['filter'](_0x326245=>'insert'==_0x326245['type']&&'$text'!=_0x326245['name']);for(const _0x24eaf7 of _0x35b094)this['_isRegisteredAttribute'](_0x24eaf7['attributeKey'])&&_0x5c2c8a['push']({'key':_0x24eaf7['attributeKey'],'newValue':_0x24eaf7['attributeNewValue'],'oldValue':_0x24eaf7['attributeOldValue'],'range':Yt(_0x24eaf7['range'],_0x140760['model'])});for(const _0x5ba352 of _0x5d01cb){if('rename'!=_0x5ba352['action']&&'refresh'!=_0x5ba352['action'])continue;const _0x48ce23=Zt(_0x5ba352['position']['nodeAfter'],_0x140760['model']),_0x51cf1c=_0x5ba352['before'];'rename'==_0x5ba352['action']&&_0x5c2c8a['push']({'key':m,'newValue':_0x5ba352['name'],'oldValue':_0x51cf1c['name'],'range':_0x48ce23});for(const [_0x3a0058,_0x35a58c]of _0x51cf1c['attributes']){if(!this['_isRegisteredAttribute'](_0x3a0058))continue;const _0x5d15e5=_0x5ba352['attributes']['get'](_0x3a0058);_0x35a58c!==_0x5d15e5&&_0x5c2c8a['push']({'key':_0x3a0058,'newValue':_0x5d15e5,'oldValue':_0x35a58c,'range':_0x48ce23});}for(const [_0x4b2e7b,_0x2d8a72]of _0x5ba352['attributes'])this['_isRegisteredAttribute'](_0x4b2e7b)&&(_0x51cf1c['attributes']['has'](_0x4b2e7b)||_0x5c2c8a['push']({'key':_0x4b2e7b,'newValue':_0x2d8a72,'oldValue':null,'range':_0x48ce23}));}0x0!=_0x5c2c8a['length']&&_0x140760['model']['enqueueChange'](_0x148119,_0x198d8d=>{const _0x4645d7=_0x3412ef();for(const {range:_0x440346,key:_0x4be917,oldValue:_0x30e750,newValue:_0x372ece}of _0x5c2c8a)this['markAttributeChange'](_0x440346,_0x4be917,_0x30e750,_0x372ece,{'groupId':_0x4645d7});this['_reduceExistingSuggestions'](_0x198d8d,_0x5c2c8a);});},{'priority':'lowest'}),_0x140760['model']['markers']['on']('update:suggestion',(_0x819021,_0x1b2293,_0x413094)=>{if(null==_0x413094){const {id:_0x480eb2}=this['_splitMarkerName'](_0x1b2293['name']),_0x3c2ea0=this['_suggestions']['get'](_0x480eb2);_0x3c2ea0&&_0x3c2ea0['addMarkerName'](_0x1b2293['name']);}}),_0x140760['model']['document']['on']('change:data',()=>{const _0x229e2c=Array['from'](_0x140760['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3bbf7b=>'suggestion'===this['_splitMarkerName'](_0x3bbf7b['name'])['group']);if(0x0===_0x229e2c['length'])return;_0x229e2c['sort']((_0x1cdccf,_0x5943e0)=>{const _0x76efaf=_0x1cdccf['data']['oldRange'],_0x59c565=_0x5943e0['data']['oldRange'];return null===_0x76efaf&&null===_0x59c565?0x0:null===_0x76efaf&&null!==_0x59c565?-0x1:null!==_0x76efaf&&null===_0x59c565?0x1:_0x76efaf['start']['isBefore'](_0x59c565['start'])?-0x1:0x1;});const _0x2aa932=new Set(),_0x8b3e04=new Set();for(const {name:_0x2a7bf7,data:_0x595936}of _0x229e2c){const {id:_0x3522fe}=this['_splitMarkerName'](_0x2a7bf7);if(null===_0x595936['oldRange']){const _0x520be9=this['_handleNewSuggestionMarker'](_0x2a7bf7);_0x8b3e04['add'](_0x520be9);}else{const _0x4b7556=this['_suggestions']['get'](_0x3522fe);null!==_0x595936['newRange']||_0x4b7556['isInContent']?(_0x2aa932['add'](_0x4b7556['head']),_0x8b3e04['add'](_0x4b7556)):this['_removeSuggestion'](_0x4b7556);}}_0x8b3e04['size']>0x0&&this['_refreshSuggestionsChain'](_0x8b3e04);for(const _0x21a463 of _0x2aa932)this['fire']('suggestionChanged',_0x21a463);}),_0x140760['model']['on']('applyOperation',(_0x7b1b7c,_0x3afbf3)=>{const _0x168461=_0x3afbf3[0x0];if(!this['_suggestions']['size'])return;if(!_0x168461['isDocumentOperation'])return;if(_0x168461['batch']['isUndo']||!_0x168461['batch']['isLocal'])return;let _0x51ebfe,_0x4fa41c;switch(_0x168461['type']){case'insert':_0x51ebfe=_0x140760['model']['createPositionAt'](_0x168461['position']),_0x4fa41c=_0x51ebfe['getShiftedBy'](_0x168461['howMany']);break;case'split':_0x51ebfe=_0x140760['model']['createPositionAt'](_0x168461['splitPosition']),_0x4fa41c=_0x140760['model']['createPositionAt'](_0x168461['moveTargetPosition']);break;case'move':_0x51ebfe=_0x140760['model']['createPositionAt'](_0x168461['targetPosition']),_0x4fa41c=_0x51ebfe['getShiftedBy'](_0x168461['howMany']);break;default:return;}const _0x3e7d1d=_0x140760['model']['createRange'](_0x51ebfe,_0x4fa41c);_0x140760['model']['change'](()=>{for(const {suggestion:_0x27a493,meta:_0x203370}of this['_findSuggestions'](_0x3e7d1d)){if(_0x27a493['isMultiRange'])continue;if('formatInline'==_0x27a493['type'])continue;const _0x1f7f70=this['_getAttributeKey'](_0x27a493);if(_0x1f7f70&&this['_isBlockAttribute'](_0x1f7f70)&&'split'!=_0x168461['type'])continue;const _0x4cbaab=_0x27a493['data']&&_0x27a493['data']['multipleBlocks'];('formatBlock'!=_0x27a493['type']||'split'==_0x168461['type']&&!_0x4cbaab)&&(_0x203370['containsRangeInObject']||'insertion'==_0x27a493['type']&&_0x203370['isOwn']||_0x27a493['getFirstRange']()['containsRange'](_0x3e7d1d)&&this['_breakSuggestionMarker'](_0x27a493,_0x51ebfe,_0x4fa41c));}});},{'priority':'lowest'}),_0x140760['model']['on']('deleteContent',(_0x4d589d,_0x41fe84)=>{const _0x322e1f=_0x41fe84[0x0],_0x1363e9=_0x41fe84[0x1];if(_0x1363e9&&_0x1363e9['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x322e1f['isCollapsed'])return;const _0x4c3c82=_0x140760['model']['schema'],{start:_0x263d19,end:_0x17b7a1}=_0x322e1f['getFirstRange'](),_0x5e001e=_0x263d19['nodeAfter']&&_0x4c3c82['isLimit'](_0x263d19['nodeAfter'])?null:_0x4c3c82['getNearestSelectionRange'](_0x263d19,'forward'),_0x506381=_0x17b7a1['nodeBefore']&&_0x4c3c82['isLimit'](_0x17b7a1['nodeBefore'])?null:_0x4c3c82['getNearestSelectionRange'](_0x17b7a1,'backward'),_0xf8b68d=_0x140760['model']['createRange'](_0x5e001e?_0x5e001e['start']:_0x263d19,_0x506381?_0x506381['end']:_0x17b7a1);_0x140760['model']['change'](_0x3688ed=>{this['markDeletion'](_0xf8b68d);const _0x4ca6c8=_0x140760['model']['schema']['getNearestSelectionRange'](_0xf8b68d['start']);_0x322e1f['is']('documentSelection')?_0x3688ed['setSelection'](_0x4ca6c8):_0x322e1f['setTo'](_0x4ca6c8);}),_0x4d589d['stop']();},{'priority':_0x200ca3['normal']+0xa}),_0x140760['model']['on']('insertContent',(_0x123e81,_0x3822e9)=>{const _0x404dd7=_0x3822e9[_0x3822e9['length']-0x1];_0x404dd7&&_0x404dd7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x140760['model']['change'](()=>{let _0x211c9d=_0x140760['model']['insertContent'](_0x3822e9[0x0],_0x3822e9[0x1],_0x3822e9[0x2],{'forceDefaultExecution':!0x0});if(!_0x211c9d)return;_0x123e81['return']=_0x211c9d['clone']();const _0x2620f2=_0x211c9d['end']['nodeBefore'],_0x4c9abc=_0x140760['model']['schema'];_0x2620f2&&_0x4c9abc['isBlock'](_0x2620f2)&&!_0x4c9abc['isObject'](_0x2620f2)&&(_0x211c9d=_0x140760['model']['createRange'](_0x211c9d['start'],_0x140760['model']['createPositionAt'](_0x2620f2,'end'))),this['markInsertion'](_0x211c9d);}),_0x123e81['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x17068f=new O(_0x140760,this['_suggestions']);_0x140760['commands']['add']('acceptSuggestion',_0x17068f),this['enableCommand']('acceptSuggestion');const _0xe3b4cc=new x(_0x140760,this['_suggestions']);_0x140760['commands']['add']('discardSuggestion',_0xe3b4cc),this['enableCommand']('discardSuggestion'),_0x140760['commands']['add']('acceptAllSuggestions',new M(_0x140760,_0x17068f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x140760['commands']['add']('discardAllSuggestions',new M(_0x140760,_0xe3b4cc,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x140760['commands']['add']('acceptSelectedSuggestions',new R(_0x140760,_0x17068f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x140760['commands']['add']('discardSelectedSuggestions',new R(_0x140760,_0xe3b4cc,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x50d71f=_0x140760['plugins']['get']('CommentsRepository');this['listenTo'](_0x50d71f,'addComment',(_0x57b55c,{threadId:_0x88e60c})=>{const _0x199c30=this['_suggestions']['get'](_0x88e60c);_0x199c30&&_0x199c30['commentThread']&&0x1===_0x199c30['commentThread']['length']&&this['_updateSuggestionData'](_0x88e60c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x50d71f,'removeComment',(_0x297675,{threadId:_0x2f626c})=>{const _0x557004=this['_suggestions']['get'](_0x2f626c);_0x557004&&_0x557004['commentThread']&&!_0x557004['commentThread']['length']&&this['_updateSuggestionData'](_0x2f626c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4c5e92){const _0x34d781=_0x26c1bd([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x462fb8=0x3d8d0df,_0x3a0984=0x3df5ab7^_0x462fb8,_0x50cc64=window[_0x26c1bd([0x44,0x61,0x74,0x65])][_0x26c1bd([0x6e,0x6f,0x77])](),_0x85dcdd=_0x4c5e92[_0x26c1bd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb14a2a=new window[(_0x26c1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26e32b=>{_0x85dcdd[_0x26c1bd([0x6f,0x6e,0x63,0x65])](_0x26c1bd([0x72,0x65,0x61,0x64,0x79]),_0x26e32b);}),_0x25d933={[_0x26c1bd([0x6b,0x74,0x79])]:_0x26c1bd([0x45,0x43]),[_0x26c1bd([0x75,0x73,0x65])]:_0x26c1bd([0x73,0x69,0x67]),[_0x26c1bd([0x63,0x72,0x76])]:_0x26c1bd([0x50,0x2d,0x32,0x35,0x36]),[_0x26c1bd([0x78])]:_0x26c1bd([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]),[_0x26c1bd([0x79])]:_0x26c1bd([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]),[_0x26c1bd([0x61,0x6c,0x67])]:_0x26c1bd([0x45,0x53,0x32,0x35,0x36])},_0xb34933=_0x85dcdd[_0x26c1bd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x26c1bd([0x67,0x65,0x74])](_0x26c1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x338144(){let _0x4e984c,_0x2a2f8c=null,_0x3ab5d0=null;try{if(_0xb34933==_0x26c1bd([0x47,0x50,0x4c]))return _0x26c1bd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e984c=_0x3bd5b8(),!_0x4e984c)return _0x26c1bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e984c[_0x26c1bd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3ab5d0=_0x1b01e5(_0x4e984c[_0x26c1bd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e984c[_0x26c1bd([0x6a,0x74,0x69])])),await _0x2fd2ce()?_0x3e8296()?_0x2e02a2()?_0x26c1bd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35d131()?(_0x4e984c[_0x26c1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x26c1bd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a2f8c=_0x1123f2(_0x26c1bd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x15a99d()):_0x26c1bd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x26c1bd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x26c1bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x26c1bd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e02a2(){const _0x4f0402=[_0x26c1bd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x26c1bd([0x74,0x72,0x69,0x61,0x6c])][_0x26c1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e984c[_0x26c1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50cc64/0x3e8:0xe10*_0x3a0984;return _0x4e984c[_0x26c1bd([0x65,0x78,0x70])]<_0x4f0402;}function _0x3e8296(){const _0xa19b34=_0x4e984c[_0x26c1bd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xa19b34)return!0x1;if(_0xa19b34[_0x26c1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26c1bd([0x2a])))return!0x0;if(_0xa19b34[_0x26c1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26c1bd([0x54,0x43])))return!0x0;if(_0xa19b34[_0x26c1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26c1bd([0x52,0x54,0x43]))){if(_0x4a2e6a())return!0x0;if(_0x401fdc()||_0x2ba48e())return!0x0;}return!0x1;}function _0x35d131(){const _0x3e484c=_0x4e984c[_0x26c1bd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3e484c||0x0==_0x3e484c[_0x26c1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xaf1c89}=new URL(window[_0x26c1bd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3e484c[_0x26c1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaf1c89))return!0x0;const _0x47ad16=_0xaf1c89[_0x26c1bd([0x73,0x70,0x6c,0x69,0x74])](_0x26c1bd([0x2e]));return _0x3e484c[_0x26c1bd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11e42e=>_0x11e42e[_0x26c1bd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26c1bd([0x2a])))[_0x26c1bd([0x6d,0x61,0x70])](_0x2202f0=>_0x2202f0[_0x26c1bd([0x73,0x70,0x6c,0x69,0x74])](_0x26c1bd([0x2e])))[_0x26c1bd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54897a=>_0x54897a[_0x26c1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47ad16[_0x26c1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x26c1bd([0x6d,0x61,0x70])](_0x415259=>Array(_0x47ad16[_0x26c1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x415259[_0x26c1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x26c1bd([0x66,0x69,0x6c,0x6c])](_0x415259[0x0]===_0x26c1bd([0x2a])?_0x26c1bd([0x2a]):'')[_0x26c1bd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x415259))[_0x26c1bd([0x73,0x6f,0x6d,0x65])](_0x401632=>_0x47ad16[_0x26c1bd([0x65,0x76,0x65,0x72,0x79])]((_0x47001c,_0x2b1dcc)=>_0x401632[_0x2b1dcc]===_0x47001c||_0x401632[_0x2b1dcc]===_0x26c1bd([0x2a])));}function _0x15a99d(){return _0x2a2f8c&&_0x3ab5d0?new window[(_0x26c1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe8e0e6,_0x5dbde3)=>{_0x2a2f8c[_0x26c1bd([0x74,0x68,0x65,0x6e])](_0xe8e0e6,_0x5dbde3),_0x3ab5d0[_0x26c1bd([0x74,0x68,0x65,0x6e])](_0x2cbb91=>{_0x2cbb91!=_0x26c1bd([0x56,0x61,0x6c,0x69,0x64])&&_0xe8e0e6(_0x2cbb91);},_0x5dbde3);}):_0x2a2f8c||_0x3ab5d0||_0x26c1bd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b01e5(_0x2fa055,_0x4b3df8){return new window[(_0x26c1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aad7c=>{if(_0x1d15e5())return _0x4aad7c(_0x26c1bd([0x56,0x61,0x6c,0x69,0x64]));_0xada7f1(),_0x85dcdd[_0x26c1bd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x26c1bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x24c0bb=!0x1;const _0x575d5b=_0x3412ef();function _0x2a9abb(_0x5990f8){return!!_0x5990f8&&(typeof _0x5990f8===_0x26c1bd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5990f8===_0x26c1bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5990f8[_0x26c1bd([0x74,0x68,0x65,0x6e])]===_0x26c1bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5990f8[_0x26c1bd([0x63,0x61,0x74,0x63,0x68])]===_0x26c1bd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ef490(_0x46c389){_0x3c1d10(_0x46c389)[_0x26c1bd([0x74,0x68,0x65,0x6e])](_0x4eb27c=>{if(!_0x4eb27c||_0x4eb27c[_0x26c1bd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x26c1bd([0x6f,0x6b]))return _0x26c1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51e06c(_0x21e9ee(_0x575d5b+_0x4b3df8))!=_0x4eb27c[_0x26c1bd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x26c1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x26c1bd([0x56,0x61,0x6c,0x69,0x64]);})[_0x26c1bd([0x74,0x68,0x65,0x6e])](_0x20534b=>(_0x3668f9(),_0x20534b),()=>{const _0x20461a=_0x348255();return null==_0x20461a?(_0x3668f9(),_0x26c1bd([0x56,0x61,0x6c,0x69,0x64])):_0x26c1bd(_0x50cc64-_0x20461a>(0x27d454df^_0x462fb8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x26c1bd([0x74,0x68,0x65,0x6e])](_0x4aad7c)[_0x26c1bd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4aad7c(_0x26c1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x550010=0x3ee3e5f^_0x462fb8;function _0x3668f9(){const _0x390416=_0x26c1bd([0x6c,0x6c,0x63,0x74,0x2d])+_0x51e06c(_0x21e9ee(_0x2fa055)),_0x2df3d6=_0x311f4c(_0x51e06c(window[_0x26c1bd([0x4d,0x61,0x74,0x68])][_0x26c1bd([0x63,0x65,0x69,0x6c])](_0x50cc64/_0x550010)));window[_0x26c1bd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x26c1bd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x390416,_0x2df3d6);}function _0x348255(){const _0xcadf0a=_0x26c1bd([0x6c,0x6c,0x63,0x74,0x2d])+_0x51e06c(_0x21e9ee(_0x2fa055)),_0x3cf22e=window[_0x26c1bd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x26c1bd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcadf0a);return _0x3cf22e?window[_0x26c1bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x311f4c(_0x3cf22e),0x10)*_0x550010:null;}function _0x3c1d10(_0x30a7af){return new window[(_0x26c1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x446a76,_0x23cd49)=>{_0x30a7af[_0x26c1bd([0x74,0x68,0x65,0x6e])](_0x446a76,_0x23cd49),window[_0x26c1bd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x23cd49,0x3d9041f^_0x462fb8);});}}_0x85dcdd[_0x26c1bd([0x6f,0x6e])](_0x26c1bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7131db,_0x13df17)=>{if(_0x13df17[0x0]!=_0x2fa055)return _0x4aad7c(_0x26c1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13df17[0x1]={..._0x13df17[0x1],[_0x26c1bd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x575d5b};},{[_0x26c1bd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x26c1bd([0x68,0x69,0x67,0x68])}),_0x85dcdd[_0x26c1bd([0x6f,0x6e])](_0x26c1bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x247dac=>{_0x2a9abb(_0x247dac[_0x26c1bd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x24c0bb=!0x0,_0x5ef490(_0x247dac[_0x26c1bd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x26c1bd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x26c1bd([0x6c,0x6f,0x77])}),_0xb14a2a[_0x26c1bd([0x74,0x68,0x65,0x6e])](()=>{_0x24c0bb||_0x4aad7c(_0x26c1bd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d15e5(){return _0x85dcdd[_0x26c1bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26c1bd([0x76,0x69,0x65,0x77])][_0x26c1bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x26c1bd([0x61,0x75,0x74,0x6f]);}function _0xada7f1(){_0x85dcdd[_0x26c1bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26c1bd([0x76,0x69,0x65,0x77])][_0x26c1bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26c1bd([0x61,0x75,0x74,0x6f]);}}function _0x1123f2(_0x58fa6e){const _0x41e596=[new window[(_0x26c1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43e79b=>setTimeout(_0x43e79b,0x3d1ee13^_0x462fb8)),_0xb14a2a[_0x26c1bd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x26c1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b3c65=>{let _0x200473=0x0;_0x85dcdd[_0x26c1bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x26c1bd([0x6f,0x6e])](_0x26c1bd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3558bb,_0x149c96)=>{_0x149c96[0x0][_0x26c1bd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x200473++,_0x200473==(0x3d8d537^_0x462fb8)&&(_0x5b3c65(),_0x3558bb[_0x26c1bd([0x6f,0x66,0x66])]());});}))];return window[_0x26c1bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26c1bd([0x72,0x61,0x63,0x65])](_0x41e596)[_0x26c1bd([0x74,0x68,0x65,0x6e])](()=>_0x58fa6e);}async function _0x42217f(){await _0xb14a2a,_0x85dcdd[_0x26c1bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x26c1bd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2fdcd5,_0x85dcdd[_0x26c1bd([0x6d,0x6f,0x64,0x65,0x6c])][_0x26c1bd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2fdcd5,_0x85dcdd[_0x26c1bd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x26c1bd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a2e6a(){return _0x1c7714(_0x26c1bd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2e7cf9(_0x26c1bd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x26c1bd([0x73,0x74,0x61,0x74,0x65])]==_0x26c1bd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x401fdc(){return _0x1c7714(_0x26c1bd([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 _0x2ba48e(){return _0x1c7714(_0x26c1bd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x298a09(_0x3694b5){const _0x51ea27=_0x3fbf56();_0x85dcdd[_0x51ea27]=_0x26c1bd([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3694b5,_0x3694b5!=_0x26c1bd([0x56,0x61,0x6c,0x69,0x64])&&_0x42217f();}function _0x3fbf56(){const _0x472ec9=window[_0x26c1bd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x26c1bd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x26c1bd([0x6e,0x6f,0x77])]())[_0x26c1bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x26c1bd([0x2e]),'');let _0x5aeef9=_0x26c1bd([0x52]);for(let _0x218ffa=0x0;_0x218ffa<_0x472ec9[_0x26c1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x218ffa+=0x2){let _0x5e48ae=window[_0x26c1bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x472ec9[_0x26c1bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x218ffa,_0x218ffa+0x2));_0x5e48ae>=_0x34d781[_0x26c1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e48ae-=_0x34d781[_0x26c1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5aeef9+=_0x34d781[_0x5e48ae];}return _0x5aeef9;}function _0x3bd5b8(){const _0x4322ed=_0xb34933[_0x26c1bd([0x73,0x70,0x6c,0x69,0x74])](_0x26c1bd([0x2e]));if(0x3!=_0x4322ed[_0x26c1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x289205(_0x4322ed[0x1]);function _0x289205(_0x39b3ae){const _0x1889db=_0x20c7ff(_0x39b3ae);return _0x1889db&&_0x22a351()?_0x1889db:null;function _0x22a351(){const _0x59be40=_0x1889db[_0x26c1bd([0x6a,0x74,0x69])],_0x48f90e=window[_0x26c1bd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59be40[_0x26c1bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59be40[_0x26c1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3d0f9f={..._0x1889db,[_0x26c1bd([0x6a,0x74,0x69])]:_0x59be40[_0x26c1bd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59be40[_0x26c1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3d0f9f[_0x26c1bd([0x76,0x63])],_0x21e9ee(_0x3d0f9f)==_0x48f90e;}}}async function _0x2fd2ce(){let _0x56103d=!0x0;try{const _0x9950e=_0xb34933[_0x26c1bd([0x73,0x70,0x6c,0x69,0x74])](_0x26c1bd([0x2e])),[_0x27f56e,_0x819e09,_0x477167]=_0x9950e;return _0x2ed532(_0x27f56e),await _0x45be7c(_0x27f56e,_0x819e09,_0x477167),_0x56103d;}catch{return!0x1;}function _0x2ed532(_0x3ea582){const _0x1024d0=_0x20c7ff(_0x3ea582);_0x1024d0&&_0x1024d0[_0x26c1bd([0x61,0x6c,0x67])]==_0x26c1bd([0x45,0x53,0x32,0x35,0x36])||(_0x56103d=!0x1);}async function _0x45be7c(_0x3cbaa0,_0x1f5ae5,_0xc675de){const _0x258d01=window[_0x26c1bd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x26c1bd([0x66,0x72,0x6f,0x6d])](_0x386322(_0xc675de),_0x3655ae=>_0x3655ae[_0x26c1bd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39fd1a=new window[(_0x26c1bd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x26c1bd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3cbaa0+_0x26c1bd([0x2e])+_0x1f5ae5),_0x30aec3=window[_0x26c1bd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x26c1bd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30aec3)return;const _0x389620=await _0x30aec3[_0x26c1bd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x26c1bd([0x6a,0x77,0x6b]),_0x25d933,{[_0x26c1bd([0x6e,0x61,0x6d,0x65])]:_0x26c1bd([0x45,0x43,0x44,0x53,0x41]),[_0x26c1bd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x26c1bd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x26c1bd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30aec3[_0x26c1bd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x26c1bd([0x6e,0x61,0x6d,0x65])]:_0x26c1bd([0x45,0x43,0x44,0x53,0x41]),[_0x26c1bd([0x68,0x61,0x73,0x68])]:{[_0x26c1bd([0x6e,0x61,0x6d,0x65])]:_0x26c1bd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x389620,_0x258d01,_0x39fd1a)||(_0x56103d=!0x1);}}function _0x20c7ff(_0x2f957b){return _0x2f957b[_0x26c1bd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x26c1bd([0x65,0x79]))?JSON[_0x26c1bd([0x70,0x61,0x72,0x73,0x65])](_0x386322(_0x2f957b)):null;}function _0x386322(_0x253c89){return window[_0x26c1bd([0x61,0x74,0x6f,0x62])](_0x253c89[_0x26c1bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x26c1bd([0x2b]))[_0x26c1bd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x26c1bd([0x2f])));}function _0x21e9ee(_0x146867){let _0x14855a=0x1505;function _0x2916ff(_0x3ef9f1){for(let _0x215a37=0x0;_0x215a37<_0x3ef9f1[_0x26c1bd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x215a37++){const _0x42e5db=_0x3ef9f1[_0x26c1bd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x215a37);_0x14855a=(_0x14855a<<0x5)+_0x14855a+_0x42e5db,_0x14855a&=_0x14855a;}}function _0x37e706(_0x1b85c){Array[_0x26c1bd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b85c)?_0x1b85c[_0x26c1bd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37e706):_0x1b85c&&typeof _0x1b85c==_0x26c1bd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x26c1bd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b85c)[_0x26c1bd([0x73,0x6f,0x72,0x74])]()[_0x26c1bd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43a444,_0x46e07d])=>{_0x2916ff(_0x43a444),_0x37e706(_0x46e07d);}):_0x2916ff(window[_0x26c1bd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b85c));}return _0x37e706(_0x146867),_0x14855a>>>0x0;}function _0x51e06c(_0x14f467){return _0x14f467[_0x26c1bd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x26c1bd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x26c1bd([0x30]));}function _0x311f4c(_0x46a7e9){return _0x46a7e9[_0x26c1bd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x26c1bd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x26c1bd([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c7714(_0x1d7d20){return _0x85dcdd[_0x26c1bd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x26c1bd([0x68,0x61,0x73])](_0x1d7d20);}function _0x2e7cf9(_0x487c20){return _0x85dcdd[_0x26c1bd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x26c1bd([0x67,0x65,0x74])](_0x487c20);}function _0x2fdcd5(){}function _0x26c1bd(_0x3a08d8){return _0x3a08d8['map'](_0x5b8d7c=>String['fromCharCode'](_0x5b8d7c))['join']('');}_0x298a09(await _0x338144());}(this);}set['adapter'](_0x41f597){if(this['_adapter'])throw new _0x24cfe7('track-changes-adapter-already-set',this);this['_adapter']=_0x41f597;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3d41d3=!0x1,toJSON:_0x24b54a=!0x1}={}){const _0x23227e=[];for(const _0x740b1d of this['_suggestions']['values']())_0x3d41d3&&!_0x740b1d['isInContent']||_0x23227e['push'](_0x740b1d);return _0x24b54a?_0x23227e['map'](_0x36cf04=>_0x36cf04['toJSON']()):_0x23227e;}['getSuggestion'](_0x2d2571){const _0x14ec20=this['_suggestions']['get'](_0x2d2571);if(!_0x14ec20)throw new _0x24cfe7('track-changes-suggestion-not-found',this);return _0x14ec20;}['hasSuggestion'](_0x27775f){return this['_suggestions']['has'](_0x27775f);}['addSuggestionData'](_0x3f9db6){const {authorId:_0x4638e1,id:_0x290900,originalSuggestionId:_0x4f1c8c,attributes:_0x1195f4}=_0x3f9db6,[_0x56087c,_0x5c9a6b]=_0x3f9db6['type']['split'](':'),_0x295c41=this['_suggestions']['get'](_0x290900)||this['_createSuggestion'](_0x56087c,_0x5c9a6b,_0x290900,_0x4638e1,_0x1195f4,_0x4f1c8c);if(this['_addThreadToSuggestion'](_0x295c41),this['_checkSuggestionCorrectness'](_0x295c41,_0x56087c,_0x5c9a6b||null,_0x4638e1),_0x295c41['createdAt']=_0x3f9db6['createdAt'],_0x295c41['_isDataLoaded']=!0x0,_0x1195f4&&_0x1195f4['@external']){const _0x1e5d47=_0x1195f4['@external'],_0x7192a6=this['_getExternalAuthor'](_0x1e5d47['authorName']);_0x295c41['authoredAt']=_0x1e5d47['createdAt'],_0x295c41['author']=_0x7192a6,_0x295c41['isExternal']=!0x0;}else _0x295c41['authoredAt']=_0x3f9db6['createdAt'];switch(_0x3f9db6['data']&&(_0x295c41['data']=_0x3f9db6['data']),_0x3f9db6['attributes']&&(_0x295c41['attributes']=_0x3f9db6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x295c41['_saved']=!0x0),this['_suggestionState']['get'](_0x295c41)){case'notReady':this['_suggestionState']['set'](_0x295c41,'dataReady');break;case'markerReady':_0x295c41['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x295c41])),this['_refreshSuggestionsChain'](new Set([_0x295c41])),this['_suggestionState']['set'](_0x295c41,'ready'),this['fire']('suggestionLoaded',_0x295c41)):this['_suggestionState']['set'](_0x295c41,'removed');}return _0x295c41;}['acceptSuggestion'](_0x68d09a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x24e464 of _0x68d09a['getAllAdjacentSuggestions']())_0x24e464['accept']();});});}['discardSuggestion'](_0x4b7792){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c7345 of _0x4b7792['getAllAdjacentSuggestions']())_0x2c7345['discard']();});});}['enableCommand'](_0x2d1588,_0x85cbf3){const _0xa8492f=this['editor']['commands']['get'](_0x2d1588);if(!_0xa8492f)throw new _0x24cfe7('track-changes-command-not-found',this,{'commandName':_0x2d1588});if(this['_enabledCommands']['has'](_0xa8492f))throw new _0x24cfe7('track-changes-enable-command-twice',this,{'commandName':_0x2d1588});this['_enabledCommands']['add'](_0xa8492f),_0x85cbf3&&_0xa8492f['on']('execute',(_0x4e65ef,_0x3c858f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3c858f['length']>0x0&&_0x3c858f[_0x3c858f['length']-0x1]&&_0x3c858f[_0x3c858f['length']-0x1]['forceDefaultExecution']?_0x3c858f['pop']():(_0x4e65ef['return']=_0x85cbf3((..._0x512525)=>_0xa8492f['execute'](..._0x512525,{'forceDefaultExecution':!0x0}),..._0x3c858f),_0x4e65ef['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2f4740){let _0x1e7806,_0x43d093;const _0x79e646=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1e7806=_0x2f4740();}catch(_0x9f0b5b){_0x43d093=_0x9f0b5b;}return _0x79e646||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x43d093&&_0x24cfe7['rethrowUnexpectedError'](_0x43d093,this),_0x1e7806;}['markInsertion'](_0x21ea25,_0x162964=null,_0x387140={}){if(_0x21ea25['isCollapsed'])return null;const _0x3b5a5a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x387140['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2ac2db,meta:_0x3d44b9}of this['_findSuggestions'](_0x21ea25,'insertion'))if(_0x3d44b9['isOwn']){if(!_0x3d44b9['isNextTo']){if(_0x3d44b9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!en(_0x2ac2db,_0x387140))continue;return _0x2ac2db;}if(en(_0x2ac2db,_0x387140))return _0x2ac2db;this['_breakSuggestionMarker'](_0x2ac2db,_0x21ea25['start'],_0x21ea25['end']);break;}if(_0x162964==_0x2ac2db['subType']&&en(_0x2ac2db,_0x387140)){const _0x282315=_0x2ac2db['getFirstRange']();return _0x282315['start']['isEqual'](_0x21ea25['end'])?this['_setSuggestionRange'](_0x2ac2db,this['_model']['createRange'](_0x21ea25['start'],_0x282315['end'])):this['_setSuggestionRange'](_0x2ac2db,this['_model']['createRange'](_0x282315['start'],_0x21ea25['end'])),_0x2ac2db;}}const _0x5292aa=_0x3412ef(),_0x143459=_0x3b5a5a['id'],_0x11d15c=_0x162964?'insertion:'+_0x162964:'insertion',_0x5e2036=this['_setSuggestionData']({'id':_0x5292aa,'type':_0x11d15c,'createdAt':new Date(),'authorId':_0x143459,'attributes':_0x387140});return this['_addSuggestionMarker'](_0x11d15c,_0x5292aa,_0x143459,_0x21ea25),_0x5e2036;}['markMultiRangeInsertion'](_0x4f6391,_0x5dffcc='multi',_0x13ceb8={}){const _0x2fca78=this['editor']['plugins']['get']('Users')['me'],_0x15ee2c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5dffcc,'join');this['_trackingSessionId']&&(_0x13ceb8['trackingSessionId']=this['_trackingSessionId']);for(const _0x44a536 of this['getSuggestions']())if(_0x44a536['author']['id']==_0x2fca78['id']&&'insertion'==_0x44a536['type']&&_0x44a536['subType']==_0x5dffcc&&en(_0x44a536,_0x13ceb8)&&(_0x15ee2c(_0x44a536['getRanges'](),_0x4f6391)||_0x15ee2c(_0x4f6391,_0x44a536['getRanges']()))){for(const _0x288e07 of _0x4f6391)_0x44a536['addRange'](_0x288e07);return _0x44a536;}for(const {suggestion:_0x1a6177,meta:_0x2bc79e}of this['_findSuggestions'](_0x4f6391,'insertion')){if(!_0x2bc79e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2bc79e['containsRangeInObject'])continue;if(!en(_0x1a6177,_0x13ceb8))continue;let _0xb85fba=!0x0;for(const _0x34964c of _0x1a6177['getRanges']())for(const _0x3e974b of _0x4f6391)if(!_0x34964c['containsRange'](_0x3e974b)){_0xb85fba=!0x1;break;}if(_0xb85fba)return _0x1a6177;}const _0x3c7a9f=_0x3412ef(),_0x294119=_0x2fca78['id'],_0x12deee='insertion:'+_0x5dffcc,_0x120a81=this['_setSuggestionData']({'id':_0x3c7a9f,'type':_0x12deee,'createdAt':new Date(),'authorId':_0x294119,'attributes':_0x13ceb8});for(const _0x40e69f of _0x4f6391)this['_addSuggestionMarker'](_0x12deee,_0x3c7a9f,_0x294119,_0x40e69f,T['getMultiRangeId']());return _0x120a81;}['markInlineFormat'](_0x29c82b,_0x2c7c6f,_0x307958=null,_0x202e89={}){if(_0x307958=_0x307958||Wt(_0x2c7c6f),_0x29c82b['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x202e89['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x39f42a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x307958,'accept');return this['forceDefaultExecution'](()=>_0x39f42a([_0x29c82b],_0x2c7c6f,_0x202e89)),null;}const _0xb9356b=this['editor']['plugins']['get']('Users')['me'],_0x41e56c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xa6e730,meta:_0xd8a0c1}of this['_findSuggestions'](_0x29c82b,'insertion'))_0xd8a0c1['isOwn']&&!_0xd8a0c1['isInsideObject']&&_0x41e56c['push'](..._0xa6e730['getRanges']());}const _0x5b1608=function(_0x39108c,_0x5e6bc2){const _0x587e26=[];for(const _0x5633a5 of _0x5e6bc2){const _0x36c3c5=_0x39108c['getIntersection'](_0x5633a5);_0x36c3c5&&_0x587e26['push'](_0x36c3c5);}return _0x587e26;}(_0x29c82b,_0x41e56c),_0x45079f=function(_0x3923e5,_0x5349af){const _0x185d70=[_0x3923e5];for(const _0x113a67 of _0x5349af){let _0x56bb09=0x0;for(;_0x56bb09<_0x185d70['length'];){const _0xcee35e=_0x185d70[_0x56bb09]['getDifference'](_0x113a67);_0x185d70['splice'](_0x56bb09,0x1,..._0xcee35e),_0x56bb09+=_0xcee35e['length'];}}return _0x185d70;}(_0x29c82b,_0x41e56c);_0x5b1608['length']&&this['_model']['change'](()=>{for(const _0x34dac9 of _0x5b1608){const _0x18dad1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x307958,'accept');this['forceDefaultExecution'](()=>_0x18dad1([_0x34dac9],_0x2c7c6f,_0x202e89));}});for(const _0x222060 of _0x45079f){let _0x3c1217=null,_0x204eb7=_0x222060['start'],_0x584f5b=_0x222060['end'];for(const {suggestion:_0x2cbc48,meta:_0x79d543}of this['_findSuggestions'](_0x222060,'formatInline')){if(!_0x79d543['isOwn'])continue;if(_0x2cbc48['subType']!=_0x307958)continue;if(!en(_0x2cbc48,_0x202e89))continue;const _0x3cf45a=_0x2cbc48['getFirstRange']();if(_0x3cf45a['containsRange'](_0x222060,!0x0))return null;_0x204eb7=_0x204eb7['isBefore'](_0x3cf45a['start'])?_0x204eb7:_0x3cf45a['start'],_0x584f5b=_0x584f5b['isAfter'](_0x3cf45a['end'])?_0x584f5b:_0x3cf45a['end'],_0x3c1217?_0x3cf45a['start']['isBefore'](_0x3c1217['getFirstRange']()['start'])?(_0x3c1217['removeMarkers'](),_0x3c1217=_0x2cbc48):_0x2cbc48['removeMarkers']():_0x3c1217=_0x2cbc48;}const _0x5c0767=this['_model']['createRange'](_0x204eb7,_0x584f5b);if(_0x3c1217)this['_setSuggestionRange'](_0x3c1217,_0x5c0767);else{const _0x186b0a=_0x3412ef(),_0x223f83=_0xb9356b['id'];this['_setSuggestionData']({'id':_0x186b0a,'type':'formatInline:'+_0x307958,'data':_0x2c7c6f,'createdAt':new Date(),'authorId':_0x223f83,'attributes':_0x202e89}),this['_addSuggestionMarker']('formatInline:'+_0x307958,_0x186b0a,_0x223f83,_0x5c0767);}}return null;}['markBlockFormat'](_0x38b186,_0x44c98e,_0x2c1294=[],_0x3e3fad=null,_0x5ed55d={}){_0x44c98e['formatGroupId']||(_0x44c98e['formatGroupId']=_0x44c98e['commandName']),_0x44c98e['multipleBlocks']=_0x38b186['is']('range'),_0x3e3fad=_0x3e3fad||Wt(_0x44c98e);const _0x6ea176=_0x2c1294['map'](_0x1730f0=>Zt(_0x1730f0,this['_model'])),_0x19fe7b=_0x38b186['is']('range')?_0x38b186:Zt(_0x38b186,this['_model']);if(this['_trackingSessionId']&&(_0x5ed55d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4531ae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e3fad,'accept');return this['forceDefaultExecution'](()=>_0x4531ae([_0x19fe7b],_0x44c98e,_0x5ed55d)),null;}_0x6ea176['push'](_0x19fe7b);let _0x3d8ab8=!0x0;for(const _0x1ca79b of _0x6ea176)if(!this['_rangeIsInLocalUserInsertion'](_0x1ca79b)){_0x3d8ab8=!0x1;break;}if(_0x3d8ab8&&'always'!==this['_trackFormatChanges']){const _0x25d105=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e3fad,'accept');return this['forceDefaultExecution'](()=>_0x25d105([_0x19fe7b],_0x44c98e,_0x5ed55d)),null;}let _0xb08c37=null,_0x470aea=_0x19fe7b['start'],_0x4ca205=_0x19fe7b['end'];for(const {suggestion:_0x2b1dc7,meta:_0xedbf52}of this['_findSuggestions'](_0x19fe7b,'formatBlock')){if(!_0xedbf52['isOwn'])continue;if(_0xedbf52['isNextTo']||_0xedbf52['containsRangeInObject']||_0xedbf52['isInsideObject'])continue;if(_0x2b1dc7['data']['formatGroupId']!=_0x44c98e['formatGroupId'])continue;if(!en(_0x2b1dc7,_0x5ed55d))continue;const _0x2317f0=_0x2b1dc7['getFirstRange']();if(_0x2b1dc7['subType']==_0x3e3fad){if(_0x2317f0['containsRange'](_0x19fe7b,!0x0))return null;_0x470aea=_0x470aea['isBefore'](_0x2317f0['start'])?_0x470aea:_0x2317f0['start'],_0x4ca205=_0x4ca205['isAfter'](_0x2317f0['end'])?_0x4ca205:_0x2317f0['end'],_0xb08c37?_0x2317f0['start']['isBefore'](_0xb08c37['getFirstRange']()['start'])?(_0xb08c37['removeMarkers'](),_0xb08c37=_0x2b1dc7):_0x2b1dc7['removeMarkers']():_0xb08c37=_0x2b1dc7;}else{const _0x3dec75=_0x19fe7b['getIntersection'](_0x2317f0);this['_cutOutSuggestionMarker'](_0x2b1dc7,_0x3dec75);}}const _0x411b54=this['editor']['plugins']['get']('Users')['me'],_0x7468cd=_0x3412ef(),_0x490ccf=_0x411b54['id'];if(_0xb08c37)return this['_setSuggestionRange'](_0xb08c37,this['_model']['createRange'](_0x470aea,_0x4ca205)),_0xb08c37;{const _0x4b6763=this['_setSuggestionData']({'id':_0x7468cd,'type':'formatBlock:'+_0x3e3fad,'data':_0x44c98e,'createdAt':new Date(),'authorId':_0x490ccf,'attributes':_0x5ed55d});return this['_addSuggestionMarker']('formatBlock:'+_0x3e3fad,_0x7468cd,_0x490ccf,this['_model']['createRange'](_0x470aea,_0x4ca205)),_0x4b6763;}}['markMultiRangeBlockFormat'](_0x784148,_0x1e2885,_0x5495e7=[],_0x346815=null,_0x27bd19={}){_0x1e2885['formatGroupId']||(_0x1e2885['formatGroupId']=_0x1e2885['commandName']);const _0x473d5d=_0x784148[0x0];_0x1e2885['multipleBlocks']=_0x473d5d['is']('range'),_0x346815=_0x346815||Wt(_0x1e2885);const _0x259e90=_0x5495e7['map'](_0x205f26=>Zt(_0x205f26,this['_model'])),_0x138b50=_0x473d5d['is']('range')?_0x784148:_0x784148['map'](_0x3cdb52=>Zt(_0x3cdb52,this['_model']));if(this['_trackingSessionId']&&(_0x27bd19['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3d1288=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x346815,'accept');return this['forceDefaultExecution'](()=>_0x3d1288(_0x138b50,_0x1e2885,_0x27bd19)),null;}_0x259e90['push'](..._0x138b50);let _0x4a5d73=!0x0;for(const _0x377b9 of _0x259e90)if(!this['_rangeIsInLocalUserInsertion'](_0x377b9)){_0x4a5d73=!0x1;break;}if(_0x4a5d73&&'always'!==this['_trackFormatChanges']){const _0x137906=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x346815,'accept');return this['forceDefaultExecution'](()=>_0x137906(_0x138b50,_0x1e2885,_0x27bd19)),null;}const _0x2e3aac=this['editor']['plugins']['get']('Users')['me'];for(const _0x8eee2d of this['getSuggestions']()){const _0x8c0ed=_0x8eee2d['data'];if(_0x8eee2d['author']['id']!=_0x2e3aac['id'])continue;if('formatBlock'!=_0x8eee2d['type']||_0x8c0ed['formatGroupId']!=_0x1e2885['formatGroupId'])continue;if(!en(_0x8eee2d,_0x27bd19))continue;const _0xdddbd=_0x8eee2d['subType']==_0x346815;for(let _0x5c4d73=0x0;_0x5c4d73<_0x138b50['length'];_0x5c4d73++){const _0x39488e=_0x138b50[_0x5c4d73];for(const _0x2821bc of _0x8eee2d['getMarkers']()){const _0x46c267=_0x2821bc['getRange']();if(_0x39488e['isEqual'](_0x46c267)){_0xdddbd?(_0x138b50['splice'](_0x5c4d73,0x1),_0x5c4d73--):_0x8eee2d['removeMarker'](_0x2821bc['name']);break;}}}}if(0x0==_0x138b50['length'])return null;const _0x17fd59=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x346815,'join');for(const _0x4d853f of this['getSuggestions']()){const _0x4a0264=_0x4d853f['data'];if(_0x4d853f['author']['id']==_0x2e3aac['id']&&('formatBlock'==_0x4d853f['type']&&_0x4a0264['formatGroupId']==_0x1e2885['formatGroupId']&&_0x4d853f['subType']==_0x346815&&en(_0x4d853f,_0x27bd19)&&(_0x17fd59(_0x4d853f['getRanges'](),_0x138b50)||_0x17fd59(_0x138b50,_0x4d853f['getRanges']())))){for(const _0x1b08a2 of _0x138b50)_0x4d853f['addRange'](_0x1b08a2);return _0x4d853f;}}const _0x2685e1=_0x3412ef(),_0x589ad7=_0x2e3aac['id'],_0x154a90='formatBlock:'+_0x346815,_0x5c2945=this['_setSuggestionData']({'id':_0x2685e1,'type':_0x154a90,'data':_0x1e2885,'createdAt':new Date(),'authorId':_0x589ad7,'attributes':_0x27bd19});for(const _0x543b5 of _0x138b50)this['_addSuggestionMarker'](_0x154a90,_0x2685e1,_0x589ad7,_0x543b5,T['getMultiRangeId']());return _0x5c2945;}['markDeletion'](_0x5a9635,_0xa8f27=null,_0x10c8de={}){if(_0x5a9635['isCollapsed'])return null;const _0x40684e=this['editor']['plugins']['get']('Users')['me'],_0x3ffa91=new _0x6f966d(_0x5a9635['start'],_0x5a9635['end']);this['_trackingSessionId']&&(_0x10c8de['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x50abde,meta:_0x3dc64d}of this['_findSuggestions'](_0x3ffa91,'insertion'))if(_0x3dc64d['isOwn']&&!_0x3dc64d['isNextTo']){if(_0x50abde['isMultiRange']){const _0x302a2f=_0x50abde['getRanges']()['filter'](_0x4c9b85=>'$graveyard'!=_0x4c9b85['root']['rootName']);_0x302a2f['every'](_0x46cdbc=>_0x3ffa91['containsRange'](_0x46cdbc,!0x0))&&_0x50abde['discard']();if(_0x302a2f['some'](_0x276b5a=>_0x276b5a['containsRange'](_0x3ffa91,!0x0))){const _0x410208=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa8f27,'accept');return this['forceDefaultExecution'](()=>_0x410208([_0x3ffa91],null,_0x10c8de)),null;}}else{const _0x14d52a=_0x3ffa91['getIntersection'](_0x50abde['getFirstRange']());null!==_0x14d52a&&_0x50abde['_onDiscard']([_0x14d52a],null,_0x10c8de);}}if(_0x3ffa91['detach'](),_0x3ffa91['isCollapsed']||'$graveyard'==_0x3ffa91['root']['rootName'])return null;let _0x11f121=null,_0xffd196=_0x3ffa91['start'],_0xbe7809=_0x3ffa91['end'];const _0x154854=this['_findSuggestions'](_0x3ffa91,'deletion');for(const {suggestion:_0x20c84,meta:_0x3d766b}of _0x154854){const _0x219ab2=this['_model']['createRange'](_0xffd196,_0xbe7809);if(_0x3d766b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3d766b['containsRangeInObject']&&!_0x3d766b['isInsideObject'])){if(_0x20c84['isMultiRange']){if(!en(_0x20c84,_0x10c8de))continue;let _0x41c182=!0x0;for(const _0x157554 of _0x20c84['getRanges']()){if(_0x157554['containsRange'](_0x219ab2,!0x0))return _0x20c84;_0x219ab2['containsRange'](_0x157554)||(_0x41c182=!0x1);}_0x41c182&&_0x20c84['discard']();}else{const _0x4ce197=_0x20c84['getFirstRange']();if(_0x4ce197['containsRange'](_0x219ab2,!0x0))return _0x20c84;if(!en(_0x20c84,_0x10c8de)){_0x219ab2['containsRange'](_0x4ce197)?_0x20c84['removeMarkers']():_0x4ce197['containsPosition'](_0xffd196)?_0xffd196=_0x4ce197['end']:_0x4ce197['containsPosition'](_0xbe7809)&&(_0xbe7809=_0x4ce197['start']);continue;}_0xffd196=_0xffd196['isBefore'](_0x4ce197['start'])?_0xffd196:_0x4ce197['start'],_0xbe7809=_0xbe7809['isAfter'](_0x4ce197['end'])?_0xbe7809:_0x4ce197['end'],_0x10c8de=Object['assign']({},_0x20c84['attributes']),_0x11f121?_0x4ce197['start']['isBefore'](_0x11f121['getFirstRange']()['start'])?(_0x11f121['removeMarkers'](),_0x11f121=_0x20c84):_0x20c84['removeMarkers']():_0x11f121=_0x20c84;}}}if(_0x11f121)return this['_setSuggestionRange'](_0x11f121,this['_model']['createRange'](_0xffd196,_0xbe7809)),_0x11f121;{const _0x20643f=_0x3412ef(),_0x310af9=this['_model']['createRange'](_0xffd196,_0xbe7809),_0x18402e=_0x40684e['id'],_0x2ae3b5=_0xa8f27?'deletion:'+_0xa8f27:'deletion',_0x42c425=this['_setSuggestionData']({'id':_0x20643f,'type':_0x2ae3b5,'createdAt':new Date(),'authorId':_0x18402e,'attributes':_0x10c8de});return this['_addSuggestionMarker'](_0x2ae3b5,_0x20643f,_0x18402e,_0x310af9),_0x42c425;}}['markMultiRangeDeletion'](_0x1f8b16,_0x49629a='multi',_0x5e1311={}){const _0x1cd3fc=this['editor']['plugins']['get']('Users')['me'],_0x297218=_0x1f8b16['map'](_0x4f4022=>new _0x6f966d(_0x4f4022['start'],_0x4f4022['end'])),_0x4c49ff=new Set();this['_trackingSessionId']&&(_0x5e1311['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4d237b,meta:_0xa93f15}of this['_findSuggestions'](_0x297218,'insertion'))_0xa93f15['isOwn']&&!_0xa93f15['isNextTo']&&_0x4c49ff['add'](_0x4d237b);for(const _0x3dfc0e of _0x4c49ff)if(_0x3dfc0e['isMultiRange']){const _0x104fb2=_0x3dfc0e['getRanges']();(!_0x3dfc0e['attributes']||!_0x3dfc0e['attributes']['skipNestingCheck'])&&(_0x104fb2['every'](_0x488b4d=>_0x297218['some'](_0xafddc2=>_0xafddc2['containsRange'](_0x488b4d,!0x0)))&&_0x3dfc0e['discard']());if(_0x297218['every'](_0x12c5ef=>_0x104fb2['some'](_0x9b6347=>_0x9b6347['containsRange'](_0x12c5ef,!0x0)))){const _0x5bb4aa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x49629a,'accept');return this['forceDefaultExecution'](()=>_0x5bb4aa(_0x1f8b16,null,_0x5e1311)),null;}}else{const _0x32dcc7=_0x3dfc0e['getFirstRange']();_0x297218['some'](_0x146f0c=>_0x146f0c['containsRange'](_0x32dcc7,!0x0))&&_0x3dfc0e['discard']();if(_0x297218['every'](_0x11f1c4=>_0x32dcc7['containsRange'](_0x11f1c4,!0x0))){const _0x20da1c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x49629a,'accept');return this['forceDefaultExecution'](()=>_0x20da1c(_0x297218,null,_0x5e1311)),null;}}const _0x31bcaf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x49629a,'join');let _0x1b1894=null;for(const _0x3beb4b of this['getSuggestions']())if(_0x3beb4b['author']['id']==_0x1cd3fc['id']&&_0x3beb4b['isInContent']&&'deletion'==_0x3beb4b['type']&&_0x3beb4b['subType']==_0x49629a&&en(_0x3beb4b,_0x5e1311)&&(_0x31bcaf(_0x3beb4b['getRanges'](),_0x297218)||_0x31bcaf(_0x297218,_0x3beb4b['getRanges']()))){if(_0x1b1894){if(_0x3beb4b['commentThread']&&_0x3beb4b['commentThread']['length'])continue;for(const _0x2e0e3e of _0x3beb4b['getRanges']())_0x1b1894['isIntersectingWithRange'](_0x2e0e3e)||_0x1b1894['addRange'](_0x2e0e3e);_0x3beb4b['removeMarkers']();}else{_0x1b1894=_0x3beb4b;for(const _0x301a40 of _0x297218)_0x3beb4b['isIntersectingWithRange'](_0x301a40)||_0x3beb4b['addRange'](_0x301a40);}}if(_0x1b1894)return _0x1b1894;_0x4c49ff['clear']();for(const {suggestion:_0x59d885,meta:_0x4f2afa}of this['_findSuggestions'](_0x297218,'deletion'))_0x4f2afa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4f2afa['containsRangeInObject']&&!_0x4f2afa['isInsideObject'])&&en(_0x59d885,_0x5e1311)&&_0x4c49ff['add'](_0x59d885);for(const _0x25ff6f of _0x4c49ff){const _0x27e687=_0x25ff6f['getRanges']();if(!_0x5e1311||!_0x5e1311['skipNestingCheck']){if(_0x297218['every'](_0x12acfb=>_0x27e687['some'](_0xc6a0d8=>_0xc6a0d8['containsRange'](_0x12acfb,!0x0))))return _0x25ff6f;}(!_0x25ff6f['attributes']||!_0x25ff6f['attributes']['skipNestingCheck'])&&(_0x27e687['every'](_0x10fe39=>_0x297218['some'](_0x585e25=>_0x585e25['containsRange'](_0x10fe39,!0x0)))&&_0x25ff6f['discard']());}const _0x5c0b9b=_0x3412ef(),_0x3f103d=_0x1cd3fc['id'],_0x588f08='deletion:'+_0x49629a,_0x593a68=this['_setSuggestionData']({'id':_0x5c0b9b,'type':_0x588f08,'createdAt':new Date(),'authorId':_0x3f103d,'attributes':_0x5e1311});for(const _0x4e04f4 of _0x297218)_0x4e04f4['detach'](),_0x4e04f4['isCollapsed']||'$graveyard'==_0x4e04f4['root']['rootName']||this['_addSuggestionMarker'](_0x588f08,_0x5c0b9b,_0x3f103d,_0x4e04f4,T['getMultiRangeId']());return _0x593a68;}['markAttributeChange'](_0x5279a9,_0x41de4e,_0x1b5dcd,_0x31ca85,_0x42a541){if(_0x5279a9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xe86566=this['editor']['plugins']['get']('Users')['me']['id'],_0x48aa65=Array['from'](this['_suggestions']['values']())['filter'](_0x131118=>'attribute'==_0x131118['type']&&_0x131118['data']['key']==_0x41de4e&&_0x131118['isIntersectingWithRange'](_0x5279a9));if(this['_trackingSessionId']&&(_0x42a541['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x53b9b1=this['_findSuggestions'](_0x5279a9,'insertion')['filter'](({meta:_0x4836e8})=>_0x4836e8['isOwn']&&!_0x4836e8['isInsideObject']&&!_0x4836e8['isNextTo'])['map'](({suggestion:_0x312c11})=>_0x312c11);_0x48aa65['unshift'](..._0x53b9b1);}const _0x4b9cbd=new Map([[_0x5279a9,_0x1b5dcd]]);for(const _0x71f20 of _0x48aa65){const _0x18b116='attribute'==_0x71f20['type']?_0x71f20['data']['oldValue']:void 0x0,_0x29689a=_0x71f20['getFirstRange'](),_0x1e6184=Array['from'](_0x4b9cbd['keys']())['find'](_0x2a5507=>_0x2a5507['isIntersecting'](_0x29689a));if(!_0x1e6184)continue;const _0x1b216f=_0x1e6184['getDifference'](_0x29689a);this['_isBlockAttribute'](_0x41de4e)&&'insertion'==_0x71f20['type']&&0x0!=_0x1b216f['length']||(_0x4b9cbd['delete'](_0x1e6184),_0x1b216f['forEach'](_0x5d7f5b=>{_0x4b9cbd['set'](_0x5d7f5b,_0x1b5dcd);}),'insertion'!=_0x71f20['type']&&_0x18b116!=_0x31ca85&&_0x4b9cbd['set'](_0x1e6184['getIntersection'](_0x29689a),_0x18b116));}const _0x41fb53=[];for(const [_0x5d4b42,_0x1361e5]of _0x4b9cbd){const _0x3bda94=_0x3412ef(),_0x9e1575={'key':_0x41de4e,'oldValue':_0x1361e5,'newValue':_0x31ca85};_0x41de4e['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':_0x41de4e});const _0x165f06=('attribute:'+(_0x41de4e+'|'+Wt({'newValue':_0x31ca85})))['substring'](0x0,0x3c),_0x205611=this['_setSuggestionData']({'id':_0x3bda94,'type':_0x165f06,'data':_0x9e1575,'createdAt':new Date(),'authorId':_0xe86566,'attributes':_0x42a541});_0x41fb53['push'](_0x205611),this['_addSuggestionMarker'](_0x165f06,_0x3bda94,_0xe86566,_0x5d4b42);}return _0x41fb53;}['enableDefaultAttributesIntegration'](_0x560118){this['enableCommand'](_0x560118,(_0x59a19a,..._0x46d9de)=>{this['recordAttributeChanges'](()=>{_0x59a19a(..._0x46d9de);});});}['registerBlockAttribute'](_0x39e778){this['editor']['plugins']['get'](_0x4b540f)['registerBlockAttribute'](_0x39e778);}['registerInlineAttribute'](_0x4c1964){this['editor']['plugins']['get'](_0x4b540f)['registerInlineAttribute'](_0x4c1964);}['startTrackingSession'](_0x2d24d7){return this['_trackingSessionId']=void 0x0!==_0x2d24d7?_0x2d24d7:_0x3412ef(),this['_trackingSessionId'];}['_getAttributeKey'](_0x49e222){return'attribute'==_0x49e222['type']?_0x49e222['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x5d7beb){if(0x0==_0x5d7beb['length'])return;const _0x5662f8=this['editor'],_0x49ab62=_0x5662f8['plugins']['get'](_0x3436ad),_0x953ee7=[];_0x5662f8['model']['change'](_0x4afc09=>{for(let _0x265df0=0x0;_0x265df0<_0x5d7beb['length'];_0x265df0++){const _0x15f20c=_0x5d7beb[_0x265df0];if(_0x15f20c['baseVersion']=_0x5662f8['model']['document']['version'],_0x15f20c['isDocumentOperation']=!0x0,_0x49ab62['isMarkedRemoveOperation'](_0x15f20c)){const _0x1255f5=_0x22f27f(_0x15f20c['newRange'],_0x5662f8['model']);_0x953ee7['unshift'](_0x6f966d['fromRange'](_0x1255f5));}else switch(_0x15f20c['type']){case'rename':{const _0x40dd89=_0x15f20c['oldName'],_0x19a691=_0x15f20c['newName'];if(_0x40dd89==_0x19a691)break;_0x4afc09['batch']['addOperation'](_0x15f20c),_0x5662f8['model']['applyOperation'](_0x15f20c);const _0x5d339c='$elementName',_0x23b179=_0x15f20c['position'],_0x550d78=_0x5662f8['model']['createRange'](_0x23b179,_0x5662f8['model']['createPositionAt'](_0x23b179['nodeAfter'],'end'));this['markAttributeChange'](_0x550d78,_0x5d339c,_0x40dd89,_0x19a691,{'groupId':_0x3412ef()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4e0938=_0x15f20c['oldValue'],_0x465545=_0x15f20c['newValue'];if(_0x4e0938==_0x465545)break;_0x4afc09['batch']['addOperation'](_0x15f20c),_0x5662f8['model']['applyOperation'](_0x15f20c);const _0x1d6da1=_0x15f20c['key'];if(!this['_isRegisteredAttribute'](_0x1d6da1))break;const _0x2d276a=_0x22f27f(_0x15f20c['range'],_0x5662f8['model']);this['markAttributeChange'](_0x2d276a,_0x1d6da1,_0x4e0938,_0x465545,{'groupId':_0x3412ef()});break;}case'insert':{_0x4afc09['batch']['addOperation'](_0x15f20c),_0x5662f8['model']['applyOperation'](_0x15f20c);if(_0x5d7beb[_0x265df0+0x1]&&'move'==_0x5d7beb[_0x265df0+0x1]['type'])break;const _0x1448f9=_0x15f20c['position'],_0x133209=_0x15f20c['howMany'],_0x264988=_0x22f27f(_0x5662f8['model']['createRange'](_0x1448f9,_0x1448f9['getShiftedBy'](_0x133209)),_0x5662f8['model']);this['markInsertion'](_0x264988);break;}case'split':{_0x4afc09['batch']['addOperation'](_0x15f20c),_0x5662f8['model']['applyOperation'](_0x15f20c);const _0x5f518f=_0x15f20c['splitPosition'],_0x26290d=_0x15f20c['moveTargetPosition'];this['markInsertion'](_0x5662f8['model']['createRange'](_0x5f518f,_0x26290d));break;}case'move':case'remove':_0x4afc09['batch']['addOperation'](_0x15f20c),_0x5662f8['model']['applyOperation'](_0x15f20c);}}for(const _0x33f9c3 of _0x953ee7)_0x33f9c3['detach'](),this['markDeletion'](_0x33f9c3);});}['_setSuggestionRange'](_0x489ce7,_0x15dd91){const _0x25695e=_0x489ce7['getFirstMarker']();this['_model']['change'](_0x1bf7e5=>{_0x1bf7e5['updateMarker'](_0x25695e,{'range':_0x15dd91});});}['_addThreadToSuggestion'](_0x207845){const _0x5c0f49=_0x207845['id'],_0x320a0c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5c0f49)||this['_commentsRepository']['addCommentThread']({'channelId':_0x320a0c,'threadId':_0x5c0f49,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x25b902=this['_commentsRepository']['getCommentThread'](_0x5c0f49);_0x25b902['unbind']('isRemovable'),_0x25b902['isRemovable']=!0x1,_0x207845['commentThread']=_0x25b902;}['_checkSuggestionCorrectness'](_0x1c0112,_0x107b14,_0x1bd95c,_0x42cdf8){if(_0x1c0112['type']!=_0x107b14||_0x1c0112['subType']!=_0x1bd95c||_0x1c0112['creator']['id']!=_0x42cdf8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x24cfe7('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x30174b,_0x3d8c81){const _0x246088=_0x30174b['getFirstRange']();if(_0x3d8c81['isEqual'](_0x246088))_0x30174b['removeMarkers']();else{if(_0x246088['containsRange'](_0x3d8c81)){const _0xace31d=this['_model']['createPositionAt'](_0x3d8c81['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x30174b,this['_model']['createRange'](_0x246088['start'],_0xace31d));const _0x3a6fa5=_0x3412ef(),_0x2efe96=_0x30174b['creator']['id'],_0x34129d=_0x30174b['type']+':'+_0x30174b['subType'];this['_setSuggestionData']({'id':_0x3a6fa5,'type':_0x34129d,'createdAt':new Date(),'authorId':_0x2efe96,'data':_0x30174b['data'],'attributes':_0x30174b['attributes']});const _0x25c08b=this['_model']['createPositionAt'](_0x3d8c81['end']['parent'],'after'),_0xabed1c=this['_model']['createRange'](_0x25c08b,_0x246088['end']);this['_addSuggestionMarker'](_0x34129d,_0x3a6fa5,_0x2efe96,_0xabed1c);}else{if(_0x246088['containsPosition'](_0x3d8c81['start'])){const _0x2e145=this['_model']['createPositionAt'](_0x3d8c81['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x30174b,this['_model']['createRange'](_0x246088['start'],_0x2e145));}else{const _0x4131e5=this['_model']['createPositionAt'](_0x3d8c81['end']['parent'],'after');this['_setSuggestionRange'](_0x30174b,this['_model']['createRange'](_0x4131e5,_0x246088['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1dc289){for(const {suggestion:_0x570e0b,meta:_0x140b84}of this['_findSuggestions'](_0x1dc289,'insertion')){if(!_0x140b84['isOwn'])continue;const _0x533664=_0x570e0b['getRanges']();for(const _0x38ca96 of _0x533664)if(!_0x1dc289['getDifference'](_0x38ca96)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x391f17){return this['editor']['plugins']['get']('Users')['getUser'](_0x391f17);}['_getExternalAuthor'](_0x4ac0a6){const _0x50a5aa=this['editor']['plugins']['get']('Users'),_0x1b5f3b=_0x482fc4('external:'+_0x4ac0a6),_0x48f4ad=_0x50a5aa['getUser'](_0x1b5f3b);return _0x48f4ad||_0x50a5aa['addUser']({'id':_0x1b5f3b,'name':_0x4ac0a6});}['_createSuggestion'](_0x321ebb,_0xa759d1,_0x48c33a,_0x158b64,_0x7f66ad,_0x4834f8){const _0x1fc0de=this['_getAuthorFromId'](_0x158b64);if(!_0x1fc0de)throw new _0x24cfe7('track-changes-user-not-found',this,{'authorId':_0x158b64,'suggestionId':_0x48c33a});const _0x1dc75c=this['_suggestionFactory']['buildSuggestion'](_0x321ebb,_0xa759d1,_0x48c33a,_0x1fc0de,_0x7f66ad,_0x43fa0e=>{this['_updateSuggestionData'](_0x48c33a,{'attributes':_0x43fa0e});const _0x1569c6=this['getSuggestion'](_0x48c33a);this['_joinWithAdjacentSuggestions'](new Set([_0x1569c6])),this['_refreshSuggestionsChain'](new Set([_0x1569c6]));},_0x4834f8);return this['listenTo'](_0x1dc75c,'accept',()=>{this['_updateSuggestionData'](_0x48c33a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1dc75c,'discard',()=>{this['_updateSuggestionData'](_0x48c33a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x48c33a,_0x1dc75c),this['_suggestionState']['set'](_0x1dc75c,'notReady'),_0x1dc75c;}['_splitMarkerName'](_0x1de165){return _0x541f96(_0x1de165);}['_breakSuggestionMarker'](_0x591eda,_0x119f93,_0x4a53f0){const _0x2b8115=_0x591eda['getFirstRange'](),_0x34dfe8=_0x2b8115['start'],_0x223867=_0x2b8115['end'];this['_setSuggestionRange'](_0x591eda,this['_model']['createRange'](_0x34dfe8,_0x119f93));const _0x471c34=_0x3412ef(),_0x137a45=_0x591eda['creator']['id'],_0x4853d8=_0x591eda['type']+(_0x591eda['subType']?':'+_0x591eda['subType']:'');this['_setSuggestionData']({'id':_0x471c34,'type':_0x4853d8,'createdAt':new Date(),'authorId':_0x137a45,'originalSuggestionId':_0x591eda['_originalSuggestionId']||_0x591eda['id'],'attributes':_0x591eda['attributes'],'data':_0x591eda['data']});const _0x386fb4=this['_getAttributeKey'](_0x591eda);('formatBlock'==_0x591eda['type']||_0x386fb4&&this['_isBlockAttribute'](_0x386fb4))&&(_0x4a53f0=this['_model']['createPositionBefore'](_0x4a53f0['parent'])),this['_addSuggestionMarker'](_0x4853d8,_0x471c34,_0x137a45,this['_model']['createRange'](_0x4a53f0,_0x223867));}['_findSuggestions'](_0x1f1f28,_0x3c93c5=null){const _0x31d47e=[],_0x332a97=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1f1f28)||(_0x1f1f28=[_0x1f1f28]);for(const _0x13ccec of this['getSuggestions']()){if(!_0x13ccec['isInContent'])continue;if(_0x3c93c5&&_0x13ccec['type']!=_0x3c93c5)continue;let _0x2a1f6b=!0x1;for(const _0x4fc5f2 of _0x13ccec['getRanges']()){for(const _0x33b1dd of _0x1f1f28){const _0x3925a5=_0x33b1dd['start']['isEqual'](_0x4fc5f2['end'])||_0x33b1dd['end']['isEqual'](_0x4fc5f2['start']);if(_0x3925a5||_0x33b1dd['getIntersection'](_0x4fc5f2)){const _0x95601f=_0x33b1dd['containsRange'](_0x4fc5f2)&&qt(this['_model']['schema'],_0x4fc5f2['start'],_0x33b1dd),_0x5bcbc0=_0x4fc5f2['containsRange'](_0x33b1dd)&&qt(this['_model']['schema'],_0x33b1dd['start'],_0x4fc5f2);_0x31d47e['push']({'suggestion':_0x13ccec,'meta':{'isOwn':_0x332a97==_0x13ccec['author'],'isNextTo':_0x3925a5,'isInsideObject':_0x95601f,'containsRangeInObject':_0x5bcbc0}}),_0x2a1f6b=!0x0;break;}}if(_0x2a1f6b)break;}}return _0x31d47e;}['_addSuggestionMarker'](_0x16dba8,_0xe83331,_0x3ad98f,_0x55052d,_0x15d259){this['_model']['change'](_0x748223=>{let _0x177944='suggestion:'+_0x16dba8+':'+_0xe83331+':'+_0x3ad98f;_0x15d259&&(_0x177944=_0x177944+':'+_0x15d259),_0x748223['addMarker'](_0x177944,{'range':_0x55052d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x38efd1){const _0x50265a=_0x38efd1['previous'],_0x41da42=_0x38efd1['next'];_0x38efd1['previous']=null,_0x38efd1['next']=null,null!=_0x50265a&&_0x50265a['next']==_0x38efd1&&(_0x50265a['next']=_0x41da42),null!=_0x41da42&&_0x41da42['previous']==_0x38efd1&&(_0x41da42['previous']=_0x50265a),'ready'==this['_suggestionState']['get'](_0x38efd1)&&(this['_suggestionState']['set'](_0x38efd1,'removed'),this['fire']('suggestionUnloaded',_0x38efd1,_0x50265a,_0x41da42));}['_setSuggestionData'](_0x1ef50e){const _0x3fe701=_0x1ef50e['id'],_0x4409c9=this['addSuggestionData'](_0x1ef50e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x293469=this['editor']['plugins']['get']('PendingActions'),_0x568066=_0x4409c9['hasComments'],_0xcd3f0e=_0x4409c9['subType']?_0x4409c9['type']+':'+_0x4409c9['subType']:_0x4409c9['type'],_0x197e68=this['editor']['locale'],_0x5859ef=_0x293469['add'](o(_0x197e68,'PENDING_ACTION_SUGGESTION')),_0x382659={'id':_0x3fe701,'type':_0xcd3f0e,'hasComments':_0x568066,'data':_0x1ef50e['data']||null,'originalSuggestionId':_0x1ef50e['originalSuggestionId']||null,'attributes':_0x4409c9['attributes']};this['_adapter']['addSuggestion'](_0x382659)['then'](_0x38f1cc=>{_0x4409c9['_saved']=!0x0,_0x293469['remove'](_0x5859ef),_0x38f1cc&&_0x38f1cc['createdAt']&&(this['_suggestions']['get'](_0x3fe701)['createdAt']=_0x38f1cc['createdAt']);})['catch'](_0x37c19b=>{throw _0x324ef4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4409c9['discard']();}),_0x4409c9['stopListening'](),this['_suggestions']['delete'](_0x4409c9['id']),this['_suggestionState']['delete'](_0x4409c9),_0x37c19b;});}return _0x4409c9;}['_isBlockAttribute'](_0x252b87){return this['editor']['plugins']['get'](_0x4b540f)['isBlockAttribute'](_0x252b87);}['_isInlineAttribute'](_0x32f361){return this['editor']['plugins']['get'](_0x4b540f)['isInlineAttribute'](_0x32f361);}['_updateSuggestionData'](_0x4613b7,_0x49d8e0){const _0x2e09fc=this['editor']['plugins']['get']('PendingActions'),_0x44924b=this['getSuggestion'](_0x4613b7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x44924b['_saved']){const _0x4b5e9a=_0x2e09fc['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4613b7,_0x49d8e0)['then'](()=>{_0x2e09fc['remove'](_0x4b5e9a);});}else _0x44924b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4613b7,_0x49d8e0);});}}['_getSuggestionData'](_0x1dbeee){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x24cfe7('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1dbeee);}['_handleNewSuggestionMarker'](_0x168df1){const {id:_0x3f5f97,type:_0x453997,subType:_0x14eff7,authorId:_0x34b35f}=this['_splitMarkerName'](_0x168df1),_0x544ac2=this['_suggestions']['get'](_0x3f5f97)||this['_createSuggestion'](_0x453997,_0x14eff7,_0x3f5f97,_0x34b35f,{});switch(this['_checkSuggestionCorrectness'](_0x544ac2,_0x453997,_0x14eff7,_0x34b35f),this['_suggestionState']['get'](_0x544ac2)){case'notReady':this['_getSuggestionData'](_0x3f5f97)['then'](_0x74a04b=>{let _0x327b9c=Promise['resolve']();_0x74a04b['hasComments']&&(_0x327b9c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3f5f97})),_0x327b9c['then'](()=>{this['addSuggestionData'](_0x74a04b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x544ac2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3f5f97,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x544ac2,'ready'),this['fire']('suggestionLoaded',_0x544ac2);break;case'ready':this['fire']('suggestionChanged',_0x544ac2);}return _0x544ac2['addMarkerName'](_0x168df1),_0x544ac2;}['_refreshSuggestionsChain'](_0x9283c){const _0x486859=Array['from'](_0x9283c),_0x244e46=_0x486859['filter'](_0x56d9a5=>'attribute'==_0x56d9a5['type']);this['_refreshAttributeSuggestionsChain'](_0x244e46);const _0x546065=_0x486859['filter'](_0x1a2a08=>!_0x1a2a08['isMultiRange']&&'attribute'!=_0x1a2a08['type']),_0x6159dc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d8eb9=>!_0x2d8eb9['isMultiRange']&&'attribute'!=_0x2d8eb9['type']),_0x4ea468=_0x6159dc['filter'](_0x17fd26=>!_0x9283c['has'](_0x17fd26)),_0x17985f=new Map(_0x6159dc['map'](_0x4d0b3b=>[_0x4d0b3b,this['_suggestionFactory']['getSuggestionCallback'](_0x4d0b3b['type'],_0x4d0b3b['subType'],'chain')])),_0x4d5721=new Map(_0x6159dc['map'](_0x9bc4ab=>[_0x9bc4ab,_0x9bc4ab['getFirstRange']()])),_0x9a6589=new Set(),_0x4c1b22=new Set();for(let _0x5c3504=0x0;_0x5c3504<_0x546065['length'];_0x5c3504++)_0x5316c4(_0x546065[_0x5c3504],_0x546065,_0x5c3504+0x1);for(let _0x438881=0x0;_0x438881<_0x546065['length'];_0x438881++)_0x5316c4(_0x546065[_0x438881],_0x4ea468,0x0);const _0x38f989=new Set();for(let _0x23dbf3=0x0;_0x23dbf3<_0x546065['length'];_0x23dbf3++){const _0xa2297e=_0x546065[_0x23dbf3];!_0x4c1b22['has'](_0xa2297e)&&_0xa2297e['previous']&&(_0x38f989['add'](_0xa2297e['previous']),_0xa2297e['previous']['next']===_0xa2297e&&(_0xa2297e['previous']['next']=null),_0xa2297e['previous']=null),!_0x9a6589['has'](_0xa2297e)&&_0xa2297e['next']&&(_0x38f989['add'](_0xa2297e['next']),_0xa2297e['next']['previous']===_0xa2297e&&(_0xa2297e['next']['previous']=null),_0xa2297e['next']=null);}function _0x5316c4(_0x4ce33a,_0x42ba91,_0x529ad3){for(let _0x3cc29c=_0x529ad3;_0x3cc29c<_0x42ba91['length'];_0x3cc29c++){const _0x144bc6=_0x4d577c(_0x4ce33a,_0x42ba91[_0x3cc29c]);_0x144bc6&&(_0x144bc6[0x0]['next']=_0x144bc6[0x1],_0x144bc6[0x1]['previous']=_0x144bc6[0x0],_0x9a6589['add'](_0x144bc6[0x0]),_0x4c1b22['add'](_0x144bc6[0x1]));}}function _0x4d577c(_0x4c571d,_0x81df94){if(_0x4c571d['author']['id']!==_0x81df94['author']['id'])return null;const _0x94db26=_0x17985f['get'](_0x4c571d)(_0x4c571d,_0x81df94,_0x4d5721['get'](_0x4c571d),_0x4d5721['get'](_0x81df94));if(!_0x94db26)return null;return _0x17985f['get'](_0x81df94)(_0x4c571d,_0x81df94,_0x4d5721['get'](_0x4c571d),_0x4d5721['get'](_0x81df94))?_0x94db26[0x1]['commentThread']&&_0x94db26[0x1]['commentThread']['length']?null:_0x94db26:null;}_0x38f989['size']&&this['_refreshSuggestionsChain'](_0x38f989);}['_refreshAttributeSuggestionsChain'](_0x73b2c2){if(0x0==_0x73b2c2['length'])return;const _0x21af77=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41c0f7=>'attribute'==_0x41c0f7['type']&&_0x41c0f7['_isDataLoaded']),_0x525090=[],_0x53ecb7=new Map();for(const _0x267363 of _0x21af77){const _0x5b76a7=_0x482fc4(_0x267363['attributes']);_0x53ecb7['has'](_0x5b76a7)||(_0x53ecb7['set'](_0x5b76a7,_0x525090['length']),_0x525090['push']([]));const _0x54f06e=_0x53ecb7['get'](_0x5b76a7);_0x525090[_0x54f06e]['push'](_0x267363);}!(function(){_0x525090['sort']((_0x274f96,_0x4306e4)=>{const _0x455528=_0x274f96[0x0]['createdAt'],_0x41c040=_0x4306e4[0x0]['createdAt'];return _0x455528==_0x41c040?_0x274f96[0x0]['attributes']['groupId']<_0x4306e4[0x0]['attributes']['groupId']?-0x1:0x1:_0x455528<_0x41c040?-0x1:0x1;});for(const _0x486199 of _0x525090)_0x486199['sort']((_0x4ff25b,_0xbe5802)=>_0x4ff25b['id']<_0xbe5802['id']?-0x1:0x1);}());for(let _0x3776c2=0x0;_0x3776c2<_0x525090['length'];_0x3776c2++){if(0x0==_0x525090[_0x3776c2]['length'])continue;const _0x1f9373=[];for(let _0x44733a=_0x3776c2+0x1;_0x44733a<_0x525090['length'];_0x44733a++)0x0!=_0x525090[_0x44733a]['length']&&_0x5b64a9(_0x525090[_0x3776c2],_0x525090[_0x44733a])&&_0x1f9373['push'](_0x44733a);for(const _0x143cc5 of _0x1f9373)_0x525090[_0x3776c2]=_0x525090[_0x3776c2]['concat'](_0x525090[_0x143cc5]),_0x525090[_0x143cc5]=[];}for(const _0x56e3a2 of _0x525090)for(let _0xe951a5=0x0;_0xe951a5<_0x56e3a2['length'];_0xe951a5++){const _0x4ff504=_0x56e3a2[_0xe951a5+0x1]||null;_0x56e3a2[_0xe951a5]['next']!==_0x4ff504&&(_0x56e3a2[_0xe951a5]['next']=_0x4ff504);}for(const _0x3846d0 of _0x525090)for(let _0x3d9bf9=0x0;_0x3d9bf9<_0x3846d0['length'];_0x3d9bf9++){const _0x4a4e63=_0x3846d0[_0x3d9bf9-0x1]||null;_0x3846d0[_0x3d9bf9]['previous']!==_0x4a4e63&&(_0x3846d0[_0x3d9bf9]['previous']=_0x4a4e63);}function _0x5b64a9(_0x22e512,_0x1f1539){if(_0x22e512[0x0]['attributes']['groupId']!==_0x1f1539[0x0]['attributes']['groupId']&&_0x22e512[0x0]['author']!==_0x1f1539[0x0]['author'])return!0x1;if(!function(_0x5eadc6,_0xea26a0){if(!_0x5eadc6['hasComments']&&!_0xea26a0['hasComments'])return!0x0;if(_0x5eadc6['hasComments']&&_0xea26a0['hasComments'])return!0x1;if(_0x5eadc6['hasComments']&&_0xea26a0['createdAt']<_0x5eadc6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xea26a0['hasComments']&&_0x5eadc6['createdAt']<_0xea26a0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x22e512[0x0],_0x1f1539[0x0]))return!0x1;const _0x119e6b=Jt(_0x22e512[0x0]['attributes'],['groupId','trackingSessionId']),_0x16a2ab=Jt(_0x1f1539[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x221f98(_0x119e6b,_0x16a2ab))return!0x1;if(_0x22e512[0x0]['attributes']['groupId']==_0x1f1539[0x0]['attributes']['groupId'])return!0x0;if(_0x22e512[0x0]['attributes']['trackingSessionId']!==_0x1f1539[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x22e512['every'](_0x28f204=>_0x1f1539['some'](_0x6b79db=>_0x28f204['getFirstRange']()['isEqual'](_0x6b79db['getFirstRange']())))&&_0x1f1539['every'](_0x5abdf1=>_0x22e512['some'](_0x446fa9=>_0x5abdf1['getFirstRange']()['isEqual'](_0x446fa9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1026f5){const _0x4ab321=Array['from'](_0x1026f5),_0x1bd719=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4a3122=_0x1bd719['filter'](_0x322951=>!_0x1026f5['has'](_0x322951)),_0xd19d6f=new Map(_0x4ab321['map'](_0xec578=>[_0xec578,this['_suggestionFactory']['getSuggestionCallback'](_0xec578['type'],_0xec578['subType'],'join')])),_0x22e645=new Map(_0x1bd719['map'](_0x102320=>[_0x102320,_0x102320['getRanges']()]));for(let _0x48b65c=0x0;_0x48b65c<_0x4ab321['length'];_0x48b65c++){if(_0x31905a(this,_0x4ab321[_0x48b65c],_0x4ab321,_0x48b65c+0x1))return!0x0;}for(let _0x81f8d8=0x0;_0x81f8d8<_0x4ab321['length'];_0x81f8d8++){if(_0x31905a(this,_0x4ab321[_0x81f8d8],_0x4a3122,0x0))return!0x0;}return!0x1;function _0x31905a(_0x3260d3,_0x2ddcfa,_0x4da0c1,_0x17ccd9){for(let _0x1b9389=_0x17ccd9;_0x1b9389<_0x4da0c1['length'];_0x1b9389++){const _0x588242=_0x4da0c1[_0x1b9389];if(_0x588242['type']!==_0x2ddcfa['type']||_0x588242['author']['id']!==_0x2ddcfa['author']['id']||_0x588242['subType']!==_0x2ddcfa['subType'])continue;if(!nn(_0x2ddcfa,_0x588242))continue;if('attribute'==_0x2ddcfa['type']&&_0x2ddcfa['data']['oldValue']!=_0x588242['data']['oldValue'])continue;if('attribute'==_0x2ddcfa['type']&&_0x3260d3['_isBlockAttribute'](_0x2ddcfa['data']['key']))continue;if('formatBlock'==_0x2ddcfa['type']){const _0xdf2c13=_0x3260d3['editor']['model'],_0x3e45d5=_0x2ddcfa['getContainedElement']();if(_0x3e45d5&&(_0xdf2c13['schema']['isObject'](_0x3e45d5)||_0xdf2c13['schema']['isLimit'](_0x3e45d5)))continue;}const _0x28cdfa=_0xd19d6f['get'](_0x2ddcfa),_0x50ab4a=_0x22e645['get'](_0x2ddcfa),_0x272d47=_0x22e645['get'](_0x588242),_0x1aba32=_0x2ddcfa['commentThread']&&_0x2ddcfa['commentThread']['length'],_0x32398c=_0x588242['commentThread']&&_0x588242['commentThread']['length'];if(!_0x1aba32&&_0x28cdfa(_0x272d47,_0x50ab4a))return _0x3260d3['_joinSuggestions'](_0x588242,_0x2ddcfa),_0x22e645['delete'](_0x2ddcfa),!0x0;if(!_0x32398c&&_0x28cdfa(_0x50ab4a,_0x272d47))return _0x3260d3['_joinSuggestions'](_0x2ddcfa,_0x588242),_0x22e645['delete'](_0x588242),!0x0;}return!0x1;}}['_joinSuggestions'](_0x570fd7,_0x1ee395){if(_0x570fd7['isMultiRange']){for(const _0x55cc80 of _0x1ee395['getRanges']())_0x570fd7['addRange'](_0x55cc80);}else{const _0x46b695=_0x1ee395['getFirstRange']()['end'];this['_setSuggestionRange'](_0x570fd7,this['_model']['createRange'](_0x570fd7['getFirstRange']()['start'],_0x46b695));}_0x1ee395['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1755bc,_0x3c1d62,_0x27f48e){const _0x1204e3=_0x1755bc['startsWith']('format')||_0x1755bc['startsWith']('attribute')?'FORMATTING':_0x1755bc['toUpperCase']();return o(this['editor']['locale'],_0x3c1d62+'_'+_0x1204e3+'_SUGGESTION_ANNOUNCEMENT',_0x27f48e);}['_initAriaMarkerChangeAnnouncements'](){const _0xb44fb6=this['editor'];if(!_0xb44fb6['ui'])return;const {ariaLiveAnnouncer:_0x502490}=_0xb44fb6['ui'];_0x4efaaf(this['_model'],({left:_0x2d17b9,entered:_0x38b9dd})=>{for(const _0x6b7256 of _0x2d17b9){const {group:_0x25df25,type:_0x3d5212}=this['_splitMarkerName'](_0x6b7256['name']);if('suggestion'===_0x25df25){_0x502490['announce'](this['_getMarkerAnnouncementText'](_0x3d5212,'LEAVE'));break;}}for(const _0x49208e of _0x38b9dd){const {group:_0x5517cb,type:_0x4abf98}=this['_splitMarkerName'](_0x49208e['name']);if('suggestion'===_0x5517cb){_0x502490['announce'](this['_getMarkerAnnouncementText'](_0x4abf98,'ENTER',_0x26c066(_0x4bd9e8)));break;}}});}['_processAttributeChanges'](_0x1c609f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5947c6=this['editor'],_0x59faff=_0x5947c6['model']['document']['differ']['getChanges']();if(0x0==_0x59faff['length'])return!0x1;const _0x118959=[],_0xa50f7=_0x59faff['filter'](_0x4742b0=>'attribute'==_0x4742b0['type']),_0x263992=_0x59faff['filter'](_0x2a6619=>'insert'==_0x2a6619['type']&&'$text'!=_0x2a6619['name']),_0x12743f=_0x59faff['filter'](_0xea2194=>'remove'==_0xea2194['type']&&'$text'!=_0xea2194['name']);for(const _0x10595e of _0xa50f7)_0x118959['push']({'key':_0x10595e['attributeKey'],'newValue':_0x10595e['attributeNewValue'],'oldValue':_0x10595e['attributeOldValue'],'range':Yt(_0x10595e['range'],_0x5947c6['model'])});for(const _0x3abdb7 of _0x263992){const _0x5c0506=_0x12743f['find'](_0x112a47=>_0x112a47['position']['isEqual'](_0x3abdb7['position']));_0x5c0506&&_0x118959['push']({'key':m,'newValue':_0x3abdb7['name'],'oldValue':_0x5c0506['name'],'range':_0x5947c6['model']['createRangeOn'](_0x3abdb7['position']['nodeAfter'])});}return 0x0!=_0x118959['length']&&this['_reduceExistingSuggestions'](_0x1c609f,_0x118959);}['_processAttributeSuggestions'](_0x521fa0){let _0x7d744=!0x1;const _0x3c57ef=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x20c857=>_0x20c857['data']['newRange']&&_0x20c857['name']['startsWith']('suggestion:attribute:'));for(const _0x1f7790 of _0x3c57ef){const {subType:_0x295f7c,id:_0x5abcc5}=this['_splitMarkerName'](_0x1f7790['name']),_0x2ad0d7=_0x295f7c['split']('|')[0x0];for(const _0xad61d9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xad61d9['id']!=_0x5abcc5&&'attribute'==_0xad61d9['type']&&_0xad61d9['data']&&_0xad61d9['data']['key']==_0x2ad0d7&&_0xad61d9['getFirstRange']()['isIntersecting'](_0x1f7790['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xad61d9,_0x1f7790['data']['newRange'],_0x521fa0),_0x7d744=!0x0);}return _0x7d744;}['recordAttributeChanges'](_0xc7dd1a){this['_recordAttributeSuggestions']=!0x0,_0xc7dd1a();}['_isRegisteredAttribute'](_0x492582){return this['editor']['plugins']['get'](_0x4b540f)['isRegisteredAttribute'](_0x492582);}['_reduceExistingSuggestions'](_0x549fcd,_0x44fae0){if(0x0==_0x44fae0['length'])return!0x1;let _0x4ca3c8=!0x1;for(const _0x1ce14c of _0x44fae0){const _0x580556=this['_findSuggestions'](_0x1ce14c['range'],'attribute')['filter'](_0x394bbe=>!_0x394bbe['meta']['isNextTo'])['map'](_0x4917ba=>_0x4917ba['suggestion']),_0x31fe75=_0x482fc4({'newValue':_0x1ce14c['newValue']});_0x580556['filter'](_0x331814=>{const [_0x454f40,_0x25a2a2]=_0x331814['subType']['split']('|');return _0x454f40==_0x1ce14c['key']&&_0x25a2a2!=_0x31fe75;})['forEach'](_0xf6eff0=>{this['_reduceSuggestionAttributeRange'](_0xf6eff0,_0x1ce14c['range'],_0x549fcd),_0x4ca3c8=!0x0;});}return _0x4ca3c8;}['_reduceSuggestionAttributeRange'](_0x494c07,_0x9eb1c3,_0x2f90b6){const _0x52fad1=_0x494c07['getFirstRange']()['getDifference'](_0x9eb1c3);0x0!==_0x52fad1['length']?0x1!==_0x52fad1['length']?this['_breakSuggestionMarker'](_0x494c07,_0x9eb1c3['start'],_0x9eb1c3['end']):this['_setSuggestionRange'](_0x494c07,_0x52fad1[0x0]):_0x2f90b6['removeMarker'](_0x494c07['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x26dcbb){this['_editor']=_0x26dcbb,this['_model']=_0x26dcbb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x11be42,_0x40dc25,_0x2522b7,_0x5a6377,_0x40d8a2,_0x501a95,_0x24015e){return new T(this['_model'],{'type':_0x11be42,'subType':_0x40dc25,'id':_0x2522b7,'originalSuggestionId':_0x24015e,'author':_0x5a6377,'creator':_0x5a6377,'attributes':_0x40d8a2,'onAttributesChange':_0x501a95,'onAccept':(..._0x3a9463)=>this['getSuggestionCallback'](_0x11be42,_0x40dc25,'accept')(..._0x3a9463),'onDiscard':(..._0x127490)=>this['getSuggestionCallback'](_0x11be42,_0x40dc25,'discard')(..._0x127490)});}['registerCustomCallback'](_0x37a936,_0x26f3cc,_0x5110cd,_0x42129e){const _0x168acb=_0x37a936+':'+_0x26f3cc+':'+_0x5110cd;this['_customCallbacks']['set'](_0x168acb,_0x42129e);}['getSuggestionCallback'](_0x4ebb13,_0xeeb3d3,_0x75dec6){const _0x1f9e6e=_0x4ebb13+':'+_0xeeb3d3+':'+_0x75dec6;return this['_customCallbacks']['get'](_0x1f9e6e)||this['_defaultCallbacks']['get'](_0x4ebb13+':'+_0x75dec6);}['_registerDefaultCallbacks'](){const _0x3bb8c7=()=>!0x1,_0x4c86b3=_0x3ea503=>{_0x3ea503['sort']((_0x2062d7,_0xbc134a)=>_0x2062d7['start']['isBefore'](_0xbc134a['start'])?0x1:-0x1),this['_model']['change'](_0x475da2=>{for(const _0xa2ff59 of _0x3ea503){let _0x32111b;_0x32111b=_0xa2ff59['end']['isAtEnd']&&_0xa2ff59['end']['parent']==_0xa2ff59['start']['nodeAfter']?_0x475da2['createSelection'](_0xa2ff59['start']['nodeAfter'],'on'):_0x475da2['createSelection'](_0xa2ff59),this['_model']['deleteContent'](_0x32111b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x17201d=(_0x4fdc56,_0x52f6b6)=>{_0x52f6b6&&this['_model']['change'](_0x279805=>{const {commandName:_0x4e1fc6,commandParams:_0x3e7247=[]}=_0x52f6b6,_0x5d2899=_0x4fdc56['map'](_0x29fbc4=>(zt(_0x29fbc4)&&(_0x29fbc4=this['_model']['createRange'](_0x29fbc4['end'])),_0x29fbc4))['filter'](_0x30afd8=>'$graveyard'!==_0x30afd8['root']['rootName']);if(_0x5d2899['length']<0x1)return;const _0x27950a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4d847d=>_0x6f966d['fromRange'](_0x4d847d));_0x279805['setSelection'](_0x5d2899);for(const _0xd0cf7b of this['_editor']['commands']['commands']())_0xd0cf7b['refresh']();_0x3e7247['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4e1fc6,..._0x3e7247);const _0x57f491=_0x27950a['filter'](_0x4ab0ca=>'$graveyard'!=_0x4ab0ca['root']['rootName']);_0x57f491['length']>0x0&&_0x279805['setSelection'](_0x57f491);for(const _0x3e61f9 of _0x27950a)_0x3e61f9['detach']();});},_0x99b0b9=(_0x2d7d40,_0xfcdd5f)=>0x1==_0x2d7d40['length']&&0x1==_0xfcdd5f['length']&&_0x2d7d40[0x0]['end']['isEqual'](_0xfcdd5f[0x0]['start']),_0x1816a7=(_0x3e90c0,_0x51a21e,_0xc37ea9,_0xb5ee7b)=>tn(_0x3e90c0,_0x51a21e,_0xc37ea9,_0xb5ee7b)?[_0x3e90c0,_0x51a21e]:tn(_0x51a21e,_0x3e90c0,_0xb5ee7b,_0xc37ea9)?[_0x51a21e,_0x3e90c0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3bb8c7),this['_defaultCallbacks']['set']('insertion:discard',_0x4c86b3),this['_defaultCallbacks']['set']('insertion:join',_0x99b0b9),this['_defaultCallbacks']['set']('insertion:chain',_0x1816a7),this['_defaultCallbacks']['set']('deletion:accept',_0x4c86b3),this['_defaultCallbacks']['set']('deletion:discard',_0x3bb8c7),this['_defaultCallbacks']['set']('deletion:join',_0x99b0b9),this['_defaultCallbacks']['set']('deletion:chain',_0x1816a7),this['_defaultCallbacks']['set']('formatInline:accept',_0x17201d),this['_defaultCallbacks']['set']('formatInline:discard',_0x3bb8c7),this['_defaultCallbacks']['set']('formatInline:join',_0x99b0b9),this['_defaultCallbacks']['set']('formatInline:chain',_0x3bb8c7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x17201d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3bb8c7),this['_defaultCallbacks']['set']('formatBlock:join',_0x99b0b9),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3bb8c7),this['_defaultCallbacks']['set']('attribute:accept',_0x3bb8c7),this['_defaultCallbacks']['set']('attribute:discard',(_0x1e553c,_0x18df35)=>{if(!_0x18df35)return;const _0x1ef2f8=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x3c1ef7=>{if(_0x18df35['key']==m)for(const _0x1e79c4 of _0x1e553c){const _0x35e48e=_0x1e79c4['start']['nodeAfter'],_0x163af7=_0x18df35['oldValue'];_0x3c1ef7['rename'](_0x35e48e,_0x163af7);}else{if(_0x1ef2f8['_isBlockAttribute'](_0x18df35['key'])){for(const _0x59cd2f of _0x1e553c)void 0x0!==_0x18df35['oldValue']?_0x3c1ef7['setAttribute'](_0x18df35['key'],_0x18df35['oldValue'],_0x59cd2f['start']['nodeAfter']):_0x3c1ef7['removeAttribute'](_0x18df35['key'],_0x59cd2f['start']['nodeAfter']);}else{for(const _0x7a9057 of _0x1e553c)_0x18df35['oldValue']?_0x3c1ef7['setAttribute'](_0x18df35['key'],_0x18df35['oldValue'],_0x7a9057):_0x3c1ef7['removeAttribute'](_0x18df35['key'],_0x7a9057);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x99b0b9);}}function qt(_0x51c631,_0x4a45f9,_0x2a987b){for(const _0x13abff of _0x4a45f9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x13abff['root']==_0x13abff)return!0x1;if(!_0x2a987b['containsItem'](_0x13abff))return!0x1;if(_0x51c631['isObject'](_0x13abff)||_0x51c631['isLimit'](_0x13abff))return!0x0;}return!0x1;}function zt(_0x329a3e){return _0x329a3e['end']['parent']==_0x329a3e['start']['nodeAfter']&&_0x329a3e['end']['isAtStart'];}function Kt(_0x24c7ed,_0x284a3c,_0x3557a8,_0x67abdf){const _0x1772b9=_0x3c8cd9=>!_0x3c8cd9['item']['is']('$textProxy')&&!_0x67abdf['isObject'](_0x3c8cd9['item']),_0x4bc7e0=_0x24c7ed['start']['getLastMatchingPosition'](_0x1772b9),_0x12e087=_0x24c7ed['end']['getLastMatchingPosition'](_0x1772b9,{'direction':'backward'});return(!_0x24c7ed['start']['isEqual'](_0x4bc7e0)||!_0x24c7ed['end']['isEqual'](_0x12e087))&&(_0x4bc7e0['isBefore'](_0x12e087)?_0x3557a8['updateMarker'](_0x284a3c,{'range':_0x3557a8['createRange'](_0x4bc7e0,_0x12e087)}):_0x3557a8['removeMarker'](_0x284a3c),!0x0);}function Wt(_0x137636){return _0x482fc4(_0x137636);}function Ht(_0x3e6e6e){const _0x368873=_0x3e6e6e['start']['nodeAfter'];return _0x368873&&_0x368873['is']('element');}function Qt(_0x1b685b){return zt(_0x1b685b)||function(_0x7b813f){return _0x7b813f['start']['parent']==_0x7b813f['end']['nodeBefore']&&_0x7b813f['start']['isAtEnd'];}(_0x1b685b);}function Xt(_0x5b0014,_0x423977){try{const _0x2a58e1=_0x5b0014['getRange']();for(const _0x4d6c51 of _0x423977)if(_0x5b0014!==_0x4d6c51&&_0x2a58e1&&_0x2a58e1['isIntersecting'](_0x4d6c51['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Yt(_0xc862f1,_0x56ed1f){return null==_0xc862f1['end']['nodeBefore']&&_0xc862f1['end']['parent']==_0xc862f1['start']['nodeAfter']?Zt(_0xc862f1['start']['nodeAfter'],_0x56ed1f):_0xc862f1;}function Zt(_0x233947,_0x1d8add){const _0x344b23=_0x1d8add['schema']['isObject'](_0x233947)||_0x1d8add['schema']['isSelectable'](_0x233947);return _0x1d8add['createRange'](_0x1d8add['createPositionAt'](_0x233947,'before'),_0x344b23?_0x1d8add['createPositionAfter'](_0x233947):_0x1d8add['createPositionAt'](_0x233947,'end'));}function tn(_0x4fa131,_0x2d1582,_0x450400,_0x47bf9f){return!!nn(_0x4fa131,_0x2d1582)&&_0x450400['end']['isEqual'](_0x47bf9f['start']);}function nn(_0x3a9893,_0x4040e4){if(!_0x3a9893['_isDataLoaded']||!_0x4040e4['_isDataLoaded'])return!0x1;const _0x100105=new Set(Object['keys'](_0x3a9893['attributes'])),_0xeec74e=new Set(Object['keys'](_0x4040e4['attributes']));if(_0x100105['delete']('groupId'),_0xeec74e['delete']('groupId'),0x0==_0x100105['size']&&0x0==_0xeec74e['size'])return!0x0;if(_0x100105['size']!=_0xeec74e['size'])return!0x1;const _0x1da19f={..._0x3a9893['attributes']},_0x5170ac={..._0x4040e4['attributes']};return delete _0x1da19f['groupId'],delete _0x5170ac['groupId'],JSON['stringify'](_0x1da19f)==JSON['stringify'](_0x5170ac);}function en(_0x3d2534,_0x143049){const _0x3d12e2=sn(_0x3d2534['attributes']),_0x184823=sn(_0x143049);if(!_0x3d2534['_isDataLoaded'])return!0x1;for(const _0x8ced01 of Object['keys'](_0x184823))if(!_0x221f98(_0x3d12e2[_0x8ced01],_0x184823[_0x8ced01]))return!0x1;return!0x0;}function sn(_0x40c5cf){const _0x4dc818=Object['assign']({},_0x40c5cf);return delete _0x4dc818['skipNestingCheck'],delete _0x4dc818['tablePasteChainId'],_0x4dc818;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x3874f9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x35f3c9,_0x599f24,_0x8b15ba,_0xcd8e46){super(),this['model']=_0x599f24,this['view']=_0x8b15ba,this['commentThreadController']=_0xcd8e46,this['_editor']=_0x35f3c9,this['_acceptCommand']=_0x35f3c9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x35f3c9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x22c70f,_0x31ae16)=>_0x22c70f||_0x31ae16),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3d3e19=>_0x3d3e19&&this['_editor']['model']['canEditAt'](_0x599f24['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5620bf=>_0x5620bf&&this['_editor']['model']['canEditAt'](_0x599f24['getRanges']())),this['_pendingAction']=null,_0x8b15ba['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x8b15ba,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x8b15ba,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x8b15ba,'change:isDirty',()=>{_0x8b15ba['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 _0x536de6=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x536de6);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x3e1a2d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xb7f767,_0x3a79c0,_0x3fa905,_0x394030){super(_0xb7f767),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3813ff(_0xb7f767,o(_0xb7f767,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3a79c0['authoredAt']),this['bind']('authoredAt')['to'](_0x3a79c0),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',_0x3a79c0,'authoredAt',this,'descriptionParts',(_0x52cad3,_0xc3b274,_0x5e8393)=>{const _0x1fd124=_0x5e8393['map'](_0x130d02=>ls(_0x130d02['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x52cad3-0x1,_0x3a79c0['author']['name'],_0xc3b274?_0x394030['formatDateTime'](_0xc3b274):'',new DOMParser()['parseFromString'](_0x1fd124,'text/html')['body']['textContent']]);}),this['focusables']=new _0x18582e(),this['focusTracker']=new _0xab16db(),this['keystrokes']=new _0x927733(),this['focusCycler']=new _0x2212f4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3ab642=>_0x3ab642['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3a79c0,this['_localUser']=_0x3fa905,this['_config']=_0x394030,_0x394030['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x210cbe(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3aa67b}=this['_config'];this['commentsListView']=new _0x3aa67b(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',_0x1fdb36=>_0x1fdb36+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xbaea25,_0x22ebb0)=>_0xbaea25||!!_0x22ebb0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x914648}=this['_config'],_0x4e0c87=new _0x914648(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5a38e9=_0x4e0c87['commentInputView'];return _0x4e0c87['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5a38e9,'value',(_0x560373,_0x5c1ae9,_0x635f82)=>!!_0x635f82||_0x560373&&!_0x5c1ae9),_0x5a38e9['on']('submit',(_0x28f78f,_0x18e748)=>{this['fire']('addComment',_0x18e748),_0x5a38e9['editor']['setData']('');}),_0x5a38e9['on']('cancel',()=>this['focus']()),_0x5a38e9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4e0c87;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x361247,_0x350c30,_0x2ccd9e,_0x2c5637){super(_0x361247,_0x350c30,_0x2ccd9e,_0x2c5637),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x54fed8=>_0x54fed8&&_0x54fed8[0x0]?_0x54fed8[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5c9eb7,_0x159fd8)=>{let _0x2be130='';for(const _0x2e995f of _0x5c9eb7)_0x2be130+='<p>'+ls(_0x2e995f['content'],_0x2e995f['color'])+'</p>';return _0x159fd8?_0x2be130:_0x553c3d(_0x2be130,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2c5637['SuggestionView'](_0x361247,_0x350c30,{'formatDateTime':_0x2c5637['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 _0x4d293a=this['bindTemplate'],_0x4f8936=[this['suggestionView']];return this['commentsListView']&&_0x4f8936['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4f8936['push'](this['commentThreadInputView']),_0x4f8936['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4d293a['if']('isActive','ck-suggestion-wrapper--active'),_0x4d293a['to']('type',_0x2a94d8=>'ck-suggestion-'+_0x2a94d8),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':_0x4d293a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4f8936};}['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 _0x3e1a2d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x48d00f,_0x4ba880,_0x4bff83){super(_0x48d00f),this['_model']=_0x4ba880,this['_config']=_0x4bff83,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4ba880),this['acceptButton']=this['_createButton'](o(_0x48d00f,'Accept\x20suggestion'),_0x211090,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x48d00f,'Discard\x20suggestion'),_0x1c277c,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4535ed(_0x48d00f,_0x4ba880['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x18582e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xab16db(),this['keystrokes']=new _0x927733(),this['focusCycler']=new _0x2212f4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2e7644=>_0x2e7644['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1fb3fc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1fb3fc['innerHTML']=this['description'],this['on']('change:description',(_0x38199a,_0x394205,_0x5538b3)=>{_0x1fb3fc['innerHTML']=_0x5538b3;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5e6acc=this['bindTemplate'],_0x7b6699=[{'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':_0x5e6acc['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5e6acc['to']('authoredAt',_0x228d9e=>this['_config']['formatDateTime'](_0x228d9e))}]}]},{'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']&&_0x7b6699['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':_0x7b6699}]};}['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'](_0x2cfc0a,_0x26a767,_0x571b96,_0x55ee88,_0x4be860){const _0x375cd0=new _0xd1dcb9(this['locale']);return _0x375cd0['set']({'label':_0x2cfc0a,'icon':_0x26a767,'tooltip':!0x0,'tooltipPosition':_0x4be860}),_0x375cd0['extendTemplate']({'attributes':{'class':_0x571b96}}),_0x375cd0['on']('execute',()=>{this['fire'](_0x55ee88,this['_model']['id']);}),_0x375cd0;}['_setupKeyboardNavigation'](){const _0x1a0398=this['element'];this['keystrokes']['listenTo'](_0x1a0398);for(const _0x48fa2d of this['focusables'])this['focusTracker']['add'](_0x48fa2d['element']),this['keystrokes']['listenTo'](_0x48fa2d['element']);this['keystrokes']['set']('enter',(_0x1cc486,_0x41dd36)=>{_0x1a0398===_0x1cc486['target']&&(this['focusCycler']['focusFirst'](),_0x41dd36());}),this['keystrokes']['set']('esc',(_0xa69e8c,_0x5cedb5)=>{_0x1a0398!==_0xa69e8c['target']&&(this['focus'](),_0x5cedb5());});}}class u extends _0x27110f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x399566,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xaec28e){super(_0xaec28e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x102587=this['editor']['config'];_0x102587['define']('trackChanges.SuggestionThreadView',fe),_0x102587['define']('trackChanges.SuggestionView',we),_0x102587['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x102587['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x286682,_0x25acd5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x404ba0,_0x51467b]of this['_handleControllerBuffer']){const _0x45fc28=this['_suggestionToController']['has'](_0x404ba0);_0x45fc28||_0x51467b?_0x45fc28&&_0x51467b&&this['_destroyController'](_0x404ba0):this['_initializeController'](_0x404ba0);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x286682,_0x25acd5);}['init'](){const _0x2affe6=this['editor'],_0x3b8f79=_0x2affe6['plugins']['get']('TrackChangesEditing'),_0x583c8e=_0x2affe6['plugins']['get']('Annotations'),_0x766214=_0x2affe6['plugins']['get']('EditorAnnotations'),_0x4a585e=_0x2affe6['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x766214['addSourceCollector'](()=>{const _0x1f39f9=[];for(const [_0x3564ce,_0x2a5240]of Array['from'](this['_suggestionToController'])){const _0x38ad43=_0x3564ce['getAllAdjacentSuggestions'](),_0x4a5606=[];for(const _0x1a06e4 of _0x38ad43){if(!_0x1a06e4['isInContent'])continue;if(_0x1a06e4['isMultiRange']){_0x4a5606['push'](..._0x1a06e4['getRanges']());continue;}const _0x5ee53f=_0x1a06e4['getFirstRange']();if(_0x4a5606['length']>0x0){const _0x4ee417=_0x4a5606[0x0]['getJoined'](_0x5ee53f);if(_0x4ee417){_0x4a5606[0x0]=_0x4ee417;continue;}}_0x4a5606['push'](_0x5ee53f);}_0x1f39f9['push']([_0x2a5240['view'],_0x4a5606]);}return _0x1f39f9;}),this['listenTo'](_0x3b8f79,'suggestionLoaded',(_0x121fd0,_0x16ca42)=>{this['listenTo'](_0x16ca42,'change:previous',(_0x30de1a,_0x2c24a5,_0x46db99,_0x33dce3)=>{_0x16ca42['isInContent']&&(null==_0x46db99?(this['_updateController'](_0x33dce3['head']),this['_handleSuggestionControllerDelayed'](_0x16ca42,!0x1)):(this['_updateController'](_0x46db99['head']),null==_0x33dce3&&this['_handleSuggestionControllerDelayed'](_0x16ca42,!0x0)));}),null!==_0x16ca42['previous']?this['_updateController'](_0x16ca42['head']):this['_handleSuggestionControllerDelayed'](_0x16ca42,!0x1);}),this['listenTo'](_0x3b8f79,'suggestionUnloaded',(_0x4d980a,_0x53f312,_0x16f7c0)=>{this['stopListening'](_0x53f312,'change:previous'),this['_handleControllerBuffer']['delete'](_0x53f312),this['_suggestionToController']['has'](_0x53f312)&&this['_destroyController'](_0x53f312),_0x16f7c0&&this['_updateController'](_0x16f7c0['head']);}),this['listenTo'](_0x3b8f79,'suggestionChanged',(_0x291da7,_0x5af35e)=>{this['_updateController'](_0x5af35e);}),this['listenTo'](_0x583c8e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4a585e,'addComment',(_0x5a8296,{threadId:_0x158635,isFromAdapter:_0x4c4447})=>{if(_0x4c4447||!_0x3b8f79['hasSuggestion'](_0x158635))return;const _0x2fd0be=_0x3b8f79['getSuggestion'](_0x158635);this['_suggestionToController']['get'](_0x2fd0be)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3205db=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5f34c1;for(const _0x38edd2 in _0x3205db){const _0x350fc4=_0x38edd2,_0x30b9ad=_0x3205db[_0x350fc4];if('trackChangesLicenseKeyValid'==_0x30b9ad||'trackChangesLicenseKeyInvalid'==_0x30b9ad||'trackChangesLicenseKeyExpired'==_0x30b9ad||'trackChangesLicenseKeyDomainLimit'==_0x30b9ad||'trackChangesLicenseKeyNotAllowed'==_0x30b9ad||'trackChangesLicenseKeyEvaluationLimit'==_0x30b9ad||'trackChangesLicenseKeyUsageLimit'==_0x30b9ad){delete _0x3205db[_0x350fc4],_0x5f34c1=_0x30b9ad,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5f34c1&&_0x3205db['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5f34c1&&_0x3205db['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5f34c1&&_0x3205db['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5f34c1&&_0x3205db['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5f34c1&&_0x3205db['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5f34c1&&_0x3205db['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x48f2cf){const _0x357921=this['_suggestionToController']['get'](_0x48f2cf);if(!_0x357921)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x357921['view'])||null;}['getSuggestionForAnnotation'](_0x37cf8d){const _0x109e83=this['_viewToController']['get'](_0x37cf8d['innerView']);return _0x109e83?_0x109e83['model']:null;}['_refreshActiveMarkers'](){const _0x5e2ced=this['editor']['plugins']['get']('Annotations'),_0xc83c24=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42becd=Array['from'](_0x5e2ced['activeAnnotations'],_0x10873e=>_0x10873e['innerView'])['filter'](_0x10c1e4=>this['_viewToController']['has'](_0x10c1e4)),_0x3fc5bb=[];for(const _0x100d37 of _0x42becd){const _0x38cae3=this['_viewToController']['get'](_0x100d37)['model']['getAllAdjacentSuggestions']();_0x3fc5bb['push'](..._0x38cae3['reduce']((_0x4e36b2,_0x4d7c16)=>[..._0x4e36b2,..._0x4d7c16['getMarkerNames']()],[]));}_0xc83c24['activeMarkers']=_0x3fc5bb;}['_addUIComponentsToFactory'](){const _0x225b2a=this['editor'],_0x3e7eef=_0x225b2a['locale'],_0x5b7d3b=o(_0x3e7eef,'Track\x20changes'),_0x1231e7=new _0x1d4491([{'type':'switchbutton','model':new _0x4179e9({'withText':!0x0,'isToggleable':!0x0,'label':_0x5b7d3b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4179e9({'withText':!0x0,'label':o(_0x3e7eef,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4179e9({'withText':!0x0,'label':o(_0x3e7eef,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4179e9({'withText':!0x0,'label':o(_0x3e7eef,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4179e9({'withText':!0x0,'label':o(_0x3e7eef,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x225b2a['plugins']['has']('TrackChangesPreview')&&_0x1231e7['addMany']([{'type':'separator'},{'type':'button','model':new _0x4179e9({'withText':!0x0,'label':o(_0x3e7eef,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4f0816 of _0x1231e7)if(ke(_0x4f0816)){const _0x2c63bf=_0x225b2a['commands']['get'](_0x4f0816['model']['commandName']);_0x4f0816['model']['bind']('isOn','isEnabled')['to'](_0x2c63bf,'value','isEnabled');}_0x225b2a['ui']['componentFactory']['add']('trackChanges',_0x2e6f4=>this['_createToolbarButton'](_0x2e6f4,_0x1231e7,_0x5b7d3b)),_0x225b2a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x55c409=>this['_createMenuBarMenu'](_0x55c409,_0x1231e7,_0x5b7d3b));}['_createToolbarButton'](_0x759de2,_0x4c2bfe,_0x347c8){const _0x2c49ec=_0x472ff2(_0x759de2,_0x4a69f1),_0x2ec0eb=this['editor']['commands']['get']('trackChanges');_0x2c49ec['buttonView']['set']({'tooltip':_0x347c8,'label':_0x347c8,'icon':_0x5567ec}),_0x2c49ec['buttonView']['bind']('isOn')['to'](_0x2ec0eb,'value'),_0x2c49ec['buttonView']['on']('execute',()=>{_0x2ec0eb['execute'](),this['editor']['editing']['view']['focus']();}),_0x18712b(_0x2c49ec,_0x4c2bfe,{'role':'menu'});const _0x5810a0=[];for(const _0x25b126 of _0x4c2bfe)ke(_0x25b126)&&_0x5810a0['push'](this['editor']['commands']['get'](_0x25b126['model']['commandName']));const _0x41a3cd=_0x2c49ec['buttonView'];return _0x41a3cd['actionView']['unbind']('isEnabled'),_0x41a3cd['arrowView']['unbind']('isEnabled'),_0x41a3cd['actionView']['bind']('isEnabled')['to'](_0x2ec0eb,'isEnabled'),_0x41a3cd['arrowView']['bind']('isEnabled')['toMany'](_0x5810a0,'isEnabled',(..._0x205fb1)=>_0x205fb1['some'](_0x861fe2=>_0x861fe2)),_0x2c49ec['on']('execute',_0x865eb0=>{this['editor']['execute'](_0x865eb0['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2c49ec;}['_createMenuBarMenu'](_0x580305,_0x58b247,_0x38e536){const _0x27541a=new _0x1173fa(_0x580305),_0x30569e=this['editor']['commands']['get']('trackChanges');_0x27541a['buttonView']['set']({'label':_0x38e536,'icon':_0x5567ec});const _0x3abce4=new _0x299773(_0x580305);for(const _0x5217ee of _0x58b247){if('separator'==_0x5217ee['type']){_0x3abce4['items']['add'](new _0x2204e2(_0x580305));continue;}const _0x4be13e=new _0xbdf1a0(_0x580305,_0x27541a),_0x4af137=new _0x18f814(_0x580305),_0x485a74=_0x5217ee['model'];_0x4af137['bind'](...Object['keys'](_0x485a74))['to'](_0x485a74),_0x4af137['delegate']('execute')['to'](_0x27541a),_0x4af137['on']('execute',()=>{this['editor']['execute'](_0x485a74['commandName']),this['editor']['editing']['view']['focus']();}),_0x4be13e['children']['add'](_0x4af137),_0x3abce4['items']['add'](_0x4be13e);}return _0x27541a['bind']('isEnabled')['to'](_0x30569e,'isEnabled'),_0x27541a['panelView']['children']['add'](_0x3abce4),_0x27541a;}['_initializeController'](_0x28ec15){const _0xa3207b=this['editor'],_0x4e4af1=_0xa3207b['config'],_0x4aa2f7=_0xa3207b['plugins']['get']('Annotations'),_0x4134a7=_0xa3207b['plugins']['get']('CommentsRepository'),_0x4ed849=_0xa3207b['plugins']['get']('EditorAnnotations'),_0x145a72=_0xa3207b['plugins']['get'](_0x399566)['me'],_0x166fdd=_0x4e4af1['get']('trackChanges')['SuggestionThreadView'],_0x2d0d29=_0x4e4af1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x40e7c8,CommentThreadInputView:_0x899296}=_0xa3207b['plugins']['get']('CommentsUI');let _0x478cbd,_0x23f1f8,_0x1b8ec4;this['_annotationViews']['has'](_0x28ec15['id'])?(_0x23f1f8=this['_annotationViews']['get'](_0x28ec15['id']),_0x478cbd=_0x23f1f8['mainView']):(_0x478cbd=new _0x166fdd(_0xa3207b['locale'],_0x28ec15,_0x145a72,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4e4af1['get']('comments.editorConfig'),'licenseKey':_0x4e4af1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4e4af1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4e4af1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4e4af1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xab422(_0x4e4af1['get']('locale'),_0xa3207b['locale']),'CommentView':_0x4e4af1['get']('comments')['CommentView'],'CommentsListView':_0x40e7c8,'CommentThreadInputView':_0x899296,'SuggestionView':_0x2d0d29}),_0x478cbd['suggestionView']['acceptButton']['on']('execute',()=>{_0xa3207b['editing']['view']['focus']();}),_0x478cbd['suggestionView']['discardButton']['on']('execute',()=>{_0xa3207b['editing']['view']['focus']();}),_0x23f1f8=_0x4aa2f7['createAnnotationView'](this['editor']['locale'],_0x478cbd),_0x23f1f8['bind']('isDirty')['to'](_0x478cbd,'isDirty'),_0x23f1f8['bind']('length')['to'](_0x478cbd),_0x23f1f8['bind']('type')['to'](_0x478cbd,'type',_0xb4580d=>'suggestion-'+_0xb4580d),_0x478cbd['on']('escape',()=>{_0x1b8ec4['fire']('escape');}),this['_annotationViews']['set'](_0x28ec15['id'],_0x23f1f8));const _0x1869a8=_0x4134a7['createCommentThreadController'](_0x28ec15['commentThread'],_0x478cbd),_0x3740db=new pe(_0xa3207b,_0x28ec15,_0x478cbd,_0x1869a8),_0x4a7a63=_0x28ec15['getAllAdjacentSuggestions']()['filter'](_0x3cceed=>_0x3cceed['isInContent']);_0x478cbd['descriptionParts']=_0xa3207b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4a7a63),this['_suggestionToController']['set'](_0x28ec15,_0x3740db),this['_viewToController']['set'](_0x478cbd,_0x3740db);const _0x7aec21=()=>{const _0x463e75=[],_0x1fda41=_0x28ec15['getAllAdjacentSuggestions']()['filter'](_0x154f45=>_0x154f45['isInContent']);for(const _0x50dd1e of _0x1fda41)_0x463e75['push'](..._0x50dd1e['getMarkers']());return _0x4c4c36(_0xa3207b['editing'],_0x463e75);};_0x1b8ec4=_0x4aa2f7['createAnnotation']({'view':_0x23f1f8,'target':_0x7aec21,'type':()=>'suggestion-'+_0x3740db['view']['type'],'isVisible':!!_0x7aec21()}),_0x4134a7['_bindAnnotationToEditors'](_0x478cbd,_0x1b8ec4),_0x4aa2f7['add'](_0x1b8ec4),_0x4ed849['registerAnnotation'](_0x1b8ec4);}['_destroyController'](_0x4e44e2){const _0x4aaa06=this['editor']['plugins']['get']('CommentsRepository'),_0x5a5b72=this['editor']['plugins']['get']('Annotations'),_0x1bd969=this['_suggestionToController']['get'](_0x4e44e2),_0x59bc60=_0x1bd969['view'],_0x3b5270=_0x5a5b72['getByInnerView'](_0x59bc60);_0x4aaa06['_unbindEditors'](_0x59bc60),_0x3b5270&&_0x5a5b72['remove'](_0x3b5270),this['_suggestionToController']['delete'](_0x4e44e2),this['_viewToController']['delete'](_0x59bc60),_0x1bd969['destroy']();}['_updateController'](_0x10ade7){if(!_0x10ade7['isInContent']||!this['_suggestionToController']['has'](_0x10ade7))return;const _0x3e89f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41e557=this['_suggestionToController']['get'](_0x10ade7),_0x3ceae7=_0x10ade7['getAllAdjacentSuggestions']();_0x41e557['view']['descriptionParts']=_0x3e89f3['descriptionFactory']['getDescriptions'](_0x3ceae7);}['destroy'](){for(const _0x3f9f13 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3f9f13);for(const _0x5b2d6b of this['_annotationViews']['values']())_0x5b2d6b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x36a970){return'model'in _0x36a970;}class TrackChanges extends _0x27110f{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4d8bba){this['editor']['plugins']['get'](d)['adapter']=_0x4d8bba;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x3bff79){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x3bff79);}['getSuggestions']({skipNotAttached:_0x4ee643=!0x1,toJSON:_0x10ece3=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4ee643,'toJSON':_0x10ece3});}['getSuggestion'](_0x1107ba){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1107ba);}}const p=['Pagination'];class re extends _0x27110f{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x13eeda=this['editor'];if(_0x13eeda['config']['define']('trackChangesData.editorCreator',_0x2cec3c=>{const _0x742cc3=_0x13eeda['model']['document']['getRootNames']()['reduce']((_0x14461e,_0x30ef77)=>(_0x14461e[_0x30ef77]='',_0x14461e),{});return _0x13eeda['constructor']['create'](_0x742cc3,_0x2cec3c);}),'function'!=typeof _0x13eeda['config']['get']('trackChangesData')['editorCreator'])throw new _0x24cfe7('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5ee2aa){return P(this['editor'],!0x0,_0x5ee2aa);}['getDataWithDiscardedSuggestions'](_0x7f141a){return P(this['editor'],!0x1,_0x7f141a);}}class TrackChangesDataGetter extends _0x27110f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x204943){function _0x157fc1(_0x329d97){return _0x329d97['map'](_0x32e3cf=>String['fromCharCode'](_0x32e3cf))['join']('');}super(_0x204943),this['result']='end',_0x204943[_0x157fc1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x157fc1([0x76,0x69,0x65,0x77])][_0x157fc1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x157fc1([0x61,0x75,0x74,0x6f]),_0x204943[_0x157fc1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x157fc1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x157fc1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x157fc1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x157fc1([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 Ne(_0x5ee104){return void 0x0!==_0x5ee104['getRootsAttributes'];}async function P(_0x3369f1,_0x19c95c,_0x21c4f3){const _0x1c3c92=_0x303e57(_0x3369f1,p);_0x1c3c92['plugins']['push'](d,TrackChangesDataGetter),_0x1c3c92['rootsAttributes']=Ne(_0x3369f1)?_0x3369f1['getRootsAttributes']():void 0x0;const _0xb81a71=document['createDocumentFragment'](),_0x5c2798=_0x3369f1['config']['get']('trackChangesData')['editorCreator'],_0x561996=await _0x5c2798(_0x1c3c92,()=>function(_0x23b6b1){const _0x40638f=document['createElement']('div');return _0x23b6b1['appendChild'](_0x40638f),_0x40638f;}(_0xb81a71));!function(_0x4178ae,_0x48d809){const _0x6b77b6=_0x4178ae['model']['document']['getRootNames']()['reduce']((_0x315830,_0x5ad86a)=>(_0x315830[_0x5ad86a]=_0x4178ae['data']['get']({'rootName':_0x5ad86a}),_0x315830),{}),_0x376aa0=_0x4178ae['plugins']['get']('Users')['users']['map'](_0x13a827=>({'id':_0x13a827['id'],'name':_0x13a827['name']})),_0x12e318=_0x4178ae['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x172ef5=_0x4178ae['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f5662=_0x48d809['plugins']['get']('Users'),_0xaf19ce=_0x48d809['plugins']['get']('TrackChangesEditing'),_0x2bbf18=_0x48d809['plugins']['get']('CommentsRepository');for(const _0x2a21bb of _0x2bbf18['getCommentThreads']())_0x2a21bb['remove']();for(const _0xd7756f of _0x376aa0)_0x2f5662['getUser'](_0xd7756f['id'])||_0x2f5662['addUser'](_0xd7756f);_0x2f5662['me']||_0x2f5662['useAnonymousUser']();for(const _0x508d67 of _0x172ef5)_0x2bbf18['addCommentThread'](_0x508d67);for(const _0x16fa4d of _0x12e318)_0xaf19ce['addSuggestionData'](_0x16fa4d);_0x48d809['data']['set'](_0x6b77b6);}(_0x3369f1,_0x561996),_0x561996['execute'](_0x19c95c?'acceptAllSuggestions':'discardAllSuggestions');const _0x4d4aa5=Ne(_0x561996)?_0x561996['getFullData'](_0x21c4f3):_0x561996['data']['get'](_0x21c4f3);return await _0x561996['destroy'](),_0x4d4aa5;}class Me extends _0x3e1a2d{['options'];constructor(_0x443787,_0xfcdf1b){super(_0x443787),this['options']=_0xfcdf1b,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'](_0x58b533,_0x409da6){if(!this['element'])return;const _0x4841ad=[];for(const [_0x1dcc75,_0x29919e]of _0x58b533){const _0x23e983=document['createElement']('div');_0x23e983['setAttribute']('data-ck-root-name',_0x1dcc75),_0x23e983['className']=_0x29919e['classes']+'\x20ck-track-changes-preview__root-container',_0x23e983['innerHTML']=_0x29919e['content'],_0x4841ad['push'](_0x23e983);}_0x409da6(this['element'],_0x4841ad),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0xb6fba0{constructor(_0x50e750){super(_0x50e750),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1efbfa=this['editor'],_0x41babf=_0x1efbfa['locale'],_0x26cf6c=_0x1efbfa['plugins']['get']('Dialog');let _0x927d74;const _0x20944e=function(_0x31818a){const _0x504843={};if('editables'in _0x31818a['ui']['view']){for(const [_0x1194d3,_0x362058]of Object['entries'](_0x31818a['ui']['view']['editables']))_0x504843[_0x1194d3]=_0x362058['element'];}else _0x504843[_0x31818a['model']['document']['getRootNames']()[0x0]]=_0x31818a['ui']['view']['editable']['element'];return _0x504843;}(_0x1efbfa),_0x22f744=function(_0x414027){let _0x55009e=0x0;for(const _0x5bc0c2 of Object['values'](_0x414027))_0x55009e=Math['max'](_0x55009e,_0x5bc0c2['getBoundingClientRect']()['width']);let _0x5edcf8=0x0;for(const _0xa6e288 of Object['values'](_0x414027))_0x5edcf8+=_0xa6e288['getBoundingClientRect']()['height'];const _0x122490=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x236f9d=Math['min'](_0x5edcf8,_0x122490);return{'width':_0x55009e,'height':_0x236f9d};}(_0x20944e);_0x26cf6c['show']({'id':'finalContentPreview','title':o(_0x41babf,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x41babf,{'dialogRects':_0x22f744}),'onHide':()=>{_0x927d74['detachFromDom']();},'onShow':()=>{_0x1efbfa['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x585018=>{const _0x538811=this['_standarizeRootsData'](_0x585018,_0x1efbfa,_0x20944e);_0x26cf6c['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x538811,_0x1efbfa['config']['get']('trackChanges.preview.renderFunction'));}),_0x927d74=new _0x533c45(_0x41babf,[_0x26cf6c['view']]),_0x927d74['attachToDom'](),_0x927d74['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1efbfa['once']('destroy',()=>{_0x927d74['detachFromDom']();});const _0x338f1f=_0x26cf6c['view']['headerView']['class'];_0x26cf6c['view']['headerView']['class']=_0x338f1f?_0x338f1f+'\x20ck-reset_all':'ck-reset_all',_0x26cf6c['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x26cf6c['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x226b16=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x17c937=_0x226b16['previewMode'],_0xe71238={};if('$labels'===_0x17c937){for(const _0xb0e5c3 of _0x226b16['getMergeFieldsIds']())_0xe71238[_0xb0e5c3]=_0x226b16['getLabel'](_0xb0e5c3)||_0xb0e5c3;}else{const _0x3841f7='$defaultValues'===_0x17c937?_0x226b16['getDefaultValues']():_0x226b16['getDataSetValues'](_0x17c937,!0x0);for(const _0x57b6ee of Object['entries'](_0x3841f7)){const [_0x5434c4,_0x2df30b]=_0x57b6ee;_0xe71238[_0x5434c4]=null!==_0x2df30b?_0x2df30b:_0x226b16['getLabel'](_0x5434c4)||_0x5434c4;}}return{'mergeFieldsData':_0xe71238};}['_standarizeRootsData'](_0x1e5e03,_0x545f9d,_0x466aff){let _0x5314fc;if('string'==typeof _0x1e5e03){const _0x287be0=_0x545f9d['model']['document']['getRootNames']()[0x0];_0x5314fc={[_0x287be0]:_0x1e5e03};}else _0x5314fc=_0x1e5e03;const _0x3b0c13=this['_fixMediaEmbeds'](_0x5314fc,_0x545f9d),_0x4a2080=function(_0x57a45a,_0xfd7f4){for(const [_0x17eb56,_0x1b5b04]of _0x57a45a)_0x1b5b04['classes']=_0xfd7f4[_0x17eb56]['classList']['value']['replace']('ck-focused','');return _0x57a45a;}(this['_sortRoots'](_0x545f9d)['reduce']((_0x5873ee,_0x1cf4b8)=>(_0x5873ee['push']([_0x1cf4b8,{'content':_0x3b0c13[_0x1cf4b8],'classes':''}]),_0x5873ee),[]),_0x466aff);return _0x4a2080;}['_fixMediaEmbeds'](_0x359976,_0x3194aa){if(!_0x3194aa['plugins']['has']('MediaEmbedEditing'))return _0x359976;const _0x3d680b=_0x3194aa['plugins']['get']('MediaEmbedEditing');for(const [_0x2dffb9,_0x313b17]of Object['entries'](_0x359976)){const _0x2e2b6c=document['createElement']('div');_0x2e2b6c['innerHTML']=_0x313b17,(_0x2e2b6c['querySelectorAll']('figure.media')['forEach'](_0x554eec=>{const _0x1764c0=_0x554eec['querySelector']('oembed');if(_0x1764c0){const _0x16d5a0=_0x1764c0['getAttribute']('url');if(_0x16d5a0){const _0x1cefdb=_0x3d680b['registry']['getMediaViewElement'](new _0x335976(_0x3194aa['editing']['view']['document']),_0x16d5a0,{'elementName':'','renderForEditingView':!0x0}),_0x4732e4=document['createElement']('div');_0x4732e4['classList']['add']('ck-media__wrapper'),_0x1cefdb['render'](_0x4732e4,_0x3194aa['editing']['view']['domConverter']),_0x1764c0['replaceWith'](_0x4732e4);}}}),_0x359976[_0x2dffb9]=_0x2e2b6c['innerHTML']);}return _0x359976;}['_sortRoots'](_0xbfe520){if(!function(_0x33fb5a){return void 0x0!==_0x33fb5a['getRootsAttributes'];}(_0xbfe520))return _0xbfe520['model']['document']['getRootNames']();const _0x5cb013=[],_0x2075be=new Map();for(const _0x85b260 of _0xbfe520['model']['document']['getRootNames']()){const _0xc88067=_0xbfe520['editing']['view']['getDomRoot'](_0x85b260)['getClientRects']()['item'](0x0);_0x5cb013['push'](_0x85b260),_0x2075be['set'](_0x85b260,_0xc88067);}return _0x5cb013['sort']((_0x328a2e,_0x5d0fb8)=>{const _0x56e5d7=_0x2075be['get'](_0x328a2e),_0x222572=_0x2075be['get'](_0x5d0fb8);return _0x56e5d7['y']-_0x222572['y']||_0x56e5d7['x']-_0x222572['x'];}),_0x5cb013;}}class TrackChangesPreview extends _0x27110f{static get['requires'](){return[re,_0x3c0422];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47164a){super(_0x47164a),_0x47164a['commands']['add']('previewFinalContent',new te(this['editor'])),_0x47164a['config']['define']('trackChanges.preview.renderFunction',(_0x55ef89,_0x3001c1)=>{for(const _0x430c06 of _0x3001c1)_0x55ef89['appendChild'](_0x430c06);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,TrackChanges,B as TrackChangesCommand,re as TrackChangesData,TrackChangesDataGetter,d as TrackChangesEditing,TrackChangesPreview,u as TrackChangesUI};