@ckeditor/ckeditor5-track-changes 47.6.2 → 47.7.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0xede307,Plugin as _0x447d1d,PendingActions as _0x2348da}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2f0245,ObservableMixin as _0x3cbdec,uid as _0x46153d,priorities as _0x1b06ae,insertToPriorityArray as _0x4d6eb0,logWarning as _0x35d946,getEnvKeystrokeText as _0x12cc2c,FocusTracker as _0x523bcb,KeystrokeHandler as _0x31b713,Collection as _0x35eb9d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x577fd1,IconCancel as _0x1c7e49,IconTrackChanges as _0x596284}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x546744,View as _0x4f487c,ViewCollection as _0xb814a5,FocusCycler as _0x33a1e7,UIModel as _0x5b7a3b,createDropdown as _0x44cf48,SplitButtonView as _0x53b543,addListToDropdown as _0x59d832,MenuBarMenuView as _0x329192,MenuBarMenuListView as _0x17ee5b,ListSeparatorView as _0x23a270,MenuBarMenuListItemView as _0x1af934,MenuBarMenuListItemButtonView as _0xc38dab,BodyCollection as _0x3429fc,Dialog as _0x23dd67}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x4debab,Users as _0x3eb489,DocumentCompare as _0x9068a6,fixElementSuggestionRange as _0x5d7d39,hashObject as _0x1a6417,splitSuggestionMarkerName as _0x7e3b6a,surroundingMarkersDetector as _0x14304a,FOCUS_ANNOTATION_KEYSTROKE as _0x714db6,AriaDescriptionView as _0x1904b0,setupThreadKeyboardNavigation as _0x155ab8,trimHtml as _0x3f0150,UserView as _0x1830ea,LateFocusButtonView as _0x2abc0f,getDateTimeFormatter as _0xc4ba57,getAllMarkersDomElementsSorted as _0x4263a6,sanitizeEditorConfig as _0x3f3c6f}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x27c9b3,ModelLiveRange as _0x596d93,ModelLivePosition as _0x268372,ViewDowncastWriter as _0x2485a9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x4e20cf,set as _0x1cd42f,isEqual as _0x3d8183,unset as _0x75f95a,omit as Jt}from'es-toolkit/compat';import{Delete as _0x4f4312,Input as _0x513e8e}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xe036a3}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3642de}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0xede307{['_enabledCommands'];constructor(_0x30eb51,_0x31678a){super(_0x30eb51),this['_enabledCommands']=_0x31678a,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 _0x4a4bc6 of this['editor']['commands']['commands']())_0x4a4bc6['affectsData']&&!this['_enabledCommands']['has'](_0x4a4bc6)&&_0x4a4bc6['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1c0a06 of this['editor']['commands']['commands']())_0x1c0a06['affectsData']&&!this['_enabledCommands']['has'](_0x1c0a06)&&_0x1c0a06['clearForceDisabled']('TrackChangesCommand');}}class O extends _0xede307{['_suggestions'];constructor(_0x350cf7,_0x4e390f){super(_0x350cf7),this['_suggestions']=_0x4e390f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x325c13){const _0xa2fca3=this['_suggestions']['get'](_0x325c13);if(!_0xa2fca3)throw new _0x2f0245('track-changes-accept-suggestion-not-found',this);const _0x2f15f8=_0xa2fca3['getRanges']();this['editor']['model']['canEditAt'](_0x2f15f8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xa2fca3);}}class x extends _0xede307{['_suggestions'];constructor(_0x43fc7a,_0xc0b41c){super(_0x43fc7a),this['_suggestions']=_0xc0b41c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1232cf){const _0x3e29b4=this['_suggestions']['get'](_0x1232cf);if(!_0x3e29b4)throw new _0x2f0245('track-changes-discard-suggestion-not-found',this);const _0x32bc32=_0x3e29b4['getRanges']();this['editor']['model']['canEditAt'](_0x32bc32)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3e29b4);}}function ls(_0x4aaeb2,_0x3fb054){let _0x484240='';return _0x484240+=_0x4aaeb2['split']('*')['map']((_0x122d81,_0x5a20d4)=>_0x5a20d4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x122d81)+'</span>':rn(_0x122d81))['join'](''),_0x3fb054&&(_0x484240+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3fb054['value']+'\x22\x20title=\x22'+_0x3fb054['title']+'\x22></span>'),_0x484240;}function rn(_0x1dbcef){const _0x47ae9f=document['createElement']('span');return _0x47ae9f['innerText']=_0x1dbcef,_0x47ae9f['innerHTML'];}function ts(_0x2d5c08){return _0x2d5c08['sort']((_0x51e5db,_0x3b9258)=>'attribute'===_0x51e5db['type']&&'attribute'!==_0x3b9258['type']?-0x1:'attribute'!==_0x51e5db['type']&&'attribute'===_0x3b9258['type']?0x1:'deletion'==_0x51e5db['type']&&'deletion'!=_0x3b9258['type']?-0x1:'deletion'!=_0x51e5db['type']&&'deletion'==_0x3b9258['type']?0x1:0x0);}function to(_0x10a630,_0x3e1338){let _0x3d99d3,_0x4bea6b=0x0;const _0x49e63f=[],_0x383aef=_0x3e1338['schema'];for(;_0x4bea6b<_0x10a630['length'];){const _0x33c3fb=_0x10a630[_0x4bea6b],_0x2bbb20=_0x10a630[_0x4bea6b+0x1];_0x3d99d3||(_0x3d99d3=_0x3e1338['createPositionBefore'](_0x33c3fb)),cn(_0x3e1338,_0x33c3fb,_0x2bbb20)||(_0x49e63f['push'](_0x3e1338['createRange'](_0x3d99d3,_0x383aef['isObject'](_0x33c3fb)?_0x3e1338['createPositionAfter'](_0x33c3fb):_0x3e1338['createPositionAt'](_0x33c3fb,'end'))),_0x3d99d3=null),_0x4bea6b++;}return _0x49e63f;}function cn(_0x352f8,_0x436562,_0x33155c){if(!_0x33155c)return!0x1;const _0x4567a9=_0x352f8['createPositionAfter'](_0x436562),_0x1ba214=_0x352f8['createPositionBefore'](_0x33155c);return _0x4567a9['isTouching'](_0x1ba214);}function rs(_0x1d0bc0,_0x1b439d,_0x1b6e36){for(;_0x1b6e36['length'];){const _0x83d6f7=_0x1b6e36['splice'](0x0,0x64);_0x1d0bc0['change'](()=>{for(const _0x374563 of _0x83d6f7)_0x374563['isInContent']&&_0x1b439d['execute'](_0x374563['id']);});}}class M extends _0xede307{['_command'];['_suggestions'];constructor(_0x78e722,_0xb2fd99,_0x2099ac){super(_0x78e722),this['_command']=_0xb2fd99,this['_suggestions']=_0x2099ac,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xfaf75e=Array['from'](this['_suggestions']['values']())['some'](_0x1d5c7a=>_0x1d5c7a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xfaf75e;}['execute'](){const _0x591357=ts(Array['from'](this['_suggestions']['values']()));for(const _0x258750 of _0x591357){const _0x5de5fb=_0x258750['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5de5fb))return;}rs(this['editor']['model'],this['_command'],_0x591357);}}class R extends _0xede307{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x52712e,_0x201ec8,_0x35463c){super(_0x52712e),this['_command']=_0x201ec8,this['_suggestions']=_0x35463c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1a4ca9=this['editor']['model']['document']['selection'],_0x2453d9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1e7a93,_0x4a474b){const _0x4d7de6=Array['from'](_0x1e7a93['getRanges']()),_0x3664f5=new Set();for(const _0xae1dc9 of _0x4a474b)if(_0xae1dc9['isInContent']){for(const _0x59a904 of _0x4d7de6)for(const _0x266760 of _0xae1dc9['getRanges']())(_0x59a904['isIntersecting'](_0x266760)||_0x1e7a93['isCollapsed']&&!_0xae1dc9['isMultiRange']&&_0xae1dc9['next']&&_0x266760['end']['isTouching'](_0x59a904['start']))&&_0x3664f5['add'](_0xae1dc9);}return _0x3664f5;}(_0x1a4ca9,_0x2453d9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5212f1=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4e2bdf of _0x5212f1){const _0x292176=_0x4e2bdf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x292176))return;}rs(this['editor']['model'],this['_command'],_0x5212f1);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x3cbdec(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3db371,_0x515a03){super(),this['id']=_0x515a03['id'],this['type']=_0x515a03['type'],this['subType']=_0x515a03['subType']||null,this['author']=_0x515a03['author'],this['creator']=_0x515a03['creator']||_0x515a03['author'],this['isExternal']=Boolean(_0x515a03['attributes']&&_0x515a03['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x515a03['originalSuggestionId']||null,this['_model']=_0x3db371,this['_onAccept']=_0x515a03['onAccept'],this['_onDiscard']=_0x515a03['onDiscard'],this['_onAttributesChange']=_0x515a03['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x515a03['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 _0x4b6b0b=this;for(;_0x4b6b0b['previous'];)_0x4b6b0b=_0x4b6b0b['previous'];return _0x4b6b0b;}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'](_0x41e59b){this['_markerNames']['add'](_0x41e59b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1590a4=>this['_model']['markers']['get'](_0x1590a4))['filter'](_0xf94ea2=>_0xf94ea2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4a2044=>{for(const _0x46b694 of this['getMarkers']())_0x4a2044['removeMarker'](_0x46b694);}),this['_markerNames']['clear']();}['removeMarker'](_0x1bb016){this['_model']['change'](_0x3151f1=>{_0x3151f1['removeMarker'](_0x1bb016);}),this['_markerNames']['delete'](_0x1bb016);}['addRange'](_0x68dd3d){const _0xbd26be='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0xbd26be),this['_model']['change'](_0x51a5fb=>{_0x51a5fb['addMarker'](_0xbd26be,{'range':_0x68dd3d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3afc71){for(const _0x277aab of this['getRanges']())if(_0x277aab['isIntersecting'](_0x3afc71))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x31436e=>_0x31436e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x232ee4,_0x59483a)=>[..._0x232ee4,..._0x59483a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x437b62=this['getRanges']();if(0x1!=_0x437b62['length'])return null;const _0x134366=_0x437b62[0x0],_0x5e113b=_0x134366['start']['nodeAfter'],_0x38162e=_0x134366['end']['nodeBefore'];return _0x5e113b instanceof _0x27c9b3?_0x5e113b!=_0x38162e?null:_0x5e113b: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 _0x5e4411=[];let _0x23bb7e=this['head'];for(;_0x23bb7e;)_0x5e4411['push'](_0x23bb7e),_0x23bb7e=_0x23bb7e['next'];return _0x5e4411;}['setAttribute'](_0x4d9cce,_0x51d0a0){const _0x175dd6=_0x4e20cf(this['attributes']);_0x1cd42f(_0x175dd6,_0x4d9cce,_0x51d0a0),_0x3d8183(_0x175dd6,this['attributes'])||(this['attributes']=_0x175dd6,this['_onAttributesChange'](_0x175dd6));}['removeAttribute'](_0x300e77){const _0x3894cb=_0x4e20cf(this['attributes']);_0x75f95a(_0x3894cb,_0x300e77),_0x3d8183(_0x3894cb,this['attributes'])||(this['attributes']=_0x3894cb,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 _0x46153d()['substr'](0x1,0x5);}}function o(_0x3e4e1e,_0x39e21c,_0x28e48f){const _0x36b0e1=_0x3e4e1e['t'],t=_0x3e4e1e['t'];switch(_0x39e21c){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',_0x28e48f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x28e48f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x28e48f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x28e48f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x28e48f);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',_0x28e48f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x28e48f);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',_0x28e48f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x28e48f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x28e48f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x28e48f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x28e48f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x28e48f);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x28e48f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x28e48f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x28e48f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x28e48f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x28e48f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x28e48f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x28e48f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x28e48f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x28e48f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x28e48f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x28e48f);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x28e48f);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'},_0x28e48f);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x28e48f);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x28e48f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x28e48f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x28e48f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x28e48f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x28e48f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x28e48f);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'},_0x28e48f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x28e48f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x28e48f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x28e48f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x28e48f);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'},_0x28e48f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x28e48f);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'},_0x28e48f);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'},_0x28e48f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x28e48f);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'},_0x28e48f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x28e48f);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'},_0x28e48f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x28e48f);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x28e48f);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x28e48f);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x28e48f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x28e48f);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'},_0x28e48f);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x28e48f);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 _0x36b0e1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x28e48f);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x36b0e1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x28e48f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x28e48f);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'},_0x28e48f);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'},_0x28e48f);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'},_0x28e48f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x39e21c;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x248616,_0x360dab){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x248616,this['_locale']=_0x360dab;}['getDescriptions'](_0x3ea4ae){const _0x4305c7=[],_0x2fafe9=new Set(),_0x50257c=new Set();for(let _0x31b656=0x0;_0x31b656<_0x3ea4ae['length'];_0x31b656++){const _0x144f8b=_0x3ea4ae[_0x31b656];if(!_0x144f8b['isInContent'])continue;const _0x2b95e8=this['_handleCustomCallbackDescription'](_0x144f8b);if(_0x2b95e8){if(null!=_0x144f8b['subType']){if(_0x2fafe9['has'](_0x144f8b['subType']))continue;_0x2fafe9['add'](_0x144f8b['subType']);}_0x4305c7['push'](_0x2b95e8);}else{if('attribute'==_0x144f8b['type']){const _0x277c32=_0x144f8b['data']['key'];if(_0x50257c['has'](_0x277c32))continue;_0x50257c['add'](_0x144f8b['data']['key']),_0x277c32==m?this['_handleRenameSuggestionDescription'](_0x4305c7,_0x144f8b):this['_handleAttributeSuggestionDescription'](_0x4305c7,_0x144f8b);continue;}'insertion'!=_0x144f8b['type']&&'deletion'!=_0x144f8b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4305c7,_0x144f8b,_0x3ea4ae[_0x31b656+0x1]);}}return this['_resolveDescriptionItems'](_0x4305c7);}['registerDescriptionCallback'](_0x5ebc48){this['_customCallbacks']['push'](_0x5ebc48);}['registerElementLabel'](_0x31c31b,_0x4527d5,_0x22f70d=_0x1b06ae['normal']){'function'==typeof _0x31c31b?_0x4d6eb0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x31c31b,'label':_0x4527d5,'priority':_0x22f70d}):this['_itemLabels']['set'](_0x31c31b,_0x4527d5);}['registerAttributeLabel'](_0x270252,_0x14d773){this['_attributeLabels']['set'](_0x270252,_0x14d773);}['getItemLabel'](_0x3467f5,_0x50da52=0x1){let _0x4a6f8a;for(const _0x18c144 of this['_itemLabelsCallbacks'])if(_0x18c144['matchingCallback'](_0x3467f5)){_0x4a6f8a=_0x18c144['label'];break;}return _0x4a6f8a||(_0x4a6f8a=this['_itemLabels']['get'](_0x3467f5['name'])),_0x4a6f8a?_0x4a6f8a(_0x50da52):0x1!==_0x50da52?_0x50da52+'\x20'+_0x3467f5['name']+'s':''+_0x3467f5['name'];}['_addDescriptionItems'](_0x4d66dc,_0x2d3c6c){const _0x484264=_0x2d3c6c['getFirstRange']()['getWalker'](),_0x22fafc='insertion'==_0x2d3c6c['type']?'add':'remove';for(const _0x1aa730 of _0x484264){const _0x765fc8=_0x1aa730['item'],_0x500b05=_0x4d66dc[_0x4d66dc['length']-0x1];if(_0x765fc8['is']('$textProxy'))_0x500b05&&_0x500b05['type']['indexOf']('Container')>-0x1&&_0x4d66dc['pop'](),_0x500b05&&'text'==_0x500b05['type']?_0x500b05[_0x22fafc]+=_0x765fc8['data']:_0x4d66dc['push']({'type':'text','add':'add'==_0x22fafc?_0x765fc8['data']:'','remove':'remove'==_0x22fafc?_0x765fc8['data']:''});else{if(this['_schema']['isObject'](_0x765fc8)){const _0x1addfe=_0x765fc8;if(_0x500b05&&_0x500b05['type']['indexOf']('Container')>-0x1&&_0x4d66dc['pop'](),'elementEnd'==_0x1aa730['type'])continue;_0x500b05&&_0x500b05['type']==_0x22fafc+'Object'&&_0x500b05['element']['name']==_0x1addfe['name']?_0x500b05['quantity']++:_0x4d66dc['push']({'type':_0x22fafc+'Object','element':_0x1addfe,'quantity':0x1}),_0x484264['skip'](_0x1d8ffe=>!('elementEnd'==_0x1d8ffe['type']&&_0x1d8ffe['item']==_0x765fc8));}else{if(this['_schema']['checkChild'](_0x765fc8,'$text')||_0x765fc8['is']('element','softBreak')){const _0x18c4a2=_0x765fc8;if('add'==_0x22fafc&&'elementStart'==_0x1aa730['type']||'remove'==_0x22fafc&&'elementEnd'==_0x1aa730['type'])continue;if(_0x500b05&&-0x1==_0x500b05['type']['indexOf']('Container')){'text'==_0x500b05['type']&&(_0x500b05[_0x22fafc]+='\x0a');continue;}let _0x3f7546;if(_0x3f7546='add'==_0x22fafc?_0x18c4a2['nextSibling']&&!this['_schema']['isObject'](_0x18c4a2['nextSibling'])?_0x18c4a2['nextSibling']:null:_0x18c4a2['previousSibling']&&!this['_schema']['isObject'](_0x18c4a2['previousSibling'])?_0x18c4a2['previousSibling']:null,_0x18c4a2['isEmpty']||_0x3f7546&&_0x3f7546['isEmpty']){const _0x828ea0=_0x3f7546&&_0x3f7546['isEmpty']?_0x3f7546:_0x18c4a2;_0x500b05&&_0x500b05['type']==_0x22fafc+'EmptyContainer'&&_0x500b05['element']['name']==_0x828ea0['name']?_0x500b05['quantity']++:_0x4d66dc['push']({'type':_0x22fafc+'EmptyContainer','element':_0x828ea0,'quantity':0x1});}else _0x4d66dc['push']({'type':_0x22fafc+'Container','element':_0x18c4a2});}}}}}['_resolveDescriptionItems'](_0x21f1f6){const _0x8bdf4f=this['_locale'],_0x38c5d8=[],_0x4ed29e=[],_0x1d7c70=[];for(const _0x5b8b82 of _0x21f1f6)switch(_0x5b8b82['type']){case'text':if(_0x5b8b82['add']=_0x5b8b82['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5b8b82['remove']=_0x5b8b82['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5b8b82['add']&&''!=_0x5b8b82['remove']){_0x38c5d8['push']({'type':'replace','content':o(_0x8bdf4f,'REPLACE_TEXT',['\x22'+_0x5b8b82['remove']+'\x22','\x22'+_0x5b8b82['add']+'\x22'])});continue;}if(null!=_0x5b8b82['add']['match'](/^ +$/)){_0x38c5d8['push']({'type':'insertion','content':o(_0x8bdf4f,'*Insert:*\x20%0',o(_0x8bdf4f,'ELEMENT_SPACE',_0x5b8b82['add']['length']))});continue;}if(null!=_0x5b8b82['remove']['match'](/^ +$/)){_0x38c5d8['push']({'type':'deletion','content':o(_0x8bdf4f,'*Remove:*\x20%0',o(_0x8bdf4f,'ELEMENT_SPACE',_0x5b8b82['remove']['length']))});continue;}if(''!=_0x5b8b82['add']){_0x38c5d8['push']({'type':'insertion','content':o(_0x8bdf4f,'*Insert:*\x20%0','\x22'+_0x5b8b82['add']+'\x22')});continue;}_0x38c5d8['push']({'type':'deletion','content':o(_0x8bdf4f,'*Remove:*\x20%0','\x22'+_0x5b8b82['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x38c5d8['push']({'type':'insertion','content':o(_0x8bdf4f,'*Insert:*\x20%0',this['getItemLabel'](_0x5b8b82['element'],_0x5b8b82['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x38c5d8['push']({'type':'deletion','content':o(_0x8bdf4f,'*Remove:*\x20%0',this['getItemLabel'](_0x5b8b82['element'],_0x5b8b82['quantity']))});continue;case'addContainer':_0x38c5d8['push']({'type':'insertion','content':o(_0x8bdf4f,'*Split:*\x20%0',this['getItemLabel'](_0x5b8b82['element'],_0x5b8b82['quantity']))});continue;case'removeContainer':_0x38c5d8['push']({'type':'deletion','content':o(_0x8bdf4f,'*Merge:*\x20%0',this['getItemLabel'](_0x5b8b82['element'],_0x5b8b82['quantity']))});continue;case'addFormat':_0x4ed29e['push'](_0x5b8b82['key']);continue;case'removeFormat':_0x1d7c70['push'](_0x5b8b82['key']);continue;default:_0x38c5d8['push'](_0x5b8b82);}if(_0x4ed29e['length']){const _0x1de965=_0x4ed29e['map'](_0x92bf2f=>this['_attributeLabels']['has'](_0x92bf2f)?this['_attributeLabels']['get'](_0x92bf2f):_0x92bf2f)['join'](',\x20');_0x38c5d8['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1de965)});}if(_0x1d7c70['length']){const _0x529ba3=_0x1d7c70['map'](_0x2b54c6=>this['_attributeLabels']['has'](_0x2b54c6)?this['_attributeLabels']['get'](_0x2b54c6):_0x2b54c6)['join'](',\x20');_0x38c5d8['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x529ba3)});}return _0x38c5d8;}['_handleCustomCallbackDescription'](_0x473463){for(const _0x1e258d of this['_customCallbacks']){const _0x7e6922=_0x1e258d(_0x473463);if(_0x7e6922&&'type'in _0x7e6922)return _0x7e6922;}}['_handleAttributeSuggestionDescription'](_0x49bd0d,_0x159e47){const _0x5765bd=_0x159e47['data'],_0x10c3a9=void 0x0===_0x5765bd['newValue']?'removeFormat':'addFormat';_0x49bd0d['push']({'type':_0x10c3a9,'key':_0x5765bd['key']});}['_handleRenameSuggestionDescription'](_0xc56996,_0x336d3e){_0xc56996['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x336d3e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x268553,_0x4bc3be,_0x779540){if(this['_addDescriptionItems'](_0x268553,_0x4bc3be),_0x779540&&_0x779540['getFirstRange']()&&!_0x4bc3be['getFirstRange']()['end']['isEqual'](_0x779540['getFirstRange']()['start'])){const _0x1e2fd0=_0x268553[_0x268553['length']-0x1],_0x39d175='insertion'==_0x4bc3be['type']?'add':'remove';_0x1e2fd0&&'text'==_0x1e2fd0['type']&&(_0x1e2fd0[_0x39d175]+='\x0a');}}}class U extends _0x447d1d{['afterInit'](){const _0x53f5b3=this['editor'],_0x295ece=_0x53f5b3['plugins']['get']('TrackChangesEditing');_0x53f5b3['commands']['get']('showAIAssistant')&&_0x295ece['enableCommand']('showAIAssistant');}}class V extends _0x447d1d{['afterInit'](){const _0x366378=this['editor'],_0x1cc28e=_0x366378['plugins']['get']('TrackChangesEditing');_0x366378['commands']['get']('toggleAi')&&_0x1cc28e['enableCommand']('toggleAi');}}class F extends _0x447d1d{['afterInit'](){const _0x34cfb1=this['editor'],_0xe69a58=_0x34cfb1['plugins']['get']('TrackChangesEditing');_0x34cfb1['commands']['get']('aiQuickAction')&&_0xe69a58['enableCommand']('aiQuickAction');}}class G extends _0x447d1d{['afterInit'](){const _0x476626=this['editor'],_0x198aab=_0x476626['locale'];if(!_0x476626['plugins']['has']('AlignmentEditing'))return;const _0x33f536=_0x476626['plugins']['get']('TrackChangesEditing');_0x33f536['enableDefaultAttributesIntegration']('alignment'),_0x33f536['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x198aab,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29980d=this['editor'],_0x1dce50=_0x29980d['locale'];_0x29980d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x318bb1=>{if('formatBlock'!=_0x318bb1['type'])return;const {data:_0x50c86e}=_0x318bb1;if(_0x50c86e&&'alignment'==_0x50c86e['commandName']){const _0x249c69=_0x50c86e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1dce50,'*Format:*\x20%0',function(_0x1083f9){switch(_0x1083f9){case'left':return o(_0x1dce50,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1dce50,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1dce50,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1dce50,'FORMAT_JUSTIFY_TEXT');}}(_0x249c69))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x447d1d{['afterInit'](){const _0x2d9676=this['editor'],_0x17ea69=_0x2d9676['plugins']['get']('TrackChangesEditing'),_0x30b65b=_0x2d9676['locale'];for(const _0x1222d5 of ti){if(!_0x2d9676['plugins']['has'](_0x1222d5))continue;const _0x462ce9=_0x1222d5['slice'](0x0,-0x7)['toLowerCase'](),_0x3554bf='FORMAT_'+_0x462ce9['toUpperCase']();_0x17ea69['enableDefaultAttributesIntegration'](_0x462ce9),_0x17ea69['descriptionFactory']['registerAttributeLabel'](_0x462ce9,o(_0x30b65b,_0x3554bf));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5673ca=this['editor'],_0x23b61c=_0x5673ca['locale'],_0x2acd0d=_0x5673ca['plugins']['get']('TrackChangesEditing');function _0x355663(_0x2ff3e8,_0x55dcf2){_0x2acd0d['descriptionFactory']['registerDescriptionCallback'](_0x1aa9a6=>{if('formatInline'!=_0x1aa9a6['type'])return;const {data:_0x2a4669}=_0x1aa9a6;return _0x2a4669&&_0x2a4669['commandName']===_0x2ff3e8?_0x2a4669['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23b61c,'*Format:*\x20%0',_0x55dcf2)}:{'type':'format','content':o(_0x23b61c,'*Remove\x20format:*\x20%0',_0x55dcf2)}:void 0x0;});}_0x355663('bold',o(_0x23b61c,'FORMAT_BOLD')),_0x355663('italic',o(_0x23b61c,'FORMAT_ITALIC')),_0x355663('underline',o(_0x23b61c,'FORMAT_UNDERLINE')),_0x355663('code',o(_0x23b61c,'FORMAT_CODE')),_0x355663('strikethrough',o(_0x23b61c,'FORMAT_STRIKETHROUGH')),_0x355663('subscript',o(_0x23b61c,'FORMAT_SUBSCRIPT')),_0x355663('superscript',o(_0x23b61c,'FORMAT_SUPERSCRIPT'));}}class J extends _0x447d1d{['afterInit'](){const _0xcabb69=this['editor'],_0x509934=_0xcabb69['locale'];if(!_0xcabb69['plugins']['has']('BlockQuoteEditing'))return;const _0x1c6f6d=_0xcabb69['plugins']['get']('TrackChangesEditing'),_0x319557=this['editor']['commands']['get']('blockQuote');_0x1c6f6d['enableCommand']('blockQuote',(_0x198948,_0x4ac9d4={})=>{const _0x2423a7=this['editor']['model']['document']['selection'],_0x1e2dc0=_0x4ac9d4&&void 0x0!==_0x4ac9d4['forceValue']?_0x4ac9d4['forceValue']:!_0x319557['value'];let _0x195579=[];if(_0x1e2dc0){const _0x59ecbd=Array['from'](_0x2423a7['getSelectedBlocks']())['filter'](_0x51a31d=>oo(_0x51a31d)||function(_0x2a98e8,_0x404d15){const _0x1fdb03=_0x404d15['checkChild'](_0x2a98e8['parent'],'blockQuote'),_0x376ab0=_0x404d15['checkChild'](['$root','blockQuote'],_0x2a98e8);return _0x1fdb03&&_0x376ab0;}(_0x51a31d,this['editor']['model']['schema']));_0x195579=to(_0x59ecbd,_0xcabb69['model']);}else{const _0x1e98aa=Array['from'](_0x2423a7['getSelectedBlocks']())['filter'](_0x46b7be=>oo(_0x46b7be));_0x195579=to(_0x1e98aa,_0xcabb69['model']);}_0xcabb69['model']['change'](()=>{for(const _0x18da3a of _0x195579)_0x1c6f6d['markBlockFormat'](_0x18da3a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1e2dc0}]});});}),_0x1c6f6d['descriptionFactory']['registerDescriptionCallback'](_0x1047a2=>{const {data:_0x2311a2}=_0x1047a2;if(_0x2311a2&&'blockQuote'==_0x2311a2['commandName']){const _0x1ca1c0=o(_0x509934,'ELEMENT_BLOCK_QUOTE');return _0x2311a2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x509934,'*Set\x20format:*\x20%0',_0x1ca1c0)}:{'type':'format','content':o(_0x509934,'*Remove\x20format:*\x20%0',_0x1ca1c0)};}});}}function oo(_0x23749a){return'blockQuote'==_0x23749a['parent']['name'];}class q extends _0x447d1d{['afterInit'](){const _0x5eaeb5=this['editor'],_0x92c8b2=_0x5eaeb5['locale'],_0x4906d4=_0x5eaeb5['plugins']['get']('TrackChangesEditing');_0x5eaeb5['plugins']['has']('BookmarkEditing')&&(_0x4906d4['enableCommand']('insertBookmark'),_0x4906d4['enableDefaultAttributesIntegration']('updateBookmark'),_0x4906d4['descriptionFactory']['registerDescriptionCallback'](_0x25eb3b=>{if('insertion'!=_0x25eb3b['type']&&'deletion'!=_0x25eb3b['type']&&'attribute'!=_0x25eb3b['type'])return;const _0x4b4355=_0x25eb3b['getContainedElement']();if(null==_0x4b4355)return;if(!_0x4b4355['is']('element','bookmark'))return;const _0x3de1c8=_0x4b4355['getAttribute']('bookmarkId');if('insertion'==_0x25eb3b['type'])return{'type':'insertion','content':o(_0x92c8b2,'*Insert:*\x20%0','\x22'+_0x3de1c8+'\x22\x20'+o(_0x92c8b2,'ELEMENT_BOOKMARK'))};if('deletion'==_0x25eb3b['type'])return{'type':'deletion','content':o(_0x92c8b2,'*Remove:*\x20%0','\x22'+_0x3de1c8+'\x22\x20'+o(_0x92c8b2,'ELEMENT_BOOKMARK'))};const {data:_0x420342}=_0x25eb3b;if(!_0x420342||'bookmarkId'!=_0x420342['key'])return;return{'type':'format','content':o(_0x92c8b2,'*Set\x20bookmark:*\x20%0','\x22'+_0x420342['newValue']+'\x22')};}));}}class z extends _0x447d1d{['afterInit'](){const _0x3f1603=this['editor'];_0x3f1603['plugins']['has']('CaseChange')&&(_0x3f1603['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f1603['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f1603['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x447d1d{['afterInit'](){const _0x3f0005=this['editor'];_0x3f0005['commands']['get']('ckbox')&&_0x3f0005['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x447d1d{['afterInit'](){const _0x5febb1=this['editor'];if(!_0x5febb1['plugins']['has']('CodeBlock'))return;const _0x2f5a21=_0x5febb1['plugins']['get']('TrackChangesEditing'),_0x19dcbb=_0x5febb1['locale'],_0x51cb3c=_0x5febb1['config']['get']('codeBlock')['languages'],_0x60d6a5=_0x5febb1['commands']['get']('codeBlock');_0x2f5a21['enableCommand']('indentCodeBlock'),_0x2f5a21['enableCommand']('outdentCodeBlock'),_0x2f5a21['enableCommand']('codeBlock',(_0x4f72b9,_0x533466={})=>{const _0x1650a3=_0x5febb1['model'],_0xa2d91e=_0x5febb1['model']['document']['selection'],_0x13de90=_0x533466&&void 0x0!==_0x533466['forceValue']?_0x533466['forceValue']:!_0x60d6a5['value'];let _0x5935cd;_0x533466['language']||(_0x533466['language']=_0x51cb3c[0x0]['language']),_0x5935cd=_0x13de90?Array['from'](_0xa2d91e['getSelectedBlocks']())['filter'](_0x19ceeb=>co(_0x19ceeb)||function(_0x11e799,_0x5640b0){if(_0x11e799['is']('rootElement')||_0x5640b0['isLimit'](_0x11e799))return!0x1;return _0x5640b0['checkChild'](_0x11e799['parent'],'codeBlock');}(_0x19ceeb,_0x1650a3['schema'])):Array['from'](_0xa2d91e['getSelectedBlocks']())['filter'](_0x200144=>co(_0x200144));const _0x1663eb=to(_0x5935cd,_0x1650a3);_0x1650a3['change'](()=>{for(const _0x1b383b of _0x1663eb)_0x2f5a21['markBlockFormat'](_0x1b383b,{'commandName':'codeBlock','commandParams':[{..._0x533466,'forceValue':_0x13de90}],'formatGroupId':'blockName'});});}),(_0x2f5a21['descriptionFactory']['registerElementLabel']('codeBlock',_0x3f4e3d=>o(_0x19dcbb,'ELEMENT_CODE_BLOCK',_0x3f4e3d)),_0x2f5a21['descriptionFactory']['registerDescriptionCallback'](_0x3cedd0=>{if('formatBlock'!=_0x3cedd0['type'])return;const _0x246993=_0x19dcbb['t'],{data:_0x313307}=_0x3cedd0;if(!_0x313307||'codeBlock'!=_0x313307['commandName'])return;const _0x4dc1c1=_0x313307['commandParams'][0x0]['language'],_0x5ccb72=_0x246993(_0x51cb3c['find'](_0x5141aa=>_0x5141aa['language']===_0x4dc1c1)['label'])['toLowerCase']();return _0x313307['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19dcbb,'*Set\x20format:*\x20%0',o(_0x19dcbb,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5ccb72+')')}:{'type':'format','content':o(_0x19dcbb,'*Remove\x20format:*\x20%0',o(_0x19dcbb,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x556a5a){return'codeBlock'==_0x556a5a['name'];}class H extends _0x447d1d{['afterInit'](){const _0x5b5c52=this['editor'];if(!_0x5b5c52['plugins']['has']('CommentsEditing'))return;_0x5b5c52['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x447d1d{static get['requires'](){return[_0x4f4312];}['init'](){const _0x2f7299=this['editor'],_0x2f20a8=_0x2f7299['plugins']['get']('TrackChangesEditing');_0x2f20a8['enableCommand']('delete');const _0x2b17e6=_0x2f7299['commands']['get']('deleteForward');_0x2f20a8['enableCommand']('deleteForward',(_0x331409,_0x584284={})=>{const _0x50c481=_0x2f7299['model']['createSelection'](_0x2f7299['model']['document']['selection']);_0x50c481['isCollapsed']&&_0x2f7299['model']['modifySelection'](_0x50c481,{'direction':'forward','unit':_0x584284['unit']});const _0x372ecd=_0x50c481['getFirstRange'](),_0x3a8b45=_0x596d93['fromRange'](_0x372ecd);let _0x28569d;_0x331409(_0x584284),_0x28569d='$graveyard'==_0x3a8b45['root']['rootName']?_0x2f7299['model']['createRange'](_0x372ecd['start']):_0x2f7299['model']['createRange'](_0x3a8b45['start'],_0x3a8b45['end']),_0x3a8b45['detach'](),_0x2f7299['model']['enqueueChange'](_0x2b17e6['buffer']['batch'],_0x2f66f0=>{_0x2b17e6['buffer']['lock'](),_0x2f66f0['setSelection'](_0x2f66f0['createRange'](_0x28569d['end'])),_0x2b17e6['buffer']['unlock']();});});}}class X extends _0x447d1d{['afterInit'](){const _0x40220d=this['editor'];if(!_0x40220d['plugins']['has']('ListEditing'))return;const _0x2994ae=_0x40220d['locale'],_0x28ee6f=_0x40220d['plugins']['get']('TrackChangesEditing'),_0xf50e=_0x40220d['plugins']['has']('TodoListEditing'),_0x1f1553=!!_0x40220d['config']['get']('list.multiBlock');function _0x305618(_0x382163){return{'type':'format','content':''+o(_0x2994ae,'*Set\x20format:*\x20%0',_0x382163)};}function _0x3eb74e(_0x5719ab){return{'type':'format','content':''+o(_0x2994ae,'*Remove\x20format:*\x20%0',_0x5719ab)};}_0x28ee6f['enableDefaultAttributesIntegration']('numberedList'),_0x28ee6f['enableDefaultAttributesIntegration']('bulletedList'),_0x28ee6f['enableDefaultAttributesIntegration']('customNumberedList'),_0x28ee6f['enableDefaultAttributesIntegration']('customBulletedList'),_0x28ee6f['enableDefaultAttributesIntegration']('indentList'),_0x28ee6f['enableDefaultAttributesIntegration']('outdentList'),_0x28ee6f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x28ee6f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1f1553&&(_0x28ee6f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x28ee6f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xf50e&&(_0x28ee6f['enableDefaultAttributesIntegration']('todoList'),_0x28ee6f['enableDefaultAttributesIntegration']('checkTodoList'),_0x28ee6f['descriptionFactory']['registerDescriptionCallback'](_0x35771f=>{const {data:_0x49b5d0}=_0x35771f;if(_0x49b5d0&&'todoListChecked'==_0x49b5d0['key'])return{'type':'format','content':_0x49b5d0['newValue']?o(_0x2994ae,'*Check\x20item*'):o(_0x2994ae,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4ab106=>{if(_0x4ab106['batch']['isUndo'])return!0x1;let _0xaf8e1=!0x1;const _0x38a586=_0x28ee6f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39bb40=>'todoListChecked'===_0x28ee6f['_getAttributeKey'](_0x39bb40));for(const _0xbc4beb of _0x38a586){'todo'!=_0xbc4beb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x28ee6f['_findSuggestions'](_0xbc4beb['getFirstRange'](),'attribute')['find'](_0x373eec=>'listType'===_0x28ee6f['_getAttributeKey'](_0x373eec['suggestion']))||(_0x4ab106['removeMarker'](_0xbc4beb['getFirstMarker']()),_0xaf8e1=!0x0));}return _0xaf8e1;})),_0x28ee6f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2994ae,'FORMAT_INDENT'));const _0x46b13c={'type':'format','content':''};_0x28ee6f['descriptionFactory']['registerDescriptionCallback'](_0x119e5a=>{const {data:_0x3f4b05}=_0x119e5a;if(!_0x3f4b05||'listType'!=_0x3f4b05['key'])return;let _0x35fb1c=_0x119e5a['head'];for(;_0x35fb1c;){if(_0x35fb1c['data']&&(('listStyle'==_0x35fb1c['data']['key']||'listMarkerStyle'==_0x35fb1c['data']['key'])&&(_0x35fb1c['data']['newValue']&&'default'!=_0x35fb1c['data']['newValue']||'default'!=_0x35fb1c['data']['oldValue']&&!_0x3f4b05['newValue'])||!_0x1f1553&&_0x35fb1c['data']['key']==m))return _0x46b13c;_0x35fb1c=_0x35fb1c['next'];}if(null==_0x3f4b05['newValue'])switch(_0x3f4b05['oldValue']){case'bulleted':return _0x3eb74e(o(_0x2994ae,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3eb74e(o(_0x2994ae,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3eb74e(o(_0x2994ae,'ELEMENT_TODO_LIST'));}switch(_0x3f4b05['newValue']){case'bulleted':return _0x305618(o(_0x2994ae,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x305618(o(_0x2994ae,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x305618(o(_0x2994ae,'ELEMENT_TODO_LIST'));}}),_0x28ee6f['descriptionFactory']['registerDescriptionCallback'](_0x46f5f6=>{const {data:_0x31a849}=_0x46f5f6;if(_0x31a849&&'listIndent'==_0x31a849['key'])return null==_0x31a849['newValue']||null==_0x31a849['oldValue']&&0x0==_0x31a849['newValue']?_0x46b13c:void 0x0;}),_0x28ee6f['descriptionFactory']['registerDescriptionCallback'](_0x426d1e=>{if('attribute'!=_0x426d1e['type'])return;const {data:_0x47f4b9}=_0x426d1e;if(!_0x47f4b9||'listItemId'!=_0x47f4b9['key'])return;const _0x3a8068=Te(_0x426d1e);return'newValue'==_0x3a8068?{'type':'format','content':o(_0x2994ae,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3a8068?{'type':'format','content':o(_0x2994ae,'*Split:*\x20list\x20item')}:_0x46b13c;}),_0x40220d['model']['document']['registerPostFixer'](_0x121ccf=>this['listItemIdFixer'](_0x121ccf)),_0x40220d['model']['document']['registerPostFixer'](_0x5dc726=>this['noTrackChangesFixer'](_0x5dc726)),_0x40220d['model']['document']['on']('change:data',(_0x59ed40,_0x46ccd8)=>{if(_0x46ccd8['isUndo']||!_0x46ccd8['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x12ae30){if(_0x12ae30['batch']['isUndo']||!_0x12ae30['batch']['isLocal'])return!0x1;let _0x56c7c4=!0x1;const _0x16fef5=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44996b=>_0x44996b['data']&&'listItemId'==_0x44996b['data']['key'])['filter'](_0x10dff5=>_0x10dff5['data']['newValue']&&_0x10dff5['data']['oldValue']);for(const _0x344c92 of _0x16fef5)Te(_0x344c92)||(_0x12ae30['removeMarker'](_0x344c92['getFirstMarker']()),_0x56c7c4=!0x0);return _0x56c7c4;}['noTrackChangesFixer'](_0x10319b){if(_0x10319b['batch']['isUndo']||!_0x10319b['batch']['isLocal'])return!0x1;const _0x215c00=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x215c00['trackChangesCommand']['value'])return!0x1;let _0x6e9abf=!0x1;const _0x2d3e6e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x22085d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3c816b=>'attribute'==_0x3c816b['type'])['filter'](_0x41f561=>_0x2d3e6e['includes'](_0x41f561['attributeKey']));if(0x0==_0x22085d['length'])return _0x6e9abf;for(const _0x3db45e of _0x22085d){const _0x28b7a4=_0x215c00['_findSuggestions'](_0x3db45e['range'],'attribute')['filter'](_0x4f2c8e=>!_0x4f2c8e['meta']['isNextTo'])['map'](_0x289b0b=>_0x289b0b['suggestion'])['filter'](_0x380629=>{const _0x52462c=_0x215c00['_getAttributeKey'](_0x380629);return _0x2d3e6e['includes'](_0x52462c);});if(_0x28b7a4['length']){for(const _0x1108e5 of _0x28b7a4)_0x10319b['removeMarker'](_0x1108e5['getFirstMarker']());_0x6e9abf=!0x0;}}return _0x6e9abf;}['assureChains'](){const _0x350dd9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58ff2c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x177726;const _0x33cfd2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x22cbf9=>{if(_0x22cbf9['data']['oldRange']||!_0x22cbf9['data']['newRange'])return null;if(!_0x22cbf9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x559ec9}=_0x350dd9['_splitMarkerName'](_0x22cbf9['name']);if(!_0x350dd9['hasSuggestion'](_0x559ec9))return null;const _0x34502a=_0x350dd9['getSuggestion'](_0x559ec9);return _0x58ff2c['includes'](_0x34502a['data']['key']);})['map'](_0x56d061=>{const {id:_0x5e8079}=_0x350dd9['_splitMarkerName'](_0x56d061['name']),_0x56cc81=_0x350dd9['getSuggestion'](_0x5e8079);return _0x177726=_0x56cc81['attributes']['groupId'],_0x56cc81['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x33cfd2['size'])return;const _0x413caa=_0x350dd9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4680a9=>'attribute'==_0x4680a9['type']&&_0x4680a9['data']&&_0x58ff2c['includes'](_0x4680a9['data']['key'])&&_0x4680a9['attributes']['groupId']!=_0x177726)['map'](_0x55988d=>({'listItem':_0x55988d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x55988d['attributes']['groupId']})),_0x5c2188=new Set();for(const {groupId:_0x4d966e,listItem:_0x36e865}of _0x413caa)_0x33cfd2['has'](_0x36e865)&&_0x5c2188['add'](_0x4d966e);for(const _0x44e0de of _0x350dd9['getSuggestions']())_0x5c2188['has'](_0x44e0de['attributes']['groupId'])&&_0x44e0de['setAttribute']('groupId',_0x177726);}['_supportLegacySuggestions'](){const _0x6dcb44=this['editor'],_0x453a94=_0x6dcb44['locale'],_0x18d6b8=_0x6dcb44['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x18d6b8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2d7069,_0x33ca34){const _0x358539=[];for(let _0x250eda of _0x2d7069)_0x250eda['start']['nodeAfter']===_0x250eda['end']['parent']&&(_0x250eda=_0x6dcb44['model']['createRange'](_0x6dcb44['model']['createPositionAt'](_0x250eda['start']['nodeAfter'],0x0))),_0x358539['push'](_0x250eda);_0x6dcb44['model']['change'](_0x138546=>{const _0xd80383=_0x6dcb44['model']['document']['selection'],_0x264e81=Array['from'](_0xd80383['getRanges']())['map'](_0x4b2d94=>_0x596d93['fromRange'](_0x4b2d94));_0x138546['setSelection'](_0x358539),_0x6dcb44['commands']['get'](_0x33ca34['commandName'])['refresh'](),_0x33ca34['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x6dcb44['execute'](_0x33ca34['commandName'],..._0x33ca34['commandParams']),_0x138546['setSelection'](_0x264e81);for(const _0x458a79 of _0x264e81)_0x458a79['detach']();});}),_0x18d6b8['descriptionFactory']['registerElementLabel'](function(_0x33dba4){const _0x24bf1a=!_0x6dcb44['model']['schema']['isObject'](_0x33dba4),_0x454005=_0x33dba4['previousSibling'],_0x2e6990=_0x33dba4['nextSibling'],_0x3812f4=_0x33dba4['getAttribute']('listItemId'),_0x42e205=!_0x454005||_0x454005['getAttribute']('listItemId')!==_0x3812f4,_0x512d3e=!_0x2e6990||_0x2e6990['getAttribute']('listItemId')!==_0x3812f4;return _0x24bf1a&&Boolean(_0x3812f4)&&_0x42e205&&_0x512d3e;},_0x3f0e27=>o(_0x453a94,'ELEMENT_LIST_ITEM',_0x3f0e27));}['_registerLegacyDescription'](){const _0x2f5be4=this['editor'],_0x4e8a02=_0x2f5be4['locale'];function _0x3c4194(_0x5108a1){const _0x285ab6=_0x2f5be4['commands']['get']('bulletedList')['value'],_0x204b04=_0x2f5be4['commands']['get']('numberedList')['value'];return'numberedList'===_0x5108a1?_0x285ab6:_0x204b04;}_0x2f5be4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5b4969){if('formatBlock'!=_0x5b4969['type'])return;const {data:_0x1ec07a}=_0x5b4969;if(!_0x1ec07a)return;let _0xc08eb3,_0x4ec24e,_0x208a17,_0x1cad6e;switch(_0x1ec07a['commandName']){case'bulletedList':_0x208a17=_0x1ec07a['commandParams'][0x0]['forceValue'],_0x1cad6e=_0x3c4194(_0x1ec07a['commandName']),_0xc08eb3=_0x208a17?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1cad6e&&_0x2f5be4['config']['get']('list.multiBlock')||(_0xc08eb3='*Change\x20to:*\x20%0'),_0x4ec24e={'type':'format','content':o(_0x4e8a02,_0xc08eb3,o(_0x4e8a02,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x208a17=_0x1ec07a['commandParams'][0x0]['forceValue'],_0x1cad6e=_0x3c4194(_0x1ec07a['commandName']),_0xc08eb3=_0x208a17?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1cad6e&&_0x2f5be4['config']['get']('list.multiBlock')||(_0xc08eb3='*Change\x20to:*\x20%0'),_0x4ec24e={'type':'format','content':o(_0x4e8a02,_0xc08eb3,o(_0x4e8a02,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xc08eb3='*Indent:*\x20%0',_0x4ec24e={'type':'format','content':o(_0x4e8a02,_0xc08eb3,o(_0x4e8a02,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xc08eb3=function(_0x393e6f){const _0x3658aa=_0x393e6f['getFirstRange']();let _0x49d6dc=_0x3658aa['start']['nodeAfter'];for(;_0x49d6dc&&_0x3658aa['containsItem'](_0x49d6dc);){if(_0x49d6dc['getAttribute']('listIndent')>0x0)return!0x1;_0x49d6dc=_0x49d6dc['nextSibling'];}return!0x0;}(_0x5b4969)?o(_0x4e8a02,'*Format:*\x20remove\x20from\x20%0',o(_0x4e8a02,function(_0x474831){return'ELEMENT_'+_0x474831['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5b4969))):o(_0x4e8a02,'*Outdent:*\x20%0',o(_0x4e8a02,'ELEMENT_LIST_ITEM')),_0x4ec24e={'type':'format','content':_0xc08eb3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ec07a['multipleBlocks']&&(_0xc08eb3='*Merge:*\x20%0',_0x4ec24e={'type':'deletion','content':o(_0x4e8a02,_0xc08eb3,o(_0x4e8a02,'ELEMENT_LIST_ITEM'))});}return _0x4ec24e;});}}function Te(_0x154171){let _0x14112c=_0x154171['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x14112c;){const _0x4f50f5=_0x14112c['getAttribute']('listItemId');if(!_0x4f50f5)return!0x1;if(_0x4f50f5==_0x154171['data']['newValue'])return'newValue';if(_0x4f50f5==_0x154171['data']['oldValue'])return'oldValue';_0x14112c=_0x14112c['previousSibling'];}return!0x1;}class Y extends _0x447d1d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5ae5c8=this['editor']['config']['get']('list.properties'),_0x24ed20=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ae5c8['styles']&&_0x24ed20['enableDefaultAttributesIntegration']('listStyle'),_0x5ae5c8['reversed']&&_0x24ed20['enableDefaultAttributesIntegration']('listReversed'),_0x5ae5c8['startIndex']&&_0x24ed20['enableDefaultAttributesIntegration']('listStart');const _0x5af192={'type':'format','content':''};_0x24ed20['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4a5600=this['editor']['locale'];_0x24ed20['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4a5600,'FORMAT_LIST_REVERSED')),_0x24ed20['descriptionFactory']['registerDescriptionCallback'](_0x1fd6a6=>{const {data:_0x243bc0}=_0x1fd6a6;if(_0x243bc0&&'listReversed'==_0x243bc0['key'])return null==_0x243bc0['newValue']||0x0==_0x243bc0['newValue']&&null==_0x243bc0['oldValue']?_0x5af192:void 0x0;}),_0x24ed20['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4a5600,'FORMAT_LIST_START')),_0x24ed20['descriptionFactory']['registerDescriptionCallback'](_0x567f7e=>{const {data:_0x46f875}=_0x567f7e;if(_0x46f875&&'listStart'==_0x46f875['key'])return null==_0x46f875['newValue']||0x1==_0x46f875['newValue']&&null==_0x46f875['oldValue']?_0x5af192:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xb2fb08=>{if(_0xb2fb08['batch']['isUndo'])return!0x1;let _0x136fe0=!0x1;const _0xd2d90=_0x24ed20['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b28dd=>{const _0x301964=_0x24ed20['_getAttributeKey'](_0x5b28dd);return'listStart'==_0x301964||'listReversed'==_0x301964;});for(const _0x591499 of _0xd2d90){const _0x2fd8ec=_0x591499['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2fd8ec||'customNumbered'==_0x2fd8ec)continue;_0x24ed20['_findSuggestions'](_0x591499['getFirstRange'](),'attribute')['find'](_0x149766=>'listType'==_0x24ed20['_getAttributeKey'](_0x149766['suggestion']))||(_0xb2fb08['removeMarker'](_0x591499['getFirstMarker']()),_0x136fe0=!0x0);}return _0x136fe0;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x434dfc){const _0x56bd9b=this['editor']['locale'],{data:_0x4ff72e}=_0x434dfc,_0x29e98c={'type':'format','content':''};if(!_0x4ff72e||'listStyle'!=_0x4ff72e['key'])return;if(!_0x4ff72e['oldValue'])return'default'==_0x4ff72e['newValue']?_0x29e98c:{'type':'format','content':''+o(_0x56bd9b,'*Set\x20format:*\x20%0',o(_0x56bd9b,this['_getTranslationKeyForListStyle'](_0x4ff72e['newValue'])))};if(!_0x4ff72e['newValue']){if('default'==_0x4ff72e['oldValue'])return _0x29e98c;let _0x1cfbaa=_0x434dfc['head'];for(;_0x1cfbaa;){if(_0x1cfbaa['data']&&'listType'==_0x1cfbaa['data']['key']&&_0x1cfbaa['data']['newValue'])return _0x29e98c;_0x1cfbaa=_0x1cfbaa['next'];}return{'type':'format','content':''+o(_0x56bd9b,'*Remove\x20format:*\x20%0',o(_0x56bd9b,this['_getTranslationKeyForListStyle'](_0x4ff72e['oldValue'])))};}if('default'!=_0x4ff72e['newValue'])return{'type':'format','content':''+o(_0x56bd9b,'*Set\x20format:*\x20%0',o(_0x56bd9b,this['_getTranslationKeyForListStyle'](_0x4ff72e['newValue'])))};let _0xa366b0=_0x434dfc['head'];for(;_0xa366b0;){if(_0xa366b0['data']&&'listType'==_0xa366b0['data']['key']&&_0xa366b0['data']['newValue']&&_0xa366b0['data']['oldValue'])return _0x29e98c;_0xa366b0=_0xa366b0['next'];}return{'type':'format','content':o(_0x56bd9b,'*Set\x20format:*\x20%0',o(_0x56bd9b,'ELEMENT_'+_0x434dfc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x482883=this['editor'],_0x583a1a=_0x482883['locale'];_0x482883['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa2159b=>{if('formatBlock'!=_0xa2159b['type'])return;const {data:_0x5769bc}=_0xa2159b;if(!_0x5769bc)return;let _0x338c07,_0x1d30e1;switch(_0x5769bc['commandName']){case'listStyle':_0x338c07='*Change\x20to:*\x20%0',_0x1d30e1={'type':'format','content':o(_0x583a1a,_0x338c07,o(_0x583a1a,this['_getTranslationKeyForListStyle'](_0x5769bc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x338c07=_0x5769bc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1d30e1={'type':'format','content':o(_0x583a1a,_0x338c07)};break;case'listStart':_0x338c07='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d30e1={'type':'format','content':o(_0x583a1a,_0x338c07,_0x5769bc['commandParams'][0x0]['startIndex'])};}return _0x1d30e1;});}['_getTranslationKeyForListStyle'](_0x1e1f39){return'ELEMENT_'+function(_0xa57c02){if(ye['includes'](_0xa57c02))return'bulleted';if(Se['includes'](_0xa57c02))return'numbered';return null;}(_0x1e1f39)['toUpperCase']()+'_LIST_'+_0x1e1f39['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 _0x447d1d{['afterInit'](){const _0x240780=this['editor'];_0x240780['commands']['get']('emoji')&&_0x240780['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x447d1d{static get['requires'](){return[_0xe036a3];}['init'](){const _0x37c4f8=this['editor'],_0x209cec=_0x37c4f8['plugins']['get']('TrackChangesEditing'),_0x5b54e0=_0x37c4f8['commands']['get']('enter');_0x209cec['enableCommand']('enter',()=>{_0x37c4f8['model']['change'](_0x71d0c=>{const _0x4f400b=_0x37c4f8['model']['document']['selection'],_0xe57ba8=_0x4f400b['getFirstPosition'](),_0x448b27=_0x596d93['fromRange'](_0x4f400b['getFirstRange']());if(_0x5b54e0['enterBlock'](_0x71d0c)){const _0x303e3e=_0x37c4f8['model']['createPositionAt'](_0xe57ba8['parent']['nextSibling'],0x0),_0x268ca5=_0x71d0c['createRange'](_0xe57ba8,_0x303e3e);_0x209cec['markInsertion'](_0x268ca5);}else _0x71d0c['setSelection'](_0x71d0c['createRange'](_0x448b27['end']));_0x448b27['detach'](),_0x5b54e0['fire']('afterExecute',{'writer':_0x71d0c});});});}}class nt extends _0x447d1d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x38c6ff=this['editor']['plugins']['get']('TrackChangesEditing');_0x38c6ff['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x38c6ff['enableCommand']('findNext'),_0x38c6ff['enableCommand']('findPrevious'),_0x38c6ff['enableCommand']('replace'),_0x38c6ff['enableCommand']('replaceAll');}['handleFindCommand'](_0x493f2f,_0x4bcc55,_0xf9d9bb={}){const _0xfb57f3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x493f2f(_0x997571=>{let _0x5e1cd4=('string'==typeof _0x4bcc55?_0xfb57f3['findByTextCallback'](_0x4bcc55,_0xf9d9bb):_0x4bcc55)(_0x997571);Array['isArray'](_0x5e1cd4)&&(_0x5e1cd4={'results':_0x5e1cd4,'searchText':'string'==typeof _0x4bcc55?_0x4bcc55:''});const _0x3113e7=_0x5e1cd4['results']['filter'](_0x5cf741=>!0x1===this['_isInDeletionRange'](_0x5cf741,_0x997571['item']));return{..._0x5e1cd4,'results':_0x3113e7};},_0xf9d9bb);}['_isInDeletionRange'](_0xfb211b,_0x4d76b1){const _0x29b790=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d76b1,_0xfb211b['start']),this['editor']['model']['createPositionAt'](_0x4d76b1,_0xfb211b['end']));for(const _0x516aa2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x29b790['getIntersection'](_0x516aa2['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 _0x447d1d{['afterInit'](){const _0xf88039=this['editor']['locale'],_0x5beda4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3b132d,commandName:_0x19861c}of eo)this['editor']['plugins']['has'](_0x3b132d)&&_0x5beda4['enableDefaultAttributesIntegration'](_0x19861c);_0x5beda4['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xf88039,'FORMAT_FONT_SIZE')),_0x5beda4['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xf88039,'FORMAT_FONT_FAMILY')),_0x5beda4['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xf88039,'FORMAT_FONT_COLOR')),_0x5beda4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xf88039,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ad17e=this['editor'],_0x331b2e=_0x2ad17e['locale'];_0x2ad17e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f4f13=>{const _0x763986=_0x331b2e['t'];if('formatInline'!=_0x2f4f13['type'])return;const {data:_0x423f3a}=_0x2f4f13;if(null!=_0x423f3a){if('fontSize'==_0x423f3a['commandName']){const _0x386db1=_0x423f3a['commandParams'][0x0]['value'];if(_0x386db1){const _0xec84b8=_0x763986(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x38c3d4=>_0x38c3d4['model']==_0x386db1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x331b2e,'*Set\x20font\x20size:*\x20%0',_0xec84b8)};}return{'type':'format','content':o(_0x331b2e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x423f3a['commandName']){const _0x175872=_0x423f3a['commandParams'][0x0]['value'];return _0x175872?{'type':'format','content':o(_0x331b2e,'*Set\x20font\x20family:*\x20%0',_0x175872)}:{'type':'format','content':o(_0x331b2e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x423f3a['commandName']){const _0x55941e=_0x423f3a['commandParams'][0x0]['value'];if(_0x55941e){const _0x192bb1=_0x546744(this['editor']['config']['get']('fontColor.colors'))['find'](_0x16766a=>_0x16766a['model']==_0x55941e);let _0x39d662=_0x55941e,_0x5be7a1='';return _0x192bb1&&(_0x39d662=_0x192bb1['label'],_0x5be7a1=_0x763986(_0x39d662)['toLowerCase']()),{'type':'format','content':o(_0x331b2e,'*Set\x20font\x20color:*\x20%0',_0x5be7a1)['trim'](),'color':{'value':_0x55941e,'title':_0x5be7a1||_0x39d662}};}return{'type':'format','content':o(_0x331b2e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x423f3a['commandName']){const _0x10606d=_0x423f3a['commandParams'][0x0]['value'];if(_0x10606d){const _0x3592fa=_0x546744(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5809b1=>_0x5809b1['model']==_0x10606d);let _0x20b56f=_0x10606d,_0x2e25f0='';return _0x3592fa&&(_0x20b56f=_0x3592fa['label'],_0x2e25f0=_0x763986(_0x20b56f)['toLowerCase']()),{'type':'format','content':o(_0x331b2e,'*Set\x20font\x20background\x20color:*\x20%0',_0x2e25f0)['trim'](),'color':{'value':_0x10606d,'title':_0x2e25f0||_0x20b56f}};}return{'type':'format','content':o(_0x331b2e,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x447d1d{['afterInit'](){const {plugins:_0x421e41}=this['editor'];_0x421e41['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x421e41['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x4a90ae,plugins:_0x215c5d,commands:_0x4a225c}=this['editor'],_0x69e2fc=_0x215c5d['get']('TrackChangesEditing');_0x4a225c['get']('footnotesStyle')&&_0x69e2fc['enableDefaultAttributesIntegration']('footnotesStyle'),_0x4a225c['get']('footnotesStart')&&_0x69e2fc['enableDefaultAttributesIntegration']('footnotesStart'),_0x69e2fc['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x4a90ae,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x69e2fc['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x4a90ae,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xea31be=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x67e730,commands:_0x76f022}=this['editor'];_0x76f022['get']('insertFootnote')&&_0xea31be['enableCommand']('insertFootnote'),_0xea31be['descriptionFactory']['registerElementLabel']('footnoteRef',_0x21eeaa=>o(_0x67e730,'ELEMENT_FOOTNOTE_REF',_0x21eeaa)),_0xea31be['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x560e0b=>o(_0x67e730,'ELEMENT_FOOTNOTE_DEFINITION',_0x560e0b)),_0xea31be['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x2c6a88=>o(_0x67e730,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x2c6a88));}}class st extends _0x447d1d{['afterInit'](){const _0x2a859b=this['editor'],_0x336002=_0x2a859b['plugins']['get']('TrackChangesEditing'),_0x1f17f6=_0x2a859b['commands']['get']('copyFormat'),_0x10478c=_0x2a859b['commands']['get']('pasteFormat');_0x1f17f6&&_0x10478c&&(_0x336002['enableDefaultAttributesIntegration']('pasteFormat'),_0x336002['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3fd53e=this['editor'],_0x5c30ed=_0x3fd53e['locale'];_0x3fd53e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32b430=>{if('formatBlock'!=_0x32b430['type']&&'formatInline'!=_0x32b430['type'])return;const {data:_0x17384d}=_0x32b430;if(_0x17384d&&'pasteFormat'===_0x17384d['commandName']){const _0x5495e0=[],_0x4d49ce=_0x17384d['commandParams'][0x0];for(const [_0x47b087,_0x52c2a1]of Object['entries'](_0x4d49ce))_0x5495e0['push'](ro(_0x3fd53e,_0x47b087,_0x52c2a1));return _0x5495e0['length']?{'type':'format','content':o(_0x5c30ed,'*Set\x20format\x20to:*\x20%0',_0x5495e0['join'](',\x20'))}:{'type':'format','content':o(_0x5c30ed,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1b53ef,_0x3d1bf,_0x3a5f00){const _0xdc347f=_0x1b53ef['locale']['t'],_0x2fb9e8=_0x3d1bf['split'](/(?=[A-Z])/)['join']('\x20'),_0x22bbe4=_0xdc347f(_0x2fb9e8['charAt'](0x0)['toUpperCase']()+_0x2fb9e8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3a5f00)return _0x22bbe4;if('fontColor'===_0x3d1bf||'fontBackgroundColor'===_0x3d1bf){const _0x21ebe6=_0x546744(_0x1b53ef['config']['get']('fontColor.colors'))['find'](_0x590e10=>_0x590e10['model']==_0x3a5f00);return _0x22bbe4+'\x20('+(_0x21ebe6?_0xdc347f(_0x21ebe6['label'])['toLowerCase']():_0x3a5f00)+')';}if('fontSize'===_0x3d1bf&&isNaN(parseFloat(_0x3a5f00))){const _0x4be034=_0x1b53ef['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1b53ef['config']['get']('fontSize.options'))['find'](_0x333533=>_0x333533['model']==_0x3a5f00);return _0x22bbe4+'\x20('+(_0x4be034?_0xdc347f(_0x4be034['title'])['toLowerCase']():_0x3a5f00)+')';}return _0x22bbe4+'\x20('+_0x3a5f00+')';}class ot extends _0x447d1d{['_headingOptions'];['afterInit'](){const _0x38e55f=this['editor'];if(!_0x38e55f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x38e55f['config']['get']('heading.options');const _0x5cb8f5=_0x38e55f['locale'],_0x477f59=_0x38e55f['plugins']['get']('TrackChangesEditing');_0x477f59['enableDefaultAttributesIntegration']('heading');for(const _0x5ce9f3 of this['_headingOptions'])'paragraph'!=_0x5ce9f3['model']&&_0x477f59['descriptionFactory']['registerElementLabel'](_0x5ce9f3['model'],_0x4057ad=>{const _0xd1f7b8=this['_getHeadingLevel'](_0x5ce9f3['model']);return null!==_0xd1f7b8?_0xb6d35f(_0x4057ad,_0xd1f7b8):_0x4a1828(_0x4057ad,_0x5ce9f3['title']);});function _0xb6d35f(_0x4a2443,_0x5ab64c){return o(_0x5cb8f5,'ELEMENT_HEADING',[_0x4a2443,_0x5ab64c]);}function _0x4a1828(_0x372a25,_0x10a6e2){return o(_0x5cb8f5,'ELEMENT_HEADING_CUSTOM',[_0x372a25,_0x10a6e2]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfd92ae=this['editor'],_0x4428f5=_0xfd92ae['locale'];function _0x50b356(_0x2a3cce,_0x363745){return o(_0x4428f5,'ELEMENT_HEADING_CUSTOM',[_0x2a3cce,_0x363745]);}_0xfd92ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x483352=>{if('formatBlock'!=_0x483352['type'])return;const {data:_0x2dda5b}=_0x483352;if(_0x2dda5b&&'heading'==_0x2dda5b['commandName']){const _0x2e25da=_0x2dda5b['commandParams'][0x0]['value'],_0x2a6493=this['_getHeadingLevel'](_0x2e25da);if(null!==_0x2a6493)return{'type':'format','content':o(_0x4428f5,'*Change\x20to:*\x20%0',(_0x1b5e89=0x1,_0x3a9e8b=_0x2a6493,o(_0x4428f5,'ELEMENT_HEADING',[_0x1b5e89,_0x3a9e8b])))};const _0x50223e=this['_headingOptions']['find'](_0x577283=>_0x577283['model']===_0x2e25da)['title'];return{'type':'format','content':o(_0x4428f5,'*Change\x20to:*\x20%0',_0x50b356(0x1,_0x50223e))};}var _0x1b5e89,_0x3a9e8b;});}['_getHeadingLevel'](_0xd578db){const _0x46dfbe=_0xd578db['match'](/^heading(\d+)/);if(_0x46dfbe)return _0x46dfbe[0x1];const _0x19d898=this['_headingOptions']?.['find'](_0x5d3b2b=>_0x5d3b2b['model']==_0xd578db);if(_0x19d898&&_0x19d898['view']){const _0x1828b6=_0x19d898['view'],_0x31b79e=(_0x1828b6['name']??_0x1828b6)['match'](/^h(\d+)/);if(_0x31b79e)return _0x31b79e[0x1];}return null;}}class rt extends _0x447d1d{['afterInit'](){const _0x8fd361=this['editor'];if(!_0x8fd361['plugins']['has']('HighlightEditing'))return;const _0x23469b=_0x8fd361['plugins']['get']('TrackChangesEditing'),_0x54205b=_0x8fd361['locale'];_0x23469b['enableDefaultAttributesIntegration']('highlight'),_0x23469b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x54205b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39a773=this['editor'],_0x3fc24b=_0x39a773['locale'];_0x39a773['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x508850=>{if('formatInline'!=_0x508850['type'])return;const {data:_0x3de9cd}=_0x508850;if(_0x3de9cd&&'highlight'==_0x3de9cd['commandName']){const _0x45e35b=_0x3fc24b['t'],_0x43a26a=_0x3de9cd['commandParams'][0x0]['value'];if(_0x43a26a){const _0x5d05e1=_0x39a773['config']['get']('highlight.options')['find'](_0x5e4770=>_0x5e4770['model']==_0x43a26a),_0x4ac320=_0x45e35b(_0x5d05e1['title'])['toLowerCase']();return{'type':'format','content':o(_0x3fc24b,'*Set\x20highlight:*\x20%0',_0x4ac320),'color':{'value':_0x5d05e1['color'],'title':_0x5d05e1['title']}};}return{'type':'format','content':o(_0x3fc24b,'*Remove\x20highlight*',o(_0x3fc24b,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x447d1d{['afterInit'](){const _0x203ece=this['editor'];if(!_0x203ece['plugins']['has']('HorizontalLineEditing'))return;_0x203ece['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x13327a=_0x203ece['plugins']['get']('TrackChangesEditing'),_0x2b6904=_0x203ece['locale'];_0x13327a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x173a0c=>o(_0x2b6904,'ELEMENT_HORIZONTAL_LINE',_0x173a0c));}}class ct extends _0x447d1d{['afterInit'](){const _0x1fdc9b=this['editor'];if(!_0x1fdc9b['plugins']['has']('HtmlEmbed'))return;const _0x295a39=_0x1fdc9b['plugins']['get']('TrackChangesEditing'),_0x3e2130=_0x1fdc9b['locale'];_0x295a39['descriptionFactory']['registerElementLabel']('rawHtml',_0x3db215=>o(_0x3e2130,'ELEMENT_HTML_EMBED',_0x3db215)),_0x295a39['enableDefaultAttributesIntegration']('htmlEmbed'),_0x295a39['descriptionFactory']['registerDescriptionCallback'](_0x1bc347=>{if('attribute'!=_0x1bc347['type'])return;const {data:_0x4689bb}=_0x1bc347;if(_0x4689bb&&'value'==_0x4689bb['key']&&_0x1bc347['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4636d1=o(_0x3e2130,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3e2130,'*Change\x20%0\x20content*',_0x4636d1)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e14c8=this['editor'],_0x1a4845=_0x3e14c8['locale'];_0x3e14c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39889d=>{if('formatBlock'!=_0x39889d['type'])return;const {data:_0x12b768}=_0x39889d;if(_0x12b768&&'htmlEmbed'==_0x12b768['commandName']){const _0x4aed1a=o(_0x1a4845,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1a4845,'*Change\x20%0\x20content*',_0x4aed1a)};}});}}class ut extends _0x447d1d{['afterInit'](){const _0x39a592=this['editor'];if(!_0x39a592['plugins']['has']('ImageEditing'))return;const _0x46d240=_0x39a592['plugins']['get']('TrackChangesEditing'),_0x595c4e=_0x39a592['plugins']['get']('ImageUtils'),_0x9e8eb2=_0x39a592['locale'];_0x46d240['enableCommand']('insertImage'),_0x46d240['descriptionFactory']['registerElementLabel']('imageBlock',_0x2a9eb6=>o(_0x9e8eb2,'ELEMENT_IMAGE',_0x2a9eb6)),_0x46d240['descriptionFactory']['registerElementLabel']('imageInline',_0x75d15a=>o(_0x9e8eb2,'ELEMENT_INLINE_IMAGE',_0x75d15a)),_0x46d240['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x9e8eb2,'ELEMENT_CAPTION')),_0x39a592['plugins']['has']('ImageUploadEditing')&&_0x46d240['enableCommand']('uploadImage'),_0x39a592['plugins']['has']('ImageBlockEditing')&&_0x39a592['plugins']['has']('ImageInlineEditing')&&(_0x46d240['enableCommand']('imageTypeInline',(_0x273504,_0x3650bc)=>{const _0x1faef6=_0x595c4e['getClosestSelectedImageElement'](_0x39a592['model']['document']['selection']);_0x39a592['model']['change'](()=>{_0x46d240['markBlockFormat'](_0x1faef6,{'commandName':'imageTypeInline','commandParams':[_0x3650bc]},[],'convertBlockImageToInline');});}),_0x46d240['enableCommand']('imageTypeBlock',(_0x5ad284,_0x5f04b5)=>{_0x39a592['model']['change'](_0x2036ae=>{let _0x8d43a6=_0x595c4e['getClosestSelectedImageElement'](_0x39a592['model']['document']['selection']),_0x353613=_0x2036ae['createRangeOn'](_0x8d43a6);const _0x48dabe=_0x268372['fromPosition'](_0x353613['start'],'toPrevious'),_0x2cb702=_0x268372['fromPosition'](_0x353613['end'],'toNext');_0x46d240['forceDefaultExecution'](()=>_0x5ad284(_0x5f04b5)),_0x8d43a6=_0x595c4e['getClosestSelectedImageElement'](_0x39a592['model']['document']['selection']),_0x353613=_0x2036ae['createRangeOn'](_0x8d43a6);const _0x1ff7d5=_0x2036ae['createRange'](_0x48dabe,_0x2cb702);_0x48dabe['detach'](),_0x2cb702['detach'](),_0x46d240['markBlockFormat'](_0x8d43a6,{'commandName':'imageTypeInline','commandParams':[_0x5f04b5]},[],'convertInlineImageToBlock'),_0x1ff7d5['start']['isBefore'](_0x353613['start'])&&_0x46d240['markInsertion'](_0x2036ae['createRange'](_0x1ff7d5['start'],_0x353613['start']),'convertInlineImageToBlock'),_0x353613['end']['isBefore'](_0x1ff7d5['end'])&&_0x46d240['markInsertion'](_0x2036ae['createRange'](_0x353613['end'],_0x1ff7d5['end']),'convertInlineImageToBlock');});}),_0x46d240['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x46d240['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x46d240['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x46d240['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x46d240['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x46d240['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xc5d141])=>{const _0x551336=_0x46d240['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4ef5bf=_0xc5d141['start'],_0x438638=_0xc5d141['end'];const _0x162aa8=_0x39a592['model']['schema']['getNearestSelectionRange'](_0x4ef5bf,'backward'),_0x629bd6=_0x39a592['model']['schema']['getNearestSelectionRange'](_0x438638,'forward');_0x162aa8['isCollapsed']&&(_0x4ef5bf=_0x162aa8['start']),_0x629bd6['isCollapsed']&&(_0x438638=_0x629bd6['end']),_0x551336([_0x39a592['model']['createRange'](_0x4ef5bf,_0x438638)]);}),_0x46d240['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x366948),_0x46d240['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x366948)),_0x39a592['plugins']['has']('ImageCaptionEditing')&&(_0x46d240['enableCommand']('toggleImageCaption',(_0x33b045,_0x18332d)=>{const _0x28b872=_0x39a592['plugins']['get']('ImageCaptionUtils');let _0x2b89ac=_0x595c4e['getClosestSelectedImageElement'](_0x39a592['model']['document']['selection']),_0x5e089e=_0x28b872['getCaptionFromImageModelElement'](_0x2b89ac);_0x39a592['model']['change'](()=>{if(_0x5e089e)return void _0x46d240['markDeletion'](_0x39a592['model']['createRangeOn'](_0x5e089e));const _0x30bcfb=_0x595c4e['isBlockImage'](_0x2b89ac);_0x33b045(_0x18332d),_0x2b89ac=_0x595c4e['getClosestSelectedImageElement'](_0x39a592['model']['document']['selection']),_0x5e089e=_0x28b872['getCaptionFromImageModelElement'](_0x2b89ac),_0x46d240['markInsertion'](_0x39a592['model']['createRangeOn'](_0x5e089e),_0x30bcfb?null:'imageCaption');});}),_0x46d240['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x366948));const _0x370a11=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5920d6(_0x5eeace,_0x155a54){const _0x380077=_0x370a11['findIndex'](({type:_0x238e87,subType:_0x1d9514})=>_0x5eeace['type']==_0x238e87&&_0x5eeace['subType']==_0x1d9514),_0x5ba9db=_0x370a11['findIndex'](({type:_0x1fff92,subType:_0x5f1f08})=>_0x155a54['type']==_0x1fff92&&_0x155a54['subType']==_0x5f1f08);if(_0x380077<0x0||_0x5ba9db<0x0)return!0x1;const _0x355a3c=_0x5eeace['getFirstRange'](),_0x4b7b58=_0x155a54['getFirstRange']();if((0x0==_0x380077||0x1==_0x380077)&&0x2==_0x5ba9db&&_0x355a3c['isIntersecting'](_0x4b7b58))return!0x0;if(0x2==_0x380077&&0x3==_0x5ba9db){const _0x4e6782=_0x46d240['_findSuggestions'](_0x355a3c,'insertion')['filter'](({suggestion:_0x23a51c,meta:_0x3452c3})=>_0x3452c3['isOwn']&&'convertInlineImageToBlock'==_0x23a51c['subType']);if(_0x4e6782['length']>0x1&&_0x4b7b58['end']['isEqual'](_0x355a3c['start']))return!0x0;if(0x1==_0x4e6782['length']&&(_0x355a3c['start']['isEqual'](_0x4b7b58['end'])||_0x355a3c['end']['isEqual'](_0x4b7b58['start'])))return!0x0;}if(0x3==_0x380077&&0x3==_0x5ba9db&&_0x355a3c['start']['isBefore'](_0x4b7b58['start'])){const _0x456acf=_0x355a3c['end']['nodeAfter'],_0x3ea6d3=_0x4b7b58['start']['nodeBefore'];return _0x595c4e['isBlockImage'](_0x456acf)&&_0x456acf===_0x3ea6d3;}return!0x1;}function _0x366948(_0x5f173e,_0x27af27){return _0x5920d6(_0x5f173e,_0x27af27)?[_0x5f173e,_0x27af27]:_0x5920d6(_0x27af27,_0x5f173e)?[_0x27af27,_0x5f173e]:null;}_0x39a592['plugins']['has']('ImageResize')&&(_0x46d240['enableDefaultAttributesIntegration']('resizeImage'),_0x46d240['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x9e8eb2,'FORMAT_IMAGE_SIZE'))),_0x39a592['plugins']['has']('ImageTextAlternativeEditing')&&_0x46d240['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x39a592['plugins']['has']('PictureEditing')&&_0x46d240['descriptionFactory']['registerDescriptionCallback'](_0x439e6b=>{if('attribute'!=_0x439e6b['type'])return;const {data:_0x1f6686}=_0x439e6b;return _0x1f6686&&'sources'==_0x1f6686['key']?{'type':'format','content':''}:void 0x0;}),_0x39a592['plugins']['has']('ImageSizeAttributes')&&_0x46d240['descriptionFactory']['registerDescriptionCallback'](_0x182952=>{if('attribute'!=_0x182952['type'])return;const {data:_0x285614}=_0x182952;return!_0x285614||'width'!=_0x285614['key']&&'height'!=_0x285614['key']?void 0x0:{'type':'format','content':''};}),_0x46d240['descriptionFactory']['registerDescriptionCallback'](_0x20eee7=>{if(!!_0x370a11['find'](({type:_0x31d0c1,subType:_0x2281d1})=>_0x20eee7['type']==_0x31d0c1&&_0x20eee7['subType']==_0x2281d1))return _0x20eee7['previous']?{}:void 0x0;}),_0x46d240['descriptionFactory']['registerDescriptionCallback'](_0xc45d55=>{if('insertion'==_0xc45d55['type']||'deletion'==_0xc45d55['type']){const _0x2aa0aa=_0xc45d55['getContainedElement']();if(_0x2aa0aa&&_0x2aa0aa['is']('element','caption'))return{'type':'insertion'==_0xc45d55['type']?'addObject':'removeObject','element':_0x2aa0aa,'quantity':0x1};}}),_0x46d240['descriptionFactory']['registerDescriptionCallback'](_0x42855b=>'formatBlock'==_0x42855b['type']&&'convertInlineImageToBlock'==_0x42855b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x42855b['type']&&'convertBlockImageToInline'==_0x42855b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x46d240['descriptionFactory']['registerDescriptionCallback'](_0x5c856b=>{if('attribute'!=_0x5c856b['type'])return;const {data:_0x105a4a}=_0x5c856b;if(!_0x105a4a||'alt'!=_0x105a4a['key'])return;const _0x1ea999=_0x105a4a['newValue'];return _0x1ea999?{'type':'format','content':o(_0x9e8eb2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1ea999+'\x22')}:{'type':'format','content':o(_0x9e8eb2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe1658f=this['editor'],_0x75c8c6=_0xe1658f['locale'];_0xe1658f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4008f5=>{if('formatBlock'!=_0x4008f5['type']&&'formatInline'!=_0x4008f5['type'])return;const {data:_0x4cbb25}=_0x4008f5;if(_0x4cbb25){if('imageTextAlternative'==_0x4cbb25['commandName']){const _0x324154=_0x4cbb25['commandParams'][0x0]['newValue'];return _0x324154?{'type':'format','content':o(_0x75c8c6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x324154+'\x22')}:{'type':'format','content':o(_0x75c8c6,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4cbb25['commandName']){const _0x5389d4=_0x4cbb25['commandParams'][0x0]['width'];return _0x5389d4?{'type':'format','content':o(_0x75c8c6,'*Set\x20image\x20width:*\x20%0',_0x5389d4)}:{'type':'format','content':o(_0x75c8c6,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x447d1d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x448a08=this['editor']['locale'],_0x4f42f7=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f42f7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4f42f7['descriptionFactory']['registerDescriptionCallback'](_0x147443=>{if('attribute'!=_0x147443['type'])return;const {data:_0x3267c9}=_0x147443;return _0x3267c9&&'src'==_0x3267c9['key']?_0x3267c9['newValue']&&_0x3267c9['oldValue']?{'type':'format','content':o(_0x448a08,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x196ec5=this['editor']['plugins']['get']('TrackChangesEditing');_0x196ec5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x196ec5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x196ec5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x196ec5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55eab9=this['editor'],_0x3055ee=_0x55eab9['locale'];_0x55eab9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb082c3=>{if('formatBlock'!=_0xb082c3['type']&&'formatInline'!=_0xb082c3['type'])return;const {data:_0x21fb6a}=_0xb082c3;if(!_0x21fb6a||'replaceImageSource'!=_0x21fb6a['commandName'])return;return{'type':'format','content':o(_0x3055ee,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x447d1d{['afterInit'](){const _0x454d43=this['editor'];if(!_0x454d43['plugins']['has']('ImageStyleEditing'))return;const _0x323a90=_0x454d43['plugins']['get']('TrackChangesEditing'),_0x29d7df=_0x454d43['plugins']['get']('ImageUtils'),_0xfec8e1={};_0x323a90['enableCommand']('imageStyle',(_0x13cabc,_0x419bd9)=>{const _0x184253=_0x454d43['plugins']['get']('Users')['me'],_0x14414f=_0x454d43['commands']['get']('imageStyle');let _0x3f5051=_0x29d7df['getClosestSelectedImageElement'](_0x454d43['model']['document']['selection']),_0x311b8b=_0x454d43['model']['createRangeOn'](_0x3f5051),_0x259ebf=_0x14414f['value'];if(_0x259ebf==_0x419bd9['value'])return;const _0x4f3300={'commandName':'imageStyle','commandParams':[_0x419bd9],'formatGroupId':_0x46153d()};_0x454d43['model']['change'](()=>{if(_0x323a90['getSuggestions']()['filter'](_0xc03ec9=>_0xc03ec9['isInContent']&&_0x184253==_0xc03ec9['author']&&('formatBlock'==_0xc03ec9['type']||'formatInline'==_0xc03ec9['type'])&&('imageStylePreApply'==_0xc03ec9['subType']||'imageStylePostApply'==_0xc03ec9['subType'])&&_0xc03ec9['getFirstRange']()['isEqual'](_0x311b8b))['forEach'](_0x25c6e7=>_0x323a90['discardSuggestion'](_0x25c6e7['head'])),_0x3f5051=_0x29d7df['getClosestSelectedImageElement'](_0x454d43['model']['document']['selection']),_0x311b8b=_0x454d43['model']['createRangeOn'](_0x3f5051),_0x14414f['refresh'](),_0x454d43['commands']['get']('imageTypeInline')['refresh'](),_0x454d43['commands']['get']('imageTypeBlock')['refresh'](),_0x259ebf=_0x14414f['value'],_0x259ebf!=_0x419bd9['value'])return _0x29d7df['isInlineImage'](_0x3f5051)&&_0x14414f['shouldConvertImageType'](_0x419bd9['value'],_0x3f5051)?(_0x13cabc({..._0x419bd9,'setImageSizes':!0x1}),_0x3f5051=_0x29d7df['getClosestSelectedImageElement'](_0x454d43['model']['document']['selection']),void _0x323a90['markBlockFormat'](_0x3f5051,{..._0x4f3300,'commandReversedParams':[{'value':_0x259ebf||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x29d7df['isBlockImage'](_0x3f5051)?_0x323a90['markBlockFormat'](_0x3f5051,_0x4f3300,[],'imageStylePostApply'):_0x323a90['markInlineFormat'](_0x311b8b,_0x4f3300,'imageStylePostApply'));});});for(const _0x5191b5 of _0x454d43['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xfec8e1[_0x5191b5['name']]=_0x5191b5['title']['toLowerCase']();_0x323a90['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x323a90['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x323a90['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x323a90['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2a68ba])=>{_0x29d7df['setImageNaturalSizeAttributes'](_0x2a68ba['getContainedElement']());}),_0x323a90['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xdbe912,_0x978f8d)=>{_0x323a90['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xdbe912,{'commandName':_0x978f8d['commandName'],'commandParams':_0x978f8d['commandReversedParams']});}),_0x323a90['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x316ad1,_0xfe86b){if(_0x31b1f5(_0x316ad1,_0xfe86b))return[_0x316ad1,_0xfe86b];if(_0x31b1f5(_0xfe86b,_0x316ad1))return[_0xfe86b,_0x316ad1];return null;});const _0x375692=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31b1f5(_0x11adc6,_0x5a66c3){const _0x3c5789=_0x375692['findIndex'](({type:_0x204bac,subType:_0x1aaeed})=>_0x11adc6['type']==_0x204bac&&_0x11adc6['subType']==_0x1aaeed),_0x48ee57=_0x375692['findIndex'](({type:_0xfb3848,subType:_0x30461e})=>_0x5a66c3['type']==_0xfb3848&&_0x5a66c3['subType']==_0x30461e);if(_0x3c5789<0x0||_0x48ee57<0x0)return!0x1;const _0x3ef63d=_0x11adc6['getFirstRange'](),_0x3bb60c=_0x5a66c3['getFirstRange']();if((0x0==_0x3c5789||0x1==_0x3c5789)&&0x2==_0x48ee57&&_0x3ef63d['isIntersecting'](_0x3bb60c))return!0x0;if(0x2==_0x3c5789&&0x3==_0x48ee57){const _0x2276be=_0x323a90['_findSuggestions'](_0x3ef63d,'insertion')['filter'](({suggestion:_0x5d5278,meta:_0x234be7})=>_0x234be7['isOwn']&&'convertInlineImageToBlock'==_0x5d5278['subType']);if(_0x2276be['length']>0x1&&_0x3bb60c['end']['isEqual'](_0x3ef63d['start']))return!0x0;if(0x1==_0x2276be['length']&&(_0x3ef63d['start']['isEqual'](_0x3bb60c['end'])||_0x3ef63d['end']['isEqual'](_0x3bb60c['start'])))return!0x0;}if(0x3==_0x3c5789&&0x3==_0x48ee57&&_0x3ef63d['start']['isBefore'](_0x3bb60c['start'])){const _0x54b340=_0x3ef63d['end']['nodeAfter'],_0x4dcde7=_0x3bb60c['start']['nodeBefore'];return _0x29d7df['isBlockImage'](_0x54b340)&&_0x54b340===_0x4dcde7;}return!0x1;}_0x454d43['model']['document']['registerPostFixer'](()=>{let _0x4ea731=!0x1;const _0x138d71=Array['from'](_0x454d43['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x584cc6,data:_0x3c2607}of _0x138d71){const {group:_0x354829,type:_0x2c468e,subType:_0xf849fa,id:_0x25bd7b}=_0x323a90['_splitMarkerName'](_0x584cc6);if('suggestion'==_0x354829&&_0x323a90['hasSuggestion'](_0x25bd7b)){if('formatBlock'==_0x2c468e&&('imageStylePreApply'==_0xf849fa||'imageStylePostApply'==_0xf849fa)){const _0xe2332f=_0x323a90['getSuggestion'](_0x25bd7b);if(_0x3c2607['newRange']){const _0x520bcc=_0xe2332f['getFirstRange']()['getContainedElement']();if(_0x29d7df['isBlockImage'](_0x520bcc))continue;_0x323a90['discardSuggestion'](_0xe2332f),_0x4ea731=!0x0;}}if('insertion'==_0x2c468e&&'imageCaption'==_0xf849fa&&!_0x3c2607['newRange']){const _0x25dfbb=_0x323a90['getSuggestion'](_0x25bd7b);_0x25dfbb['next']&&_0x25dfbb['next']['isInContent']&&(_0x323a90['discardSuggestion'](_0x25dfbb['next']),_0x4ea731=!0x0);}}}return _0x4ea731;}),this['_registerLegacyDescription'](_0xfec8e1);}['_registerLegacyDescription'](_0x47d9e1){const _0x1e867=this['editor'],_0x140f20=_0x1e867['locale'];_0x1e867['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x301997=>{if('formatBlock'!=_0x301997['type']&&'formatInline'!=_0x301997['type'])return;const {data:_0x49dfe4}=_0x301997;if(!_0x49dfe4||'imageStyle'!=_0x49dfe4['commandName'])return;const _0x279a3d=_0x49dfe4['commandParams'][0x0]['value'];return _0x10d7d2('side'===_0x279a3d?o(_0x140f20,'FORMAT_SIDE_IMAGE'):_0x47d9e1[_0x279a3d]||_0x279a3d);function _0x10d7d2(_0x1181e5){return{'type':'format','content':o(_0x140f20,'*Format:*\x20%0',_0x1181e5)};}});}}class lt extends _0x447d1d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1ce17b){super(_0x1ce17b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x15b715=this['editor'],_0x190c06=_0x15b715['commands']['get']('importWord'),_0x55b54e=_0x15b715['commands']['get']('trackChanges');_0x190c06&&(_0x190c06['on']('execute',(_0x4e56ab,[,_0x51a6de])=>{this['_trackChangesValueDuringImport']=_0x55b54e['value'],_0x51a6de['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x190c06,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x190c06,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x55b54e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x15b715['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2a5517,_0x20ea7b){const {suggestions:_0xe83897}=_0x20ea7b,_0x1484e4=this['editor']['commands']['get']('trackChanges'),_0x3cff96=_0x1484e4['value'];this['_trackChangesValueDuringImport']!==_0x3cff96&&(_0x1484e4['execute'](),this['_trackChangesExecuted']=!0x0),_0xe83897&&_0xe83897['forEach'](({id:_0x4b860f,type:_0x1bde02,author:_0x897baa,created_at:_0x4e07bf})=>{const _0x3057c2={'id':_0x4b860f,'type':_0x1bde02,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x897baa,'createdAt':_0x4e07bf?new Date(_0x4e07bf):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3057c2);});}}class gt extends _0x447d1d{['afterInit'](){const _0x23a309=this['editor'],_0x4b51c8=_0x23a309['plugins']['get']('TrackChangesEditing');if(_0x23a309['plugins']['has']('IndentEditing')&&(_0x4b51c8['enableCommand']('indent'),_0x4b51c8['enableCommand']('outdent')),_0x23a309['plugins']['has']('IndentBlock')){for(const _0x253949 of['indentBlock','outdentBlock'])_0x4b51c8['enableDefaultAttributesIntegration'](_0x253949);if(_0x23a309['plugins']['has']('ListEditing')){for(const _0x5739c7 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x4b51c8['enableDefaultAttributesIntegration'](_0x5739c7);}}const _0x515835=_0x23a309['locale'];_0x4b51c8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x515835,'FORMAT_INDENT')),_0x4b51c8['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x515835,'FORMAT_INDENT')),_0x4b51c8['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x515835,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x278699=this['editor'],_0x1b1afd=_0x278699['locale'],_0x591ee6=_0x278699['plugins']['get']('TrackChangesEditing');_0x591ee6['descriptionFactory']['registerDescriptionCallback'](_0x3ba892=>{if('formatBlock'!=_0x3ba892['type'])return;const {data:_0x6a0e7b}=_0x3ba892;if(!_0x6a0e7b)return;if('indentBlock'!=_0x6a0e7b['commandName']&&'outdentBlock'!=_0x6a0e7b['commandName'])return;const _0x12e8e8=_0x3ba892['getItems']()[0x0],_0x3d3818=_0x591ee6['descriptionFactory']['getItemLabel'](_0x12e8e8);return'indentBlock'==_0x6a0e7b['commandName']?{'type':'format','content':o(_0x1b1afd,'*Indent:*\x20%0',_0x3d3818)}:'outdentBlock'==_0x6a0e7b['commandName']?{'type':'format','content':o(_0x1b1afd,'*Outdent:*\x20%0',_0x3d3818)}:void 0x0;});}}class mt extends _0x447d1d{static get['requires'](){return[_0x513e8e];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x447d1d{['afterInit'](){const _0x2250ff=this['editor'];if(!_0x2250ff['plugins']['has']('LinkEditing'))return;const _0x546400=_0x2250ff['plugins']['get']('TrackChangesEditing'),_0x46c8f9=_0x2250ff['commands']['get']('link');_0x546400['enableDefaultAttributesIntegration']('link'),_0x546400['enableDefaultAttributesIntegration']('unlink');for(const _0x1868ac of _0x46c8f9['manualDecorators'])_0x546400['descriptionFactory']['registerAttributeLabel'](_0x1868ac['id'],'link\x20('+_0x1868ac['label']['toLowerCase']()+')');_0x546400['descriptionFactory']['registerDescriptionCallback'](_0x5d4617=>{if('attribute'!=_0x5d4617['type'])return;const {data:_0x2d2b36}=_0x5d4617;if(!_0x2d2b36||'linkHref'!=_0x2d2b36['key'])return;const _0x1ad80f=_0x2d2b36['newValue'],_0x4f540b=_0x2250ff['locale'];return{'type':'format','content':null==_0x1ad80f?o(_0x4f540b,'*Remove\x20link*'):o(_0x4f540b,'*Set\x20link:*\x20%0','\x22'+_0x1ad80f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1255d0=this['editor'],_0x5740a7=_0x1255d0['locale'];_0x1255d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fdcc9=>{if('formatInline'!=_0x2fdcc9['type'])return;const {data:_0x48ada8}=_0x2fdcc9;if(_0x48ada8){if('link'==_0x48ada8['commandName']){const _0x43c74e=_0x48ada8['commandParams'][0x0];return{'type':'format','content':o(_0x5740a7,'*Set\x20link:*\x20%0','\x22'+_0x43c74e+'\x22')};}return'unlink'==_0x48ada8['commandName']?{'type':'format','content':o(_0x5740a7,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x447d1d{['afterInit'](){const _0x13b709=this['editor'],_0x30032c=_0x13b709['locale'];if(!_0x13b709['plugins']['has']('LegacyListEditing'))return;const _0x420602=_0x13b709['plugins']['get']('TrackChangesEditing'),_0x1cd52b=_0x13b709['plugins']['has']('LegacyTodoListEditing');function _0x2b4b54(_0xea80ed){return()=>{const _0x360085=_0x13b709['model']['document']['selection'],_0x5d13c4=_0x13b709['commands']['get'](_0xea80ed);if(_0x5d13c4['value'])return void _0x13b709['execute']('paragraph',{});const _0x566780=_0xea80ed['slice'](0x0,-0x4),_0x54825d=function(_0x507e61,_0x16943a,_0x18739a){let _0x142e82=Array['from'](_0x507e61)['filter'](_0x2f848a=>function(_0x15e388,_0x307e8d){return _0x307e8d['checkChild'](_0x15e388['parent'],'listItem')&&!_0x307e8d['isObject'](_0x15e388);}(_0x2f848a,_0x18739a));_0x142e82=_0x142e82['filter'](_0x1a183a=>!_0x1a183a['is']('element','listItem')||_0x1a183a['getAttribute']('listType')!=_0x16943a);const _0x3d4d4c=new Set();for(const _0x34720f of _0x142e82)_0x34720f['is']('element','listItem')?_0x3d4d4c['add'](Le(_0x34720f)):_0x3d4d4c['add'](_0x34720f);return Array['from'](_0x3d4d4c);}(_0x360085['getSelectedBlocks'](),_0x566780,_0x13b709['model']['schema']);_0x13b709['model']['change'](()=>{for(const _0x14ddb4 of _0x54825d)_0x420602['markBlockFormat'](_0x14ddb4,{'commandName':_0xea80ed,'commandParams':[{'forceValue':!_0x5d13c4['value']}],'formatGroupId':'blockName'},Ee(_0x14ddb4));});};}function _0x1b6be0(_0x5b935b){return()=>{const _0x2b50b4=function(_0x3c1872){let _0x1558bc=Array['from'](_0x3c1872);const _0x46b1f8=_0x1558bc['findIndex'](_0xdbffac=>'listItem'!=_0xdbffac['name']);return _0x46b1f8>-0x1&&(_0x1558bc=_0x1558bc['slice'](0x0,_0x46b1f8)),_0x1558bc;}(_0x13b709['model']['document']['selection']['getSelectedBlocks']()),_0x15717a=_0x13b709['model']['createRange'](_0x13b709['model']['createPositionAt'](_0x2b50b4[0x0],'before'),_0x13b709['model']['createPositionAt'](_0x2b50b4[_0x2b50b4['length']-0x1],'end'));_0x13b709['model']['change'](()=>{_0x420602['markBlockFormat'](_0x15717a,{'commandName':_0x5b935b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x45895d){const _0x390bf8=new Set();for(const _0x525293 of _0x45895d){let _0x5233b6=_0x525293['nextSibling'];for(;_0x5233b6&&_0x5233b6['getAttribute']('listIndent')>_0x525293['getAttribute']('listIndent');)_0x390bf8['add'](_0x5233b6),_0x5233b6=_0x5233b6['nextSibling'];}return Array['from'](_0x390bf8);}(_0x2b50b4));});};}_0x420602['enableCommand']('numberedList',_0x2b4b54('numberedList')),_0x420602['enableCommand']('bulletedList',_0x2b4b54('bulletedList')),_0x1cd52b&&_0x420602['enableCommand']('todoList',_0x2b4b54('todoList')),_0x420602['enableCommand']('indentList',_0x1b6be0('indentList')),_0x420602['enableCommand']('outdentList',_0x1b6be0('outdentList')),_0x1cd52b&&_0x420602['enableCommand']('checkTodoList',()=>{const _0x3eb7c6=_0x13b709['commands']['get']('checkTodoList'),_0x18a6eb=Array['from'](_0x3eb7c6['_selectedElements']);_0x18a6eb['filter'](_0xa28f73=>_0xa28f73['getAttribute']('todoListChecked')!=_0x3eb7c6['value']),_0x13b709['model']['change'](()=>{for(const _0x4c3e29 of _0x18a6eb)_0x420602['markBlockFormat'](_0x4c3e29,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3eb7c6['value']}]});});}),_0x420602['descriptionFactory']['registerElementLabel']('listItem',_0x344973=>o(_0x30032c,'ELEMENT_LIST_ITEM',_0x344973)),_0x420602['descriptionFactory']['registerDescriptionCallback'](_0x1e5f80=>{if('formatBlock'!=_0x1e5f80['type']&&'formatInline'!=_0x1e5f80['type'])return;const {data:_0x4e7bad}=_0x1e5f80;if(_0x4e7bad){if('numberedList'==_0x4e7bad['commandName']||'bulletedList'==_0x4e7bad['commandName']||'todoList'==_0x4e7bad['commandName'])switch(_0x4e7bad['commandName']['replace']('List','')){case'bulleted':return _0xb15de2(o(_0x30032c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb15de2(o(_0x30032c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb15de2(o(_0x30032c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4e7bad['commandName'])return{'type':'format','content':o(_0x30032c,'*Indent:*\x20%0',o(_0x30032c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4e7bad['commandName'])return{'type':'format','content':o(_0x30032c,'*Outdent:*\x20%0',o(_0x30032c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4e7bad['commandName'])return _0x4e7bad['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30032c,'*Check\x20item*')}:{'type':'format','content':o(_0x30032c,'*Uncheck\x20item*')};}function _0xb15de2(_0x6f784e){return{'type':'format','content':o(_0x30032c,'*Change\x20to:*\x20%0',_0x6f784e)};}});}}function Le(_0x1db6e7){const _0x18eb96=_0x1db6e7['getAttribute']('listIndent');if(0x0==_0x18eb96)return _0x1db6e7;let _0x11eaac=_0x1db6e7;for(;_0x1db6e7['previousSibling']&&_0x1db6e7['previousSibling']['is']('element','listItem');){const _0x374aaa=_0x1db6e7['previousSibling']['getAttribute']('listIndent');if(_0x374aaa==_0x18eb96)_0x11eaac=_0x1db6e7['previousSibling'];else{if(_0x374aaa<_0x18eb96)break;}_0x1db6e7=_0x1db6e7['previousSibling'];}return _0x11eaac;}function Ee(_0x1487a7){const _0x1f8525=[];if(_0x1487a7['is']('element','listItem')&&_0x1487a7['getAttribute']('listIndent')>0x0){let _0x53f206=_0x1487a7['nextSibling'];for(;_0x53f206&&'listItem'==_0x53f206['name']&&_0x53f206['getAttribute']('listIndent')==_0x1487a7['getAttribute']('listIndent');)_0x1f8525['push'](_0x53f206),_0x53f206=_0x53f206['nextSibling'];}return _0x1f8525;}class wt extends _0x447d1d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xaff36e=this['editor']['config']['get']('list.properties'),_0x33cfe0=this['editor']['plugins']['get']('TrackChangesEditing');_0xaff36e['styles']&&_0x33cfe0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xaff36e['reversed']&&_0x33cfe0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xaff36e['startIndex']&&_0x33cfe0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x33cfe0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x26ecf2,_0x118af9={}){const _0x259873=this['editor']['plugins']['get']('TrackChangesEditing'),_0x177a79=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x259873['markMultiRangeBlockFormat'](_0x177a79,{'commandName':'listStyle','commandParams':[{'type':_0x118af9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1992bd,_0x46947c={}){const _0xec05c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15d034=this['_getSuggestionBlocks'](_0x4b3b23=>_0x4b3b23['is']('element','listItem')&&'numbered'===_0x4b3b23['getAttribute']('listType'));if(_0x15d034['length']<0x1)return;const _0x1379c1=_0x15d034['map'](_0x1716d4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1716d4,'before'),this['editor']['model']['createPositionAt'](_0x1716d4,0x0)));this['editor']['model']['change'](()=>{_0xec05c3['markMultiRangeBlockFormat'](_0x1379c1,{'commandName':'listReversed','commandParams':[{'reversed':_0x46947c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2b1e95,_0x400cf1={}){const _0x3899cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21d857=this['_getSuggestionBlocks'](_0x18a5ea=>_0x18a5ea['is']('element','listItem')&&'numbered'===_0x18a5ea['getAttribute']('listType'));if(_0x21d857['length']<0x1)return;const _0x5be3ce=_0x21d857['map'](_0x459fe0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x459fe0,'before'),this['editor']['model']['createPositionAt'](_0x459fe0,0x0)));this['editor']['model']['change'](()=>{_0x3899cd['markMultiRangeBlockFormat'](_0x5be3ce,{'commandName':'listStart','commandParams':[{'startIndex':_0x400cf1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x95d853){if('formatBlock'!=_0x95d853['type']&&'formatInline'!=_0x95d853['type'])return;const _0x2dfa4e=this['editor']['locale'],{data:_0x5ac4a1}=_0x95d853;if(!_0x5ac4a1)return;let _0x5a56fc,_0x56842d;switch(_0x5ac4a1['commandName']){case'listStyle':_0x5a56fc='*Change\x20to:*\x20%0',_0x56842d={'type':'format','content':o(_0x2dfa4e,_0x5a56fc,o(_0x2dfa4e,this['_getTranslationKeyForListStyle'](_0x5ac4a1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5a56fc=_0x5ac4a1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56842d={'type':'format','content':o(_0x2dfa4e,_0x5a56fc)};break;case'listStart':_0x5a56fc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56842d={'type':'format','content':o(_0x2dfa4e,_0x5a56fc,_0x5ac4a1['commandParams'][0x0]['startIndex'])};}return _0x56842d;}['_getSuggestionBlocksForListStyle'](){const _0x16e838=this['editor']['plugins']['get']('LegacyListUtils');let _0x4077d2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4077d2[0x0]?.['is']('element','listItem')&&_0x4077d2['unshift'](..._0x16e838['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4077d2[_0x4077d2['length']-0x1]?.['is']('element','listItem')&&_0x4077d2['push'](..._0x16e838['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4077d2=[...new Set(_0x4077d2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4077d2=_0x4077d2['filter'](_0x5c5c54=>_0x5c5c54['is']('element','listItem'))),_0x4077d2;}['_getSuggestionBlocks'](_0x565cea){const _0x36e46d=this['editor']['plugins']['get']('LegacyListUtils');let _0x28c824=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x565cea)['map'](_0x34cb04=>{const _0x3ed6c6=this['editor']['model']['createPositionAt'](_0x34cb04,0x0);return[..._0x36e46d['getSiblingNodes'](_0x3ed6c6,'backward'),..._0x36e46d['getSiblingNodes'](_0x3ed6c6,'forward')];})['flat']();return _0x28c824=[...new Set(_0x28c824)],_0x28c824;}['_getTranslationKeyForListStyle'](_0x6a43fa){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x6a43fa)||'default')['toUpperCase']()+'_LIST_'+_0x6a43fa['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x447d1d{['afterInit'](){const _0x412985=this['editor'];if(!_0x412985['plugins']['has']('MediaEmbedEditing'))return;const _0x15d981=_0x412985['plugins']['get']('TrackChangesEditing'),_0x52edb9=_0x412985['locale'];_0x15d981['enableCommand']('mediaEmbed'),_0x15d981['descriptionFactory']['registerElementLabel']('media',_0x410359=>o(_0x52edb9,'ELEMENT_MEDIA',_0x410359));}}class bt extends _0x447d1d{['afterInit'](){const _0x48de37=this['editor'];_0x48de37['plugins']['has']('MentionEditing')&&_0x48de37['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x447d1d{['afterInit'](){const _0xc3c2fe=this['editor'];if(!_0xc3c2fe['plugins']['has']('MergeFieldsEditing'))return;const _0x3f4bbe=_0xc3c2fe['plugins']['get']('TrackChangesEditing'),_0x117aa1=_0xc3c2fe['locale'];_0x3f4bbe['enableCommand']('insertMergeField'),_0x3f4bbe['enableCommand']('insertMergeFieldBlock'),_0x3f4bbe['enableCommand']('insertMergeFieldImage'),_0x3f4bbe['descriptionFactory']['registerElementLabel']('mergeField',_0x32134f=>o(_0x117aa1,'ELEMENT_MERGE_FIELD',_0x32134f)),_0x3f4bbe['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4a949e=>o(_0x117aa1,'ELEMENT_MERGE_FIELD',_0x4a949e)),_0x3f4bbe['descriptionFactory']['registerDescriptionCallback'](_0x2af6cb=>{if('insertion'!=_0x2af6cb['type']&&'deletion'!=_0x2af6cb['type'])return;const _0x485fe7=_0x2af6cb['getContainedElement']();if(null==_0x485fe7)return;const _0x30d884=_0xc3c2fe['plugins']['get']('MergeFieldsEditing');let _0x16a300;switch(_0x30d884['getMergeFieldType'](_0x485fe7)){case null:return;case'image':{const _0x88e2bd=_0x30d884['unwrapAffixes'](_0x485fe7['getAttribute']('src'));_0x16a300=_0x30d884['getLabel'](_0x88e2bd)||_0x88e2bd;break;}default:{const _0x4a71c1=_0x485fe7['getAttribute']('id');_0x16a300=_0x30d884['getLabel'](_0x4a71c1)||_0x4a71c1;break;}}return'insertion'==_0x2af6cb['type']?{'type':'insertion','content':o(_0x117aa1,'*Insert:*\x20%0','\x22'+_0x16a300+'\x22\x20'+o(_0x117aa1,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x117aa1,'*Remove:*\x20%0','\x22'+_0x16a300+'\x22\x20'+o(_0x117aa1,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x447d1d{['afterInit'](){const _0x4a66e1=this['editor'],_0xbb818a=_0x4a66e1['plugins']['get']('TrackChangesEditing');_0x4a66e1['plugins']['has']('MultiLevelList')&&(_0xbb818a['enableDefaultAttributesIntegration']('multiLevelList'),_0xbb818a['descriptionFactory']['registerDescriptionCallback'](_0x462bf9=>this['handleDescriptions'](_0x462bf9)));}['handleDescriptions'](_0xca02b9){const _0x538f24=this['editor']['locale'],{data:_0x37cdbf}=_0xca02b9,_0x4fb430={'type':'format','content':''};if(_0x37cdbf&&'listMarkerStyle'==_0x37cdbf['key']){if(!_0x37cdbf['oldValue'])return{'type':'format','content':o(_0x538f24,'*Set\x20format:*\x20%0',o(_0x538f24,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x37cdbf['newValue']+')'};if(!_0x37cdbf['newValue']){let _0x39b103=_0xca02b9['head'];for(;_0x39b103;){if(_0x39b103['data']&&'listType'==_0x39b103['data']['key']&&_0x39b103['data']['newValue'])return _0x4fb430;_0x39b103=_0x39b103['next'];}return{'type':'format','content':o(_0x538f24,'*Remove\x20format:*\x20%0',o(_0x538f24,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x37cdbf['oldValue']+')'};}}}}class St extends _0x447d1d{['afterInit'](){const _0x4c44e7=this['editor'];if(!_0x4c44e7['plugins']['has']('PageBreakEditing'))return;_0x4c44e7['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4158ee=_0x4c44e7['plugins']['get']('TrackChangesEditing'),_0x1f5b37=_0x4c44e7['locale'];_0x4158ee['descriptionFactory']['registerElementLabel']('pageBreak',_0xd9bd9c=>o(_0x1f5b37,'ELEMENT_PAGE_BREAK',_0xd9bd9c));}}class It extends _0x447d1d{['afterInit'](){const _0x1d8564=this['editor'];if(!_0x1d8564['plugins']['has']('Paragraph'))return;const _0x41010c=_0x1d8564['locale'],_0x1b3685=_0x1d8564['plugins']['get']('TrackChangesEditing');_0x1b3685['descriptionFactory']['registerElementLabel']('paragraph',_0x2f8bae=>o(_0x41010c,'ELEMENT_PARAGRAPH',_0x2f8bae)),_0x1b3685['enableDefaultAttributesIntegration']('paragraph'),_0x1b3685['enableCommand']('insertParagraph');const _0x58afc0=_0x1b3685['descriptionFactory'];_0x58afc0['registerDescriptionCallback'](_0x31b780=>{if('insertion'!==_0x31b780['type'])return;const {start:_0x41498f,end:_0x3354bd}=_0x31b780['getFirstRange']();if(!_0x41498f['isTouching'](_0x3354bd)||!_0x41498f['nodeAfter'])return;const _0x3553d0=_0x1d8564['model']['schema'],_0x56e37b=_0x41498f['nodeAfter'];return _0x3553d0['isBlock'](_0x56e37b)&&!_0x3553d0['isLimit'](_0x56e37b)&&_0x3553d0['checkChild'](_0x56e37b,'$text')?{'type':'insertion','content':o(_0x41010c,'*Insert:*\x20%0',_0x58afc0['getItemLabel'](_0x56e37b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2541d3=this['editor'],_0x326b6e=_0x2541d3['locale'];_0x2541d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46e2be=>{if('formatBlock'!=_0x46e2be['type'])return;const {data:_0xb29411}=_0x46e2be;return _0xb29411&&'paragraph'==_0xb29411['commandName']?{'type':'format','content':o(_0x326b6e,'*Change\x20to:*\x20%0',o(_0x326b6e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x447d1d{['afterInit'](){const _0x1bc9cd=this['editor'];_0x1bc9cd['commands']['get']('replaceSource')&&_0x1bc9cd['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x447d1d{['afterInit'](){const _0x2edcde=this['editor'];if(!_0x2edcde['plugins']['has']('RemoveFormatEditing'))return;_0x2edcde['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3922d5=this['editor'];_0x3922d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35feb4=>{if('formatBlock'!=_0x35feb4['type']&&'formatInline'!=_0x35feb4['type'])return;const {data:_0x2a3657}=_0x35feb4;return _0x2a3657&&'removeFormat'==_0x2a3657['commandName']?{'type':'format','content':o(_0x3922d5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x447d1d{['afterInit'](){const _0x5a3d5a=this['editor'];if(!_0x5a3d5a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xdfe236=_0x5a3d5a['plugins']['get']('TrackChangesEditing');_0xdfe236['enableCommand']('goToPreviousRestrictedEditingException'),_0xdfe236['enableCommand']('goToNextRestrictedEditingException');const _0x1f3556=_0x5a3d5a['plugins']['get']('RestrictedEditingModeEditing');_0x1f3556['enableCommand']('trackChanges'),_0x1f3556['enableCommand']('acceptSuggestion'),_0x1f3556['enableCommand']('discardSuggestion'),_0x1f3556['enableCommand']('acceptAllSuggestions'),_0x1f3556['enableCommand']('discardAllSuggestions'),_0x1f3556['enableCommand']('acceptSelectedSuggestions'),_0x1f3556['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x447d1d{['afterInit'](){const _0xc3e17e=this['editor'];if(!_0xc3e17e['plugins']['has']('ShiftEnter'))return;const _0x190cee=_0xc3e17e['plugins']['get']('TrackChangesEditing');_0x190cee['enableCommand']('shiftEnter'),_0x190cee['descriptionFactory']['registerElementLabel']('softBreak',_0x1d0d35=>o(_0xc3e17e['locale'],'ELEMENT_LINE_BREAK',_0x1d0d35));}}function an(_0x2299b4,_0x30ed24,_0x5a6b11){const _0x3f6dc9=[];for(const _0xec7fe5 of _0x30ed24['getItems']())_0xec7fe5['hasAttribute'](_0x2299b4)&&_0x3f6dc9['push'](_0x5a6b11['createRangeOn'](_0xec7fe5));return _0x3f6dc9;}class $t extends _0x447d1d{['afterInit'](){const _0x23d0fd=this['editor'],_0x2b1889=_0x23d0fd['plugins']['get']('TrackChangesEditing');_0x23d0fd['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x2b1889['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x15b0b0=this['editor'],_0x16a0ad=_0x15b0b0['model'],_0x4e4f46=_0x15b0b0['locale'],_0x2118b8=_0x15b0b0['plugins']['get']('TrackChangesEditing'),_0x5bd72a='restrictedEditingException',_0x454484=_0x15b0b0['commands']['get'](_0x5bd72a);_0x2118b8['enableCommand'](_0x5bd72a,(_0xa74ade,_0x5a6242={})=>{const _0x1c247f=_0x16a0ad['document']['selection'];if(_0x1c247f['isCollapsed'])return void _0xa74ade(_0x5a6242);const _0x132908=void 0x0!==_0x5a6242['forceValue']?_0x5a6242['forceValue']:!_0x454484['value'];_0x16a0ad['change'](()=>{const _0x115b3c=Array['from'](_0x1c247f['getRanges']());for(const _0x2a2a27 of _0x115b3c){const _0x3dc0a9=_0x132908?[_0x2a2a27]:an(_0x5bd72a,_0x2a2a27,_0x16a0ad);for(const _0x394336 of _0x3dc0a9)_0x2118b8['markInlineFormat'](_0x394336,{'commandName':_0x5bd72a,'commandParams':[{'forceValue':_0x132908}]});}});}),_0x2118b8['descriptionFactory']['registerDescriptionCallback'](_0x1456d7=>{if('formatBlock'!=_0x1456d7['type']&&'formatInline'!=_0x1456d7['type'])return;const {data:_0x2e0715}=_0x1456d7;return _0x2e0715&&_0x2e0715['commandName']==_0x5bd72a?_0x2e0715['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e4f46,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4e4f46,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x46c703=this['editor'],_0x46619b=_0x46c703['locale'],_0x359d68=_0x46c703['plugins']['get']('TrackChangesEditing'),_0x3b5d15='restrictedEditingExceptionBlock',_0x1884fe=this['editor']['commands']['get'](_0x3b5d15);_0x359d68['enableCommand'](_0x3b5d15,(_0x1f7025,_0x1ebcb8={})=>{const _0x31bf60=this['editor']['model']['document']['selection'],_0x293a43=_0x1ebcb8&&void 0x0!==_0x1ebcb8['forceValue']?_0x1ebcb8['forceValue']:!_0x1884fe['value'];let _0x11dc7b=[];if(_0x293a43){const _0x30d5bc=Array['from'](_0x31bf60['getSelectedBlocks']())['filter'](_0x457437=>function(_0x564d87){return!!_0x564d87['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x457437)||function(_0x3b6640,_0x1e79bf){const _0x38619e=_0x1e79bf['createContext'](_0x3b6640['parent']);if(!_0x1e79bf['checkChild'](_0x38619e,'restrictedEditingException'))return!0x1;if(!_0x1e79bf['checkChild'](_0x38619e['push']('restrictedEditingException'),_0x3b6640))return!0x1;return!0x0;}(_0x457437,this['editor']['model']['schema']));_0x11dc7b=to(_0x30d5bc,_0x46c703['model']);}else{const _0xe0f00e=Array['from'](_0x31bf60['getSelectedBlocks']())['map'](_0x51c223=>function(_0x5acf71){let _0x1cd608=_0x5acf71;for(;_0x1cd608['parent'];){if('restrictedEditingException'==_0x1cd608['parent']['name'])return _0x1cd608;_0x1cd608=_0x1cd608['parent'];}return null;}(_0x51c223))['filter'](_0x15a94f=>!!_0x15a94f);_0x11dc7b=to(_0xe0f00e,_0x46c703['model']);}_0x46c703['model']['change'](()=>{for(const _0x1cf3dc of _0x11dc7b)_0x359d68['markBlockFormat'](_0x1cf3dc,{'commandName':_0x3b5d15,'commandParams':[{'forceValue':_0x293a43}]});});}),_0x359d68['descriptionFactory']['registerDescriptionCallback'](_0x5c879e=>{const {data:_0xd79093}=_0x5c879e;if(_0xd79093&&_0xd79093['commandName']==_0x3b5d15)return _0xd79093['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46619b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x46619b,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x447d1d{['afterInit'](){const _0x4a630e=this['editor'];if(!_0x4a630e['plugins']['has']('Style')||!_0x4a630e['plugins']['has']('DataSchema'))return;const _0x481112=_0x4a630e['plugins']['get']('TrackChangesEditing'),_0x800706=_0x4a630e['locale'],_0x331679=_0x4a630e['config']['get']('style')||{},_0x549711=_0x4a630e['plugins']['get']('GeneralHtmlSupport'),_0x5a2ff0=_0x4a630e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4a630e['plugins']['get']('DataSchema'),_0x331679['definitions']);_0x481112['enableDefaultAttributesIntegration']('style');const _0x2064a3=new Set();for(const _0x1127cc of _0x5a2ff0['block']){const _0x62e8f=_0x549711['getGhsAttributeNameForElement'](_0x1127cc['element']);_0x2064a3['add'](_0x62e8f);}const _0xdb81e1=new Set();for(const _0x5ed4e0 of _0x5a2ff0['inline']){const _0x529772=_0x549711['getGhsAttributeNameForElement'](_0x5ed4e0['element']);_0xdb81e1['add'](_0x529772);for(const _0x3f73dc of _0x5ed4e0['ghsAttributes'])_0xdb81e1['add'](_0x3f73dc);}for(const _0x3d7ba6 of _0x2064a3)_0x481112['descriptionFactory']['registerAttributeLabel'](_0x3d7ba6,o(_0x800706,'FORMAT_STYLE'));for(const _0x243414 of _0xdb81e1)_0x481112['descriptionFactory']['registerAttributeLabel'](_0x243414,o(_0x800706,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x91dd12=this['editor'],_0x24f879=_0x91dd12['locale'];_0x91dd12['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe174a2=>{if('formatBlock'!=_0xe174a2['type']&&'formatInline'!=_0xe174a2['type'])return;const {data:_0x58e35b}=_0xe174a2;return _0x58e35b&&'style'===_0x58e35b['commandName']?_0x58e35b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x24f879,'*Set\x20format:*\x20%0',_0x58e35b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x24f879,'*Remove\x20format:*\x20%0',_0x58e35b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x447d1d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x202629){super(_0x202629),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5e1005=this['editor'],_0x1fef73=_0x5e1005['model']['document']['selection'];if(!_0x5e1005['plugins']['has']('TableEditing'))return;const _0x4f7fc7=_0x5e1005['locale'],_0x5b32e1=_0x5e1005['plugins']['get']('TrackChangesEditing'),_0x2b58df=_0x5e1005['plugins']['get']('TableUtils');_0x5b32e1['descriptionFactory']['registerElementLabel']('table',_0x248b0b=>o(_0x4f7fc7,'ELEMENT_TABLE',_0x248b0b)),this['_setupColumnsRowsFixing'](),_0x5b32e1['enableCommand']('insertTable'),_0x5b32e1['enableCommand']('selectTableRow'),_0x5b32e1['enableCommand']('selectTableColumn');for(const _0x33b8cb of['insertTableRowAbove','insertTableRowBelow']){const _0xda8aa6=_0x5e1005['commands']['get'](_0x33b8cb);_0x5b32e1['enableCommand'](_0x33b8cb,_0x15248d=>{_0x5e1005['model']['change'](_0x5c459b=>{_0x15248d();const _0x805861='above'===_0xda8aa6['order'],_0x4fc471=_0x2b58df['getSelectionAffectedTableCells'](_0x1fef73),_0x4d2d58=_0x2b58df['getRowIndexes'](_0x4fc471),_0x5b3f31=_0x805861?_0x4d2d58['first']-0x1:_0x4d2d58['last']+0x1,_0x1d16b7=_0x4fc471[0x0]['findAncestor']('table'),_0x249318=_0x2b58df['createTableWalker'](_0x1d16b7,{'startRow':_0x5b3f31,'endRow':_0x5b3f31}),_0x313964=Array['from'](_0x249318)['map'](_0x26765d=>_0x5c459b['createRangeOn'](_0x26765d['cell']));_0x5b32e1['markMultiRangeInsertion'](_0x313964,'tableRow');});});}for(const _0x4a4309 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4d4589=_0x5e1005['commands']['get'](_0x4a4309);_0x5b32e1['enableCommand'](_0x4a4309,_0x8f6cb3=>{_0x5e1005['model']['change'](_0x48ab4d=>{_0x8f6cb3();const _0x413fa1='left'===_0x4d4589['order'],_0x4469b1=_0x2b58df['getSelectionAffectedTableCells'](_0x1fef73),_0x2e69f7=_0x2b58df['getColumnIndexes'](_0x4469b1),_0x8ef0cb=_0x413fa1?_0x2e69f7['first']-0x1:_0x2e69f7['last']+0x1,_0x35a010=_0x4469b1[0x0]['findAncestor']('table'),_0x1d6501=_0x2b58df['createTableWalker'](_0x35a010,{'startRow':0x0,'column':_0x8ef0cb,'includeAllSlots':!0x1}),_0x384da1=Array['from'](_0x1d6501)['map'](_0x148e74=>_0x48ab4d['createRangeOn'](_0x148e74['cell']));_0x5b32e1['markMultiRangeInsertion'](_0x384da1,'tableColumn');});});}for(const _0x3d0b07 of['removeTableRow','removeTableColumn']){const _0x1c8f52=_0x3d0b07['substr'](0xb),_0x555f42=_0x1c8f52['toLowerCase'](),_0xf5afc0=_0x555f42['substr'](0x0,0x3)+'span',_0x50ab42='table'+_0x1c8f52,_0x54087d='min'+_0x1c8f52,_0x20af81='max'+_0x1c8f52;_0x5b32e1['enableCommand'](_0x3d0b07,()=>{_0x5e1005['model']['change'](_0x43c3c5=>{const _0x320ac2=_0x2b58df['getSelectionAffectedTableCells'](_0x1fef73),_0x3062ec=_0x320ac2[0x0]['findAncestor']('table');let _0x3771fa;if('removeTableRow'==_0x3d0b07){const _0x4e6606=_0x2b58df['getRowIndexes'](_0x320ac2);_0x3771fa={'startRow':_0x4e6606['first'],'endRow':_0x4e6606['last'],'includeAllSlots':!0x0};}else{const _0x541021=_0x2b58df['getColumnIndexes'](_0x320ac2);_0x3771fa={'startColumn':_0x541021['first'],'endColumn':_0x541021['last'],'includeAllSlots':!0x0};}const _0x546f97=_0x2b58df['createTableWalker'](_0x3062ec,_0x3771fa),_0x652f86=Array['from'](_0x546f97)['map'](({cell:_0x283976})=>_0x283976),_0x1dc780=_e(_0x652f86['filter'](_0x212845=>_0x212845['hasAttribute'](_0xf5afc0))),_0x39c95a=_e(_0x652f86['filter'](_0x4e7f3a=>!_0x4e7f3a['hasAttribute'](_0xf5afc0)))['map'](_0x2dab92=>_0x43c3c5['createRangeOn'](_0x2dab92)),_0x39d614=_0x5b32e1['markMultiRangeDeletion'](_0x39c95a,_0x50ab42);if(_0x39d614&&('tableRow'==_0x39d614['subType']||'tableColumn'==_0x39d614['subType'])){const _0x35e1ab=this['_getSuggestionCoords'](_0x39d614);for(const _0x553c29 of _0x1dc780){const _0x4b36ff=_0x43c3c5['createRangeOn'](_0x553c29),_0x21d11a=_0x2b58df['getCellLocation'](_0x553c29),_0x467f7a=_0x553c29['getAttribute'](_0xf5afc0)-0x1,_0x3c9463=_0x35e1ab[_0x54087d],_0x408a0b=_0x35e1ab[_0x20af81];_0x3c9463<=_0x21d11a[_0x555f42]&&_0x21d11a[_0x555f42]+_0x467f7a<=_0x408a0b&&_0x39d614['addRange'](_0x4b36ff);}}});});}function _0xb17673(_0x59b3b8){const _0x3d098c=Array['from'](_0x1fef73['getRanges']())['map'](_0x384127=>_0x596d93['fromRange'](_0x384127));_0x5e1005['model']['change'](_0x4902e5=>{const _0x965bde=_0x4902e5['batch'];_0x59b3b8=_0x59b3b8['filter'](_0x531171=>'$graveyard'!=_0x531171['root']['rootName']),_0x4902e5['setSelection'](_0x59b3b8),_0x5e1005['commands']['get']('removeTableRow')['refresh'](),_0x5e1005['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5e1005['model']['enqueueChange'](()=>{_0x5e1005['model']['enqueueChange'](_0x965bde,_0x5dcaba=>{const _0x3745c9=_0x3d098c['filter'](_0x3758e9=>'$graveyard'!=_0x3758e9['root']['rootName']);_0x3745c9['length']>0x0&&_0x5dcaba['setSelection'](_0x3745c9);for(const _0x3895b5 of _0x3d098c)_0x3895b5['detach']();});});});}function _0x29ab83(_0x1e8703){_0x5e1005['model']['change'](_0xf95520=>{const _0x39136b=Array['from'](_0x1fef73['getRanges']())['map'](_0x281bd2=>_0x596d93['fromRange'](_0x281bd2)),_0x2fc916=[];for(const _0x283611 of _0x1e8703)for(const _0x2d9166 of _0x283611['getItems']({'shallow':!0x0}))_0x2fc916['push'](_0x2d9166);for(const _0x3028a9 of _0x2fc916)'$graveyard'!=_0x3028a9['root']['rootName']&&(_0xf95520['setSelection'](_0xf95520['createPositionAt'](_0x3028a9,0x0)),_0x5e1005['commands']['get']('removeTableColumn')['refresh'](),_0x5e1005['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x57dc80=_0x39136b['filter'](_0xff2d8=>'$graveyard'!=_0xff2d8['root']['rootName']);_0x57dc80['length']>0x0&&_0xf95520['setSelection'](_0x57dc80);for(const _0x25cf9a of _0x39136b)_0x25cf9a['detach']();});}function _0x566684(_0x58a346,_0x50e569){return _0x50e569['every'](_0x41c90a=>_0x58a346['some'](_0x5543f8=>_0x5543f8['end']['isEqual'](_0x41c90a['start'])||_0x41c90a['end']['isEqual'](_0x5543f8['start'])));}function _0x2f4a82(_0x20ec76,_0x26eec4){return!_0x20ec76['some'](_0x52c691=>_0x26eec4['some'](_0x5b96b9=>_0x52c691['isIntersecting'](_0x5b96b9)))&&_0x20ec76['some'](_0x1a6182=>_0x26eec4['some'](_0xf18d89=>_0x1a6182['end']['isTouching'](_0xf18d89['start'])));}_0x5b32e1['descriptionFactory']['registerDescriptionCallback'](_0x27ff93=>{if('insertion'!=_0x27ff93['type']&&'deletion'!=_0x27ff93['type'])return;const _0x51541a=_0x27ff93['getContainedElement']();if(null!=_0x51541a&&_0x51541a['is']('element','table')){if('insertion'==_0x27ff93['type']){const _0xfd1c34=_0x27ff93['getItems']()['filter'](_0x3393ba=>_0x3393ba['is']('$textProxy'))['map'](_0x32b974=>_0x32b974['data']);if(_0xfd1c34['length'])return{'type':'insertion','content':o(_0x4f7fc7,'*Insert:*\x20%0',o(_0x4f7fc7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xfd1c34['join']('\x20')+'\x22'))};}if('deletion'==_0x27ff93['type']){const _0x2f9c57=_0x27ff93['getItems']()['filter'](_0xb9b992=>_0xb9b992['is']('$textProxy'))['map'](_0x20c376=>_0x20c376['data']);if(_0x2f9c57['length'])return{'type':'deletion','content':o(_0x4f7fc7,'*Remove:*\x20%0',o(_0x4f7fc7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2f9c57['join']('\x20')+'\x22'))};}}}),_0x5b32e1['descriptionFactory']['registerDescriptionCallback'](_0x3d81ed=>{if('tableRow'==_0x3d81ed['subType']){const _0x1ac875=_0x3d81ed['getItems']()['filter'](_0x575fed=>_0x575fed['is']('$textProxy'))['map'](_0x1a6cbb=>_0x1a6cbb['data']),_0xcf6081=this['_getSuggestionCoords'](_0x3d81ed),_0x516379=_0xcf6081['maxRow']-_0xcf6081['minRow']+0x1;if('insertion'==_0x3d81ed['type'])return _0x1ac875['length']?{'type':'insertion','content':o(_0x4f7fc7,'*Insert:*\x20%0',o(_0x4f7fc7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x516379,'\x22'+_0x1ac875['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4f7fc7,'*Insert:*\x20%0',o(_0x4f7fc7,'ELEMENT_TABLE_ROW',_0x516379))};if('deletion'==_0x3d81ed['type'])return _0x1ac875['length']?{'type':'deletion','content':o(_0x4f7fc7,'*Remove:*\x20%0',o(_0x4f7fc7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x516379,'\x22'+_0x1ac875['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4f7fc7,'*Remove:*\x20%0',o(_0x4f7fc7,'ELEMENT_TABLE_ROW',_0x516379))};}if('tableColumn'==_0x3d81ed['subType']){const _0x2ab9ef=_0x3d81ed['getItems']()['filter'](_0x186333=>_0x186333['is']('$textProxy'))['map'](_0x3b34e9=>_0x3b34e9['data']),_0x9e891e=this['_getSuggestionCoords'](_0x3d81ed),_0x715e97=_0x9e891e['maxColumn']-_0x9e891e['minColumn']+0x1;if('insertion'==_0x3d81ed['type'])return _0x2ab9ef['length']?{'type':'insertion','content':o(_0x4f7fc7,'*Insert:*\x20%0',o(_0x4f7fc7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x715e97,'\x22'+_0x2ab9ef['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4f7fc7,'*Insert:*\x20%0',o(_0x4f7fc7,'ELEMENT_TABLE_COLUMN',_0x715e97))};if('deletion'==_0x3d81ed['type'])return _0x2ab9ef['length']?{'type':'deletion','content':o(_0x4f7fc7,'*Remove:*\x20%0',o(_0x4f7fc7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x715e97,'\x22'+_0x2ab9ef['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4f7fc7,'*Remove:*\x20%0',o(_0x4f7fc7,'ELEMENT_TABLE_COLUMN',_0x715e97))};}}),_0x5b32e1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xb17673),_0x5b32e1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xb17673),_0x5b32e1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x29ab83),_0x5b32e1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x29ab83),_0x5b32e1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x566684),_0x5b32e1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x566684),_0x5b32e1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2f4a82),_0x5b32e1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2f4a82);}['_acceptFormatSuggestionCallbackFactory'](){const _0x54490c=this['editor'],_0x42b777=_0x54490c['model']['document']['selection'];return(_0x1cd612,_0x30cb16)=>{_0x54490c['model']['change'](_0x3acb91=>{const {commandName:_0x1088e7,commandParams:_0xfd5a25}=_0x30cb16;let _0x2b18fd=_0x1cd612[0x0]['end']['nodeBefore'];_0xfd5a25&&_0xfd5a25[0x0]&&!0x1===_0xfd5a25[0x0]['forceValue']&&(_0x2b18fd=_0x1cd612[0x0]['start']['nodeAfter']);const _0x7fd8c4=_0x3acb91['createRangeIn'](_0x2b18fd);if('$graveyard'==_0x7fd8c4['root']['rootName'])return;const _0x3341de=Array['from'](_0x42b777['getRanges']())['map'](_0x427f9e=>_0x596d93['fromRange'](_0x427f9e));_0x3acb91['setSelection'](_0x7fd8c4),_0x54490c['commands']['get'](_0x1088e7)['refresh'](),_0xfd5a25['push']({'forceDefaultExecution':!0x0}),_0x54490c['execute'](_0x1088e7,..._0xfd5a25);const _0x21a7a8=_0x3341de['filter'](_0x426b37=>'$graveyard'!=_0x426b37['root']['rootName']);_0x21a7a8['length']>0x0&&_0x3acb91['setSelection'](_0x21a7a8);for(const _0x562791 of _0x3341de)_0x562791['detach']();});};}['_getCoordsForCells'](_0x1b13a6){const _0x817dff=this['editor']['plugins']['get']('TableUtils');let _0x47226a=Number['MAX_SAFE_INTEGER'],_0x247e27=Number['MIN_SAFE_INTEGER'],_0x5e116c=Number['MAX_SAFE_INTEGER'],_0xc5a033=Number['MIN_SAFE_INTEGER'];for(const _0x366680 of _0x1b13a6){if('$graveyard'==_0x366680['root']['rootName'])continue;const {row:_0x1c31b7,column:_0x3aebea}=_0x817dff['getCellLocation'](_0x366680),_0x5bcda5=_0x366680['hasAttribute']('rowspan')?_0x366680['getAttribute']('rowspan')-0x1:0x0,_0x1741b5=_0x366680['hasAttribute']('colspan')?_0x366680['getAttribute']('colspan')-0x1:0x0;_0x47226a=_0x1c31b7<_0x47226a?_0x1c31b7:_0x47226a,_0x247e27=_0x1c31b7+_0x5bcda5>_0x247e27?_0x1c31b7+_0x5bcda5:_0x247e27,_0x5e116c=_0x3aebea<_0x5e116c?_0x3aebea:_0x5e116c,_0xc5a033=_0x3aebea+_0x1741b5>_0xc5a033?_0x3aebea+_0x1741b5:_0xc5a033;}return{'minRow':_0x47226a,'maxRow':_0x247e27,'minColumn':_0x5e116c,'maxColumn':_0xc5a033};}['_setupColumnsRowsFixing'](){const _0x598962=this['editor'],_0x59f16f=_0x598962['plugins']['get']('TrackChangesEditing'),_0x138ed7=_0x598962['plugins']['get']('TableUtils');_0x598962['model']['document']['on']('change:data',()=>{const _0xa9146e=Array['from'](_0x598962['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ebb72,data:_0x131939}of _0xa9146e){const {group:_0x3ef807,id:_0x14510e,subType:_0x3492b1}=_0x59f16f['_splitMarkerName'](_0x1ebb72);if('suggestion'!=_0x3ef807)continue;if(null!=_0x131939['oldRange'])continue;const _0x1b0da5=_0x59f16f['getSuggestion'](_0x14510e);this['_tablePostFixingSubtypes']['includes'](_0x3492b1)&&this['_tableSuggestions']['add'](_0x1b0da5);}},{'priority':'low'});const _0x429a72=(_0xd8823f,_0x12c4f1)=>{let _0x566822=!0x1;const _0x44f833=_0x12c4f1['createRangeOn'](_0xd8823f),_0x24b1de=_0xd8823f['findAncestor']('table'),_0x354f75=_0x138ed7['getCellLocation'](_0xd8823f);for(const _0xb089a7 of this['_tableSuggestions']){const _0x17d6ad=_0xb089a7['subType'],_0x47a89f=_0x17d6ad['startsWith']('tablePaste'),_0x3bc8ec=_0x17d6ad['substr'](_0x47a89f?0xa:0x5),_0x4ea13e=_0x3bc8ec['toLowerCase'](),_0x5b7e16=_0x4ea13e['substr'](0x0,0x3)+'span',_0x25f22d='min'+_0x3bc8ec,_0x3b1591='max'+_0x3bc8ec;if(!_0xb089a7['isInContent'])continue;if(_0x24b1de!=_0xb089a7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xb089a7['isIntersectingWithRange'](_0x44f833))continue;const _0x4bff1b=_0xd8823f['hasAttribute'](_0x5b7e16)?_0xd8823f['getAttribute'](_0x5b7e16)-0x1:0x0,_0x28c659=this['_getSuggestionCoords'](_0xb089a7),_0x37650b=_0x28c659[_0x25f22d],_0x163c95=_0x28c659[_0x3b1591];_0x37650b<=_0x354f75[_0x4ea13e]&&_0x354f75[_0x4ea13e]+_0x4bff1b<=_0x163c95&&(_0xb089a7['addRange'](_0x44f833),_0x566822=!0x0);}return _0x566822;};_0x598962['model']['document']['registerPostFixer'](_0xc8b748=>{let _0x3b4c74=!0x1;for(const _0x234180 of _0x598962['model']['document']['differ']['getChanges']())if('insert'==_0x234180['type']){if('tableRow'==_0x234180['name']){for(const _0x28be6c of _0x234180['position']['nodeAfter']['getChildren']())_0x3b4c74=_0x3b4c74||_0x429a72(_0x28be6c,_0xc8b748);}else'tableCell'==_0x234180['name']&&(_0x3b4c74=_0x3b4c74||_0x429a72(_0x234180['position']['nodeAfter'],_0xc8b748));}return _0x3b4c74;});}['_getSuggestionCoords'](_0xbfa056){return this['_getCoordsForCells'](_0xbfa056['getRanges']()['map'](_0xe49d2c=>_0xe49d2c['start']['nodeAfter']));}}function _e(_0x569319){return Array['from'](new Set(_0x569319)['values']());}class Bt extends _0x447d1d{static get['requires'](){return[Dt];}['afterInit'](){const _0x439631=this['editor'],_0x33e54e=_0x439631['model']['document']['selection'],_0x2d438a=_0x439631['locale'];if(!_0x439631['plugins']['has']('TableEditing'))return;const _0x59d8e0=_0x439631['plugins']['get']('TrackChangesEditing'),_0x5b4836=_0x439631['plugins']['get']('TableUtils'),_0x2b8f4a=_0x439631['plugins']['get'](Dt);_0x2b8f4a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x59d8e0['enableCommand']('mergeTableCells',()=>{const _0x3a5410=_0x5b4836['getSelectionAffectedTableCells'](_0x439631['model']['document']['selection']);_0x439631['model']['change'](()=>{_0x59d8e0['markMultiRangeBlockFormat'](_0x3a5410,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x439631['commands']['get']('mergeTableCells')['on']('execute',(_0x135880,_0x32ac22)=>{_0x439631['commands']['get']('trackChanges')['value']&&(_0x32ac22['length']>0x0&&_0x32ac22[_0x32ac22['length']-0x1]&&_0x32ac22[_0x32ac22['length']-0x1]['forceDefaultExecution']||_0x59d8e0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x135880['stop']());},{'priority':'highest'});for(const _0x2e9629 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x177db1=_0x439631['commands']['get'](_0x2e9629);_0x59d8e0['enableCommand'](_0x2e9629,()=>{const _0x4fe828=_0x439631['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3c4d9d=>_0x3c4d9d['is']('element','tableCell')),_0x21fa47=_0x177db1['value'];_0x439631['model']['change'](()=>{_0x59d8e0['markMultiRangeBlockFormat']([_0x4fe828,_0x21fa47],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x41886c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x55166a=_0x439631['commands']['get'](_0x41886c);_0x59d8e0['enableCommand'](_0x41886c,()=>{const _0x8f41da=_0x5b4836['getSelectionAffectedTableCells'](_0x439631['model']['document']['selection'])[0x0],_0x864963=_0x8f41da['findAncestor']('table'),{column:_0xaa7d11,row:_0x1fee85}=_0x5b4836['getCellLocation'](_0x8f41da);let _0x352610=[];if('horizontally'==_0x55166a['direction']){const _0x49791c=_0x5b4836['createTableWalker'](_0x864963,{'startRow':_0x1fee85,'endRow':_0x1fee85,'includeAllSlots':!0x0});_0x352610=Array['from'](_0x49791c)['map'](_0x2ab69e=>_0x2ab69e['cell']);}else{const _0x5ea95e=_0x5b4836['createTableWalker'](_0x864963,{'column':_0xaa7d11,'includeAllSlots':!0x0});_0x352610=Array['from'](_0x5ea95e)['map'](_0xf047e5=>_0xf047e5['cell']);}_0x439631['model']['change'](_0x332924=>{_0x59d8e0['markBlockFormat'](_0x332924['createRangeOn'](_0x8f41da),{'commandName':_0x41886c,'commandParams':[]},_0x352610,_0x41886c);});});}_0x59d8e0['descriptionFactory']['registerDescriptionCallback'](_0x4564e6=>{if('formatBlock'!=_0x4564e6['type']&&'formatInline'!=_0x4564e6['type'])return;const {data:_0x14e47e}=_0x4564e6;return _0x14e47e&&'mergeTableCells'==_0x14e47e['commandName']?{'type':'format','content':o(_0x2d438a,'*Merge\x20cells*')}:void 0x0;}),_0x59d8e0['descriptionFactory']['registerDescriptionCallback'](_0x2495a4=>{if('formatBlock'!=_0x2495a4['type']&&'formatInline'!=_0x2495a4['type'])return;const {data:_0x284998}=_0x2495a4;return _0x284998?'splitTableCellVertically'==_0x284998['commandName']?{'type':'format','content':o(_0x2d438a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x284998['commandName']?{'type':'format','content':o(_0x2d438a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x521972=_0x2b8f4a['_acceptFormatSuggestionCallbackFactory']();for(const _0x5f6bd8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x59d8e0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f6bd8,'accept',_0x521972);for(const _0xe1e519 of['splitTableCellVertically','splitTableCellHorizontally'])_0x59d8e0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe1e519,'accept',_0x521972);_0x59d8e0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x367c76=>{_0x439631['model']['change'](_0x3627ba=>{const _0x14db19=Array['from'](_0x33e54e['getRanges']())['map'](_0x404d3f=>_0x596d93['fromRange'](_0x404d3f));_0x3627ba['setSelection'](_0x367c76),_0x439631['commands']['get']('mergeTableCells')['refresh'](),_0x439631['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xc6f987=_0x14db19['filter'](_0x9c51b4=>'$graveyard'!=_0x9c51b4['root']['rootName']);_0xc6f987['length']>0x0&&_0x3627ba['setSelection'](_0xc6f987);for(const _0x59098f of _0x14db19)_0x59098f['detach']();});});for(const _0x29122e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x546f55=_0x439631['commands']['get'](_0x29122e);_0x546f55['on']('set:isEnabled',(_0x332a30,_0x36dfcd,_0x3680ac)=>{if(_0x3680ac){const _0x2da0be=_0x439631['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4118fe=>_0x4118fe['is']('element','tableCell'));this['_areMergableCells'](_0x546f55['value'],_0x2da0be)||(_0x332a30['return']=!0x1,_0x332a30['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x278798=this['editor']['commands']['get']('mergeTableCells'),_0x4491a3=this['editor']['plugins']['get']('TableUtils');if(!_0x278798['isEnabled'])return!0x1;const _0x1a068b=_0x4491a3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x433776 of _0x1a068b)for(const _0x30b6b7 of _0x1a068b)if(_0x433776!=_0x30b6b7&&!this['_areMergableCells'](_0x433776,_0x30b6b7))return!0x1;return!0x0;}['_areMergableCells'](_0x392094,_0x1f1b47){const _0x2409a4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15c8c4=this['editor']['model']['createRangeOn'](_0x392094),_0xdab4ef=this['editor']['model']['createRangeOn'](_0x1f1b47),_0xafc42b=new Set(),_0x2cee25=new Set();for(const _0x3b2d9e of _0x2409a4['getSuggestions']())if(('insertion'==_0x3b2d9e['type']||'deletion'==_0x3b2d9e['type']||'mergeTableCells'==_0x3b2d9e['subType'])&&_0x3b2d9e['isInContent']){for(const _0x3d1cdb of _0x3b2d9e['getRanges']())_0x3d1cdb['containsRange'](_0x15c8c4,!0x0)&&_0xafc42b['add'](_0x3b2d9e['type']+':'+_0x3b2d9e['author']['id']),_0x3d1cdb['containsRange'](_0xdab4ef,!0x0)&&_0x2cee25['add'](_0x3b2d9e['type']+':'+_0x3b2d9e['author']['id']);}if(_0xafc42b['size']!=_0x2cee25['size'])return!0x1;for(const _0x5d48ed of _0xafc42b)if(!_0x2cee25['has'](_0x5d48ed))return!0x1;return!0x0;}}class Ot extends _0x447d1d{static get['requires'](){return[Dt];}['afterInit'](){const _0x10d66d=this['editor'];if(!_0x10d66d['plugins']['has']('TableEditing'))return;const _0x14c392=_0x10d66d['locale'],_0x56aa32=_0x10d66d['plugins']['get']('TrackChangesEditing');_0x56aa32['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x56aa32['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x56aa32['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x14c392,'FORMAT_HEADER_ROW')),_0x56aa32['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x14c392,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x50bb71=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b6407=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x50bb71['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4b6407),_0x50bb71['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4b6407),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x1a02f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20b6ae=this['editor']['plugins']['get']('TableUtils');function _0x279fc4({showActiveMarker:_0x3b38b0=!0x0,setDataAttribute:_0xeb3b71=!0x0}={}){return(_0x3089c4,_0x51d90b,_0x3575dd)=>{const {type:_0x40ebe4,id:_0x4935d1}=_0x1a02f2['_splitMarkerName'](_0x51d90b['markerName']);if(!_0x1a02f2['hasSuggestion'](_0x4935d1))return;const _0x335c2c=_0x1a02f2['getSuggestion'](_0x4935d1),_0x4c48c2=_0x335c2c['data'];if('formatBlock'!=_0x335c2c['type']||!_0x4c48c2||'setTableColumnHeader'!=_0x4c48c2['commandName'])return;if(_0x51d90b['item'])return void _0x3089c4['stop']();if(!_0x3575dd['consumable']['consume'](_0x51d90b['markerRange'],_0x3089c4['name']))return;const _0x18e1ac=_0x51d90b['markerRange']['start']['nodeAfter'],_0x2865f3=_0x51d90b['markerRange']['end']['nodeBefore'],_0x5c23fd=_0x18e1ac['parent']['parent'],{column:_0x354bce}=_0x20b6ae['getCellLocation'](_0x18e1ac),{column:_0xd23d8b}=_0x20b6ae['getCellLocation'](_0x2865f3);for(let _0x5eb7b4=_0x354bce;_0x5eb7b4<=_0xd23d8b;_0x5eb7b4++){const _0x21390b=_0x20b6ae['createTableWalker'](_0x5c23fd,{'column':_0x5eb7b4,'includeAllSlots':!0x1});for(const _0x334192 of _0x21390b){const _0x4bb1f9=_0x334192['cell'],_0x1f8687=_0x3575dd['mapper']['toViewElement'](_0x4bb1f9);_0x3575dd['writer']['addClass']('ck-suggestion-marker-'+_0x40ebe4,_0x1f8687),_0xeb3b71&&_0x3575dd['writer']['setAttribute']('data-suggestion',_0x4935d1,_0x1f8687),_0x3575dd['mapper']['bindElementToMarker'](_0x1f8687,_0x51d90b['markerName']),_0x3b38b0&&(_0x1a02f2['activeMarkers']['includes'](_0x51d90b['markerName'])?_0x3575dd['writer']['addClass']('ck-suggestion-marker--active',_0x1f8687):_0x3575dd['writer']['removeClass']('ck-suggestion-marker--active',_0x1f8687));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x279fc4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd4a18d,_0x54fc52,_0x43342e)=>{_0x43342e['options']['showSuggestionHighlights']&&_0x279fc4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xd4a18d,_0x54fc52,_0x43342e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x58b549,_0x403479,_0x52e266)=>{const {type:_0x3ee4d2,id:_0x5185ee}=_0x1a02f2['_splitMarkerName'](_0x403479['markerName']);if(!_0x1a02f2['hasSuggestion'](_0x5185ee))return;const _0x24b2f=_0x1a02f2['getSuggestion'](_0x5185ee),_0x5b8f72=_0x24b2f['data'];if('formatBlock'!=_0x24b2f['type']||!_0x5b8f72||'setTableColumnHeader'!=_0x5b8f72['commandName'])return;const _0x1c1a65=_0x52e266['mapper']['markerNameToElements'](_0x403479['markerName']);if(_0x1c1a65){for(const _0x50f9a7 of _0x1c1a65)_0x52e266['writer']['removeClass']('ck-suggestion-marker-'+_0x3ee4d2,_0x50f9a7),_0x52e266['writer']['removeClass']('ck-suggestion-marker--active',_0x50f9a7),_0x52e266['writer']['removeAttribute']('data-suggestion',_0x50f9a7),_0x52e266['mapper']['unbindElementFromMarkerName'](_0x50f9a7,_0x403479['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x48c08c=this['editor'],_0x7b53d0=_0x48c08c['locale'];function _0x5beb71(_0x197dbf){return{'type':'format','content':o(_0x7b53d0,'*Format:*\x20%0',_0x197dbf)};}_0x48c08c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b48d6=>{if('formatBlock'!=_0x1b48d6['type'])return;const {data:_0x176b48}=_0x1b48d6;if(_0x176b48){if('setTableRowHeader'==_0x176b48['commandName']){const _0x56aa91=_0x176b48['commandParams'][0x0]['forceValue'];return _0x5beb71(o(_0x7b53d0,_0x56aa91?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x176b48['commandName']){const _0x3630e1=_0x176b48['commandParams'][0x0]['forceValue'];return _0x5beb71(o(_0x7b53d0,_0x3630e1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x447d1d{['afterInit'](){const _0xa24f60=this['editor'],_0x59b4c1=_0xa24f60['locale'],_0x2bbcdc=_0xa24f60['plugins']['get']('TrackChangesEditing');function _0xfa7407(_0x2813ff){return{'type':'format','content':''+o(_0x59b4c1,'*Set\x20table\x20type:*\x20%0',_0x2813ff)};}_0xa24f60['plugins']['has']('TableLayout')&&(_0x2bbcdc['enableCommand']('insertTableLayout'),_0x2bbcdc['enableDefaultAttributesIntegration']('tableType'),_0x2bbcdc['descriptionFactory']['registerElementLabel'](_0x50331e=>_0x50331e['is']('element','table')&&'layout'===_0x50331e['getAttribute']('tableType'),_0x1ba43f=>o(_0x59b4c1,'ELEMENT_LAYOUT_TABLE',_0x1ba43f)),_0x2bbcdc['descriptionFactory']['registerDescriptionCallback'](_0x487470=>{const {data:_0x60209d}=_0x487470;if(_0x60209d&&'tableType'==_0x60209d['key'])switch(_0x60209d['newValue']){case'layout':return _0xfa7407(o(_0x59b4c1,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xfa7407(o(_0x59b4c1,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Re['map'](_0x52eee3=>[_0x52eee3,null]));class Mt extends _0x447d1d{static get['requires'](){return[Dt];}['afterInit'](){const _0x4ea78c=this['editor'];if(!_0x4ea78c['plugins']['has']('TableClipboard'))return;const _0x533fb9=_0x4ea78c['plugins']['get']('TrackChangesEditing'),_0x346b3b=_0x4ea78c['plugins']['get']('TableUtils'),_0x5f46bd=_0x4ea78c['plugins']['get'](Dt),_0x33b245=_0x4ea78c['plugins']['get']('TableClipboard'),_0x20ff2c=_0x4ea78c['plugins']['get']('TableSelection'),_0x2357c4=_0x4ea78c['plugins']['get'](_0x3642de);_0x5f46bd['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4ea78c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4ea78c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2f06dd=null,_0x2e8b94=!0x1;_0x2357c4['on']('contentInsertion',(_0x448d75,_0x1844fc)=>{_0x2e8b94='paste'===_0x1844fc['method'];}),_0x4ea78c['model']['on']('insertContent',(_0x5bcc27,_0x20866d)=>{if(!_0x2e8b94&&null===_0x20ff2c['getSelectedTableCells']())return;const [_0x4be1bd,_0x361337]=_0x20866d,_0x44a5a9=_0x20866d[_0x20866d['length']-0x1];_0x44a5a9&&_0x44a5a9['forceDefaultExecution']||_0x533fb9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3aa7a2,_0x27b4e3,_0x3e64dc,_0x969572,_0x2f6e4a){if(_0x27b4e3&&!_0x27b4e3['is']('documentSelection'))return!0x1;const _0x221c39=_0x2f6e4a['getTableIfOnlyTableInContent'](_0x3aa7a2,_0x3e64dc);if(!_0x221c39||!Oe(_0x221c39,void 0x0,_0x969572))return!0x1;const _0x11298f=_0x969572['getSelectionAffectedTableCells'](_0x3e64dc['document']['selection']);if(!_0x11298f['length'])return!0x1;const _0x18668e=_0x11298f[0x0]['findAncestor']('table'),_0x546e4c=_0x969572['getRowIndexes'](_0x11298f),_0x12e4d9=_0x969572['getColumnIndexes'](_0x11298f),_0x4a983e={'startRow':_0x546e4c['first'],'endRow':_0x546e4c['last'],'startColumn':_0x12e4d9['first'],'endColumn':_0x12e4d9['last']};return 0x1==_0x11298f['length']&&(_0x4a983e['endRow']+=_0x969572['getRows'](_0x221c39)-0x1,_0x4a983e['endColumn']+=_0x969572['getColumns'](_0x221c39)-0x1),Oe(_0x18668e,_0x4a983e,_0x969572);}(_0x4be1bd,_0x361337,_0x4ea78c['model'],_0x346b3b,_0x33b245)&&(_0x5bcc27['stop'](),_0x2f06dd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4ea78c['model']['change'](()=>{_0x4ea78c['model']['insertContent'](_0x20866d[0x0],_0x20866d[0x1],_0x20866d[0x2],{'forceDefaultExecution':!0x0});const _0x3e6bd1=_0x46153d(),{rowInsertionRanges:_0x107021,columnInsertionRanges:_0x11329c,insertionRanges:_0x4dd50c,deletionRanges:_0x23b720,cells:_0xee593b}=_0x2f06dd;_0x107021['length']&&_0x533fb9['markMultiRangeInsertion'](_0x107021,'tablePasteRow',{'tablePasteChainId':_0x3e6bd1}),_0x11329c['length']&&_0x533fb9['markMultiRangeInsertion'](_0x11329c,'tablePasteColumn',{'tablePasteChainId':_0x3e6bd1}),_0x4dd50c['length']&&(_0x533fb9['markMultiRangeInsertion'](_0x4dd50c,'tablePaste',{'tablePasteChainId':_0x3e6bd1,'skipNestingCheck':!0x0}),_0x4dd50c['forEach'](_0x1f7e5e=>_0x1f7e5e['detach']?.())),_0x23b720['length']&&(_0x533fb9['markMultiRangeDeletion'](_0x23b720,'tablePaste',{'tablePasteChainId':_0x3e6bd1,'skipNestingCheck':!0x0}),_0x23b720['forEach'](_0x5e7e63=>_0x5e7e63['detach']?.()));const _0xed0364=_0x533fb9['markMultiRangeBlockFormat'](_0xee593b['map'](({element:_0x2205dd})=>_0x2205dd),{'formatGroupId':_0x46153d()},[],'tablePasteCell',{'tablePasteChainId':_0x3e6bd1});if(_0xed0364){const _0x4b7b71=_0xed0364['getMarkers'](),_0x50c3e0=[];for(const {element:_0x315c75,attributes:_0xf978af}of _0xee593b){if(!_0xf978af)continue;const _0x3fed03=_0x4ea78c['model']['createRangeOn'](_0x315c75),_0x369dbb=_0x4b7b71['find'](_0x6f083c=>_0x6f083c['getRange']()['isEqual'](_0x3fed03));_0x369dbb&&_0x50c3e0['push']([_0x369dbb['name'],_0xf978af]);}_0x50c3e0['length']&&_0xed0364['setAttribute']('markerAttributes',Object['fromEntries'](_0x50c3e0));}_0x2f06dd=null;}));},{'priority':_0x1b06ae['high']+0xa}),_0x2357c4['on']('contentInsertion',()=>{_0x2e8b94=!0x1;},{'priority':'lowest'}),_0x4ea78c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x184e43,_0x5bddeb)=>{const [_0x445b5d,_0xbdced5,,_0x50b434]=_0x5bddeb;if(!_0x2f06dd)return;_0x184e43['stop']();const _0x3d10b8=_0x445b5d['cell'],_0x56e538=_0xbdced5,_0x42d0d8=Be(_0x3d10b8),_0x4c9b7a=Be(_0x56e538);_0x184e43['return']=_0x3d10b8;let _0x12b533=null,_0x2b538f=null;if(_0x4c9b7a||_0x42d0d8){if(_0x42d0d8&&!_0x4c9b7a){_0x50b434['remove'](_0x3d10b8['getChild'](0x0));for(const _0x3d928a of Array['from'](_0x56e538['getChildren']()))_0x50b434['insert'](_0x3d928a,_0x3d10b8,'end');const _0x7392f7=_0x2f06dd['rowInsertionIndexes']['includes'](_0x445b5d['row']),_0xb78da3=_0x2f06dd['columnInsertionIndexes']['includes'](_0x445b5d['column']);_0x7392f7||_0xb78da3||(_0x12b533=_0x596d93['fromRange'](_0x50b434['createRangeIn'](_0x3d10b8)));}else _0x4c9b7a&&!_0x42d0d8&&(_0x2b538f=_0x50b434['createRangeIn'](_0x3d10b8));}else{const _0x53dc82=_0x50b434['createElement']('tableCellSuggestion'),_0x41dcce=_0x50b434['createElement']('tableCellSuggestion');_0x50b434['wrap'](_0x50b434['createRangeIn'](_0x3d10b8),_0x41dcce),_0x50b434['insert'](_0x53dc82,_0x3d10b8,0x0);for(const _0x494931 of Array['from'](_0x56e538['getChildren']()))_0x50b434['insert'](_0x494931,_0x53dc82,'end');_0x12b533=_0x596d93['fromRange'](_0x50b434['createRangeOn'](_0x53dc82)),_0x2b538f=_0x596d93['fromRange'](_0x50b434['createRangeOn'](_0x41dcce));}const _0x1d7857=Array['from'](_0x56e538['getAttributes']())['filter'](([_0x377664])=>Re['includes'](_0x377664));_0x2f06dd['cells']['push']({'element':_0x3d10b8,'attributes':_0x1d7857['length']?Object['fromEntries'](_0x1d7857):null}),_0x12b533&&_0x2f06dd['insertionRanges']['push'](_0x12b533),_0x2b538f&&_0x2f06dd['deletionRanges']['push'](_0x2b538f);},{'priority':'high'}),_0x346b3b['on']('insertColumns',(_0x560300,_0x21ece6)=>{const [_0x4a1d08,_0x4c3076={}]=_0x21ece6;if(!_0x2f06dd)return;const _0x54e644=_0x4c3076['at']||0x0,_0x294fd2=_0x4c3076['columns']||0x1;_0x2f06dd['columnInsertionIndexes']=new Array(_0x294fd2)['fill'](_0x54e644)['map']((_0x372bca,_0x182875)=>_0x372bca+_0x182875);for(const {cell:_0x14930c}of _0x346b3b['createTableWalker'](_0x4a1d08,{'startColumn':_0x54e644,'endColumn':_0x54e644+_0x294fd2-0x1}))_0x2f06dd['columnInsertionRanges']['push'](_0x4ea78c['model']['createRangeOn'](_0x14930c));},{'priority':'low'}),_0x346b3b['on']('insertRows',(_0x557444,_0x350bfd)=>{const [_0x2cfd51,_0x1f7b1b={}]=_0x350bfd;if(!_0x2f06dd)return;const _0x1a35c2=_0x1f7b1b['at']||0x0,_0x408650=_0x1f7b1b['rows']||0x1;_0x2f06dd['rowInsertionIndexes']=new Array(_0x408650)['fill'](_0x1a35c2)['map']((_0x11d94a,_0x3c34f2)=>_0x11d94a+_0x3c34f2);for(const {cell:_0x3ab176}of _0x346b3b['createTableWalker'](_0x2cfd51,{'startRow':_0x1a35c2,'endRow':_0x1a35c2+_0x408650-0x1}))_0x2f06dd['rowInsertionRanges']['push'](_0x4ea78c['model']['createRangeOn'](_0x3ab176));},{'priority':'low'}),_0x533fb9['descriptionFactory']['registerDescriptionCallback'](_0x1df7e7=>{if(_0x1df7e7['subType']&&_0x1df7e7['subType']['startsWith']('tablePaste'))return _0x1df7e7['previous']?{}:{'type':'insertion','content':o(_0x4ea78c['locale'],'*Replace\x20table\x20cells*')};});const _0x272f5f=()=>!0x1;for(const _0x1fee05 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x533fb9['_suggestionFactory']['registerCustomCallback']('insertion',_0x1fee05,'join',_0x272f5f),_0x533fb9['_suggestionFactory']['registerCustomCallback']('deletion',_0x1fee05,'join',_0x272f5f),_0x533fb9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1fee05,'join',_0x272f5f);_0x533fb9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x272f5f),_0x533fb9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2fe9f5,_0x1e60a5,_0x302bf8)=>{const _0x1e754f=_0x2fe9f5['map'](_0x5210ff=>_0x5210ff['getContainedElement']())['filter'](_0x4d7842=>_0x4d7842),_0x5306d0=new Map(_0x1e754f['map'](_0x3f8661=>[_0x3f8661,null]));if(_0x2f06dd){for(const {element:_0x24df95,attributes:_0x4c9a5a}of _0x2f06dd['cells'])_0x4c9a5a&&_0x5306d0['set'](_0x24df95,_0x4c9a5a);}else{if(_0x302bf8&&_0x302bf8['markerAttributes'])for(const [_0x5434a3,_0x5aa0c0]of Object['entries'](_0x302bf8['markerAttributes'])){const _0x46b236=_0x4ea78c['model']['markers']['get'](_0x5434a3),_0x545348=_0x46b236?_0x46b236['getRange']()['getContainedElement']():null;_0x545348&&_0x5306d0['set'](_0x545348,_0x5aa0c0);}}_0x4ea78c['model']['change'](_0x5e0d5b=>{for(const [_0x361833,_0x44c4f1]of _0x5306d0)_0x5e0d5b['setAttributes']({...Ae,..._0x44c4f1},_0x361833);});});const _0x55d773=(_0x56c773,_0x16e7ab)=>{_0x533fb9['_suggestionFactory']['registerCustomCallback'](_0x56c773,'tablePaste',_0x16e7ab,(_0x4a59de,_0x14ea10,_0x10b22b)=>{_0x4ea78c['model']['change'](_0x2572a6=>{const _0x22ec6e=[];for(const _0x12e63d of _0x4a59de){const _0x55852b=_0x12e63d['start']['nodeAfter'];_0x55852b['is']('element','tableCellSuggestion')&&_0x22ec6e['push'](_0x55852b);}_0x533fb9['_suggestionFactory']['getSuggestionCallback'](_0x56c773,null,_0x16e7ab)(_0x4a59de,_0x14ea10,_0x10b22b);for(const _0x550bd4 of _0x22ec6e)'$graveyard'!=_0x550bd4['root']['rootName']&&_0x2572a6['unwrap'](_0x550bd4);});});};_0x55d773('insertion','accept'),_0x55d773('insertion','discard'),_0x55d773('deletion','accept'),_0x55d773('deletion','discard'),_0x533fb9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x366d1c=>{const _0x3295d8=_0x366d1c['map'](_0x58657f=>_0x58657f['getContainedElement']()),_0x42b8f8=_0x3295d8[0x0]['findAncestor']('table'),{minRow:_0x4075c5,maxRow:_0x31a16f}=_0x5f46bd['_getCoordsForCells'](_0x3295d8);_0x346b3b['removeRows'](_0x42b8f8,{'at':_0x4075c5,'rows':_0x31a16f-_0x4075c5+0x1});}),_0x533fb9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x16e21b=>{const _0x2dba1d=_0x16e21b['map'](_0x589303=>_0x589303['getContainedElement']()),_0x26beab=_0x2dba1d[0x0]['findAncestor']('table'),{minColumn:_0x55c3c3,maxColumn:_0x6e7ccf}=_0x5f46bd['_getCoordsForCells'](_0x2dba1d);_0x346b3b['removeColumns'](_0x26beab,{'at':_0x55c3c3,'columns':_0x6e7ccf-_0x55c3c3+0x1});});const _0x506f80=(_0x3cc1d0,_0x1a8c95)=>{if(!_0x1a8c95['subType']||!_0x1a8c95['subType']['startsWith']('tablePaste'))return;const _0x3bf4c1=_0x1a8c95['attributes']['tablePasteChainId'],_0x4a26f9=_0x533fb9['getSuggestions']()['filter'](_0x577460=>_0x577460['isInContent']&&_0x577460['attributes']&&_0x577460['attributes']['tablePasteChainId']==_0x3bf4c1);_0x4a26f9['length']&&_0x1a8c95['getAllAdjacentSuggestions']()['length']!=_0x4a26f9['length']&&_0x4a26f9['reduce']((_0x270bdb,_0x27d515)=>(_0x270bdb['next']=_0x27d515,_0x27d515['previous']=_0x270bdb,_0x27d515));};function _0x16dfd6(_0x49d5ab,_0x59223b=!0x0){const {id:_0x663f2,authorId:_0x196ebe}=_0x533fb9['_splitMarkerName'](_0x49d5ab['markerName']),_0x1ef642=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3b8bc4=_0x533fb9['activeMarkers']['includes'](_0x49d5ab['markerName']);return _0x3b8bc4&&_0x1ef642['push']('ck-suggestion-marker--active'),{'classes':_0x1ef642,'attributes':{'data-suggestion':_0x663f2,'data-author-id':_0x196ebe},'priority':_0x3b8bc4&&_0x59223b?0xbc2:0xbb8};}_0x533fb9['on']('suggestionLoaded',_0x506f80,{'priority':'high'}),_0x533fb9['on']('suggestionUnloaded',_0x506f80,{'priority':'high'}),_0x4ea78c['model']['document']['registerPostFixer'](()=>{let _0x34ef8a=!0x1;const _0x397f08=Array['from'](_0x4ea78c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x486601,data:_0x43e64d}of _0x397f08){const {group:_0x42bd75,type:_0x87a6b5,id:_0x1e5e84}=_0x533fb9['_splitMarkerName'](_0x486601);if('suggestion'!=_0x42bd75||'deletion'!=_0x87a6b5||_0x43e64d['oldRange'])continue;if(!_0x533fb9['hasSuggestion'](_0x1e5e84))continue;const _0x1a041b=_0x533fb9['getSuggestion'](_0x1e5e84)['getRanges'](),_0xa0688d=_0x4ea78c['plugins']['get']('Users')['me'];for(const _0x1cdab5 of _0x533fb9['getSuggestions']()){if(!_0x1cdab5['isInContent']||_0x1cdab5['author']!=_0xa0688d)continue;if('formatBlock'!=_0x1cdab5['type']||'tablePasteCell'!=_0x1cdab5['subType'])continue;if(_0x1cdab5['getRanges']()['every'](_0x5ebbe9=>_0x1a041b['some'](_0x1e2c6a=>_0x1e2c6a['containsRange'](_0x5ebbe9,!0x0)))){for(const _0x3187c2 of _0x1cdab5['getAllAdjacentSuggestions']())_0x3187c2['isInContent']&&(_0x3187c2['discard'](),_0x34ef8a=!0x0);}}}return _0x34ef8a;}),_0x4ea78c['model']['document']['registerPostFixer'](_0x25416a=>{const _0xae18c0=_0x4ea78c['commands']['get']('redo');if(!_0xae18c0||!_0xae18c0['_createdBatches']['has'](_0x25416a['batch']))return!0x1;let _0x40034a=!0x1;const _0x3fb48c=_0x4ea78c['plugins']['get']('Users')['me'],_0x2ac326=_0x4ea78c['model']['document']['differ']['getChanges'](),_0x10d02f=Array['from'](_0x4ea78c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3f7e29,data:_0x422c3c})=>{const {group:_0x479d21,subType:_0x3bc312,authorId:_0x2bd46f}=_0x533fb9['_splitMarkerName'](_0x3f7e29);return'suggestion'==_0x479d21&&'tablePaste'==_0x3bc312&&_0x2bd46f==_0x3fb48c['id']&&!_0x422c3c['oldRange'];});for(const _0x27cb68 of _0x2ac326){if('insert'!=_0x27cb68['type']||'tableCellSuggestion'!=_0x27cb68['name']||0x1!=_0x27cb68['length'])continue;const _0x5bf91e=_0x25416a['createRange'](_0x27cb68['position'],_0x27cb68['position']['getShiftedBy'](0x1));if(!_0x10d02f['find'](({data:_0x3a43d8})=>_0x3a43d8['newRange']['isEqual'](_0x5bf91e))){for(const {name:_0x3c0cfa,data:_0x1777a5}of _0x10d02f)if(_0x5bf91e['containsRange'](_0x1777a5['newRange'])){_0x25416a['updateMarker'](_0x3c0cfa,{'range':_0x5bf91e}),_0x40034a=!0x0;break;}}}return _0x40034a;}),_0x4ea78c['model']['document']['registerPostFixer'](_0x3eaffd=>{let _0x3d46a3=!0x1;const _0xa58095=_0x4ea78c['plugins']['get']('Users')['me'],_0x569bbd=_0x533fb9['getSuggestions']()['filter'](_0x1818da=>_0x1818da['isInContent']&&_0x1818da['author']==_0xa58095),_0x358d05=new Set(),_0x33a62e=new Set();for(const _0x1de65a of _0x569bbd)if('tablePaste'==_0x1de65a['subType'])for(const _0x522026 of _0x1de65a['getMarkers']()){const _0x28e920=_0x522026['getRange']()['getContainedElement']();if(_0x28e920){if(_0x28e920['is']('element','tableCellSuggestion')&&Be(_0x28e920)){_0x1de65a['removeMarker'](_0x522026['name']),_0x358d05['add'](_0x28e920),_0x3d46a3=!0x0;const _0x67fbbc=_0x28e920['nextSibling'],_0x2b2558=_0x28e920['previousSibling'],_0xa41a9a=_0x67fbbc&&_0x67fbbc['is']('element','tableCellSuggestion'),_0x46a57f=_0x2b2558&&_0x2b2558['is']('element','tableCellSuggestion');_0xa41a9a&&!_0x358d05['has'](_0x67fbbc)&&_0x33a62e['add'](_0x67fbbc),_0x46a57f&&!_0x358d05['has'](_0x2b2558)&&_0x33a62e['add'](_0x2b2558);}else _0x28e920['is']('element','paragraph')&&_0x28e920['isEmpty']&&(_0x1de65a['removeMarker'](_0x522026['name']),_0x3d46a3=!0x0);}}else{if('tablePasteCell'==_0x1de65a['subType']){if(!_0x1de65a['attributes']||!_0x1de65a['attributes']['tablePasteChainId'])continue;const _0x181473=_0x1de65a['attributes']['markerAttributes'];if(_0x181473&&Object['keys'](_0x181473)['length'])continue;const _0x16520c=_0x1de65a['attributes']['tablePasteChainId'];let _0x4b9500=!0x0,_0x4fac18=!0x0;for(const _0x55cc1d of _0x569bbd)if(_0x55cc1d['subType']&&_0x55cc1d['subType']['startsWith']('tablePaste')){if(!_0x55cc1d['attributes']['tablePasteChainId']){_0x4fac18=!0x1;break;}if(_0x55cc1d['id']!=_0x1de65a['id']&&_0x55cc1d['attributes']['tablePasteChainId']==_0x16520c){_0x4b9500=!0x1;break;}}_0x4fac18&&_0x4b9500&&(_0x1de65a['removeMarkers'](),_0x3d46a3=!0x0);}}for(const _0x1d9b24 of _0x358d05)_0x3eaffd['remove'](_0x1d9b24);for(const _0x5d97ed of _0x33a62e)_0x3eaffd['unwrap'](_0x5d97ed);return _0x3d46a3;}),_0x4ea78c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2cfdba=>_0x16dfd6(_0x2cfdba),'converterPriority':'high'}),_0x4ea78c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xd7e02b,_0x104fdb)=>_0x104fdb['options']['showSuggestionHighlights']?_0x16dfd6(_0xd7e02b,!0x1):null,'converterPriority':'high'});const _0x284ea3=_0x4ea78c['editing']['view'];this['listenTo'](_0x284ea3['document'],'clipboardOutput',(_0xc1781a,_0x148512)=>{const _0x51f62b=[];for(const _0x6f448 of _0x284ea3['createRangeIn'](_0x148512['content'])['getItems']())_0x6f448['is']('element','suggestion-td')&&_0x51f62b['push'](_0x6f448);_0x284ea3['change'](_0x2e3671=>{for(const _0x82580 of _0x51f62b)_0x2e3671['move'](_0x2e3671['createRangeIn'](_0x82580),_0x2e3671['createPositionBefore'](_0x82580)),_0x2e3671['remove'](_0x82580);});});}}function Be(_0x1cbb34){if(_0x1cbb34['isEmpty'])return!0x0;const _0x8731aa=_0x1cbb34['getChild'](0x0);return _0x8731aa['is']('element','paragraph')&&_0x8731aa['isEmpty'];}function Oe(_0x34b1e3,_0x316032={},_0x2f1b29){for(const {isAnchor:_0x2c3ba5,cellHeight:_0x4c575c,cellWidth:_0x4dfa6d}of _0x2f1b29['createTableWalker'](_0x34b1e3,{'includeAllSlots':!0x0,..._0x316032}))if(!_0x2c3ba5||0x1!=_0x4c575c||0x1!=_0x4dfa6d)return!0x1;return!0x0;}class Rt extends _0x447d1d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x14a77f=this['editor']['plugins']['get']('TrackChangesEditing');_0x14a77f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x14a77f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x14a77f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x14a77f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x14a77f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x14a77f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x58958d,_0x10912c){const _0x35f158=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d65b1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x136975=_0x10912c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x19984e=_0x1d65b1['getColumnGroupElement'](_0x136975);let _0x1ddd54=_0x19984e?_0x1d65b1['getTableColumnsWidths'](_0x19984e):null,_0x3c75ff=_0x136975['getAttribute']('tableWidth')||null;const _0x2e810d=_0x10912c['tableWidth']||_0x3c75ff,_0x318625=_0x10912c['columnWidths']||_0x1ddd54,_0x4c5076=this['editor']['plugins']['get']('Users')['me'];for(const _0x3e9eeb of _0x35f158['getSuggestions']()){const _0x112e7a=_0x3e9eeb['getContainedElement']();if('resizeTable'===_0x3e9eeb['subType']&&_0x112e7a===_0x136975){_0x3e9eeb['author']!==_0x4c5076&&_0x3e9eeb['discard']();const _0x2570a6=_0x3e9eeb['data']['commandParams'];_0x3c75ff=_0x2570a6[0x0]['tableWidth'],_0x1ddd54=_0x2570a6[0x0]['columnWidths'];break;}}_0x58958d({'table':_0x136975,'tableWidth':_0x2e810d,'columnWidths':_0x318625}),_0x35f158['markBlockFormat'](_0x136975,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3c75ff,'columnWidths':_0x1ddd54}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x57eccc){if('formatBlock'!=_0x57eccc['type']&&'formatInline'!=_0x57eccc['type'])return;const {data:_0x2d1ac6}=_0x57eccc;if(_0x2d1ac6&&'resizeTable'===_0x2d1ac6['formatGroupId']){const _0x2df0d8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2df0d8)};}}}class Tt extends _0x447d1d{['afterInit'](){const _0x2a1415=this['editor'];_0x2a1415['plugins']['has']('Template')&&_0x2a1415['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x447d1d{['afterInit'](){const _0x2cc704=this['editor'];if(!_0x2cc704['commands']['get']('insertTableOfContents'))return;_0x2cc704['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7cdbf7=_0x2cc704['plugins']['get']('TrackChangesEditing'),_0x5b5370=_0x2cc704['locale'];_0x7cdbf7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5284c2=>o(_0x5b5370,'ELEMENT_TABLE_OF_CONTENTS',_0x5284c2));}}class Ut extends _0x447d1d{['afterInit'](){const _0x34df6a=this['editor'];if(!_0x34df6a['plugins']['has']('Title'))return;const _0x98504=_0x34df6a['plugins']['get']('TrackChangesEditing');_0x98504['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x34df6a['locale'],'ELEMENT_TITLE')),_0x34df6a['model']['document']['registerPostFixer'](_0x324d78=>{let _0x1b5461=!0x1;const _0x298214=Array['from'](_0x34df6a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42bb85,data:_0x1738ff}of _0x298214){const {group:_0x42852c}=_0x98504['_splitMarkerName'](_0x42bb85);if('suggestion'!==_0x42852c||!_0x1738ff['newRange'])continue;const _0x45f0b5=_0x1738ff['newRange'],_0xf9ec66=_0x45f0b5['end']['nodeBefore'];if(!_0xf9ec66||!_0xf9ec66['is']('element','title-content'))continue;if(!_0x45f0b5['start']['isTouching'](_0x45f0b5['end']))continue;const _0x86bee2=_0x34df6a['model']['schema']['getNearestSelectionRange'](_0x45f0b5['end'],'forward');if(_0x86bee2&&_0x86bee2['isCollapsed']){const _0x1a9b9a=_0x324d78['createRange'](_0x45f0b5['start'],_0x86bee2['start']);_0x1a9b9a['isEqual'](_0x45f0b5)||(_0x324d78['updateMarker'](_0x42bb85,{'range':_0x1a9b9a}),_0x1b5461=!0x0);}_0x1b5461||(_0x324d78['removeMarker'](_0x42bb85),_0x1b5461=!0x0);}return _0x1b5461;});}}class Vt extends _0x447d1d{['afterInit'](){const _0x26a961=this['editor'],_0x35e20a=_0x26a961['plugins']['get']('TrackChangesEditing');_0x26a961['plugins']['has']('Uploadcare')&&(_0x35e20a['enableCommand']('uploadcare'),_0x26a961['plugins']['has']('UploadcareImageEdit')&&(_0x35e20a['enableCommand']('uploadcareImageEdit'),_0x35e20a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x35e20a['descriptionFactory']['registerDescriptionCallback'](_0x1a5f13=>{if('attribute'!=_0x1a5f13['type'])return;const {data:_0x3d8a83}=_0x1a5f13;return _0x3d8a83&&'uploadcareImageId'==_0x3d8a83['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x447d1d{['afterInit'](){const _0x50d149=this['editor'],_0x43d29d=_0x50d149['plugins']['get']('TrackChangesEditing');_0x50d149['plugins']['has']('UndoEditing')&&(_0x43d29d['enableCommand']('undo'),_0x43d29d['enableCommand']('redo'));}}class Pt extends _0x447d1d{static get['requires'](){return[Dt];}['afterInit'](){const _0x25ed95=this['editor'];if(!_0x25ed95['plugins']['has']('TableCaptionEditing'))return;_0x25ed95['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x447d1d{['tableProperties'];['tableCellProperties'];constructor(_0x9e7d04){super(_0x9e7d04),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x9e7d04['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 _0x144470=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5f403e of this['tableProperties'])_0x144470['enableCommand'](_0x5f403e,(_0x364c42,_0x466d49)=>{const _0x55ffa2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5f403e,[_0x55ffa2],this['tableProperties'],'tableProperties',_0x364c42,_0x466d49);});_0x144470['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x144470['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x144470['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x44a11c,_0x169cae)=>this['handleDiscardAction'](this['tableProperties'],_0x44a11c,_0x169cae)),_0x144470['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x20accb of this['tableCellProperties'])this['editor']['commands']['get'](_0x20accb)&&_0x144470['enableCommand'](_0x20accb,(_0xe083fb,_0x560cb7)=>{const _0x46af25=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x20accb,_0x46af25,this['tableCellProperties'],'tableCellProperties',_0xe083fb,_0x560cb7);});_0x144470['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x144470['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x144470['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4a8744,_0x5d9133)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4a8744,_0x5d9133)),_0x144470['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x144470['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x144470['descriptionFactory']['registerDescriptionCallback'](_0x50c818=>this['handleSuggestionDescription'](_0x50c818)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1887d0,_0x90afd6,_0x18090e,_0x4cebe4,_0x36a5a8,_0x5d8a82){const _0x2788b5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5d8a82['batch'],()=>{for(const _0x2dca2a of _0x90afd6){if(this['_getSuggestion'](_0x2dca2a,_0x4cebe4))_0x36a5a8(_0x5d8a82);else{const _0x4a394e={};for(const _0x30375c of _0x18090e){const _0x4f6d21=_0x2dca2a['getAttribute'](_0x30375c);void 0x0!==_0x4f6d21&&(_0x4a394e[_0x30375c]=_0x4f6d21);}_0x36a5a8(_0x5d8a82),_0x2788b5['markBlockFormat'](_0x2dca2a,{'commandParams':[_0x4a394e]},[],_0x4cebe4);}}});}['handleDiscardAction'](_0x543463,_0x169344,_0x336723){const _0x346afa=_0x169344[0x0]['start']['nodeAfter'],_0x1eb15f=_0x336723['commandParams'][0x0];this['editor']['model']['change'](_0xa36660=>{for(const _0x5c9993 of _0x543463)void 0x0!==_0x1eb15f[_0x5c9993]?_0xa36660['setAttribute'](_0x5c9993,_0x1eb15f[_0x5c9993],_0x346afa):_0xa36660['removeAttribute'](_0x5c9993,_0x346afa);});}['handleSuggestionDescription'](_0x298905){if(_0x298905['data'])switch(_0x298905['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'](_0x432eb2,_0x26247b){const _0x41120a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3c0c78 of _0x41120a['getSuggestions']({'skipNotAttached':!0x0})){const _0x3c5c00=_0x3c0c78['getContainedElement']();if(_0x3c0c78['subType']===_0x26247b&&_0x3c5c00===_0x432eb2)return _0x3c0c78;}return null;}['_registerTablePropertiesAttributes'](){const _0x27dab9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x401451=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2c9b4f of _0x401451){const _0x42890d=_0x2c9b4f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x27dab9['descriptionFactory']['registerAttributeLabel'](_0x2c9b4f,o(this['editor']['locale'],'FORMAT_'+_0x42890d));}}}class Lt extends _0x447d1d{['afterInit'](){const _0x4e6caa=this['editor'];if(!_0x4e6caa['plugins']['has']('LineHeight'))return;const _0x18942c=_0x4e6caa['plugins']['get']('TrackChangesEditing'),_0xf0dadb=_0x4e6caa['locale'];_0x18942c['enableDefaultAttributesIntegration']('lineHeight'),_0x18942c['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xf0dadb,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x447d1d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x4debab,_0x3eb489,_0x2348da,_0x9068a6,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(_0x57f03f){super(_0x57f03f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x46048b,_0x34fbf8,_0x3e56f2,_0x18aa45)=>{this['_model']['change'](()=>{for(const _0xb5e21b of[..._0x18aa45,..._0x3e56f2])this['_model']['markers']['has'](_0xb5e21b)&&_0x57f03f['editing']['reconvertMarker'](_0xb5e21b);});}),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']=_0x57f03f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x57f03f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x57f03f['config']['get']('trackChanges.trackFormatChanges'),_0x57f03f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x57f03f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x57f03f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x494a4a=this['editor'];_0x494a4a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x50a07e,{writer:_0x4c4049})=>{let _0x3185a3='suggestion:'+_0x50a07e['getAttribute']('suggestion-type')+':'+_0x50a07e['getAttribute']('id');return _0x50a07e['getAttribute']('marker-count')&&(_0x3185a3+=':'+_0x50a07e['getAttribute']('marker-count')),_0x4c4049['createElement']('$marker',{'data-name':_0x3185a3});}}),_0x494a4a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x494a4a['model']['document']['registerPostFixer'](_0x675698=>{let _0x3d145f=!0x1;const _0x53f991=Array['from'](_0x494a4a['model']['document']['differ']['getChangedMarkers']()),_0x1a9b96=new Set();for(const {name:_0x5b201b,data:_0x4beb8a}of _0x53f991){const {group:_0x32bb44,type:_0x5031d5,subType:_0x417787,id:_0x534034}=this['_splitMarkerName'](_0x5b201b);if('suggestion'!==_0x32bb44)continue;const _0x25b77b=_0x417787?'suggestion:'+_0x5031d5+':'+_0x417787+':'+_0x534034:'suggestion:'+_0x5031d5+':'+_0x534034,_0xd677e7=_0x494a4a['model']['markers']['getMarkersGroup'](_0x25b77b),_0x168a63=_0x494a4a['model']['markers']['get'](_0x5b201b),_0x7da01c=this['_suggestions']['get'](_0x534034);if(null!=_0x4beb8a['newRange']){'formatInline'==_0x5031d5&&(_0x3d145f=_0x3d145f||Wt(_0x4beb8a['newRange'],_0x5b201b,_0x675698,_0x494a4a['model']['schema']));const _0x4a9183='attribute'==_0x5031d5&&this['_isBlockAttribute'](_0x417787['split']('|')[0x0]),_0x5d3d90='attribute'==_0x5031d5&&this['_isInlineAttribute'](_0x417787['split']('|')[0x0]);if(_0x4beb8a['newRange']['isCollapsed']||'$graveyard'==_0x4beb8a['newRange']['root']['rootName']||'formatBlock'==_0x5031d5&&!Qt(_0x4beb8a['newRange'])||_0x4a9183&&!Qt(_0x4beb8a['newRange'])||_0x5d3d90&&Xt(_0x4beb8a['newRange'])||'deletion'==_0x5031d5&&Xt(_0x4beb8a['newRange'])||_0x168a63&&Yt(_0x168a63,_0xd677e7))_0x675698['removeMarker'](_0x5b201b),_0x3d145f=!0x0;else{if(!_0x7da01c||!_0x7da01c['isInContent'])continue;if(_0x4beb8a['newRange']&&_0x4beb8a['oldRange']&&_0x4beb8a['newRange']['isEqual'](_0x4beb8a['oldRange']))continue;_0x1a9b96['add'](_0x7da01c);}}}return _0x1a9b96['size']>0x0&&(_0x3d145f=!!this['_joinWithAdjacentSuggestions'](_0x1a9b96)||_0x3d145f),_0x3d145f;}),_0x494a4a['model']['document']['registerPostFixer'](_0x3db7ad=>{let _0x2d75fb=!0x1;for(const _0x3ea441 of _0x494a4a['model']['document']['differ']['getChanges']())if('insert'==_0x3ea441['type'])for(const _0x5b2bd5 of this['_suggestions']['values']()){if(_0x5b2bd5['isMultiRange']||!_0x5b2bd5['isInContent'])continue;const _0x342c51='formatBlock'==_0x5b2bd5['type'],_0x1545d3=this['_getAttributeKey'](_0x5b2bd5),_0x2ee904=_0x1545d3&&this['_isBlockAttribute'](_0x1545d3);if(!_0x342c51&&!_0x2ee904)continue;const _0x14378d=_0x5b2bd5['getFirstRange']();if(_0x14378d['start']['parent']!=_0x14378d['end']['parent']&&!_0x14378d['end']['isAtEnd']){const _0x268b4c=_0x494a4a['model']['createPositionAt'](_0x14378d['start']['nodeAfter'],'end'),_0x32b5a1=_0x494a4a['model']['createRange'](_0x14378d['start'],_0x268b4c);_0x3db7ad['updateMarker'](_0x5b2bd5['getFirstMarker'](),{'range':_0x32b5a1}),_0x2d75fb=!0x0;}}return _0x2d75fb;}),_0x494a4a['model']['document']['registerPostFixer'](_0x5ca7d0=>this['_processAttributeChanges'](_0x5ca7d0)),_0x494a4a['model']['document']['registerPostFixer'](_0x1a3909=>!_0x1a3909['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1a3909)),_0x494a4a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x494a4a['model']['document']['on']('change:data',(_0x39658b,_0x2c6558)=>{if(!_0x2c6558['isLocal']||_0x2c6558['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x468401=_0x494a4a['model']['document']['differ']['getChanges']();if(0x0==_0x468401['length'])return;const _0x599da1=[],_0x54286e=_0x468401['filter'](_0x73eb9e=>'attribute'==_0x73eb9e['type']),_0x46587e=_0x468401['filter'](_0x51442b=>'insert'==_0x51442b['type']&&'$text'!=_0x51442b['name']);for(const _0x2be4b5 of _0x54286e)this['_isRegisteredAttribute'](_0x2be4b5['attributeKey'])&&_0x599da1['push']({'key':_0x2be4b5['attributeKey'],'newValue':_0x2be4b5['attributeNewValue'],'oldValue':_0x2be4b5['attributeOldValue'],'range':Zt(_0x2be4b5['range'],_0x494a4a['model'])});for(const _0x1e6178 of _0x46587e){if('rename'!=_0x1e6178['action']&&'refresh'!=_0x1e6178['action'])continue;const _0x26014d=tn(_0x1e6178['position']['nodeAfter'],_0x494a4a['model']),_0x54e181=_0x1e6178['before'];'rename'==_0x1e6178['action']&&_0x599da1['push']({'key':m,'newValue':_0x1e6178['name'],'oldValue':_0x54e181['name'],'range':_0x26014d});for(const [_0x3b636c,_0x44c0e9]of _0x54e181['attributes']){if(!this['_isRegisteredAttribute'](_0x3b636c))continue;const _0x48e7f1=_0x1e6178['attributes']['get'](_0x3b636c);_0x44c0e9!==_0x48e7f1&&_0x599da1['push']({'key':_0x3b636c,'newValue':_0x48e7f1,'oldValue':_0x44c0e9,'range':_0x26014d});}for(const [_0x15ac4e,_0x2aeaac]of _0x1e6178['attributes'])this['_isRegisteredAttribute'](_0x15ac4e)&&(_0x54e181['attributes']['has'](_0x15ac4e)||_0x599da1['push']({'key':_0x15ac4e,'newValue':_0x2aeaac,'oldValue':null,'range':_0x26014d}));}0x0!=_0x599da1['length']&&_0x494a4a['model']['enqueueChange'](_0x2c6558,_0x34e9a1=>{const _0x56fd7e=_0x46153d();for(const {range:_0x1eafd0,key:_0x56fc2e,oldValue:_0x347642,newValue:_0x1e8638}of _0x599da1)this['markAttributeChange'](_0x1eafd0,_0x56fc2e,_0x347642,_0x1e8638,{'groupId':_0x56fd7e});this['_reduceExistingSuggestions'](_0x34e9a1,_0x599da1);});},{'priority':'lowest'}),_0x494a4a['model']['markers']['on']('update:suggestion',(_0x9a8bbf,_0x1eea3e,_0x40d33d)=>{if(null==_0x40d33d){const {id:_0xc38f1}=this['_splitMarkerName'](_0x1eea3e['name']),_0x5146c5=this['_suggestions']['get'](_0xc38f1);_0x5146c5&&_0x5146c5['addMarkerName'](_0x1eea3e['name']);}}),_0x494a4a['model']['document']['on']('change:data',()=>{const _0x35e35e=Array['from'](_0x494a4a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x240287=>'suggestion'===this['_splitMarkerName'](_0x240287['name'])['group']);if(0x0===_0x35e35e['length'])return;_0x35e35e['sort']((_0x11d440,_0x366cb1)=>{const _0x1e799c=_0x11d440['data']['oldRange'],_0x336a4e=_0x366cb1['data']['oldRange'];return null===_0x1e799c&&null===_0x336a4e?0x0:null===_0x1e799c&&null!==_0x336a4e?-0x1:null!==_0x1e799c&&null===_0x336a4e?0x1:_0x1e799c['start']['isBefore'](_0x336a4e['start'])?-0x1:0x1;});const _0x30c290=new Set(),_0x58b460=new Set();for(const {name:_0x152810,data:_0x35fb3d}of _0x35e35e){const {id:_0x10e320}=this['_splitMarkerName'](_0x152810);if(null===_0x35fb3d['oldRange']){const _0x3c29ad=this['_handleNewSuggestionMarker'](_0x152810);_0x58b460['add'](_0x3c29ad);}else{const _0x209661=this['_suggestions']['get'](_0x10e320);null!==_0x35fb3d['newRange']||_0x209661['isInContent']?(_0x30c290['add'](_0x209661['head']),_0x58b460['add'](_0x209661)):this['_removeSuggestion'](_0x209661);}}_0x58b460['size']>0x0&&this['_refreshSuggestionsChain'](_0x58b460);for(const _0x4383e0 of _0x30c290)this['fire']('suggestionChanged',_0x4383e0);}),_0x494a4a['model']['on']('applyOperation',(_0x14a985,_0x2a2753)=>{const _0x1b70af=_0x2a2753[0x0];if(!this['_suggestions']['size'])return;if(!_0x1b70af['isDocumentOperation'])return;if(_0x1b70af['batch']['isUndo']||!_0x1b70af['batch']['isLocal'])return;let _0x416ad3,_0x3e036c;switch(_0x1b70af['type']){case'insert':_0x416ad3=_0x494a4a['model']['createPositionAt'](_0x1b70af['position']),_0x3e036c=_0x416ad3['getShiftedBy'](_0x1b70af['howMany']);break;case'split':_0x416ad3=_0x494a4a['model']['createPositionAt'](_0x1b70af['splitPosition']),_0x3e036c=_0x494a4a['model']['createPositionAt'](_0x1b70af['moveTargetPosition']);break;case'move':_0x416ad3=_0x494a4a['model']['createPositionAt'](_0x1b70af['targetPosition']),_0x3e036c=_0x416ad3['getShiftedBy'](_0x1b70af['howMany']);break;default:return;}const _0x11ffc0=_0x494a4a['model']['createRange'](_0x416ad3,_0x3e036c);_0x494a4a['model']['change'](()=>{for(const {suggestion:_0x12bc33,meta:_0x1eab35}of this['_findSuggestions'](_0x11ffc0)){if(_0x12bc33['isMultiRange'])continue;if('formatInline'==_0x12bc33['type'])continue;const _0x2d61cc=this['_getAttributeKey'](_0x12bc33);if(_0x2d61cc&&this['_isBlockAttribute'](_0x2d61cc)&&'split'!=_0x1b70af['type'])continue;const _0x5165da=_0x12bc33['data']&&_0x12bc33['data']['multipleBlocks'];('formatBlock'!=_0x12bc33['type']||'split'==_0x1b70af['type']&&!_0x5165da)&&(_0x1eab35['containsRangeInObject']||'insertion'==_0x12bc33['type']&&_0x1eab35['isOwn']||_0x12bc33['getFirstRange']()['containsRange'](_0x11ffc0)&&this['_breakSuggestionMarker'](_0x12bc33,_0x416ad3,_0x3e036c));}});},{'priority':'lowest'}),_0x494a4a['model']['on']('deleteContent',(_0x11a2a9,_0x368541)=>{const _0x1a24ea=_0x368541[0x0],_0x4e15f7=_0x368541[0x1];if(_0x4e15f7&&_0x4e15f7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1a24ea['isCollapsed'])return;const _0x78d802=_0x494a4a['model']['schema'],{start:_0x48ba7c,end:_0x1531be}=_0x1a24ea['getFirstRange'](),_0x552f11=_0x48ba7c['nodeAfter']&&_0x78d802['isLimit'](_0x48ba7c['nodeAfter'])?null:_0x78d802['getNearestSelectionRange'](_0x48ba7c,'forward'),_0x360345=_0x1531be['nodeBefore']&&_0x78d802['isLimit'](_0x1531be['nodeBefore'])?null:_0x78d802['getNearestSelectionRange'](_0x1531be,'backward'),_0x286b46=_0x494a4a['model']['createRange'](_0x552f11?_0x552f11['start']:_0x48ba7c,_0x360345?_0x360345['end']:_0x1531be);_0x494a4a['model']['change'](_0x3817c9=>{this['markDeletion'](_0x286b46);const _0x41eca7=_0x494a4a['model']['schema']['getNearestSelectionRange'](_0x286b46['start']);_0x1a24ea['is']('documentSelection')?_0x3817c9['setSelection'](_0x41eca7):_0x1a24ea['setTo'](_0x41eca7);}),_0x11a2a9['stop']();},{'priority':_0x1b06ae['normal']+0xa}),_0x494a4a['model']['on']('insertContent',(_0x130574,_0x3cd528)=>{const _0x46806a=_0x3cd528[_0x3cd528['length']-0x1];_0x46806a&&_0x46806a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x494a4a['model']['change'](()=>{let _0x2fd7e6=_0x494a4a['model']['insertContent'](_0x3cd528[0x0],_0x3cd528[0x1],_0x3cd528[0x2],{'forceDefaultExecution':!0x0});if(!_0x2fd7e6)return;_0x130574['return']=_0x2fd7e6['clone']();const _0x2554fc=_0x2fd7e6['end']['nodeBefore'],_0x275e65=_0x494a4a['model']['schema'];_0x2554fc&&_0x275e65['isBlock'](_0x2554fc)&&!_0x275e65['isObject'](_0x2554fc)&&(_0x2fd7e6=_0x494a4a['model']['createRange'](_0x2fd7e6['start'],_0x494a4a['model']['createPositionAt'](_0x2554fc,'end'))),this['markInsertion'](_0x2fd7e6);}),_0x130574['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3c282b=new O(_0x494a4a,this['_suggestions']);_0x494a4a['commands']['add']('acceptSuggestion',_0x3c282b),this['enableCommand']('acceptSuggestion');const _0x3ba4cc=new x(_0x494a4a,this['_suggestions']);_0x494a4a['commands']['add']('discardSuggestion',_0x3ba4cc),this['enableCommand']('discardSuggestion'),_0x494a4a['commands']['add']('acceptAllSuggestions',new M(_0x494a4a,_0x3c282b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x494a4a['commands']['add']('discardAllSuggestions',new M(_0x494a4a,_0x3ba4cc,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x494a4a['commands']['add']('acceptSelectedSuggestions',new R(_0x494a4a,_0x3c282b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x494a4a['commands']['add']('discardSelectedSuggestions',new R(_0x494a4a,_0x3ba4cc,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1ecdc7=_0x494a4a['plugins']['get']('CommentsRepository');this['listenTo'](_0x1ecdc7,'addComment',(_0x559021,{threadId:_0x267a9c})=>{const _0x2be64f=this['_suggestions']['get'](_0x267a9c);_0x2be64f&&_0x2be64f['commentThread']&&0x1===_0x2be64f['commentThread']['length']&&this['_updateSuggestionData'](_0x267a9c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1ecdc7,'removeComment',(_0x5c231f,{threadId:_0x53016e})=>{const _0x4861b9=this['_suggestions']['get'](_0x53016e);_0x4861b9&&_0x4861b9['commentThread']&&!_0x4861b9['commentThread']['length']&&this['_updateSuggestionData'](_0x53016e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x354e96){const _0x5a149f=_0x164005([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]),_0x31dfcc=0x3d8d0df,_0x5b55c7=0x3df5677^_0x31dfcc,_0xa5a627=window[_0x164005([0x44,0x61,0x74,0x65])][_0x164005([0x6e,0x6f,0x77])](),_0x2ba422=_0x354e96[_0x164005([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f5a66=new window[(_0x164005([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x330047=>{_0x2ba422[_0x164005([0x6f,0x6e,0x63,0x65])](_0x164005([0x72,0x65,0x61,0x64,0x79]),_0x330047);}),_0x5c70ba={[_0x164005([0x6b,0x74,0x79])]:_0x164005([0x45,0x43]),[_0x164005([0x75,0x73,0x65])]:_0x164005([0x73,0x69,0x67]),[_0x164005([0x63,0x72,0x76])]:_0x164005([0x50,0x2d,0x32,0x35,0x36]),[_0x164005([0x78])]:_0x164005([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]),[_0x164005([0x79])]:_0x164005([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]),[_0x164005([0x61,0x6c,0x67])]:_0x164005([0x45,0x53,0x32,0x35,0x36])},_0x3d1f3c=_0x2ba422[_0x164005([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x164005([0x67,0x65,0x74])](_0x164005([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x289477(){let _0x70804d,_0x1aadf6=null,_0x25cfac=null;try{if(_0x3d1f3c==_0x164005([0x47,0x50,0x4c]))return _0x164005([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x70804d=_0x3fbfd7(),!_0x70804d)return _0x164005([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x70804d[_0x164005([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25cfac=_0x507611(_0x70804d[_0x164005([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x70804d[_0x164005([0x6a,0x74,0x69])])),await _0x354995()?_0x28a469()?_0x3e32f8()?_0x164005([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x30a5d7()?(_0x70804d[_0x164005([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x164005([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1aadf6=_0x70223d(_0x164005([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a0d36()):_0x164005([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x164005([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x164005([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x164005([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3e32f8(){const _0x170d8d=[_0x164005([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x164005([0x74,0x72,0x69,0x61,0x6c])][_0x164005([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x70804d[_0x164005([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa5a627/0x3e8:0xe10*_0x5b55c7;return _0x70804d[_0x164005([0x65,0x78,0x70])]<_0x170d8d;}function _0x28a469(){const _0x5bc3fc=_0x70804d[_0x164005([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5bc3fc)return!0x1;if(_0x5bc3fc[_0x164005([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164005([0x2a])))return!0x0;if(_0x5bc3fc[_0x164005([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164005([0x54,0x43])))return!0x0;if(_0x5bc3fc[_0x164005([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164005([0x52,0x54,0x43]))){if(_0x9c006a())return!0x0;if(_0x104d08()||_0x9e447f())return!0x0;}return!0x1;}function _0x30a5d7(){const _0x306425=_0x70804d[_0x164005([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x306425||0x0==_0x306425[_0x164005([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3de5b7}=new URL(window[_0x164005([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x306425[_0x164005([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3de5b7))return!0x0;const _0x4fa5d8=_0x3de5b7[_0x164005([0x73,0x70,0x6c,0x69,0x74])](_0x164005([0x2e]));return _0x306425[_0x164005([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d2e62=>_0x5d2e62[_0x164005([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x164005([0x2a])))[_0x164005([0x6d,0x61,0x70])](_0x1d33e7=>_0x1d33e7[_0x164005([0x73,0x70,0x6c,0x69,0x74])](_0x164005([0x2e])))[_0x164005([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x42cdce=>_0x42cdce[_0x164005([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4fa5d8[_0x164005([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x164005([0x6d,0x61,0x70])](_0x2be5b8=>Array(_0x4fa5d8[_0x164005([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2be5b8[_0x164005([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x164005([0x66,0x69,0x6c,0x6c])](_0x2be5b8[0x0]===_0x164005([0x2a])?_0x164005([0x2a]):'')[_0x164005([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2be5b8))[_0x164005([0x73,0x6f,0x6d,0x65])](_0xfe41fc=>_0x4fa5d8[_0x164005([0x65,0x76,0x65,0x72,0x79])]((_0x47dc05,_0x355ac8)=>_0xfe41fc[_0x355ac8]===_0x47dc05||_0xfe41fc[_0x355ac8]===_0x164005([0x2a])));}function _0x3a0d36(){return _0x1aadf6&&_0x25cfac?new window[(_0x164005([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16450f,_0x31d056)=>{_0x1aadf6[_0x164005([0x74,0x68,0x65,0x6e])](_0x16450f,_0x31d056),_0x25cfac[_0x164005([0x74,0x68,0x65,0x6e])](_0x436d93=>{_0x436d93!=_0x164005([0x56,0x61,0x6c,0x69,0x64])&&_0x16450f(_0x436d93);},_0x31d056);}):_0x1aadf6||_0x25cfac||_0x164005([0x56,0x61,0x6c,0x69,0x64]);}}function _0x507611(_0x4c4d6b,_0x4c2702){return new window[(_0x164005([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b6609=>{if(_0x36abfd())return _0x5b6609(_0x164005([0x56,0x61,0x6c,0x69,0x64]));_0x14d788(),_0x2ba422[_0x164005([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x164005([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x552785=!0x1;const _0xddaeba=_0x46153d();function _0x5344a0(_0x88f271){return!!_0x88f271&&(typeof _0x88f271===_0x164005([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x88f271===_0x164005([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x88f271[_0x164005([0x74,0x68,0x65,0x6e])]===_0x164005([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x88f271[_0x164005([0x63,0x61,0x74,0x63,0x68])]===_0x164005([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3aa10d(_0x403586){_0x58ac7d(_0x403586)[_0x164005([0x74,0x68,0x65,0x6e])](_0x3f5530=>{if(!_0x3f5530||_0x3f5530[_0x164005([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x164005([0x6f,0x6b]))return _0x164005([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x34b3c4(_0x3d2c76(_0xddaeba+_0x4c2702))!=_0x3f5530[_0x164005([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x164005([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x164005([0x56,0x61,0x6c,0x69,0x64]);})[_0x164005([0x74,0x68,0x65,0x6e])](_0x412a82=>(_0x425a9f(),_0x412a82),()=>{const _0x3c406a=_0x23db02();return null==_0x3c406a?(_0x425a9f(),_0x164005([0x56,0x61,0x6c,0x69,0x64])):_0x164005(_0xa5a627-_0x3c406a>(0x27d454df^_0x31dfcc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x164005([0x74,0x68,0x65,0x6e])](_0x5b6609)[_0x164005([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b6609(_0x164005([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ecddb=0x3ee3e5f^_0x31dfcc;function _0x425a9f(){const _0x38c48a=_0x164005([0x6c,0x6c,0x63,0x74,0x2d])+_0x34b3c4(_0x3d2c76(_0x4c4d6b)),_0x51d213=_0x4cf6d1(_0x34b3c4(window[_0x164005([0x4d,0x61,0x74,0x68])][_0x164005([0x63,0x65,0x69,0x6c])](_0xa5a627/_0x5ecddb)));window[_0x164005([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x164005([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38c48a,_0x51d213);}function _0x23db02(){const _0x5daafb=_0x164005([0x6c,0x6c,0x63,0x74,0x2d])+_0x34b3c4(_0x3d2c76(_0x4c4d6b)),_0x5cb6a3=window[_0x164005([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x164005([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5daafb);return _0x5cb6a3?window[_0x164005([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cf6d1(_0x5cb6a3),0x10)*_0x5ecddb:null;}function _0x58ac7d(_0x2cee51){return new window[(_0x164005([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57c638,_0x2dbf88)=>{_0x2cee51[_0x164005([0x74,0x68,0x65,0x6e])](_0x57c638,_0x2dbf88),window[_0x164005([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2dbf88,0x3d9041f^_0x31dfcc);});}}_0x2ba422[_0x164005([0x6f,0x6e])](_0x164005([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd5c5f1,_0x247936)=>{if(_0x247936[0x0]!=_0x4c4d6b)return _0x5b6609(_0x164005([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x247936[0x1]={..._0x247936[0x1],[_0x164005([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xddaeba};},{[_0x164005([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x164005([0x68,0x69,0x67,0x68])}),_0x2ba422[_0x164005([0x6f,0x6e])](_0x164005([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4fccc7=>{_0x5344a0(_0x4fccc7[_0x164005([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x552785=!0x0,_0x3aa10d(_0x4fccc7[_0x164005([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x164005([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x164005([0x6c,0x6f,0x77])}),_0x1f5a66[_0x164005([0x74,0x68,0x65,0x6e])](()=>{_0x552785||_0x5b6609(_0x164005([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36abfd(){return _0x2ba422[_0x164005([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x164005([0x76,0x69,0x65,0x77])][_0x164005([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x164005([0x61,0x75,0x74,0x6f]);}function _0x14d788(){_0x2ba422[_0x164005([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x164005([0x76,0x69,0x65,0x77])][_0x164005([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x164005([0x61,0x75,0x74,0x6f]);}}function _0x70223d(_0x44651e){const _0x11b6d3=[new window[(_0x164005([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24dce9=>setTimeout(_0x24dce9,0x3d1ee13^_0x31dfcc)),_0x1f5a66[_0x164005([0x74,0x68,0x65,0x6e])](()=>new window[(_0x164005([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x502023=>{let _0x1e185d=0x0;_0x2ba422[_0x164005([0x6d,0x6f,0x64,0x65,0x6c])][_0x164005([0x6f,0x6e])](_0x164005([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3827ce,_0x385f16)=>{_0x385f16[0x0][_0x164005([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1e185d++,_0x1e185d==(0x3d8d537^_0x31dfcc)&&(_0x502023(),_0x3827ce[_0x164005([0x6f,0x66,0x66])]());});}))];return window[_0x164005([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x164005([0x72,0x61,0x63,0x65])](_0x11b6d3)[_0x164005([0x74,0x68,0x65,0x6e])](()=>_0x44651e);}async function _0x570c9c(){await _0x1f5a66,_0x2ba422[_0x164005([0x6d,0x6f,0x64,0x65,0x6c])][_0x164005([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x541096,_0x2ba422[_0x164005([0x6d,0x6f,0x64,0x65,0x6c])][_0x164005([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x541096,_0x2ba422[_0x164005([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x164005([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x9c006a(){return _0x4a5762(_0x164005([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x98dd9e(_0x164005([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x164005([0x73,0x74,0x61,0x74,0x65])]==_0x164005([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x104d08(){return _0x4a5762(_0x164005([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 _0x9e447f(){return _0x4a5762(_0x164005([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x43aa89(_0x5579c2){const _0x400a86=_0x4c2aab();_0x2ba422[_0x400a86]=_0x164005([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5579c2,_0x5579c2!=_0x164005([0x56,0x61,0x6c,0x69,0x64])&&_0x570c9c();}function _0x4c2aab(){const _0x576919=window[_0x164005([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x164005([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x164005([0x6e,0x6f,0x77])]())[_0x164005([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x164005([0x2e]),'');let _0x10c1d9=_0x164005([0x52]);for(let _0x466230=0x0;_0x466230<_0x576919[_0x164005([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x466230+=0x2){let _0x3468bc=window[_0x164005([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x576919[_0x164005([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x466230,_0x466230+0x2));_0x3468bc>=_0x5a149f[_0x164005([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3468bc-=_0x5a149f[_0x164005([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10c1d9+=_0x5a149f[_0x3468bc];}return _0x10c1d9;}function _0x3fbfd7(){const _0x590299=_0x3d1f3c[_0x164005([0x73,0x70,0x6c,0x69,0x74])](_0x164005([0x2e]));if(0x3!=_0x590299[_0x164005([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2a63c5(_0x590299[0x1]);function _0x2a63c5(_0x23bec9){const _0x18c82a=_0x3f9ff3(_0x23bec9);return _0x18c82a&&_0x2bd1f5()?_0x18c82a:null;function _0x2bd1f5(){const _0x3b68fc=_0x18c82a[_0x164005([0x6a,0x74,0x69])],_0x18c653=window[_0x164005([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b68fc[_0x164005([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b68fc[_0x164005([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x32af32={..._0x18c82a,[_0x164005([0x6a,0x74,0x69])]:_0x3b68fc[_0x164005([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b68fc[_0x164005([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x32af32[_0x164005([0x76,0x63])],_0x3d2c76(_0x32af32)==_0x18c653;}}}async function _0x354995(){let _0x45523d=!0x0;try{const _0x58c60c=_0x3d1f3c[_0x164005([0x73,0x70,0x6c,0x69,0x74])](_0x164005([0x2e])),[_0x3b15e4,_0x296ef9,_0x2c56a1]=_0x58c60c;return _0x4cba67(_0x3b15e4),await _0x11bfc3(_0x3b15e4,_0x296ef9,_0x2c56a1),_0x45523d;}catch{return!0x1;}function _0x4cba67(_0x34c42b){const _0x1d63d4=_0x3f9ff3(_0x34c42b);_0x1d63d4&&_0x1d63d4[_0x164005([0x61,0x6c,0x67])]==_0x164005([0x45,0x53,0x32,0x35,0x36])||(_0x45523d=!0x1);}async function _0x11bfc3(_0x16793d,_0x128e57,_0xad8386){const _0x8b4268=window[_0x164005([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x164005([0x66,0x72,0x6f,0x6d])](_0x351be1(_0xad8386),_0x2a02b0=>_0x2a02b0[_0x164005([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xecfa67=new window[(_0x164005([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x164005([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x16793d+_0x164005([0x2e])+_0x128e57),_0x4563c6=window[_0x164005([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x164005([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4563c6)return;const _0x4a6064=await _0x4563c6[_0x164005([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x164005([0x6a,0x77,0x6b]),_0x5c70ba,{[_0x164005([0x6e,0x61,0x6d,0x65])]:_0x164005([0x45,0x43,0x44,0x53,0x41]),[_0x164005([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x164005([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x164005([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4563c6[_0x164005([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x164005([0x6e,0x61,0x6d,0x65])]:_0x164005([0x45,0x43,0x44,0x53,0x41]),[_0x164005([0x68,0x61,0x73,0x68])]:{[_0x164005([0x6e,0x61,0x6d,0x65])]:_0x164005([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a6064,_0x8b4268,_0xecfa67)||(_0x45523d=!0x1);}}function _0x3f9ff3(_0x476ac9){return _0x476ac9[_0x164005([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x164005([0x65,0x79]))?JSON[_0x164005([0x70,0x61,0x72,0x73,0x65])](_0x351be1(_0x476ac9)):null;}function _0x351be1(_0x5ba64a){return window[_0x164005([0x61,0x74,0x6f,0x62])](_0x5ba64a[_0x164005([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x164005([0x2b]))[_0x164005([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x164005([0x2f])));}function _0x3d2c76(_0x11d250){let _0x80e0e8=0x1505;function _0x57ee09(_0xe4e4e4){for(let _0x1fd8ae=0x0;_0x1fd8ae<_0xe4e4e4[_0x164005([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fd8ae++){const _0xc75246=_0xe4e4e4[_0x164005([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1fd8ae);_0x80e0e8=(_0x80e0e8<<0x5)+_0x80e0e8+_0xc75246,_0x80e0e8&=_0x80e0e8;}}function _0x20b6ff(_0x36ba95){Array[_0x164005([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36ba95)?_0x36ba95[_0x164005([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20b6ff):_0x36ba95&&typeof _0x36ba95==_0x164005([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x164005([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36ba95)[_0x164005([0x73,0x6f,0x72,0x74])]()[_0x164005([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x697fb0,_0x479886])=>{_0x57ee09(_0x697fb0),_0x20b6ff(_0x479886);}):_0x57ee09(window[_0x164005([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36ba95));}return _0x20b6ff(_0x11d250),_0x80e0e8>>>0x0;}function _0x34b3c4(_0x2d05d1){return _0x2d05d1[_0x164005([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x164005([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x164005([0x30]));}function _0x4cf6d1(_0x1d8c00){return _0x1d8c00[_0x164005([0x73,0x70,0x6c,0x69,0x74])]('')[_0x164005([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x164005([0x6a,0x6f,0x69,0x6e])]('');}function _0x4a5762(_0x50541b){return _0x2ba422[_0x164005([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x164005([0x68,0x61,0x73])](_0x50541b);}function _0x98dd9e(_0x1fd43b){return _0x2ba422[_0x164005([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x164005([0x67,0x65,0x74])](_0x1fd43b);}function _0x541096(){}function _0x164005(_0x4edbb0){return _0x4edbb0['map'](_0x459e9f=>String['fromCharCode'](_0x459e9f))['join']('');}_0x43aa89(await _0x289477());}(this);}set['adapter'](_0xe46b7a){if(this['_adapter'])throw new _0x2f0245('track-changes-adapter-already-set',this);this['_adapter']=_0xe46b7a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x11adf5=!0x1,toJSON:_0xbd1181=!0x1}={}){const _0x244137=[];for(const _0x54efaf of this['_suggestions']['values']())_0x11adf5&&!_0x54efaf['isInContent']||_0x244137['push'](_0x54efaf);return _0xbd1181?_0x244137['map'](_0x4c11cd=>_0x4c11cd['toJSON']()):_0x244137;}['getSuggestion'](_0x1e19e7){const _0x252bbf=this['_suggestions']['get'](_0x1e19e7);if(!_0x252bbf)throw new _0x2f0245('track-changes-suggestion-not-found',this);return _0x252bbf;}['hasSuggestion'](_0x28104a){return this['_suggestions']['has'](_0x28104a);}['addSuggestionData'](_0xead9ea){const {authorId:_0x3b4378,id:_0x54159d,originalSuggestionId:_0x5990fb,attributes:_0x516f61}=_0xead9ea,[_0x4c033e,_0x26c8c8]=_0xead9ea['type']['split'](':'),_0x587b77=this['_suggestions']['get'](_0x54159d)||this['_createSuggestion'](_0x4c033e,_0x26c8c8,_0x54159d,_0x3b4378,_0x516f61,_0x5990fb);if(this['_addThreadToSuggestion'](_0x587b77),this['_checkSuggestionCorrectness'](_0x587b77,_0x4c033e,_0x26c8c8||null,_0x3b4378),_0x587b77['createdAt']=_0xead9ea['createdAt'],_0x587b77['_isDataLoaded']=!0x0,_0x516f61&&_0x516f61['@external']){const _0xd7c321=_0x516f61['@external'],_0x179bc9=this['_getExternalAuthor'](_0xd7c321['authorName']);_0x587b77['authoredAt']=_0xd7c321['createdAt'],_0x587b77['author']=_0x179bc9,_0x587b77['isExternal']=!0x0;}else _0x587b77['authoredAt']=_0xead9ea['createdAt'];switch(_0xead9ea['data']&&(_0x587b77['data']=_0xead9ea['data']),_0xead9ea['attributes']&&(_0x587b77['attributes']=_0xead9ea['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x587b77['_saved']=!0x0),this['_suggestionState']['get'](_0x587b77)){case'notReady':this['_suggestionState']['set'](_0x587b77,'dataReady');break;case'markerReady':_0x587b77['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x587b77])),this['_refreshSuggestionsChain'](new Set([_0x587b77])),this['_suggestionState']['set'](_0x587b77,'ready'),this['fire']('suggestionLoaded',_0x587b77)):this['_suggestionState']['set'](_0x587b77,'removed');}return _0x587b77;}['acceptSuggestion'](_0x21a919){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x11c9f5 of _0x21a919['getAllAdjacentSuggestions']())_0x11c9f5['accept']();});});}['discardSuggestion'](_0x2c579e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x38387f of _0x2c579e['getAllAdjacentSuggestions']())_0x38387f['discard']();});});}['enableCommand'](_0xb0a424,_0x8ced2b){const _0x5527fd=this['editor']['commands']['get'](_0xb0a424);if(!_0x5527fd)throw new _0x2f0245('track-changes-command-not-found',this,{'commandName':_0xb0a424});if(this['_enabledCommands']['has'](_0x5527fd))throw new _0x2f0245('track-changes-enable-command-twice',this,{'commandName':_0xb0a424});this['_enabledCommands']['add'](_0x5527fd),_0x8ced2b&&_0x5527fd['on']('execute',(_0x59ef26,_0x218e18)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x218e18['length']>0x0&&_0x218e18[_0x218e18['length']-0x1]&&_0x218e18[_0x218e18['length']-0x1]['forceDefaultExecution']?_0x218e18['pop']():(_0x59ef26['return']=_0x8ced2b((..._0x2fe019)=>_0x5527fd['execute'](..._0x2fe019,{'forceDefaultExecution':!0x0}),..._0x218e18),_0x59ef26['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x48e305){let _0x1b79ae,_0x2c6f49;const _0x25c519=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1b79ae=_0x48e305();}catch(_0x2c05d8){_0x2c6f49=_0x2c05d8;}return _0x25c519||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2c6f49&&_0x2f0245['rethrowUnexpectedError'](_0x2c6f49,this),_0x1b79ae;}['markInsertion'](_0x3f0779,_0x4a085d=null,_0x5370c6={}){if(_0x3f0779['isCollapsed'])return null;const _0x45231a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5370c6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2c2ac4,meta:_0x28c77f}of this['_findSuggestions'](_0x3f0779,'insertion'))if(_0x28c77f['isOwn']){if(!_0x28c77f['isNextTo']){if(_0x28c77f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x2c2ac4,_0x5370c6))continue;return _0x2c2ac4;}if(sn(_0x2c2ac4,_0x5370c6))return _0x2c2ac4;this['_breakSuggestionMarker'](_0x2c2ac4,_0x3f0779['start'],_0x3f0779['end']);break;}if(_0x4a085d==_0x2c2ac4['subType']&&sn(_0x2c2ac4,_0x5370c6)){const _0x56478b=_0x2c2ac4['getFirstRange']();return _0x56478b['start']['isEqual'](_0x3f0779['end'])?this['_setSuggestionRange'](_0x2c2ac4,this['_model']['createRange'](_0x3f0779['start'],_0x56478b['end'])):this['_setSuggestionRange'](_0x2c2ac4,this['_model']['createRange'](_0x56478b['start'],_0x3f0779['end'])),_0x2c2ac4;}}const _0x2373a3=_0x46153d(),_0x28497b=_0x45231a['id'],_0x49e72c=_0x4a085d?'insertion:'+_0x4a085d:'insertion',_0x57ffe1=this['_setSuggestionData']({'id':_0x2373a3,'type':_0x49e72c,'createdAt':new Date(),'authorId':_0x28497b,'attributes':_0x5370c6});return this['_addSuggestionMarker'](_0x49e72c,_0x2373a3,_0x28497b,_0x3f0779),_0x57ffe1;}['markMultiRangeInsertion'](_0xaf0362,_0x5edb2e='multi',_0x5550f3={}){const _0x397234=this['editor']['plugins']['get']('Users')['me'],_0x3d98eb=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5edb2e,'join');this['_trackingSessionId']&&(_0x5550f3['trackingSessionId']=this['_trackingSessionId']);for(const _0x54bb06 of this['getSuggestions']())if(_0x54bb06['author']['id']==_0x397234['id']&&'insertion'==_0x54bb06['type']&&_0x54bb06['subType']==_0x5edb2e&&sn(_0x54bb06,_0x5550f3)&&(_0x3d98eb(_0x54bb06['getRanges'](),_0xaf0362)||_0x3d98eb(_0xaf0362,_0x54bb06['getRanges']()))){for(const _0x2825f6 of _0xaf0362)_0x54bb06['addRange'](_0x2825f6);return _0x54bb06;}for(const {suggestion:_0x4cae53,meta:_0x2f886e}of this['_findSuggestions'](_0xaf0362,'insertion')){if(!_0x2f886e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2f886e['containsRangeInObject'])continue;if(!sn(_0x4cae53,_0x5550f3))continue;let _0x57b70f=!0x0;for(const _0x2930ff of _0x4cae53['getRanges']())for(const _0x13931b of _0xaf0362)if(!_0x2930ff['containsRange'](_0x13931b)){_0x57b70f=!0x1;break;}if(_0x57b70f)return _0x4cae53;}const _0xa1d273=_0x46153d(),_0x3a8b02=_0x397234['id'],_0x15c5c3='insertion:'+_0x5edb2e,_0x3c30f7=this['_setSuggestionData']({'id':_0xa1d273,'type':_0x15c5c3,'createdAt':new Date(),'authorId':_0x3a8b02,'attributes':_0x5550f3});for(const _0x1e58cd of _0xaf0362)this['_addSuggestionMarker'](_0x15c5c3,_0xa1d273,_0x3a8b02,_0x1e58cd,T['getMultiRangeId']());return _0x3c30f7;}['markInlineFormat'](_0x2b78e9,_0x174b52,_0x1b3257=null,_0x35f524={}){if(_0x1b3257=_0x1b3257||Ht(_0x174b52),_0x2b78e9['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x35f524['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x685b57=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1b3257,'accept');return this['forceDefaultExecution'](()=>_0x685b57([_0x2b78e9],_0x174b52,_0x35f524)),null;}const _0x1347c6=this['editor']['plugins']['get']('Users')['me'],_0x1cef27=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x335a09,meta:_0x2a00fa}of this['_findSuggestions'](_0x2b78e9,'insertion'))_0x2a00fa['isOwn']&&!_0x2a00fa['isInsideObject']&&_0x1cef27['push'](..._0x335a09['getRanges']());}const _0x46e8b0=function(_0x2882d0,_0x1d757f){const _0xdcf576=[];for(const _0x132880 of _0x1d757f){const _0x4a040b=_0x2882d0['getIntersection'](_0x132880);_0x4a040b&&_0xdcf576['push'](_0x4a040b);}return _0xdcf576;}(_0x2b78e9,_0x1cef27),_0x2d47a9=function(_0x506218,_0x2f3806){const _0x5a1d2e=[_0x506218];for(const _0x594b1 of _0x2f3806){let _0x5b0867=0x0;for(;_0x5b0867<_0x5a1d2e['length'];){const _0x4c5fe0=_0x5a1d2e[_0x5b0867]['getDifference'](_0x594b1);_0x5a1d2e['splice'](_0x5b0867,0x1,..._0x4c5fe0),_0x5b0867+=_0x4c5fe0['length'];}}return _0x5a1d2e;}(_0x2b78e9,_0x1cef27);_0x46e8b0['length']&&this['_model']['change'](()=>{for(const _0x4569a4 of _0x46e8b0){const _0x5e713d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1b3257,'accept');this['forceDefaultExecution'](()=>_0x5e713d([_0x4569a4],_0x174b52,_0x35f524));}});for(const _0x1e0cab of _0x2d47a9){let _0x4d5643=null,_0x4a3484=_0x1e0cab['start'],_0x289226=_0x1e0cab['end'];for(const {suggestion:_0x113413,meta:_0x370e19}of this['_findSuggestions'](_0x1e0cab,'formatInline')){if(!_0x370e19['isOwn'])continue;if(_0x113413['subType']!=_0x1b3257)continue;if(!sn(_0x113413,_0x35f524))continue;const _0x52ea9d=_0x113413['getFirstRange']();if(_0x52ea9d['containsRange'](_0x1e0cab,!0x0))return null;_0x4a3484=_0x4a3484['isBefore'](_0x52ea9d['start'])?_0x4a3484:_0x52ea9d['start'],_0x289226=_0x289226['isAfter'](_0x52ea9d['end'])?_0x289226:_0x52ea9d['end'],_0x4d5643?_0x52ea9d['start']['isBefore'](_0x4d5643['getFirstRange']()['start'])?(_0x4d5643['removeMarkers'](),_0x4d5643=_0x113413):_0x113413['removeMarkers']():_0x4d5643=_0x113413;}const _0x4494a1=this['_model']['createRange'](_0x4a3484,_0x289226);if(_0x4d5643)this['_setSuggestionRange'](_0x4d5643,_0x4494a1);else{const _0x2546e3=_0x46153d(),_0x432e48=_0x1347c6['id'];this['_setSuggestionData']({'id':_0x2546e3,'type':'formatInline:'+_0x1b3257,'data':_0x174b52,'createdAt':new Date(),'authorId':_0x432e48,'attributes':_0x35f524}),this['_addSuggestionMarker']('formatInline:'+_0x1b3257,_0x2546e3,_0x432e48,_0x4494a1);}}return null;}['markBlockFormat'](_0x3515d0,_0x5c7cd6,_0x3dcce5=[],_0x51e51b=null,_0x19208e={}){_0x5c7cd6['formatGroupId']||(_0x5c7cd6['formatGroupId']=_0x5c7cd6['commandName']),_0x5c7cd6['multipleBlocks']=_0x3515d0['is']('range'),_0x51e51b=_0x51e51b||Ht(_0x5c7cd6);const _0x1a7607=_0x3dcce5['map'](_0xef8465=>tn(_0xef8465,this['_model'])),_0x580a26=_0x3515d0['is']('range')?_0x3515d0:tn(_0x3515d0,this['_model']);if(this['_trackingSessionId']&&(_0x19208e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x231b70=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51e51b,'accept');return this['forceDefaultExecution'](()=>_0x231b70([_0x580a26],_0x5c7cd6,_0x19208e)),null;}_0x1a7607['push'](_0x580a26);let _0x3ff2c5=!0x0;for(const _0x2515bb of _0x1a7607)if(!this['_rangeIsInLocalUserInsertion'](_0x2515bb)){_0x3ff2c5=!0x1;break;}if(_0x3ff2c5&&'always'!==this['_trackFormatChanges']){const _0x35c9f9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51e51b,'accept');return this['forceDefaultExecution'](()=>_0x35c9f9([_0x580a26],_0x5c7cd6,_0x19208e)),null;}let _0x460f03=null,_0x214628=_0x580a26['start'],_0xe51cad=_0x580a26['end'];for(const {suggestion:_0x4cf543,meta:_0x49b62b}of this['_findSuggestions'](_0x580a26,'formatBlock')){if(!_0x49b62b['isOwn'])continue;if(_0x49b62b['isNextTo']||_0x49b62b['containsRangeInObject']||_0x49b62b['isInsideObject'])continue;if(_0x4cf543['data']['formatGroupId']!=_0x5c7cd6['formatGroupId'])continue;if(!sn(_0x4cf543,_0x19208e))continue;const _0x16f697=_0x4cf543['getFirstRange']();if(_0x4cf543['subType']==_0x51e51b){if(_0x16f697['containsRange'](_0x580a26,!0x0))return null;_0x214628=_0x214628['isBefore'](_0x16f697['start'])?_0x214628:_0x16f697['start'],_0xe51cad=_0xe51cad['isAfter'](_0x16f697['end'])?_0xe51cad:_0x16f697['end'],_0x460f03?_0x16f697['start']['isBefore'](_0x460f03['getFirstRange']()['start'])?(_0x460f03['removeMarkers'](),_0x460f03=_0x4cf543):_0x4cf543['removeMarkers']():_0x460f03=_0x4cf543;}else{const _0xa8be7b=_0x580a26['getIntersection'](_0x16f697);this['_cutOutSuggestionMarker'](_0x4cf543,_0xa8be7b);}}const _0x47045b=this['editor']['plugins']['get']('Users')['me'],_0x330f43=_0x46153d(),_0x31c57d=_0x47045b['id'];if(_0x460f03)return this['_setSuggestionRange'](_0x460f03,this['_model']['createRange'](_0x214628,_0xe51cad)),_0x460f03;{const _0x46831c=this['_setSuggestionData']({'id':_0x330f43,'type':'formatBlock:'+_0x51e51b,'data':_0x5c7cd6,'createdAt':new Date(),'authorId':_0x31c57d,'attributes':_0x19208e});return this['_addSuggestionMarker']('formatBlock:'+_0x51e51b,_0x330f43,_0x31c57d,this['_model']['createRange'](_0x214628,_0xe51cad)),_0x46831c;}}['markMultiRangeBlockFormat'](_0x1fda72,_0x31727f,_0xf2ab09=[],_0x4d1dff=null,_0x4377b5={}){_0x31727f['formatGroupId']||(_0x31727f['formatGroupId']=_0x31727f['commandName']);const _0x5dc458=_0x1fda72[0x0];_0x31727f['multipleBlocks']=_0x5dc458['is']('range'),_0x4d1dff=_0x4d1dff||Ht(_0x31727f);const _0x492144=_0xf2ab09['map'](_0x1f8d42=>tn(_0x1f8d42,this['_model'])),_0x4238a6=_0x5dc458['is']('range')?_0x1fda72:_0x1fda72['map'](_0x327457=>tn(_0x327457,this['_model']));if(this['_trackingSessionId']&&(_0x4377b5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xa8cb09=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d1dff,'accept');return this['forceDefaultExecution'](()=>_0xa8cb09(_0x4238a6,_0x31727f,_0x4377b5)),null;}_0x492144['push'](..._0x4238a6);let _0x593622=!0x0;for(const _0x307728 of _0x492144)if(!this['_rangeIsInLocalUserInsertion'](_0x307728)){_0x593622=!0x1;break;}if(_0x593622&&'always'!==this['_trackFormatChanges']){const _0x53ce1d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d1dff,'accept');return this['forceDefaultExecution'](()=>_0x53ce1d(_0x4238a6,_0x31727f,_0x4377b5)),null;}const _0x243d03=this['editor']['plugins']['get']('Users')['me'];for(const _0x35b4de of this['getSuggestions']()){const _0x3c2ace=_0x35b4de['data'];if(_0x35b4de['author']['id']!=_0x243d03['id'])continue;if('formatBlock'!=_0x35b4de['type']||_0x3c2ace['formatGroupId']!=_0x31727f['formatGroupId'])continue;if(!sn(_0x35b4de,_0x4377b5))continue;const _0x2e47ae=_0x35b4de['subType']==_0x4d1dff;for(let _0xa8458c=0x0;_0xa8458c<_0x4238a6['length'];_0xa8458c++){const _0x1aabd8=_0x4238a6[_0xa8458c];for(const _0x5344c1 of _0x35b4de['getMarkers']()){const _0xe380fc=_0x5344c1['getRange']();if(_0x1aabd8['isEqual'](_0xe380fc)){_0x2e47ae?(_0x4238a6['splice'](_0xa8458c,0x1),_0xa8458c--):_0x35b4de['removeMarker'](_0x5344c1['name']);break;}}}}if(0x0==_0x4238a6['length'])return null;const _0x149614=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d1dff,'join');for(const _0xf574b7 of this['getSuggestions']()){const _0x37c78b=_0xf574b7['data'];if(_0xf574b7['author']['id']==_0x243d03['id']&&('formatBlock'==_0xf574b7['type']&&_0x37c78b['formatGroupId']==_0x31727f['formatGroupId']&&_0xf574b7['subType']==_0x4d1dff&&sn(_0xf574b7,_0x4377b5)&&(_0x149614(_0xf574b7['getRanges'](),_0x4238a6)||_0x149614(_0x4238a6,_0xf574b7['getRanges']())))){for(const _0x5c60b8 of _0x4238a6)_0xf574b7['addRange'](_0x5c60b8);return _0xf574b7;}}const _0xac6021=_0x46153d(),_0x2da94c=_0x243d03['id'],_0x401002='formatBlock:'+_0x4d1dff,_0xe0004c=this['_setSuggestionData']({'id':_0xac6021,'type':_0x401002,'data':_0x31727f,'createdAt':new Date(),'authorId':_0x2da94c,'attributes':_0x4377b5});for(const _0x5318d9 of _0x4238a6)this['_addSuggestionMarker'](_0x401002,_0xac6021,_0x2da94c,_0x5318d9,T['getMultiRangeId']());return _0xe0004c;}['markDeletion'](_0x5e385b,_0x1d9dc8=null,_0x2723f4={}){if(_0x5e385b['isCollapsed'])return null;const _0x47df74=this['editor']['plugins']['get']('Users')['me'],_0x3d9cb1=new _0x596d93(_0x5e385b['start'],_0x5e385b['end']);this['_trackingSessionId']&&(_0x2723f4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b5205,meta:_0x5161c6}of this['_findSuggestions'](_0x3d9cb1,'insertion'))if(_0x5161c6['isOwn']&&!_0x5161c6['isNextTo']){if(_0x5b5205['isMultiRange']){const _0x17f268=_0x5b5205['getRanges']()['filter'](_0x1ba430=>'$graveyard'!=_0x1ba430['root']['rootName']);_0x17f268['every'](_0x1756cc=>_0x3d9cb1['containsRange'](_0x1756cc,!0x0))&&_0x5b5205['discard']();if(_0x17f268['some'](_0x39d5c1=>_0x39d5c1['containsRange'](_0x3d9cb1,!0x0))){const _0x57bec2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d9dc8,'accept');return this['forceDefaultExecution'](()=>_0x57bec2([_0x3d9cb1],null,_0x2723f4)),null;}}else{const _0x2ba76e=_0x3d9cb1['getIntersection'](_0x5b5205['getFirstRange']());null!==_0x2ba76e&&_0x5b5205['_onDiscard']([_0x2ba76e],null,_0x2723f4);}}if(_0x3d9cb1['detach'](),_0x3d9cb1['isCollapsed']||'$graveyard'==_0x3d9cb1['root']['rootName'])return null;let _0x4c9abb=null,_0x28b1ba=_0x3d9cb1['start'],_0x1407b9=_0x3d9cb1['end'];const _0x350560=this['_findSuggestions'](_0x3d9cb1,'deletion');for(const {suggestion:_0x101ca9,meta:_0x2bdbaa}of _0x350560){const _0x236632=this['_model']['createRange'](_0x28b1ba,_0x1407b9);if(_0x2bdbaa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2bdbaa['containsRangeInObject']&&!_0x2bdbaa['isInsideObject'])){if(_0x101ca9['isMultiRange']){if(!sn(_0x101ca9,_0x2723f4))continue;let _0x5c28b9=!0x0;for(const _0xa266e9 of _0x101ca9['getRanges']()){if(_0xa266e9['containsRange'](_0x236632,!0x0))return _0x101ca9;_0x236632['containsRange'](_0xa266e9)||(_0x5c28b9=!0x1);}_0x5c28b9&&_0x101ca9['discard']();}else{const _0x130541=_0x101ca9['getFirstRange']();if(_0x130541['containsRange'](_0x236632,!0x0))return _0x101ca9;if(!sn(_0x101ca9,_0x2723f4)){_0x236632['containsRange'](_0x130541)?_0x101ca9['removeMarkers']():_0x130541['containsPosition'](_0x28b1ba)?_0x28b1ba=_0x130541['end']:_0x130541['containsPosition'](_0x1407b9)&&(_0x1407b9=_0x130541['start']);continue;}_0x28b1ba=_0x28b1ba['isBefore'](_0x130541['start'])?_0x28b1ba:_0x130541['start'],_0x1407b9=_0x1407b9['isAfter'](_0x130541['end'])?_0x1407b9:_0x130541['end'],_0x2723f4=Object['assign']({},_0x101ca9['attributes']),_0x4c9abb?_0x130541['start']['isBefore'](_0x4c9abb['getFirstRange']()['start'])?(_0x4c9abb['removeMarkers'](),_0x4c9abb=_0x101ca9):_0x101ca9['removeMarkers']():_0x4c9abb=_0x101ca9;}}}if(_0x4c9abb)return this['_setSuggestionRange'](_0x4c9abb,this['_model']['createRange'](_0x28b1ba,_0x1407b9)),_0x4c9abb;{const _0x20850c=_0x46153d(),_0x22c952=this['_model']['createRange'](_0x28b1ba,_0x1407b9),_0x523af9=_0x47df74['id'],_0x1245ce=_0x1d9dc8?'deletion:'+_0x1d9dc8:'deletion',_0x2b05cb=this['_setSuggestionData']({'id':_0x20850c,'type':_0x1245ce,'createdAt':new Date(),'authorId':_0x523af9,'attributes':_0x2723f4});return this['_addSuggestionMarker'](_0x1245ce,_0x20850c,_0x523af9,_0x22c952),_0x2b05cb;}}['markMultiRangeDeletion'](_0xa380c8,_0x3a251a='multi',_0x3bffb8={}){const _0x19715d=this['editor']['plugins']['get']('Users')['me'],_0x2855b3=_0xa380c8['map'](_0x79303e=>new _0x596d93(_0x79303e['start'],_0x79303e['end'])),_0x55c835=new Set();this['_trackingSessionId']&&(_0x3bffb8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xdc0213,meta:_0x4ecd77}of this['_findSuggestions'](_0x2855b3,'insertion'))_0x4ecd77['isOwn']&&!_0x4ecd77['isNextTo']&&_0x55c835['add'](_0xdc0213);for(const _0x4c60d5 of _0x55c835)if(_0x4c60d5['isMultiRange']){const _0x1025d9=_0x4c60d5['getRanges']();(!_0x4c60d5['attributes']||!_0x4c60d5['attributes']['skipNestingCheck'])&&(_0x1025d9['every'](_0xe2db5=>_0x2855b3['some'](_0x12c58f=>_0x12c58f['containsRange'](_0xe2db5,!0x0)))&&_0x4c60d5['discard']());if(_0x2855b3['every'](_0x2af072=>_0x1025d9['some'](_0x4052b4=>_0x4052b4['containsRange'](_0x2af072,!0x0)))){const _0x4e095d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a251a,'accept');return this['forceDefaultExecution'](()=>_0x4e095d(_0xa380c8,null,_0x3bffb8)),null;}}else{const _0x3df949=_0x4c60d5['getFirstRange']();_0x2855b3['some'](_0x1a9498=>_0x1a9498['containsRange'](_0x3df949,!0x0))&&_0x4c60d5['discard']();if(_0x2855b3['every'](_0x41d60c=>_0x3df949['containsRange'](_0x41d60c,!0x0))){const _0x538c78=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a251a,'accept');return this['forceDefaultExecution'](()=>_0x538c78(_0x2855b3,null,_0x3bffb8)),null;}}const _0x51a41e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a251a,'join');let _0x1dbfab=null;for(const _0x4e3398 of this['getSuggestions']())if(_0x4e3398['author']['id']==_0x19715d['id']&&_0x4e3398['isInContent']&&'deletion'==_0x4e3398['type']&&_0x4e3398['subType']==_0x3a251a&&sn(_0x4e3398,_0x3bffb8)&&(_0x51a41e(_0x4e3398['getRanges'](),_0x2855b3)||_0x51a41e(_0x2855b3,_0x4e3398['getRanges']()))){if(_0x1dbfab){if(_0x4e3398['commentThread']&&_0x4e3398['commentThread']['length'])continue;for(const _0x1eeaa3 of _0x4e3398['getRanges']())_0x1dbfab['isIntersectingWithRange'](_0x1eeaa3)||_0x1dbfab['addRange'](_0x1eeaa3);_0x4e3398['removeMarkers']();}else{_0x1dbfab=_0x4e3398;for(const _0x2227d2 of _0x2855b3)_0x4e3398['isIntersectingWithRange'](_0x2227d2)||_0x4e3398['addRange'](_0x2227d2);}}if(_0x1dbfab)return _0x1dbfab;_0x55c835['clear']();for(const {suggestion:_0x4808dc,meta:_0x204759}of this['_findSuggestions'](_0x2855b3,'deletion'))_0x204759['isOwn']&&(this['_mergeNestedSuggestions']||!_0x204759['containsRangeInObject']&&!_0x204759['isInsideObject'])&&sn(_0x4808dc,_0x3bffb8)&&_0x55c835['add'](_0x4808dc);for(const _0x1140b2 of _0x55c835){const _0x117967=_0x1140b2['getRanges']();if(!_0x3bffb8||!_0x3bffb8['skipNestingCheck']){if(_0x2855b3['every'](_0x5bf807=>_0x117967['some'](_0x4b7b44=>_0x4b7b44['containsRange'](_0x5bf807,!0x0))))return _0x1140b2;}(!_0x1140b2['attributes']||!_0x1140b2['attributes']['skipNestingCheck'])&&(_0x117967['every'](_0x15d5de=>_0x2855b3['some'](_0x115c32=>_0x115c32['containsRange'](_0x15d5de,!0x0)))&&_0x1140b2['discard']());}const _0x18c388=_0x46153d(),_0x21bc5c=_0x19715d['id'],_0xa8a48c='deletion:'+_0x3a251a,_0x1ba1fb=this['_setSuggestionData']({'id':_0x18c388,'type':_0xa8a48c,'createdAt':new Date(),'authorId':_0x21bc5c,'attributes':_0x3bffb8});for(const _0xd1775c of _0x2855b3)_0xd1775c['detach'](),_0xd1775c['isCollapsed']||'$graveyard'==_0xd1775c['root']['rootName']||this['_addSuggestionMarker'](_0xa8a48c,_0x18c388,_0x21bc5c,_0xd1775c,T['getMultiRangeId']());return _0x1ba1fb;}['markAttributeChange'](_0x26f41e,_0x4743a8,_0x128f13,_0x1c74ac,_0x12fcfb){if(_0x26f41e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2ff936=this['editor']['plugins']['get']('Users')['me']['id'],_0x4393d2=Array['from'](this['_suggestions']['values']())['filter'](_0x54ede2=>'attribute'==_0x54ede2['type']&&_0x54ede2['data']['key']==_0x4743a8&&_0x54ede2['isIntersectingWithRange'](_0x26f41e));if(this['_trackingSessionId']&&(_0x12fcfb['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x16bd48=this['_findSuggestions'](_0x26f41e,'insertion')['filter'](({meta:_0x3df611})=>_0x3df611['isOwn']&&!_0x3df611['isInsideObject']&&!_0x3df611['isNextTo'])['map'](({suggestion:_0xead81b})=>_0xead81b);_0x4393d2['unshift'](..._0x16bd48);}const _0x2985fe=new Map([[_0x26f41e,_0x128f13]]);for(const _0x54e8fd of _0x4393d2){const _0x44e379='attribute'==_0x54e8fd['type']?_0x54e8fd['data']['oldValue']:void 0x0,_0x4035de=_0x54e8fd['getFirstRange'](),_0x482ab1=Array['from'](_0x2985fe['keys']())['find'](_0x3c4224=>_0x3c4224['isIntersecting'](_0x4035de));if(!_0x482ab1)continue;const _0x2f46f6=_0x482ab1['getDifference'](_0x4035de);this['_isBlockAttribute'](_0x4743a8)&&'insertion'==_0x54e8fd['type']&&0x0!=_0x2f46f6['length']||(_0x2985fe['delete'](_0x482ab1),_0x2f46f6['forEach'](_0x374461=>{_0x2985fe['set'](_0x374461,_0x128f13);}),'insertion'!=_0x54e8fd['type']&&_0x44e379!=_0x1c74ac&&_0x2985fe['set'](_0x482ab1['getIntersection'](_0x4035de),_0x44e379));}const _0x478c58=[];for(const [_0x3dbb34,_0x450714]of _0x2985fe){const _0x3dd324=_0x46153d(),_0xc66c9a={'key':_0x4743a8,'oldValue':_0x450714,'newValue':_0x1c74ac};_0x4743a8['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':_0x4743a8});const _0x1e55f9=('attribute:'+(_0x4743a8+'|'+Ht({'newValue':_0x1c74ac})))['substring'](0x0,0x3c),_0x15c51d=this['_setSuggestionData']({'id':_0x3dd324,'type':_0x1e55f9,'data':_0xc66c9a,'createdAt':new Date(),'authorId':_0x2ff936,'attributes':_0x12fcfb});_0x478c58['push'](_0x15c51d),this['_addSuggestionMarker'](_0x1e55f9,_0x3dd324,_0x2ff936,_0x3dbb34);}return _0x478c58;}['enableDefaultAttributesIntegration'](_0x5a708c){this['enableCommand'](_0x5a708c,(_0x249217,..._0x23da32)=>{this['recordAttributeChanges'](()=>{_0x249217(..._0x23da32);});});}['registerBlockAttribute'](_0x2df2d1){this['editor']['plugins']['get'](_0x4debab)['registerBlockAttribute'](_0x2df2d1);}['registerInlineAttribute'](_0x1cb639){this['editor']['plugins']['get'](_0x4debab)['registerInlineAttribute'](_0x1cb639);}['startTrackingSession'](_0x4ed7be){return this['_trackingSessionId']=void 0x0!==_0x4ed7be?_0x4ed7be:_0x46153d(),this['_trackingSessionId'];}['_getAttributeKey'](_0xdc4c25){return'attribute'==_0xdc4c25['type']?_0xdc4c25['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x4f6e76){if(0x0==_0x4f6e76['length'])return;const _0x26fd42=this['editor'],_0x14a3f4=_0x26fd42['plugins']['get'](_0x9068a6),_0x3fa854=[];_0x26fd42['model']['change'](_0x1f5a26=>{for(let _0x5c6cf0=0x0;_0x5c6cf0<_0x4f6e76['length'];_0x5c6cf0++){const _0x175875=_0x4f6e76[_0x5c6cf0];if(_0x175875['baseVersion']=_0x26fd42['model']['document']['version'],_0x175875['isDocumentOperation']=!0x0,_0x14a3f4['isMarkedRemoveOperation'](_0x175875)){const _0x125e3c=_0x5d7d39(_0x175875['newRange'],_0x26fd42['model']);_0x3fa854['unshift'](_0x596d93['fromRange'](_0x125e3c));}else switch(_0x175875['type']){case'rename':{const _0x2a82eb=_0x175875['oldName'],_0xf80b52=_0x175875['newName'];if(_0x2a82eb==_0xf80b52)break;_0x1f5a26['batch']['addOperation'](_0x175875),_0x26fd42['model']['applyOperation'](_0x175875);const _0x2bd557='$elementName',_0x22a39d=_0x175875['position'],_0x2a1db7=_0x26fd42['model']['createRange'](_0x22a39d,_0x26fd42['model']['createPositionAt'](_0x22a39d['nodeAfter'],'end'));this['markAttributeChange'](_0x2a1db7,_0x2bd557,_0x2a82eb,_0xf80b52,{'groupId':_0x46153d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2be322=_0x175875['oldValue'],_0x389f34=_0x175875['newValue'];if(_0x2be322==_0x389f34)break;_0x1f5a26['batch']['addOperation'](_0x175875),_0x26fd42['model']['applyOperation'](_0x175875);const _0x153599=_0x175875['key'];if(!this['_isRegisteredAttribute'](_0x153599))break;const _0x50636e=_0x5d7d39(_0x175875['range'],_0x26fd42['model']);this['markAttributeChange'](_0x50636e,_0x153599,_0x2be322,_0x389f34,{'groupId':_0x46153d()});break;}case'insert':{_0x1f5a26['batch']['addOperation'](_0x175875),_0x26fd42['model']['applyOperation'](_0x175875);if(_0x4f6e76[_0x5c6cf0+0x1]&&'move'==_0x4f6e76[_0x5c6cf0+0x1]['type'])break;const _0x31407e=_0x175875['position'],_0x3685ca=_0x175875['howMany'],_0x332694=_0x5d7d39(_0x26fd42['model']['createRange'](_0x31407e,_0x31407e['getShiftedBy'](_0x3685ca)),_0x26fd42['model']);this['markInsertion'](_0x332694);break;}case'split':{_0x1f5a26['batch']['addOperation'](_0x175875),_0x26fd42['model']['applyOperation'](_0x175875);const _0x53156c=_0x175875['splitPosition'],_0x356d24=_0x175875['moveTargetPosition'];this['markInsertion'](_0x26fd42['model']['createRange'](_0x53156c,_0x356d24));break;}case'move':case'remove':_0x1f5a26['batch']['addOperation'](_0x175875),_0x26fd42['model']['applyOperation'](_0x175875);}}for(const _0x569087 of _0x3fa854)_0x569087['detach'](),this['markDeletion'](_0x569087);});}['_setSuggestionRange'](_0x204d73,_0x3c4178){const _0x2abd24=_0x204d73['getFirstMarker']();this['_model']['change'](_0x137e8c=>{_0x137e8c['updateMarker'](_0x2abd24,{'range':_0x3c4178});});}['_addThreadToSuggestion'](_0x369312){const _0x5d3986=_0x369312['id'],_0x43c326=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5d3986)||this['_commentsRepository']['addCommentThread']({'channelId':_0x43c326,'threadId':_0x5d3986,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x153d4e=this['_commentsRepository']['getCommentThread'](_0x5d3986);_0x153d4e['unbind']('isRemovable'),_0x153d4e['isRemovable']=!0x1,_0x369312['commentThread']=_0x153d4e;}['_checkSuggestionCorrectness'](_0x4d9c3c,_0x2ecc03,_0x2150a0,_0x4be751){if(_0x4d9c3c['type']!=_0x2ecc03||_0x4d9c3c['subType']!=_0x2150a0||_0x4d9c3c['creator']['id']!=_0x4be751)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2f0245('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4e4771,_0xd1f128){const _0x2d7fcd=_0x4e4771['getFirstRange']();if(_0xd1f128['isEqual'](_0x2d7fcd))_0x4e4771['removeMarkers']();else{if(_0x2d7fcd['containsRange'](_0xd1f128)){const _0x26fa6a=this['_model']['createPositionAt'](_0xd1f128['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e4771,this['_model']['createRange'](_0x2d7fcd['start'],_0x26fa6a));const _0x48490a=_0x46153d(),_0x850b7f=_0x4e4771['creator']['id'],_0x220c1d=_0x4e4771['type']+':'+_0x4e4771['subType'];this['_setSuggestionData']({'id':_0x48490a,'type':_0x220c1d,'createdAt':new Date(),'authorId':_0x850b7f,'data':_0x4e4771['data'],'attributes':_0x4e4771['attributes']});const _0x242b23=this['_model']['createPositionAt'](_0xd1f128['end']['parent'],'after'),_0x5e3f05=this['_model']['createRange'](_0x242b23,_0x2d7fcd['end']);this['_addSuggestionMarker'](_0x220c1d,_0x48490a,_0x850b7f,_0x5e3f05);}else{if(_0x2d7fcd['containsPosition'](_0xd1f128['start'])){const _0x37cd24=this['_model']['createPositionAt'](_0xd1f128['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e4771,this['_model']['createRange'](_0x2d7fcd['start'],_0x37cd24));}else{const _0x179c80=this['_model']['createPositionAt'](_0xd1f128['end']['parent'],'after');this['_setSuggestionRange'](_0x4e4771,this['_model']['createRange'](_0x179c80,_0x2d7fcd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x7d6d5a){for(const {suggestion:_0x32a348,meta:_0x520fb6}of this['_findSuggestions'](_0x7d6d5a,'insertion')){if(!_0x520fb6['isOwn'])continue;const _0x155a2b=_0x32a348['getRanges']();for(const _0x1c6de8 of _0x155a2b)if(!_0x7d6d5a['getDifference'](_0x1c6de8)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x385223){return this['editor']['plugins']['get']('Users')['getUser'](_0x385223);}['_getExternalAuthor'](_0x4f7abd){const _0x45c814=this['editor']['plugins']['get']('Users'),_0x225590=_0x1a6417('external:'+_0x4f7abd),_0x5d20de=_0x45c814['getUser'](_0x225590);return _0x5d20de||_0x45c814['addUser']({'id':_0x225590,'name':_0x4f7abd});}['_createSuggestion'](_0x4582d3,_0x28bf4f,_0x39a65a,_0x577c76,_0x17d98f,_0x280cad){const _0x1e12ef=this['_getAuthorFromId'](_0x577c76);if(!_0x1e12ef)throw new _0x2f0245('track-changes-user-not-found',this,{'authorId':_0x577c76,'suggestionId':_0x39a65a});const _0x1dee2a=this['_suggestionFactory']['buildSuggestion'](_0x4582d3,_0x28bf4f,_0x39a65a,_0x1e12ef,_0x17d98f,_0x1ca31c=>{this['_updateSuggestionData'](_0x39a65a,{'attributes':_0x1ca31c});const _0x42fabe=this['getSuggestion'](_0x39a65a);this['_joinWithAdjacentSuggestions'](new Set([_0x42fabe])),this['_refreshSuggestionsChain'](new Set([_0x42fabe]));},_0x280cad);return this['listenTo'](_0x1dee2a,'accept',()=>{this['_updateSuggestionData'](_0x39a65a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1dee2a,'discard',()=>{this['_updateSuggestionData'](_0x39a65a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x39a65a,_0x1dee2a),this['_suggestionState']['set'](_0x1dee2a,'notReady'),_0x1dee2a;}['_splitMarkerName'](_0x3a0b33){return _0x7e3b6a(_0x3a0b33);}['_breakSuggestionMarker'](_0x1e359e,_0x236b3e,_0x493964){const _0x2b9789=_0x1e359e['getFirstRange'](),_0x5ac86c=_0x2b9789['start'],_0x467263=_0x2b9789['end'];this['_setSuggestionRange'](_0x1e359e,this['_model']['createRange'](_0x5ac86c,_0x236b3e));const _0x197c5a=_0x46153d(),_0x542030=_0x1e359e['creator']['id'],_0x50585c=_0x1e359e['type']+(_0x1e359e['subType']?':'+_0x1e359e['subType']:'');this['_setSuggestionData']({'id':_0x197c5a,'type':_0x50585c,'createdAt':new Date(),'authorId':_0x542030,'originalSuggestionId':_0x1e359e['_originalSuggestionId']||_0x1e359e['id'],'attributes':_0x1e359e['attributes'],'data':_0x1e359e['data']});const _0x47f745=this['_getAttributeKey'](_0x1e359e);('formatBlock'==_0x1e359e['type']||_0x47f745&&this['_isBlockAttribute'](_0x47f745))&&(_0x493964=this['_model']['createPositionBefore'](_0x493964['parent'])),this['_addSuggestionMarker'](_0x50585c,_0x197c5a,_0x542030,this['_model']['createRange'](_0x493964,_0x467263));}['_findSuggestions'](_0xa2a623,_0x25a0b2=null){const _0x235819=[],_0x58fb02=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xa2a623)||(_0xa2a623=[_0xa2a623]);for(const _0xd4db7b of this['getSuggestions']()){if(!_0xd4db7b['isInContent'])continue;if(_0x25a0b2&&_0xd4db7b['type']!=_0x25a0b2)continue;let _0x46901a=!0x1;for(const _0x2cfefa of _0xd4db7b['getRanges']()){for(const _0x465af0 of _0xa2a623){const _0x3191a0=_0x465af0['start']['isEqual'](_0x2cfefa['end'])||_0x465af0['end']['isEqual'](_0x2cfefa['start']);if(_0x3191a0||_0x465af0['getIntersection'](_0x2cfefa)){const _0x260072=_0x465af0['containsRange'](_0x2cfefa)&&zt(this['_model']['schema'],_0x2cfefa['start'],_0x465af0),_0x1b3a3a=_0x2cfefa['containsRange'](_0x465af0)&&zt(this['_model']['schema'],_0x465af0['start'],_0x2cfefa);_0x235819['push']({'suggestion':_0xd4db7b,'meta':{'isOwn':_0x58fb02==_0xd4db7b['author'],'isNextTo':_0x3191a0,'isInsideObject':_0x260072,'containsRangeInObject':_0x1b3a3a}}),_0x46901a=!0x0;break;}}if(_0x46901a)break;}}return _0x235819;}['_addSuggestionMarker'](_0x48879b,_0x2df917,_0x1c62fd,_0x2457b9,_0xda3dbd){this['_model']['change'](_0x5cf4f5=>{let _0x558dad='suggestion:'+_0x48879b+':'+_0x2df917+':'+_0x1c62fd;_0xda3dbd&&(_0x558dad=_0x558dad+':'+_0xda3dbd),_0x5cf4f5['addMarker'](_0x558dad,{'range':_0x2457b9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x48de7c){const _0x1af189=_0x48de7c['previous'],_0x22245c=_0x48de7c['next'];_0x48de7c['previous']=null,_0x48de7c['next']=null,null!=_0x1af189&&_0x1af189['next']==_0x48de7c&&(_0x1af189['next']=_0x22245c),null!=_0x22245c&&_0x22245c['previous']==_0x48de7c&&(_0x22245c['previous']=_0x1af189),'ready'==this['_suggestionState']['get'](_0x48de7c)&&(this['_suggestionState']['set'](_0x48de7c,'removed'),this['fire']('suggestionUnloaded',_0x48de7c,_0x1af189,_0x22245c));}['_setSuggestionData'](_0xb6d114){const _0x52563c=_0xb6d114['id'],_0x53bf1e=this['addSuggestionData'](_0xb6d114);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x905629=this['editor']['plugins']['get']('PendingActions'),_0x13a67e=_0x53bf1e['hasComments'],_0x18aac7=_0x53bf1e['subType']?_0x53bf1e['type']+':'+_0x53bf1e['subType']:_0x53bf1e['type'],_0x745c0f=this['editor']['locale'],_0x5645e1=_0x905629['add'](o(_0x745c0f,'PENDING_ACTION_SUGGESTION')),_0x1d3c0e={'id':_0x52563c,'type':_0x18aac7,'hasComments':_0x13a67e,'data':_0xb6d114['data']||null,'originalSuggestionId':_0xb6d114['originalSuggestionId']||null,'attributes':_0x53bf1e['attributes']};this['_adapter']['addSuggestion'](_0x1d3c0e)['then'](_0x3609f8=>{_0x53bf1e['_saved']=!0x0,_0x905629['remove'](_0x5645e1),_0x3609f8&&_0x3609f8['createdAt']&&(this['_suggestions']['get'](_0x52563c)['createdAt']=_0x3609f8['createdAt']);})['catch'](_0x449984=>{throw _0x35d946('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x53bf1e['discard']();}),_0x53bf1e['stopListening'](),this['_suggestions']['delete'](_0x53bf1e['id']),this['_suggestionState']['delete'](_0x53bf1e),_0x449984;});}return _0x53bf1e;}['_isBlockAttribute'](_0x1dc9ed){return this['editor']['plugins']['get'](_0x4debab)['isBlockAttribute'](_0x1dc9ed);}['_isInlineAttribute'](_0x349603){return this['editor']['plugins']['get'](_0x4debab)['isInlineAttribute'](_0x349603);}['_updateSuggestionData'](_0x13561e,_0x4df222){const _0x1251b8=this['editor']['plugins']['get']('PendingActions'),_0x157c46=this['getSuggestion'](_0x13561e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x157c46['_saved']){const _0x32b799=_0x1251b8['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x13561e,_0x4df222)['then'](()=>{_0x1251b8['remove'](_0x32b799);});}else _0x157c46['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x13561e,_0x4df222);});}}['_getSuggestionData'](_0x316ce5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2f0245('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x316ce5);}['_handleNewSuggestionMarker'](_0x139f66){const {id:_0x1e1416,type:_0x367864,subType:_0x5bba7a,authorId:_0x163b03}=this['_splitMarkerName'](_0x139f66),_0x481530=this['_suggestions']['get'](_0x1e1416)||this['_createSuggestion'](_0x367864,_0x5bba7a,_0x1e1416,_0x163b03,{});switch(this['_checkSuggestionCorrectness'](_0x481530,_0x367864,_0x5bba7a,_0x163b03),this['_suggestionState']['get'](_0x481530)){case'notReady':this['_getSuggestionData'](_0x1e1416)['then'](_0xd94a28=>{let _0x569271=Promise['resolve']();_0xd94a28['hasComments']&&(_0x569271=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1e1416})),_0x569271['then'](()=>{this['addSuggestionData'](_0xd94a28)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x481530,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1e1416,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x481530,'ready'),this['fire']('suggestionLoaded',_0x481530);break;case'ready':this['fire']('suggestionChanged',_0x481530);}return _0x481530['addMarkerName'](_0x139f66),_0x481530;}['_refreshSuggestionsChain'](_0x12c3f5){const _0x4b7d5b=Array['from'](_0x12c3f5),_0x45be2e=_0x4b7d5b['filter'](_0x242e43=>'attribute'==_0x242e43['type']);this['_refreshAttributeSuggestionsChain'](_0x45be2e);const _0x3701ce=_0x4b7d5b['filter'](_0x265775=>!_0x265775['isMultiRange']&&'attribute'!=_0x265775['type']),_0x4e649f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x415e0b=>!_0x415e0b['isMultiRange']&&'attribute'!=_0x415e0b['type']),_0x23245b=_0x4e649f['filter'](_0x4aaf4d=>!_0x12c3f5['has'](_0x4aaf4d)),_0x27ce58=new Map(_0x4e649f['map'](_0x327cb4=>[_0x327cb4,this['_suggestionFactory']['getSuggestionCallback'](_0x327cb4['type'],_0x327cb4['subType'],'chain')])),_0x590a11=new Map(_0x4e649f['map'](_0x30e3ff=>[_0x30e3ff,_0x30e3ff['getFirstRange']()])),_0x881b9f=new Set(),_0x4b272d=new Set();for(let _0x5a8ce2=0x0;_0x5a8ce2<_0x3701ce['length'];_0x5a8ce2++)_0x267cfa(_0x3701ce[_0x5a8ce2],_0x3701ce,_0x5a8ce2+0x1);for(let _0x47b586=0x0;_0x47b586<_0x3701ce['length'];_0x47b586++)_0x267cfa(_0x3701ce[_0x47b586],_0x23245b,0x0);const _0x1e7989=new Set();for(let _0x4033d9=0x0;_0x4033d9<_0x3701ce['length'];_0x4033d9++){const _0x299352=_0x3701ce[_0x4033d9];!_0x4b272d['has'](_0x299352)&&_0x299352['previous']&&(_0x1e7989['add'](_0x299352['previous']),_0x299352['previous']['next']===_0x299352&&(_0x299352['previous']['next']=null),_0x299352['previous']=null),!_0x881b9f['has'](_0x299352)&&_0x299352['next']&&(_0x1e7989['add'](_0x299352['next']),_0x299352['next']['previous']===_0x299352&&(_0x299352['next']['previous']=null),_0x299352['next']=null);}function _0x267cfa(_0xe5d841,_0x4fea3c,_0x2179c1){for(let _0x2a27da=_0x2179c1;_0x2a27da<_0x4fea3c['length'];_0x2a27da++){const _0x488ef8=_0x2de084(_0xe5d841,_0x4fea3c[_0x2a27da]);_0x488ef8&&(_0x488ef8[0x0]['next']=_0x488ef8[0x1],_0x488ef8[0x1]['previous']=_0x488ef8[0x0],_0x881b9f['add'](_0x488ef8[0x0]),_0x4b272d['add'](_0x488ef8[0x1]));}}function _0x2de084(_0x3e9c15,_0x598c1b){if(_0x3e9c15['author']['id']!==_0x598c1b['author']['id'])return null;const _0x470ab3=_0x27ce58['get'](_0x3e9c15)(_0x3e9c15,_0x598c1b,_0x590a11['get'](_0x3e9c15),_0x590a11['get'](_0x598c1b));if(!_0x470ab3)return null;return _0x27ce58['get'](_0x598c1b)(_0x3e9c15,_0x598c1b,_0x590a11['get'](_0x3e9c15),_0x590a11['get'](_0x598c1b))?_0x470ab3[0x1]['commentThread']&&_0x470ab3[0x1]['commentThread']['length']?null:_0x470ab3:null;}_0x1e7989['size']&&this['_refreshSuggestionsChain'](_0x1e7989);}['_refreshAttributeSuggestionsChain'](_0x17f95d){if(0x0==_0x17f95d['length'])return;const _0x4dfdc7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x320f84=>'attribute'==_0x320f84['type']&&_0x320f84['_isDataLoaded']),_0x200132=[],_0x151d40=new Map();for(const _0x4ae725 of _0x4dfdc7){const _0xa51d83=_0x1a6417(_0x4ae725['attributes']);_0x151d40['has'](_0xa51d83)||(_0x151d40['set'](_0xa51d83,_0x200132['length']),_0x200132['push']([]));const _0xc4d6a5=_0x151d40['get'](_0xa51d83);_0x200132[_0xc4d6a5]['push'](_0x4ae725);}!(function(){_0x200132['sort']((_0x545001,_0xa150ab)=>{const _0x599f55=_0x545001[0x0]['createdAt'],_0x589bc3=_0xa150ab[0x0]['createdAt'];return _0x599f55==_0x589bc3?_0x545001[0x0]['attributes']['groupId']<_0xa150ab[0x0]['attributes']['groupId']?-0x1:0x1:_0x599f55<_0x589bc3?-0x1:0x1;});for(const _0xa6126c of _0x200132)_0xa6126c['sort']((_0x2364b9,_0x1a26ad)=>_0x2364b9['id']<_0x1a26ad['id']?-0x1:0x1);}());for(let _0x4a3792=0x0;_0x4a3792<_0x200132['length'];_0x4a3792++){if(0x0==_0x200132[_0x4a3792]['length'])continue;const _0x5db7af=[];for(let _0x57cdcd=_0x4a3792+0x1;_0x57cdcd<_0x200132['length'];_0x57cdcd++)0x0!=_0x200132[_0x57cdcd]['length']&&_0x6ac4bd(_0x200132[_0x4a3792],_0x200132[_0x57cdcd])&&_0x5db7af['push'](_0x57cdcd);for(const _0x36c3db of _0x5db7af)_0x200132[_0x4a3792]=_0x200132[_0x4a3792]['concat'](_0x200132[_0x36c3db]),_0x200132[_0x36c3db]=[];}for(const _0x2b6a17 of _0x200132)for(let _0x4a78a3=0x0;_0x4a78a3<_0x2b6a17['length'];_0x4a78a3++){const _0x54bbff=_0x2b6a17[_0x4a78a3+0x1]||null;_0x2b6a17[_0x4a78a3]['next']!==_0x54bbff&&(_0x2b6a17[_0x4a78a3]['next']=_0x54bbff);}for(const _0x3a17fb of _0x200132)for(let _0x7180d9=0x0;_0x7180d9<_0x3a17fb['length'];_0x7180d9++){const _0x2e5c8b=_0x3a17fb[_0x7180d9-0x1]||null;_0x3a17fb[_0x7180d9]['previous']!==_0x2e5c8b&&(_0x3a17fb[_0x7180d9]['previous']=_0x2e5c8b);}function _0x6ac4bd(_0xe2c8c1,_0x419e76){if(_0xe2c8c1[0x0]['attributes']['groupId']!==_0x419e76[0x0]['attributes']['groupId']&&_0xe2c8c1[0x0]['author']!==_0x419e76[0x0]['author'])return!0x1;if(!function(_0x4fd3b1,_0x397250){if(!_0x4fd3b1['hasComments']&&!_0x397250['hasComments'])return!0x0;if(_0x4fd3b1['hasComments']&&_0x397250['hasComments'])return!0x1;if(_0x4fd3b1['hasComments']&&_0x397250['createdAt']<_0x4fd3b1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x397250['hasComments']&&_0x4fd3b1['createdAt']<_0x397250['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xe2c8c1[0x0],_0x419e76[0x0]))return!0x1;const _0x3a6f11=Jt(_0xe2c8c1[0x0]['attributes'],['groupId','trackingSessionId']),_0x44c737=Jt(_0x419e76[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3d8183(_0x3a6f11,_0x44c737))return!0x1;if(_0xe2c8c1[0x0]['attributes']['groupId']==_0x419e76[0x0]['attributes']['groupId'])return!0x0;if(_0xe2c8c1[0x0]['attributes']['trackingSessionId']!==_0x419e76[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xe2c8c1['every'](_0x1bd59a=>_0x419e76['some'](_0x2ddfaf=>_0x1bd59a['getFirstRange']()['isEqual'](_0x2ddfaf['getFirstRange']())))&&_0x419e76['every'](_0x4ef066=>_0xe2c8c1['some'](_0x25b88d=>_0x4ef066['getFirstRange']()['isEqual'](_0x25b88d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x268402){const _0x1764ba=Array['from'](_0x268402),_0x426fe3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x29ef5d=_0x426fe3['filter'](_0x15bbdf=>!_0x268402['has'](_0x15bbdf)),_0x123977=new Map(_0x1764ba['map'](_0x414dcb=>[_0x414dcb,this['_suggestionFactory']['getSuggestionCallback'](_0x414dcb['type'],_0x414dcb['subType'],'join')])),_0x585798=new Map(_0x426fe3['map'](_0x5edece=>[_0x5edece,_0x5edece['getRanges']()]));for(let _0x37a6df=0x0;_0x37a6df<_0x1764ba['length'];_0x37a6df++){if(_0x48ca47(this,_0x1764ba[_0x37a6df],_0x1764ba,_0x37a6df+0x1))return!0x0;}for(let _0x1d3201=0x0;_0x1d3201<_0x1764ba['length'];_0x1d3201++){if(_0x48ca47(this,_0x1764ba[_0x1d3201],_0x29ef5d,0x0))return!0x0;}return!0x1;function _0x48ca47(_0x4be8af,_0xa9b336,_0x1e8494,_0x2c0182){for(let _0x492835=_0x2c0182;_0x492835<_0x1e8494['length'];_0x492835++){const _0x2bbaf7=_0x1e8494[_0x492835];if(_0x2bbaf7['type']!==_0xa9b336['type']||_0x2bbaf7['author']['id']!==_0xa9b336['author']['id']||_0x2bbaf7['subType']!==_0xa9b336['subType'])continue;if(!en(_0xa9b336,_0x2bbaf7))continue;if('attribute'==_0xa9b336['type']&&_0xa9b336['data']['oldValue']!=_0x2bbaf7['data']['oldValue'])continue;if('attribute'==_0xa9b336['type']&&_0x4be8af['_isBlockAttribute'](_0xa9b336['data']['key']))continue;if('formatBlock'==_0xa9b336['type']){const _0x523a33=_0x4be8af['editor']['model'],_0x2cbced=_0xa9b336['getContainedElement']();if(_0x2cbced&&(_0x523a33['schema']['isObject'](_0x2cbced)||_0x523a33['schema']['isLimit'](_0x2cbced)))continue;}const _0x34472b=_0x123977['get'](_0xa9b336),_0x318813=_0x585798['get'](_0xa9b336),_0x294c99=_0x585798['get'](_0x2bbaf7),_0x304b55=_0xa9b336['commentThread']&&_0xa9b336['commentThread']['length'],_0xdefe2d=_0x2bbaf7['commentThread']&&_0x2bbaf7['commentThread']['length'];if(!_0x304b55&&_0x34472b(_0x294c99,_0x318813))return _0x4be8af['_joinSuggestions'](_0x2bbaf7,_0xa9b336),_0x585798['delete'](_0xa9b336),!0x0;if(!_0xdefe2d&&_0x34472b(_0x318813,_0x294c99))return _0x4be8af['_joinSuggestions'](_0xa9b336,_0x2bbaf7),_0x585798['delete'](_0x2bbaf7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1ee098,_0x33eb7f){if(_0x1ee098['isMultiRange']){for(const _0x3be691 of _0x33eb7f['getRanges']())_0x1ee098['addRange'](_0x3be691);}else{const _0x4d2a1d=_0x33eb7f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1ee098,this['_model']['createRange'](_0x1ee098['getFirstRange']()['start'],_0x4d2a1d));}_0x33eb7f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x532788,_0x539773,_0xd34f3b){const _0xfa5e97=_0x532788['startsWith']('format')||_0x532788['startsWith']('attribute')?'FORMATTING':_0x532788['toUpperCase']();return o(this['editor']['locale'],_0x539773+'_'+_0xfa5e97+'_SUGGESTION_ANNOUNCEMENT',_0xd34f3b);}['_initAriaMarkerChangeAnnouncements'](){const _0x3fcd1a=this['editor'];if(!_0x3fcd1a['ui'])return;const {ariaLiveAnnouncer:_0x3c6693}=_0x3fcd1a['ui'];_0x14304a(this['_model'],({left:_0x4a59d5,entered:_0x2b21b1})=>{for(const _0x685cba of _0x4a59d5){const {group:_0x9808f4,type:_0x494f91}=this['_splitMarkerName'](_0x685cba['name']);if('suggestion'===_0x9808f4){_0x3c6693['announce'](this['_getMarkerAnnouncementText'](_0x494f91,'LEAVE'));break;}}for(const _0x408426 of _0x2b21b1){const {group:_0x27f880,type:_0x4d0796}=this['_splitMarkerName'](_0x408426['name']);if('suggestion'===_0x27f880){_0x3c6693['announce'](this['_getMarkerAnnouncementText'](_0x4d0796,'ENTER',_0x12cc2c(_0x714db6)));break;}}});}['_processAttributeChanges'](_0x5378ae){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2005fc=this['editor'],_0x4c1a44=_0x2005fc['model']['document']['differ']['getChanges']();if(0x0==_0x4c1a44['length'])return!0x1;const _0x4eb758=[],_0x13c143=_0x4c1a44['filter'](_0x393e24=>'attribute'==_0x393e24['type']),_0x550842=_0x4c1a44['filter'](_0x23c7b1=>'insert'==_0x23c7b1['type']&&'$text'!=_0x23c7b1['name']),_0x34ce54=_0x4c1a44['filter'](_0x3b0491=>'remove'==_0x3b0491['type']&&'$text'!=_0x3b0491['name']);for(const _0xaeae7f of _0x13c143)_0x4eb758['push']({'key':_0xaeae7f['attributeKey'],'newValue':_0xaeae7f['attributeNewValue'],'oldValue':_0xaeae7f['attributeOldValue'],'range':Zt(_0xaeae7f['range'],_0x2005fc['model'])});for(const _0x122c20 of _0x550842){const _0x416deb=_0x34ce54['find'](_0x48276b=>_0x48276b['position']['isEqual'](_0x122c20['position']));_0x416deb&&_0x4eb758['push']({'key':m,'newValue':_0x122c20['name'],'oldValue':_0x416deb['name'],'range':_0x2005fc['model']['createRangeOn'](_0x122c20['position']['nodeAfter'])});}return 0x0!=_0x4eb758['length']&&this['_reduceExistingSuggestions'](_0x5378ae,_0x4eb758);}['_processAttributeSuggestions'](_0x2efa4b){let _0x3525e8=!0x1;const _0x3e93cd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xe48622=>_0xe48622['data']['newRange']&&_0xe48622['name']['startsWith']('suggestion:attribute:'));for(const _0x4b0b22 of _0x3e93cd){const {subType:_0x2c6c42,id:_0x161062}=this['_splitMarkerName'](_0x4b0b22['name']),_0x38184b=_0x2c6c42['split']('|')[0x0];for(const _0xb8fdf3 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xb8fdf3['id']!=_0x161062&&'attribute'==_0xb8fdf3['type']&&_0xb8fdf3['data']&&_0xb8fdf3['data']['key']==_0x38184b&&_0xb8fdf3['getFirstRange']()['isIntersecting'](_0x4b0b22['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xb8fdf3,_0x4b0b22['data']['newRange'],_0x2efa4b),_0x3525e8=!0x0);}return _0x3525e8;}['recordAttributeChanges'](_0x24ceaa){this['_recordAttributeSuggestions']=!0x0,_0x24ceaa();}['_isRegisteredAttribute'](_0x28aab3){return this['editor']['plugins']['get'](_0x4debab)['isRegisteredAttribute'](_0x28aab3);}['_reduceExistingSuggestions'](_0x57f292,_0x251655){if(0x0==_0x251655['length'])return!0x1;let _0x180706=!0x1;for(const _0x1e1028 of _0x251655){const _0x4636fd=this['_findSuggestions'](_0x1e1028['range'],'attribute')['filter'](_0x23cf8c=>!_0x23cf8c['meta']['isNextTo'])['map'](_0x49ddc8=>_0x49ddc8['suggestion']),_0x4e9b86=_0x1a6417({'newValue':_0x1e1028['newValue']});_0x4636fd['filter'](_0xf023b1=>{const [_0x239ab8,_0x1daa13]=_0xf023b1['subType']['split']('|');return _0x239ab8==_0x1e1028['key']&&_0x1daa13!=_0x4e9b86;})['forEach'](_0x4134c2=>{this['_reduceSuggestionAttributeRange'](_0x4134c2,_0x1e1028['range'],_0x57f292),_0x180706=!0x0;});}return _0x180706;}['_reduceSuggestionAttributeRange'](_0x4746cf,_0x2f95c3,_0x3fbe0d){const _0x2efaac=_0x4746cf['getFirstRange']()['getDifference'](_0x2f95c3);0x0!==_0x2efaac['length']?0x1!==_0x2efaac['length']?this['_breakSuggestionMarker'](_0x4746cf,_0x2f95c3['start'],_0x2f95c3['end']):this['_setSuggestionRange'](_0x4746cf,_0x2efaac[0x0]):_0x3fbe0d['removeMarker'](_0x4746cf['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x16783f){this['_editor']=_0x16783f,this['_model']=_0x16783f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x825cb5,_0x2ddd46,_0x2de3cd,_0x5d9bc4,_0x2fbb3a,_0x1db22b,_0x1cafdd){return new T(this['_model'],{'type':_0x825cb5,'subType':_0x2ddd46,'id':_0x2de3cd,'originalSuggestionId':_0x1cafdd,'author':_0x5d9bc4,'creator':_0x5d9bc4,'attributes':_0x2fbb3a,'onAttributesChange':_0x1db22b,'onAccept':(..._0x506441)=>this['getSuggestionCallback'](_0x825cb5,_0x2ddd46,'accept')(..._0x506441),'onDiscard':(..._0x39b428)=>this['getSuggestionCallback'](_0x825cb5,_0x2ddd46,'discard')(..._0x39b428)});}['registerCustomCallback'](_0x5f03fc,_0x188e29,_0x2f4d53,_0xbc7694){const _0x3dba36=_0x5f03fc+':'+_0x188e29+':'+_0x2f4d53;this['_customCallbacks']['set'](_0x3dba36,_0xbc7694);}['getSuggestionCallback'](_0x407da7,_0x2dbf45,_0x5c0d8d){const _0x3aa970=_0x407da7+':'+_0x2dbf45+':'+_0x5c0d8d;return this['_customCallbacks']['get'](_0x3aa970)||this['_defaultCallbacks']['get'](_0x407da7+':'+_0x5c0d8d);}['_registerDefaultCallbacks'](){const _0x590a17=()=>!0x1,_0xac5051=_0x197ab7=>{_0x197ab7['sort']((_0x5730c8,_0x1061ce)=>_0x5730c8['start']['isBefore'](_0x1061ce['start'])?0x1:-0x1),this['_model']['change'](_0x5040f7=>{for(const _0x2e8594 of _0x197ab7){let _0x5e1362;_0x5e1362=_0x2e8594['end']['isAtEnd']&&_0x2e8594['end']['parent']==_0x2e8594['start']['nodeAfter']?_0x5040f7['createSelection'](_0x2e8594['start']['nodeAfter'],'on'):_0x5040f7['createSelection'](_0x2e8594),this['_model']['deleteContent'](_0x5e1362,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3c326b=(_0x4c30c5,_0x4ec707)=>{_0x4ec707&&this['_model']['change'](_0x215572=>{const {commandName:_0x49f60a,commandParams:_0x245f67=[]}=_0x4ec707,_0x5733d4=_0x4c30c5['map'](_0x5d3282=>(Kt(_0x5d3282)&&(_0x5d3282=this['_model']['createRange'](_0x5d3282['end'])),_0x5d3282))['filter'](_0x499af5=>'$graveyard'!==_0x499af5['root']['rootName']);if(_0x5733d4['length']<0x1)return;const _0x5655df=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1d4492=>_0x596d93['fromRange'](_0x1d4492));_0x215572['setSelection'](_0x5733d4);for(const _0x5b4b8b of this['_editor']['commands']['commands']())_0x5b4b8b['refresh']();_0x245f67['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x49f60a,..._0x245f67);const _0x4563a8=_0x5655df['filter'](_0x1ed699=>'$graveyard'!=_0x1ed699['root']['rootName']);_0x4563a8['length']>0x0&&_0x215572['setSelection'](_0x4563a8);for(const _0xfe07fc of _0x5655df)_0xfe07fc['detach']();});},_0x1a9bb2=(_0x158daf,_0x57ff35)=>0x1==_0x158daf['length']&&0x1==_0x57ff35['length']&&_0x158daf[0x0]['end']['isEqual'](_0x57ff35[0x0]['start']),_0x106109=(_0x517d83,_0x3fed02,_0x3b7bdb,_0x111aa1)=>nn(_0x517d83,_0x3fed02,_0x3b7bdb,_0x111aa1)?[_0x517d83,_0x3fed02]:nn(_0x3fed02,_0x517d83,_0x111aa1,_0x3b7bdb)?[_0x3fed02,_0x517d83]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x590a17),this['_defaultCallbacks']['set']('insertion:discard',_0xac5051),this['_defaultCallbacks']['set']('insertion:join',_0x1a9bb2),this['_defaultCallbacks']['set']('insertion:chain',_0x106109),this['_defaultCallbacks']['set']('deletion:accept',_0xac5051),this['_defaultCallbacks']['set']('deletion:discard',_0x590a17),this['_defaultCallbacks']['set']('deletion:join',_0x1a9bb2),this['_defaultCallbacks']['set']('deletion:chain',_0x106109),this['_defaultCallbacks']['set']('formatInline:accept',_0x3c326b),this['_defaultCallbacks']['set']('formatInline:discard',_0x590a17),this['_defaultCallbacks']['set']('formatInline:join',_0x1a9bb2),this['_defaultCallbacks']['set']('formatInline:chain',_0x590a17),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3c326b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x590a17),this['_defaultCallbacks']['set']('formatBlock:join',_0x1a9bb2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x590a17),this['_defaultCallbacks']['set']('attribute:accept',_0x590a17),this['_defaultCallbacks']['set']('attribute:discard',(_0x17979a,_0xdc05f0)=>{if(!_0xdc05f0)return;const _0x252056=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x217e7c=>{if(_0xdc05f0['key']==m)for(const _0x42c18a of _0x17979a){const _0x45fc40=_0x42c18a['start']['nodeAfter'],_0x796d7a=_0xdc05f0['oldValue'];_0x217e7c['rename'](_0x45fc40,_0x796d7a);}else{if(_0x252056['_isBlockAttribute'](_0xdc05f0['key'])){for(const _0x18c69e of _0x17979a)void 0x0!==_0xdc05f0['oldValue']?_0x217e7c['setAttribute'](_0xdc05f0['key'],_0xdc05f0['oldValue'],_0x18c69e['start']['nodeAfter']):_0x217e7c['removeAttribute'](_0xdc05f0['key'],_0x18c69e['start']['nodeAfter']);}else{for(const _0x1714d2 of _0x17979a)_0xdc05f0['oldValue']?_0x217e7c['setAttribute'](_0xdc05f0['key'],_0xdc05f0['oldValue'],_0x1714d2):_0x217e7c['removeAttribute'](_0xdc05f0['key'],_0x1714d2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1a9bb2);}}function zt(_0x5adf32,_0x541664,_0x260e53){for(const _0x3009a8 of _0x541664['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3009a8['root']==_0x3009a8)return!0x1;if(!_0x260e53['containsItem'](_0x3009a8))return!0x1;if(_0x5adf32['isObject'](_0x3009a8)||_0x5adf32['isLimit'](_0x3009a8))return!0x0;}return!0x1;}function Kt(_0x55e0c2){return _0x55e0c2['end']['parent']==_0x55e0c2['start']['nodeAfter']&&_0x55e0c2['end']['isAtStart'];}function Wt(_0x4a4dc7,_0x13f105,_0x3707fc,_0x284f52){const _0x23da4a=_0x20540e=>!_0x20540e['item']['is']('$textProxy')&&!_0x284f52['isObject'](_0x20540e['item']),_0x3e355d=_0x4a4dc7['start']['getLastMatchingPosition'](_0x23da4a),_0x16fc99=_0x4a4dc7['end']['getLastMatchingPosition'](_0x23da4a,{'direction':'backward'});return(!_0x4a4dc7['start']['isEqual'](_0x3e355d)||!_0x4a4dc7['end']['isEqual'](_0x16fc99))&&(_0x3e355d['isBefore'](_0x16fc99)?_0x3707fc['updateMarker'](_0x13f105,{'range':_0x3707fc['createRange'](_0x3e355d,_0x16fc99)}):_0x3707fc['removeMarker'](_0x13f105),!0x0);}function Ht(_0x4b70a7){return _0x1a6417(_0x4b70a7);}function Qt(_0x5173d4){const _0x39d538=_0x5173d4['start']['nodeAfter'];return _0x39d538&&_0x39d538['is']('element');}function Xt(_0x446fe8){return Kt(_0x446fe8)||function(_0x15c3d5){return _0x15c3d5['start']['parent']==_0x15c3d5['end']['nodeBefore']&&_0x15c3d5['start']['isAtEnd'];}(_0x446fe8);}function Yt(_0x432828,_0x514c38){try{const _0xb7cef7=_0x432828['getRange']();for(const _0x24b071 of _0x514c38)if(_0x432828!==_0x24b071&&_0xb7cef7&&_0xb7cef7['isIntersecting'](_0x24b071['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x2054e1,_0x51df07){return null==_0x2054e1['end']['nodeBefore']&&_0x2054e1['end']['parent']==_0x2054e1['start']['nodeAfter']?tn(_0x2054e1['start']['nodeAfter'],_0x51df07):_0x2054e1;}function tn(_0x43dde6,_0x3f0082){const _0xf6758=_0x3f0082['schema']['isObject'](_0x43dde6)||_0x3f0082['schema']['isSelectable'](_0x43dde6);return _0x3f0082['createRange'](_0x3f0082['createPositionAt'](_0x43dde6,'before'),_0xf6758?_0x3f0082['createPositionAfter'](_0x43dde6):_0x3f0082['createPositionAt'](_0x43dde6,'end'));}function nn(_0x574cf2,_0x280127,_0x28ef34,_0x3dba91){return!!en(_0x574cf2,_0x280127)&&_0x28ef34['end']['isEqual'](_0x3dba91['start']);}function en(_0x1aed45,_0x1d9b48){if(!_0x1aed45['_isDataLoaded']||!_0x1d9b48['_isDataLoaded'])return!0x1;const _0x2068c4=new Set(Object['keys'](_0x1aed45['attributes'])),_0x3b1b2c=new Set(Object['keys'](_0x1d9b48['attributes']));if(_0x2068c4['delete']('groupId'),_0x3b1b2c['delete']('groupId'),0x0==_0x2068c4['size']&&0x0==_0x3b1b2c['size'])return!0x0;if(_0x2068c4['size']!=_0x3b1b2c['size'])return!0x1;const _0x4af69c={..._0x1aed45['attributes']},_0xf1e10c={..._0x1d9b48['attributes']};return delete _0x4af69c['groupId'],delete _0xf1e10c['groupId'],JSON['stringify'](_0x4af69c)==JSON['stringify'](_0xf1e10c);}function sn(_0x4a1716,_0xe28fa1){const _0x3150c4=on(_0x4a1716['attributes']),_0x211446=on(_0xe28fa1);if(!_0x4a1716['_isDataLoaded'])return!0x1;for(const _0x331b88 of Object['keys'](_0x211446))if(!_0x3d8183(_0x3150c4[_0x331b88],_0x211446[_0x331b88]))return!0x1;return!0x0;}function on(_0x498eb9){const _0x58f4d9=Object['assign']({},_0x498eb9);return delete _0x58f4d9['skipNestingCheck'],delete _0x58f4d9['tablePasteChainId'],_0x58f4d9;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x3cbdec(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xea67a0,_0x1cecfe,_0xd26b12,_0x19c8a0){super(),this['model']=_0x1cecfe,this['view']=_0xd26b12,this['commentThreadController']=_0x19c8a0,this['_editor']=_0xea67a0,this['_acceptCommand']=_0xea67a0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xea67a0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4d92cc,_0x15a79c)=>_0x4d92cc||_0x15a79c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x52b5d3=>_0x52b5d3&&this['_editor']['model']['canEditAt'](_0x1cecfe['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x205809=>_0x205809&&this['_editor']['model']['canEditAt'](_0x1cecfe['getRanges']())),this['_pendingAction']=null,_0xd26b12['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xd26b12,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xd26b12,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xd26b12,'change:isDirty',()=>{_0xd26b12['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 _0x57bd6d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x57bd6d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x4f487c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x9b4409,_0x30516e,_0x2721d9,_0x31ef43){super(_0x9b4409),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1904b0(_0x9b4409,o(_0x9b4409,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x30516e['authoredAt']),this['bind']('authoredAt')['to'](_0x30516e),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',_0x30516e,'authoredAt',this,'descriptionParts',(_0x41fdea,_0x1eb65b,_0x5ba806)=>{const _0xa042dc=_0x5ba806['map'](_0x31b63d=>ls(_0x31b63d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x41fdea-0x1,_0x30516e['author']['name'],_0x1eb65b?_0x31ef43['formatDateTime'](_0x1eb65b):'',new DOMParser()['parseFromString'](_0xa042dc,'text/html')['body']['textContent']]);}),this['focusables']=new _0xb814a5(),this['focusTracker']=new _0x523bcb(),this['keystrokes']=new _0x31b713(),this['focusCycler']=new _0x33a1e7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2ae7f5=>_0x2ae7f5['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x30516e,this['_localUser']=_0x2721d9,this['_config']=_0x31ef43,_0x31ef43['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x155ab8(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3ec860}=this['_config'];this['commentsListView']=new _0x3ec860(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',_0x1f61c9=>_0x1f61c9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5f0bef,_0x4a012c)=>_0x5f0bef||!!_0x4a012c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4cc8e3}=this['_config'],_0x4c8724=new _0x4cc8e3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3ec95d=_0x4c8724['commentInputView'];return _0x4c8724['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3ec95d,'value',(_0x34caab,_0x2f5746,_0x1924ce)=>!!_0x1924ce||_0x34caab&&!_0x2f5746),_0x3ec95d['on']('submit',(_0x42a80f,_0xe5323e)=>{this['fire']('addComment',_0xe5323e),_0x3ec95d['editor']['setData']('');}),_0x3ec95d['on']('cancel',()=>this['focus']()),_0x3ec95d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4c8724;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x143154,_0x3fce97,_0x25fee3,_0x596eb2){super(_0x143154,_0x3fce97,_0x25fee3,_0x596eb2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x13c060=>_0x13c060&&_0x13c060[0x0]?_0x13c060[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1f5eb0,_0x305b2f)=>{let _0x5b248a='';for(const _0x50afb2 of _0x1f5eb0)_0x5b248a+='<p>'+ls(_0x50afb2['content'],_0x50afb2['color'])+'</p>';return _0x305b2f?_0x5b248a:_0x3f0150(_0x5b248a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x596eb2['SuggestionView'](_0x143154,_0x3fce97,{'formatDateTime':_0x596eb2['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 _0xd89b79=this['bindTemplate'],_0x1f11ba=[this['suggestionView']];return this['commentsListView']&&_0x1f11ba['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f11ba['push'](this['commentThreadInputView']),_0x1f11ba['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xd89b79['if']('isActive','ck-suggestion-wrapper--active'),_0xd89b79['to']('type',_0x103ecf=>'ck-suggestion-'+_0x103ecf),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':_0xd89b79['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f11ba};}['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 _0x4f487c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4d7fb0,_0x765cbc,_0x169dd1){super(_0x4d7fb0),this['_model']=_0x765cbc,this['_config']=_0x169dd1,this['set']('description',''),this['bind']('authoredAt')['to'](_0x765cbc),this['acceptButton']=this['_createButton'](o(_0x4d7fb0,'Accept\x20suggestion'),_0x577fd1,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4d7fb0,'Discard\x20suggestion'),_0x1c7e49,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1830ea(_0x4d7fb0,_0x765cbc['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xb814a5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x523bcb(),this['keystrokes']=new _0x31b713(),this['focusCycler']=new _0x33a1e7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1b5f61=>_0x1b5f61['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x58c9ae=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x58c9ae['innerHTML']=this['description'],this['on']('change:description',(_0x11bcf1,_0x4d2009,_0x330564)=>{_0x58c9ae['innerHTML']=_0x330564;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xfeb30c=this['bindTemplate'],_0x29a5aa=[{'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':_0xfeb30c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xfeb30c['to']('authoredAt',_0x25a009=>this['_config']['formatDateTime'](_0x25a009))}]}]},{'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']&&_0x29a5aa['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':_0x29a5aa}]};}['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'](_0x1b4c0f,_0xb813d3,_0x5c7b52,_0x57ca0f,_0x4362b3){const _0x2abca4=new _0x2abc0f(this['locale']);return _0x2abca4['set']({'label':_0x1b4c0f,'icon':_0xb813d3,'tooltip':!0x0,'tooltipPosition':_0x4362b3}),_0x2abca4['extendTemplate']({'attributes':{'class':_0x5c7b52}}),_0x2abca4['on']('execute',()=>{this['fire'](_0x57ca0f,this['_model']['id']);}),_0x2abca4;}['_setupKeyboardNavigation'](){const _0x2df8cc=this['element'];this['keystrokes']['listenTo'](_0x2df8cc);for(const _0x1f1e4e of this['focusables'])this['focusTracker']['add'](_0x1f1e4e['element']),this['keystrokes']['listenTo'](_0x1f1e4e['element']);this['keystrokes']['set']('enter',(_0x349b26,_0x417d79)=>{_0x2df8cc===_0x349b26['target']&&(this['focusCycler']['focusFirst'](),_0x417d79());}),this['keystrokes']['set']('esc',(_0x3e8cee,_0x3b2b0d)=>{_0x2df8cc!==_0x3e8cee['target']&&(this['focus'](),_0x3b2b0d());});}}class u extends _0x447d1d{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3eb489,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x65c024){super(_0x65c024),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xab9a65=this['editor']['config'];_0xab9a65['define']('trackChanges.SuggestionThreadView',fe),_0xab9a65['define']('trackChanges.SuggestionView',we),_0xab9a65['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xab9a65['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x347a87,_0x153c07){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x200825,_0x182698]of this['_handleControllerBuffer']){const _0x1e353e=this['_suggestionToController']['has'](_0x200825);_0x1e353e||_0x182698?_0x1e353e&&_0x182698&&this['_destroyController'](_0x200825):this['_initializeController'](_0x200825);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x347a87,_0x153c07);}['init'](){const _0x1b0d59=this['editor'],_0x496f8a=_0x1b0d59['plugins']['get']('TrackChangesEditing'),_0x399065=_0x1b0d59['plugins']['get']('Annotations'),_0x1f1878=_0x1b0d59['plugins']['get']('EditorAnnotations'),_0x113abe=_0x1b0d59['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1f1878['addSourceCollector'](()=>{const _0x244fc9=[];for(const [_0x20e6d5,_0x50808d]of Array['from'](this['_suggestionToController'])){const _0x4f9dc2=_0x20e6d5['getAllAdjacentSuggestions'](),_0x242ca5=[];for(const _0x4d8401 of _0x4f9dc2){if(!_0x4d8401['isInContent'])continue;if(_0x4d8401['isMultiRange']){_0x242ca5['push'](..._0x4d8401['getRanges']());continue;}const _0x451bbb=_0x4d8401['getFirstRange']();if(_0x242ca5['length']>0x0){const _0x184c33=_0x242ca5[0x0]['getJoined'](_0x451bbb);if(_0x184c33){_0x242ca5[0x0]=_0x184c33;continue;}}_0x242ca5['push'](_0x451bbb);}_0x244fc9['push']([_0x50808d['view'],_0x242ca5]);}return _0x244fc9;}),this['listenTo'](_0x496f8a,'suggestionLoaded',(_0x391f37,_0x2b39a9)=>{this['listenTo'](_0x2b39a9,'change:previous',(_0x578fee,_0x5bbdb5,_0x1fbd53,_0x58fc22)=>{_0x2b39a9['isInContent']&&(null==_0x1fbd53?(this['_updateController'](_0x58fc22['head']),this['_handleSuggestionControllerDelayed'](_0x2b39a9,!0x1)):(this['_updateController'](_0x1fbd53['head']),null==_0x58fc22&&this['_handleSuggestionControllerDelayed'](_0x2b39a9,!0x0)));}),null!==_0x2b39a9['previous']?this['_updateController'](_0x2b39a9['head']):this['_handleSuggestionControllerDelayed'](_0x2b39a9,!0x1);}),this['listenTo'](_0x496f8a,'suggestionUnloaded',(_0x3580e7,_0x1872f4,_0x6cfdf6)=>{this['stopListening'](_0x1872f4,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1872f4),this['_suggestionToController']['has'](_0x1872f4)&&this['_destroyController'](_0x1872f4),_0x6cfdf6&&this['_updateController'](_0x6cfdf6['head']);}),this['listenTo'](_0x496f8a,'suggestionChanged',(_0x29d1aa,_0x210908)=>{this['_updateController'](_0x210908);}),this['listenTo'](_0x399065,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x113abe,'addComment',(_0x113105,{threadId:_0x2c622d,isFromAdapter:_0x380838})=>{if(_0x380838||!_0x496f8a['hasSuggestion'](_0x2c622d))return;const _0x555122=_0x496f8a['getSuggestion'](_0x2c622d);this['_suggestionToController']['get'](_0x555122)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x548bed=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb8909c;for(const _0x42922e in _0x548bed){const _0x5de366=_0x42922e,_0x2710bb=_0x548bed[_0x5de366];if('trackChangesLicenseKeyValid'==_0x2710bb||'trackChangesLicenseKeyInvalid'==_0x2710bb||'trackChangesLicenseKeyExpired'==_0x2710bb||'trackChangesLicenseKeyDomainLimit'==_0x2710bb||'trackChangesLicenseKeyNotAllowed'==_0x2710bb||'trackChangesLicenseKeyEvaluationLimit'==_0x2710bb||'trackChangesLicenseKeyUsageLimit'==_0x2710bb){delete _0x548bed[_0x5de366],_0xb8909c=_0x2710bb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xb8909c&&_0x548bed['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xb8909c&&_0x548bed['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xb8909c&&_0x548bed['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xb8909c&&_0x548bed['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xb8909c&&_0x548bed['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0xb8909c&&_0x548bed['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x402e58){const _0x3349de=this['_suggestionToController']['get'](_0x402e58);if(!_0x3349de)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3349de['view'])||null;}['getSuggestionForAnnotation'](_0x4c8aa5){const _0x3bffbe=this['_viewToController']['get'](_0x4c8aa5['innerView']);return _0x3bffbe?_0x3bffbe['model']:null;}['_refreshActiveMarkers'](){const _0x27ab95=this['editor']['plugins']['get']('Annotations'),_0x2eb87e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e2460=Array['from'](_0x27ab95['activeAnnotations'],_0x8fc9ff=>_0x8fc9ff['innerView'])['filter'](_0x2365ea=>this['_viewToController']['has'](_0x2365ea)),_0xa913d9=[];for(const _0x25d466 of _0x5e2460){const _0x2c859b=this['_viewToController']['get'](_0x25d466)['model']['getAllAdjacentSuggestions']();_0xa913d9['push'](..._0x2c859b['reduce']((_0x5b8f2a,_0x2bbfd8)=>[..._0x5b8f2a,..._0x2bbfd8['getMarkerNames']()],[]));}_0x2eb87e['activeMarkers']=_0xa913d9;}['_addUIComponentsToFactory'](){const _0x541937=this['editor'],_0xe9d0ba=_0x541937['locale'],_0x1d0b16=o(_0xe9d0ba,'Track\x20changes'),_0x3411fe=new _0x35eb9d([{'type':'switchbutton','model':new _0x5b7a3b({'withText':!0x0,'isToggleable':!0x0,'label':_0x1d0b16,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5b7a3b({'withText':!0x0,'label':o(_0xe9d0ba,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b7a3b({'withText':!0x0,'label':o(_0xe9d0ba,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b7a3b({'withText':!0x0,'label':o(_0xe9d0ba,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b7a3b({'withText':!0x0,'label':o(_0xe9d0ba,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x541937['plugins']['has']('TrackChangesPreview')&&_0x3411fe['addMany']([{'type':'separator'},{'type':'button','model':new _0x5b7a3b({'withText':!0x0,'label':o(_0xe9d0ba,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xe443d3 of _0x3411fe)if(ke(_0xe443d3)){const _0x4eb584=_0x541937['commands']['get'](_0xe443d3['model']['commandName']);_0xe443d3['model']['bind']('isOn','isEnabled')['to'](_0x4eb584,'value','isEnabled');}_0x541937['ui']['componentFactory']['add']('trackChanges',_0xf18f92=>this['_createToolbarButton'](_0xf18f92,_0x3411fe,_0x1d0b16)),_0x541937['ui']['componentFactory']['add']('menuBar:trackChanges',_0x442901=>this['_createMenuBarMenu'](_0x442901,_0x3411fe,_0x1d0b16));}['_createToolbarButton'](_0x255da6,_0x5eeede,_0x1882ab){const _0x103f05=_0x44cf48(_0x255da6,_0x53b543),_0x4f68dc=this['editor']['commands']['get']('trackChanges');_0x103f05['buttonView']['set']({'tooltip':_0x1882ab,'label':_0x1882ab,'icon':_0x596284}),_0x103f05['buttonView']['bind']('isOn')['to'](_0x4f68dc,'value'),_0x103f05['buttonView']['on']('execute',()=>{_0x4f68dc['execute'](),this['editor']['editing']['view']['focus']();}),_0x59d832(_0x103f05,_0x5eeede,{'role':'menu'});const _0x3949d3=[];for(const _0x40b34f of _0x5eeede)ke(_0x40b34f)&&_0x3949d3['push'](this['editor']['commands']['get'](_0x40b34f['model']['commandName']));const _0x4399ec=_0x103f05['buttonView'];return _0x4399ec['actionView']['unbind']('isEnabled'),_0x4399ec['arrowView']['unbind']('isEnabled'),_0x4399ec['actionView']['bind']('isEnabled')['to'](_0x4f68dc,'isEnabled'),_0x4399ec['arrowView']['bind']('isEnabled')['toMany'](_0x3949d3,'isEnabled',(..._0x3a705f)=>_0x3a705f['some'](_0x655b03=>_0x655b03)),_0x103f05['on']('execute',_0x214c5d=>{this['editor']['execute'](_0x214c5d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x103f05;}['_createMenuBarMenu'](_0x3c8a49,_0x265474,_0x1d7e6d){const _0x370f3c=new _0x329192(_0x3c8a49),_0x4bcb97=this['editor']['commands']['get']('trackChanges');_0x370f3c['buttonView']['set']({'label':_0x1d7e6d,'icon':_0x596284});const _0x204a1c=new _0x17ee5b(_0x3c8a49);for(const _0xc45ff7 of _0x265474){if('separator'==_0xc45ff7['type']){_0x204a1c['items']['add'](new _0x23a270(_0x3c8a49));continue;}const _0x2a659a=new _0x1af934(_0x3c8a49,_0x370f3c),_0x3d969b=new _0xc38dab(_0x3c8a49),_0x8fabcf=_0xc45ff7['model'];_0x3d969b['bind'](...Object['keys'](_0x8fabcf))['to'](_0x8fabcf),_0x3d969b['delegate']('execute')['to'](_0x370f3c),_0x3d969b['on']('execute',()=>{this['editor']['execute'](_0x8fabcf['commandName']),this['editor']['editing']['view']['focus']();}),_0x2a659a['children']['add'](_0x3d969b),_0x204a1c['items']['add'](_0x2a659a);}return _0x370f3c['bind']('isEnabled')['to'](_0x4bcb97,'isEnabled'),_0x370f3c['panelView']['children']['add'](_0x204a1c),_0x370f3c;}['_initializeController'](_0x53aeeb){const _0x2caa10=this['editor'],_0x34ee8e=_0x2caa10['config'],_0x2c2936=_0x2caa10['plugins']['get']('Annotations'),_0x2e262b=_0x2caa10['plugins']['get']('CommentsRepository'),_0x439177=_0x2caa10['plugins']['get']('EditorAnnotations'),_0x48b306=_0x2caa10['plugins']['get'](_0x3eb489)['me'],_0x1effc4=_0x34ee8e['get']('trackChanges')['SuggestionThreadView'],_0x40bb21=_0x34ee8e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2ad480,CommentThreadInputView:_0x4fc9b0}=_0x2caa10['plugins']['get']('CommentsUI');let _0xfb26e0,_0x2a60d4,_0x12caca;this['_annotationViews']['has'](_0x53aeeb['id'])?(_0x2a60d4=this['_annotationViews']['get'](_0x53aeeb['id']),_0xfb26e0=_0x2a60d4['mainView']):(_0xfb26e0=new _0x1effc4(_0x2caa10['locale'],_0x53aeeb,_0x48b306,{'disableComments':this['_disableComments'],'editorConfig':{..._0x34ee8e['get']('comments.editorConfig'),'licenseKey':_0x34ee8e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x34ee8e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x34ee8e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x34ee8e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xc4ba57(_0x34ee8e['get']('locale'),_0x2caa10['locale']),'CommentView':_0x34ee8e['get']('comments')['CommentView'],'CommentsListView':_0x2ad480,'CommentThreadInputView':_0x4fc9b0,'SuggestionView':_0x40bb21}),_0xfb26e0['suggestionView']['acceptButton']['on']('execute',()=>{_0x2caa10['editing']['view']['focus']();}),_0xfb26e0['suggestionView']['discardButton']['on']('execute',()=>{_0x2caa10['editing']['view']['focus']();}),_0x2a60d4=_0x2c2936['createAnnotationView'](this['editor']['locale'],_0xfb26e0),_0x2a60d4['bind']('isDirty')['to'](_0xfb26e0,'isDirty'),_0x2a60d4['bind']('length')['to'](_0xfb26e0),_0x2a60d4['bind']('type')['to'](_0xfb26e0,'type',_0x4a7eaf=>'suggestion-'+_0x4a7eaf),_0xfb26e0['on']('escape',()=>{_0x12caca['fire']('escape');}),this['_annotationViews']['set'](_0x53aeeb['id'],_0x2a60d4));const _0x2feadb=_0x2e262b['createCommentThreadController'](_0x53aeeb['commentThread'],_0xfb26e0),_0xa4d3bf=new pe(_0x2caa10,_0x53aeeb,_0xfb26e0,_0x2feadb),_0x4e0d6b=_0x53aeeb['getAllAdjacentSuggestions']()['filter'](_0xd70927=>_0xd70927['isInContent']);_0xfb26e0['descriptionParts']=_0x2caa10['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4e0d6b),this['_suggestionToController']['set'](_0x53aeeb,_0xa4d3bf),this['_viewToController']['set'](_0xfb26e0,_0xa4d3bf);const _0x3a68e1=()=>{const _0xc32b16=[],_0x5f4559=_0x53aeeb['getAllAdjacentSuggestions']()['filter'](_0x3b382c=>_0x3b382c['isInContent']);for(const _0x431e74 of _0x5f4559)_0xc32b16['push'](..._0x431e74['getMarkers']());return _0x4263a6(_0x2caa10['editing'],_0xc32b16);};_0x12caca=_0x2c2936['createAnnotation']({'view':_0x2a60d4,'target':_0x3a68e1,'type':()=>'suggestion-'+_0xa4d3bf['view']['type'],'isVisible':!!_0x3a68e1()}),_0x2e262b['_bindAnnotationToEditors'](_0xfb26e0,_0x12caca),_0x2c2936['add'](_0x12caca),_0x439177['registerAnnotation'](_0x12caca);}['_destroyController'](_0x59a2b8){const _0x5880d8=this['editor']['plugins']['get']('CommentsRepository'),_0x2b2fca=this['editor']['plugins']['get']('Annotations'),_0x470f79=this['_suggestionToController']['get'](_0x59a2b8),_0x4f3cb6=_0x470f79['view'],_0x11dd82=_0x2b2fca['getByInnerView'](_0x4f3cb6);_0x5880d8['_unbindEditors'](_0x4f3cb6),_0x11dd82&&_0x2b2fca['remove'](_0x11dd82),this['_suggestionToController']['delete'](_0x59a2b8),this['_viewToController']['delete'](_0x4f3cb6),_0x470f79['destroy']();}['_updateController'](_0x3b5cda){if(!_0x3b5cda['isInContent']||!this['_suggestionToController']['has'](_0x3b5cda))return;const _0x1ebf90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40f4e4=this['_suggestionToController']['get'](_0x3b5cda),_0x22cd79=_0x3b5cda['getAllAdjacentSuggestions']();_0x40f4e4['view']['descriptionParts']=_0x1ebf90['descriptionFactory']['getDescriptions'](_0x22cd79);}['destroy'](){for(const _0x8db73a of this['_suggestionToController']['keys']())this['_destroyController'](_0x8db73a);for(const _0x3ed668 of this['_annotationViews']['values']())_0x3ed668['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x13d555){return'model'in _0x13d555;}class Ne extends _0x447d1d{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x357ea0){this['editor']['plugins']['get'](d)['adapter']=_0x357ea0;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x5967cf){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x5967cf);}['getSuggestions']({skipNotAttached:_0x309a6f=!0x1,toJSON:_0x29e524=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x309a6f,'toJSON':_0x29e524});}['getSuggestion'](_0x252e5e){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x252e5e);}}const p=['Pagination'];class re extends _0x447d1d{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2f6d27=this['editor'];if(_0x2f6d27['config']['define']('trackChangesData.editorCreator',_0x12c4bb=>{const _0x92c832=_0x2f6d27['model']['document']['getRootNames']()['reduce']((_0x203fd9,_0x2fffb5)=>(_0x203fd9[_0x2fffb5]='',_0x203fd9),{});return _0x2f6d27['constructor']['create'](_0x92c832,_0x12c4bb);}),'function'!=typeof _0x2f6d27['config']['get']('trackChangesData')['editorCreator'])throw new _0x2f0245('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x455d6e){return P(this['editor'],!0x0,_0x455d6e);}['getDataWithDiscardedSuggestions'](_0x127875){return P(this['editor'],!0x1,_0x127875);}}class Fe extends _0x447d1d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40f3a7){function _0x21da12(_0x303ef2){return _0x303ef2['map'](_0x5ad7cd=>String['fromCharCode'](_0x5ad7cd))['join']('');}super(_0x40f3a7),this['result']='end',_0x40f3a7[_0x21da12([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21da12([0x76,0x69,0x65,0x77])][_0x21da12([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21da12([0x61,0x75,0x74,0x6f]),_0x40f3a7[_0x21da12([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x21da12([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21da12([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x21da12([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x21da12([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(_0x5d7a4d){return void 0x0!==_0x5d7a4d['getRootsAttributes'];}async function P(_0x4c6c92,_0x14905e,_0x375ea9){const _0x2215f6=_0x3f3c6f(_0x4c6c92,p);_0x2215f6['plugins']['push'](d,Fe),_0x2215f6['rootsAttributes']=De(_0x4c6c92)?_0x4c6c92['getRootsAttributes']():void 0x0;const _0x29999a=document['createDocumentFragment'](),_0x43ad20=_0x4c6c92['config']['get']('trackChangesData')['editorCreator'],_0x54653e=await _0x43ad20(_0x2215f6,()=>function(_0x5816f2){const _0x53f375=document['createElement']('div');return _0x5816f2['appendChild'](_0x53f375),_0x53f375;}(_0x29999a));!function(_0x517a1d,_0x2b3043){const _0x3c9ae1=_0x517a1d['model']['document']['getRootNames']()['reduce']((_0x3c4737,_0x4f0d46)=>(_0x3c4737[_0x4f0d46]=_0x517a1d['data']['get']({'rootName':_0x4f0d46}),_0x3c4737),{}),_0x4a5f79=_0x517a1d['plugins']['get']('Users')['users']['map'](_0x5e488b=>({'id':_0x5e488b['id'],'name':_0x5e488b['name']})),_0x4a573d=_0x517a1d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5cf7db=_0x517a1d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5d84a5=_0x2b3043['plugins']['get']('Users'),_0x3922c1=_0x2b3043['plugins']['get']('TrackChangesEditing'),_0x410aa4=_0x2b3043['plugins']['get']('CommentsRepository');for(const _0xe639de of _0x410aa4['getCommentThreads']())_0xe639de['remove']();for(const _0x2d6ae0 of _0x4a5f79)_0x5d84a5['getUser'](_0x2d6ae0['id'])||_0x5d84a5['addUser'](_0x2d6ae0);_0x5d84a5['me']||_0x5d84a5['useAnonymousUser']();for(const _0x223106 of _0x5cf7db)_0x410aa4['addCommentThread'](_0x223106);for(const _0x4dede6 of _0x4a573d)_0x3922c1['addSuggestionData'](_0x4dede6);_0x2b3043['data']['set'](_0x3c9ae1);}(_0x4c6c92,_0x54653e),_0x54653e['execute'](_0x14905e?'acceptAllSuggestions':'discardAllSuggestions');const _0x1303d0=De(_0x54653e)?_0x54653e['getFullData'](_0x375ea9):_0x54653e['data']['get'](_0x375ea9);return await _0x54653e['destroy'](),_0x1303d0;}class Me extends _0x4f487c{['options'];constructor(_0x34bf19,_0x5e116f){super(_0x34bf19),this['options']=_0x5e116f,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'](_0x186407,_0x40f1df){if(!this['element'])return;const _0x3f2cd2=[];for(const [_0x513304,_0x18283a]of _0x186407){const _0x4976d0=document['createElement']('div');_0x4976d0['setAttribute']('data-ck-root-name',_0x513304),_0x4976d0['className']=_0x18283a['classes']+'\x20ck-track-changes-preview__root-container',_0x4976d0['innerHTML']=_0x18283a['content'],_0x3f2cd2['push'](_0x4976d0);}_0x40f1df(this['element'],_0x3f2cd2),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0xede307{constructor(_0x21006a){super(_0x21006a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4e843f=this['editor'],_0x375d73=_0x4e843f['locale'],_0x2d6735=_0x4e843f['plugins']['get']('Dialog');let _0x411170;const _0x4b1cda=function(_0x520c60){const _0x266459={};if('editables'in _0x520c60['ui']['view']){for(const [_0x38b7f4,_0x5db5e2]of Object['entries'](_0x520c60['ui']['view']['editables']))_0x266459[_0x38b7f4]=_0x5db5e2['element'];}else _0x266459[_0x520c60['model']['document']['getRootNames']()[0x0]]=_0x520c60['ui']['view']['editable']['element'];return _0x266459;}(_0x4e843f),_0x4c126e=function(_0x1a4c58){let _0x5cec59=0x0;for(const _0x333223 of Object['values'](_0x1a4c58))_0x5cec59=Math['max'](_0x5cec59,_0x333223['getBoundingClientRect']()['width']);let _0x3b907a=0x0;for(const _0x10326b of Object['values'](_0x1a4c58))_0x3b907a+=_0x10326b['getBoundingClientRect']()['height'];const _0x4bef6b=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2bc368=Math['min'](_0x3b907a,_0x4bef6b);return{'width':_0x5cec59,'height':_0x2bc368};}(_0x4b1cda);_0x2d6735['show']({'id':'finalContentPreview','title':o(_0x375d73,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x375d73,{'dialogRects':_0x4c126e}),'onHide':()=>{_0x411170['detachFromDom']();},'onShow':()=>{_0x4e843f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1b8115=>{const _0x3bd47b=this['_standarizeRootsData'](_0x1b8115,_0x4e843f,_0x4b1cda);_0x2d6735['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3bd47b,_0x4e843f['config']['get']('trackChanges.preview.renderFunction'));}),_0x411170=new _0x3429fc(_0x375d73,[_0x2d6735['view']]),_0x411170['attachToDom'](),_0x411170['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4e843f['once']('destroy',()=>{_0x411170['detachFromDom']();});const _0x3515cc=_0x2d6735['view']['headerView']['class'];_0x2d6735['view']['headerView']['class']=_0x3515cc?_0x3515cc+'\x20ck-reset_all':'ck-reset_all',_0x2d6735['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2d6735['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5e5f97=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x540c05=_0x5e5f97['previewMode'],_0x2a67bc={};if('$labels'===_0x540c05){for(const _0x157c9a of _0x5e5f97['getMergeFieldsIds']())_0x2a67bc[_0x157c9a]=_0x5e5f97['getLabel'](_0x157c9a)||_0x157c9a;}else{const _0x521259='$defaultValues'===_0x540c05?_0x5e5f97['getDefaultValues']():_0x5e5f97['getDataSetValues'](_0x540c05,!0x0);for(const _0x1f4980 of Object['entries'](_0x521259)){const [_0x4dd4d2,_0x2c7e1f]=_0x1f4980;_0x2a67bc[_0x4dd4d2]=null!==_0x2c7e1f?_0x2c7e1f:_0x5e5f97['getLabel'](_0x4dd4d2)||_0x4dd4d2;}}return{'mergeFieldsData':_0x2a67bc};}['_standarizeRootsData'](_0x515db3,_0x2aada9,_0x15669e){let _0x1e0744;if('string'==typeof _0x515db3){const _0xa5e248=_0x2aada9['model']['document']['getRootNames']()[0x0];_0x1e0744={[_0xa5e248]:_0x515db3};}else _0x1e0744=_0x515db3;const _0x474b80=this['_fixMediaEmbeds'](_0x1e0744,_0x2aada9),_0xbafd1f=function(_0x454dbd,_0x4ce585){for(const [_0xef2b5,_0x29509a]of _0x454dbd)_0x29509a['classes']=_0x4ce585[_0xef2b5]['classList']['value']['replace']('ck-focused','');return _0x454dbd;}(this['_sortRoots'](_0x2aada9)['reduce']((_0x221b88,_0x5228c0)=>(_0x221b88['push']([_0x5228c0,{'content':_0x474b80[_0x5228c0],'classes':''}]),_0x221b88),[]),_0x15669e);return _0xbafd1f;}['_fixMediaEmbeds'](_0x50042d,_0x5e177b){if(!_0x5e177b['plugins']['has']('MediaEmbedEditing'))return _0x50042d;const _0x223e78=_0x5e177b['plugins']['get']('MediaEmbedEditing');for(const [_0x3fd44f,_0x354734]of Object['entries'](_0x50042d)){const _0x4b2af6=document['createElement']('div');_0x4b2af6['innerHTML']=_0x354734,(_0x4b2af6['querySelectorAll']('figure.media')['forEach'](_0x45103b=>{const _0x52d3fd=_0x45103b['querySelector']('oembed');if(_0x52d3fd){const _0xe6805f=_0x52d3fd['getAttribute']('url');if(_0xe6805f){const _0x389611=_0x223e78['registry']['getMediaViewElement'](new _0x2485a9(_0x5e177b['editing']['view']['document']),_0xe6805f,{'elementName':'','renderForEditingView':!0x0}),_0x1c0c73=document['createElement']('div');_0x1c0c73['classList']['add']('ck-media__wrapper'),_0x389611['render'](_0x1c0c73,_0x5e177b['editing']['view']['domConverter']),_0x52d3fd['replaceWith'](_0x1c0c73);}}}),_0x50042d[_0x3fd44f]=_0x4b2af6['innerHTML']);}return _0x50042d;}['_sortRoots'](_0x94b86d){if(!function(_0x40e9c7){return void 0x0!==_0x40e9c7['getRootsAttributes'];}(_0x94b86d))return _0x94b86d['model']['document']['getRootNames']();const _0x401876=[],_0x40f007=new Map();for(const _0x9b514d of _0x94b86d['model']['document']['getRootNames']()){const _0x4d9771=_0x94b86d['editing']['view']['getDomRoot'](_0x9b514d)['getClientRects']()['item'](0x0);_0x401876['push'](_0x9b514d),_0x40f007['set'](_0x9b514d,_0x4d9771);}return _0x401876['sort']((_0x25fd11,_0x12a48a)=>{const _0x473502=_0x40f007['get'](_0x25fd11),_0x123cf1=_0x40f007['get'](_0x12a48a);return _0x473502['y']-_0x123cf1['y']||_0x473502['x']-_0x123cf1['x'];}),_0x401876;}}class Ue extends _0x447d1d{static get['requires'](){return[re,_0x23dd67];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29602f){super(_0x29602f),_0x29602f['commands']['add']('previewFinalContent',new te(this['editor'])),_0x29602f['config']['define']('trackChanges.preview.renderFunction',(_0x32f994,_0x2346ba)=>{for(const _0xb98c5c of _0x2346ba)_0x32f994['appendChild'](_0xb98c5c);});}}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 _0x23b7b0,Plugin as _0x4f24f5,PendingActions as _0x182933}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4323ac,ObservableMixin as _0x14b986,uid as _0x58b4bb,priorities as _0x3377f6,insertToPriorityArray as _0x3e3042,logWarning as _0x5e41d9,getEnvKeystrokeText as _0x487394,FocusTracker as _0x3b7683,KeystrokeHandler as _0x2fc584,Collection as _0x37bcfb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4a3aea,IconCancel as _0x20c60d,IconTrackChanges as _0x16f65c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x321151,View as _0x1fe705,ViewCollection as _0x9df8f7,FocusCycler as _0xa82aed,UIModel as _0x15bc41,createDropdown as _0x339ff7,SplitButtonView as _0x4e70c0,addListToDropdown as _0x34bce8,MenuBarMenuView as _0x5829f1,MenuBarMenuListView as _0x5ba2a1,ListSeparatorView as _0x14e71f,MenuBarMenuListItemView as _0x23c318,MenuBarMenuListItemButtonView as _0x47c1c8,BodyCollection as _0x10fa19,Dialog as _0x5d6c97}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x508c21,Users as _0x3089c7,DocumentCompare as _0x5aa91f,fixElementSuggestionRange as _0x29aed1,hashObject as _0xd0c3f2,splitSuggestionMarkerName as _0x1452e9,surroundingMarkersDetector as _0x4388fd,FOCUS_ANNOTATION_KEYSTROKE as _0x44cffa,AriaDescriptionView as _0x28f078,setupThreadKeyboardNavigation as _0x509464,trimHtml as _0x32a20f,UserView as _0x48f6bc,LateFocusButtonView as _0x203ca2,getDateTimeFormatter as _0x411be3,getAllMarkersDomElementsSorted as _0x2ead08,sanitizeEditorConfig as _0x8d035}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x5f2319,ModelLiveRange as _0x41285e,ModelLivePosition as _0x26759d,ViewDowncastWriter as _0x1d6acd}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x2972c9,set as _0x49376b,isEqual as _0x3d47c3,unset as _0x17043a,omit as Jt}from'es-toolkit/compat';import{Delete as _0x1f71a3,Input as _0x15ff96}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2c424e}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x20f0bc}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x23b7b0{['_enabledCommands'];constructor(_0x3054d1,_0x1edeeb){super(_0x3054d1),this['_enabledCommands']=_0x1edeeb,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 _0x3f8a78 of this['editor']['commands']['commands']())_0x3f8a78['affectsData']&&!this['_enabledCommands']['has'](_0x3f8a78)&&_0x3f8a78['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x43b131 of this['editor']['commands']['commands']())_0x43b131['affectsData']&&!this['_enabledCommands']['has'](_0x43b131)&&_0x43b131['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x23b7b0{['_suggestions'];constructor(_0x536b61,_0x39a492){super(_0x536b61),this['_suggestions']=_0x39a492,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x35e733){const _0x37ef57=this['_suggestions']['get'](_0x35e733);if(!_0x37ef57)throw new _0x4323ac('track-changes-accept-suggestion-not-found',this);const _0x214a21=_0x37ef57['getRanges']();this['editor']['model']['canEditAt'](_0x214a21)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x37ef57);}}class x extends _0x23b7b0{['_suggestions'];constructor(_0x1f5706,_0x1a7d20){super(_0x1f5706),this['_suggestions']=_0x1a7d20,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3fbfe0){const _0x142d1f=this['_suggestions']['get'](_0x3fbfe0);if(!_0x142d1f)throw new _0x4323ac('track-changes-discard-suggestion-not-found',this);const _0x583763=_0x142d1f['getRanges']();this['editor']['model']['canEditAt'](_0x583763)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x142d1f);}}function ls(_0x25d5f2,_0x387c39){let _0x1a8494='';return _0x1a8494+=_0x25d5f2['split']('*')['map']((_0x9c4dca,_0x23ac04)=>_0x23ac04%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x9c4dca)+'</span>':rn(_0x9c4dca))['join'](''),_0x387c39&&(_0x1a8494+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x387c39['value']+'\x22\x20title=\x22'+_0x387c39['title']+'\x22></span>'),_0x1a8494;}function rn(_0x38a6e7){const _0x5b6c25=document['createElement']('span');return _0x5b6c25['innerText']=_0x38a6e7,_0x5b6c25['innerHTML'];}function ts(_0x3b4e4c){return _0x3b4e4c['sort']((_0xccc6b4,_0x5d3ae0)=>'attribute'===_0xccc6b4['type']&&'attribute'!==_0x5d3ae0['type']?-0x1:'attribute'!==_0xccc6b4['type']&&'attribute'===_0x5d3ae0['type']?0x1:'deletion'==_0xccc6b4['type']&&'deletion'!=_0x5d3ae0['type']?-0x1:'deletion'!=_0xccc6b4['type']&&'deletion'==_0x5d3ae0['type']?0x1:0x0);}function to(_0x73b8b4,_0x27e012){let _0x23de6b,_0x378800=0x0;const _0xbda2f3=[],_0x3abbc0=_0x27e012['schema'];for(;_0x378800<_0x73b8b4['length'];){const _0x31c098=_0x73b8b4[_0x378800],_0x796808=_0x73b8b4[_0x378800+0x1];_0x23de6b||(_0x23de6b=_0x27e012['createPositionBefore'](_0x31c098)),cn(_0x27e012,_0x31c098,_0x796808)||(_0xbda2f3['push'](_0x27e012['createRange'](_0x23de6b,_0x3abbc0['isObject'](_0x31c098)?_0x27e012['createPositionAfter'](_0x31c098):_0x27e012['createPositionAt'](_0x31c098,'end'))),_0x23de6b=null),_0x378800++;}return _0xbda2f3;}function cn(_0x5b1a04,_0x5a5537,_0x53d56c){if(!_0x53d56c)return!0x1;const _0x2ffc51=_0x5b1a04['createPositionAfter'](_0x5a5537),_0xd3c09d=_0x5b1a04['createPositionBefore'](_0x53d56c);return _0x2ffc51['isTouching'](_0xd3c09d);}function rs(_0x95dfb4,_0x2b2345,_0xadd3d){for(;_0xadd3d['length'];){const _0x597ee1=_0xadd3d['splice'](0x0,0x64);_0x95dfb4['change'](()=>{for(const _0x30e33b of _0x597ee1)_0x30e33b['isInContent']&&_0x2b2345['execute'](_0x30e33b['id']);});}}class M extends _0x23b7b0{['_command'];['_suggestions'];constructor(_0x2b10bb,_0x55c95a,_0xc9384f){super(_0x2b10bb),this['_command']=_0x55c95a,this['_suggestions']=_0xc9384f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x28e33f=Array['from'](this['_suggestions']['values']())['some'](_0x56ac68=>_0x56ac68['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x28e33f;}['execute'](){const _0x360454=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3fabc3 of _0x360454){const _0x13ebb6=_0x3fabc3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x13ebb6))return;}rs(this['editor']['model'],this['_command'],_0x360454);}}class R extends _0x23b7b0{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x100268,_0x203371,_0x52bd49){super(_0x100268),this['_command']=_0x203371,this['_suggestions']=_0x52bd49,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x591ce4=this['editor']['model']['document']['selection'],_0x50f823=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x323476,_0x18d8b4){const _0x290fdc=Array['from'](_0x323476['getRanges']()),_0x22c61c=new Set();for(const _0x48e8ff of _0x18d8b4)if(_0x48e8ff['isInContent']){for(const _0x3b8158 of _0x290fdc)for(const _0x2719f4 of _0x48e8ff['getRanges']())(_0x3b8158['isIntersecting'](_0x2719f4)||_0x323476['isCollapsed']&&!_0x48e8ff['isMultiRange']&&_0x48e8ff['next']&&_0x2719f4['end']['isTouching'](_0x3b8158['start']))&&_0x22c61c['add'](_0x48e8ff);}return _0x22c61c;}(_0x591ce4,_0x50f823),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x48d39b=ts(Array['from'](this['_selectedSuggestions']));for(const _0x9b2762 of _0x48d39b){const _0x1cadbd=_0x9b2762['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1cadbd))return;}rs(this['editor']['model'],this['_command'],_0x48d39b);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x14b986(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x40d644,_0x103fbf){super(),this['id']=_0x103fbf['id'],this['type']=_0x103fbf['type'],this['subType']=_0x103fbf['subType']||null,this['author']=_0x103fbf['author'],this['creator']=_0x103fbf['creator']||_0x103fbf['author'],this['isExternal']=Boolean(_0x103fbf['attributes']&&_0x103fbf['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x103fbf['originalSuggestionId']||null,this['_model']=_0x40d644,this['_onAccept']=_0x103fbf['onAccept'],this['_onDiscard']=_0x103fbf['onDiscard'],this['_onAttributesChange']=_0x103fbf['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x103fbf['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 _0x18c2eb=this;for(;_0x18c2eb['previous'];)_0x18c2eb=_0x18c2eb['previous'];return _0x18c2eb;}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'](_0x590f43){this['_markerNames']['add'](_0x590f43);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5d27cb=>this['_model']['markers']['get'](_0x5d27cb))['filter'](_0xd9976a=>_0xd9976a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4f4a66=>{for(const _0x1b4d00 of this['getMarkers']())_0x4f4a66['removeMarker'](_0x1b4d00);}),this['_markerNames']['clear']();}['removeMarker'](_0x5cb3a9){this['_model']['change'](_0x50fbb3=>{_0x50fbb3['removeMarker'](_0x5cb3a9);}),this['_markerNames']['delete'](_0x5cb3a9);}['addRange'](_0x3c9950){const _0x175e57='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x175e57),this['_model']['change'](_0x443295=>{_0x443295['addMarker'](_0x175e57,{'range':_0x3c9950,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x31e9af){for(const _0x3a3cc2 of this['getRanges']())if(_0x3a3cc2['isIntersecting'](_0x31e9af))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x43d8a7=>_0x43d8a7['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2f5790,_0x1c356d)=>[..._0x2f5790,..._0x1c356d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xaf3b60=this['getRanges']();if(0x1!=_0xaf3b60['length'])return null;const _0x38c4b7=_0xaf3b60[0x0],_0x1121a5=_0x38c4b7['start']['nodeAfter'],_0x267c9f=_0x38c4b7['end']['nodeBefore'];return _0x1121a5 instanceof _0x5f2319?_0x1121a5!=_0x267c9f?null:_0x1121a5: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 _0x1475cd=[];let _0x16becb=this['head'];for(;_0x16becb;)_0x1475cd['push'](_0x16becb),_0x16becb=_0x16becb['next'];return _0x1475cd;}['setAttribute'](_0x1bdcb4,_0x90fbd6){const _0x1d3478=_0x2972c9(this['attributes']);_0x49376b(_0x1d3478,_0x1bdcb4,_0x90fbd6),_0x3d47c3(_0x1d3478,this['attributes'])||(this['attributes']=_0x1d3478,this['_onAttributesChange'](_0x1d3478));}['removeAttribute'](_0x56e659){const _0x2d09a4=_0x2972c9(this['attributes']);_0x17043a(_0x2d09a4,_0x56e659),_0x3d47c3(_0x2d09a4,this['attributes'])||(this['attributes']=_0x2d09a4,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 _0x58b4bb()['substr'](0x1,0x5);}}function o(_0x4005d3,_0x150262,_0x35416c){const _0x37170a=_0x4005d3['t'],t=_0x4005d3['t'];switch(_0x150262){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',_0x35416c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x35416c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x35416c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x35416c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x35416c);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',_0x35416c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x35416c);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',_0x35416c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x35416c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x35416c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x35416c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x35416c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x35416c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x35416c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x35416c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x35416c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x35416c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x35416c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x35416c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x35416c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x35416c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x35416c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x35416c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x35416c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x35416c);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'},_0x35416c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x35416c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x35416c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x35416c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x35416c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x35416c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x35416c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x35416c);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'},_0x35416c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x35416c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x35416c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x35416c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x35416c);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'},_0x35416c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x35416c);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'},_0x35416c);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'},_0x35416c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x35416c);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'},_0x35416c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x35416c);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'},_0x35416c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x35416c);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x35416c);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x35416c);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x35416c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x35416c);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'},_0x35416c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x35416c);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 _0x37170a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x35416c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x37170a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x35416c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x35416c);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'},_0x35416c);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'},_0x35416c);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'},_0x35416c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x150262;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4bb3e5,_0x5ecef4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4bb3e5,this['_locale']=_0x5ecef4;}['getDescriptions'](_0x2b1c12){const _0x985021=[],_0x468b20=new Set(),_0x5331ac=new Set();for(let _0x312081=0x0;_0x312081<_0x2b1c12['length'];_0x312081++){const _0x116e1a=_0x2b1c12[_0x312081];if(!_0x116e1a['isInContent'])continue;const _0x5047eb=this['_handleCustomCallbackDescription'](_0x116e1a);if(_0x5047eb){if(null!=_0x116e1a['subType']){if(_0x468b20['has'](_0x116e1a['subType']))continue;_0x468b20['add'](_0x116e1a['subType']);}_0x985021['push'](_0x5047eb);}else{if('attribute'==_0x116e1a['type']){const _0x1054dc=_0x116e1a['data']['key'];if(_0x5331ac['has'](_0x1054dc))continue;_0x5331ac['add'](_0x116e1a['data']['key']),_0x1054dc==m?this['_handleRenameSuggestionDescription'](_0x985021,_0x116e1a):this['_handleAttributeSuggestionDescription'](_0x985021,_0x116e1a);continue;}'insertion'!=_0x116e1a['type']&&'deletion'!=_0x116e1a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x985021,_0x116e1a,_0x2b1c12[_0x312081+0x1]);}}return this['_resolveDescriptionItems'](_0x985021);}['registerDescriptionCallback'](_0x323e68){this['_customCallbacks']['push'](_0x323e68);}['registerElementLabel'](_0x543327,_0x69d34e,_0x48e696=_0x3377f6['normal']){'function'==typeof _0x543327?_0x3e3042(this['_itemLabelsCallbacks'],{'matchingCallback':_0x543327,'label':_0x69d34e,'priority':_0x48e696}):this['_itemLabels']['set'](_0x543327,_0x69d34e);}['registerAttributeLabel'](_0x1e2fe7,_0x25af42){this['_attributeLabels']['set'](_0x1e2fe7,_0x25af42);}['getItemLabel'](_0x41a906,_0x538128=0x1){let _0x11a4c2;for(const _0xbada67 of this['_itemLabelsCallbacks'])if(_0xbada67['matchingCallback'](_0x41a906)){_0x11a4c2=_0xbada67['label'];break;}return _0x11a4c2||(_0x11a4c2=this['_itemLabels']['get'](_0x41a906['name'])),_0x11a4c2?_0x11a4c2(_0x538128):0x1!==_0x538128?_0x538128+'\x20'+_0x41a906['name']+'s':''+_0x41a906['name'];}['_addDescriptionItems'](_0x5eca97,_0x529ae1){const _0x222891=_0x529ae1['getFirstRange']()['getWalker'](),_0x310255='insertion'==_0x529ae1['type']?'add':'remove';for(const _0x22a3f4 of _0x222891){const _0x295b57=_0x22a3f4['item'],_0x4075f4=_0x5eca97[_0x5eca97['length']-0x1];if(_0x295b57['is']('$textProxy'))_0x4075f4&&_0x4075f4['type']['indexOf']('Container')>-0x1&&_0x5eca97['pop'](),_0x4075f4&&'text'==_0x4075f4['type']?_0x4075f4[_0x310255]+=_0x295b57['data']:_0x5eca97['push']({'type':'text','add':'add'==_0x310255?_0x295b57['data']:'','remove':'remove'==_0x310255?_0x295b57['data']:''});else{if(this['_schema']['isObject'](_0x295b57)){const _0x267194=_0x295b57;if(_0x4075f4&&_0x4075f4['type']['indexOf']('Container')>-0x1&&_0x5eca97['pop'](),'elementEnd'==_0x22a3f4['type'])continue;_0x4075f4&&_0x4075f4['type']==_0x310255+'Object'&&_0x4075f4['element']['name']==_0x267194['name']?_0x4075f4['quantity']++:_0x5eca97['push']({'type':_0x310255+'Object','element':_0x267194,'quantity':0x1}),_0x222891['skip'](_0x14745e=>!('elementEnd'==_0x14745e['type']&&_0x14745e['item']==_0x295b57));}else{if(this['_schema']['checkChild'](_0x295b57,'$text')||_0x295b57['is']('element','softBreak')){const _0x1a386b=_0x295b57;if('add'==_0x310255&&'elementStart'==_0x22a3f4['type']||'remove'==_0x310255&&'elementEnd'==_0x22a3f4['type'])continue;if(_0x4075f4&&-0x1==_0x4075f4['type']['indexOf']('Container')){'text'==_0x4075f4['type']&&(_0x4075f4[_0x310255]+='\x0a');continue;}let _0x2d6bfe;if(_0x2d6bfe='add'==_0x310255?_0x1a386b['nextSibling']&&!this['_schema']['isObject'](_0x1a386b['nextSibling'])?_0x1a386b['nextSibling']:null:_0x1a386b['previousSibling']&&!this['_schema']['isObject'](_0x1a386b['previousSibling'])?_0x1a386b['previousSibling']:null,_0x1a386b['isEmpty']||_0x2d6bfe&&_0x2d6bfe['isEmpty']){const _0xacc5a3=_0x2d6bfe&&_0x2d6bfe['isEmpty']?_0x2d6bfe:_0x1a386b;_0x4075f4&&_0x4075f4['type']==_0x310255+'EmptyContainer'&&_0x4075f4['element']['name']==_0xacc5a3['name']?_0x4075f4['quantity']++:_0x5eca97['push']({'type':_0x310255+'EmptyContainer','element':_0xacc5a3,'quantity':0x1});}else _0x5eca97['push']({'type':_0x310255+'Container','element':_0x1a386b});}}}}}['_resolveDescriptionItems'](_0x2f3697){const _0x472f3c=this['_locale'],_0x324b64=[],_0x59e786=[],_0x59333f=[];for(const _0x1f0fa2 of _0x2f3697)switch(_0x1f0fa2['type']){case'text':if(_0x1f0fa2['add']=_0x1f0fa2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1f0fa2['remove']=_0x1f0fa2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1f0fa2['add']&&''!=_0x1f0fa2['remove']){_0x324b64['push']({'type':'replace','content':o(_0x472f3c,'REPLACE_TEXT',['\x22'+_0x1f0fa2['remove']+'\x22','\x22'+_0x1f0fa2['add']+'\x22'])});continue;}if(null!=_0x1f0fa2['add']['match'](/^ +$/)){_0x324b64['push']({'type':'insertion','content':o(_0x472f3c,'*Insert:*\x20%0',o(_0x472f3c,'ELEMENT_SPACE',_0x1f0fa2['add']['length']))});continue;}if(null!=_0x1f0fa2['remove']['match'](/^ +$/)){_0x324b64['push']({'type':'deletion','content':o(_0x472f3c,'*Remove:*\x20%0',o(_0x472f3c,'ELEMENT_SPACE',_0x1f0fa2['remove']['length']))});continue;}if(''!=_0x1f0fa2['add']){_0x324b64['push']({'type':'insertion','content':o(_0x472f3c,'*Insert:*\x20%0','\x22'+_0x1f0fa2['add']+'\x22')});continue;}_0x324b64['push']({'type':'deletion','content':o(_0x472f3c,'*Remove:*\x20%0','\x22'+_0x1f0fa2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x324b64['push']({'type':'insertion','content':o(_0x472f3c,'*Insert:*\x20%0',this['getItemLabel'](_0x1f0fa2['element'],_0x1f0fa2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x324b64['push']({'type':'deletion','content':o(_0x472f3c,'*Remove:*\x20%0',this['getItemLabel'](_0x1f0fa2['element'],_0x1f0fa2['quantity']))});continue;case'addContainer':_0x324b64['push']({'type':'insertion','content':o(_0x472f3c,'*Split:*\x20%0',this['getItemLabel'](_0x1f0fa2['element'],_0x1f0fa2['quantity']))});continue;case'removeContainer':_0x324b64['push']({'type':'deletion','content':o(_0x472f3c,'*Merge:*\x20%0',this['getItemLabel'](_0x1f0fa2['element'],_0x1f0fa2['quantity']))});continue;case'addFormat':_0x59e786['push'](_0x1f0fa2['key']);continue;case'removeFormat':_0x59333f['push'](_0x1f0fa2['key']);continue;default:_0x324b64['push'](_0x1f0fa2);}if(_0x59e786['length']){const _0x4f7f58=_0x59e786['map'](_0x51f41e=>this['_attributeLabels']['has'](_0x51f41e)?this['_attributeLabels']['get'](_0x51f41e):_0x51f41e)['join'](',\x20');_0x324b64['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4f7f58)});}if(_0x59333f['length']){const _0x15a5d0=_0x59333f['map'](_0x59012c=>this['_attributeLabels']['has'](_0x59012c)?this['_attributeLabels']['get'](_0x59012c):_0x59012c)['join'](',\x20');_0x324b64['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x15a5d0)});}return _0x324b64;}['_handleCustomCallbackDescription'](_0x141d5a){for(const _0x47923a of this['_customCallbacks']){const _0x58553d=_0x47923a(_0x141d5a);if(_0x58553d&&'type'in _0x58553d)return _0x58553d;}}['_handleAttributeSuggestionDescription'](_0x5cf840,_0x35279a){const _0x18b473=_0x35279a['data'],_0x1b4193=void 0x0===_0x18b473['newValue']?'removeFormat':'addFormat';_0x5cf840['push']({'type':_0x1b4193,'key':_0x18b473['key']});}['_handleRenameSuggestionDescription'](_0x2f256c,_0x2cabf5){_0x2f256c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2cabf5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3bde5e,_0x4dac61,_0x542b41){if(this['_addDescriptionItems'](_0x3bde5e,_0x4dac61),_0x542b41&&_0x542b41['getFirstRange']()&&!_0x4dac61['getFirstRange']()['end']['isEqual'](_0x542b41['getFirstRange']()['start'])){const _0x381562=_0x3bde5e[_0x3bde5e['length']-0x1],_0x485ba8='insertion'==_0x4dac61['type']?'add':'remove';_0x381562&&'text'==_0x381562['type']&&(_0x381562[_0x485ba8]+='\x0a');}}}class U extends _0x4f24f5{['afterInit'](){const _0xc65d20=this['editor'],_0x579598=_0xc65d20['plugins']['get']('TrackChangesEditing');_0xc65d20['commands']['get']('showAIAssistant')&&_0x579598['enableCommand']('showAIAssistant');}}class V extends _0x4f24f5{['afterInit'](){const _0xa2f199=this['editor'],_0x268918=_0xa2f199['plugins']['get']('TrackChangesEditing');_0xa2f199['commands']['get']('toggleAi')&&_0x268918['enableCommand']('toggleAi');}}class F extends _0x4f24f5{['afterInit'](){const _0x136e32=this['editor'],_0x26af0f=_0x136e32['plugins']['get']('TrackChangesEditing');_0x136e32['commands']['get']('aiQuickAction')&&_0x26af0f['enableCommand']('aiQuickAction');}}class G extends _0x4f24f5{['afterInit'](){const _0x521450=this['editor'],_0x52c030=_0x521450['locale'];if(!_0x521450['plugins']['has']('AlignmentEditing'))return;const _0x5d2d5e=_0x521450['plugins']['get']('TrackChangesEditing');_0x5d2d5e['enableDefaultAttributesIntegration']('alignment'),_0x5d2d5e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x52c030,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ec6d9=this['editor'],_0x362472=_0x2ec6d9['locale'];_0x2ec6d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c473a=>{if('formatBlock'!=_0x1c473a['type'])return;const {data:_0x18c079}=_0x1c473a;if(_0x18c079&&'alignment'==_0x18c079['commandName']){const _0x343b4b=_0x18c079['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x362472,'*Format:*\x20%0',function(_0x4abdc2){switch(_0x4abdc2){case'left':return o(_0x362472,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x362472,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x362472,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x362472,'FORMAT_JUSTIFY_TEXT');}}(_0x343b4b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x4f24f5{['afterInit'](){const _0x35aa46=this['editor'],_0x4ee3dd=_0x35aa46['plugins']['get']('TrackChangesEditing'),_0x489305=_0x35aa46['locale'];for(const _0x328aa7 of ti){if(!_0x35aa46['plugins']['has'](_0x328aa7))continue;const _0xb050f4=_0x328aa7['slice'](0x0,-0x7)['toLowerCase'](),_0x3ae4b6='FORMAT_'+_0xb050f4['toUpperCase']();_0x4ee3dd['enableDefaultAttributesIntegration'](_0xb050f4),_0x4ee3dd['descriptionFactory']['registerAttributeLabel'](_0xb050f4,o(_0x489305,_0x3ae4b6));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x274661=this['editor'],_0x6f5003=_0x274661['locale'],_0x40cdfe=_0x274661['plugins']['get']('TrackChangesEditing');function _0xe8d395(_0x28bc61,_0x541c92){_0x40cdfe['descriptionFactory']['registerDescriptionCallback'](_0x12bd76=>{if('formatInline'!=_0x12bd76['type'])return;const {data:_0x88b304}=_0x12bd76;return _0x88b304&&_0x88b304['commandName']===_0x28bc61?_0x88b304['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6f5003,'*Format:*\x20%0',_0x541c92)}:{'type':'format','content':o(_0x6f5003,'*Remove\x20format:*\x20%0',_0x541c92)}:void 0x0;});}_0xe8d395('bold',o(_0x6f5003,'FORMAT_BOLD')),_0xe8d395('italic',o(_0x6f5003,'FORMAT_ITALIC')),_0xe8d395('underline',o(_0x6f5003,'FORMAT_UNDERLINE')),_0xe8d395('code',o(_0x6f5003,'FORMAT_CODE')),_0xe8d395('strikethrough',o(_0x6f5003,'FORMAT_STRIKETHROUGH')),_0xe8d395('subscript',o(_0x6f5003,'FORMAT_SUBSCRIPT')),_0xe8d395('superscript',o(_0x6f5003,'FORMAT_SUPERSCRIPT'));}}class J extends _0x4f24f5{['afterInit'](){const _0x3a6eaa=this['editor'],_0x1144cf=_0x3a6eaa['locale'];if(!_0x3a6eaa['plugins']['has']('BlockQuoteEditing'))return;const _0x374d56=_0x3a6eaa['plugins']['get']('TrackChangesEditing'),_0x12366a=this['editor']['commands']['get']('blockQuote');_0x374d56['enableCommand']('blockQuote',(_0x5181df,_0x25ac4e={})=>{const _0x4a6bf4=this['editor']['model']['document']['selection'],_0x3b1f1a=_0x25ac4e&&void 0x0!==_0x25ac4e['forceValue']?_0x25ac4e['forceValue']:!_0x12366a['value'];let _0x1facc7=[];if(_0x3b1f1a){const _0x16e96f=Array['from'](_0x4a6bf4['getSelectedBlocks']())['filter'](_0x41ad09=>oo(_0x41ad09)||function(_0x5b534d,_0x3f32ea){const _0x5d3c35=_0x3f32ea['checkChild'](_0x5b534d['parent'],'blockQuote'),_0x2fbf3e=_0x3f32ea['checkChild'](['$root','blockQuote'],_0x5b534d);return _0x5d3c35&&_0x2fbf3e;}(_0x41ad09,this['editor']['model']['schema']));_0x1facc7=to(_0x16e96f,_0x3a6eaa['model']);}else{const _0x4a7016=Array['from'](_0x4a6bf4['getSelectedBlocks']())['filter'](_0x464141=>oo(_0x464141));_0x1facc7=to(_0x4a7016,_0x3a6eaa['model']);}_0x3a6eaa['model']['change'](()=>{for(const _0x376245 of _0x1facc7)_0x374d56['markBlockFormat'](_0x376245,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3b1f1a}]});});}),_0x374d56['descriptionFactory']['registerDescriptionCallback'](_0xaa8d59=>{const {data:_0x5aa153}=_0xaa8d59;if(_0x5aa153&&'blockQuote'==_0x5aa153['commandName']){const _0x798f64=o(_0x1144cf,'ELEMENT_BLOCK_QUOTE');return _0x5aa153['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1144cf,'*Set\x20format:*\x20%0',_0x798f64)}:{'type':'format','content':o(_0x1144cf,'*Remove\x20format:*\x20%0',_0x798f64)};}});}}function oo(_0x410ba0){return'blockQuote'==_0x410ba0['parent']['name'];}class q extends _0x4f24f5{['afterInit'](){const _0xef0d7a=this['editor'],_0x2a0ff7=_0xef0d7a['locale'],_0x4f87cb=_0xef0d7a['plugins']['get']('TrackChangesEditing');_0xef0d7a['plugins']['has']('BookmarkEditing')&&(_0x4f87cb['enableCommand']('insertBookmark'),_0x4f87cb['enableDefaultAttributesIntegration']('updateBookmark'),_0x4f87cb['descriptionFactory']['registerDescriptionCallback'](_0x3f087d=>{if('insertion'!=_0x3f087d['type']&&'deletion'!=_0x3f087d['type']&&'attribute'!=_0x3f087d['type'])return;const _0x216284=_0x3f087d['getContainedElement']();if(null==_0x216284)return;if(!_0x216284['is']('element','bookmark'))return;const _0x1fd4fe=_0x216284['getAttribute']('bookmarkId');if('insertion'==_0x3f087d['type'])return{'type':'insertion','content':o(_0x2a0ff7,'*Insert:*\x20%0','\x22'+_0x1fd4fe+'\x22\x20'+o(_0x2a0ff7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3f087d['type'])return{'type':'deletion','content':o(_0x2a0ff7,'*Remove:*\x20%0','\x22'+_0x1fd4fe+'\x22\x20'+o(_0x2a0ff7,'ELEMENT_BOOKMARK'))};const {data:_0x5d33a6}=_0x3f087d;if(!_0x5d33a6||'bookmarkId'!=_0x5d33a6['key'])return;return{'type':'format','content':o(_0x2a0ff7,'*Set\x20bookmark:*\x20%0','\x22'+_0x5d33a6['newValue']+'\x22')};}));}}class z extends _0x4f24f5{['afterInit'](){const _0x4f840a=this['editor'];_0x4f840a['plugins']['has']('CaseChange')&&(_0x4f840a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4f840a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4f840a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x4f24f5{['afterInit'](){const _0xd47b90=this['editor'];_0xd47b90['commands']['get']('ckbox')&&_0xd47b90['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x4f24f5{['afterInit'](){const _0x34c1ea=this['editor'];if(!_0x34c1ea['plugins']['has']('CodeBlock'))return;const _0x348d0c=_0x34c1ea['plugins']['get']('TrackChangesEditing'),_0x5aac58=_0x34c1ea['locale'],_0x1d19b0=_0x34c1ea['config']['get']('codeBlock')['languages'],_0x300ade=_0x34c1ea['commands']['get']('codeBlock');_0x348d0c['enableCommand']('indentCodeBlock'),_0x348d0c['enableCommand']('outdentCodeBlock'),_0x348d0c['enableCommand']('codeBlock',(_0x30a62b,_0x5db55a={})=>{const _0x38992c=_0x34c1ea['model'],_0x1efb87=_0x34c1ea['model']['document']['selection'],_0x4f5ced=_0x5db55a&&void 0x0!==_0x5db55a['forceValue']?_0x5db55a['forceValue']:!_0x300ade['value'];let _0x553e1a;_0x5db55a['language']||(_0x5db55a['language']=_0x1d19b0[0x0]['language']),_0x553e1a=_0x4f5ced?Array['from'](_0x1efb87['getSelectedBlocks']())['filter'](_0x2b4289=>co(_0x2b4289)||function(_0x34a665,_0x528ce6){if(_0x34a665['is']('rootElement')||_0x528ce6['isLimit'](_0x34a665))return!0x1;return _0x528ce6['checkChild'](_0x34a665['parent'],'codeBlock');}(_0x2b4289,_0x38992c['schema'])):Array['from'](_0x1efb87['getSelectedBlocks']())['filter'](_0x33986d=>co(_0x33986d));const _0x3ef0d1=to(_0x553e1a,_0x38992c);_0x38992c['change'](()=>{for(const _0x554205 of _0x3ef0d1)_0x348d0c['markBlockFormat'](_0x554205,{'commandName':'codeBlock','commandParams':[{..._0x5db55a,'forceValue':_0x4f5ced}],'formatGroupId':'blockName'});});}),(_0x348d0c['descriptionFactory']['registerElementLabel']('codeBlock',_0x44cf6e=>o(_0x5aac58,'ELEMENT_CODE_BLOCK',_0x44cf6e)),_0x348d0c['descriptionFactory']['registerDescriptionCallback'](_0x4d13d0=>{if('formatBlock'!=_0x4d13d0['type'])return;const _0x2d8ef1=_0x5aac58['t'],{data:_0x485acd}=_0x4d13d0;if(!_0x485acd||'codeBlock'!=_0x485acd['commandName'])return;const _0xac7760=_0x485acd['commandParams'][0x0]['language'],_0x2ed5df=_0x2d8ef1(_0x1d19b0['find'](_0x6d512c=>_0x6d512c['language']===_0xac7760)['label'])['toLowerCase']();return _0x485acd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5aac58,'*Set\x20format:*\x20%0',o(_0x5aac58,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2ed5df+')')}:{'type':'format','content':o(_0x5aac58,'*Remove\x20format:*\x20%0',o(_0x5aac58,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3339b6){return'codeBlock'==_0x3339b6['name'];}class H extends _0x4f24f5{['afterInit'](){const _0x26a6d3=this['editor'];if(!_0x26a6d3['plugins']['has']('CommentsEditing'))return;_0x26a6d3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x4f24f5{static get['requires'](){return[_0x1f71a3];}['init'](){const _0x1d2cc1=this['editor'],_0x2e194b=_0x1d2cc1['plugins']['get']('TrackChangesEditing');_0x2e194b['enableCommand']('delete');const _0x4b8319=_0x1d2cc1['commands']['get']('deleteForward');_0x2e194b['enableCommand']('deleteForward',(_0x5195e9,_0x4d958f={})=>{const _0x4af4b2=_0x1d2cc1['model']['createSelection'](_0x1d2cc1['model']['document']['selection']);_0x4af4b2['isCollapsed']&&_0x1d2cc1['model']['modifySelection'](_0x4af4b2,{'direction':'forward','unit':_0x4d958f['unit']});const _0x58681b=_0x4af4b2['getFirstRange'](),_0x414a91=_0x41285e['fromRange'](_0x58681b);let _0x2c7aba;_0x5195e9(_0x4d958f),_0x2c7aba='$graveyard'==_0x414a91['root']['rootName']?_0x1d2cc1['model']['createRange'](_0x58681b['start']):_0x1d2cc1['model']['createRange'](_0x414a91['start'],_0x414a91['end']),_0x414a91['detach'](),_0x1d2cc1['model']['enqueueChange'](_0x4b8319['buffer']['batch'],_0x3ffd39=>{_0x4b8319['buffer']['lock'](),_0x3ffd39['setSelection'](_0x3ffd39['createRange'](_0x2c7aba['end'])),_0x4b8319['buffer']['unlock']();});});}}class X extends _0x4f24f5{['afterInit'](){const _0x4a7a3d=this['editor'];if(!_0x4a7a3d['plugins']['has']('ListEditing'))return;const _0x49a900=_0x4a7a3d['locale'],_0x252294=_0x4a7a3d['plugins']['get']('TrackChangesEditing'),_0x3e48fe=_0x4a7a3d['plugins']['has']('TodoListEditing'),_0x5e560a=!!_0x4a7a3d['config']['get']('list.multiBlock');function _0x19c6b4(_0x58e763){return{'type':'format','content':''+o(_0x49a900,'*Set\x20format:*\x20%0',_0x58e763)};}function _0x172564(_0x2387dd){return{'type':'format','content':''+o(_0x49a900,'*Remove\x20format:*\x20%0',_0x2387dd)};}_0x252294['enableDefaultAttributesIntegration']('numberedList'),_0x252294['enableDefaultAttributesIntegration']('bulletedList'),_0x252294['enableDefaultAttributesIntegration']('customNumberedList'),_0x252294['enableDefaultAttributesIntegration']('customBulletedList'),_0x252294['enableDefaultAttributesIntegration']('indentList'),_0x252294['enableDefaultAttributesIntegration']('outdentList'),_0x252294['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x252294['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5e560a&&(_0x252294['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x252294['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3e48fe&&(_0x252294['enableDefaultAttributesIntegration']('todoList'),_0x252294['enableDefaultAttributesIntegration']('checkTodoList'),_0x252294['descriptionFactory']['registerDescriptionCallback'](_0x5bc0e5=>{const {data:_0x5b3e1e}=_0x5bc0e5;if(_0x5b3e1e&&'todoListChecked'==_0x5b3e1e['key'])return{'type':'format','content':_0x5b3e1e['newValue']?o(_0x49a900,'*Check\x20item*'):o(_0x49a900,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5f5d62=>{if(_0x5f5d62['batch']['isUndo'])return!0x1;let _0x4f86af=!0x1;const _0x36380e=_0x252294['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x469659=>'todoListChecked'===_0x252294['_getAttributeKey'](_0x469659));for(const _0x382dc9 of _0x36380e){'todo'!=_0x382dc9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x252294['_findSuggestions'](_0x382dc9['getFirstRange'](),'attribute')['find'](_0xad0121=>'listType'===_0x252294['_getAttributeKey'](_0xad0121['suggestion']))||(_0x5f5d62['removeMarker'](_0x382dc9['getFirstMarker']()),_0x4f86af=!0x0));}return _0x4f86af;})),_0x252294['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x49a900,'FORMAT_INDENT'));const _0x508222={'type':'format','content':''};_0x252294['descriptionFactory']['registerDescriptionCallback'](_0x2b69ec=>{const {data:_0x4d59ba}=_0x2b69ec;if(!_0x4d59ba||'listType'!=_0x4d59ba['key'])return;let _0x2f8452=_0x2b69ec['head'];for(;_0x2f8452;){if(_0x2f8452['data']&&(('listStyle'==_0x2f8452['data']['key']||'listMarkerStyle'==_0x2f8452['data']['key'])&&(_0x2f8452['data']['newValue']&&'default'!=_0x2f8452['data']['newValue']||'default'!=_0x2f8452['data']['oldValue']&&!_0x4d59ba['newValue'])||!_0x5e560a&&_0x2f8452['data']['key']==m))return _0x508222;_0x2f8452=_0x2f8452['next'];}if(null==_0x4d59ba['newValue'])switch(_0x4d59ba['oldValue']){case'bulleted':return _0x172564(o(_0x49a900,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x172564(o(_0x49a900,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x172564(o(_0x49a900,'ELEMENT_TODO_LIST'));}switch(_0x4d59ba['newValue']){case'bulleted':return _0x19c6b4(o(_0x49a900,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19c6b4(o(_0x49a900,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19c6b4(o(_0x49a900,'ELEMENT_TODO_LIST'));}}),_0x252294['descriptionFactory']['registerDescriptionCallback'](_0x1fb71e=>{const {data:_0x2f64c9}=_0x1fb71e;if(_0x2f64c9&&'listIndent'==_0x2f64c9['key'])return null==_0x2f64c9['newValue']||null==_0x2f64c9['oldValue']&&0x0==_0x2f64c9['newValue']?_0x508222:void 0x0;}),_0x252294['descriptionFactory']['registerDescriptionCallback'](_0x59fad1=>{if('attribute'!=_0x59fad1['type'])return;const {data:_0x1d6c40}=_0x59fad1;if(!_0x1d6c40||'listItemId'!=_0x1d6c40['key'])return;const _0x556649=Te(_0x59fad1);return'newValue'==_0x556649?{'type':'format','content':o(_0x49a900,'*Merge:*\x20list\x20item')}:'oldValue'==_0x556649?{'type':'format','content':o(_0x49a900,'*Split:*\x20list\x20item')}:_0x508222;}),_0x4a7a3d['model']['document']['registerPostFixer'](_0x9f5b0f=>this['listItemIdFixer'](_0x9f5b0f)),_0x4a7a3d['model']['document']['registerPostFixer'](_0x529653=>this['noTrackChangesFixer'](_0x529653)),_0x4a7a3d['model']['document']['on']('change:data',(_0x2f8fea,_0x270607)=>{if(_0x270607['isUndo']||!_0x270607['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x14307b){if(_0x14307b['batch']['isUndo']||!_0x14307b['batch']['isLocal'])return!0x1;let _0x2b5c0d=!0x1;const _0x4ca829=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30a5a0=>_0x30a5a0['data']&&'listItemId'==_0x30a5a0['data']['key'])['filter'](_0x4b614b=>_0x4b614b['data']['newValue']&&_0x4b614b['data']['oldValue']);for(const _0x3c03b6 of _0x4ca829)Te(_0x3c03b6)||(_0x14307b['removeMarker'](_0x3c03b6['getFirstMarker']()),_0x2b5c0d=!0x0);return _0x2b5c0d;}['noTrackChangesFixer'](_0x5bebd2){if(_0x5bebd2['batch']['isUndo']||!_0x5bebd2['batch']['isLocal'])return!0x1;const _0x2397f4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2397f4['trackChangesCommand']['value'])return!0x1;let _0x4aaeaa=!0x1;const _0x46aa4d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5bd5ae=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x540273=>'attribute'==_0x540273['type'])['filter'](_0x399cfe=>_0x46aa4d['includes'](_0x399cfe['attributeKey']));if(0x0==_0x5bd5ae['length'])return _0x4aaeaa;for(const _0xa4aeda of _0x5bd5ae){const _0x495ead=_0x2397f4['_findSuggestions'](_0xa4aeda['range'],'attribute')['filter'](_0x57edc8=>!_0x57edc8['meta']['isNextTo'])['map'](_0x4166a9=>_0x4166a9['suggestion'])['filter'](_0x4e1605=>{const _0x4b8a96=_0x2397f4['_getAttributeKey'](_0x4e1605);return _0x46aa4d['includes'](_0x4b8a96);});if(_0x495ead['length']){for(const _0x50a3b2 of _0x495ead)_0x5bebd2['removeMarker'](_0x50a3b2['getFirstMarker']());_0x4aaeaa=!0x0;}}return _0x4aaeaa;}['assureChains'](){const _0x4708f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57d855=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4c6671;const _0x2b6fad=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1aea03=>{if(_0x1aea03['data']['oldRange']||!_0x1aea03['data']['newRange'])return null;if(!_0x1aea03['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2843bd}=_0x4708f4['_splitMarkerName'](_0x1aea03['name']);if(!_0x4708f4['hasSuggestion'](_0x2843bd))return null;const _0x3fe59b=_0x4708f4['getSuggestion'](_0x2843bd);return _0x57d855['includes'](_0x3fe59b['data']['key']);})['map'](_0x4c27d2=>{const {id:_0x1c2578}=_0x4708f4['_splitMarkerName'](_0x4c27d2['name']),_0x32f3ec=_0x4708f4['getSuggestion'](_0x1c2578);return _0x4c6671=_0x32f3ec['attributes']['groupId'],_0x32f3ec['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2b6fad['size'])return;const _0x3d4f80=_0x4708f4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ceeb0=>'attribute'==_0x2ceeb0['type']&&_0x2ceeb0['data']&&_0x57d855['includes'](_0x2ceeb0['data']['key'])&&_0x2ceeb0['attributes']['groupId']!=_0x4c6671)['map'](_0x3c5786=>({'listItem':_0x3c5786['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3c5786['attributes']['groupId']})),_0x3a0aa7=new Set();for(const {groupId:_0x4f293c,listItem:_0x5df26f}of _0x3d4f80)_0x2b6fad['has'](_0x5df26f)&&_0x3a0aa7['add'](_0x4f293c);for(const _0xc7fd93 of _0x4708f4['getSuggestions']())_0x3a0aa7['has'](_0xc7fd93['attributes']['groupId'])&&_0xc7fd93['setAttribute']('groupId',_0x4c6671);}['_supportLegacySuggestions'](){const _0xddcdce=this['editor'],_0x425ef2=_0xddcdce['locale'],_0x50eb13=_0xddcdce['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x50eb13['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xfea0ee,_0x113c3b){const _0x1455e1=[];for(let _0x4ea6cf of _0xfea0ee)_0x4ea6cf['start']['nodeAfter']===_0x4ea6cf['end']['parent']&&(_0x4ea6cf=_0xddcdce['model']['createRange'](_0xddcdce['model']['createPositionAt'](_0x4ea6cf['start']['nodeAfter'],0x0))),_0x1455e1['push'](_0x4ea6cf);_0xddcdce['model']['change'](_0x4018ad=>{const _0x8bd80d=_0xddcdce['model']['document']['selection'],_0x14c77c=Array['from'](_0x8bd80d['getRanges']())['map'](_0x41753e=>_0x41285e['fromRange'](_0x41753e));_0x4018ad['setSelection'](_0x1455e1),_0xddcdce['commands']['get'](_0x113c3b['commandName'])['refresh'](),_0x113c3b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xddcdce['execute'](_0x113c3b['commandName'],..._0x113c3b['commandParams']),_0x4018ad['setSelection'](_0x14c77c);for(const _0xa07632 of _0x14c77c)_0xa07632['detach']();});}),_0x50eb13['descriptionFactory']['registerElementLabel'](function(_0x3d9113){const _0x233ea1=!_0xddcdce['model']['schema']['isObject'](_0x3d9113),_0x50bddd=_0x3d9113['previousSibling'],_0x2e54e3=_0x3d9113['nextSibling'],_0x5a2486=_0x3d9113['getAttribute']('listItemId'),_0x25ce4b=!_0x50bddd||_0x50bddd['getAttribute']('listItemId')!==_0x5a2486,_0x1c579a=!_0x2e54e3||_0x2e54e3['getAttribute']('listItemId')!==_0x5a2486;return _0x233ea1&&Boolean(_0x5a2486)&&_0x25ce4b&&_0x1c579a;},_0x3aa7e0=>o(_0x425ef2,'ELEMENT_LIST_ITEM',_0x3aa7e0));}['_registerLegacyDescription'](){const _0x2ec77b=this['editor'],_0x286e8a=_0x2ec77b['locale'];function _0x30903d(_0x4b7afa){const _0x5748e0=_0x2ec77b['commands']['get']('bulletedList')['value'],_0x3ed5b5=_0x2ec77b['commands']['get']('numberedList')['value'];return'numberedList'===_0x4b7afa?_0x5748e0:_0x3ed5b5;}_0x2ec77b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x34071f){if('formatBlock'!=_0x34071f['type'])return;const {data:_0x1b4f65}=_0x34071f;if(!_0x1b4f65)return;let _0x5acb6d,_0x43e61b,_0x2c2982,_0x5dad9e;switch(_0x1b4f65['commandName']){case'bulletedList':_0x2c2982=_0x1b4f65['commandParams'][0x0]['forceValue'],_0x5dad9e=_0x30903d(_0x1b4f65['commandName']),_0x5acb6d=_0x2c2982?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5dad9e&&_0x2ec77b['config']['get']('list.multiBlock')||(_0x5acb6d='*Change\x20to:*\x20%0'),_0x43e61b={'type':'format','content':o(_0x286e8a,_0x5acb6d,o(_0x286e8a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2c2982=_0x1b4f65['commandParams'][0x0]['forceValue'],_0x5dad9e=_0x30903d(_0x1b4f65['commandName']),_0x5acb6d=_0x2c2982?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5dad9e&&_0x2ec77b['config']['get']('list.multiBlock')||(_0x5acb6d='*Change\x20to:*\x20%0'),_0x43e61b={'type':'format','content':o(_0x286e8a,_0x5acb6d,o(_0x286e8a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5acb6d='*Indent:*\x20%0',_0x43e61b={'type':'format','content':o(_0x286e8a,_0x5acb6d,o(_0x286e8a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5acb6d=function(_0x4c6a11){const _0x843050=_0x4c6a11['getFirstRange']();let _0x2f38c3=_0x843050['start']['nodeAfter'];for(;_0x2f38c3&&_0x843050['containsItem'](_0x2f38c3);){if(_0x2f38c3['getAttribute']('listIndent')>0x0)return!0x1;_0x2f38c3=_0x2f38c3['nextSibling'];}return!0x0;}(_0x34071f)?o(_0x286e8a,'*Format:*\x20remove\x20from\x20%0',o(_0x286e8a,function(_0xbc591e){return'ELEMENT_'+_0xbc591e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x34071f))):o(_0x286e8a,'*Outdent:*\x20%0',o(_0x286e8a,'ELEMENT_LIST_ITEM')),_0x43e61b={'type':'format','content':_0x5acb6d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1b4f65['multipleBlocks']&&(_0x5acb6d='*Merge:*\x20%0',_0x43e61b={'type':'deletion','content':o(_0x286e8a,_0x5acb6d,o(_0x286e8a,'ELEMENT_LIST_ITEM'))});}return _0x43e61b;});}}function Te(_0x23cf12){let _0x34f829=_0x23cf12['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34f829;){const _0x48ecde=_0x34f829['getAttribute']('listItemId');if(!_0x48ecde)return!0x1;if(_0x48ecde==_0x23cf12['data']['newValue'])return'newValue';if(_0x48ecde==_0x23cf12['data']['oldValue'])return'oldValue';_0x34f829=_0x34f829['previousSibling'];}return!0x1;}class Y extends _0x4f24f5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xb20ae9=this['editor']['config']['get']('list.properties'),_0x1e68c7=this['editor']['plugins']['get']('TrackChangesEditing');_0xb20ae9['styles']&&_0x1e68c7['enableDefaultAttributesIntegration']('listStyle'),_0xb20ae9['reversed']&&_0x1e68c7['enableDefaultAttributesIntegration']('listReversed'),_0xb20ae9['startIndex']&&_0x1e68c7['enableDefaultAttributesIntegration']('listStart');const _0x217e2c={'type':'format','content':''};_0x1e68c7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1482a1=this['editor']['locale'];_0x1e68c7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1482a1,'FORMAT_LIST_REVERSED')),_0x1e68c7['descriptionFactory']['registerDescriptionCallback'](_0x54cd4e=>{const {data:_0x413866}=_0x54cd4e;if(_0x413866&&'listReversed'==_0x413866['key'])return null==_0x413866['newValue']||0x0==_0x413866['newValue']&&null==_0x413866['oldValue']?_0x217e2c:void 0x0;}),_0x1e68c7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1482a1,'FORMAT_LIST_START')),_0x1e68c7['descriptionFactory']['registerDescriptionCallback'](_0xefc52a=>{const {data:_0x3f6f95}=_0xefc52a;if(_0x3f6f95&&'listStart'==_0x3f6f95['key'])return null==_0x3f6f95['newValue']||0x1==_0x3f6f95['newValue']&&null==_0x3f6f95['oldValue']?_0x217e2c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x10fe53=>{if(_0x10fe53['batch']['isUndo'])return!0x1;let _0x45d2c2=!0x1;const _0x1a549c=_0x1e68c7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cfc8f=>{const _0x56c3b3=_0x1e68c7['_getAttributeKey'](_0x1cfc8f);return'listStart'==_0x56c3b3||'listReversed'==_0x56c3b3;});for(const _0x1890ac of _0x1a549c){const _0x3c19c3=_0x1890ac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3c19c3||'customNumbered'==_0x3c19c3)continue;_0x1e68c7['_findSuggestions'](_0x1890ac['getFirstRange'](),'attribute')['find'](_0x342c24=>'listType'==_0x1e68c7['_getAttributeKey'](_0x342c24['suggestion']))||(_0x10fe53['removeMarker'](_0x1890ac['getFirstMarker']()),_0x45d2c2=!0x0);}return _0x45d2c2;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x41a840){const _0x30a5cf=this['editor']['locale'],{data:_0x5401a0}=_0x41a840,_0x5d1e97={'type':'format','content':''};if(!_0x5401a0||'listStyle'!=_0x5401a0['key'])return;if(!_0x5401a0['oldValue'])return'default'==_0x5401a0['newValue']?_0x5d1e97:{'type':'format','content':''+o(_0x30a5cf,'*Set\x20format:*\x20%0',o(_0x30a5cf,this['_getTranslationKeyForListStyle'](_0x5401a0['newValue'])))};if(!_0x5401a0['newValue']){if('default'==_0x5401a0['oldValue'])return _0x5d1e97;let _0x30e0a7=_0x41a840['head'];for(;_0x30e0a7;){if(_0x30e0a7['data']&&'listType'==_0x30e0a7['data']['key']&&_0x30e0a7['data']['newValue'])return _0x5d1e97;_0x30e0a7=_0x30e0a7['next'];}return{'type':'format','content':''+o(_0x30a5cf,'*Remove\x20format:*\x20%0',o(_0x30a5cf,this['_getTranslationKeyForListStyle'](_0x5401a0['oldValue'])))};}if('default'!=_0x5401a0['newValue'])return{'type':'format','content':''+o(_0x30a5cf,'*Set\x20format:*\x20%0',o(_0x30a5cf,this['_getTranslationKeyForListStyle'](_0x5401a0['newValue'])))};let _0x137d59=_0x41a840['head'];for(;_0x137d59;){if(_0x137d59['data']&&'listType'==_0x137d59['data']['key']&&_0x137d59['data']['newValue']&&_0x137d59['data']['oldValue'])return _0x5d1e97;_0x137d59=_0x137d59['next'];}return{'type':'format','content':o(_0x30a5cf,'*Set\x20format:*\x20%0',o(_0x30a5cf,'ELEMENT_'+_0x41a840['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1b0361=this['editor'],_0x2b81eb=_0x1b0361['locale'];_0x1b0361['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ace9a=>{if('formatBlock'!=_0x4ace9a['type'])return;const {data:_0x6bf040}=_0x4ace9a;if(!_0x6bf040)return;let _0x5cf268,_0x1c7c69;switch(_0x6bf040['commandName']){case'listStyle':_0x5cf268='*Change\x20to:*\x20%0',_0x1c7c69={'type':'format','content':o(_0x2b81eb,_0x5cf268,o(_0x2b81eb,this['_getTranslationKeyForListStyle'](_0x6bf040['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5cf268=_0x6bf040['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1c7c69={'type':'format','content':o(_0x2b81eb,_0x5cf268)};break;case'listStart':_0x5cf268='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1c7c69={'type':'format','content':o(_0x2b81eb,_0x5cf268,_0x6bf040['commandParams'][0x0]['startIndex'])};}return _0x1c7c69;});}['_getTranslationKeyForListStyle'](_0x1f8601){return'ELEMENT_'+function(_0x50e60b){if(ye['includes'](_0x50e60b))return'bulleted';if(Se['includes'](_0x50e60b))return'numbered';return null;}(_0x1f8601)['toUpperCase']()+'_LIST_'+_0x1f8601['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 _0x4f24f5{['afterInit'](){const _0x12acc4=this['editor'];_0x12acc4['commands']['get']('emoji')&&_0x12acc4['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x4f24f5{static get['requires'](){return[_0x2c424e];}['init'](){const _0x7ff3c0=this['editor'],_0x565261=_0x7ff3c0['plugins']['get']('TrackChangesEditing'),_0x210b28=_0x7ff3c0['commands']['get']('enter');_0x565261['enableCommand']('enter',()=>{_0x7ff3c0['model']['change'](_0x57b2a0=>{const _0x7205cc=_0x7ff3c0['model']['document']['selection'],_0x29cf5a=_0x7205cc['getFirstPosition'](),_0x3df0fc=_0x41285e['fromRange'](_0x7205cc['getFirstRange']());if(_0x210b28['enterBlock'](_0x57b2a0)){const _0x237395=_0x7ff3c0['model']['createPositionAt'](_0x29cf5a['parent']['nextSibling'],0x0),_0x25cb75=_0x57b2a0['createRange'](_0x29cf5a,_0x237395);_0x565261['markInsertion'](_0x25cb75);}else _0x57b2a0['setSelection'](_0x57b2a0['createRange'](_0x3df0fc['end']));_0x3df0fc['detach'](),_0x210b28['fire']('afterExecute',{'writer':_0x57b2a0});});});}}class nt extends _0x4f24f5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x14726e=this['editor']['plugins']['get']('TrackChangesEditing');_0x14726e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x14726e['enableCommand']('findNext'),_0x14726e['enableCommand']('findPrevious'),_0x14726e['enableCommand']('replace'),_0x14726e['enableCommand']('replaceAll');}['handleFindCommand'](_0x16a8b8,_0x3e86e6,_0x286001={}){const _0x4d3d19=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x16a8b8(_0x4fca95=>{let _0x4bd4f2=('string'==typeof _0x3e86e6?_0x4d3d19['findByTextCallback'](_0x3e86e6,_0x286001):_0x3e86e6)(_0x4fca95);Array['isArray'](_0x4bd4f2)&&(_0x4bd4f2={'results':_0x4bd4f2,'searchText':'string'==typeof _0x3e86e6?_0x3e86e6:''});const _0x1771e9=_0x4bd4f2['results']['filter'](_0x420608=>!0x1===this['_isInDeletionRange'](_0x420608,_0x4fca95['item']));return{..._0x4bd4f2,'results':_0x1771e9};},_0x286001);}['_isInDeletionRange'](_0x3b92c8,_0x3b727d){const _0x5d2fe6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b727d,_0x3b92c8['start']),this['editor']['model']['createPositionAt'](_0x3b727d,_0x3b92c8['end']));for(const _0x1c7fbf of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5d2fe6['getIntersection'](_0x1c7fbf['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 _0x4f24f5{['afterInit'](){const _0x1098e3=this['editor']['locale'],_0x809a5d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xc533b4,commandName:_0x1ad2b9}of eo)this['editor']['plugins']['has'](_0xc533b4)&&_0x809a5d['enableDefaultAttributesIntegration'](_0x1ad2b9);_0x809a5d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1098e3,'FORMAT_FONT_SIZE')),_0x809a5d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1098e3,'FORMAT_FONT_FAMILY')),_0x809a5d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1098e3,'FORMAT_FONT_COLOR')),_0x809a5d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1098e3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15c08a=this['editor'],_0x1e3b2d=_0x15c08a['locale'];_0x15c08a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c487f=>{const _0x187731=_0x1e3b2d['t'];if('formatInline'!=_0x4c487f['type'])return;const {data:_0x175aff}=_0x4c487f;if(null!=_0x175aff){if('fontSize'==_0x175aff['commandName']){const _0x456de7=_0x175aff['commandParams'][0x0]['value'];if(_0x456de7){const _0x588bdc=_0x187731(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1a4534=>_0x1a4534['model']==_0x456de7)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1e3b2d,'*Set\x20font\x20size:*\x20%0',_0x588bdc)};}return{'type':'format','content':o(_0x1e3b2d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x175aff['commandName']){const _0x335dae=_0x175aff['commandParams'][0x0]['value'];return _0x335dae?{'type':'format','content':o(_0x1e3b2d,'*Set\x20font\x20family:*\x20%0',_0x335dae)}:{'type':'format','content':o(_0x1e3b2d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x175aff['commandName']){const _0x32dc50=_0x175aff['commandParams'][0x0]['value'];if(_0x32dc50){const _0x3009e7=_0x321151(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e2507=>_0x3e2507['model']==_0x32dc50);let _0xf4cfcf=_0x32dc50,_0x4e3bd2='';return _0x3009e7&&(_0xf4cfcf=_0x3009e7['label'],_0x4e3bd2=_0x187731(_0xf4cfcf)['toLowerCase']()),{'type':'format','content':o(_0x1e3b2d,'*Set\x20font\x20color:*\x20%0',_0x4e3bd2)['trim'](),'color':{'value':_0x32dc50,'title':_0x4e3bd2||_0xf4cfcf}};}return{'type':'format','content':o(_0x1e3b2d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x175aff['commandName']){const _0x3dccc9=_0x175aff['commandParams'][0x0]['value'];if(_0x3dccc9){const _0x303722=_0x321151(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x375f3e=>_0x375f3e['model']==_0x3dccc9);let _0x161fba=_0x3dccc9,_0x549901='';return _0x303722&&(_0x161fba=_0x303722['label'],_0x549901=_0x187731(_0x161fba)['toLowerCase']()),{'type':'format','content':o(_0x1e3b2d,'*Set\x20font\x20background\x20color:*\x20%0',_0x549901)['trim'](),'color':{'value':_0x3dccc9,'title':_0x549901||_0x161fba}};}return{'type':'format','content':o(_0x1e3b2d,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x4f24f5{['afterInit'](){const {plugins:_0x59a11f}=this['editor'];_0x59a11f['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x59a11f['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xf6f20e,plugins:_0x224f03,commands:_0x3fd7cd}=this['editor'],_0xf92078=_0x224f03['get']('TrackChangesEditing');_0x3fd7cd['get']('footnotesStyle')&&_0xf92078['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3fd7cd['get']('footnotesStart')&&_0xf92078['enableDefaultAttributesIntegration']('footnotesStart'),_0xf92078['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0xf6f20e,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xf92078['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0xf6f20e,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x32b109=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4a8fb4,commands:_0x20438a}=this['editor'];_0x20438a['get']('insertFootnote')&&_0x32b109['enableCommand']('insertFootnote'),_0x32b109['descriptionFactory']['registerElementLabel']('footnoteRef',_0x411d24=>o(_0x4a8fb4,'ELEMENT_FOOTNOTE_REF',_0x411d24)),_0x32b109['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4429f1=>o(_0x4a8fb4,'ELEMENT_FOOTNOTE_DEFINITION',_0x4429f1)),_0x32b109['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0xba6162=>o(_0x4a8fb4,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0xba6162));}}class st extends _0x4f24f5{['afterInit'](){const _0xfae7ab=this['editor'],_0x45dd28=_0xfae7ab['plugins']['get']('TrackChangesEditing'),_0x1ad8c7=_0xfae7ab['commands']['get']('copyFormat'),_0x18e9f4=_0xfae7ab['commands']['get']('pasteFormat');_0x1ad8c7&&_0x18e9f4&&(_0x45dd28['enableDefaultAttributesIntegration']('pasteFormat'),_0x45dd28['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x7a8401=this['editor'],_0x4fef08=_0x7a8401['locale'];_0x7a8401['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x433c4d=>{if('formatBlock'!=_0x433c4d['type']&&'formatInline'!=_0x433c4d['type'])return;const {data:_0x57ec66}=_0x433c4d;if(_0x57ec66&&'pasteFormat'===_0x57ec66['commandName']){const _0x43b018=[],_0x282e6f=_0x57ec66['commandParams'][0x0];for(const [_0xee127f,_0x233c7d]of Object['entries'](_0x282e6f))_0x43b018['push'](ro(_0x7a8401,_0xee127f,_0x233c7d));return _0x43b018['length']?{'type':'format','content':o(_0x4fef08,'*Set\x20format\x20to:*\x20%0',_0x43b018['join'](',\x20'))}:{'type':'format','content':o(_0x4fef08,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3328b4,_0xccbdd1,_0x231075){const _0x74019c=_0x3328b4['locale']['t'],_0x321c4b=_0xccbdd1['split'](/(?=[A-Z])/)['join']('\x20'),_0x345f10=_0x74019c(_0x321c4b['charAt'](0x0)['toUpperCase']()+_0x321c4b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x231075)return _0x345f10;if('fontColor'===_0xccbdd1||'fontBackgroundColor'===_0xccbdd1){const _0x2cfb0d=_0x321151(_0x3328b4['config']['get']('fontColor.colors'))['find'](_0x135c62=>_0x135c62['model']==_0x231075);return _0x345f10+'\x20('+(_0x2cfb0d?_0x74019c(_0x2cfb0d['label'])['toLowerCase']():_0x231075)+')';}if('fontSize'===_0xccbdd1&&isNaN(parseFloat(_0x231075))){const _0x38fb39=_0x3328b4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3328b4['config']['get']('fontSize.options'))['find'](_0x23477f=>_0x23477f['model']==_0x231075);return _0x345f10+'\x20('+(_0x38fb39?_0x74019c(_0x38fb39['title'])['toLowerCase']():_0x231075)+')';}return _0x345f10+'\x20('+_0x231075+')';}class ot extends _0x4f24f5{['_headingOptions'];['afterInit'](){const _0xd277a0=this['editor'];if(!_0xd277a0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xd277a0['config']['get']('heading.options');const _0x37956c=_0xd277a0['locale'],_0x205400=_0xd277a0['plugins']['get']('TrackChangesEditing');_0x205400['enableDefaultAttributesIntegration']('heading');for(const _0x39a515 of this['_headingOptions'])'paragraph'!=_0x39a515['model']&&_0x205400['descriptionFactory']['registerElementLabel'](_0x39a515['model'],_0x55d1bd=>{const _0xfb7cdb=this['_getHeadingLevel'](_0x39a515['model']);return null!==_0xfb7cdb?_0x4cbb9c(_0x55d1bd,_0xfb7cdb):_0x157b3e(_0x55d1bd,_0x39a515['title']);});function _0x4cbb9c(_0x294d1a,_0x5169a5){return o(_0x37956c,'ELEMENT_HEADING',[_0x294d1a,_0x5169a5]);}function _0x157b3e(_0x104a05,_0x5277e8){return o(_0x37956c,'ELEMENT_HEADING_CUSTOM',[_0x104a05,_0x5277e8]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x305842=this['editor'],_0x3493d7=_0x305842['locale'];function _0x54feee(_0x1e4054,_0x2d8352){return o(_0x3493d7,'ELEMENT_HEADING_CUSTOM',[_0x1e4054,_0x2d8352]);}_0x305842['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44d8eb=>{if('formatBlock'!=_0x44d8eb['type'])return;const {data:_0x4a5dd9}=_0x44d8eb;if(_0x4a5dd9&&'heading'==_0x4a5dd9['commandName']){const _0xaef97f=_0x4a5dd9['commandParams'][0x0]['value'],_0x32759d=this['_getHeadingLevel'](_0xaef97f);if(null!==_0x32759d)return{'type':'format','content':o(_0x3493d7,'*Change\x20to:*\x20%0',(_0x1001b5=0x1,_0x10f51f=_0x32759d,o(_0x3493d7,'ELEMENT_HEADING',[_0x1001b5,_0x10f51f])))};const _0x596a07=this['_headingOptions']['find'](_0x5b7cde=>_0x5b7cde['model']===_0xaef97f)['title'];return{'type':'format','content':o(_0x3493d7,'*Change\x20to:*\x20%0',_0x54feee(0x1,_0x596a07))};}var _0x1001b5,_0x10f51f;});}['_getHeadingLevel'](_0x969bf0){const _0x5e563c=_0x969bf0['match'](/^heading(\d+)/);if(_0x5e563c)return _0x5e563c[0x1];const _0x2dbc94=this['_headingOptions']?.['find'](_0x423dd1=>_0x423dd1['model']==_0x969bf0);if(_0x2dbc94&&_0x2dbc94['view']){const _0xaf09f=_0x2dbc94['view'],_0x1cc62b=(_0xaf09f['name']??_0xaf09f)['match'](/^h(\d+)/);if(_0x1cc62b)return _0x1cc62b[0x1];}return null;}}class rt extends _0x4f24f5{['afterInit'](){const _0x289574=this['editor'];if(!_0x289574['plugins']['has']('HighlightEditing'))return;const _0x4df31c=_0x289574['plugins']['get']('TrackChangesEditing'),_0x3057f1=_0x289574['locale'];_0x4df31c['enableDefaultAttributesIntegration']('highlight'),_0x4df31c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3057f1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x533158=this['editor'],_0x5019cf=_0x533158['locale'];_0x533158['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41ea6f=>{if('formatInline'!=_0x41ea6f['type'])return;const {data:_0xa709ef}=_0x41ea6f;if(_0xa709ef&&'highlight'==_0xa709ef['commandName']){const _0x5a1cab=_0x5019cf['t'],_0x233d14=_0xa709ef['commandParams'][0x0]['value'];if(_0x233d14){const _0x292df7=_0x533158['config']['get']('highlight.options')['find'](_0x5d5a7a=>_0x5d5a7a['model']==_0x233d14),_0x459c97=_0x5a1cab(_0x292df7['title'])['toLowerCase']();return{'type':'format','content':o(_0x5019cf,'*Set\x20highlight:*\x20%0',_0x459c97),'color':{'value':_0x292df7['color'],'title':_0x292df7['title']}};}return{'type':'format','content':o(_0x5019cf,'*Remove\x20highlight*',o(_0x5019cf,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x4f24f5{['afterInit'](){const _0x28ac29=this['editor'];if(!_0x28ac29['plugins']['has']('HorizontalLineEditing'))return;_0x28ac29['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x38926b=_0x28ac29['plugins']['get']('TrackChangesEditing'),_0x1bff29=_0x28ac29['locale'];_0x38926b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3b4bc7=>o(_0x1bff29,'ELEMENT_HORIZONTAL_LINE',_0x3b4bc7));}}class ct extends _0x4f24f5{['afterInit'](){const _0x59010a=this['editor'];if(!_0x59010a['plugins']['has']('HtmlEmbed'))return;const _0x3bccc1=_0x59010a['plugins']['get']('TrackChangesEditing'),_0x4bcb2d=_0x59010a['locale'];_0x3bccc1['descriptionFactory']['registerElementLabel']('rawHtml',_0x1de51a=>o(_0x4bcb2d,'ELEMENT_HTML_EMBED',_0x1de51a)),_0x3bccc1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3bccc1['descriptionFactory']['registerDescriptionCallback'](_0x1109c0=>{if('attribute'!=_0x1109c0['type'])return;const {data:_0x672614}=_0x1109c0;if(_0x672614&&'value'==_0x672614['key']&&_0x1109c0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1bdbe4=o(_0x4bcb2d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4bcb2d,'*Change\x20%0\x20content*',_0x1bdbe4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b5a6d=this['editor'],_0x38399b=_0x5b5a6d['locale'];_0x5b5a6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf1af37=>{if('formatBlock'!=_0xf1af37['type'])return;const {data:_0x549a0e}=_0xf1af37;if(_0x549a0e&&'htmlEmbed'==_0x549a0e['commandName']){const _0x560322=o(_0x38399b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x38399b,'*Change\x20%0\x20content*',_0x560322)};}});}}class ut extends _0x4f24f5{['afterInit'](){const _0x275a8e=this['editor'];if(!_0x275a8e['plugins']['has']('ImageEditing'))return;const _0x52dd41=_0x275a8e['plugins']['get']('TrackChangesEditing'),_0x1138a5=_0x275a8e['plugins']['get']('ImageUtils'),_0x211ce8=_0x275a8e['locale'];_0x52dd41['enableCommand']('insertImage'),_0x52dd41['descriptionFactory']['registerElementLabel']('imageBlock',_0x5483a9=>o(_0x211ce8,'ELEMENT_IMAGE',_0x5483a9)),_0x52dd41['descriptionFactory']['registerElementLabel']('imageInline',_0x28cd5d=>o(_0x211ce8,'ELEMENT_INLINE_IMAGE',_0x28cd5d)),_0x52dd41['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x211ce8,'ELEMENT_CAPTION')),_0x275a8e['plugins']['has']('ImageUploadEditing')&&_0x52dd41['enableCommand']('uploadImage'),_0x275a8e['plugins']['has']('ImageBlockEditing')&&_0x275a8e['plugins']['has']('ImageInlineEditing')&&(_0x52dd41['enableCommand']('imageTypeInline',(_0x378fda,_0x132654)=>{const _0x4fa153=_0x1138a5['getClosestSelectedImageElement'](_0x275a8e['model']['document']['selection']);_0x275a8e['model']['change'](()=>{_0x52dd41['markBlockFormat'](_0x4fa153,{'commandName':'imageTypeInline','commandParams':[_0x132654]},[],'convertBlockImageToInline');});}),_0x52dd41['enableCommand']('imageTypeBlock',(_0x27cf41,_0x4cc079)=>{_0x275a8e['model']['change'](_0x4ceed4=>{let _0x3c9a95=_0x1138a5['getClosestSelectedImageElement'](_0x275a8e['model']['document']['selection']),_0xb4e292=_0x4ceed4['createRangeOn'](_0x3c9a95);const _0x4e493c=_0x26759d['fromPosition'](_0xb4e292['start'],'toPrevious'),_0x263a6f=_0x26759d['fromPosition'](_0xb4e292['end'],'toNext');_0x52dd41['forceDefaultExecution'](()=>_0x27cf41(_0x4cc079)),_0x3c9a95=_0x1138a5['getClosestSelectedImageElement'](_0x275a8e['model']['document']['selection']),_0xb4e292=_0x4ceed4['createRangeOn'](_0x3c9a95);const _0x3ac9a3=_0x4ceed4['createRange'](_0x4e493c,_0x263a6f);_0x4e493c['detach'](),_0x263a6f['detach'](),_0x52dd41['markBlockFormat'](_0x3c9a95,{'commandName':'imageTypeInline','commandParams':[_0x4cc079]},[],'convertInlineImageToBlock'),_0x3ac9a3['start']['isBefore'](_0xb4e292['start'])&&_0x52dd41['markInsertion'](_0x4ceed4['createRange'](_0x3ac9a3['start'],_0xb4e292['start']),'convertInlineImageToBlock'),_0xb4e292['end']['isBefore'](_0x3ac9a3['end'])&&_0x52dd41['markInsertion'](_0x4ceed4['createRange'](_0xb4e292['end'],_0x3ac9a3['end']),'convertInlineImageToBlock');});}),_0x52dd41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x52dd41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x52dd41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x52dd41['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x52dd41['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x52dd41['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5cb6d8])=>{const _0xc00028=_0x52dd41['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x328be4=_0x5cb6d8['start'],_0x194c32=_0x5cb6d8['end'];const _0x4eb42b=_0x275a8e['model']['schema']['getNearestSelectionRange'](_0x328be4,'backward'),_0x2b137b=_0x275a8e['model']['schema']['getNearestSelectionRange'](_0x194c32,'forward');_0x4eb42b['isCollapsed']&&(_0x328be4=_0x4eb42b['start']),_0x2b137b['isCollapsed']&&(_0x194c32=_0x2b137b['end']),_0xc00028([_0x275a8e['model']['createRange'](_0x328be4,_0x194c32)]);}),_0x52dd41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x250a4d),_0x52dd41['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x250a4d)),_0x275a8e['plugins']['has']('ImageCaptionEditing')&&(_0x52dd41['enableCommand']('toggleImageCaption',(_0x24428a,_0xea34a2)=>{const _0x2bab6f=_0x275a8e['plugins']['get']('ImageCaptionUtils');let _0x4652ef=_0x1138a5['getClosestSelectedImageElement'](_0x275a8e['model']['document']['selection']),_0x35d642=_0x2bab6f['getCaptionFromImageModelElement'](_0x4652ef);_0x275a8e['model']['change'](()=>{if(_0x35d642)return void _0x52dd41['markDeletion'](_0x275a8e['model']['createRangeOn'](_0x35d642));const _0x4870db=_0x1138a5['isBlockImage'](_0x4652ef);_0x24428a(_0xea34a2),_0x4652ef=_0x1138a5['getClosestSelectedImageElement'](_0x275a8e['model']['document']['selection']),_0x35d642=_0x2bab6f['getCaptionFromImageModelElement'](_0x4652ef),_0x52dd41['markInsertion'](_0x275a8e['model']['createRangeOn'](_0x35d642),_0x4870db?null:'imageCaption');});}),_0x52dd41['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x250a4d));const _0x393825=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3778a1(_0x327a02,_0x1f8b41){const _0x32a5ef=_0x393825['findIndex'](({type:_0x5efc02,subType:_0xf7a96d})=>_0x327a02['type']==_0x5efc02&&_0x327a02['subType']==_0xf7a96d),_0x30f75f=_0x393825['findIndex'](({type:_0x5a91ff,subType:_0x1ce11b})=>_0x1f8b41['type']==_0x5a91ff&&_0x1f8b41['subType']==_0x1ce11b);if(_0x32a5ef<0x0||_0x30f75f<0x0)return!0x1;const _0x28fc7d=_0x327a02['getFirstRange'](),_0x20774a=_0x1f8b41['getFirstRange']();if((0x0==_0x32a5ef||0x1==_0x32a5ef)&&0x2==_0x30f75f&&_0x28fc7d['isIntersecting'](_0x20774a))return!0x0;if(0x2==_0x32a5ef&&0x3==_0x30f75f){const _0x5105ee=_0x52dd41['_findSuggestions'](_0x28fc7d,'insertion')['filter'](({suggestion:_0x372a5b,meta:_0x17f27e})=>_0x17f27e['isOwn']&&'convertInlineImageToBlock'==_0x372a5b['subType']);if(_0x5105ee['length']>0x1&&_0x20774a['end']['isEqual'](_0x28fc7d['start']))return!0x0;if(0x1==_0x5105ee['length']&&(_0x28fc7d['start']['isEqual'](_0x20774a['end'])||_0x28fc7d['end']['isEqual'](_0x20774a['start'])))return!0x0;}if(0x3==_0x32a5ef&&0x3==_0x30f75f&&_0x28fc7d['start']['isBefore'](_0x20774a['start'])){const _0x1e33f1=_0x28fc7d['end']['nodeAfter'],_0x49c5eb=_0x20774a['start']['nodeBefore'];return _0x1138a5['isBlockImage'](_0x1e33f1)&&_0x1e33f1===_0x49c5eb;}return!0x1;}function _0x250a4d(_0x2efe55,_0x4d689a){return _0x3778a1(_0x2efe55,_0x4d689a)?[_0x2efe55,_0x4d689a]:_0x3778a1(_0x4d689a,_0x2efe55)?[_0x4d689a,_0x2efe55]:null;}_0x275a8e['plugins']['has']('ImageResize')&&(_0x52dd41['enableDefaultAttributesIntegration']('resizeImage'),_0x52dd41['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x211ce8,'FORMAT_IMAGE_SIZE'))),_0x275a8e['plugins']['has']('ImageTextAlternativeEditing')&&_0x52dd41['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x275a8e['plugins']['has']('PictureEditing')&&_0x52dd41['descriptionFactory']['registerDescriptionCallback'](_0x779c8c=>{if('attribute'!=_0x779c8c['type'])return;const {data:_0x5c484f}=_0x779c8c;return _0x5c484f&&'sources'==_0x5c484f['key']?{'type':'format','content':''}:void 0x0;}),_0x275a8e['plugins']['has']('ImageSizeAttributes')&&_0x52dd41['descriptionFactory']['registerDescriptionCallback'](_0x457c44=>{if('attribute'!=_0x457c44['type'])return;const {data:_0x537abf}=_0x457c44;return!_0x537abf||'width'!=_0x537abf['key']&&'height'!=_0x537abf['key']?void 0x0:{'type':'format','content':''};}),_0x52dd41['descriptionFactory']['registerDescriptionCallback'](_0x29f852=>{if(!!_0x393825['find'](({type:_0x4977ac,subType:_0x59b5b1})=>_0x29f852['type']==_0x4977ac&&_0x29f852['subType']==_0x59b5b1))return _0x29f852['previous']?{}:void 0x0;}),_0x52dd41['descriptionFactory']['registerDescriptionCallback'](_0x147396=>{if('insertion'==_0x147396['type']||'deletion'==_0x147396['type']){const _0x1b0c12=_0x147396['getContainedElement']();if(_0x1b0c12&&_0x1b0c12['is']('element','caption'))return{'type':'insertion'==_0x147396['type']?'addObject':'removeObject','element':_0x1b0c12,'quantity':0x1};}}),_0x52dd41['descriptionFactory']['registerDescriptionCallback'](_0x40b11e=>'formatBlock'==_0x40b11e['type']&&'convertInlineImageToBlock'==_0x40b11e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x40b11e['type']&&'convertBlockImageToInline'==_0x40b11e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x52dd41['descriptionFactory']['registerDescriptionCallback'](_0x515ae6=>{if('attribute'!=_0x515ae6['type'])return;const {data:_0x57d0f6}=_0x515ae6;if(!_0x57d0f6||'alt'!=_0x57d0f6['key'])return;const _0xbdd471=_0x57d0f6['newValue'];return _0xbdd471?{'type':'format','content':o(_0x211ce8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xbdd471+'\x22')}:{'type':'format','content':o(_0x211ce8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cc8c1=this['editor'],_0x41a37b=_0x3cc8c1['locale'];_0x3cc8c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45c5a1=>{if('formatBlock'!=_0x45c5a1['type']&&'formatInline'!=_0x45c5a1['type'])return;const {data:_0x41c1c5}=_0x45c5a1;if(_0x41c1c5){if('imageTextAlternative'==_0x41c1c5['commandName']){const _0x76d23a=_0x41c1c5['commandParams'][0x0]['newValue'];return _0x76d23a?{'type':'format','content':o(_0x41a37b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x76d23a+'\x22')}:{'type':'format','content':o(_0x41a37b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x41c1c5['commandName']){const _0x5d13ff=_0x41c1c5['commandParams'][0x0]['width'];return _0x5d13ff?{'type':'format','content':o(_0x41a37b,'*Set\x20image\x20width:*\x20%0',_0x5d13ff)}:{'type':'format','content':o(_0x41a37b,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x4f24f5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5f0896=this['editor']['locale'],_0x2d431f=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d431f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2d431f['descriptionFactory']['registerDescriptionCallback'](_0x3d4a44=>{if('attribute'!=_0x3d4a44['type'])return;const {data:_0x5bb2c3}=_0x3d4a44;return _0x5bb2c3&&'src'==_0x5bb2c3['key']?_0x5bb2c3['newValue']&&_0x5bb2c3['oldValue']?{'type':'format','content':o(_0x5f0896,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xff918e=this['editor']['plugins']['get']('TrackChangesEditing');_0xff918e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xff918e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xff918e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xff918e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b760e=this['editor'],_0x124c77=_0x3b760e['locale'];_0x3b760e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c97e7=>{if('formatBlock'!=_0x4c97e7['type']&&'formatInline'!=_0x4c97e7['type'])return;const {data:_0x40f9a3}=_0x4c97e7;if(!_0x40f9a3||'replaceImageSource'!=_0x40f9a3['commandName'])return;return{'type':'format','content':o(_0x124c77,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x4f24f5{['afterInit'](){const _0x49275f=this['editor'];if(!_0x49275f['plugins']['has']('ImageStyleEditing'))return;const _0x551e5a=_0x49275f['plugins']['get']('TrackChangesEditing'),_0x390cb1=_0x49275f['plugins']['get']('ImageUtils'),_0x23279e={};_0x551e5a['enableCommand']('imageStyle',(_0x35bd72,_0x1d1e23)=>{const _0xe4c5fe=_0x49275f['plugins']['get']('Users')['me'],_0x3550d5=_0x49275f['commands']['get']('imageStyle');let _0x2c2675=_0x390cb1['getClosestSelectedImageElement'](_0x49275f['model']['document']['selection']),_0xb10cb1=_0x49275f['model']['createRangeOn'](_0x2c2675),_0x3b7511=_0x3550d5['value'];if(_0x3b7511==_0x1d1e23['value'])return;const _0x4e34a1={'commandName':'imageStyle','commandParams':[_0x1d1e23],'formatGroupId':_0x58b4bb()};_0x49275f['model']['change'](()=>{if(_0x551e5a['getSuggestions']()['filter'](_0x44ffc6=>_0x44ffc6['isInContent']&&_0xe4c5fe==_0x44ffc6['author']&&('formatBlock'==_0x44ffc6['type']||'formatInline'==_0x44ffc6['type'])&&('imageStylePreApply'==_0x44ffc6['subType']||'imageStylePostApply'==_0x44ffc6['subType'])&&_0x44ffc6['getFirstRange']()['isEqual'](_0xb10cb1))['forEach'](_0x400f2d=>_0x551e5a['discardSuggestion'](_0x400f2d['head'])),_0x2c2675=_0x390cb1['getClosestSelectedImageElement'](_0x49275f['model']['document']['selection']),_0xb10cb1=_0x49275f['model']['createRangeOn'](_0x2c2675),_0x3550d5['refresh'](),_0x49275f['commands']['get']('imageTypeInline')['refresh'](),_0x49275f['commands']['get']('imageTypeBlock')['refresh'](),_0x3b7511=_0x3550d5['value'],_0x3b7511!=_0x1d1e23['value'])return _0x390cb1['isInlineImage'](_0x2c2675)&&_0x3550d5['shouldConvertImageType'](_0x1d1e23['value'],_0x2c2675)?(_0x35bd72({..._0x1d1e23,'setImageSizes':!0x1}),_0x2c2675=_0x390cb1['getClosestSelectedImageElement'](_0x49275f['model']['document']['selection']),void _0x551e5a['markBlockFormat'](_0x2c2675,{..._0x4e34a1,'commandReversedParams':[{'value':_0x3b7511||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x390cb1['isBlockImage'](_0x2c2675)?_0x551e5a['markBlockFormat'](_0x2c2675,_0x4e34a1,[],'imageStylePostApply'):_0x551e5a['markInlineFormat'](_0xb10cb1,_0x4e34a1,'imageStylePostApply'));});});for(const _0xea2228 of _0x49275f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x23279e[_0xea2228['name']]=_0xea2228['title']['toLowerCase']();_0x551e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x551e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x551e5a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x551e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4a44d8])=>{_0x390cb1['setImageNaturalSizeAttributes'](_0x4a44d8['getContainedElement']());}),_0x551e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x283e2e,_0x520ce1)=>{_0x551e5a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x283e2e,{'commandName':_0x520ce1['commandName'],'commandParams':_0x520ce1['commandReversedParams']});}),_0x551e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3ff9f5,_0xb6cf6c){if(_0x4ee50d(_0x3ff9f5,_0xb6cf6c))return[_0x3ff9f5,_0xb6cf6c];if(_0x4ee50d(_0xb6cf6c,_0x3ff9f5))return[_0xb6cf6c,_0x3ff9f5];return null;});const _0x8aa7f5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ee50d(_0x2f4826,_0x2683c1){const _0x21060b=_0x8aa7f5['findIndex'](({type:_0x14ec51,subType:_0x1116e4})=>_0x2f4826['type']==_0x14ec51&&_0x2f4826['subType']==_0x1116e4),_0x596ed8=_0x8aa7f5['findIndex'](({type:_0x32e300,subType:_0x48de05})=>_0x2683c1['type']==_0x32e300&&_0x2683c1['subType']==_0x48de05);if(_0x21060b<0x0||_0x596ed8<0x0)return!0x1;const _0x4941f6=_0x2f4826['getFirstRange'](),_0x393bd1=_0x2683c1['getFirstRange']();if((0x0==_0x21060b||0x1==_0x21060b)&&0x2==_0x596ed8&&_0x4941f6['isIntersecting'](_0x393bd1))return!0x0;if(0x2==_0x21060b&&0x3==_0x596ed8){const _0x4facc5=_0x551e5a['_findSuggestions'](_0x4941f6,'insertion')['filter'](({suggestion:_0x207085,meta:_0x1d3c28})=>_0x1d3c28['isOwn']&&'convertInlineImageToBlock'==_0x207085['subType']);if(_0x4facc5['length']>0x1&&_0x393bd1['end']['isEqual'](_0x4941f6['start']))return!0x0;if(0x1==_0x4facc5['length']&&(_0x4941f6['start']['isEqual'](_0x393bd1['end'])||_0x4941f6['end']['isEqual'](_0x393bd1['start'])))return!0x0;}if(0x3==_0x21060b&&0x3==_0x596ed8&&_0x4941f6['start']['isBefore'](_0x393bd1['start'])){const _0x395b4e=_0x4941f6['end']['nodeAfter'],_0x3bd54b=_0x393bd1['start']['nodeBefore'];return _0x390cb1['isBlockImage'](_0x395b4e)&&_0x395b4e===_0x3bd54b;}return!0x1;}_0x49275f['model']['document']['registerPostFixer'](()=>{let _0x4718da=!0x1;const _0x17a742=Array['from'](_0x49275f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8da75a,data:_0x92e36e}of _0x17a742){const {group:_0x25a363,type:_0x271557,subType:_0x20ae62,id:_0x397c56}=_0x551e5a['_splitMarkerName'](_0x8da75a);if('suggestion'==_0x25a363&&_0x551e5a['hasSuggestion'](_0x397c56)){if('formatBlock'==_0x271557&&('imageStylePreApply'==_0x20ae62||'imageStylePostApply'==_0x20ae62)){const _0x3d0055=_0x551e5a['getSuggestion'](_0x397c56);if(_0x92e36e['newRange']){const _0x3793ee=_0x3d0055['getFirstRange']()['getContainedElement']();if(_0x390cb1['isBlockImage'](_0x3793ee))continue;_0x551e5a['discardSuggestion'](_0x3d0055),_0x4718da=!0x0;}}if('insertion'==_0x271557&&'imageCaption'==_0x20ae62&&!_0x92e36e['newRange']){const _0x19489f=_0x551e5a['getSuggestion'](_0x397c56);_0x19489f['next']&&_0x19489f['next']['isInContent']&&(_0x551e5a['discardSuggestion'](_0x19489f['next']),_0x4718da=!0x0);}}}return _0x4718da;}),this['_registerLegacyDescription'](_0x23279e);}['_registerLegacyDescription'](_0x51e112){const _0x4a24f2=this['editor'],_0x2d03a3=_0x4a24f2['locale'];_0x4a24f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3abdcd=>{if('formatBlock'!=_0x3abdcd['type']&&'formatInline'!=_0x3abdcd['type'])return;const {data:_0x1adf55}=_0x3abdcd;if(!_0x1adf55||'imageStyle'!=_0x1adf55['commandName'])return;const _0x4a74c0=_0x1adf55['commandParams'][0x0]['value'];return _0x59047d('side'===_0x4a74c0?o(_0x2d03a3,'FORMAT_SIDE_IMAGE'):_0x51e112[_0x4a74c0]||_0x4a74c0);function _0x59047d(_0x44ca6e){return{'type':'format','content':o(_0x2d03a3,'*Format:*\x20%0',_0x44ca6e)};}});}}class lt extends _0x4f24f5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x472954){super(_0x472954),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x38e3bd=this['editor'],_0x25880d=_0x38e3bd['commands']['get']('importWord'),_0x458ddf=_0x38e3bd['commands']['get']('trackChanges');_0x25880d&&(_0x25880d['on']('execute',(_0x4b2106,[,_0x5621c5])=>{this['_trackChangesValueDuringImport']=_0x458ddf['value'],_0x5621c5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x25880d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x25880d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x458ddf['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x38e3bd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4fca44,_0x4163ce){const {suggestions:_0x2d1477}=_0x4163ce,_0x4a89d8=this['editor']['commands']['get']('trackChanges'),_0x3003cf=_0x4a89d8['value'];this['_trackChangesValueDuringImport']!==_0x3003cf&&(_0x4a89d8['execute'](),this['_trackChangesExecuted']=!0x0),_0x2d1477&&_0x2d1477['forEach'](({id:_0x34aab2,type:_0x4780cd,author:_0x137ab6,created_at:_0x154af7})=>{const _0x3bccbd={'id':_0x34aab2,'type':_0x4780cd,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x137ab6,'createdAt':_0x154af7?new Date(_0x154af7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3bccbd);});}}class gt extends _0x4f24f5{['afterInit'](){const _0x12aad7=this['editor'],_0x3621c9=_0x12aad7['plugins']['get']('TrackChangesEditing');if(_0x12aad7['plugins']['has']('IndentEditing')&&(_0x3621c9['enableCommand']('indent'),_0x3621c9['enableCommand']('outdent')),_0x12aad7['plugins']['has']('IndentBlock')){for(const _0x6d2cd7 of['indentBlock','outdentBlock'])_0x3621c9['enableDefaultAttributesIntegration'](_0x6d2cd7);if(_0x12aad7['plugins']['has']('ListEditing')){for(const _0x158985 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3621c9['enableDefaultAttributesIntegration'](_0x158985);}}const _0x19f2eb=_0x12aad7['locale'];_0x3621c9['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x19f2eb,'FORMAT_INDENT')),_0x3621c9['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x19f2eb,'FORMAT_INDENT')),_0x3621c9['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x19f2eb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43491b=this['editor'],_0x121ca0=_0x43491b['locale'],_0x1383f5=_0x43491b['plugins']['get']('TrackChangesEditing');_0x1383f5['descriptionFactory']['registerDescriptionCallback'](_0x761e05=>{if('formatBlock'!=_0x761e05['type'])return;const {data:_0x555c8a}=_0x761e05;if(!_0x555c8a)return;if('indentBlock'!=_0x555c8a['commandName']&&'outdentBlock'!=_0x555c8a['commandName'])return;const _0xb9a566=_0x761e05['getItems']()[0x0],_0x3a922d=_0x1383f5['descriptionFactory']['getItemLabel'](_0xb9a566);return'indentBlock'==_0x555c8a['commandName']?{'type':'format','content':o(_0x121ca0,'*Indent:*\x20%0',_0x3a922d)}:'outdentBlock'==_0x555c8a['commandName']?{'type':'format','content':o(_0x121ca0,'*Outdent:*\x20%0',_0x3a922d)}:void 0x0;});}}class mt extends _0x4f24f5{static get['requires'](){return[_0x15ff96];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x4f24f5{['afterInit'](){const _0x1e7d29=this['editor'];if(!_0x1e7d29['plugins']['has']('LinkEditing'))return;const _0x4e3bf5=_0x1e7d29['plugins']['get']('TrackChangesEditing'),_0x34dec4=_0x1e7d29['commands']['get']('link');_0x4e3bf5['enableDefaultAttributesIntegration']('link'),_0x4e3bf5['enableDefaultAttributesIntegration']('unlink');for(const _0xeb4c33 of _0x34dec4['manualDecorators'])_0x4e3bf5['descriptionFactory']['registerAttributeLabel'](_0xeb4c33['id'],'link\x20('+_0xeb4c33['label']['toLowerCase']()+')');_0x4e3bf5['descriptionFactory']['registerDescriptionCallback'](_0x4e592d=>{if('attribute'!=_0x4e592d['type'])return;const {data:_0x4f4759}=_0x4e592d;if(!_0x4f4759||'linkHref'!=_0x4f4759['key'])return;const _0x149e65=_0x4f4759['newValue'],_0x19567e=_0x1e7d29['locale'];return{'type':'format','content':null==_0x149e65?o(_0x19567e,'*Remove\x20link*'):o(_0x19567e,'*Set\x20link:*\x20%0','\x22'+_0x149e65+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46f970=this['editor'],_0x309aca=_0x46f970['locale'];_0x46f970['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11fbae=>{if('formatInline'!=_0x11fbae['type'])return;const {data:_0x2977ef}=_0x11fbae;if(_0x2977ef){if('link'==_0x2977ef['commandName']){const _0x4d0784=_0x2977ef['commandParams'][0x0];return{'type':'format','content':o(_0x309aca,'*Set\x20link:*\x20%0','\x22'+_0x4d0784+'\x22')};}return'unlink'==_0x2977ef['commandName']?{'type':'format','content':o(_0x309aca,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x4f24f5{['afterInit'](){const _0x5d416d=this['editor'],_0x1788d6=_0x5d416d['locale'];if(!_0x5d416d['plugins']['has']('LegacyListEditing'))return;const _0x551382=_0x5d416d['plugins']['get']('TrackChangesEditing'),_0x2313ed=_0x5d416d['plugins']['has']('LegacyTodoListEditing');function _0x46ec3b(_0x20ea31){return()=>{const _0x5de5b3=_0x5d416d['model']['document']['selection'],_0x4c8eb4=_0x5d416d['commands']['get'](_0x20ea31);if(_0x4c8eb4['value'])return void _0x5d416d['execute']('paragraph',{});const _0x4b5131=_0x20ea31['slice'](0x0,-0x4),_0x3b61f9=function(_0x38ad67,_0x3a2a0a,_0x5b4fc0){let _0x2547a0=Array['from'](_0x38ad67)['filter'](_0x274fb1=>function(_0x5cea1f,_0x227f42){return _0x227f42['checkChild'](_0x5cea1f['parent'],'listItem')&&!_0x227f42['isObject'](_0x5cea1f);}(_0x274fb1,_0x5b4fc0));_0x2547a0=_0x2547a0['filter'](_0x42157b=>!_0x42157b['is']('element','listItem')||_0x42157b['getAttribute']('listType')!=_0x3a2a0a);const _0x1f0792=new Set();for(const _0x2d9fef of _0x2547a0)_0x2d9fef['is']('element','listItem')?_0x1f0792['add'](Le(_0x2d9fef)):_0x1f0792['add'](_0x2d9fef);return Array['from'](_0x1f0792);}(_0x5de5b3['getSelectedBlocks'](),_0x4b5131,_0x5d416d['model']['schema']);_0x5d416d['model']['change'](()=>{for(const _0xb4a9f of _0x3b61f9)_0x551382['markBlockFormat'](_0xb4a9f,{'commandName':_0x20ea31,'commandParams':[{'forceValue':!_0x4c8eb4['value']}],'formatGroupId':'blockName'},Ee(_0xb4a9f));});};}function _0x594126(_0xbbbbf7){return()=>{const _0x4fe926=function(_0x5827bc){let _0x1eb588=Array['from'](_0x5827bc);const _0x42d00e=_0x1eb588['findIndex'](_0x253303=>'listItem'!=_0x253303['name']);return _0x42d00e>-0x1&&(_0x1eb588=_0x1eb588['slice'](0x0,_0x42d00e)),_0x1eb588;}(_0x5d416d['model']['document']['selection']['getSelectedBlocks']()),_0x429873=_0x5d416d['model']['createRange'](_0x5d416d['model']['createPositionAt'](_0x4fe926[0x0],'before'),_0x5d416d['model']['createPositionAt'](_0x4fe926[_0x4fe926['length']-0x1],'end'));_0x5d416d['model']['change'](()=>{_0x551382['markBlockFormat'](_0x429873,{'commandName':_0xbbbbf7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x497852){const _0x30589e=new Set();for(const _0x239eeb of _0x497852){let _0x516889=_0x239eeb['nextSibling'];for(;_0x516889&&_0x516889['getAttribute']('listIndent')>_0x239eeb['getAttribute']('listIndent');)_0x30589e['add'](_0x516889),_0x516889=_0x516889['nextSibling'];}return Array['from'](_0x30589e);}(_0x4fe926));});};}_0x551382['enableCommand']('numberedList',_0x46ec3b('numberedList')),_0x551382['enableCommand']('bulletedList',_0x46ec3b('bulletedList')),_0x2313ed&&_0x551382['enableCommand']('todoList',_0x46ec3b('todoList')),_0x551382['enableCommand']('indentList',_0x594126('indentList')),_0x551382['enableCommand']('outdentList',_0x594126('outdentList')),_0x2313ed&&_0x551382['enableCommand']('checkTodoList',()=>{const _0x44c037=_0x5d416d['commands']['get']('checkTodoList'),_0x3c6123=Array['from'](_0x44c037['_selectedElements']);_0x3c6123['filter'](_0x3df13d=>_0x3df13d['getAttribute']('todoListChecked')!=_0x44c037['value']),_0x5d416d['model']['change'](()=>{for(const _0x1ce04b of _0x3c6123)_0x551382['markBlockFormat'](_0x1ce04b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x44c037['value']}]});});}),_0x551382['descriptionFactory']['registerElementLabel']('listItem',_0x1c690c=>o(_0x1788d6,'ELEMENT_LIST_ITEM',_0x1c690c)),_0x551382['descriptionFactory']['registerDescriptionCallback'](_0xd53230=>{if('formatBlock'!=_0xd53230['type']&&'formatInline'!=_0xd53230['type'])return;const {data:_0x23318a}=_0xd53230;if(_0x23318a){if('numberedList'==_0x23318a['commandName']||'bulletedList'==_0x23318a['commandName']||'todoList'==_0x23318a['commandName'])switch(_0x23318a['commandName']['replace']('List','')){case'bulleted':return _0xc583a3(o(_0x1788d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xc583a3(o(_0x1788d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xc583a3(o(_0x1788d6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x23318a['commandName'])return{'type':'format','content':o(_0x1788d6,'*Indent:*\x20%0',o(_0x1788d6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x23318a['commandName'])return{'type':'format','content':o(_0x1788d6,'*Outdent:*\x20%0',o(_0x1788d6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x23318a['commandName'])return _0x23318a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1788d6,'*Check\x20item*')}:{'type':'format','content':o(_0x1788d6,'*Uncheck\x20item*')};}function _0xc583a3(_0x1af7e6){return{'type':'format','content':o(_0x1788d6,'*Change\x20to:*\x20%0',_0x1af7e6)};}});}}function Le(_0x121c0c){const _0x4289f9=_0x121c0c['getAttribute']('listIndent');if(0x0==_0x4289f9)return _0x121c0c;let _0x3b7a96=_0x121c0c;for(;_0x121c0c['previousSibling']&&_0x121c0c['previousSibling']['is']('element','listItem');){const _0x32ea16=_0x121c0c['previousSibling']['getAttribute']('listIndent');if(_0x32ea16==_0x4289f9)_0x3b7a96=_0x121c0c['previousSibling'];else{if(_0x32ea16<_0x4289f9)break;}_0x121c0c=_0x121c0c['previousSibling'];}return _0x3b7a96;}function Ee(_0x505303){const _0x28faf5=[];if(_0x505303['is']('element','listItem')&&_0x505303['getAttribute']('listIndent')>0x0){let _0x292d81=_0x505303['nextSibling'];for(;_0x292d81&&'listItem'==_0x292d81['name']&&_0x292d81['getAttribute']('listIndent')==_0x505303['getAttribute']('listIndent');)_0x28faf5['push'](_0x292d81),_0x292d81=_0x292d81['nextSibling'];}return _0x28faf5;}class wt extends _0x4f24f5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x53f398=this['editor']['config']['get']('list.properties'),_0x5a9f6e=this['editor']['plugins']['get']('TrackChangesEditing');_0x53f398['styles']&&_0x5a9f6e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x53f398['reversed']&&_0x5a9f6e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x53f398['startIndex']&&_0x5a9f6e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5a9f6e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4fced1,_0x40c72c={}){const _0x520c10=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f4948=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x520c10['markMultiRangeBlockFormat'](_0x5f4948,{'commandName':'listStyle','commandParams':[{'type':_0x40c72c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xb6cb7e,_0x216e0b={}){const _0x591b24=this['editor']['plugins']['get']('TrackChangesEditing'),_0x402b80=this['_getSuggestionBlocks'](_0x30951c=>_0x30951c['is']('element','listItem')&&'numbered'===_0x30951c['getAttribute']('listType'));if(_0x402b80['length']<0x1)return;const _0x576e2a=_0x402b80['map'](_0x236885=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x236885,'before'),this['editor']['model']['createPositionAt'](_0x236885,0x0)));this['editor']['model']['change'](()=>{_0x591b24['markMultiRangeBlockFormat'](_0x576e2a,{'commandName':'listReversed','commandParams':[{'reversed':_0x216e0b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2dcff7,_0x2ff320={}){const _0x2a98d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42239e=this['_getSuggestionBlocks'](_0x37d44e=>_0x37d44e['is']('element','listItem')&&'numbered'===_0x37d44e['getAttribute']('listType'));if(_0x42239e['length']<0x1)return;const _0x11eb10=_0x42239e['map'](_0x266765=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x266765,'before'),this['editor']['model']['createPositionAt'](_0x266765,0x0)));this['editor']['model']['change'](()=>{_0x2a98d8['markMultiRangeBlockFormat'](_0x11eb10,{'commandName':'listStart','commandParams':[{'startIndex':_0x2ff320['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2445af){if('formatBlock'!=_0x2445af['type']&&'formatInline'!=_0x2445af['type'])return;const _0x1c117b=this['editor']['locale'],{data:_0x52c157}=_0x2445af;if(!_0x52c157)return;let _0x1da998,_0x51552b;switch(_0x52c157['commandName']){case'listStyle':_0x1da998='*Change\x20to:*\x20%0',_0x51552b={'type':'format','content':o(_0x1c117b,_0x1da998,o(_0x1c117b,this['_getTranslationKeyForListStyle'](_0x52c157['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1da998=_0x52c157['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x51552b={'type':'format','content':o(_0x1c117b,_0x1da998)};break;case'listStart':_0x1da998='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x51552b={'type':'format','content':o(_0x1c117b,_0x1da998,_0x52c157['commandParams'][0x0]['startIndex'])};}return _0x51552b;}['_getSuggestionBlocksForListStyle'](){const _0x4dfcac=this['editor']['plugins']['get']('LegacyListUtils');let _0x3aebb8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3aebb8[0x0]?.['is']('element','listItem')&&_0x3aebb8['unshift'](..._0x4dfcac['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3aebb8[_0x3aebb8['length']-0x1]?.['is']('element','listItem')&&_0x3aebb8['push'](..._0x4dfcac['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3aebb8=[...new Set(_0x3aebb8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3aebb8=_0x3aebb8['filter'](_0x242f53=>_0x242f53['is']('element','listItem'))),_0x3aebb8;}['_getSuggestionBlocks'](_0x11e194){const _0x39110a=this['editor']['plugins']['get']('LegacyListUtils');let _0x572ce8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x11e194)['map'](_0x304684=>{const _0x265a27=this['editor']['model']['createPositionAt'](_0x304684,0x0);return[..._0x39110a['getSiblingNodes'](_0x265a27,'backward'),..._0x39110a['getSiblingNodes'](_0x265a27,'forward')];})['flat']();return _0x572ce8=[...new Set(_0x572ce8)],_0x572ce8;}['_getTranslationKeyForListStyle'](_0x1aa330){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1aa330)||'default')['toUpperCase']()+'_LIST_'+_0x1aa330['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x4f24f5{['afterInit'](){const _0x48d8db=this['editor'];if(!_0x48d8db['plugins']['has']('MediaEmbedEditing'))return;const _0xcd7625=_0x48d8db['plugins']['get']('TrackChangesEditing'),_0x35c025=_0x48d8db['locale'];_0xcd7625['enableCommand']('mediaEmbed'),_0xcd7625['descriptionFactory']['registerElementLabel']('media',_0x3b5cd0=>o(_0x35c025,'ELEMENT_MEDIA',_0x3b5cd0));}}class bt extends _0x4f24f5{['afterInit'](){const _0x175eba=this['editor'];_0x175eba['plugins']['has']('MentionEditing')&&_0x175eba['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x4f24f5{['afterInit'](){const _0x41a8f4=this['editor'];if(!_0x41a8f4['plugins']['has']('MergeFieldsEditing'))return;const _0x3b99d5=_0x41a8f4['plugins']['get']('TrackChangesEditing'),_0x1adbb1=_0x41a8f4['locale'];_0x3b99d5['enableCommand']('insertMergeField'),_0x3b99d5['enableCommand']('insertMergeFieldBlock'),_0x3b99d5['enableCommand']('insertMergeFieldImage'),_0x3b99d5['descriptionFactory']['registerElementLabel']('mergeField',_0x185ac6=>o(_0x1adbb1,'ELEMENT_MERGE_FIELD',_0x185ac6)),_0x3b99d5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xc5ea82=>o(_0x1adbb1,'ELEMENT_MERGE_FIELD',_0xc5ea82)),_0x3b99d5['descriptionFactory']['registerDescriptionCallback'](_0x433731=>{if('insertion'!=_0x433731['type']&&'deletion'!=_0x433731['type'])return;const _0x402a3a=_0x433731['getContainedElement']();if(null==_0x402a3a)return;const _0x5ab753=_0x41a8f4['plugins']['get']('MergeFieldsEditing');let _0x203727;switch(_0x5ab753['getMergeFieldType'](_0x402a3a)){case null:return;case'image':{const _0x308510=_0x5ab753['unwrapAffixes'](_0x402a3a['getAttribute']('src'));_0x203727=_0x5ab753['getLabel'](_0x308510)||_0x308510;break;}default:{const _0x3dc1fd=_0x402a3a['getAttribute']('id');_0x203727=_0x5ab753['getLabel'](_0x3dc1fd)||_0x3dc1fd;break;}}return'insertion'==_0x433731['type']?{'type':'insertion','content':o(_0x1adbb1,'*Insert:*\x20%0','\x22'+_0x203727+'\x22\x20'+o(_0x1adbb1,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1adbb1,'*Remove:*\x20%0','\x22'+_0x203727+'\x22\x20'+o(_0x1adbb1,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x4f24f5{['afterInit'](){const _0x4c89ce=this['editor'],_0x52f36f=_0x4c89ce['plugins']['get']('TrackChangesEditing');_0x4c89ce['plugins']['has']('MultiLevelList')&&(_0x52f36f['enableDefaultAttributesIntegration']('multiLevelList'),_0x52f36f['descriptionFactory']['registerDescriptionCallback'](_0xd6c4c5=>this['handleDescriptions'](_0xd6c4c5)));}['handleDescriptions'](_0xaefcd){const _0x3bb05e=this['editor']['locale'],{data:_0xb2bca}=_0xaefcd,_0xec2436={'type':'format','content':''};if(_0xb2bca&&'listMarkerStyle'==_0xb2bca['key']){if(!_0xb2bca['oldValue'])return{'type':'format','content':o(_0x3bb05e,'*Set\x20format:*\x20%0',o(_0x3bb05e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb2bca['newValue']+')'};if(!_0xb2bca['newValue']){let _0x452723=_0xaefcd['head'];for(;_0x452723;){if(_0x452723['data']&&'listType'==_0x452723['data']['key']&&_0x452723['data']['newValue'])return _0xec2436;_0x452723=_0x452723['next'];}return{'type':'format','content':o(_0x3bb05e,'*Remove\x20format:*\x20%0',o(_0x3bb05e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb2bca['oldValue']+')'};}}}}class St extends _0x4f24f5{['afterInit'](){const _0x171ebc=this['editor'];if(!_0x171ebc['plugins']['has']('PageBreakEditing'))return;_0x171ebc['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x548c3b=_0x171ebc['plugins']['get']('TrackChangesEditing'),_0x49fa46=_0x171ebc['locale'];_0x548c3b['descriptionFactory']['registerElementLabel']('pageBreak',_0x5ab4e6=>o(_0x49fa46,'ELEMENT_PAGE_BREAK',_0x5ab4e6));}}class It extends _0x4f24f5{['afterInit'](){const _0x2c3d9d=this['editor'];if(!_0x2c3d9d['plugins']['has']('Paragraph'))return;const _0x5546c3=_0x2c3d9d['locale'],_0x427f95=_0x2c3d9d['plugins']['get']('TrackChangesEditing');_0x427f95['descriptionFactory']['registerElementLabel']('paragraph',_0x2d4ad7=>o(_0x5546c3,'ELEMENT_PARAGRAPH',_0x2d4ad7)),_0x427f95['enableDefaultAttributesIntegration']('paragraph'),_0x427f95['enableCommand']('insertParagraph');const _0x30231d=_0x427f95['descriptionFactory'];_0x30231d['registerDescriptionCallback'](_0x2bfb99=>{if('insertion'!==_0x2bfb99['type'])return;const {start:_0x4ed1b9,end:_0x4a802a}=_0x2bfb99['getFirstRange']();if(!_0x4ed1b9['isTouching'](_0x4a802a)||!_0x4ed1b9['nodeAfter'])return;const _0x3cb4be=_0x2c3d9d['model']['schema'],_0x3753e5=_0x4ed1b9['nodeAfter'];return _0x3cb4be['isBlock'](_0x3753e5)&&!_0x3cb4be['isLimit'](_0x3753e5)&&_0x3cb4be['checkChild'](_0x3753e5,'$text')?{'type':'insertion','content':o(_0x5546c3,'*Insert:*\x20%0',_0x30231d['getItemLabel'](_0x3753e5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4302c9=this['editor'],_0x46fe28=_0x4302c9['locale'];_0x4302c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e9bc8=>{if('formatBlock'!=_0x2e9bc8['type'])return;const {data:_0x395cf5}=_0x2e9bc8;return _0x395cf5&&'paragraph'==_0x395cf5['commandName']?{'type':'format','content':o(_0x46fe28,'*Change\x20to:*\x20%0',o(_0x46fe28,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x4f24f5{['afterInit'](){const _0x10582c=this['editor'];_0x10582c['commands']['get']('replaceSource')&&_0x10582c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x4f24f5{['afterInit'](){const _0x100bc0=this['editor'];if(!_0x100bc0['plugins']['has']('RemoveFormatEditing'))return;_0x100bc0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x406846=this['editor'];_0x406846['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xda9862=>{if('formatBlock'!=_0xda9862['type']&&'formatInline'!=_0xda9862['type'])return;const {data:_0x4f0cb1}=_0xda9862;return _0x4f0cb1&&'removeFormat'==_0x4f0cb1['commandName']?{'type':'format','content':o(_0x406846['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x4f24f5{['afterInit'](){const _0x4df2df=this['editor'];if(!_0x4df2df['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4f0bc9=_0x4df2df['plugins']['get']('TrackChangesEditing');_0x4f0bc9['enableCommand']('goToPreviousRestrictedEditingException'),_0x4f0bc9['enableCommand']('goToNextRestrictedEditingException');const _0x6cda79=_0x4df2df['plugins']['get']('RestrictedEditingModeEditing');_0x6cda79['enableCommand']('trackChanges'),_0x6cda79['enableCommand']('acceptSuggestion'),_0x6cda79['enableCommand']('discardSuggestion'),_0x6cda79['enableCommand']('acceptAllSuggestions'),_0x6cda79['enableCommand']('discardAllSuggestions'),_0x6cda79['enableCommand']('acceptSelectedSuggestions'),_0x6cda79['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x4f24f5{['afterInit'](){const _0x2bb1da=this['editor'];if(!_0x2bb1da['plugins']['has']('ShiftEnter'))return;const _0x225ea3=_0x2bb1da['plugins']['get']('TrackChangesEditing');_0x225ea3['enableCommand']('shiftEnter'),_0x225ea3['descriptionFactory']['registerElementLabel']('softBreak',_0x3f8adf=>o(_0x2bb1da['locale'],'ELEMENT_LINE_BREAK',_0x3f8adf));}}function an(_0x54b558,_0x2d706f,_0x3abf5a){const _0x3958e6=[];for(const _0x2f0307 of _0x2d706f['getItems']())_0x2f0307['hasAttribute'](_0x54b558)&&_0x3958e6['push'](_0x3abf5a['createRangeOn'](_0x2f0307));return _0x3958e6;}class $t extends _0x4f24f5{['afterInit'](){const _0x108cc5=this['editor'],_0x574720=_0x108cc5['plugins']['get']('TrackChangesEditing');_0x108cc5['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x574720['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x339554=this['editor'],_0x3a6eb4=_0x339554['model'],_0x28280e=_0x339554['locale'],_0x2454ba=_0x339554['plugins']['get']('TrackChangesEditing'),_0x7811b='restrictedEditingException',_0x2f15d9=_0x339554['commands']['get'](_0x7811b);_0x2454ba['enableCommand'](_0x7811b,(_0x626606,_0x4db8da={})=>{const _0x1a5f0f=_0x3a6eb4['document']['selection'];if(_0x1a5f0f['isCollapsed'])return void _0x626606(_0x4db8da);const _0x14b68a=void 0x0!==_0x4db8da['forceValue']?_0x4db8da['forceValue']:!_0x2f15d9['value'];_0x3a6eb4['change'](()=>{const _0x593b5d=Array['from'](_0x1a5f0f['getRanges']());for(const _0x149f3b of _0x593b5d){const _0x338c46=_0x14b68a?[_0x149f3b]:an(_0x7811b,_0x149f3b,_0x3a6eb4);for(const _0x4257a7 of _0x338c46)_0x2454ba['markInlineFormat'](_0x4257a7,{'commandName':_0x7811b,'commandParams':[{'forceValue':_0x14b68a}]});}});}),_0x2454ba['descriptionFactory']['registerDescriptionCallback'](_0x3ec811=>{if('formatBlock'!=_0x3ec811['type']&&'formatInline'!=_0x3ec811['type'])return;const {data:_0x3e1360}=_0x3ec811;return _0x3e1360&&_0x3e1360['commandName']==_0x7811b?_0x3e1360['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28280e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x28280e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x35fd45=this['editor'],_0x4fe230=_0x35fd45['locale'],_0x500403=_0x35fd45['plugins']['get']('TrackChangesEditing'),_0x57f642='restrictedEditingExceptionBlock',_0x47328c=this['editor']['commands']['get'](_0x57f642);_0x500403['enableCommand'](_0x57f642,(_0x2442bc,_0x44f56b={})=>{const _0x280827=this['editor']['model']['document']['selection'],_0x2c9bb3=_0x44f56b&&void 0x0!==_0x44f56b['forceValue']?_0x44f56b['forceValue']:!_0x47328c['value'];let _0x220454=[];if(_0x2c9bb3){const _0x3c2a16=Array['from'](_0x280827['getSelectedBlocks']())['filter'](_0x3e75d5=>function(_0x10c1b9){return!!_0x10c1b9['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x3e75d5)||function(_0x1fe4b3,_0x323574){const _0x5a93ed=_0x323574['createContext'](_0x1fe4b3['parent']);if(!_0x323574['checkChild'](_0x5a93ed,'restrictedEditingException'))return!0x1;if(!_0x323574['checkChild'](_0x5a93ed['push']('restrictedEditingException'),_0x1fe4b3))return!0x1;return!0x0;}(_0x3e75d5,this['editor']['model']['schema']));_0x220454=to(_0x3c2a16,_0x35fd45['model']);}else{const _0x25bb5f=Array['from'](_0x280827['getSelectedBlocks']())['map'](_0x58e4d4=>function(_0x5a6f8f){let _0x35a058=_0x5a6f8f;for(;_0x35a058['parent'];){if('restrictedEditingException'==_0x35a058['parent']['name'])return _0x35a058;_0x35a058=_0x35a058['parent'];}return null;}(_0x58e4d4))['filter'](_0x417d68=>!!_0x417d68);_0x220454=to(_0x25bb5f,_0x35fd45['model']);}_0x35fd45['model']['change'](()=>{for(const _0x51665e of _0x220454)_0x500403['markBlockFormat'](_0x51665e,{'commandName':_0x57f642,'commandParams':[{'forceValue':_0x2c9bb3}]});});}),_0x500403['descriptionFactory']['registerDescriptionCallback'](_0x5af447=>{const {data:_0x27503d}=_0x5af447;if(_0x27503d&&_0x27503d['commandName']==_0x57f642)return _0x27503d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fe230,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4fe230,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x4f24f5{['afterInit'](){const _0x5061bc=this['editor'];if(!_0x5061bc['plugins']['has']('Style')||!_0x5061bc['plugins']['has']('DataSchema'))return;const _0x39893a=_0x5061bc['plugins']['get']('TrackChangesEditing'),_0x44c815=_0x5061bc['locale'],_0x2295a2=_0x5061bc['config']['get']('style')||{},_0x560868=_0x5061bc['plugins']['get']('GeneralHtmlSupport'),_0x4d9873=_0x5061bc['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5061bc['plugins']['get']('DataSchema'),_0x2295a2['definitions']);_0x39893a['enableDefaultAttributesIntegration']('style');const _0x29eb67=new Set();for(const _0x215959 of _0x4d9873['block']){const _0x498432=_0x560868['getGhsAttributeNameForElement'](_0x215959['element']);_0x29eb67['add'](_0x498432);}const _0x16d99f=new Set();for(const _0x5bc302 of _0x4d9873['inline']){const _0xa1c2f2=_0x560868['getGhsAttributeNameForElement'](_0x5bc302['element']);_0x16d99f['add'](_0xa1c2f2);for(const _0x5054a6 of _0x5bc302['ghsAttributes'])_0x16d99f['add'](_0x5054a6);}for(const _0x179170 of _0x29eb67)_0x39893a['descriptionFactory']['registerAttributeLabel'](_0x179170,o(_0x44c815,'FORMAT_STYLE'));for(const _0xb9139e of _0x16d99f)_0x39893a['descriptionFactory']['registerAttributeLabel'](_0xb9139e,o(_0x44c815,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9108f3=this['editor'],_0x245d48=_0x9108f3['locale'];_0x9108f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25e576=>{if('formatBlock'!=_0x25e576['type']&&'formatInline'!=_0x25e576['type'])return;const {data:_0x3bd0ae}=_0x25e576;return _0x3bd0ae&&'style'===_0x3bd0ae['commandName']?_0x3bd0ae['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x245d48,'*Set\x20format:*\x20%0',_0x3bd0ae['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x245d48,'*Remove\x20format:*\x20%0',_0x3bd0ae['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x4f24f5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x310e30){super(_0x310e30),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5984ca=this['editor'],_0x581abf=_0x5984ca['model']['document']['selection'];if(!_0x5984ca['plugins']['has']('TableEditing'))return;const _0x437bf5=_0x5984ca['locale'],_0x8a011=_0x5984ca['plugins']['get']('TrackChangesEditing'),_0x55e157=_0x5984ca['plugins']['get']('TableUtils');_0x8a011['descriptionFactory']['registerElementLabel']('table',_0x12ea2f=>o(_0x437bf5,'ELEMENT_TABLE',_0x12ea2f)),this['_setupColumnsRowsFixing'](),_0x8a011['enableCommand']('insertTable'),_0x8a011['enableCommand']('selectTableRow'),_0x8a011['enableCommand']('selectTableColumn');for(const _0x243a9a of['insertTableRowAbove','insertTableRowBelow']){const _0x2558f5=_0x5984ca['commands']['get'](_0x243a9a);_0x8a011['enableCommand'](_0x243a9a,_0x15ee7f=>{_0x5984ca['model']['change'](_0x32fc70=>{_0x15ee7f();const _0x3bc3f7='above'===_0x2558f5['order'],_0x4bca19=_0x55e157['getSelectionAffectedTableCells'](_0x581abf),_0x47243d=_0x55e157['getRowIndexes'](_0x4bca19),_0x3e591b=_0x3bc3f7?_0x47243d['first']-0x1:_0x47243d['last']+0x1,_0x3c9fd8=_0x4bca19[0x0]['findAncestor']('table'),_0x2ba035=_0x55e157['createTableWalker'](_0x3c9fd8,{'startRow':_0x3e591b,'endRow':_0x3e591b}),_0x2a3c99=Array['from'](_0x2ba035)['map'](_0x4b9a51=>_0x32fc70['createRangeOn'](_0x4b9a51['cell']));_0x8a011['markMultiRangeInsertion'](_0x2a3c99,'tableRow');});});}for(const _0x3bc133 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4c1986=_0x5984ca['commands']['get'](_0x3bc133);_0x8a011['enableCommand'](_0x3bc133,_0x335a00=>{_0x5984ca['model']['change'](_0x4daa59=>{_0x335a00();const _0x1dc0f8='left'===_0x4c1986['order'],_0x23d587=_0x55e157['getSelectionAffectedTableCells'](_0x581abf),_0x3748f3=_0x55e157['getColumnIndexes'](_0x23d587),_0x1dde9f=_0x1dc0f8?_0x3748f3['first']-0x1:_0x3748f3['last']+0x1,_0x3e4c9c=_0x23d587[0x0]['findAncestor']('table'),_0x473b14=_0x55e157['createTableWalker'](_0x3e4c9c,{'startRow':0x0,'column':_0x1dde9f,'includeAllSlots':!0x1}),_0x1a7858=Array['from'](_0x473b14)['map'](_0x250909=>_0x4daa59['createRangeOn'](_0x250909['cell']));_0x8a011['markMultiRangeInsertion'](_0x1a7858,'tableColumn');});});}for(const _0xf581fd of['removeTableRow','removeTableColumn']){const _0x2521d0=_0xf581fd['substr'](0xb),_0x478495=_0x2521d0['toLowerCase'](),_0x1f6e07=_0x478495['substr'](0x0,0x3)+'span',_0x42ef9f='table'+_0x2521d0,_0x477c59='min'+_0x2521d0,_0x12703b='max'+_0x2521d0;_0x8a011['enableCommand'](_0xf581fd,()=>{_0x5984ca['model']['change'](_0x3500c5=>{const _0x312744=_0x55e157['getSelectionAffectedTableCells'](_0x581abf),_0x20ebd7=_0x312744[0x0]['findAncestor']('table');let _0x40d9d0;if('removeTableRow'==_0xf581fd){const _0x2f1a89=_0x55e157['getRowIndexes'](_0x312744);_0x40d9d0={'startRow':_0x2f1a89['first'],'endRow':_0x2f1a89['last'],'includeAllSlots':!0x0};}else{const _0x397d7e=_0x55e157['getColumnIndexes'](_0x312744);_0x40d9d0={'startColumn':_0x397d7e['first'],'endColumn':_0x397d7e['last'],'includeAllSlots':!0x0};}const _0x5c1fd1=_0x55e157['createTableWalker'](_0x20ebd7,_0x40d9d0),_0x28a651=Array['from'](_0x5c1fd1)['map'](({cell:_0x216089})=>_0x216089),_0x56e9fd=_e(_0x28a651['filter'](_0x33914e=>_0x33914e['hasAttribute'](_0x1f6e07))),_0x32025f=_e(_0x28a651['filter'](_0x597f2f=>!_0x597f2f['hasAttribute'](_0x1f6e07)))['map'](_0x4d3602=>_0x3500c5['createRangeOn'](_0x4d3602)),_0x1dbee3=_0x8a011['markMultiRangeDeletion'](_0x32025f,_0x42ef9f);if(_0x1dbee3&&('tableRow'==_0x1dbee3['subType']||'tableColumn'==_0x1dbee3['subType'])){const _0x2ac953=this['_getSuggestionCoords'](_0x1dbee3);for(const _0x49c86d of _0x56e9fd){const _0x34cba9=_0x3500c5['createRangeOn'](_0x49c86d),_0xaad999=_0x55e157['getCellLocation'](_0x49c86d),_0x56e367=_0x49c86d['getAttribute'](_0x1f6e07)-0x1,_0x1f60b9=_0x2ac953[_0x477c59],_0x893583=_0x2ac953[_0x12703b];_0x1f60b9<=_0xaad999[_0x478495]&&_0xaad999[_0x478495]+_0x56e367<=_0x893583&&_0x1dbee3['addRange'](_0x34cba9);}}});});}function _0x4f4efe(_0xd969a2){const _0x548f36=Array['from'](_0x581abf['getRanges']())['map'](_0x320d7b=>_0x41285e['fromRange'](_0x320d7b));_0x5984ca['model']['change'](_0x20c1bf=>{const _0x3eb3a1=_0x20c1bf['batch'];_0xd969a2=_0xd969a2['filter'](_0x3bf07b=>'$graveyard'!=_0x3bf07b['root']['rootName']),_0x20c1bf['setSelection'](_0xd969a2),_0x5984ca['commands']['get']('removeTableRow')['refresh'](),_0x5984ca['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5984ca['model']['enqueueChange'](()=>{_0x5984ca['model']['enqueueChange'](_0x3eb3a1,_0x2ebe5d=>{const _0x53fed7=_0x548f36['filter'](_0x5a0f8b=>'$graveyard'!=_0x5a0f8b['root']['rootName']);_0x53fed7['length']>0x0&&_0x2ebe5d['setSelection'](_0x53fed7);for(const _0x4b8f07 of _0x548f36)_0x4b8f07['detach']();});});});}function _0x5d7f28(_0x1e1f37){_0x5984ca['model']['change'](_0x3916c7=>{const _0x2a0e3c=Array['from'](_0x581abf['getRanges']())['map'](_0x1f4ac2=>_0x41285e['fromRange'](_0x1f4ac2)),_0xf98d19=[];for(const _0x153593 of _0x1e1f37)for(const _0x44aa19 of _0x153593['getItems']({'shallow':!0x0}))_0xf98d19['push'](_0x44aa19);for(const _0x3be2fb of _0xf98d19)'$graveyard'!=_0x3be2fb['root']['rootName']&&(_0x3916c7['setSelection'](_0x3916c7['createPositionAt'](_0x3be2fb,0x0)),_0x5984ca['commands']['get']('removeTableColumn')['refresh'](),_0x5984ca['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4779ee=_0x2a0e3c['filter'](_0x19e6e0=>'$graveyard'!=_0x19e6e0['root']['rootName']);_0x4779ee['length']>0x0&&_0x3916c7['setSelection'](_0x4779ee);for(const _0x26dafe of _0x2a0e3c)_0x26dafe['detach']();});}function _0x4c88f4(_0x339039,_0x1eb926){return _0x1eb926['every'](_0x1d0968=>_0x339039['some'](_0x74a65=>_0x74a65['end']['isEqual'](_0x1d0968['start'])||_0x1d0968['end']['isEqual'](_0x74a65['start'])));}function _0x2c90c4(_0xbf8c1a,_0x1af297){return!_0xbf8c1a['some'](_0x58e85e=>_0x1af297['some'](_0x5ae9dc=>_0x58e85e['isIntersecting'](_0x5ae9dc)))&&_0xbf8c1a['some'](_0x4e09d8=>_0x1af297['some'](_0x3036ef=>_0x4e09d8['end']['isTouching'](_0x3036ef['start'])));}_0x8a011['descriptionFactory']['registerDescriptionCallback'](_0xf4abdd=>{if('insertion'!=_0xf4abdd['type']&&'deletion'!=_0xf4abdd['type'])return;const _0x880afa=_0xf4abdd['getContainedElement']();if(null!=_0x880afa&&_0x880afa['is']('element','table')){if('insertion'==_0xf4abdd['type']){const _0x1e0a9a=_0xf4abdd['getItems']()['filter'](_0x79daa3=>_0x79daa3['is']('$textProxy'))['map'](_0x5644b1=>_0x5644b1['data']);if(_0x1e0a9a['length'])return{'type':'insertion','content':o(_0x437bf5,'*Insert:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1e0a9a['join']('\x20')+'\x22'))};}if('deletion'==_0xf4abdd['type']){const _0xfd2f6e=_0xf4abdd['getItems']()['filter'](_0x50a477=>_0x50a477['is']('$textProxy'))['map'](_0x13b6bf=>_0x13b6bf['data']);if(_0xfd2f6e['length'])return{'type':'deletion','content':o(_0x437bf5,'*Remove:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xfd2f6e['join']('\x20')+'\x22'))};}}}),_0x8a011['descriptionFactory']['registerDescriptionCallback'](_0x434bad=>{if('tableRow'==_0x434bad['subType']){const _0x469809=_0x434bad['getItems']()['filter'](_0x4c8926=>_0x4c8926['is']('$textProxy'))['map'](_0x4a79ee=>_0x4a79ee['data']),_0x4fc5e1=this['_getSuggestionCoords'](_0x434bad),_0x228afa=_0x4fc5e1['maxRow']-_0x4fc5e1['minRow']+0x1;if('insertion'==_0x434bad['type'])return _0x469809['length']?{'type':'insertion','content':o(_0x437bf5,'*Insert:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x228afa,'\x22'+_0x469809['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x437bf5,'*Insert:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_ROW',_0x228afa))};if('deletion'==_0x434bad['type'])return _0x469809['length']?{'type':'deletion','content':o(_0x437bf5,'*Remove:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x228afa,'\x22'+_0x469809['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x437bf5,'*Remove:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_ROW',_0x228afa))};}if('tableColumn'==_0x434bad['subType']){const _0x3e18ee=_0x434bad['getItems']()['filter'](_0x4d2459=>_0x4d2459['is']('$textProxy'))['map'](_0x34ddbe=>_0x34ddbe['data']),_0x41f1ae=this['_getSuggestionCoords'](_0x434bad),_0x3ede7b=_0x41f1ae['maxColumn']-_0x41f1ae['minColumn']+0x1;if('insertion'==_0x434bad['type'])return _0x3e18ee['length']?{'type':'insertion','content':o(_0x437bf5,'*Insert:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ede7b,'\x22'+_0x3e18ee['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x437bf5,'*Insert:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_COLUMN',_0x3ede7b))};if('deletion'==_0x434bad['type'])return _0x3e18ee['length']?{'type':'deletion','content':o(_0x437bf5,'*Remove:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ede7b,'\x22'+_0x3e18ee['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x437bf5,'*Remove:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_COLUMN',_0x3ede7b))};}}),_0x8a011['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4f4efe),_0x8a011['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4f4efe),_0x8a011['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5d7f28),_0x8a011['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5d7f28),_0x8a011['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4c88f4),_0x8a011['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4c88f4),_0x8a011['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2c90c4),_0x8a011['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2c90c4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x470706=this['editor'],_0x3b67a3=_0x470706['model']['document']['selection'];return(_0x6bfebb,_0x3cdb02)=>{_0x470706['model']['change'](_0x5636f0=>{const {commandName:_0x56d649,commandParams:_0x513ca7}=_0x3cdb02;let _0x138a5e=_0x6bfebb[0x0]['end']['nodeBefore'];_0x513ca7&&_0x513ca7[0x0]&&!0x1===_0x513ca7[0x0]['forceValue']&&(_0x138a5e=_0x6bfebb[0x0]['start']['nodeAfter']);const _0x180b6a=_0x5636f0['createRangeIn'](_0x138a5e);if('$graveyard'==_0x180b6a['root']['rootName'])return;const _0x1e632d=Array['from'](_0x3b67a3['getRanges']())['map'](_0x380f45=>_0x41285e['fromRange'](_0x380f45));_0x5636f0['setSelection'](_0x180b6a),_0x470706['commands']['get'](_0x56d649)['refresh'](),_0x513ca7['push']({'forceDefaultExecution':!0x0}),_0x470706['execute'](_0x56d649,..._0x513ca7);const _0x576ecd=_0x1e632d['filter'](_0x5a8c13=>'$graveyard'!=_0x5a8c13['root']['rootName']);_0x576ecd['length']>0x0&&_0x5636f0['setSelection'](_0x576ecd);for(const _0x48f1fd of _0x1e632d)_0x48f1fd['detach']();});};}['_getCoordsForCells'](_0x1d8b87){const _0xc8655b=this['editor']['plugins']['get']('TableUtils');let _0x6134fe=Number['MAX_SAFE_INTEGER'],_0x46726b=Number['MIN_SAFE_INTEGER'],_0xf652fc=Number['MAX_SAFE_INTEGER'],_0x5f45ca=Number['MIN_SAFE_INTEGER'];for(const _0x1ee915 of _0x1d8b87){if('$graveyard'==_0x1ee915['root']['rootName'])continue;const {row:_0x314011,column:_0x45e805}=_0xc8655b['getCellLocation'](_0x1ee915),_0x185c30=_0x1ee915['hasAttribute']('rowspan')?_0x1ee915['getAttribute']('rowspan')-0x1:0x0,_0xe2daf=_0x1ee915['hasAttribute']('colspan')?_0x1ee915['getAttribute']('colspan')-0x1:0x0;_0x6134fe=_0x314011<_0x6134fe?_0x314011:_0x6134fe,_0x46726b=_0x314011+_0x185c30>_0x46726b?_0x314011+_0x185c30:_0x46726b,_0xf652fc=_0x45e805<_0xf652fc?_0x45e805:_0xf652fc,_0x5f45ca=_0x45e805+_0xe2daf>_0x5f45ca?_0x45e805+_0xe2daf:_0x5f45ca;}return{'minRow':_0x6134fe,'maxRow':_0x46726b,'minColumn':_0xf652fc,'maxColumn':_0x5f45ca};}['_setupColumnsRowsFixing'](){const _0x22a14f=this['editor'],_0x2d676c=_0x22a14f['plugins']['get']('TrackChangesEditing'),_0x4608b8=_0x22a14f['plugins']['get']('TableUtils');_0x22a14f['model']['document']['on']('change:data',()=>{const _0x46936c=Array['from'](_0x22a14f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c5d44,data:_0x4281d5}of _0x46936c){const {group:_0x11ac3b,id:_0x485fe3,subType:_0x5ec5a8}=_0x2d676c['_splitMarkerName'](_0x2c5d44);if('suggestion'!=_0x11ac3b)continue;if(null!=_0x4281d5['oldRange'])continue;const _0x4a4e13=_0x2d676c['getSuggestion'](_0x485fe3);this['_tablePostFixingSubtypes']['includes'](_0x5ec5a8)&&this['_tableSuggestions']['add'](_0x4a4e13);}},{'priority':'low'});const _0x80671b=(_0x5ed271,_0x26cde0)=>{let _0x231619=!0x1;const _0x4bfcd4=_0x26cde0['createRangeOn'](_0x5ed271),_0x52578f=_0x5ed271['findAncestor']('table'),_0x5f27de=_0x4608b8['getCellLocation'](_0x5ed271);for(const _0x2ce1d5 of this['_tableSuggestions']){const _0x23ac11=_0x2ce1d5['subType'],_0xea0de2=_0x23ac11['startsWith']('tablePaste'),_0x55acc5=_0x23ac11['substr'](_0xea0de2?0xa:0x5),_0x5089c4=_0x55acc5['toLowerCase'](),_0x451042=_0x5089c4['substr'](0x0,0x3)+'span',_0x5d35f7='min'+_0x55acc5,_0x7f70d9='max'+_0x55acc5;if(!_0x2ce1d5['isInContent'])continue;if(_0x52578f!=_0x2ce1d5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2ce1d5['isIntersectingWithRange'](_0x4bfcd4))continue;const _0x192a37=_0x5ed271['hasAttribute'](_0x451042)?_0x5ed271['getAttribute'](_0x451042)-0x1:0x0,_0x1186a0=this['_getSuggestionCoords'](_0x2ce1d5),_0x11999d=_0x1186a0[_0x5d35f7],_0x31da92=_0x1186a0[_0x7f70d9];_0x11999d<=_0x5f27de[_0x5089c4]&&_0x5f27de[_0x5089c4]+_0x192a37<=_0x31da92&&(_0x2ce1d5['addRange'](_0x4bfcd4),_0x231619=!0x0);}return _0x231619;};_0x22a14f['model']['document']['registerPostFixer'](_0x26d891=>{let _0x4b8ad7=!0x1;for(const _0x2ac411 of _0x22a14f['model']['document']['differ']['getChanges']())if('insert'==_0x2ac411['type']){if('tableRow'==_0x2ac411['name']){for(const _0x5e96e3 of _0x2ac411['position']['nodeAfter']['getChildren']())_0x4b8ad7=_0x4b8ad7||_0x80671b(_0x5e96e3,_0x26d891);}else'tableCell'==_0x2ac411['name']&&(_0x4b8ad7=_0x4b8ad7||_0x80671b(_0x2ac411['position']['nodeAfter'],_0x26d891));}return _0x4b8ad7;});}['_getSuggestionCoords'](_0x13f549){return this['_getCoordsForCells'](_0x13f549['getRanges']()['map'](_0x443356=>_0x443356['start']['nodeAfter']));}}function _e(_0x3d5db4){return Array['from'](new Set(_0x3d5db4)['values']());}class Bt extends _0x4f24f5{static get['requires'](){return[Dt];}['afterInit'](){const _0x58af14=this['editor'],_0x2dafcb=_0x58af14['model']['document']['selection'],_0x374da6=_0x58af14['locale'];if(!_0x58af14['plugins']['has']('TableEditing'))return;const _0x42d3ee=_0x58af14['plugins']['get']('TrackChangesEditing'),_0x5b01cd=_0x58af14['plugins']['get']('TableUtils'),_0x386264=_0x58af14['plugins']['get'](Dt);_0x386264['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x42d3ee['enableCommand']('mergeTableCells',()=>{const _0xa28c7=_0x5b01cd['getSelectionAffectedTableCells'](_0x58af14['model']['document']['selection']);_0x58af14['model']['change'](()=>{_0x42d3ee['markMultiRangeBlockFormat'](_0xa28c7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x58af14['commands']['get']('mergeTableCells')['on']('execute',(_0x38c059,_0x583345)=>{_0x58af14['commands']['get']('trackChanges')['value']&&(_0x583345['length']>0x0&&_0x583345[_0x583345['length']-0x1]&&_0x583345[_0x583345['length']-0x1]['forceDefaultExecution']||_0x42d3ee['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x38c059['stop']());},{'priority':'highest'});for(const _0x10a9ac of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x104507=_0x58af14['commands']['get'](_0x10a9ac);_0x42d3ee['enableCommand'](_0x10a9ac,()=>{const _0x19183d=_0x58af14['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x20dce5=>_0x20dce5['is']('element','tableCell')),_0x12c293=_0x104507['value'];_0x58af14['model']['change'](()=>{_0x42d3ee['markMultiRangeBlockFormat']([_0x19183d,_0x12c293],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2dd18a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4d02da=_0x58af14['commands']['get'](_0x2dd18a);_0x42d3ee['enableCommand'](_0x2dd18a,()=>{const _0x3adf4e=_0x5b01cd['getSelectionAffectedTableCells'](_0x58af14['model']['document']['selection'])[0x0],_0x288afa=_0x3adf4e['findAncestor']('table'),{column:_0x24ed81,row:_0x264771}=_0x5b01cd['getCellLocation'](_0x3adf4e);let _0x47006b=[];if('horizontally'==_0x4d02da['direction']){const _0x1ac7a5=_0x5b01cd['createTableWalker'](_0x288afa,{'startRow':_0x264771,'endRow':_0x264771,'includeAllSlots':!0x0});_0x47006b=Array['from'](_0x1ac7a5)['map'](_0x50e969=>_0x50e969['cell']);}else{const _0x46d6b9=_0x5b01cd['createTableWalker'](_0x288afa,{'column':_0x24ed81,'includeAllSlots':!0x0});_0x47006b=Array['from'](_0x46d6b9)['map'](_0x25990b=>_0x25990b['cell']);}_0x58af14['model']['change'](_0x24b5cd=>{_0x42d3ee['markBlockFormat'](_0x24b5cd['createRangeOn'](_0x3adf4e),{'commandName':_0x2dd18a,'commandParams':[]},_0x47006b,_0x2dd18a);});});}_0x42d3ee['descriptionFactory']['registerDescriptionCallback'](_0x310f7d=>{if('formatBlock'!=_0x310f7d['type']&&'formatInline'!=_0x310f7d['type'])return;const {data:_0xe41d43}=_0x310f7d;return _0xe41d43&&'mergeTableCells'==_0xe41d43['commandName']?{'type':'format','content':o(_0x374da6,'*Merge\x20cells*')}:void 0x0;}),_0x42d3ee['descriptionFactory']['registerDescriptionCallback'](_0x3db7d8=>{if('formatBlock'!=_0x3db7d8['type']&&'formatInline'!=_0x3db7d8['type'])return;const {data:_0x521b85}=_0x3db7d8;return _0x521b85?'splitTableCellVertically'==_0x521b85['commandName']?{'type':'format','content':o(_0x374da6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x521b85['commandName']?{'type':'format','content':o(_0x374da6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x24b690=_0x386264['_acceptFormatSuggestionCallbackFactory']();for(const _0x580a49 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x42d3ee['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x580a49,'accept',_0x24b690);for(const _0x237ede of['splitTableCellVertically','splitTableCellHorizontally'])_0x42d3ee['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x237ede,'accept',_0x24b690);_0x42d3ee['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x8dc651=>{_0x58af14['model']['change'](_0x270201=>{const _0x2db66f=Array['from'](_0x2dafcb['getRanges']())['map'](_0x26ada3=>_0x41285e['fromRange'](_0x26ada3));_0x270201['setSelection'](_0x8dc651),_0x58af14['commands']['get']('mergeTableCells')['refresh'](),_0x58af14['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3ff6bf=_0x2db66f['filter'](_0x42a01c=>'$graveyard'!=_0x42a01c['root']['rootName']);_0x3ff6bf['length']>0x0&&_0x270201['setSelection'](_0x3ff6bf);for(const _0x5d12dd of _0x2db66f)_0x5d12dd['detach']();});});for(const _0x1cb78a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4bd0b2=_0x58af14['commands']['get'](_0x1cb78a);_0x4bd0b2['on']('set:isEnabled',(_0x5bbeb8,_0x2f0919,_0x25f600)=>{if(_0x25f600){const _0x403cfc=_0x58af14['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2be07f=>_0x2be07f['is']('element','tableCell'));this['_areMergableCells'](_0x4bd0b2['value'],_0x403cfc)||(_0x5bbeb8['return']=!0x1,_0x5bbeb8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3193f6=this['editor']['commands']['get']('mergeTableCells'),_0x4613a2=this['editor']['plugins']['get']('TableUtils');if(!_0x3193f6['isEnabled'])return!0x1;const _0x30600f=_0x4613a2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3359e8 of _0x30600f)for(const _0x1c3e18 of _0x30600f)if(_0x3359e8!=_0x1c3e18&&!this['_areMergableCells'](_0x3359e8,_0x1c3e18))return!0x1;return!0x0;}['_areMergableCells'](_0x3a0a75,_0x36b52d){const _0x1f40aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9c5ade=this['editor']['model']['createRangeOn'](_0x3a0a75),_0x1a6eed=this['editor']['model']['createRangeOn'](_0x36b52d),_0x33632f=new Set(),_0x42a15a=new Set();for(const _0x45ae0a of _0x1f40aa['getSuggestions']())if(('insertion'==_0x45ae0a['type']||'deletion'==_0x45ae0a['type']||'mergeTableCells'==_0x45ae0a['subType'])&&_0x45ae0a['isInContent']){for(const _0x227ca4 of _0x45ae0a['getRanges']())_0x227ca4['containsRange'](_0x9c5ade,!0x0)&&_0x33632f['add'](_0x45ae0a['type']+':'+_0x45ae0a['author']['id']),_0x227ca4['containsRange'](_0x1a6eed,!0x0)&&_0x42a15a['add'](_0x45ae0a['type']+':'+_0x45ae0a['author']['id']);}if(_0x33632f['size']!=_0x42a15a['size'])return!0x1;for(const _0x4b0ffa of _0x33632f)if(!_0x42a15a['has'](_0x4b0ffa))return!0x1;return!0x0;}}class Ot extends _0x4f24f5{static get['requires'](){return[Dt];}['afterInit'](){const _0x58d52b=this['editor'];if(!_0x58d52b['plugins']['has']('TableEditing'))return;const _0x382d57=_0x58d52b['locale'],_0x1b14d3=_0x58d52b['plugins']['get']('TrackChangesEditing');_0x1b14d3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b14d3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b14d3['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x382d57,'FORMAT_HEADER_ROW')),_0x1b14d3['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x382d57,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1039cb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcb50df=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x1039cb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xcb50df),_0x1039cb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xcb50df),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x430762=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31aadd=this['editor']['plugins']['get']('TableUtils');function _0x17639c({showActiveMarker:_0x18da76=!0x0,setDataAttribute:_0xe4fc2c=!0x0}={}){return(_0x11303c,_0x53121f,_0x588377)=>{const {type:_0xa7632e,id:_0x17f43b}=_0x430762['_splitMarkerName'](_0x53121f['markerName']);if(!_0x430762['hasSuggestion'](_0x17f43b))return;const _0xfbff9e=_0x430762['getSuggestion'](_0x17f43b),_0x89f9f2=_0xfbff9e['data'];if('formatBlock'!=_0xfbff9e['type']||!_0x89f9f2||'setTableColumnHeader'!=_0x89f9f2['commandName'])return;if(_0x53121f['item'])return void _0x11303c['stop']();if(!_0x588377['consumable']['consume'](_0x53121f['markerRange'],_0x11303c['name']))return;const _0x4ec410=_0x53121f['markerRange']['start']['nodeAfter'],_0x2e78bf=_0x53121f['markerRange']['end']['nodeBefore'],_0x3be321=_0x4ec410['parent']['parent'],{column:_0x5abcf3}=_0x31aadd['getCellLocation'](_0x4ec410),{column:_0x5ae962}=_0x31aadd['getCellLocation'](_0x2e78bf);for(let _0x1f8f76=_0x5abcf3;_0x1f8f76<=_0x5ae962;_0x1f8f76++){const _0x30d3d0=_0x31aadd['createTableWalker'](_0x3be321,{'column':_0x1f8f76,'includeAllSlots':!0x1});for(const _0x465e6a of _0x30d3d0){const _0x31c2ba=_0x465e6a['cell'],_0x537f62=_0x588377['mapper']['toViewElement'](_0x31c2ba);_0x588377['writer']['addClass']('ck-suggestion-marker-'+_0xa7632e,_0x537f62),_0xe4fc2c&&_0x588377['writer']['setAttribute']('data-suggestion',_0x17f43b,_0x537f62),_0x588377['mapper']['bindElementToMarker'](_0x537f62,_0x53121f['markerName']),_0x18da76&&(_0x430762['activeMarkers']['includes'](_0x53121f['markerName'])?_0x588377['writer']['addClass']('ck-suggestion-marker--active',_0x537f62):_0x588377['writer']['removeClass']('ck-suggestion-marker--active',_0x537f62));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x17639c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x886c2c,_0x5ecab6,_0x59090d)=>{_0x59090d['options']['showSuggestionHighlights']&&_0x17639c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x886c2c,_0x5ecab6,_0x59090d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1d5ac2,_0x22e012,_0x36a1e2)=>{const {type:_0x5a1d6f,id:_0x62840b}=_0x430762['_splitMarkerName'](_0x22e012['markerName']);if(!_0x430762['hasSuggestion'](_0x62840b))return;const _0x4159bd=_0x430762['getSuggestion'](_0x62840b),_0x15d021=_0x4159bd['data'];if('formatBlock'!=_0x4159bd['type']||!_0x15d021||'setTableColumnHeader'!=_0x15d021['commandName'])return;const _0x53c285=_0x36a1e2['mapper']['markerNameToElements'](_0x22e012['markerName']);if(_0x53c285){for(const _0x10b0ef of _0x53c285)_0x36a1e2['writer']['removeClass']('ck-suggestion-marker-'+_0x5a1d6f,_0x10b0ef),_0x36a1e2['writer']['removeClass']('ck-suggestion-marker--active',_0x10b0ef),_0x36a1e2['writer']['removeAttribute']('data-suggestion',_0x10b0ef),_0x36a1e2['mapper']['unbindElementFromMarkerName'](_0x10b0ef,_0x22e012['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x5440eb=this['editor'],_0x9fcca=_0x5440eb['locale'];function _0x21008c(_0x11f07a){return{'type':'format','content':o(_0x9fcca,'*Format:*\x20%0',_0x11f07a)};}_0x5440eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x333a05=>{if('formatBlock'!=_0x333a05['type'])return;const {data:_0x57c0dd}=_0x333a05;if(_0x57c0dd){if('setTableRowHeader'==_0x57c0dd['commandName']){const _0x1c505b=_0x57c0dd['commandParams'][0x0]['forceValue'];return _0x21008c(o(_0x9fcca,_0x1c505b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x57c0dd['commandName']){const _0x5dc206=_0x57c0dd['commandParams'][0x0]['forceValue'];return _0x21008c(o(_0x9fcca,_0x5dc206?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x4f24f5{['afterInit'](){const _0x29f38a=this['editor'],_0x5232bd=_0x29f38a['locale'],_0x431dbe=_0x29f38a['plugins']['get']('TrackChangesEditing');function _0x1f7ec6(_0x104a08){return{'type':'format','content':''+o(_0x5232bd,'*Set\x20table\x20type:*\x20%0',_0x104a08)};}_0x29f38a['plugins']['has']('TableLayout')&&(_0x431dbe['enableCommand']('insertTableLayout'),_0x431dbe['enableDefaultAttributesIntegration']('tableType'),_0x431dbe['descriptionFactory']['registerElementLabel'](_0x50ebc0=>_0x50ebc0['is']('element','table')&&'layout'===_0x50ebc0['getAttribute']('tableType'),_0x3feef8=>o(_0x5232bd,'ELEMENT_LAYOUT_TABLE',_0x3feef8)),_0x431dbe['descriptionFactory']['registerDescriptionCallback'](_0x2d5209=>{const {data:_0x91f4d8}=_0x2d5209;if(_0x91f4d8&&'tableType'==_0x91f4d8['key'])switch(_0x91f4d8['newValue']){case'layout':return _0x1f7ec6(o(_0x5232bd,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1f7ec6(o(_0x5232bd,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Re['map'](_0x3c93e7=>[_0x3c93e7,null]));class Mt extends _0x4f24f5{static get['requires'](){return[Dt];}['afterInit'](){const _0x4d8b8b=this['editor'];if(!_0x4d8b8b['plugins']['has']('TableClipboard'))return;const _0x1117a8=_0x4d8b8b['plugins']['get']('TrackChangesEditing'),_0x479b12=_0x4d8b8b['plugins']['get']('TableUtils'),_0x3047cb=_0x4d8b8b['plugins']['get'](Dt),_0x3693b4=_0x4d8b8b['plugins']['get']('TableClipboard'),_0x224419=_0x4d8b8b['plugins']['get']('TableSelection'),_0x3b649d=_0x4d8b8b['plugins']['get'](_0x20f0bc);_0x3047cb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4d8b8b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4d8b8b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xb49913=null,_0x460bde=!0x1;_0x3b649d['on']('contentInsertion',(_0x4a2951,_0x1ef1d2)=>{_0x460bde='paste'===_0x1ef1d2['method'];}),_0x4d8b8b['model']['on']('insertContent',(_0x3fe27a,_0x4cda91)=>{if(!_0x460bde&&null===_0x224419['getSelectedTableCells']())return;const [_0xbdb5e3,_0x121a33]=_0x4cda91,_0x1dffa2=_0x4cda91[_0x4cda91['length']-0x1];_0x1dffa2&&_0x1dffa2['forceDefaultExecution']||_0x1117a8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x257986,_0x268503,_0x300ded,_0x42ad9d,_0x15a148){if(_0x268503&&!_0x268503['is']('documentSelection'))return!0x1;const _0x1688bf=_0x15a148['getTableIfOnlyTableInContent'](_0x257986,_0x300ded);if(!_0x1688bf||!Oe(_0x1688bf,void 0x0,_0x42ad9d))return!0x1;const _0x461cab=_0x42ad9d['getSelectionAffectedTableCells'](_0x300ded['document']['selection']);if(!_0x461cab['length'])return!0x1;const _0x30b4d9=_0x461cab[0x0]['findAncestor']('table'),_0x2e2dbb=_0x42ad9d['getRowIndexes'](_0x461cab),_0x30bc82=_0x42ad9d['getColumnIndexes'](_0x461cab),_0x1128e3={'startRow':_0x2e2dbb['first'],'endRow':_0x2e2dbb['last'],'startColumn':_0x30bc82['first'],'endColumn':_0x30bc82['last']};return 0x1==_0x461cab['length']&&(_0x1128e3['endRow']+=_0x42ad9d['getRows'](_0x1688bf)-0x1,_0x1128e3['endColumn']+=_0x42ad9d['getColumns'](_0x1688bf)-0x1),Oe(_0x30b4d9,_0x1128e3,_0x42ad9d);}(_0xbdb5e3,_0x121a33,_0x4d8b8b['model'],_0x479b12,_0x3693b4)&&(_0x3fe27a['stop'](),_0xb49913={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4d8b8b['model']['change'](()=>{_0x4d8b8b['model']['insertContent'](_0x4cda91[0x0],_0x4cda91[0x1],_0x4cda91[0x2],{'forceDefaultExecution':!0x0});const _0x3ae369=_0x58b4bb(),{rowInsertionRanges:_0x34a524,columnInsertionRanges:_0x2c2ed9,insertionRanges:_0x58e365,deletionRanges:_0x4fce15,cells:_0xd647a2}=_0xb49913;_0x34a524['length']&&_0x1117a8['markMultiRangeInsertion'](_0x34a524,'tablePasteRow',{'tablePasteChainId':_0x3ae369}),_0x2c2ed9['length']&&_0x1117a8['markMultiRangeInsertion'](_0x2c2ed9,'tablePasteColumn',{'tablePasteChainId':_0x3ae369}),_0x58e365['length']&&(_0x1117a8['markMultiRangeInsertion'](_0x58e365,'tablePaste',{'tablePasteChainId':_0x3ae369,'skipNestingCheck':!0x0}),_0x58e365['forEach'](_0x3a4a13=>_0x3a4a13['detach']?.())),_0x4fce15['length']&&(_0x1117a8['markMultiRangeDeletion'](_0x4fce15,'tablePaste',{'tablePasteChainId':_0x3ae369,'skipNestingCheck':!0x0}),_0x4fce15['forEach'](_0x2e5fb7=>_0x2e5fb7['detach']?.()));const _0x2a101b=_0x1117a8['markMultiRangeBlockFormat'](_0xd647a2['map'](({element:_0x59cf69})=>_0x59cf69),{'formatGroupId':_0x58b4bb()},[],'tablePasteCell',{'tablePasteChainId':_0x3ae369});if(_0x2a101b){const _0x33068c=_0x2a101b['getMarkers'](),_0x1a6292=[];for(const {element:_0x170749,attributes:_0x2ddf38}of _0xd647a2){if(!_0x2ddf38)continue;const _0x57f1da=_0x4d8b8b['model']['createRangeOn'](_0x170749),_0x38dfb8=_0x33068c['find'](_0x531168=>_0x531168['getRange']()['isEqual'](_0x57f1da));_0x38dfb8&&_0x1a6292['push']([_0x38dfb8['name'],_0x2ddf38]);}_0x1a6292['length']&&_0x2a101b['setAttribute']('markerAttributes',Object['fromEntries'](_0x1a6292));}_0xb49913=null;}));},{'priority':_0x3377f6['high']+0xa}),_0x3b649d['on']('contentInsertion',()=>{_0x460bde=!0x1;},{'priority':'lowest'}),_0x4d8b8b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x24f3b3,_0x50b5e5)=>{const [_0x2853fb,_0x181888,,_0x13ac2f]=_0x50b5e5;if(!_0xb49913)return;_0x24f3b3['stop']();const _0x16baba=_0x2853fb['cell'],_0x45a87c=_0x181888,_0x2a2cf7=Be(_0x16baba),_0x349e87=Be(_0x45a87c);_0x24f3b3['return']=_0x16baba;let _0x36cf0e=null,_0x45330f=null;if(_0x349e87||_0x2a2cf7){if(_0x2a2cf7&&!_0x349e87){_0x13ac2f['remove'](_0x16baba['getChild'](0x0));for(const _0x26ed8b of Array['from'](_0x45a87c['getChildren']()))_0x13ac2f['insert'](_0x26ed8b,_0x16baba,'end');const _0x1f84b1=_0xb49913['rowInsertionIndexes']['includes'](_0x2853fb['row']),_0x216aab=_0xb49913['columnInsertionIndexes']['includes'](_0x2853fb['column']);_0x1f84b1||_0x216aab||(_0x36cf0e=_0x41285e['fromRange'](_0x13ac2f['createRangeIn'](_0x16baba)));}else _0x349e87&&!_0x2a2cf7&&(_0x45330f=_0x13ac2f['createRangeIn'](_0x16baba));}else{const _0x193aa2=_0x13ac2f['createElement']('tableCellSuggestion'),_0x3cbb3d=_0x13ac2f['createElement']('tableCellSuggestion');_0x13ac2f['wrap'](_0x13ac2f['createRangeIn'](_0x16baba),_0x3cbb3d),_0x13ac2f['insert'](_0x193aa2,_0x16baba,0x0);for(const _0x591341 of Array['from'](_0x45a87c['getChildren']()))_0x13ac2f['insert'](_0x591341,_0x193aa2,'end');_0x36cf0e=_0x41285e['fromRange'](_0x13ac2f['createRangeOn'](_0x193aa2)),_0x45330f=_0x41285e['fromRange'](_0x13ac2f['createRangeOn'](_0x3cbb3d));}const _0x54aa84=Array['from'](_0x45a87c['getAttributes']())['filter'](([_0x28d045])=>Re['includes'](_0x28d045));_0xb49913['cells']['push']({'element':_0x16baba,'attributes':_0x54aa84['length']?Object['fromEntries'](_0x54aa84):null}),_0x36cf0e&&_0xb49913['insertionRanges']['push'](_0x36cf0e),_0x45330f&&_0xb49913['deletionRanges']['push'](_0x45330f);},{'priority':'high'}),_0x479b12['on']('insertColumns',(_0x86052b,_0x11349e)=>{const [_0x30fe63,_0x70a1cd={}]=_0x11349e;if(!_0xb49913)return;const _0x43ac69=_0x70a1cd['at']||0x0,_0x31c665=_0x70a1cd['columns']||0x1;_0xb49913['columnInsertionIndexes']=new Array(_0x31c665)['fill'](_0x43ac69)['map']((_0x4e7295,_0x5bbe94)=>_0x4e7295+_0x5bbe94);for(const {cell:_0x3f95c1}of _0x479b12['createTableWalker'](_0x30fe63,{'startColumn':_0x43ac69,'endColumn':_0x43ac69+_0x31c665-0x1}))_0xb49913['columnInsertionRanges']['push'](_0x4d8b8b['model']['createRangeOn'](_0x3f95c1));},{'priority':'low'}),_0x479b12['on']('insertRows',(_0x8ac5fc,_0xe0cafa)=>{const [_0x3f8941,_0x54954e={}]=_0xe0cafa;if(!_0xb49913)return;const _0x5b6e3c=_0x54954e['at']||0x0,_0x28ae7e=_0x54954e['rows']||0x1;_0xb49913['rowInsertionIndexes']=new Array(_0x28ae7e)['fill'](_0x5b6e3c)['map']((_0x1a7603,_0x480d04)=>_0x1a7603+_0x480d04);for(const {cell:_0x3b7714}of _0x479b12['createTableWalker'](_0x3f8941,{'startRow':_0x5b6e3c,'endRow':_0x5b6e3c+_0x28ae7e-0x1}))_0xb49913['rowInsertionRanges']['push'](_0x4d8b8b['model']['createRangeOn'](_0x3b7714));},{'priority':'low'}),_0x1117a8['descriptionFactory']['registerDescriptionCallback'](_0x56690a=>{if(_0x56690a['subType']&&_0x56690a['subType']['startsWith']('tablePaste'))return _0x56690a['previous']?{}:{'type':'insertion','content':o(_0x4d8b8b['locale'],'*Replace\x20table\x20cells*')};});const _0x3d8036=()=>!0x1;for(const _0x2476c1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1117a8['_suggestionFactory']['registerCustomCallback']('insertion',_0x2476c1,'join',_0x3d8036),_0x1117a8['_suggestionFactory']['registerCustomCallback']('deletion',_0x2476c1,'join',_0x3d8036),_0x1117a8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2476c1,'join',_0x3d8036);_0x1117a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3d8036),_0x1117a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x28d715,_0x3a2524,_0x55d47b)=>{const _0xcdcac=_0x28d715['map'](_0x218056=>_0x218056['getContainedElement']())['filter'](_0x5f16ef=>_0x5f16ef),_0x4643a0=new Map(_0xcdcac['map'](_0x4696e6=>[_0x4696e6,null]));if(_0xb49913){for(const {element:_0x34c7ff,attributes:_0x1cea79}of _0xb49913['cells'])_0x1cea79&&_0x4643a0['set'](_0x34c7ff,_0x1cea79);}else{if(_0x55d47b&&_0x55d47b['markerAttributes'])for(const [_0xed4202,_0x24d38d]of Object['entries'](_0x55d47b['markerAttributes'])){const _0x17f322=_0x4d8b8b['model']['markers']['get'](_0xed4202),_0x2d6e9c=_0x17f322?_0x17f322['getRange']()['getContainedElement']():null;_0x2d6e9c&&_0x4643a0['set'](_0x2d6e9c,_0x24d38d);}}_0x4d8b8b['model']['change'](_0x4b992f=>{for(const [_0x3ef6fd,_0x1f0708]of _0x4643a0)_0x4b992f['setAttributes']({...Ae,..._0x1f0708},_0x3ef6fd);});});const _0x497747=(_0x23f5a2,_0x38eca1)=>{_0x1117a8['_suggestionFactory']['registerCustomCallback'](_0x23f5a2,'tablePaste',_0x38eca1,(_0x3303f3,_0x565aaa,_0x2946a3)=>{_0x4d8b8b['model']['change'](_0x597e31=>{const _0x5c5314=[];for(const _0x264474 of _0x3303f3){const _0x438f9d=_0x264474['start']['nodeAfter'];_0x438f9d['is']('element','tableCellSuggestion')&&_0x5c5314['push'](_0x438f9d);}_0x1117a8['_suggestionFactory']['getSuggestionCallback'](_0x23f5a2,null,_0x38eca1)(_0x3303f3,_0x565aaa,_0x2946a3);for(const _0xc91c35 of _0x5c5314)'$graveyard'!=_0xc91c35['root']['rootName']&&_0x597e31['unwrap'](_0xc91c35);});});};_0x497747('insertion','accept'),_0x497747('insertion','discard'),_0x497747('deletion','accept'),_0x497747('deletion','discard'),_0x1117a8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1048c6=>{const _0x4e09e6=_0x1048c6['map'](_0x5d3c95=>_0x5d3c95['getContainedElement']()),_0x42e696=_0x4e09e6[0x0]['findAncestor']('table'),{minRow:_0x3f933c,maxRow:_0x5899bb}=_0x3047cb['_getCoordsForCells'](_0x4e09e6);_0x479b12['removeRows'](_0x42e696,{'at':_0x3f933c,'rows':_0x5899bb-_0x3f933c+0x1});}),_0x1117a8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x579b57=>{const _0x12c1ee=_0x579b57['map'](_0x58b9e5=>_0x58b9e5['getContainedElement']()),_0x526ae0=_0x12c1ee[0x0]['findAncestor']('table'),{minColumn:_0x3dd7f5,maxColumn:_0x34538d}=_0x3047cb['_getCoordsForCells'](_0x12c1ee);_0x479b12['removeColumns'](_0x526ae0,{'at':_0x3dd7f5,'columns':_0x34538d-_0x3dd7f5+0x1});});const _0x568f8f=(_0x490783,_0x2e8d36)=>{if(!_0x2e8d36['subType']||!_0x2e8d36['subType']['startsWith']('tablePaste'))return;const _0x27fb06=_0x2e8d36['attributes']['tablePasteChainId'],_0x7143e5=_0x1117a8['getSuggestions']()['filter'](_0x1e249c=>_0x1e249c['isInContent']&&_0x1e249c['attributes']&&_0x1e249c['attributes']['tablePasteChainId']==_0x27fb06);_0x7143e5['length']&&_0x2e8d36['getAllAdjacentSuggestions']()['length']!=_0x7143e5['length']&&_0x7143e5['reduce']((_0x302605,_0x11a092)=>(_0x302605['next']=_0x11a092,_0x11a092['previous']=_0x302605,_0x11a092));};function _0x397bfa(_0x3355b2,_0x43f259=!0x0){const {id:_0x109440,authorId:_0x268627}=_0x1117a8['_splitMarkerName'](_0x3355b2['markerName']),_0x13d9e8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x43bf75=_0x1117a8['activeMarkers']['includes'](_0x3355b2['markerName']);return _0x43bf75&&_0x13d9e8['push']('ck-suggestion-marker--active'),{'classes':_0x13d9e8,'attributes':{'data-suggestion':_0x109440,'data-author-id':_0x268627},'priority':_0x43bf75&&_0x43f259?0xbc2:0xbb8};}_0x1117a8['on']('suggestionLoaded',_0x568f8f,{'priority':'high'}),_0x1117a8['on']('suggestionUnloaded',_0x568f8f,{'priority':'high'}),_0x4d8b8b['model']['document']['registerPostFixer'](()=>{let _0x4b9aa1=!0x1;const _0x16c31b=Array['from'](_0x4d8b8b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x266744,data:_0x5a0ee4}of _0x16c31b){const {group:_0x56dc50,type:_0x5c9a83,id:_0x576884}=_0x1117a8['_splitMarkerName'](_0x266744);if('suggestion'!=_0x56dc50||'deletion'!=_0x5c9a83||_0x5a0ee4['oldRange'])continue;if(!_0x1117a8['hasSuggestion'](_0x576884))continue;const _0x47ede8=_0x1117a8['getSuggestion'](_0x576884)['getRanges'](),_0x3ad2dc=_0x4d8b8b['plugins']['get']('Users')['me'];for(const _0x3049d0 of _0x1117a8['getSuggestions']()){if(!_0x3049d0['isInContent']||_0x3049d0['author']!=_0x3ad2dc)continue;if('formatBlock'!=_0x3049d0['type']||'tablePasteCell'!=_0x3049d0['subType'])continue;if(_0x3049d0['getRanges']()['every'](_0x35ae1f=>_0x47ede8['some'](_0x1eef31=>_0x1eef31['containsRange'](_0x35ae1f,!0x0)))){for(const _0x3f7e60 of _0x3049d0['getAllAdjacentSuggestions']())_0x3f7e60['isInContent']&&(_0x3f7e60['discard'](),_0x4b9aa1=!0x0);}}}return _0x4b9aa1;}),_0x4d8b8b['model']['document']['registerPostFixer'](_0x31fd6c=>{const _0x5a3d23=_0x4d8b8b['commands']['get']('redo');if(!_0x5a3d23||!_0x5a3d23['_createdBatches']['has'](_0x31fd6c['batch']))return!0x1;let _0x4471bd=!0x1;const _0x5e4d9b=_0x4d8b8b['plugins']['get']('Users')['me'],_0x3c42b5=_0x4d8b8b['model']['document']['differ']['getChanges'](),_0x3633c7=Array['from'](_0x4d8b8b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x11499c,data:_0x7545bc})=>{const {group:_0x1e5cac,subType:_0x35dc6b,authorId:_0xf2d09a}=_0x1117a8['_splitMarkerName'](_0x11499c);return'suggestion'==_0x1e5cac&&'tablePaste'==_0x35dc6b&&_0xf2d09a==_0x5e4d9b['id']&&!_0x7545bc['oldRange'];});for(const _0x36651f of _0x3c42b5){if('insert'!=_0x36651f['type']||'tableCellSuggestion'!=_0x36651f['name']||0x1!=_0x36651f['length'])continue;const _0x16d7ae=_0x31fd6c['createRange'](_0x36651f['position'],_0x36651f['position']['getShiftedBy'](0x1));if(!_0x3633c7['find'](({data:_0x1d5c23})=>_0x1d5c23['newRange']['isEqual'](_0x16d7ae))){for(const {name:_0xa5d8d7,data:_0x49915e}of _0x3633c7)if(_0x16d7ae['containsRange'](_0x49915e['newRange'])){_0x31fd6c['updateMarker'](_0xa5d8d7,{'range':_0x16d7ae}),_0x4471bd=!0x0;break;}}}return _0x4471bd;}),_0x4d8b8b['model']['document']['registerPostFixer'](_0x5eeb21=>{let _0x42d1b5=!0x1;const _0x3480eb=_0x4d8b8b['plugins']['get']('Users')['me'],_0x347eec=_0x1117a8['getSuggestions']()['filter'](_0x32269b=>_0x32269b['isInContent']&&_0x32269b['author']==_0x3480eb),_0x521439=new Set(),_0x3e5e33=new Set();for(const _0x34e889 of _0x347eec)if('tablePaste'==_0x34e889['subType'])for(const _0x56bf1b of _0x34e889['getMarkers']()){const _0x8439c2=_0x56bf1b['getRange']()['getContainedElement']();if(_0x8439c2){if(_0x8439c2['is']('element','tableCellSuggestion')&&Be(_0x8439c2)){_0x34e889['removeMarker'](_0x56bf1b['name']),_0x521439['add'](_0x8439c2),_0x42d1b5=!0x0;const _0x24adc5=_0x8439c2['nextSibling'],_0x49ecfa=_0x8439c2['previousSibling'],_0x45def9=_0x24adc5&&_0x24adc5['is']('element','tableCellSuggestion'),_0x108f02=_0x49ecfa&&_0x49ecfa['is']('element','tableCellSuggestion');_0x45def9&&!_0x521439['has'](_0x24adc5)&&_0x3e5e33['add'](_0x24adc5),_0x108f02&&!_0x521439['has'](_0x49ecfa)&&_0x3e5e33['add'](_0x49ecfa);}else _0x8439c2['is']('element','paragraph')&&_0x8439c2['isEmpty']&&(_0x34e889['removeMarker'](_0x56bf1b['name']),_0x42d1b5=!0x0);}}else{if('tablePasteCell'==_0x34e889['subType']){if(!_0x34e889['attributes']||!_0x34e889['attributes']['tablePasteChainId'])continue;const _0x679377=_0x34e889['attributes']['markerAttributes'];if(_0x679377&&Object['keys'](_0x679377)['length'])continue;const _0x4902bd=_0x34e889['attributes']['tablePasteChainId'];let _0x58fd8d=!0x0,_0x24f49f=!0x0;for(const _0xf0c5fd of _0x347eec)if(_0xf0c5fd['subType']&&_0xf0c5fd['subType']['startsWith']('tablePaste')){if(!_0xf0c5fd['attributes']['tablePasteChainId']){_0x24f49f=!0x1;break;}if(_0xf0c5fd['id']!=_0x34e889['id']&&_0xf0c5fd['attributes']['tablePasteChainId']==_0x4902bd){_0x58fd8d=!0x1;break;}}_0x24f49f&&_0x58fd8d&&(_0x34e889['removeMarkers'](),_0x42d1b5=!0x0);}}for(const _0x348f19 of _0x521439)_0x5eeb21['remove'](_0x348f19);for(const _0x1bbeda of _0x3e5e33)_0x5eeb21['unwrap'](_0x1bbeda);return _0x42d1b5;}),_0x4d8b8b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4fe602=>_0x397bfa(_0x4fe602),'converterPriority':'high'}),_0x4d8b8b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x10a357,_0x4eaeae)=>_0x4eaeae['options']['showSuggestionHighlights']?_0x397bfa(_0x10a357,!0x1):null,'converterPriority':'high'});const _0x3533e8=_0x4d8b8b['editing']['view'];this['listenTo'](_0x3533e8['document'],'clipboardOutput',(_0x3c248a,_0x2e0fe3)=>{const _0x44a0d1=[];for(const _0x1acb2d of _0x3533e8['createRangeIn'](_0x2e0fe3['content'])['getItems']())_0x1acb2d['is']('element','suggestion-td')&&_0x44a0d1['push'](_0x1acb2d);_0x3533e8['change'](_0x10cf4c=>{for(const _0x69a93f of _0x44a0d1)_0x10cf4c['move'](_0x10cf4c['createRangeIn'](_0x69a93f),_0x10cf4c['createPositionBefore'](_0x69a93f)),_0x10cf4c['remove'](_0x69a93f);});});}}function Be(_0x55fd83){if(_0x55fd83['isEmpty'])return!0x0;const _0x4e3ca7=_0x55fd83['getChild'](0x0);return _0x4e3ca7['is']('element','paragraph')&&_0x4e3ca7['isEmpty'];}function Oe(_0x2405bc,_0x1da035={},_0x5b88fe){for(const {isAnchor:_0x2e46d5,cellHeight:_0x297a43,cellWidth:_0x5acb68}of _0x5b88fe['createTableWalker'](_0x2405bc,{'includeAllSlots':!0x0,..._0x1da035}))if(!_0x2e46d5||0x1!=_0x297a43||0x1!=_0x5acb68)return!0x1;return!0x0;}class Rt extends _0x4f24f5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1a958e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a958e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1a958e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1a958e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a958e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1a958e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1a958e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1e7d98,_0x5880a4){const _0x36a966=this['editor']['plugins']['get']('TrackChangesEditing'),_0x475a03=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x49aced=_0x5880a4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x972775=_0x475a03['getColumnGroupElement'](_0x49aced);let _0x2dcf5d=_0x972775?_0x475a03['getTableColumnsWidths'](_0x972775):null,_0x606692=_0x49aced['getAttribute']('tableWidth')||null;const _0x50f3e6=_0x5880a4['tableWidth']||_0x606692,_0x1400de=_0x5880a4['columnWidths']||_0x2dcf5d,_0x6a41f3=this['editor']['plugins']['get']('Users')['me'];for(const _0x21b42b of _0x36a966['getSuggestions']()){const _0x168433=_0x21b42b['getContainedElement']();if('resizeTable'===_0x21b42b['subType']&&_0x168433===_0x49aced){_0x21b42b['author']!==_0x6a41f3&&_0x21b42b['discard']();const _0x38231d=_0x21b42b['data']['commandParams'];_0x606692=_0x38231d[0x0]['tableWidth'],_0x2dcf5d=_0x38231d[0x0]['columnWidths'];break;}}_0x1e7d98({'table':_0x49aced,'tableWidth':_0x50f3e6,'columnWidths':_0x1400de}),_0x36a966['markBlockFormat'](_0x49aced,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x606692,'columnWidths':_0x2dcf5d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x982ce2){if('formatBlock'!=_0x982ce2['type']&&'formatInline'!=_0x982ce2['type'])return;const {data:_0x2d792a}=_0x982ce2;if(_0x2d792a&&'resizeTable'===_0x2d792a['formatGroupId']){const _0x3ed204='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3ed204)};}}}class Tt extends _0x4f24f5{['afterInit'](){const _0x36be3d=this['editor'];_0x36be3d['plugins']['has']('Template')&&_0x36be3d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x4f24f5{['afterInit'](){const _0x2058fa=this['editor'];if(!_0x2058fa['commands']['get']('insertTableOfContents'))return;_0x2058fa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x599eb9=_0x2058fa['plugins']['get']('TrackChangesEditing'),_0xf2ba6e=_0x2058fa['locale'];_0x599eb9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2abe9d=>o(_0xf2ba6e,'ELEMENT_TABLE_OF_CONTENTS',_0x2abe9d));}}class Ut extends _0x4f24f5{['afterInit'](){const _0xc94ad0=this['editor'];if(!_0xc94ad0['plugins']['has']('Title'))return;const _0x5a0f83=_0xc94ad0['plugins']['get']('TrackChangesEditing');_0x5a0f83['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xc94ad0['locale'],'ELEMENT_TITLE')),_0xc94ad0['model']['document']['registerPostFixer'](_0x8e5ee4=>{let _0x5c5214=!0x1;const _0x1c7fc3=Array['from'](_0xc94ad0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c5a3e,data:_0x17a0cb}of _0x1c7fc3){const {group:_0x4248ef}=_0x5a0f83['_splitMarkerName'](_0x2c5a3e);if('suggestion'!==_0x4248ef||!_0x17a0cb['newRange'])continue;const _0x40e223=_0x17a0cb['newRange'],_0x53c274=_0x40e223['end']['nodeBefore'];if(!_0x53c274||!_0x53c274['is']('element','title-content'))continue;if(!_0x40e223['start']['isTouching'](_0x40e223['end']))continue;const _0x2800d1=_0xc94ad0['model']['schema']['getNearestSelectionRange'](_0x40e223['end'],'forward');if(_0x2800d1&&_0x2800d1['isCollapsed']){const _0x3c7490=_0x8e5ee4['createRange'](_0x40e223['start'],_0x2800d1['start']);_0x3c7490['isEqual'](_0x40e223)||(_0x8e5ee4['updateMarker'](_0x2c5a3e,{'range':_0x3c7490}),_0x5c5214=!0x0);}_0x5c5214||(_0x8e5ee4['removeMarker'](_0x2c5a3e),_0x5c5214=!0x0);}return _0x5c5214;});}}class Vt extends _0x4f24f5{['afterInit'](){const _0x520e0e=this['editor'],_0x1b78db=_0x520e0e['plugins']['get']('TrackChangesEditing');_0x520e0e['plugins']['has']('Uploadcare')&&(_0x1b78db['enableCommand']('uploadcare'),_0x520e0e['plugins']['has']('UploadcareImageEdit')&&(_0x1b78db['enableCommand']('uploadcareImageEdit'),_0x1b78db['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1b78db['descriptionFactory']['registerDescriptionCallback'](_0x3dd9f4=>{if('attribute'!=_0x3dd9f4['type'])return;const {data:_0x129015}=_0x3dd9f4;return _0x129015&&'uploadcareImageId'==_0x129015['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x4f24f5{['afterInit'](){const _0x6ac987=this['editor'],_0x531ad3=_0x6ac987['plugins']['get']('TrackChangesEditing');_0x6ac987['plugins']['has']('UndoEditing')&&(_0x531ad3['enableCommand']('undo'),_0x531ad3['enableCommand']('redo'));}}class Pt extends _0x4f24f5{static get['requires'](){return[Dt];}['afterInit'](){const _0x4c88bf=this['editor'];if(!_0x4c88bf['plugins']['has']('TableCaptionEditing'))return;_0x4c88bf['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x4f24f5{['tableProperties'];['tableCellProperties'];constructor(_0x49c995){super(_0x49c995),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x49c995['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 _0x41a148=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2848d2 of this['tableProperties'])_0x41a148['enableCommand'](_0x2848d2,(_0x266532,_0x578fc9)=>{const _0x47a85a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2848d2,[_0x47a85a],this['tableProperties'],'tableProperties',_0x266532,_0x578fc9);});_0x41a148['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x41a148['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41a148['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1dbab5,_0x32225a)=>this['handleDiscardAction'](this['tableProperties'],_0x1dbab5,_0x32225a)),_0x41a148['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x45916f of this['tableCellProperties'])this['editor']['commands']['get'](_0x45916f)&&_0x41a148['enableCommand'](_0x45916f,(_0x487009,_0x5dfcef)=>{const _0xc7aac5=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x45916f,_0xc7aac5,this['tableCellProperties'],'tableCellProperties',_0x487009,_0x5dfcef);});_0x41a148['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x41a148['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41a148['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x55683f,_0x3bc032)=>this['handleDiscardAction'](this['tableCellProperties'],_0x55683f,_0x3bc032)),_0x41a148['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x41a148['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x41a148['descriptionFactory']['registerDescriptionCallback'](_0x93ec23=>this['handleSuggestionDescription'](_0x93ec23)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3ecf8e,_0xf194ca,_0x34caf8,_0x2034ba,_0x46b421,_0x243a2b){const _0x2eb257=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x243a2b['batch'],()=>{for(const _0x2a8106 of _0xf194ca){if(this['_getSuggestion'](_0x2a8106,_0x2034ba))_0x46b421(_0x243a2b);else{const _0x8fc04={};for(const _0x502de3 of _0x34caf8){const _0x35c709=_0x2a8106['getAttribute'](_0x502de3);void 0x0!==_0x35c709&&(_0x8fc04[_0x502de3]=_0x35c709);}_0x46b421(_0x243a2b),_0x2eb257['markBlockFormat'](_0x2a8106,{'commandParams':[_0x8fc04]},[],_0x2034ba);}}});}['handleDiscardAction'](_0x5adc46,_0x448a0a,_0xbad961){const _0x23ad07=_0x448a0a[0x0]['start']['nodeAfter'],_0x132a29=_0xbad961['commandParams'][0x0];this['editor']['model']['change'](_0x5429fa=>{for(const _0x3a339f of _0x5adc46)void 0x0!==_0x132a29[_0x3a339f]?_0x5429fa['setAttribute'](_0x3a339f,_0x132a29[_0x3a339f],_0x23ad07):_0x5429fa['removeAttribute'](_0x3a339f,_0x23ad07);});}['handleSuggestionDescription'](_0x1c4b2c){if(_0x1c4b2c['data'])switch(_0x1c4b2c['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'](_0x19ee33,_0x3a3203){const _0x3c4837=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x10a16b of _0x3c4837['getSuggestions']({'skipNotAttached':!0x0})){const _0x4944cd=_0x10a16b['getContainedElement']();if(_0x10a16b['subType']===_0x3a3203&&_0x4944cd===_0x19ee33)return _0x10a16b;}return null;}['_registerTablePropertiesAttributes'](){const _0x3155cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13ea88=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1a9cf1 of _0x13ea88){const _0xc60c6d=_0x1a9cf1['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3155cf['descriptionFactory']['registerAttributeLabel'](_0x1a9cf1,o(this['editor']['locale'],'FORMAT_'+_0xc60c6d));}}}class Lt extends _0x4f24f5{['afterInit'](){const _0xa8b190=this['editor'];if(!_0xa8b190['plugins']['has']('LineHeight'))return;const _0x3d230a=_0xa8b190['plugins']['get']('TrackChangesEditing'),_0x24807b=_0xa8b190['locale'];_0x3d230a['enableDefaultAttributesIntegration']('lineHeight'),_0x3d230a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x24807b,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x4f24f5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x508c21,_0x3089c7,_0x182933,_0x5aa91f,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(_0x2a5f3a){super(_0x2a5f3a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1db13b,_0x2555c5,_0x156b6e,_0x432ac2)=>{this['_model']['change'](()=>{for(const _0x9bdce1 of[..._0x432ac2,..._0x156b6e])this['_model']['markers']['has'](_0x9bdce1)&&_0x2a5f3a['editing']['reconvertMarker'](_0x9bdce1);});}),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']=_0x2a5f3a['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2a5f3a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2a5f3a['config']['get']('trackChanges.trackFormatChanges'),_0x2a5f3a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2a5f3a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2a5f3a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4992db=this['editor'];_0x4992db['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1fab00,{writer:_0x5e17a6})=>{let _0x2e3a0e='suggestion:'+_0x1fab00['getAttribute']('suggestion-type')+':'+_0x1fab00['getAttribute']('id');return _0x1fab00['getAttribute']('marker-count')&&(_0x2e3a0e+=':'+_0x1fab00['getAttribute']('marker-count')),_0x5e17a6['createElement']('$marker',{'data-name':_0x2e3a0e});}}),_0x4992db['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4992db['model']['document']['registerPostFixer'](_0x3dedbb=>{let _0x4cf2dd=!0x1;const _0x511974=Array['from'](_0x4992db['model']['document']['differ']['getChangedMarkers']()),_0x2d3a89=new Set();for(const {name:_0xf51dc9,data:_0x5bffb3}of _0x511974){const {group:_0x3fca44,type:_0x16df0b,subType:_0x3401ac,id:_0x34c6b2}=this['_splitMarkerName'](_0xf51dc9);if('suggestion'!==_0x3fca44)continue;const _0x279a3f=_0x3401ac?'suggestion:'+_0x16df0b+':'+_0x3401ac+':'+_0x34c6b2:'suggestion:'+_0x16df0b+':'+_0x34c6b2,_0x151d9d=_0x4992db['model']['markers']['getMarkersGroup'](_0x279a3f),_0x1c70ec=_0x4992db['model']['markers']['get'](_0xf51dc9),_0x2a0139=this['_suggestions']['get'](_0x34c6b2);if(null!=_0x5bffb3['newRange']){'formatInline'==_0x16df0b&&(_0x4cf2dd=_0x4cf2dd||Wt(_0x5bffb3['newRange'],_0xf51dc9,_0x3dedbb,_0x4992db['model']['schema']));const _0x2ee5df='attribute'==_0x16df0b&&this['_isBlockAttribute'](_0x3401ac['split']('|')[0x0]),_0x2a8082='attribute'==_0x16df0b&&this['_isInlineAttribute'](_0x3401ac['split']('|')[0x0]);if(_0x5bffb3['newRange']['isCollapsed']||'$graveyard'==_0x5bffb3['newRange']['root']['rootName']||'formatBlock'==_0x16df0b&&!Qt(_0x5bffb3['newRange'])||_0x2ee5df&&!Qt(_0x5bffb3['newRange'])||_0x2a8082&&Xt(_0x5bffb3['newRange'])||'deletion'==_0x16df0b&&Xt(_0x5bffb3['newRange'])||_0x1c70ec&&Yt(_0x1c70ec,_0x151d9d))_0x3dedbb['removeMarker'](_0xf51dc9),_0x4cf2dd=!0x0;else{if(!_0x2a0139||!_0x2a0139['isInContent'])continue;if(_0x5bffb3['newRange']&&_0x5bffb3['oldRange']&&_0x5bffb3['newRange']['isEqual'](_0x5bffb3['oldRange']))continue;_0x2d3a89['add'](_0x2a0139);}}}return _0x2d3a89['size']>0x0&&(_0x4cf2dd=!!this['_joinWithAdjacentSuggestions'](_0x2d3a89)||_0x4cf2dd),_0x4cf2dd;}),_0x4992db['model']['document']['registerPostFixer'](_0xb4a1ce=>{let _0x1dd467=!0x1;for(const _0xde3b5a of _0x4992db['model']['document']['differ']['getChanges']())if('insert'==_0xde3b5a['type'])for(const _0x325cad of this['_suggestions']['values']()){if(_0x325cad['isMultiRange']||!_0x325cad['isInContent'])continue;const _0x759f8a='formatBlock'==_0x325cad['type'],_0x3fe604=this['_getAttributeKey'](_0x325cad),_0x86a23a=_0x3fe604&&this['_isBlockAttribute'](_0x3fe604);if(!_0x759f8a&&!_0x86a23a)continue;const _0x55248b=_0x325cad['getFirstRange']();if(_0x55248b['start']['parent']!=_0x55248b['end']['parent']&&!_0x55248b['end']['isAtEnd']){const _0x261527=_0x4992db['model']['createPositionAt'](_0x55248b['start']['nodeAfter'],'end'),_0x29ef66=_0x4992db['model']['createRange'](_0x55248b['start'],_0x261527);_0xb4a1ce['updateMarker'](_0x325cad['getFirstMarker'](),{'range':_0x29ef66}),_0x1dd467=!0x0;}}return _0x1dd467;}),_0x4992db['model']['document']['registerPostFixer'](_0x559347=>this['_processAttributeChanges'](_0x559347)),_0x4992db['model']['document']['registerPostFixer'](_0xc27edd=>!_0xc27edd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xc27edd)),_0x4992db['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4992db['model']['document']['on']('change:data',(_0xf9e97e,_0x507e5a)=>{if(!_0x507e5a['isLocal']||_0x507e5a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x39c622=_0x4992db['model']['document']['differ']['getChanges']();if(0x0==_0x39c622['length'])return;const _0x553bd0=[],_0x4172de=_0x39c622['filter'](_0x5de384=>'attribute'==_0x5de384['type']),_0x37e069=_0x39c622['filter'](_0x1ee0bf=>'insert'==_0x1ee0bf['type']&&'$text'!=_0x1ee0bf['name']);for(const _0xac9b78 of _0x4172de)this['_isRegisteredAttribute'](_0xac9b78['attributeKey'])&&_0x553bd0['push']({'key':_0xac9b78['attributeKey'],'newValue':_0xac9b78['attributeNewValue'],'oldValue':_0xac9b78['attributeOldValue'],'range':Zt(_0xac9b78['range'],_0x4992db['model'])});for(const _0xfbbc04 of _0x37e069){if('rename'!=_0xfbbc04['action']&&'refresh'!=_0xfbbc04['action'])continue;const _0x1cfca6=tn(_0xfbbc04['position']['nodeAfter'],_0x4992db['model']),_0x3ba01e=_0xfbbc04['before'];'rename'==_0xfbbc04['action']&&_0x553bd0['push']({'key':m,'newValue':_0xfbbc04['name'],'oldValue':_0x3ba01e['name'],'range':_0x1cfca6});for(const [_0x40d1c3,_0x1bb419]of _0x3ba01e['attributes']){if(!this['_isRegisteredAttribute'](_0x40d1c3))continue;const _0x53022a=_0xfbbc04['attributes']['get'](_0x40d1c3);_0x1bb419!==_0x53022a&&_0x553bd0['push']({'key':_0x40d1c3,'newValue':_0x53022a,'oldValue':_0x1bb419,'range':_0x1cfca6});}for(const [_0x5c5a7c,_0x1b271a]of _0xfbbc04['attributes'])this['_isRegisteredAttribute'](_0x5c5a7c)&&(_0x3ba01e['attributes']['has'](_0x5c5a7c)||_0x553bd0['push']({'key':_0x5c5a7c,'newValue':_0x1b271a,'oldValue':null,'range':_0x1cfca6}));}0x0!=_0x553bd0['length']&&_0x4992db['model']['enqueueChange'](_0x507e5a,_0x4a29ca=>{const _0x4ff09b=_0x58b4bb();for(const {range:_0x120c34,key:_0x4ae8b1,oldValue:_0x53ccbc,newValue:_0x184a06}of _0x553bd0)this['markAttributeChange'](_0x120c34,_0x4ae8b1,_0x53ccbc,_0x184a06,{'groupId':_0x4ff09b});this['_reduceExistingSuggestions'](_0x4a29ca,_0x553bd0);});},{'priority':'lowest'}),_0x4992db['model']['markers']['on']('update:suggestion',(_0x229839,_0x54df84,_0x27646e)=>{if(null==_0x27646e){const {id:_0x465ca8}=this['_splitMarkerName'](_0x54df84['name']),_0x7815fa=this['_suggestions']['get'](_0x465ca8);_0x7815fa&&_0x7815fa['addMarkerName'](_0x54df84['name']);}}),_0x4992db['model']['document']['on']('change:data',()=>{const _0x1c46dc=Array['from'](_0x4992db['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4e4c7c=>'suggestion'===this['_splitMarkerName'](_0x4e4c7c['name'])['group']);if(0x0===_0x1c46dc['length'])return;_0x1c46dc['sort']((_0x4379a3,_0x20e4a3)=>{const _0x2d016d=_0x4379a3['data']['oldRange'],_0xa04f54=_0x20e4a3['data']['oldRange'];return null===_0x2d016d&&null===_0xa04f54?0x0:null===_0x2d016d&&null!==_0xa04f54?-0x1:null!==_0x2d016d&&null===_0xa04f54?0x1:_0x2d016d['start']['isBefore'](_0xa04f54['start'])?-0x1:0x1;});const _0x8ea80a=new Set(),_0x5bcbd1=new Set();for(const {name:_0x39e770,data:_0x34f9a5}of _0x1c46dc){const {id:_0x5b96bf}=this['_splitMarkerName'](_0x39e770);if(null===_0x34f9a5['oldRange']){const _0x4439fe=this['_handleNewSuggestionMarker'](_0x39e770);_0x5bcbd1['add'](_0x4439fe);}else{const _0x480e36=this['_suggestions']['get'](_0x5b96bf);null!==_0x34f9a5['newRange']||_0x480e36['isInContent']?(_0x8ea80a['add'](_0x480e36['head']),_0x5bcbd1['add'](_0x480e36)):this['_removeSuggestion'](_0x480e36);}}_0x5bcbd1['size']>0x0&&this['_refreshSuggestionsChain'](_0x5bcbd1);for(const _0x5efc44 of _0x8ea80a)this['fire']('suggestionChanged',_0x5efc44);}),_0x4992db['model']['on']('applyOperation',(_0xcaac8,_0x4d45fe)=>{const _0x5ba0a9=_0x4d45fe[0x0];if(!this['_suggestions']['size'])return;if(!_0x5ba0a9['isDocumentOperation'])return;if(_0x5ba0a9['batch']['isUndo']||!_0x5ba0a9['batch']['isLocal'])return;let _0x2201b9,_0x2a9ab3;switch(_0x5ba0a9['type']){case'insert':_0x2201b9=_0x4992db['model']['createPositionAt'](_0x5ba0a9['position']),_0x2a9ab3=_0x2201b9['getShiftedBy'](_0x5ba0a9['howMany']);break;case'split':_0x2201b9=_0x4992db['model']['createPositionAt'](_0x5ba0a9['splitPosition']),_0x2a9ab3=_0x4992db['model']['createPositionAt'](_0x5ba0a9['moveTargetPosition']);break;case'move':_0x2201b9=_0x4992db['model']['createPositionAt'](_0x5ba0a9['targetPosition']),_0x2a9ab3=_0x2201b9['getShiftedBy'](_0x5ba0a9['howMany']);break;default:return;}const _0xcaef0a=_0x4992db['model']['createRange'](_0x2201b9,_0x2a9ab3);_0x4992db['model']['change'](()=>{for(const {suggestion:_0xfd6d30,meta:_0x4fe652}of this['_findSuggestions'](_0xcaef0a)){if(_0xfd6d30['isMultiRange'])continue;if('formatInline'==_0xfd6d30['type'])continue;const _0x48168e=this['_getAttributeKey'](_0xfd6d30);if(_0x48168e&&this['_isBlockAttribute'](_0x48168e)&&'split'!=_0x5ba0a9['type'])continue;const _0x305eac=_0xfd6d30['data']&&_0xfd6d30['data']['multipleBlocks'];('formatBlock'!=_0xfd6d30['type']||'split'==_0x5ba0a9['type']&&!_0x305eac)&&(_0x4fe652['containsRangeInObject']||'insertion'==_0xfd6d30['type']&&_0x4fe652['isOwn']||_0xfd6d30['getFirstRange']()['containsRange'](_0xcaef0a)&&this['_breakSuggestionMarker'](_0xfd6d30,_0x2201b9,_0x2a9ab3));}});},{'priority':'lowest'}),_0x4992db['model']['on']('deleteContent',(_0x3fa1da,_0x160b0a)=>{const _0x275327=_0x160b0a[0x0],_0x1886a8=_0x160b0a[0x1];if(_0x1886a8&&_0x1886a8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x275327['isCollapsed'])return;const _0x1eded5=_0x4992db['model']['schema'],{start:_0x1f1673,end:_0x258c65}=_0x275327['getFirstRange'](),_0x4a3947=_0x1f1673['nodeAfter']&&_0x1eded5['isLimit'](_0x1f1673['nodeAfter'])?null:_0x1eded5['getNearestSelectionRange'](_0x1f1673,'forward'),_0x2a427f=_0x258c65['nodeBefore']&&_0x1eded5['isLimit'](_0x258c65['nodeBefore'])?null:_0x1eded5['getNearestSelectionRange'](_0x258c65,'backward'),_0x108ecc=_0x4992db['model']['createRange'](_0x4a3947?_0x4a3947['start']:_0x1f1673,_0x2a427f?_0x2a427f['end']:_0x258c65);_0x4992db['model']['change'](_0x270c92=>{this['markDeletion'](_0x108ecc);const _0x297ddf=_0x4992db['model']['schema']['getNearestSelectionRange'](_0x108ecc['start']);_0x275327['is']('documentSelection')?_0x270c92['setSelection'](_0x297ddf):_0x275327['setTo'](_0x297ddf);}),_0x3fa1da['stop']();},{'priority':_0x3377f6['normal']+0xa}),_0x4992db['model']['on']('insertContent',(_0x5977f1,_0x2a6146)=>{const _0x5a945e=_0x2a6146[_0x2a6146['length']-0x1];_0x5a945e&&_0x5a945e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4992db['model']['change'](()=>{let _0x263110=_0x4992db['model']['insertContent'](_0x2a6146[0x0],_0x2a6146[0x1],_0x2a6146[0x2],{'forceDefaultExecution':!0x0});if(!_0x263110)return;_0x5977f1['return']=_0x263110['clone']();const _0x5b42d8=_0x263110['end']['nodeBefore'],_0x53d213=_0x4992db['model']['schema'];_0x5b42d8&&_0x53d213['isBlock'](_0x5b42d8)&&!_0x53d213['isObject'](_0x5b42d8)&&(_0x263110=_0x4992db['model']['createRange'](_0x263110['start'],_0x4992db['model']['createPositionAt'](_0x5b42d8,'end'))),this['markInsertion'](_0x263110);}),_0x5977f1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x45485b=new O(_0x4992db,this['_suggestions']);_0x4992db['commands']['add']('acceptSuggestion',_0x45485b),this['enableCommand']('acceptSuggestion');const _0x1f65ac=new x(_0x4992db,this['_suggestions']);_0x4992db['commands']['add']('discardSuggestion',_0x1f65ac),this['enableCommand']('discardSuggestion'),_0x4992db['commands']['add']('acceptAllSuggestions',new M(_0x4992db,_0x45485b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4992db['commands']['add']('discardAllSuggestions',new M(_0x4992db,_0x1f65ac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4992db['commands']['add']('acceptSelectedSuggestions',new R(_0x4992db,_0x45485b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4992db['commands']['add']('discardSelectedSuggestions',new R(_0x4992db,_0x1f65ac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x530590=_0x4992db['plugins']['get']('CommentsRepository');this['listenTo'](_0x530590,'addComment',(_0x14544f,{threadId:_0x4884c0})=>{const _0x1e5001=this['_suggestions']['get'](_0x4884c0);_0x1e5001&&_0x1e5001['commentThread']&&0x1===_0x1e5001['commentThread']['length']&&this['_updateSuggestionData'](_0x4884c0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x530590,'removeComment',(_0x22d25a,{threadId:_0x8cdb4c})=>{const _0x372017=this['_suggestions']['get'](_0x8cdb4c);_0x372017&&_0x372017['commentThread']&&!_0x372017['commentThread']['length']&&this['_updateSuggestionData'](_0x8cdb4c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3a2dca){const _0x436dcb=_0x519143([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]),_0xd20468=0x3d8d0df,_0x4c3a20=0x3df5677^_0xd20468,_0xd1bbd=window[_0x519143([0x44,0x61,0x74,0x65])][_0x519143([0x6e,0x6f,0x77])](),_0x5c6bc2=_0x3a2dca[_0x519143([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc132ee=new window[(_0x519143([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f85a2=>{_0x5c6bc2[_0x519143([0x6f,0x6e,0x63,0x65])](_0x519143([0x72,0x65,0x61,0x64,0x79]),_0x2f85a2);}),_0x171b13={[_0x519143([0x6b,0x74,0x79])]:_0x519143([0x45,0x43]),[_0x519143([0x75,0x73,0x65])]:_0x519143([0x73,0x69,0x67]),[_0x519143([0x63,0x72,0x76])]:_0x519143([0x50,0x2d,0x32,0x35,0x36]),[_0x519143([0x78])]:_0x519143([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]),[_0x519143([0x79])]:_0x519143([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]),[_0x519143([0x61,0x6c,0x67])]:_0x519143([0x45,0x53,0x32,0x35,0x36])},_0x2d903c=_0x5c6bc2[_0x519143([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x519143([0x67,0x65,0x74])](_0x519143([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a5bf8(){let _0x996614,_0x56c5fa=null,_0xd9cda0=null;try{if(_0x2d903c==_0x519143([0x47,0x50,0x4c]))return _0x519143([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x996614=_0x47f4de(),!_0x996614)return _0x519143([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x996614[_0x519143([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd9cda0=_0x331e45(_0x996614[_0x519143([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x996614[_0x519143([0x6a,0x74,0x69])])),await _0x17e454()?_0x16f328()?_0x179d85()?_0x519143([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x364911()?(_0x996614[_0x519143([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x519143([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x56c5fa=_0x30c428(_0x519143([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa2211b()):_0x519143([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x519143([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x519143([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x519143([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x179d85(){const _0xe01472=[_0x519143([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x519143([0x74,0x72,0x69,0x61,0x6c])][_0x519143([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x996614[_0x519143([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd1bbd/0x3e8:0xe10*_0x4c3a20;return _0x996614[_0x519143([0x65,0x78,0x70])]<_0xe01472;}function _0x16f328(){const _0x1ed0b1=_0x996614[_0x519143([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1ed0b1)return!0x1;if(_0x1ed0b1[_0x519143([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x519143([0x2a])))return!0x0;if(_0x1ed0b1[_0x519143([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x519143([0x54,0x43])))return!0x0;if(_0x1ed0b1[_0x519143([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x519143([0x52,0x54,0x43]))){if(_0x543d65())return!0x0;if(_0x4a3c39()||_0xb8d787())return!0x0;}return!0x1;}function _0x364911(){const _0x1e276d=_0x996614[_0x519143([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e276d||0x0==_0x1e276d[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x24334a}=new URL(window[_0x519143([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1e276d[_0x519143([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24334a))return!0x0;const _0x56c5cb=_0x24334a[_0x519143([0x73,0x70,0x6c,0x69,0x74])](_0x519143([0x2e]));return _0x1e276d[_0x519143([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39f5ab=>_0x39f5ab[_0x519143([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x519143([0x2a])))[_0x519143([0x6d,0x61,0x70])](_0xaae5a0=>_0xaae5a0[_0x519143([0x73,0x70,0x6c,0x69,0x74])](_0x519143([0x2e])))[_0x519143([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x95aff8=>_0x95aff8[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x56c5cb[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x519143([0x6d,0x61,0x70])](_0x3d51fa=>Array(_0x56c5cb[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d51fa[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x519143([0x66,0x69,0x6c,0x6c])](_0x3d51fa[0x0]===_0x519143([0x2a])?_0x519143([0x2a]):'')[_0x519143([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d51fa))[_0x519143([0x73,0x6f,0x6d,0x65])](_0x451cca=>_0x56c5cb[_0x519143([0x65,0x76,0x65,0x72,0x79])]((_0x4f376b,_0x463297)=>_0x451cca[_0x463297]===_0x4f376b||_0x451cca[_0x463297]===_0x519143([0x2a])));}function _0xa2211b(){return _0x56c5fa&&_0xd9cda0?new window[(_0x519143([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19f473,_0x3111f1)=>{_0x56c5fa[_0x519143([0x74,0x68,0x65,0x6e])](_0x19f473,_0x3111f1),_0xd9cda0[_0x519143([0x74,0x68,0x65,0x6e])](_0x4415ce=>{_0x4415ce!=_0x519143([0x56,0x61,0x6c,0x69,0x64])&&_0x19f473(_0x4415ce);},_0x3111f1);}):_0x56c5fa||_0xd9cda0||_0x519143([0x56,0x61,0x6c,0x69,0x64]);}}function _0x331e45(_0x5a5f01,_0x289eb1){return new window[(_0x519143([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x538a0d=>{if(_0x4b2e87())return _0x538a0d(_0x519143([0x56,0x61,0x6c,0x69,0x64]));_0x3171f4(),_0x5c6bc2[_0x519143([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x519143([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f83a9=!0x1;const _0xa8a5f1=_0x58b4bb();function _0x1a6093(_0x193218){return!!_0x193218&&(typeof _0x193218===_0x519143([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x193218===_0x519143([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x193218[_0x519143([0x74,0x68,0x65,0x6e])]===_0x519143([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x193218[_0x519143([0x63,0x61,0x74,0x63,0x68])]===_0x519143([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5750bf(_0x40c505){_0x437d7d(_0x40c505)[_0x519143([0x74,0x68,0x65,0x6e])](_0x3eed39=>{if(!_0x3eed39||_0x3eed39[_0x519143([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x519143([0x6f,0x6b]))return _0x519143([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57d3f5(_0x246c4c(_0xa8a5f1+_0x289eb1))!=_0x3eed39[_0x519143([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x519143([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x519143([0x56,0x61,0x6c,0x69,0x64]);})[_0x519143([0x74,0x68,0x65,0x6e])](_0x27bff1=>(_0xee7d82(),_0x27bff1),()=>{const _0x282809=_0x2a549b();return null==_0x282809?(_0xee7d82(),_0x519143([0x56,0x61,0x6c,0x69,0x64])):_0x519143(_0xd1bbd-_0x282809>(0x27d454df^_0xd20468)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x519143([0x74,0x68,0x65,0x6e])](_0x538a0d)[_0x519143([0x63,0x61,0x74,0x63,0x68])](()=>{_0x538a0d(_0x519143([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36e15e=0x3ee3e5f^_0xd20468;function _0xee7d82(){const _0xeadfd7=_0x519143([0x6c,0x6c,0x63,0x74,0x2d])+_0x57d3f5(_0x246c4c(_0x5a5f01)),_0x16a579=_0x185ca5(_0x57d3f5(window[_0x519143([0x4d,0x61,0x74,0x68])][_0x519143([0x63,0x65,0x69,0x6c])](_0xd1bbd/_0x36e15e)));window[_0x519143([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x519143([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xeadfd7,_0x16a579);}function _0x2a549b(){const _0x19c496=_0x519143([0x6c,0x6c,0x63,0x74,0x2d])+_0x57d3f5(_0x246c4c(_0x5a5f01)),_0x50e9e7=window[_0x519143([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x519143([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19c496);return _0x50e9e7?window[_0x519143([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x185ca5(_0x50e9e7),0x10)*_0x36e15e:null;}function _0x437d7d(_0x5c43ab){return new window[(_0x519143([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x567578,_0x14c885)=>{_0x5c43ab[_0x519143([0x74,0x68,0x65,0x6e])](_0x567578,_0x14c885),window[_0x519143([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14c885,0x3d9041f^_0xd20468);});}}_0x5c6bc2[_0x519143([0x6f,0x6e])](_0x519143([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4415e6,_0x57ed62)=>{if(_0x57ed62[0x0]!=_0x5a5f01)return _0x538a0d(_0x519143([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57ed62[0x1]={..._0x57ed62[0x1],[_0x519143([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa8a5f1};},{[_0x519143([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x519143([0x68,0x69,0x67,0x68])}),_0x5c6bc2[_0x519143([0x6f,0x6e])](_0x519143([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4db177=>{_0x1a6093(_0x4db177[_0x519143([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f83a9=!0x0,_0x5750bf(_0x4db177[_0x519143([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x519143([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x519143([0x6c,0x6f,0x77])}),_0xc132ee[_0x519143([0x74,0x68,0x65,0x6e])](()=>{_0x3f83a9||_0x538a0d(_0x519143([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b2e87(){return _0x5c6bc2[_0x519143([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x519143([0x76,0x69,0x65,0x77])][_0x519143([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x519143([0x61,0x75,0x74,0x6f]);}function _0x3171f4(){_0x5c6bc2[_0x519143([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x519143([0x76,0x69,0x65,0x77])][_0x519143([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x519143([0x61,0x75,0x74,0x6f]);}}function _0x30c428(_0x4735f8){const _0xd0b132=[new window[(_0x519143([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58b302=>setTimeout(_0x58b302,0x3d1ee13^_0xd20468)),_0xc132ee[_0x519143([0x74,0x68,0x65,0x6e])](()=>new window[(_0x519143([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4109f6=>{let _0x4a38b9=0x0;_0x5c6bc2[_0x519143([0x6d,0x6f,0x64,0x65,0x6c])][_0x519143([0x6f,0x6e])](_0x519143([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x521630,_0x55f456)=>{_0x55f456[0x0][_0x519143([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a38b9++,_0x4a38b9==(0x3d8d537^_0xd20468)&&(_0x4109f6(),_0x521630[_0x519143([0x6f,0x66,0x66])]());});}))];return window[_0x519143([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x519143([0x72,0x61,0x63,0x65])](_0xd0b132)[_0x519143([0x74,0x68,0x65,0x6e])](()=>_0x4735f8);}async function _0x10b646(){await _0xc132ee,_0x5c6bc2[_0x519143([0x6d,0x6f,0x64,0x65,0x6c])][_0x519143([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x206076,_0x5c6bc2[_0x519143([0x6d,0x6f,0x64,0x65,0x6c])][_0x519143([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x206076,_0x5c6bc2[_0x519143([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x519143([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x543d65(){return _0x5eef91(_0x519143([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x383afd(_0x519143([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x519143([0x73,0x74,0x61,0x74,0x65])]==_0x519143([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4a3c39(){return _0x5eef91(_0x519143([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 _0xb8d787(){return _0x5eef91(_0x519143([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x24a6d6(_0x1a8ebb){const _0x12604d=_0x59776d();_0x5c6bc2[_0x12604d]=_0x519143([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a8ebb,_0x1a8ebb!=_0x519143([0x56,0x61,0x6c,0x69,0x64])&&_0x10b646();}function _0x59776d(){const _0x5d042e=window[_0x519143([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x519143([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x519143([0x6e,0x6f,0x77])]())[_0x519143([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x519143([0x2e]),'');let _0x25333a=_0x519143([0x52]);for(let _0x59f29c=0x0;_0x59f29c<_0x5d042e[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59f29c+=0x2){let _0x1970c9=window[_0x519143([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d042e[_0x519143([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59f29c,_0x59f29c+0x2));_0x1970c9>=_0x436dcb[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1970c9-=_0x436dcb[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x25333a+=_0x436dcb[_0x1970c9];}return _0x25333a;}function _0x47f4de(){const _0x437529=_0x2d903c[_0x519143([0x73,0x70,0x6c,0x69,0x74])](_0x519143([0x2e]));if(0x3!=_0x437529[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x21ccc2(_0x437529[0x1]);function _0x21ccc2(_0x213d60){const _0x2dd6fe=_0x45fffd(_0x213d60);return _0x2dd6fe&&_0x535c61()?_0x2dd6fe:null;function _0x535c61(){const _0x5ed92c=_0x2dd6fe[_0x519143([0x6a,0x74,0x69])],_0x5cc06f=window[_0x519143([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ed92c[_0x519143([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ed92c[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5bf6ea={..._0x2dd6fe,[_0x519143([0x6a,0x74,0x69])]:_0x5ed92c[_0x519143([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ed92c[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5bf6ea[_0x519143([0x76,0x63])],_0x246c4c(_0x5bf6ea)==_0x5cc06f;}}}async function _0x17e454(){let _0x4b8c38=!0x0;try{const _0x4295b6=_0x2d903c[_0x519143([0x73,0x70,0x6c,0x69,0x74])](_0x519143([0x2e])),[_0x4ed2d1,_0x5ab306,_0x15e1ad]=_0x4295b6;return _0x3ce506(_0x4ed2d1),await _0x101f4a(_0x4ed2d1,_0x5ab306,_0x15e1ad),_0x4b8c38;}catch{return!0x1;}function _0x3ce506(_0x416951){const _0x4252b4=_0x45fffd(_0x416951);_0x4252b4&&_0x4252b4[_0x519143([0x61,0x6c,0x67])]==_0x519143([0x45,0x53,0x32,0x35,0x36])||(_0x4b8c38=!0x1);}async function _0x101f4a(_0x1378a5,_0x435018,_0xbe7b1f){const _0x37a89b=window[_0x519143([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x519143([0x66,0x72,0x6f,0x6d])](_0x50444d(_0xbe7b1f),_0xdcb55d=>_0xdcb55d[_0x519143([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1a7887=new window[(_0x519143([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x519143([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1378a5+_0x519143([0x2e])+_0x435018),_0x14f86f=window[_0x519143([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x519143([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14f86f)return;const _0x4d136f=await _0x14f86f[_0x519143([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x519143([0x6a,0x77,0x6b]),_0x171b13,{[_0x519143([0x6e,0x61,0x6d,0x65])]:_0x519143([0x45,0x43,0x44,0x53,0x41]),[_0x519143([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x519143([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x519143([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14f86f[_0x519143([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x519143([0x6e,0x61,0x6d,0x65])]:_0x519143([0x45,0x43,0x44,0x53,0x41]),[_0x519143([0x68,0x61,0x73,0x68])]:{[_0x519143([0x6e,0x61,0x6d,0x65])]:_0x519143([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d136f,_0x37a89b,_0x1a7887)||(_0x4b8c38=!0x1);}}function _0x45fffd(_0x182c39){return _0x182c39[_0x519143([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x519143([0x65,0x79]))?JSON[_0x519143([0x70,0x61,0x72,0x73,0x65])](_0x50444d(_0x182c39)):null;}function _0x50444d(_0x8000cb){return window[_0x519143([0x61,0x74,0x6f,0x62])](_0x8000cb[_0x519143([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x519143([0x2b]))[_0x519143([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x519143([0x2f])));}function _0x246c4c(_0x38257d){let _0x4bb344=0x1505;function _0x3cc484(_0x5dbea8){for(let _0x6fd86e=0x0;_0x6fd86e<_0x5dbea8[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6fd86e++){const _0x4bf99f=_0x5dbea8[_0x519143([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x6fd86e);_0x4bb344=(_0x4bb344<<0x5)+_0x4bb344+_0x4bf99f,_0x4bb344&=_0x4bb344;}}function _0x51b61f(_0x45614a){Array[_0x519143([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x45614a)?_0x45614a[_0x519143([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x51b61f):_0x45614a&&typeof _0x45614a==_0x519143([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x519143([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x45614a)[_0x519143([0x73,0x6f,0x72,0x74])]()[_0x519143([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x57d30d,_0x480d9f])=>{_0x3cc484(_0x57d30d),_0x51b61f(_0x480d9f);}):_0x3cc484(window[_0x519143([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x45614a));}return _0x51b61f(_0x38257d),_0x4bb344>>>0x0;}function _0x57d3f5(_0x593662){return _0x593662[_0x519143([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x519143([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x519143([0x30]));}function _0x185ca5(_0x1cf8f1){return _0x1cf8f1[_0x519143([0x73,0x70,0x6c,0x69,0x74])]('')[_0x519143([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x519143([0x6a,0x6f,0x69,0x6e])]('');}function _0x5eef91(_0x471113){return _0x5c6bc2[_0x519143([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x519143([0x68,0x61,0x73])](_0x471113);}function _0x383afd(_0x5cc5cf){return _0x5c6bc2[_0x519143([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x519143([0x67,0x65,0x74])](_0x5cc5cf);}function _0x206076(){}function _0x519143(_0x4695d5){return _0x4695d5['map'](_0x5c65b0=>String['fromCharCode'](_0x5c65b0))['join']('');}_0x24a6d6(await _0x4a5bf8());}(this);}set['adapter'](_0x287319){if(this['_adapter'])throw new _0x4323ac('track-changes-adapter-already-set',this);this['_adapter']=_0x287319;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x297d8e=!0x1,toJSON:_0x480579=!0x1}={}){const _0x48230f=[];for(const _0x4f7f21 of this['_suggestions']['values']())_0x297d8e&&!_0x4f7f21['isInContent']||_0x48230f['push'](_0x4f7f21);return _0x480579?_0x48230f['map'](_0x44de5c=>_0x44de5c['toJSON']()):_0x48230f;}['getSuggestion'](_0x72562){const _0x5eeb5f=this['_suggestions']['get'](_0x72562);if(!_0x5eeb5f)throw new _0x4323ac('track-changes-suggestion-not-found',this);return _0x5eeb5f;}['hasSuggestion'](_0x5077a1){return this['_suggestions']['has'](_0x5077a1);}['addSuggestionData'](_0x1875ec){const {authorId:_0x462f89,id:_0x39ab4a,originalSuggestionId:_0x2e6107,attributes:_0x4d1579}=_0x1875ec,[_0x2df1f0,_0xc49ab5]=_0x1875ec['type']['split'](':'),_0x21fbb6=this['_suggestions']['get'](_0x39ab4a)||this['_createSuggestion'](_0x2df1f0,_0xc49ab5,_0x39ab4a,_0x462f89,_0x4d1579,_0x2e6107);if(this['_addThreadToSuggestion'](_0x21fbb6),this['_checkSuggestionCorrectness'](_0x21fbb6,_0x2df1f0,_0xc49ab5||null,_0x462f89),_0x21fbb6['createdAt']=_0x1875ec['createdAt'],_0x21fbb6['_isDataLoaded']=!0x0,_0x4d1579&&_0x4d1579['@external']){const _0x362afc=_0x4d1579['@external'],_0x26bea6=this['_getExternalAuthor'](_0x362afc['authorName']);_0x21fbb6['authoredAt']=_0x362afc['createdAt'],_0x21fbb6['author']=_0x26bea6,_0x21fbb6['isExternal']=!0x0;}else _0x21fbb6['authoredAt']=_0x1875ec['createdAt'];switch(_0x1875ec['data']&&(_0x21fbb6['data']=_0x1875ec['data']),_0x1875ec['attributes']&&(_0x21fbb6['attributes']=_0x1875ec['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x21fbb6['_saved']=!0x0),this['_suggestionState']['get'](_0x21fbb6)){case'notReady':this['_suggestionState']['set'](_0x21fbb6,'dataReady');break;case'markerReady':_0x21fbb6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x21fbb6])),this['_refreshSuggestionsChain'](new Set([_0x21fbb6])),this['_suggestionState']['set'](_0x21fbb6,'ready'),this['fire']('suggestionLoaded',_0x21fbb6)):this['_suggestionState']['set'](_0x21fbb6,'removed');}return _0x21fbb6;}['acceptSuggestion'](_0x2bacc0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x38f305 of _0x2bacc0['getAllAdjacentSuggestions']())_0x38f305['accept']();});});}['discardSuggestion'](_0x5037d7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4f5622 of _0x5037d7['getAllAdjacentSuggestions']())_0x4f5622['discard']();});});}['enableCommand'](_0x228259,_0x9e5301){const _0x5271ee=this['editor']['commands']['get'](_0x228259);if(!_0x5271ee)throw new _0x4323ac('track-changes-command-not-found',this,{'commandName':_0x228259});if(this['_enabledCommands']['has'](_0x5271ee))throw new _0x4323ac('track-changes-enable-command-twice',this,{'commandName':_0x228259});this['_enabledCommands']['add'](_0x5271ee),_0x9e5301&&_0x5271ee['on']('execute',(_0x4ea9f8,_0x11de65)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x11de65['length']>0x0&&_0x11de65[_0x11de65['length']-0x1]&&_0x11de65[_0x11de65['length']-0x1]['forceDefaultExecution']?_0x11de65['pop']():(_0x4ea9f8['return']=_0x9e5301((..._0x2b2ecf)=>_0x5271ee['execute'](..._0x2b2ecf,{'forceDefaultExecution':!0x0}),..._0x11de65),_0x4ea9f8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x55b084){let _0x5c5605,_0x42b004;const _0x53efd1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5c5605=_0x55b084();}catch(_0x10911e){_0x42b004=_0x10911e;}return _0x53efd1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x42b004&&_0x4323ac['rethrowUnexpectedError'](_0x42b004,this),_0x5c5605;}['markInsertion'](_0x137a04,_0x388f60=null,_0x5479df={}){if(_0x137a04['isCollapsed'])return null;const _0x11de64=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5479df['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xce9707,meta:_0x403d26}of this['_findSuggestions'](_0x137a04,'insertion'))if(_0x403d26['isOwn']){if(!_0x403d26['isNextTo']){if(_0x403d26['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0xce9707,_0x5479df))continue;return _0xce9707;}if(sn(_0xce9707,_0x5479df))return _0xce9707;this['_breakSuggestionMarker'](_0xce9707,_0x137a04['start'],_0x137a04['end']);break;}if(_0x388f60==_0xce9707['subType']&&sn(_0xce9707,_0x5479df)){const _0x29e153=_0xce9707['getFirstRange']();return _0x29e153['start']['isEqual'](_0x137a04['end'])?this['_setSuggestionRange'](_0xce9707,this['_model']['createRange'](_0x137a04['start'],_0x29e153['end'])):this['_setSuggestionRange'](_0xce9707,this['_model']['createRange'](_0x29e153['start'],_0x137a04['end'])),_0xce9707;}}const _0x3bff6a=_0x58b4bb(),_0x460b1a=_0x11de64['id'],_0x11745f=_0x388f60?'insertion:'+_0x388f60:'insertion',_0x37fd09=this['_setSuggestionData']({'id':_0x3bff6a,'type':_0x11745f,'createdAt':new Date(),'authorId':_0x460b1a,'attributes':_0x5479df});return this['_addSuggestionMarker'](_0x11745f,_0x3bff6a,_0x460b1a,_0x137a04),_0x37fd09;}['markMultiRangeInsertion'](_0x1bdb22,_0x1a7d1b='multi',_0x545959={}){const _0x486e56=this['editor']['plugins']['get']('Users')['me'],_0x5940e0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1a7d1b,'join');this['_trackingSessionId']&&(_0x545959['trackingSessionId']=this['_trackingSessionId']);for(const _0x223317 of this['getSuggestions']())if(_0x223317['author']['id']==_0x486e56['id']&&'insertion'==_0x223317['type']&&_0x223317['subType']==_0x1a7d1b&&sn(_0x223317,_0x545959)&&(_0x5940e0(_0x223317['getRanges'](),_0x1bdb22)||_0x5940e0(_0x1bdb22,_0x223317['getRanges']()))){for(const _0x29b9b4 of _0x1bdb22)_0x223317['addRange'](_0x29b9b4);return _0x223317;}for(const {suggestion:_0x1e2720,meta:_0x19a891}of this['_findSuggestions'](_0x1bdb22,'insertion')){if(!_0x19a891['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x19a891['containsRangeInObject'])continue;if(!sn(_0x1e2720,_0x545959))continue;let _0x3fad5f=!0x0;for(const _0x54c0cb of _0x1e2720['getRanges']())for(const _0x2112bf of _0x1bdb22)if(!_0x54c0cb['containsRange'](_0x2112bf)){_0x3fad5f=!0x1;break;}if(_0x3fad5f)return _0x1e2720;}const _0x13e3aa=_0x58b4bb(),_0x173bc6=_0x486e56['id'],_0x55da8b='insertion:'+_0x1a7d1b,_0x4e7100=this['_setSuggestionData']({'id':_0x13e3aa,'type':_0x55da8b,'createdAt':new Date(),'authorId':_0x173bc6,'attributes':_0x545959});for(const _0x1a1453 of _0x1bdb22)this['_addSuggestionMarker'](_0x55da8b,_0x13e3aa,_0x173bc6,_0x1a1453,T['getMultiRangeId']());return _0x4e7100;}['markInlineFormat'](_0x3276e2,_0x499f96,_0x6a0fb3=null,_0x14cf01={}){if(_0x6a0fb3=_0x6a0fb3||Ht(_0x499f96),_0x3276e2['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x14cf01['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3014d8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6a0fb3,'accept');return this['forceDefaultExecution'](()=>_0x3014d8([_0x3276e2],_0x499f96,_0x14cf01)),null;}const _0x2bacb4=this['editor']['plugins']['get']('Users')['me'],_0x275610=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x59abcb,meta:_0x42703d}of this['_findSuggestions'](_0x3276e2,'insertion'))_0x42703d['isOwn']&&!_0x42703d['isInsideObject']&&_0x275610['push'](..._0x59abcb['getRanges']());}const _0x3aed7b=function(_0x50ac87,_0x13af8e){const _0x476126=[];for(const _0x1eb16a of _0x13af8e){const _0xaf7d56=_0x50ac87['getIntersection'](_0x1eb16a);_0xaf7d56&&_0x476126['push'](_0xaf7d56);}return _0x476126;}(_0x3276e2,_0x275610),_0x243c48=function(_0x3e77f1,_0x1b7f0f){const _0x4ab571=[_0x3e77f1];for(const _0x3b7df6 of _0x1b7f0f){let _0xc9044a=0x0;for(;_0xc9044a<_0x4ab571['length'];){const _0x184022=_0x4ab571[_0xc9044a]['getDifference'](_0x3b7df6);_0x4ab571['splice'](_0xc9044a,0x1,..._0x184022),_0xc9044a+=_0x184022['length'];}}return _0x4ab571;}(_0x3276e2,_0x275610);_0x3aed7b['length']&&this['_model']['change'](()=>{for(const _0xef9b94 of _0x3aed7b){const _0x4619d1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6a0fb3,'accept');this['forceDefaultExecution'](()=>_0x4619d1([_0xef9b94],_0x499f96,_0x14cf01));}});for(const _0x39b82c of _0x243c48){let _0x5cab02=null,_0x1c5d20=_0x39b82c['start'],_0x4dda52=_0x39b82c['end'];for(const {suggestion:_0x4250a8,meta:_0x388594}of this['_findSuggestions'](_0x39b82c,'formatInline')){if(!_0x388594['isOwn'])continue;if(_0x4250a8['subType']!=_0x6a0fb3)continue;if(!sn(_0x4250a8,_0x14cf01))continue;const _0x375a49=_0x4250a8['getFirstRange']();if(_0x375a49['containsRange'](_0x39b82c,!0x0))return null;_0x1c5d20=_0x1c5d20['isBefore'](_0x375a49['start'])?_0x1c5d20:_0x375a49['start'],_0x4dda52=_0x4dda52['isAfter'](_0x375a49['end'])?_0x4dda52:_0x375a49['end'],_0x5cab02?_0x375a49['start']['isBefore'](_0x5cab02['getFirstRange']()['start'])?(_0x5cab02['removeMarkers'](),_0x5cab02=_0x4250a8):_0x4250a8['removeMarkers']():_0x5cab02=_0x4250a8;}const _0x32db03=this['_model']['createRange'](_0x1c5d20,_0x4dda52);if(_0x5cab02)this['_setSuggestionRange'](_0x5cab02,_0x32db03);else{const _0x25f515=_0x58b4bb(),_0x50ce28=_0x2bacb4['id'];this['_setSuggestionData']({'id':_0x25f515,'type':'formatInline:'+_0x6a0fb3,'data':_0x499f96,'createdAt':new Date(),'authorId':_0x50ce28,'attributes':_0x14cf01}),this['_addSuggestionMarker']('formatInline:'+_0x6a0fb3,_0x25f515,_0x50ce28,_0x32db03);}}return null;}['markBlockFormat'](_0x2972db,_0x1b21a3,_0x47968e=[],_0xfc39c=null,_0x28536e={}){_0x1b21a3['formatGroupId']||(_0x1b21a3['formatGroupId']=_0x1b21a3['commandName']),_0x1b21a3['multipleBlocks']=_0x2972db['is']('range'),_0xfc39c=_0xfc39c||Ht(_0x1b21a3);const _0x5399e7=_0x47968e['map'](_0x155218=>tn(_0x155218,this['_model'])),_0x347ec2=_0x2972db['is']('range')?_0x2972db:tn(_0x2972db,this['_model']);if(this['_trackingSessionId']&&(_0x28536e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xaa9b46=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfc39c,'accept');return this['forceDefaultExecution'](()=>_0xaa9b46([_0x347ec2],_0x1b21a3,_0x28536e)),null;}_0x5399e7['push'](_0x347ec2);let _0x456917=!0x0;for(const _0x24d364 of _0x5399e7)if(!this['_rangeIsInLocalUserInsertion'](_0x24d364)){_0x456917=!0x1;break;}if(_0x456917&&'always'!==this['_trackFormatChanges']){const _0x25e1b0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfc39c,'accept');return this['forceDefaultExecution'](()=>_0x25e1b0([_0x347ec2],_0x1b21a3,_0x28536e)),null;}let _0x4c461d=null,_0x5db11b=_0x347ec2['start'],_0x518324=_0x347ec2['end'];for(const {suggestion:_0x224d51,meta:_0x73010b}of this['_findSuggestions'](_0x347ec2,'formatBlock')){if(!_0x73010b['isOwn'])continue;if(_0x73010b['isNextTo']||_0x73010b['containsRangeInObject']||_0x73010b['isInsideObject'])continue;if(_0x224d51['data']['formatGroupId']!=_0x1b21a3['formatGroupId'])continue;if(!sn(_0x224d51,_0x28536e))continue;const _0x430e76=_0x224d51['getFirstRange']();if(_0x224d51['subType']==_0xfc39c){if(_0x430e76['containsRange'](_0x347ec2,!0x0))return null;_0x5db11b=_0x5db11b['isBefore'](_0x430e76['start'])?_0x5db11b:_0x430e76['start'],_0x518324=_0x518324['isAfter'](_0x430e76['end'])?_0x518324:_0x430e76['end'],_0x4c461d?_0x430e76['start']['isBefore'](_0x4c461d['getFirstRange']()['start'])?(_0x4c461d['removeMarkers'](),_0x4c461d=_0x224d51):_0x224d51['removeMarkers']():_0x4c461d=_0x224d51;}else{const _0x17a937=_0x347ec2['getIntersection'](_0x430e76);this['_cutOutSuggestionMarker'](_0x224d51,_0x17a937);}}const _0x5af1ca=this['editor']['plugins']['get']('Users')['me'],_0x54c772=_0x58b4bb(),_0x2a143a=_0x5af1ca['id'];if(_0x4c461d)return this['_setSuggestionRange'](_0x4c461d,this['_model']['createRange'](_0x5db11b,_0x518324)),_0x4c461d;{const _0x5f3702=this['_setSuggestionData']({'id':_0x54c772,'type':'formatBlock:'+_0xfc39c,'data':_0x1b21a3,'createdAt':new Date(),'authorId':_0x2a143a,'attributes':_0x28536e});return this['_addSuggestionMarker']('formatBlock:'+_0xfc39c,_0x54c772,_0x2a143a,this['_model']['createRange'](_0x5db11b,_0x518324)),_0x5f3702;}}['markMultiRangeBlockFormat'](_0x113fd5,_0x14d180,_0x435e53=[],_0x1313af=null,_0x597df8={}){_0x14d180['formatGroupId']||(_0x14d180['formatGroupId']=_0x14d180['commandName']);const _0x254f45=_0x113fd5[0x0];_0x14d180['multipleBlocks']=_0x254f45['is']('range'),_0x1313af=_0x1313af||Ht(_0x14d180);const _0x1bb964=_0x435e53['map'](_0x10aeab=>tn(_0x10aeab,this['_model'])),_0x333411=_0x254f45['is']('range')?_0x113fd5:_0x113fd5['map'](_0x374e57=>tn(_0x374e57,this['_model']));if(this['_trackingSessionId']&&(_0x597df8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5c2e28=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1313af,'accept');return this['forceDefaultExecution'](()=>_0x5c2e28(_0x333411,_0x14d180,_0x597df8)),null;}_0x1bb964['push'](..._0x333411);let _0x55e570=!0x0;for(const _0x513d5f of _0x1bb964)if(!this['_rangeIsInLocalUserInsertion'](_0x513d5f)){_0x55e570=!0x1;break;}if(_0x55e570&&'always'!==this['_trackFormatChanges']){const _0x3362b3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1313af,'accept');return this['forceDefaultExecution'](()=>_0x3362b3(_0x333411,_0x14d180,_0x597df8)),null;}const _0x4c761c=this['editor']['plugins']['get']('Users')['me'];for(const _0x213a14 of this['getSuggestions']()){const _0x5ec1d0=_0x213a14['data'];if(_0x213a14['author']['id']!=_0x4c761c['id'])continue;if('formatBlock'!=_0x213a14['type']||_0x5ec1d0['formatGroupId']!=_0x14d180['formatGroupId'])continue;if(!sn(_0x213a14,_0x597df8))continue;const _0x31293a=_0x213a14['subType']==_0x1313af;for(let _0x59e1ff=0x0;_0x59e1ff<_0x333411['length'];_0x59e1ff++){const _0x12047c=_0x333411[_0x59e1ff];for(const _0x4078d8 of _0x213a14['getMarkers']()){const _0x166d60=_0x4078d8['getRange']();if(_0x12047c['isEqual'](_0x166d60)){_0x31293a?(_0x333411['splice'](_0x59e1ff,0x1),_0x59e1ff--):_0x213a14['removeMarker'](_0x4078d8['name']);break;}}}}if(0x0==_0x333411['length'])return null;const _0x4a091c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1313af,'join');for(const _0x55acf4 of this['getSuggestions']()){const _0x50e895=_0x55acf4['data'];if(_0x55acf4['author']['id']==_0x4c761c['id']&&('formatBlock'==_0x55acf4['type']&&_0x50e895['formatGroupId']==_0x14d180['formatGroupId']&&_0x55acf4['subType']==_0x1313af&&sn(_0x55acf4,_0x597df8)&&(_0x4a091c(_0x55acf4['getRanges'](),_0x333411)||_0x4a091c(_0x333411,_0x55acf4['getRanges']())))){for(const _0x546121 of _0x333411)_0x55acf4['addRange'](_0x546121);return _0x55acf4;}}const _0x325b91=_0x58b4bb(),_0x2a4795=_0x4c761c['id'],_0x590925='formatBlock:'+_0x1313af,_0x1efeb4=this['_setSuggestionData']({'id':_0x325b91,'type':_0x590925,'data':_0x14d180,'createdAt':new Date(),'authorId':_0x2a4795,'attributes':_0x597df8});for(const _0x4af55f of _0x333411)this['_addSuggestionMarker'](_0x590925,_0x325b91,_0x2a4795,_0x4af55f,T['getMultiRangeId']());return _0x1efeb4;}['markDeletion'](_0x2b3680,_0x2fb149=null,_0x4aa50a={}){if(_0x2b3680['isCollapsed'])return null;const _0x45ca3f=this['editor']['plugins']['get']('Users')['me'],_0x1c356b=new _0x41285e(_0x2b3680['start'],_0x2b3680['end']);this['_trackingSessionId']&&(_0x4aa50a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x33b902,meta:_0x1a5696}of this['_findSuggestions'](_0x1c356b,'insertion'))if(_0x1a5696['isOwn']&&!_0x1a5696['isNextTo']){if(_0x33b902['isMultiRange']){const _0x29bbfe=_0x33b902['getRanges']()['filter'](_0x557c17=>'$graveyard'!=_0x557c17['root']['rootName']);_0x29bbfe['every'](_0x1c6b9b=>_0x1c356b['containsRange'](_0x1c6b9b,!0x0))&&_0x33b902['discard']();if(_0x29bbfe['some'](_0x2bcacd=>_0x2bcacd['containsRange'](_0x1c356b,!0x0))){const _0x272dfb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fb149,'accept');return this['forceDefaultExecution'](()=>_0x272dfb([_0x1c356b],null,_0x4aa50a)),null;}}else{const _0x4eaaf1=_0x1c356b['getIntersection'](_0x33b902['getFirstRange']());null!==_0x4eaaf1&&_0x33b902['_onDiscard']([_0x4eaaf1],null,_0x4aa50a);}}if(_0x1c356b['detach'](),_0x1c356b['isCollapsed']||'$graveyard'==_0x1c356b['root']['rootName'])return null;let _0x2fd84d=null,_0x5bf18a=_0x1c356b['start'],_0x5ee1eb=_0x1c356b['end'];const _0x2dae01=this['_findSuggestions'](_0x1c356b,'deletion');for(const {suggestion:_0xe97c60,meta:_0xd698d8}of _0x2dae01){const _0x22b8d0=this['_model']['createRange'](_0x5bf18a,_0x5ee1eb);if(_0xd698d8['isOwn']&&(this['_mergeNestedSuggestions']||!_0xd698d8['containsRangeInObject']&&!_0xd698d8['isInsideObject'])){if(_0xe97c60['isMultiRange']){if(!sn(_0xe97c60,_0x4aa50a))continue;let _0x27560e=!0x0;for(const _0x25cf98 of _0xe97c60['getRanges']()){if(_0x25cf98['containsRange'](_0x22b8d0,!0x0))return _0xe97c60;_0x22b8d0['containsRange'](_0x25cf98)||(_0x27560e=!0x1);}_0x27560e&&_0xe97c60['discard']();}else{const _0x5ce556=_0xe97c60['getFirstRange']();if(_0x5ce556['containsRange'](_0x22b8d0,!0x0))return _0xe97c60;if(!sn(_0xe97c60,_0x4aa50a)){_0x22b8d0['containsRange'](_0x5ce556)?_0xe97c60['removeMarkers']():_0x5ce556['containsPosition'](_0x5bf18a)?_0x5bf18a=_0x5ce556['end']:_0x5ce556['containsPosition'](_0x5ee1eb)&&(_0x5ee1eb=_0x5ce556['start']);continue;}_0x5bf18a=_0x5bf18a['isBefore'](_0x5ce556['start'])?_0x5bf18a:_0x5ce556['start'],_0x5ee1eb=_0x5ee1eb['isAfter'](_0x5ce556['end'])?_0x5ee1eb:_0x5ce556['end'],_0x4aa50a=Object['assign']({},_0xe97c60['attributes']),_0x2fd84d?_0x5ce556['start']['isBefore'](_0x2fd84d['getFirstRange']()['start'])?(_0x2fd84d['removeMarkers'](),_0x2fd84d=_0xe97c60):_0xe97c60['removeMarkers']():_0x2fd84d=_0xe97c60;}}}if(_0x2fd84d)return this['_setSuggestionRange'](_0x2fd84d,this['_model']['createRange'](_0x5bf18a,_0x5ee1eb)),_0x2fd84d;{const _0x2dd782=_0x58b4bb(),_0x329c74=this['_model']['createRange'](_0x5bf18a,_0x5ee1eb),_0x1c660c=_0x45ca3f['id'],_0x13c939=_0x2fb149?'deletion:'+_0x2fb149:'deletion',_0x4527a1=this['_setSuggestionData']({'id':_0x2dd782,'type':_0x13c939,'createdAt':new Date(),'authorId':_0x1c660c,'attributes':_0x4aa50a});return this['_addSuggestionMarker'](_0x13c939,_0x2dd782,_0x1c660c,_0x329c74),_0x4527a1;}}['markMultiRangeDeletion'](_0x3d2e25,_0x141b05='multi',_0x30bd34={}){const _0x1e9801=this['editor']['plugins']['get']('Users')['me'],_0x259e52=_0x3d2e25['map'](_0x182347=>new _0x41285e(_0x182347['start'],_0x182347['end'])),_0x56abcc=new Set();this['_trackingSessionId']&&(_0x30bd34['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x33a169,meta:_0x56ffeb}of this['_findSuggestions'](_0x259e52,'insertion'))_0x56ffeb['isOwn']&&!_0x56ffeb['isNextTo']&&_0x56abcc['add'](_0x33a169);for(const _0x1fd226 of _0x56abcc)if(_0x1fd226['isMultiRange']){const _0x41cf62=_0x1fd226['getRanges']();(!_0x1fd226['attributes']||!_0x1fd226['attributes']['skipNestingCheck'])&&(_0x41cf62['every'](_0x51e867=>_0x259e52['some'](_0x29f815=>_0x29f815['containsRange'](_0x51e867,!0x0)))&&_0x1fd226['discard']());if(_0x259e52['every'](_0x5b4800=>_0x41cf62['some'](_0x5de38c=>_0x5de38c['containsRange'](_0x5b4800,!0x0)))){const _0x452ac0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x141b05,'accept');return this['forceDefaultExecution'](()=>_0x452ac0(_0x3d2e25,null,_0x30bd34)),null;}}else{const _0x4a91d9=_0x1fd226['getFirstRange']();_0x259e52['some'](_0xe3cc8c=>_0xe3cc8c['containsRange'](_0x4a91d9,!0x0))&&_0x1fd226['discard']();if(_0x259e52['every'](_0x13e519=>_0x4a91d9['containsRange'](_0x13e519,!0x0))){const _0x369818=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x141b05,'accept');return this['forceDefaultExecution'](()=>_0x369818(_0x259e52,null,_0x30bd34)),null;}}const _0xca5e8f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x141b05,'join');let _0x500409=null;for(const _0x5730f7 of this['getSuggestions']())if(_0x5730f7['author']['id']==_0x1e9801['id']&&_0x5730f7['isInContent']&&'deletion'==_0x5730f7['type']&&_0x5730f7['subType']==_0x141b05&&sn(_0x5730f7,_0x30bd34)&&(_0xca5e8f(_0x5730f7['getRanges'](),_0x259e52)||_0xca5e8f(_0x259e52,_0x5730f7['getRanges']()))){if(_0x500409){if(_0x5730f7['commentThread']&&_0x5730f7['commentThread']['length'])continue;for(const _0x23dddc of _0x5730f7['getRanges']())_0x500409['isIntersectingWithRange'](_0x23dddc)||_0x500409['addRange'](_0x23dddc);_0x5730f7['removeMarkers']();}else{_0x500409=_0x5730f7;for(const _0x2f06af of _0x259e52)_0x5730f7['isIntersectingWithRange'](_0x2f06af)||_0x5730f7['addRange'](_0x2f06af);}}if(_0x500409)return _0x500409;_0x56abcc['clear']();for(const {suggestion:_0x777cc8,meta:_0x6eb671}of this['_findSuggestions'](_0x259e52,'deletion'))_0x6eb671['isOwn']&&(this['_mergeNestedSuggestions']||!_0x6eb671['containsRangeInObject']&&!_0x6eb671['isInsideObject'])&&sn(_0x777cc8,_0x30bd34)&&_0x56abcc['add'](_0x777cc8);for(const _0x2c80d9 of _0x56abcc){const _0x17607b=_0x2c80d9['getRanges']();if(!_0x30bd34||!_0x30bd34['skipNestingCheck']){if(_0x259e52['every'](_0x5bf2fc=>_0x17607b['some'](_0x173042=>_0x173042['containsRange'](_0x5bf2fc,!0x0))))return _0x2c80d9;}(!_0x2c80d9['attributes']||!_0x2c80d9['attributes']['skipNestingCheck'])&&(_0x17607b['every'](_0x3d4c81=>_0x259e52['some'](_0xdcec0b=>_0xdcec0b['containsRange'](_0x3d4c81,!0x0)))&&_0x2c80d9['discard']());}const _0x4bc57a=_0x58b4bb(),_0x5d107e=_0x1e9801['id'],_0x3d466a='deletion:'+_0x141b05,_0x3d4546=this['_setSuggestionData']({'id':_0x4bc57a,'type':_0x3d466a,'createdAt':new Date(),'authorId':_0x5d107e,'attributes':_0x30bd34});for(const _0x11c7c5 of _0x259e52)_0x11c7c5['detach'](),_0x11c7c5['isCollapsed']||'$graveyard'==_0x11c7c5['root']['rootName']||this['_addSuggestionMarker'](_0x3d466a,_0x4bc57a,_0x5d107e,_0x11c7c5,T['getMultiRangeId']());return _0x3d4546;}['markAttributeChange'](_0x196af0,_0x2159da,_0x1f54d0,_0x57086d,_0x33947d){if(_0x196af0['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xc43289=this['editor']['plugins']['get']('Users')['me']['id'],_0x9f3308=Array['from'](this['_suggestions']['values']())['filter'](_0x26bb01=>'attribute'==_0x26bb01['type']&&_0x26bb01['data']['key']==_0x2159da&&_0x26bb01['isIntersectingWithRange'](_0x196af0));if(this['_trackingSessionId']&&(_0x33947d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4c23cf=this['_findSuggestions'](_0x196af0,'insertion')['filter'](({meta:_0x3f5e8d})=>_0x3f5e8d['isOwn']&&!_0x3f5e8d['isInsideObject']&&!_0x3f5e8d['isNextTo'])['map'](({suggestion:_0x2ae3fc})=>_0x2ae3fc);_0x9f3308['unshift'](..._0x4c23cf);}const _0x1dd788=new Map([[_0x196af0,_0x1f54d0]]);for(const _0x5dc439 of _0x9f3308){const _0x36656a='attribute'==_0x5dc439['type']?_0x5dc439['data']['oldValue']:void 0x0,_0x50d68d=_0x5dc439['getFirstRange'](),_0x22a213=Array['from'](_0x1dd788['keys']())['find'](_0x45087c=>_0x45087c['isIntersecting'](_0x50d68d));if(!_0x22a213)continue;const _0x4bb654=_0x22a213['getDifference'](_0x50d68d);this['_isBlockAttribute'](_0x2159da)&&'insertion'==_0x5dc439['type']&&0x0!=_0x4bb654['length']||(_0x1dd788['delete'](_0x22a213),_0x4bb654['forEach'](_0x34bfb4=>{_0x1dd788['set'](_0x34bfb4,_0x1f54d0);}),'insertion'!=_0x5dc439['type']&&_0x36656a!=_0x57086d&&_0x1dd788['set'](_0x22a213['getIntersection'](_0x50d68d),_0x36656a));}const _0x184f8a=[];for(const [_0x1fafa4,_0x45ae8b]of _0x1dd788){const _0x2dcd30=_0x58b4bb(),_0x398e17={'key':_0x2159da,'oldValue':_0x45ae8b,'newValue':_0x57086d};_0x2159da['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':_0x2159da});const _0xf3b467=('attribute:'+(_0x2159da+'|'+Ht({'newValue':_0x57086d})))['substring'](0x0,0x3c),_0x4ebea3=this['_setSuggestionData']({'id':_0x2dcd30,'type':_0xf3b467,'data':_0x398e17,'createdAt':new Date(),'authorId':_0xc43289,'attributes':_0x33947d});_0x184f8a['push'](_0x4ebea3),this['_addSuggestionMarker'](_0xf3b467,_0x2dcd30,_0xc43289,_0x1fafa4);}return _0x184f8a;}['enableDefaultAttributesIntegration'](_0x2736d7){this['enableCommand'](_0x2736d7,(_0x43ad2e,..._0x47406f)=>{this['recordAttributeChanges'](()=>{_0x43ad2e(..._0x47406f);});});}['registerBlockAttribute'](_0x51f8b0){this['editor']['plugins']['get'](_0x508c21)['registerBlockAttribute'](_0x51f8b0);}['registerInlineAttribute'](_0x5c0c46){this['editor']['plugins']['get'](_0x508c21)['registerInlineAttribute'](_0x5c0c46);}['startTrackingSession'](_0x229b19){return this['_trackingSessionId']=void 0x0!==_0x229b19?_0x229b19:_0x58b4bb(),this['_trackingSessionId'];}['_getAttributeKey'](_0x198cb9){return'attribute'==_0x198cb9['type']?_0x198cb9['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x4d5f52){if(0x0==_0x4d5f52['length'])return;const _0x17e7c7=this['editor'],_0x45daed=_0x17e7c7['plugins']['get'](_0x5aa91f),_0x186ce5=[];_0x17e7c7['model']['change'](_0x265478=>{for(let _0x1646a4=0x0;_0x1646a4<_0x4d5f52['length'];_0x1646a4++){const _0x1e9e08=_0x4d5f52[_0x1646a4];if(_0x1e9e08['baseVersion']=_0x17e7c7['model']['document']['version'],_0x1e9e08['isDocumentOperation']=!0x0,_0x45daed['isMarkedRemoveOperation'](_0x1e9e08)){const _0x4b1f65=_0x29aed1(_0x1e9e08['newRange'],_0x17e7c7['model']);_0x186ce5['unshift'](_0x41285e['fromRange'](_0x4b1f65));}else switch(_0x1e9e08['type']){case'rename':{const _0x26b6e7=_0x1e9e08['oldName'],_0x7be6ee=_0x1e9e08['newName'];if(_0x26b6e7==_0x7be6ee)break;_0x265478['batch']['addOperation'](_0x1e9e08),_0x17e7c7['model']['applyOperation'](_0x1e9e08);const _0xc29a86='$elementName',_0x107b5a=_0x1e9e08['position'],_0xe9dd70=_0x17e7c7['model']['createRange'](_0x107b5a,_0x17e7c7['model']['createPositionAt'](_0x107b5a['nodeAfter'],'end'));this['markAttributeChange'](_0xe9dd70,_0xc29a86,_0x26b6e7,_0x7be6ee,{'groupId':_0x58b4bb()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x30679a=_0x1e9e08['oldValue'],_0x3a2d08=_0x1e9e08['newValue'];if(_0x30679a==_0x3a2d08)break;_0x265478['batch']['addOperation'](_0x1e9e08),_0x17e7c7['model']['applyOperation'](_0x1e9e08);const _0x127d8e=_0x1e9e08['key'];if(!this['_isRegisteredAttribute'](_0x127d8e))break;const _0x27d958=_0x29aed1(_0x1e9e08['range'],_0x17e7c7['model']);this['markAttributeChange'](_0x27d958,_0x127d8e,_0x30679a,_0x3a2d08,{'groupId':_0x58b4bb()});break;}case'insert':{_0x265478['batch']['addOperation'](_0x1e9e08),_0x17e7c7['model']['applyOperation'](_0x1e9e08);if(_0x4d5f52[_0x1646a4+0x1]&&'move'==_0x4d5f52[_0x1646a4+0x1]['type'])break;const _0x10a8f3=_0x1e9e08['position'],_0x59ff88=_0x1e9e08['howMany'],_0x481531=_0x29aed1(_0x17e7c7['model']['createRange'](_0x10a8f3,_0x10a8f3['getShiftedBy'](_0x59ff88)),_0x17e7c7['model']);this['markInsertion'](_0x481531);break;}case'split':{_0x265478['batch']['addOperation'](_0x1e9e08),_0x17e7c7['model']['applyOperation'](_0x1e9e08);const _0x23d74b=_0x1e9e08['splitPosition'],_0xf975fe=_0x1e9e08['moveTargetPosition'];this['markInsertion'](_0x17e7c7['model']['createRange'](_0x23d74b,_0xf975fe));break;}case'move':case'remove':_0x265478['batch']['addOperation'](_0x1e9e08),_0x17e7c7['model']['applyOperation'](_0x1e9e08);}}for(const _0x4a7c35 of _0x186ce5)_0x4a7c35['detach'](),this['markDeletion'](_0x4a7c35);});}['_setSuggestionRange'](_0x43b65e,_0x383591){const _0x5d8719=_0x43b65e['getFirstMarker']();this['_model']['change'](_0x329258=>{_0x329258['updateMarker'](_0x5d8719,{'range':_0x383591});});}['_addThreadToSuggestion'](_0x5e6918){const _0x44e75d=_0x5e6918['id'],_0x5c7733=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x44e75d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5c7733,'threadId':_0x44e75d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3ad2e8=this['_commentsRepository']['getCommentThread'](_0x44e75d);_0x3ad2e8['unbind']('isRemovable'),_0x3ad2e8['isRemovable']=!0x1,_0x5e6918['commentThread']=_0x3ad2e8;}['_checkSuggestionCorrectness'](_0x4d1589,_0x2c82c6,_0x37100f,_0x2ccfc4){if(_0x4d1589['type']!=_0x2c82c6||_0x4d1589['subType']!=_0x37100f||_0x4d1589['creator']['id']!=_0x2ccfc4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4323ac('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x9280c6,_0xb10545){const _0x2f8015=_0x9280c6['getFirstRange']();if(_0xb10545['isEqual'](_0x2f8015))_0x9280c6['removeMarkers']();else{if(_0x2f8015['containsRange'](_0xb10545)){const _0x193c40=this['_model']['createPositionAt'](_0xb10545['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x9280c6,this['_model']['createRange'](_0x2f8015['start'],_0x193c40));const _0x543070=_0x58b4bb(),_0x238ce7=_0x9280c6['creator']['id'],_0x52b6f4=_0x9280c6['type']+':'+_0x9280c6['subType'];this['_setSuggestionData']({'id':_0x543070,'type':_0x52b6f4,'createdAt':new Date(),'authorId':_0x238ce7,'data':_0x9280c6['data'],'attributes':_0x9280c6['attributes']});const _0x1ea1d9=this['_model']['createPositionAt'](_0xb10545['end']['parent'],'after'),_0x15ee3a=this['_model']['createRange'](_0x1ea1d9,_0x2f8015['end']);this['_addSuggestionMarker'](_0x52b6f4,_0x543070,_0x238ce7,_0x15ee3a);}else{if(_0x2f8015['containsPosition'](_0xb10545['start'])){const _0x572f8b=this['_model']['createPositionAt'](_0xb10545['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x9280c6,this['_model']['createRange'](_0x2f8015['start'],_0x572f8b));}else{const _0x1296b9=this['_model']['createPositionAt'](_0xb10545['end']['parent'],'after');this['_setSuggestionRange'](_0x9280c6,this['_model']['createRange'](_0x1296b9,_0x2f8015['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x25a574){for(const {suggestion:_0x46a270,meta:_0x466bbf}of this['_findSuggestions'](_0x25a574,'insertion')){if(!_0x466bbf['isOwn'])continue;const _0x5259de=_0x46a270['getRanges']();for(const _0x3e7853 of _0x5259de)if(!_0x25a574['getDifference'](_0x3e7853)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x546bc9){return this['editor']['plugins']['get']('Users')['getUser'](_0x546bc9);}['_getExternalAuthor'](_0x2c452d){const _0x307186=this['editor']['plugins']['get']('Users'),_0x9f6551=_0xd0c3f2('external:'+_0x2c452d),_0x298c7c=_0x307186['getUser'](_0x9f6551);return _0x298c7c||_0x307186['addUser']({'id':_0x9f6551,'name':_0x2c452d});}['_createSuggestion'](_0x8cd910,_0x53baa6,_0x1e621f,_0x3a098c,_0x33f233,_0x28b823){const _0x2c57e6=this['_getAuthorFromId'](_0x3a098c);if(!_0x2c57e6)throw new _0x4323ac('track-changes-user-not-found',this,{'authorId':_0x3a098c,'suggestionId':_0x1e621f});const _0x4f0079=this['_suggestionFactory']['buildSuggestion'](_0x8cd910,_0x53baa6,_0x1e621f,_0x2c57e6,_0x33f233,_0x23d6ec=>{this['_updateSuggestionData'](_0x1e621f,{'attributes':_0x23d6ec});const _0x355240=this['getSuggestion'](_0x1e621f);this['_joinWithAdjacentSuggestions'](new Set([_0x355240])),this['_refreshSuggestionsChain'](new Set([_0x355240]));},_0x28b823);return this['listenTo'](_0x4f0079,'accept',()=>{this['_updateSuggestionData'](_0x1e621f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4f0079,'discard',()=>{this['_updateSuggestionData'](_0x1e621f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1e621f,_0x4f0079),this['_suggestionState']['set'](_0x4f0079,'notReady'),_0x4f0079;}['_splitMarkerName'](_0x2cf656){return _0x1452e9(_0x2cf656);}['_breakSuggestionMarker'](_0x40e062,_0x52eceb,_0x1d6062){const _0x4c2370=_0x40e062['getFirstRange'](),_0x31bb18=_0x4c2370['start'],_0x6908b=_0x4c2370['end'];this['_setSuggestionRange'](_0x40e062,this['_model']['createRange'](_0x31bb18,_0x52eceb));const _0x404c0e=_0x58b4bb(),_0x13ba9d=_0x40e062['creator']['id'],_0x223c22=_0x40e062['type']+(_0x40e062['subType']?':'+_0x40e062['subType']:'');this['_setSuggestionData']({'id':_0x404c0e,'type':_0x223c22,'createdAt':new Date(),'authorId':_0x13ba9d,'originalSuggestionId':_0x40e062['_originalSuggestionId']||_0x40e062['id'],'attributes':_0x40e062['attributes'],'data':_0x40e062['data']});const _0x5d3545=this['_getAttributeKey'](_0x40e062);('formatBlock'==_0x40e062['type']||_0x5d3545&&this['_isBlockAttribute'](_0x5d3545))&&(_0x1d6062=this['_model']['createPositionBefore'](_0x1d6062['parent'])),this['_addSuggestionMarker'](_0x223c22,_0x404c0e,_0x13ba9d,this['_model']['createRange'](_0x1d6062,_0x6908b));}['_findSuggestions'](_0x22916d,_0x55faf0=null){const _0x52b676=[],_0x4bdd70=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x22916d)||(_0x22916d=[_0x22916d]);for(const _0x3a5ad1 of this['getSuggestions']()){if(!_0x3a5ad1['isInContent'])continue;if(_0x55faf0&&_0x3a5ad1['type']!=_0x55faf0)continue;let _0x28f732=!0x1;for(const _0x11fcb2 of _0x3a5ad1['getRanges']()){for(const _0x1f9764 of _0x22916d){const _0x27f967=_0x1f9764['start']['isEqual'](_0x11fcb2['end'])||_0x1f9764['end']['isEqual'](_0x11fcb2['start']);if(_0x27f967||_0x1f9764['getIntersection'](_0x11fcb2)){const _0x3be20=_0x1f9764['containsRange'](_0x11fcb2)&&zt(this['_model']['schema'],_0x11fcb2['start'],_0x1f9764),_0x3ae771=_0x11fcb2['containsRange'](_0x1f9764)&&zt(this['_model']['schema'],_0x1f9764['start'],_0x11fcb2);_0x52b676['push']({'suggestion':_0x3a5ad1,'meta':{'isOwn':_0x4bdd70==_0x3a5ad1['author'],'isNextTo':_0x27f967,'isInsideObject':_0x3be20,'containsRangeInObject':_0x3ae771}}),_0x28f732=!0x0;break;}}if(_0x28f732)break;}}return _0x52b676;}['_addSuggestionMarker'](_0x4d5708,_0x43b902,_0x489a37,_0x5add69,_0x4428ee){this['_model']['change'](_0x3ea3c5=>{let _0x846f8c='suggestion:'+_0x4d5708+':'+_0x43b902+':'+_0x489a37;_0x4428ee&&(_0x846f8c=_0x846f8c+':'+_0x4428ee),_0x3ea3c5['addMarker'](_0x846f8c,{'range':_0x5add69,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x532f50){const _0x55a1d5=_0x532f50['previous'],_0x15da48=_0x532f50['next'];_0x532f50['previous']=null,_0x532f50['next']=null,null!=_0x55a1d5&&_0x55a1d5['next']==_0x532f50&&(_0x55a1d5['next']=_0x15da48),null!=_0x15da48&&_0x15da48['previous']==_0x532f50&&(_0x15da48['previous']=_0x55a1d5),'ready'==this['_suggestionState']['get'](_0x532f50)&&(this['_suggestionState']['set'](_0x532f50,'removed'),this['fire']('suggestionUnloaded',_0x532f50,_0x55a1d5,_0x15da48));}['_setSuggestionData'](_0x398256){const _0xd14724=_0x398256['id'],_0x43755e=this['addSuggestionData'](_0x398256);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x456f86=this['editor']['plugins']['get']('PendingActions'),_0x2cab31=_0x43755e['hasComments'],_0x4aa499=_0x43755e['subType']?_0x43755e['type']+':'+_0x43755e['subType']:_0x43755e['type'],_0x13ed1c=this['editor']['locale'],_0x2c6472=_0x456f86['add'](o(_0x13ed1c,'PENDING_ACTION_SUGGESTION')),_0x34caee={'id':_0xd14724,'type':_0x4aa499,'hasComments':_0x2cab31,'data':_0x398256['data']||null,'originalSuggestionId':_0x398256['originalSuggestionId']||null,'attributes':_0x43755e['attributes']};this['_adapter']['addSuggestion'](_0x34caee)['then'](_0x8fafc2=>{_0x43755e['_saved']=!0x0,_0x456f86['remove'](_0x2c6472),_0x8fafc2&&_0x8fafc2['createdAt']&&(this['_suggestions']['get'](_0xd14724)['createdAt']=_0x8fafc2['createdAt']);})['catch'](_0x314781=>{throw _0x5e41d9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x43755e['discard']();}),_0x43755e['stopListening'](),this['_suggestions']['delete'](_0x43755e['id']),this['_suggestionState']['delete'](_0x43755e),_0x314781;});}return _0x43755e;}['_isBlockAttribute'](_0x5400bc){return this['editor']['plugins']['get'](_0x508c21)['isBlockAttribute'](_0x5400bc);}['_isInlineAttribute'](_0x40f09b){return this['editor']['plugins']['get'](_0x508c21)['isInlineAttribute'](_0x40f09b);}['_updateSuggestionData'](_0x4e75d9,_0x13ca27){const _0x2384be=this['editor']['plugins']['get']('PendingActions'),_0x1d0837=this['getSuggestion'](_0x4e75d9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1d0837['_saved']){const _0x489e21=_0x2384be['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4e75d9,_0x13ca27)['then'](()=>{_0x2384be['remove'](_0x489e21);});}else _0x1d0837['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4e75d9,_0x13ca27);});}}['_getSuggestionData'](_0x24f14a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4323ac('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x24f14a);}['_handleNewSuggestionMarker'](_0x406386){const {id:_0x21413d,type:_0x26717a,subType:_0x25e41c,authorId:_0x9fa9d4}=this['_splitMarkerName'](_0x406386),_0xeca6a8=this['_suggestions']['get'](_0x21413d)||this['_createSuggestion'](_0x26717a,_0x25e41c,_0x21413d,_0x9fa9d4,{});switch(this['_checkSuggestionCorrectness'](_0xeca6a8,_0x26717a,_0x25e41c,_0x9fa9d4),this['_suggestionState']['get'](_0xeca6a8)){case'notReady':this['_getSuggestionData'](_0x21413d)['then'](_0x26e352=>{let _0x4aa5c0=Promise['resolve']();_0x26e352['hasComments']&&(_0x4aa5c0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x21413d})),_0x4aa5c0['then'](()=>{this['addSuggestionData'](_0x26e352)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xeca6a8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x21413d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xeca6a8,'ready'),this['fire']('suggestionLoaded',_0xeca6a8);break;case'ready':this['fire']('suggestionChanged',_0xeca6a8);}return _0xeca6a8['addMarkerName'](_0x406386),_0xeca6a8;}['_refreshSuggestionsChain'](_0x17a8cf){const _0x10cf7e=Array['from'](_0x17a8cf),_0xae77f4=_0x10cf7e['filter'](_0x19e6d7=>'attribute'==_0x19e6d7['type']);this['_refreshAttributeSuggestionsChain'](_0xae77f4);const _0x546a49=_0x10cf7e['filter'](_0x5606c8=>!_0x5606c8['isMultiRange']&&'attribute'!=_0x5606c8['type']),_0x261381=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x522b9e=>!_0x522b9e['isMultiRange']&&'attribute'!=_0x522b9e['type']),_0x51289d=_0x261381['filter'](_0x4479a2=>!_0x17a8cf['has'](_0x4479a2)),_0x61f7e=new Map(_0x261381['map'](_0x5eb995=>[_0x5eb995,this['_suggestionFactory']['getSuggestionCallback'](_0x5eb995['type'],_0x5eb995['subType'],'chain')])),_0x50331a=new Map(_0x261381['map'](_0x4e2130=>[_0x4e2130,_0x4e2130['getFirstRange']()])),_0x12b8f2=new Set(),_0x10b58f=new Set();for(let _0x4a8945=0x0;_0x4a8945<_0x546a49['length'];_0x4a8945++)_0x36f1cb(_0x546a49[_0x4a8945],_0x546a49,_0x4a8945+0x1);for(let _0x1966fa=0x0;_0x1966fa<_0x546a49['length'];_0x1966fa++)_0x36f1cb(_0x546a49[_0x1966fa],_0x51289d,0x0);const _0x3818f8=new Set();for(let _0x3be939=0x0;_0x3be939<_0x546a49['length'];_0x3be939++){const _0xec0de=_0x546a49[_0x3be939];!_0x10b58f['has'](_0xec0de)&&_0xec0de['previous']&&(_0x3818f8['add'](_0xec0de['previous']),_0xec0de['previous']['next']===_0xec0de&&(_0xec0de['previous']['next']=null),_0xec0de['previous']=null),!_0x12b8f2['has'](_0xec0de)&&_0xec0de['next']&&(_0x3818f8['add'](_0xec0de['next']),_0xec0de['next']['previous']===_0xec0de&&(_0xec0de['next']['previous']=null),_0xec0de['next']=null);}function _0x36f1cb(_0x391304,_0x1a19e5,_0x100991){for(let _0x3a2527=_0x100991;_0x3a2527<_0x1a19e5['length'];_0x3a2527++){const _0x3f7b54=_0x4177eb(_0x391304,_0x1a19e5[_0x3a2527]);_0x3f7b54&&(_0x3f7b54[0x0]['next']=_0x3f7b54[0x1],_0x3f7b54[0x1]['previous']=_0x3f7b54[0x0],_0x12b8f2['add'](_0x3f7b54[0x0]),_0x10b58f['add'](_0x3f7b54[0x1]));}}function _0x4177eb(_0x2a103d,_0x49282b){if(_0x2a103d['author']['id']!==_0x49282b['author']['id'])return null;const _0x27e1a3=_0x61f7e['get'](_0x2a103d)(_0x2a103d,_0x49282b,_0x50331a['get'](_0x2a103d),_0x50331a['get'](_0x49282b));if(!_0x27e1a3)return null;return _0x61f7e['get'](_0x49282b)(_0x2a103d,_0x49282b,_0x50331a['get'](_0x2a103d),_0x50331a['get'](_0x49282b))?_0x27e1a3[0x1]['commentThread']&&_0x27e1a3[0x1]['commentThread']['length']?null:_0x27e1a3:null;}_0x3818f8['size']&&this['_refreshSuggestionsChain'](_0x3818f8);}['_refreshAttributeSuggestionsChain'](_0x7c3585){if(0x0==_0x7c3585['length'])return;const _0x4d90db=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x530f94=>'attribute'==_0x530f94['type']&&_0x530f94['_isDataLoaded']),_0x3b4980=[],_0x127d17=new Map();for(const _0x599a23 of _0x4d90db){const _0xf802db=_0xd0c3f2(_0x599a23['attributes']);_0x127d17['has'](_0xf802db)||(_0x127d17['set'](_0xf802db,_0x3b4980['length']),_0x3b4980['push']([]));const _0x60f2c3=_0x127d17['get'](_0xf802db);_0x3b4980[_0x60f2c3]['push'](_0x599a23);}!(function(){_0x3b4980['sort']((_0x343e07,_0x5cb8c6)=>{const _0x39cd55=_0x343e07[0x0]['createdAt'],_0x467a0d=_0x5cb8c6[0x0]['createdAt'];return _0x39cd55==_0x467a0d?_0x343e07[0x0]['attributes']['groupId']<_0x5cb8c6[0x0]['attributes']['groupId']?-0x1:0x1:_0x39cd55<_0x467a0d?-0x1:0x1;});for(const _0x5753cc of _0x3b4980)_0x5753cc['sort']((_0x44976e,_0x4821b6)=>_0x44976e['id']<_0x4821b6['id']?-0x1:0x1);}());for(let _0x157d08=0x0;_0x157d08<_0x3b4980['length'];_0x157d08++){if(0x0==_0x3b4980[_0x157d08]['length'])continue;const _0x49ba54=[];for(let _0x506f74=_0x157d08+0x1;_0x506f74<_0x3b4980['length'];_0x506f74++)0x0!=_0x3b4980[_0x506f74]['length']&&_0x2b8d0d(_0x3b4980[_0x157d08],_0x3b4980[_0x506f74])&&_0x49ba54['push'](_0x506f74);for(const _0x361f16 of _0x49ba54)_0x3b4980[_0x157d08]=_0x3b4980[_0x157d08]['concat'](_0x3b4980[_0x361f16]),_0x3b4980[_0x361f16]=[];}for(const _0x328ec3 of _0x3b4980)for(let _0x324f21=0x0;_0x324f21<_0x328ec3['length'];_0x324f21++){const _0x188663=_0x328ec3[_0x324f21+0x1]||null;_0x328ec3[_0x324f21]['next']!==_0x188663&&(_0x328ec3[_0x324f21]['next']=_0x188663);}for(const _0x302414 of _0x3b4980)for(let _0x30c4da=0x0;_0x30c4da<_0x302414['length'];_0x30c4da++){const _0x468238=_0x302414[_0x30c4da-0x1]||null;_0x302414[_0x30c4da]['previous']!==_0x468238&&(_0x302414[_0x30c4da]['previous']=_0x468238);}function _0x2b8d0d(_0x598045,_0x5df8ca){if(_0x598045[0x0]['attributes']['groupId']!==_0x5df8ca[0x0]['attributes']['groupId']&&_0x598045[0x0]['author']!==_0x5df8ca[0x0]['author'])return!0x1;if(!function(_0xfe3e12,_0x506250){if(!_0xfe3e12['hasComments']&&!_0x506250['hasComments'])return!0x0;if(_0xfe3e12['hasComments']&&_0x506250['hasComments'])return!0x1;if(_0xfe3e12['hasComments']&&_0x506250['createdAt']<_0xfe3e12['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x506250['hasComments']&&_0xfe3e12['createdAt']<_0x506250['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x598045[0x0],_0x5df8ca[0x0]))return!0x1;const _0x5739d9=Jt(_0x598045[0x0]['attributes'],['groupId','trackingSessionId']),_0x3767cc=Jt(_0x5df8ca[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3d47c3(_0x5739d9,_0x3767cc))return!0x1;if(_0x598045[0x0]['attributes']['groupId']==_0x5df8ca[0x0]['attributes']['groupId'])return!0x0;if(_0x598045[0x0]['attributes']['trackingSessionId']!==_0x5df8ca[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x598045['every'](_0x1a71f2=>_0x5df8ca['some'](_0xd63026=>_0x1a71f2['getFirstRange']()['isEqual'](_0xd63026['getFirstRange']())))&&_0x5df8ca['every'](_0x2edd95=>_0x598045['some'](_0x39d4f2=>_0x2edd95['getFirstRange']()['isEqual'](_0x39d4f2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x436f1f){const _0x4dbfcc=Array['from'](_0x436f1f),_0x1605f2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2fa0ff=_0x1605f2['filter'](_0x173a9a=>!_0x436f1f['has'](_0x173a9a)),_0x4462db=new Map(_0x4dbfcc['map'](_0x559743=>[_0x559743,this['_suggestionFactory']['getSuggestionCallback'](_0x559743['type'],_0x559743['subType'],'join')])),_0x2dd9e7=new Map(_0x1605f2['map'](_0xc4207c=>[_0xc4207c,_0xc4207c['getRanges']()]));for(let _0xf437b4=0x0;_0xf437b4<_0x4dbfcc['length'];_0xf437b4++){if(_0x52ca5b(this,_0x4dbfcc[_0xf437b4],_0x4dbfcc,_0xf437b4+0x1))return!0x0;}for(let _0xc9083a=0x0;_0xc9083a<_0x4dbfcc['length'];_0xc9083a++){if(_0x52ca5b(this,_0x4dbfcc[_0xc9083a],_0x2fa0ff,0x0))return!0x0;}return!0x1;function _0x52ca5b(_0x4464a6,_0x534187,_0xd0a913,_0xe83c88){for(let _0x3a923a=_0xe83c88;_0x3a923a<_0xd0a913['length'];_0x3a923a++){const _0x38f1c2=_0xd0a913[_0x3a923a];if(_0x38f1c2['type']!==_0x534187['type']||_0x38f1c2['author']['id']!==_0x534187['author']['id']||_0x38f1c2['subType']!==_0x534187['subType'])continue;if(!en(_0x534187,_0x38f1c2))continue;if('attribute'==_0x534187['type']&&_0x534187['data']['oldValue']!=_0x38f1c2['data']['oldValue'])continue;if('attribute'==_0x534187['type']&&_0x4464a6['_isBlockAttribute'](_0x534187['data']['key']))continue;if('formatBlock'==_0x534187['type']){const _0x324961=_0x4464a6['editor']['model'],_0x5a3727=_0x534187['getContainedElement']();if(_0x5a3727&&(_0x324961['schema']['isObject'](_0x5a3727)||_0x324961['schema']['isLimit'](_0x5a3727)))continue;}const _0x77d7c5=_0x4462db['get'](_0x534187),_0x5daf8e=_0x2dd9e7['get'](_0x534187),_0x56ab8=_0x2dd9e7['get'](_0x38f1c2),_0x192534=_0x534187['commentThread']&&_0x534187['commentThread']['length'],_0x1d49e7=_0x38f1c2['commentThread']&&_0x38f1c2['commentThread']['length'];if(!_0x192534&&_0x77d7c5(_0x56ab8,_0x5daf8e))return _0x4464a6['_joinSuggestions'](_0x38f1c2,_0x534187),_0x2dd9e7['delete'](_0x534187),!0x0;if(!_0x1d49e7&&_0x77d7c5(_0x5daf8e,_0x56ab8))return _0x4464a6['_joinSuggestions'](_0x534187,_0x38f1c2),_0x2dd9e7['delete'](_0x38f1c2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4778c9,_0x330b93){if(_0x4778c9['isMultiRange']){for(const _0x40a736 of _0x330b93['getRanges']())_0x4778c9['addRange'](_0x40a736);}else{const _0x379d87=_0x330b93['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4778c9,this['_model']['createRange'](_0x4778c9['getFirstRange']()['start'],_0x379d87));}_0x330b93['removeMarkers']();}['_getMarkerAnnouncementText'](_0xd90f53,_0x559c12,_0x32a8fc){const _0xd2844c=_0xd90f53['startsWith']('format')||_0xd90f53['startsWith']('attribute')?'FORMATTING':_0xd90f53['toUpperCase']();return o(this['editor']['locale'],_0x559c12+'_'+_0xd2844c+'_SUGGESTION_ANNOUNCEMENT',_0x32a8fc);}['_initAriaMarkerChangeAnnouncements'](){const _0x5589de=this['editor'];if(!_0x5589de['ui'])return;const {ariaLiveAnnouncer:_0x431fd6}=_0x5589de['ui'];_0x4388fd(this['_model'],({left:_0x1fd2d9,entered:_0x79d496})=>{for(const _0xa2de7e of _0x1fd2d9){const {group:_0x927100,type:_0x12655b}=this['_splitMarkerName'](_0xa2de7e['name']);if('suggestion'===_0x927100){_0x431fd6['announce'](this['_getMarkerAnnouncementText'](_0x12655b,'LEAVE'));break;}}for(const _0xd4230c of _0x79d496){const {group:_0x2a0ac7,type:_0x58b344}=this['_splitMarkerName'](_0xd4230c['name']);if('suggestion'===_0x2a0ac7){_0x431fd6['announce'](this['_getMarkerAnnouncementText'](_0x58b344,'ENTER',_0x487394(_0x44cffa)));break;}}});}['_processAttributeChanges'](_0x2dd2c1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1c0cb6=this['editor'],_0x5b8dbe=_0x1c0cb6['model']['document']['differ']['getChanges']();if(0x0==_0x5b8dbe['length'])return!0x1;const _0x17b32c=[],_0x1a3a7a=_0x5b8dbe['filter'](_0x503267=>'attribute'==_0x503267['type']),_0x7467a8=_0x5b8dbe['filter'](_0x265802=>'insert'==_0x265802['type']&&'$text'!=_0x265802['name']),_0x82b46d=_0x5b8dbe['filter'](_0x22ea42=>'remove'==_0x22ea42['type']&&'$text'!=_0x22ea42['name']);for(const _0x5b8670 of _0x1a3a7a)_0x17b32c['push']({'key':_0x5b8670['attributeKey'],'newValue':_0x5b8670['attributeNewValue'],'oldValue':_0x5b8670['attributeOldValue'],'range':Zt(_0x5b8670['range'],_0x1c0cb6['model'])});for(const _0x41399c of _0x7467a8){const _0x3bf7bc=_0x82b46d['find'](_0x2f610a=>_0x2f610a['position']['isEqual'](_0x41399c['position']));_0x3bf7bc&&_0x17b32c['push']({'key':m,'newValue':_0x41399c['name'],'oldValue':_0x3bf7bc['name'],'range':_0x1c0cb6['model']['createRangeOn'](_0x41399c['position']['nodeAfter'])});}return 0x0!=_0x17b32c['length']&&this['_reduceExistingSuggestions'](_0x2dd2c1,_0x17b32c);}['_processAttributeSuggestions'](_0x3a9d29){let _0x5b6c4e=!0x1;const _0x87a1e5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x32287a=>_0x32287a['data']['newRange']&&_0x32287a['name']['startsWith']('suggestion:attribute:'));for(const _0x56d4f9 of _0x87a1e5){const {subType:_0x4dcb2a,id:_0x56fbc1}=this['_splitMarkerName'](_0x56d4f9['name']),_0x51b8c6=_0x4dcb2a['split']('|')[0x0];for(const _0x14a572 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x14a572['id']!=_0x56fbc1&&'attribute'==_0x14a572['type']&&_0x14a572['data']&&_0x14a572['data']['key']==_0x51b8c6&&_0x14a572['getFirstRange']()['isIntersecting'](_0x56d4f9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x14a572,_0x56d4f9['data']['newRange'],_0x3a9d29),_0x5b6c4e=!0x0);}return _0x5b6c4e;}['recordAttributeChanges'](_0x3de2b0){this['_recordAttributeSuggestions']=!0x0,_0x3de2b0();}['_isRegisteredAttribute'](_0x4e79c3){return this['editor']['plugins']['get'](_0x508c21)['isRegisteredAttribute'](_0x4e79c3);}['_reduceExistingSuggestions'](_0x4551b4,_0x36b97e){if(0x0==_0x36b97e['length'])return!0x1;let _0x41bd2e=!0x1;for(const _0x158562 of _0x36b97e){const _0x1ea379=this['_findSuggestions'](_0x158562['range'],'attribute')['filter'](_0xcbd67b=>!_0xcbd67b['meta']['isNextTo'])['map'](_0x29ddce=>_0x29ddce['suggestion']),_0x2d6570=_0xd0c3f2({'newValue':_0x158562['newValue']});_0x1ea379['filter'](_0x945b4c=>{const [_0x4a4154,_0x1a282d]=_0x945b4c['subType']['split']('|');return _0x4a4154==_0x158562['key']&&_0x1a282d!=_0x2d6570;})['forEach'](_0x1ec92a=>{this['_reduceSuggestionAttributeRange'](_0x1ec92a,_0x158562['range'],_0x4551b4),_0x41bd2e=!0x0;});}return _0x41bd2e;}['_reduceSuggestionAttributeRange'](_0x23e7f0,_0x1cd724,_0x2c4515){const _0x572044=_0x23e7f0['getFirstRange']()['getDifference'](_0x1cd724);0x0!==_0x572044['length']?0x1!==_0x572044['length']?this['_breakSuggestionMarker'](_0x23e7f0,_0x1cd724['start'],_0x1cd724['end']):this['_setSuggestionRange'](_0x23e7f0,_0x572044[0x0]):_0x2c4515['removeMarker'](_0x23e7f0['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xebdbd7){this['_editor']=_0xebdbd7,this['_model']=_0xebdbd7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3b85e0,_0x302fd5,_0x511d43,_0x749a5b,_0x328c6f,_0x215b6d,_0x40dd7f){return new T(this['_model'],{'type':_0x3b85e0,'subType':_0x302fd5,'id':_0x511d43,'originalSuggestionId':_0x40dd7f,'author':_0x749a5b,'creator':_0x749a5b,'attributes':_0x328c6f,'onAttributesChange':_0x215b6d,'onAccept':(..._0x50c87f)=>this['getSuggestionCallback'](_0x3b85e0,_0x302fd5,'accept')(..._0x50c87f),'onDiscard':(..._0x23667d)=>this['getSuggestionCallback'](_0x3b85e0,_0x302fd5,'discard')(..._0x23667d)});}['registerCustomCallback'](_0x490e56,_0xa3c503,_0x348422,_0x30cd43){const _0x4c90af=_0x490e56+':'+_0xa3c503+':'+_0x348422;this['_customCallbacks']['set'](_0x4c90af,_0x30cd43);}['getSuggestionCallback'](_0x483ab3,_0x1e6799,_0x3f2295){const _0x276906=_0x483ab3+':'+_0x1e6799+':'+_0x3f2295;return this['_customCallbacks']['get'](_0x276906)||this['_defaultCallbacks']['get'](_0x483ab3+':'+_0x3f2295);}['_registerDefaultCallbacks'](){const _0x1d331=()=>!0x1,_0x31f2ef=_0x1df9c8=>{_0x1df9c8['sort']((_0x265404,_0x13e9ed)=>_0x265404['start']['isBefore'](_0x13e9ed['start'])?0x1:-0x1),this['_model']['change'](_0x300242=>{for(const _0x15abb8 of _0x1df9c8){let _0x878c04;_0x878c04=_0x15abb8['end']['isAtEnd']&&_0x15abb8['end']['parent']==_0x15abb8['start']['nodeAfter']?_0x300242['createSelection'](_0x15abb8['start']['nodeAfter'],'on'):_0x300242['createSelection'](_0x15abb8),this['_model']['deleteContent'](_0x878c04,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x341e5b=(_0x463f28,_0x215061)=>{_0x215061&&this['_model']['change'](_0x100b5e=>{const {commandName:_0x11c8d8,commandParams:_0x4c9508=[]}=_0x215061,_0x16669e=_0x463f28['map'](_0xd33415=>(Kt(_0xd33415)&&(_0xd33415=this['_model']['createRange'](_0xd33415['end'])),_0xd33415))['filter'](_0xc96d94=>'$graveyard'!==_0xc96d94['root']['rootName']);if(_0x16669e['length']<0x1)return;const _0x13a89b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1cc2c1=>_0x41285e['fromRange'](_0x1cc2c1));_0x100b5e['setSelection'](_0x16669e);for(const _0x155155 of this['_editor']['commands']['commands']())_0x155155['refresh']();_0x4c9508['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x11c8d8,..._0x4c9508);const _0x3b3a68=_0x13a89b['filter'](_0x465cff=>'$graveyard'!=_0x465cff['root']['rootName']);_0x3b3a68['length']>0x0&&_0x100b5e['setSelection'](_0x3b3a68);for(const _0x5fe88e of _0x13a89b)_0x5fe88e['detach']();});},_0x5bfd09=(_0x19fb89,_0x1bb1e2)=>0x1==_0x19fb89['length']&&0x1==_0x1bb1e2['length']&&_0x19fb89[0x0]['end']['isEqual'](_0x1bb1e2[0x0]['start']),_0x298b0a=(_0x4dddf9,_0x4fc232,_0x1b7b84,_0x1883c9)=>nn(_0x4dddf9,_0x4fc232,_0x1b7b84,_0x1883c9)?[_0x4dddf9,_0x4fc232]:nn(_0x4fc232,_0x4dddf9,_0x1883c9,_0x1b7b84)?[_0x4fc232,_0x4dddf9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1d331),this['_defaultCallbacks']['set']('insertion:discard',_0x31f2ef),this['_defaultCallbacks']['set']('insertion:join',_0x5bfd09),this['_defaultCallbacks']['set']('insertion:chain',_0x298b0a),this['_defaultCallbacks']['set']('deletion:accept',_0x31f2ef),this['_defaultCallbacks']['set']('deletion:discard',_0x1d331),this['_defaultCallbacks']['set']('deletion:join',_0x5bfd09),this['_defaultCallbacks']['set']('deletion:chain',_0x298b0a),this['_defaultCallbacks']['set']('formatInline:accept',_0x341e5b),this['_defaultCallbacks']['set']('formatInline:discard',_0x1d331),this['_defaultCallbacks']['set']('formatInline:join',_0x5bfd09),this['_defaultCallbacks']['set']('formatInline:chain',_0x1d331),this['_defaultCallbacks']['set']('formatBlock:accept',_0x341e5b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1d331),this['_defaultCallbacks']['set']('formatBlock:join',_0x5bfd09),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1d331),this['_defaultCallbacks']['set']('attribute:accept',_0x1d331),this['_defaultCallbacks']['set']('attribute:discard',(_0x4a3f45,_0x125e20)=>{if(!_0x125e20)return;const _0x5cfdd3=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1de2a8=>{if(_0x125e20['key']==m)for(const _0x4b018b of _0x4a3f45){const _0x2ca131=_0x4b018b['start']['nodeAfter'],_0x2dd626=_0x125e20['oldValue'];_0x1de2a8['rename'](_0x2ca131,_0x2dd626);}else{if(_0x5cfdd3['_isBlockAttribute'](_0x125e20['key'])){for(const _0x1b43b5 of _0x4a3f45)void 0x0!==_0x125e20['oldValue']?_0x1de2a8['setAttribute'](_0x125e20['key'],_0x125e20['oldValue'],_0x1b43b5['start']['nodeAfter']):_0x1de2a8['removeAttribute'](_0x125e20['key'],_0x1b43b5['start']['nodeAfter']);}else{for(const _0x2606a4 of _0x4a3f45)_0x125e20['oldValue']?_0x1de2a8['setAttribute'](_0x125e20['key'],_0x125e20['oldValue'],_0x2606a4):_0x1de2a8['removeAttribute'](_0x125e20['key'],_0x2606a4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5bfd09);}}function zt(_0x2a3e66,_0x529618,_0x384c43){for(const _0x37c2ce of _0x529618['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x37c2ce['root']==_0x37c2ce)return!0x1;if(!_0x384c43['containsItem'](_0x37c2ce))return!0x1;if(_0x2a3e66['isObject'](_0x37c2ce)||_0x2a3e66['isLimit'](_0x37c2ce))return!0x0;}return!0x1;}function Kt(_0x3199f6){return _0x3199f6['end']['parent']==_0x3199f6['start']['nodeAfter']&&_0x3199f6['end']['isAtStart'];}function Wt(_0x28ecb2,_0x10da3e,_0xbdc729,_0x43f670){const _0x4d35c7=_0x184f9c=>!_0x184f9c['item']['is']('$textProxy')&&!_0x43f670['isObject'](_0x184f9c['item']),_0x5015a7=_0x28ecb2['start']['getLastMatchingPosition'](_0x4d35c7),_0x3cb731=_0x28ecb2['end']['getLastMatchingPosition'](_0x4d35c7,{'direction':'backward'});return(!_0x28ecb2['start']['isEqual'](_0x5015a7)||!_0x28ecb2['end']['isEqual'](_0x3cb731))&&(_0x5015a7['isBefore'](_0x3cb731)?_0xbdc729['updateMarker'](_0x10da3e,{'range':_0xbdc729['createRange'](_0x5015a7,_0x3cb731)}):_0xbdc729['removeMarker'](_0x10da3e),!0x0);}function Ht(_0x3de8bc){return _0xd0c3f2(_0x3de8bc);}function Qt(_0x314667){const _0x5251d6=_0x314667['start']['nodeAfter'];return _0x5251d6&&_0x5251d6['is']('element');}function Xt(_0x262440){return Kt(_0x262440)||function(_0x19f0d0){return _0x19f0d0['start']['parent']==_0x19f0d0['end']['nodeBefore']&&_0x19f0d0['start']['isAtEnd'];}(_0x262440);}function Yt(_0x25fec8,_0x4a1ea3){try{const _0x28a273=_0x25fec8['getRange']();for(const _0xaf938a of _0x4a1ea3)if(_0x25fec8!==_0xaf938a&&_0x28a273&&_0x28a273['isIntersecting'](_0xaf938a['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x3e45b2,_0x25257e){return null==_0x3e45b2['end']['nodeBefore']&&_0x3e45b2['end']['parent']==_0x3e45b2['start']['nodeAfter']?tn(_0x3e45b2['start']['nodeAfter'],_0x25257e):_0x3e45b2;}function tn(_0x25fddc,_0xfb31dd){const _0x401f5d=_0xfb31dd['schema']['isObject'](_0x25fddc)||_0xfb31dd['schema']['isSelectable'](_0x25fddc);return _0xfb31dd['createRange'](_0xfb31dd['createPositionAt'](_0x25fddc,'before'),_0x401f5d?_0xfb31dd['createPositionAfter'](_0x25fddc):_0xfb31dd['createPositionAt'](_0x25fddc,'end'));}function nn(_0x340ebf,_0x5f83df,_0x48ec01,_0x30991f){return!!en(_0x340ebf,_0x5f83df)&&_0x48ec01['end']['isEqual'](_0x30991f['start']);}function en(_0xf8e7e,_0x4d32c4){if(!_0xf8e7e['_isDataLoaded']||!_0x4d32c4['_isDataLoaded'])return!0x1;const _0x257e23=new Set(Object['keys'](_0xf8e7e['attributes'])),_0x621fef=new Set(Object['keys'](_0x4d32c4['attributes']));if(_0x257e23['delete']('groupId'),_0x621fef['delete']('groupId'),0x0==_0x257e23['size']&&0x0==_0x621fef['size'])return!0x0;if(_0x257e23['size']!=_0x621fef['size'])return!0x1;const _0xe7bd5c={..._0xf8e7e['attributes']},_0x2242a3={..._0x4d32c4['attributes']};return delete _0xe7bd5c['groupId'],delete _0x2242a3['groupId'],JSON['stringify'](_0xe7bd5c)==JSON['stringify'](_0x2242a3);}function sn(_0x796538,_0xf4f488){const _0x1c3179=on(_0x796538['attributes']),_0x1af498=on(_0xf4f488);if(!_0x796538['_isDataLoaded'])return!0x1;for(const _0xc5a3f of Object['keys'](_0x1af498))if(!_0x3d47c3(_0x1c3179[_0xc5a3f],_0x1af498[_0xc5a3f]))return!0x1;return!0x0;}function on(_0x493545){const _0x384347=Object['assign']({},_0x493545);return delete _0x384347['skipNestingCheck'],delete _0x384347['tablePasteChainId'],_0x384347;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x14b986(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1a34a9,_0x429132,_0x2e3600,_0x1ba086){super(),this['model']=_0x429132,this['view']=_0x2e3600,this['commentThreadController']=_0x1ba086,this['_editor']=_0x1a34a9,this['_acceptCommand']=_0x1a34a9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1a34a9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xb642c2,_0x4cb7d2)=>_0xb642c2||_0x4cb7d2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3efad5=>_0x3efad5&&this['_editor']['model']['canEditAt'](_0x429132['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x171cc0=>_0x171cc0&&this['_editor']['model']['canEditAt'](_0x429132['getRanges']())),this['_pendingAction']=null,_0x2e3600['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2e3600,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2e3600,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2e3600,'change:isDirty',()=>{_0x2e3600['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 _0x3c6c52=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3c6c52);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x1fe705{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x43ac39,_0x22ab8a,_0x2ea4ae,_0x75a960){super(_0x43ac39),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x28f078(_0x43ac39,o(_0x43ac39,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x22ab8a['authoredAt']),this['bind']('authoredAt')['to'](_0x22ab8a),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',_0x22ab8a,'authoredAt',this,'descriptionParts',(_0x3dd24d,_0x26bd86,_0xb30965)=>{const _0x4ba2df=_0xb30965['map'](_0x46cba7=>ls(_0x46cba7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3dd24d-0x1,_0x22ab8a['author']['name'],_0x26bd86?_0x75a960['formatDateTime'](_0x26bd86):'',new DOMParser()['parseFromString'](_0x4ba2df,'text/html')['body']['textContent']]);}),this['focusables']=new _0x9df8f7(),this['focusTracker']=new _0x3b7683(),this['keystrokes']=new _0x2fc584(),this['focusCycler']=new _0xa82aed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x172641=>_0x172641['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x22ab8a,this['_localUser']=_0x2ea4ae,this['_config']=_0x75a960,_0x75a960['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x509464(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x805d97}=this['_config'];this['commentsListView']=new _0x805d97(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',_0x5a8294=>_0x5a8294+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2f636e,_0x37c55f)=>_0x2f636e||!!_0x37c55f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xb6d20c}=this['_config'],_0x254156=new _0xb6d20c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x21ab90=_0x254156['commentInputView'];return _0x254156['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x21ab90,'value',(_0x49a090,_0x4ef496,_0x1178b0)=>!!_0x1178b0||_0x49a090&&!_0x4ef496),_0x21ab90['on']('submit',(_0x5adeae,_0x9342ba)=>{this['fire']('addComment',_0x9342ba),_0x21ab90['editor']['setData']('');}),_0x21ab90['on']('cancel',()=>this['focus']()),_0x21ab90['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x254156;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x2617d4,_0x56b8d2,_0x2b9404,_0x5a2edf){super(_0x2617d4,_0x56b8d2,_0x2b9404,_0x5a2edf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x45dab0=>_0x45dab0&&_0x45dab0[0x0]?_0x45dab0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x46580f,_0x41e74f)=>{let _0x5e26a7='';for(const _0xe79921 of _0x46580f)_0x5e26a7+='<p>'+ls(_0xe79921['content'],_0xe79921['color'])+'</p>';return _0x41e74f?_0x5e26a7:_0x32a20f(_0x5e26a7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5a2edf['SuggestionView'](_0x2617d4,_0x56b8d2,{'formatDateTime':_0x5a2edf['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 _0x45c101=this['bindTemplate'],_0x5826cc=[this['suggestionView']];return this['commentsListView']&&_0x5826cc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5826cc['push'](this['commentThreadInputView']),_0x5826cc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x45c101['if']('isActive','ck-suggestion-wrapper--active'),_0x45c101['to']('type',_0x567506=>'ck-suggestion-'+_0x567506),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':_0x45c101['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5826cc};}['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 _0x1fe705{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x378046,_0x324f75,_0x5e60da){super(_0x378046),this['_model']=_0x324f75,this['_config']=_0x5e60da,this['set']('description',''),this['bind']('authoredAt')['to'](_0x324f75),this['acceptButton']=this['_createButton'](o(_0x378046,'Accept\x20suggestion'),_0x4a3aea,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x378046,'Discard\x20suggestion'),_0x20c60d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x48f6bc(_0x378046,_0x324f75['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x9df8f7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3b7683(),this['keystrokes']=new _0x2fc584(),this['focusCycler']=new _0xa82aed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3788c2=>_0x3788c2['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2206fc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2206fc['innerHTML']=this['description'],this['on']('change:description',(_0x23b2f8,_0x51cdee,_0x1ed6c2)=>{_0x2206fc['innerHTML']=_0x1ed6c2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x35e46e=this['bindTemplate'],_0x14a5e4=[{'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':_0x35e46e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x35e46e['to']('authoredAt',_0xd8761a=>this['_config']['formatDateTime'](_0xd8761a))}]}]},{'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']&&_0x14a5e4['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':_0x14a5e4}]};}['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'](_0xcb4ccc,_0x33a5b6,_0x46145a,_0x2f1797,_0x1cbbc3){const _0x2def30=new _0x203ca2(this['locale']);return _0x2def30['set']({'label':_0xcb4ccc,'icon':_0x33a5b6,'tooltip':!0x0,'tooltipPosition':_0x1cbbc3}),_0x2def30['extendTemplate']({'attributes':{'class':_0x46145a}}),_0x2def30['on']('execute',()=>{this['fire'](_0x2f1797,this['_model']['id']);}),_0x2def30;}['_setupKeyboardNavigation'](){const _0x274018=this['element'];this['keystrokes']['listenTo'](_0x274018);for(const _0x37e178 of this['focusables'])this['focusTracker']['add'](_0x37e178['element']),this['keystrokes']['listenTo'](_0x37e178['element']);this['keystrokes']['set']('enter',(_0x438563,_0x41a388)=>{_0x274018===_0x438563['target']&&(this['focusCycler']['focusFirst'](),_0x41a388());}),this['keystrokes']['set']('esc',(_0x21196b,_0x362b98)=>{_0x274018!==_0x21196b['target']&&(this['focus'](),_0x362b98());});}}class u extends _0x4f24f5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3089c7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47bf9a){super(_0x47bf9a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3947ad=this['editor']['config'];_0x3947ad['define']('trackChanges.SuggestionThreadView',fe),_0x3947ad['define']('trackChanges.SuggestionView',we),_0x3947ad['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3947ad['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x68cb3a,_0x505b10){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x855362,_0x88082e]of this['_handleControllerBuffer']){const _0x2ef49e=this['_suggestionToController']['has'](_0x855362);_0x2ef49e||_0x88082e?_0x2ef49e&&_0x88082e&&this['_destroyController'](_0x855362):this['_initializeController'](_0x855362);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x68cb3a,_0x505b10);}['init'](){const _0x1dd8f0=this['editor'],_0x5f53b7=_0x1dd8f0['plugins']['get']('TrackChangesEditing'),_0x2cfb41=_0x1dd8f0['plugins']['get']('Annotations'),_0x4c99ef=_0x1dd8f0['plugins']['get']('EditorAnnotations'),_0xaa2c97=_0x1dd8f0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4c99ef['addSourceCollector'](()=>{const _0x569533=[];for(const [_0x499066,_0x40697c]of Array['from'](this['_suggestionToController'])){const _0x4d8790=_0x499066['getAllAdjacentSuggestions'](),_0x49a0a3=[];for(const _0x4eb3ac of _0x4d8790){if(!_0x4eb3ac['isInContent'])continue;if(_0x4eb3ac['isMultiRange']){_0x49a0a3['push'](..._0x4eb3ac['getRanges']());continue;}const _0x2fe5da=_0x4eb3ac['getFirstRange']();if(_0x49a0a3['length']>0x0){const _0x5e6818=_0x49a0a3[0x0]['getJoined'](_0x2fe5da);if(_0x5e6818){_0x49a0a3[0x0]=_0x5e6818;continue;}}_0x49a0a3['push'](_0x2fe5da);}_0x569533['push']([_0x40697c['view'],_0x49a0a3]);}return _0x569533;}),this['listenTo'](_0x5f53b7,'suggestionLoaded',(_0x1c0022,_0x52e14d)=>{this['listenTo'](_0x52e14d,'change:previous',(_0x1b60a1,_0x535af4,_0x2526c0,_0x13ed95)=>{_0x52e14d['isInContent']&&(null==_0x2526c0?(this['_updateController'](_0x13ed95['head']),this['_handleSuggestionControllerDelayed'](_0x52e14d,!0x1)):(this['_updateController'](_0x2526c0['head']),null==_0x13ed95&&this['_handleSuggestionControllerDelayed'](_0x52e14d,!0x0)));}),null!==_0x52e14d['previous']?this['_updateController'](_0x52e14d['head']):this['_handleSuggestionControllerDelayed'](_0x52e14d,!0x1);}),this['listenTo'](_0x5f53b7,'suggestionUnloaded',(_0x410f55,_0x34cf21,_0x5792e4)=>{this['stopListening'](_0x34cf21,'change:previous'),this['_handleControllerBuffer']['delete'](_0x34cf21),this['_suggestionToController']['has'](_0x34cf21)&&this['_destroyController'](_0x34cf21),_0x5792e4&&this['_updateController'](_0x5792e4['head']);}),this['listenTo'](_0x5f53b7,'suggestionChanged',(_0x433e70,_0x31fd5f)=>{this['_updateController'](_0x31fd5f);}),this['listenTo'](_0x2cfb41,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xaa2c97,'addComment',(_0x17825e,{threadId:_0x5b9038,isFromAdapter:_0x5446b3})=>{if(_0x5446b3||!_0x5f53b7['hasSuggestion'](_0x5b9038))return;const _0x130db9=_0x5f53b7['getSuggestion'](_0x5b9038);this['_suggestionToController']['get'](_0x130db9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x17dfec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37d175;for(const _0x24d8a3 in _0x17dfec){const _0x4f348e=_0x24d8a3,_0x89fcf9=_0x17dfec[_0x4f348e];if('trackChangesLicenseKeyValid'==_0x89fcf9||'trackChangesLicenseKeyInvalid'==_0x89fcf9||'trackChangesLicenseKeyExpired'==_0x89fcf9||'trackChangesLicenseKeyDomainLimit'==_0x89fcf9||'trackChangesLicenseKeyNotAllowed'==_0x89fcf9||'trackChangesLicenseKeyEvaluationLimit'==_0x89fcf9||'trackChangesLicenseKeyUsageLimit'==_0x89fcf9){delete _0x17dfec[_0x4f348e],_0x37d175=_0x89fcf9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x37d175&&_0x17dfec['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x37d175&&_0x17dfec['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x37d175&&_0x17dfec['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x37d175&&_0x17dfec['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x37d175&&_0x17dfec['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x37d175&&_0x17dfec['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x385d9c){const _0x2a0352=this['_suggestionToController']['get'](_0x385d9c);if(!_0x2a0352)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x2a0352['view'])||null;}['getSuggestionForAnnotation'](_0x17091){const _0x26ab18=this['_viewToController']['get'](_0x17091['innerView']);return _0x26ab18?_0x26ab18['model']:null;}['_refreshActiveMarkers'](){const _0x55a55f=this['editor']['plugins']['get']('Annotations'),_0x40ae5f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f7673=Array['from'](_0x55a55f['activeAnnotations'],_0x48c926=>_0x48c926['innerView'])['filter'](_0x574152=>this['_viewToController']['has'](_0x574152)),_0x48f3d8=[];for(const _0x3e52fd of _0x4f7673){const _0x36844e=this['_viewToController']['get'](_0x3e52fd)['model']['getAllAdjacentSuggestions']();_0x48f3d8['push'](..._0x36844e['reduce']((_0x4549f7,_0x530228)=>[..._0x4549f7,..._0x530228['getMarkerNames']()],[]));}_0x40ae5f['activeMarkers']=_0x48f3d8;}['_addUIComponentsToFactory'](){const _0x324e76=this['editor'],_0xe91ed8=_0x324e76['locale'],_0x191352=o(_0xe91ed8,'Track\x20changes'),_0x57f5ad=new _0x37bcfb([{'type':'switchbutton','model':new _0x15bc41({'withText':!0x0,'isToggleable':!0x0,'label':_0x191352,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x15bc41({'withText':!0x0,'label':o(_0xe91ed8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15bc41({'withText':!0x0,'label':o(_0xe91ed8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15bc41({'withText':!0x0,'label':o(_0xe91ed8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15bc41({'withText':!0x0,'label':o(_0xe91ed8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x324e76['plugins']['has']('TrackChangesPreview')&&_0x57f5ad['addMany']([{'type':'separator'},{'type':'button','model':new _0x15bc41({'withText':!0x0,'label':o(_0xe91ed8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1f2cb2 of _0x57f5ad)if(ke(_0x1f2cb2)){const _0x2d3266=_0x324e76['commands']['get'](_0x1f2cb2['model']['commandName']);_0x1f2cb2['model']['bind']('isOn','isEnabled')['to'](_0x2d3266,'value','isEnabled');}_0x324e76['ui']['componentFactory']['add']('trackChanges',_0x4e6949=>this['_createToolbarButton'](_0x4e6949,_0x57f5ad,_0x191352)),_0x324e76['ui']['componentFactory']['add']('menuBar:trackChanges',_0x54b12f=>this['_createMenuBarMenu'](_0x54b12f,_0x57f5ad,_0x191352));}['_createToolbarButton'](_0x57b4a5,_0x2cd009,_0x4ca090){const _0x432f41=_0x339ff7(_0x57b4a5,_0x4e70c0),_0x1e7a8f=this['editor']['commands']['get']('trackChanges');_0x432f41['buttonView']['set']({'tooltip':_0x4ca090,'label':_0x4ca090,'icon':_0x16f65c}),_0x432f41['buttonView']['bind']('isOn')['to'](_0x1e7a8f,'value'),_0x432f41['buttonView']['on']('execute',()=>{_0x1e7a8f['execute'](),this['editor']['editing']['view']['focus']();}),_0x34bce8(_0x432f41,_0x2cd009,{'role':'menu'});const _0x2900c6=[];for(const _0x501a57 of _0x2cd009)ke(_0x501a57)&&_0x2900c6['push'](this['editor']['commands']['get'](_0x501a57['model']['commandName']));const _0x4edf11=_0x432f41['buttonView'];return _0x4edf11['actionView']['unbind']('isEnabled'),_0x4edf11['arrowView']['unbind']('isEnabled'),_0x4edf11['actionView']['bind']('isEnabled')['to'](_0x1e7a8f,'isEnabled'),_0x4edf11['arrowView']['bind']('isEnabled')['toMany'](_0x2900c6,'isEnabled',(..._0x56595e)=>_0x56595e['some'](_0x46165d=>_0x46165d)),_0x432f41['on']('execute',_0x6ed3f3=>{this['editor']['execute'](_0x6ed3f3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x432f41;}['_createMenuBarMenu'](_0x3bdab0,_0x3e75c8,_0x7b005b){const _0x536f92=new _0x5829f1(_0x3bdab0),_0x556b71=this['editor']['commands']['get']('trackChanges');_0x536f92['buttonView']['set']({'label':_0x7b005b,'icon':_0x16f65c});const _0x9229d6=new _0x5ba2a1(_0x3bdab0);for(const _0x56b49f of _0x3e75c8){if('separator'==_0x56b49f['type']){_0x9229d6['items']['add'](new _0x14e71f(_0x3bdab0));continue;}const _0x1531ac=new _0x23c318(_0x3bdab0,_0x536f92),_0x3f8578=new _0x47c1c8(_0x3bdab0),_0x32f4d7=_0x56b49f['model'];_0x3f8578['bind'](...Object['keys'](_0x32f4d7))['to'](_0x32f4d7),_0x3f8578['delegate']('execute')['to'](_0x536f92),_0x3f8578['on']('execute',()=>{this['editor']['execute'](_0x32f4d7['commandName']),this['editor']['editing']['view']['focus']();}),_0x1531ac['children']['add'](_0x3f8578),_0x9229d6['items']['add'](_0x1531ac);}return _0x536f92['bind']('isEnabled')['to'](_0x556b71,'isEnabled'),_0x536f92['panelView']['children']['add'](_0x9229d6),_0x536f92;}['_initializeController'](_0x4cb9f4){const _0x48e3c4=this['editor'],_0x12ac28=_0x48e3c4['config'],_0x119ab5=_0x48e3c4['plugins']['get']('Annotations'),_0x11a6fb=_0x48e3c4['plugins']['get']('CommentsRepository'),_0x48d309=_0x48e3c4['plugins']['get']('EditorAnnotations'),_0x177eeb=_0x48e3c4['plugins']['get'](_0x3089c7)['me'],_0x51abcf=_0x12ac28['get']('trackChanges')['SuggestionThreadView'],_0x5c680d=_0x12ac28['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3fab1a,CommentThreadInputView:_0x5361f4}=_0x48e3c4['plugins']['get']('CommentsUI');let _0x4a886d,_0x2f6cd7,_0x577925;this['_annotationViews']['has'](_0x4cb9f4['id'])?(_0x2f6cd7=this['_annotationViews']['get'](_0x4cb9f4['id']),_0x4a886d=_0x2f6cd7['mainView']):(_0x4a886d=new _0x51abcf(_0x48e3c4['locale'],_0x4cb9f4,_0x177eeb,{'disableComments':this['_disableComments'],'editorConfig':{..._0x12ac28['get']('comments.editorConfig'),'licenseKey':_0x12ac28['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x12ac28['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x12ac28['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x12ac28['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x411be3(_0x12ac28['get']('locale'),_0x48e3c4['locale']),'CommentView':_0x12ac28['get']('comments')['CommentView'],'CommentsListView':_0x3fab1a,'CommentThreadInputView':_0x5361f4,'SuggestionView':_0x5c680d}),_0x4a886d['suggestionView']['acceptButton']['on']('execute',()=>{_0x48e3c4['editing']['view']['focus']();}),_0x4a886d['suggestionView']['discardButton']['on']('execute',()=>{_0x48e3c4['editing']['view']['focus']();}),_0x2f6cd7=_0x119ab5['createAnnotationView'](this['editor']['locale'],_0x4a886d),_0x2f6cd7['bind']('isDirty')['to'](_0x4a886d,'isDirty'),_0x2f6cd7['bind']('length')['to'](_0x4a886d),_0x2f6cd7['bind']('type')['to'](_0x4a886d,'type',_0x3d6025=>'suggestion-'+_0x3d6025),_0x4a886d['on']('escape',()=>{_0x577925['fire']('escape');}),this['_annotationViews']['set'](_0x4cb9f4['id'],_0x2f6cd7));const _0x18d5ab=_0x11a6fb['createCommentThreadController'](_0x4cb9f4['commentThread'],_0x4a886d),_0x4edf52=new pe(_0x48e3c4,_0x4cb9f4,_0x4a886d,_0x18d5ab),_0x24371a=_0x4cb9f4['getAllAdjacentSuggestions']()['filter'](_0x24b8d7=>_0x24b8d7['isInContent']);_0x4a886d['descriptionParts']=_0x48e3c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x24371a),this['_suggestionToController']['set'](_0x4cb9f4,_0x4edf52),this['_viewToController']['set'](_0x4a886d,_0x4edf52);const _0x4357e7=()=>{const _0x2a4db6=[],_0xbf5247=_0x4cb9f4['getAllAdjacentSuggestions']()['filter'](_0x503be2=>_0x503be2['isInContent']);for(const _0x110d97 of _0xbf5247)_0x2a4db6['push'](..._0x110d97['getMarkers']());return _0x2ead08(_0x48e3c4['editing'],_0x2a4db6);};_0x577925=_0x119ab5['createAnnotation']({'view':_0x2f6cd7,'target':_0x4357e7,'type':()=>'suggestion-'+_0x4edf52['view']['type'],'isVisible':!!_0x4357e7()}),_0x11a6fb['_bindAnnotationToEditors'](_0x4a886d,_0x577925),_0x119ab5['add'](_0x577925),_0x48d309['registerAnnotation'](_0x577925);}['_destroyController'](_0x2bf63e){const _0x4b437b=this['editor']['plugins']['get']('CommentsRepository'),_0x1e11a9=this['editor']['plugins']['get']('Annotations'),_0x3df8ee=this['_suggestionToController']['get'](_0x2bf63e),_0x3a103f=_0x3df8ee['view'],_0x403b2b=_0x1e11a9['getByInnerView'](_0x3a103f);_0x4b437b['_unbindEditors'](_0x3a103f),_0x403b2b&&_0x1e11a9['remove'](_0x403b2b),this['_suggestionToController']['delete'](_0x2bf63e),this['_viewToController']['delete'](_0x3a103f),_0x3df8ee['destroy']();}['_updateController'](_0x3f82d2){if(!_0x3f82d2['isInContent']||!this['_suggestionToController']['has'](_0x3f82d2))return;const _0x13ffe3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x175a7a=this['_suggestionToController']['get'](_0x3f82d2),_0x5a98bb=_0x3f82d2['getAllAdjacentSuggestions']();_0x175a7a['view']['descriptionParts']=_0x13ffe3['descriptionFactory']['getDescriptions'](_0x5a98bb);}['destroy'](){for(const _0x2d613c of this['_suggestionToController']['keys']())this['_destroyController'](_0x2d613c);for(const _0x53c845 of this['_annotationViews']['values']())_0x53c845['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x22c513){return'model'in _0x22c513;}class Ne extends _0x4f24f5{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2d0bcf){this['editor']['plugins']['get'](d)['adapter']=_0x2d0bcf;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1ba8d1){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1ba8d1);}['getSuggestions']({skipNotAttached:_0x2476f1=!0x1,toJSON:_0xd23e0d=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2476f1,'toJSON':_0xd23e0d});}['getSuggestion'](_0x15710e){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x15710e);}}const p=['Pagination'];class re extends _0x4f24f5{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3c9225=this['editor'];if(_0x3c9225['config']['define']('trackChangesData.editorCreator',_0x59b480=>{const _0x3cf4ed=_0x3c9225['model']['document']['getRootNames']()['reduce']((_0x159147,_0x284d55)=>(_0x159147[_0x284d55]='',_0x159147),{});return _0x3c9225['constructor']['create'](_0x3cf4ed,_0x59b480);}),'function'!=typeof _0x3c9225['config']['get']('trackChangesData')['editorCreator'])throw new _0x4323ac('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x16f230){return P(this['editor'],!0x0,_0x16f230);}['getDataWithDiscardedSuggestions'](_0x475203){return P(this['editor'],!0x1,_0x475203);}}class Fe extends _0x4f24f5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d9b4b){function _0x194552(_0x2c2541){return _0x2c2541['map'](_0x1dd374=>String['fromCharCode'](_0x1dd374))['join']('');}super(_0x4d9b4b),this['result']='end',_0x4d9b4b[_0x194552([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x194552([0x76,0x69,0x65,0x77])][_0x194552([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x194552([0x61,0x75,0x74,0x6f]),_0x4d9b4b[_0x194552([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x194552([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x194552([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x194552([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x194552([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(_0x5bb0d6){return void 0x0!==_0x5bb0d6['getRootsAttributes'];}async function P(_0x4500af,_0x4b4fb2,_0x2e578e){const _0x463da8=_0x8d035(_0x4500af,p);_0x463da8['plugins']['push'](d,Fe),_0x463da8['rootsAttributes']=De(_0x4500af)?_0x4500af['getRootsAttributes']():void 0x0;const _0x462eca=document['createDocumentFragment'](),_0x47941a=_0x4500af['config']['get']('trackChangesData')['editorCreator'],_0x212bbd=await _0x47941a(_0x463da8,()=>function(_0x2f444e){const _0x12055a=document['createElement']('div');return _0x2f444e['appendChild'](_0x12055a),_0x12055a;}(_0x462eca));!function(_0xd44a19,_0x4b1e28){const _0x3d522e=_0xd44a19['model']['document']['getRootNames']()['reduce']((_0x4481b2,_0x8bcf25)=>(_0x4481b2[_0x8bcf25]=_0xd44a19['data']['get']({'rootName':_0x8bcf25}),_0x4481b2),{}),_0x9ef93e=_0xd44a19['plugins']['get']('Users')['users']['map'](_0x361a77=>({'id':_0x361a77['id'],'name':_0x361a77['name']})),_0x4076ce=_0xd44a19['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2bf4e4=_0xd44a19['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x836bd3=_0x4b1e28['plugins']['get']('Users'),_0x137a21=_0x4b1e28['plugins']['get']('TrackChangesEditing'),_0x409bd1=_0x4b1e28['plugins']['get']('CommentsRepository');for(const _0x49743f of _0x409bd1['getCommentThreads']())_0x49743f['remove']();for(const _0x5c1932 of _0x9ef93e)_0x836bd3['getUser'](_0x5c1932['id'])||_0x836bd3['addUser'](_0x5c1932);_0x836bd3['me']||_0x836bd3['useAnonymousUser']();for(const _0x237970 of _0x2bf4e4)_0x409bd1['addCommentThread'](_0x237970);for(const _0x516257 of _0x4076ce)_0x137a21['addSuggestionData'](_0x516257);_0x4b1e28['data']['set'](_0x3d522e);}(_0x4500af,_0x212bbd),_0x212bbd['execute'](_0x4b4fb2?'acceptAllSuggestions':'discardAllSuggestions');const _0x3a46f3=De(_0x212bbd)?_0x212bbd['getFullData'](_0x2e578e):_0x212bbd['data']['get'](_0x2e578e);return await _0x212bbd['destroy'](),_0x3a46f3;}class Me extends _0x1fe705{['options'];constructor(_0x2b0de0,_0x1dc39f){super(_0x2b0de0),this['options']=_0x1dc39f,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'](_0xb3fd5e,_0xc84720){if(!this['element'])return;const _0x4b48f3=[];for(const [_0x186f99,_0x36e269]of _0xb3fd5e){const _0x40a03d=document['createElement']('div');_0x40a03d['setAttribute']('data-ck-root-name',_0x186f99),_0x40a03d['className']=_0x36e269['classes']+'\x20ck-track-changes-preview__root-container',_0x40a03d['innerHTML']=_0x36e269['content'],_0x4b48f3['push'](_0x40a03d);}_0xc84720(this['element'],_0x4b48f3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x23b7b0{constructor(_0x15776d){super(_0x15776d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xa86090=this['editor'],_0x488909=_0xa86090['locale'],_0x147eb5=_0xa86090['plugins']['get']('Dialog');let _0x1cbffd;const _0x3f0569=function(_0x57a01a){const _0x346a49={};if('editables'in _0x57a01a['ui']['view']){for(const [_0x3ddff1,_0x1958eb]of Object['entries'](_0x57a01a['ui']['view']['editables']))_0x346a49[_0x3ddff1]=_0x1958eb['element'];}else _0x346a49[_0x57a01a['model']['document']['getRootNames']()[0x0]]=_0x57a01a['ui']['view']['editable']['element'];return _0x346a49;}(_0xa86090),_0x6822cd=function(_0x3b9a02){let _0x1c5634=0x0;for(const _0x46178e of Object['values'](_0x3b9a02))_0x1c5634=Math['max'](_0x1c5634,_0x46178e['getBoundingClientRect']()['width']);let _0x5459c4=0x0;for(const _0x27c755 of Object['values'](_0x3b9a02))_0x5459c4+=_0x27c755['getBoundingClientRect']()['height'];const _0x2ff861=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xa7f1a9=Math['min'](_0x5459c4,_0x2ff861);return{'width':_0x1c5634,'height':_0xa7f1a9};}(_0x3f0569);_0x147eb5['show']({'id':'finalContentPreview','title':o(_0x488909,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x488909,{'dialogRects':_0x6822cd}),'onHide':()=>{_0x1cbffd['detachFromDom']();},'onShow':()=>{_0xa86090['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x14f428=>{const _0x189236=this['_standarizeRootsData'](_0x14f428,_0xa86090,_0x3f0569);_0x147eb5['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x189236,_0xa86090['config']['get']('trackChanges.preview.renderFunction'));}),_0x1cbffd=new _0x10fa19(_0x488909,[_0x147eb5['view']]),_0x1cbffd['attachToDom'](),_0x1cbffd['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xa86090['once']('destroy',()=>{_0x1cbffd['detachFromDom']();});const _0x1aab95=_0x147eb5['view']['headerView']['class'];_0x147eb5['view']['headerView']['class']=_0x1aab95?_0x1aab95+'\x20ck-reset_all':'ck-reset_all',_0x147eb5['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x147eb5['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x294452=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x39cda6=_0x294452['previewMode'],_0xf65167={};if('$labels'===_0x39cda6){for(const _0x148035 of _0x294452['getMergeFieldsIds']())_0xf65167[_0x148035]=_0x294452['getLabel'](_0x148035)||_0x148035;}else{const _0x193599='$defaultValues'===_0x39cda6?_0x294452['getDefaultValues']():_0x294452['getDataSetValues'](_0x39cda6,!0x0);for(const _0x2aece9 of Object['entries'](_0x193599)){const [_0x33194f,_0x395dcb]=_0x2aece9;_0xf65167[_0x33194f]=null!==_0x395dcb?_0x395dcb:_0x294452['getLabel'](_0x33194f)||_0x33194f;}}return{'mergeFieldsData':_0xf65167};}['_standarizeRootsData'](_0x42a46d,_0x10d922,_0x4d6a96){let _0x1e2103;if('string'==typeof _0x42a46d){const _0x5afe6f=_0x10d922['model']['document']['getRootNames']()[0x0];_0x1e2103={[_0x5afe6f]:_0x42a46d};}else _0x1e2103=_0x42a46d;const _0x2f53d8=this['_fixMediaEmbeds'](_0x1e2103,_0x10d922),_0x508298=function(_0x36aa5d,_0x594971){for(const [_0x556947,_0x1ad154]of _0x36aa5d)_0x1ad154['classes']=_0x594971[_0x556947]['classList']['value']['replace']('ck-focused','');return _0x36aa5d;}(this['_sortRoots'](_0x10d922)['reduce']((_0x4388de,_0x11daa9)=>(_0x4388de['push']([_0x11daa9,{'content':_0x2f53d8[_0x11daa9],'classes':''}]),_0x4388de),[]),_0x4d6a96);return _0x508298;}['_fixMediaEmbeds'](_0x13ebcf,_0xcbbf9e){if(!_0xcbbf9e['plugins']['has']('MediaEmbedEditing'))return _0x13ebcf;const _0x57a529=_0xcbbf9e['plugins']['get']('MediaEmbedEditing');for(const [_0x3d0ab1,_0x3872c8]of Object['entries'](_0x13ebcf)){const _0x4a1230=document['createElement']('div');_0x4a1230['innerHTML']=_0x3872c8,(_0x4a1230['querySelectorAll']('figure.media')['forEach'](_0x18a31a=>{const _0x5191c5=_0x18a31a['querySelector']('oembed');if(_0x5191c5){const _0x12684e=_0x5191c5['getAttribute']('url');if(_0x12684e){const _0x567a90=_0x57a529['registry']['getMediaViewElement'](new _0x1d6acd(_0xcbbf9e['editing']['view']['document']),_0x12684e,{'elementName':'','renderForEditingView':!0x0}),_0x5ecd7d=document['createElement']('div');_0x5ecd7d['classList']['add']('ck-media__wrapper'),_0x567a90['render'](_0x5ecd7d,_0xcbbf9e['editing']['view']['domConverter']),_0x5191c5['replaceWith'](_0x5ecd7d);}}}),_0x13ebcf[_0x3d0ab1]=_0x4a1230['innerHTML']);}return _0x13ebcf;}['_sortRoots'](_0x409231){if(!function(_0x12cbbb){return void 0x0!==_0x12cbbb['getRootsAttributes'];}(_0x409231))return _0x409231['model']['document']['getRootNames']();const _0x18b48f=[],_0x103652=new Map();for(const _0x80c5b4 of _0x409231['model']['document']['getRootNames']()){const _0x4e9e10=_0x409231['editing']['view']['getDomRoot'](_0x80c5b4)['getClientRects']()['item'](0x0);_0x18b48f['push'](_0x80c5b4),_0x103652['set'](_0x80c5b4,_0x4e9e10);}return _0x18b48f['sort']((_0x5b9b7a,_0x598019)=>{const _0x4d01dd=_0x103652['get'](_0x5b9b7a),_0x2ce596=_0x103652['get'](_0x598019);return _0x4d01dd['y']-_0x2ce596['y']||_0x4d01dd['x']-_0x2ce596['x'];}),_0x18b48f;}}class Ue extends _0x4f24f5{static get['requires'](){return[re,_0x5d6c97];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5dacb5){super(_0x5dacb5),_0x5dacb5['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5dacb5['config']['define']('trackChanges.preview.renderFunction',(_0x5af0b8,_0x59c944)=>{for(const _0x16f7be of _0x59c944)_0x5af0b8['appendChild'](_0x16f7be);});}}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};