@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250702.0 → 0.0.0-nightly-20250704.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -27
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/emoji.js +1 -1
  168. package/src/integrations/entercommand.js +1 -1
  169. package/src/integrations/findandreplace.js +1 -1
  170. package/src/integrations/font.js +1 -1
  171. package/src/integrations/formatpainter.js +1 -1
  172. package/src/integrations/heading.js +1 -1
  173. package/src/integrations/highlight.js +1 -1
  174. package/src/integrations/horizontalline.js +1 -1
  175. package/src/integrations/htmlembed.js +1 -1
  176. package/src/integrations/image.js +1 -1
  177. package/src/integrations/imagereplace.js +1 -1
  178. package/src/integrations/imagestyle.js +1 -1
  179. package/src/integrations/importword.js +1 -1
  180. package/src/integrations/indent.js +1 -1
  181. package/src/integrations/inputcommand.js +1 -1
  182. package/src/integrations/legacylist.js +1 -1
  183. package/src/integrations/legacylistproperties.js +1 -1
  184. package/src/integrations/lineheight.js +1 -1
  185. package/src/integrations/link.js +1 -1
  186. package/src/integrations/list.js +1 -1
  187. package/src/integrations/listproperties.js +1 -1
  188. package/src/integrations/mediaembed.js +1 -1
  189. package/src/integrations/mention.js +1 -1
  190. package/src/integrations/mergefields.js +1 -1
  191. package/src/integrations/multilevellist.js +1 -1
  192. package/src/integrations/pagebreak.js +1 -1
  193. package/src/integrations/paragraph.js +1 -1
  194. package/src/integrations/removeformat.js +1 -1
  195. package/src/integrations/replacesourcecommand.js +1 -1
  196. package/src/integrations/restrictededitingmode.js +1 -1
  197. package/src/integrations/shiftentercommand.js +1 -1
  198. package/src/integrations/standardeditingmode.js +1 -1
  199. package/src/integrations/style.js +1 -1
  200. package/src/integrations/table.js +1 -1
  201. package/src/integrations/tablecaption.js +1 -1
  202. package/src/integrations/tableclipboard.js +2 -2
  203. package/src/integrations/tablecolumnresize.js +1 -1
  204. package/src/integrations/tableheadings.js +1 -1
  205. package/src/integrations/tablelayout.js +1 -1
  206. package/src/integrations/tablemergesplit.js +1 -1
  207. package/src/integrations/tableofcontents.js +1 -1
  208. package/src/integrations/tableproperties.js +1 -1
  209. package/src/integrations/template.js +1 -1
  210. package/src/integrations/title.js +1 -1
  211. package/src/integrations/undo.js +1 -1
  212. package/src/integrations/uploadcare.js +1 -1
  213. package/src/integrations/utils.js +1 -1
  214. package/src/suggestion.js +2 -2
  215. package/src/suggestiondescriptionfactory.js +1 -1
  216. package/src/trackchanges.js +1 -1
  217. package/src/trackchangesdata.js +1 -1
  218. package/src/trackchangesediting.js +1 -1
  219. package/src/trackchangespreview.js +1 -1
  220. package/src/trackchangesui.js +1 -1
  221. package/src/ui/suggestioncontroller.js +2 -2
  222. package/src/ui/view/basesuggestionthreadview.js +1 -1
  223. package/src/ui/view/suggestionthreadview.js +1 -1
  224. package/src/ui/view/suggestionview.js +1 -1
  225. package/src/ui/view/trackchangespreviewview.js +1 -1
  226. package/src/utils/common-translations.js +1 -1
  227. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x9748dc,Plugin as _0x17edf8,PendingActions as _0x233829}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2cc94b,ObservableMixin as _0x539e5e,uid as _0x17daf6,priorities as _0x3dbbc7,insertToPriorityArray as _0x3d80bc,toArray as _0x47289c,logWarning as _0x32cd6a,getEnvKeystrokeText as _0x2cf8a0,FocusTracker as _0x35320d,KeystrokeHandler as _0x97d3d4,Collection as _0xb05dfe}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x49279f,IconCancel as _0x20acdc,IconTrackChanges as _0x5b0a13}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xec5bfe,View as _0x9d102f,ViewCollection as _0x5e683b,FocusCycler as _0x2cabf5,UIModel as _0xeebce4,createDropdown as _0x41cda3,SplitButtonView as _0x21bdc8,addListToDropdown as _0x1cf122,MenuBarMenuView as _0xaa3912,MenuBarMenuListView as _0x5ca14d,ListSeparatorView as _0x33fd38,MenuBarMenuListItemView as _0x5ba698,MenuBarMenuListItemButtonView as _0xfe6b82,BodyCollection as _0xf78c2,Dialog as _0x212621}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1eefc0,hashObject as _0xf571a,surroundingMarkersDetector as _0xdb4ddf,FOCUS_ANNOTATION_KEYSTROKE as _0x4cd54a,AriaDescriptionView as _0x21daff,setupThreadKeyboardNavigation as _0x483e19,trimHtml as _0x4b18e1,UserView as _0x29479d,LateFocusButtonView as _0x45789c,getDateTimeFormatter as _0x2b9b70,getAllMarkersDomElementsSorted as _0x5e3b66,sanitizeEditorConfig as _0xbb136c}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x355b15,ModelLiveRange as _0x2c8040,ModelLivePosition as _0x2299d8,ViewDowncastWriter as _0x410750}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5b950c,toWidget as _0x4c8e3a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x9f51e1,set as _0x3c7809,isEqual as _0x314b12,unset as _0x5eb3c0,omit as Ut}from'es-toolkit/compat';import{Delete as _0x517fe9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x517aea}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x28956c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x9748dc{['_enabledCommands'];constructor(_0x3ae556,_0x534398){super(_0x3ae556),this['_enabledCommands']=_0x534398,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 _0x12ba8d of this['editor']['commands']['commands']())_0x12ba8d['affectsData']&&!this['_enabledCommands']['has'](_0x12ba8d)&&_0x12ba8d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x563592 of this['editor']['commands']['commands']())_0x563592['affectsData']&&!this['_enabledCommands']['has'](_0x563592)&&_0x563592['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x9748dc{['_suggestions'];constructor(_0x53115d,_0xae390e){super(_0x53115d),this['_suggestions']=_0xae390e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x17880d){const _0x583949=this['_suggestions']['get'](_0x17880d);if(!_0x583949)throw new _0x2cc94b('track-changes-accept-suggestion-not-found',this);const _0x11f752=_0x583949['getRanges']();this['editor']['model']['canEditAt'](_0x11f752)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x583949);}}class M extends _0x9748dc{['_suggestions'];constructor(_0x423d1a,_0x13117){super(_0x423d1a),this['_suggestions']=_0x13117,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2f59a8){const _0x1959b6=this['_suggestions']['get'](_0x2f59a8);if(!_0x1959b6)throw new _0x2cc94b('track-changes-discard-suggestion-not-found',this);const _0xec8421=_0x1959b6['getRanges']();this['editor']['model']['canEditAt'](_0xec8421)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1959b6);}}function ls(_0x6afb0a,_0x219a93){let _0x5c2af8='';return _0x5c2af8+=_0x6afb0a['split']('*')['map']((_0x279d54,_0x61d124)=>_0x61d124%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x279d54)+'</span>':Yt(_0x279d54))['join'](''),_0x219a93&&(_0x5c2af8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x219a93['value']+'\x22\x20title=\x22'+_0x219a93['title']+'\x22></span>'),_0x5c2af8;}function Yt(_0x3158ca){const _0x90e842=document['createElement']('span');return _0x90e842['innerText']=_0x3158ca,_0x90e842['innerHTML'];}function ts(_0x48eb51){return _0x48eb51['sort']((_0x38c722,_0x5cb8ae)=>'attribute'===_0x38c722['type']&&'attribute'!==_0x5cb8ae['type']?-0x1:'attribute'!==_0x38c722['type']&&'attribute'===_0x5cb8ae['type']?0x1:'deletion'==_0x38c722['type']&&'deletion'!=_0x5cb8ae['type']?-0x1:'deletion'!=_0x38c722['type']&&'deletion'==_0x5cb8ae['type']?0x1:0x0);}function to(_0x6f25d,_0x37fe74){let _0x4ec164,_0x4230c8=0x0;const _0x5ef23e=[],_0x2708cd=_0x37fe74['schema'];for(;_0x4230c8<_0x6f25d['length'];){const _0x38a949=_0x6f25d[_0x4230c8],_0x27bbcd=_0x6f25d[_0x4230c8+0x1];_0x4ec164||(_0x4ec164=_0x37fe74['createPositionBefore'](_0x38a949)),Zt(_0x37fe74,_0x38a949,_0x27bbcd)||(_0x5ef23e['push'](_0x37fe74['createRange'](_0x4ec164,_0x2708cd['isObject'](_0x38a949)?_0x37fe74['createPositionAfter'](_0x38a949):_0x37fe74['createPositionAt'](_0x38a949,'end'))),_0x4ec164=null),_0x4230c8++;}return _0x5ef23e;}function Zt(_0x260158,_0x5b3d00,_0x197d2f){if(!_0x197d2f)return!0x1;const _0x2183f0=_0x260158['createPositionAfter'](_0x5b3d00),_0x38da5e=_0x260158['createPositionBefore'](_0x197d2f);return _0x2183f0['isTouching'](_0x38da5e);}function rs(_0x316aef,_0x1a2144,_0x194e05){for(;_0x194e05['length'];){const _0x213b83=_0x194e05['splice'](0x0,0x64);_0x316aef['change'](()=>{for(const _0x4100d7 of _0x213b83)_0x4100d7['isInContent']&&_0x1a2144['execute'](_0x4100d7['id']);});}}class $ extends _0x9748dc{['_command'];['_suggestions'];constructor(_0x49f37b,_0x23dca8,_0x55b6ac){super(_0x49f37b),this['_command']=_0x23dca8,this['_suggestions']=_0x55b6ac,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1ff196=Array['from'](this['_suggestions']['values']())['some'](_0x2f43d5=>_0x2f43d5['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1ff196;}['execute'](){const _0xf4cc7c=ts(Array['from'](this['_suggestions']['values']()));for(const _0x6c034e of _0xf4cc7c){const _0x210688=_0x6c034e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x210688))return;}rs(this['editor']['model'],this['_command'],_0xf4cc7c);}}class B extends _0x9748dc{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xa9d9ca,_0x33ecdc,_0xe5f3b3){super(_0xa9d9ca),this['_command']=_0x33ecdc,this['_suggestions']=_0xe5f3b3,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2ebad6=this['editor']['model']['document']['selection'],_0x71a7c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x43bc1a,_0x1a25f8){const _0x33dd81=Array['from'](_0x43bc1a['getRanges']()),_0x9141e1=new Set();for(const _0x4e204e of _0x1a25f8)if(_0x4e204e['isInContent']){for(const _0x483f91 of _0x33dd81)for(const _0x5ea083 of _0x4e204e['getRanges']())(_0x483f91['isIntersecting'](_0x5ea083)||_0x43bc1a['isCollapsed']&&!_0x4e204e['isMultiRange']&&_0x4e204e['next']&&_0x5ea083['end']['isTouching'](_0x483f91['start']))&&_0x9141e1['add'](_0x4e204e);}return _0x9141e1;}(_0x2ebad6,_0x71a7c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x26d7cd=ts(Array['from'](this['_selectedSuggestions']));for(const _0x596507 of _0x26d7cd){const _0x174fe0=_0x596507['getRanges']();if(!this['editor']['model']['canEditAt'](_0x174fe0))return;}rs(this['editor']['model'],this['_command'],_0x26d7cd);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x539e5e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4e2dae,_0x5c525a){super(),this['id']=_0x5c525a['id'],this['type']=_0x5c525a['type'],this['subType']=_0x5c525a['subType']||null,this['author']=_0x5c525a['author'],this['creator']=_0x5c525a['creator']||_0x5c525a['author'],this['isExternal']=Boolean(_0x5c525a['attributes']&&_0x5c525a['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5c525a['originalSuggestionId']||null,this['_model']=_0x4e2dae,this['_onAccept']=_0x5c525a['onAccept'],this['_onDiscard']=_0x5c525a['onDiscard'],this['_onAttributesChange']=_0x5c525a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5c525a['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 _0x51c0d1=this;for(;_0x51c0d1['previous'];)_0x51c0d1=_0x51c0d1['previous'];return _0x51c0d1;}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'](_0x3e4cad){this['_markerNames']['add'](_0x3e4cad);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x582d9d=>this['_model']['markers']['get'](_0x582d9d))['filter'](_0x14aadf=>_0x14aadf);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b892a=>{for(const _0x10fa61 of this['getMarkers']())_0x2b892a['removeMarker'](_0x10fa61);}),this['_markerNames']['clear']();}['removeMarker'](_0x45dc72){this['_model']['change'](_0x4ae949=>{_0x4ae949['removeMarker'](_0x45dc72);}),this['_markerNames']['delete'](_0x45dc72);}['addRange'](_0x1f762a){const _0xd0f6c7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0xd0f6c7),this['_model']['change'](_0x378694=>{_0x378694['addMarker'](_0xd0f6c7,{'range':_0x1f762a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x199861){for(const _0x373d64 of this['getRanges']())if(_0x373d64['isIntersecting'](_0x199861))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x34c97a=>_0x34c97a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x24df9f,_0x49b698)=>[..._0x24df9f,..._0x49b698['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x473009=this['getRanges']();if(0x1!=_0x473009['length'])return null;const _0x5cb803=_0x473009[0x0],_0x56b1da=_0x5cb803['start']['nodeAfter'],_0x32b9ad=_0x5cb803['end']['nodeBefore'];return _0x56b1da instanceof _0x355b15?_0x56b1da!=_0x32b9ad?null:_0x56b1da: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 _0x598431=[];let _0x3cab23=this['head'];for(;_0x3cab23;)_0x598431['push'](_0x3cab23),_0x3cab23=_0x3cab23['next'];return _0x598431;}['setAttribute'](_0x17196d,_0x2d6e8f){const _0x1bf8a5=_0x9f51e1(this['attributes']);_0x3c7809(_0x1bf8a5,_0x17196d,_0x2d6e8f),_0x314b12(_0x1bf8a5,this['attributes'])||(this['attributes']=_0x1bf8a5,this['_onAttributesChange'](_0x1bf8a5));}['removeAttribute'](_0x1c6324){const _0x3cb526=_0x9f51e1(this['attributes']);_0x5eb3c0(_0x3cb526,_0x1c6324),_0x314b12(_0x3cb526,this['attributes'])||(this['attributes']=_0x3cb526,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 _0x17daf6()['substr'](0x1,0x5);}}function o(_0x455d47,_0x207ded,_0x563f74){const _0x417e11=_0x455d47['t'],t=_0x455d47['t'];switch(_0x207ded){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',_0x563f74);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x563f74);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x563f74);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x563f74);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x563f74);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',_0x563f74);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x563f74);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',_0x563f74);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x563f74);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x563f74);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x563f74);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x563f74);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x563f74);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x563f74);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x563f74);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x563f74);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x563f74);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x563f74);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x563f74);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x563f74);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x563f74);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x563f74);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x563f74);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x563f74);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x563f74);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'},_0x563f74);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x563f74);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x563f74);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x563f74);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x563f74);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x563f74);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x563f74);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x563f74);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'},_0x563f74);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x563f74);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x563f74);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x563f74);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x563f74);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x563f74);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x563f74);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'},_0x563f74);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'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'},_0x563f74);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x563f74);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'},_0x563f74);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x563f74);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'},_0x563f74);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x563f74);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x563f74);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'},_0x563f74);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x563f74);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 _0x417e11({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x563f74);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x417e11({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x563f74);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x563f74);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'},_0x563f74);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'},_0x563f74);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'},_0x563f74);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x207ded;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x127cfc,_0x5ec78e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x127cfc,this['_locale']=_0x5ec78e;}['getDescriptions'](_0x3908e5){const _0x142050=[],_0x295abe=new Set(),_0x135532=new Set();for(let _0x50399a=0x0;_0x50399a<_0x3908e5['length'];_0x50399a++){const _0x32f1dd=_0x3908e5[_0x50399a];if(!_0x32f1dd['isInContent'])continue;const _0x7c285f=this['_handleCustomCallbackDescription'](_0x32f1dd);if(_0x7c285f){if(null!=_0x32f1dd['subType']){if(_0x295abe['has'](_0x32f1dd['subType']))continue;_0x295abe['add'](_0x32f1dd['subType']);}_0x142050['push'](_0x7c285f);}else{if('attribute'==_0x32f1dd['type']){const _0xd37adf=_0x32f1dd['data']['key'];if(_0x135532['has'](_0xd37adf))continue;_0x135532['add'](_0x32f1dd['data']['key']),_0xd37adf==m?this['_handleRenameSuggestionDescription'](_0x142050,_0x32f1dd):this['_handleAttributeSuggestionDescription'](_0x142050,_0x32f1dd);continue;}'insertion'!=_0x32f1dd['type']&&'deletion'!=_0x32f1dd['type']||this['_handleInsertRemoveSuggestionDescription'](_0x142050,_0x32f1dd,_0x3908e5[_0x50399a+0x1]);}}return this['_resolveDescriptionItems'](_0x142050);}['registerDescriptionCallback'](_0x32892b){this['_customCallbacks']['push'](_0x32892b);}['registerElementLabel'](_0x1bb491,_0x49fa51,_0x1b24b3=_0x3dbbc7['normal']){'function'==typeof _0x1bb491?_0x3d80bc(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1bb491,'label':_0x49fa51,'priority':_0x1b24b3}):this['_itemLabels']['set'](_0x1bb491,_0x49fa51);}['registerAttributeLabel'](_0x1ae76a,_0x1b6a76){this['_attributeLabels']['set'](_0x1ae76a,_0x1b6a76);}['getItemLabel'](_0x23fd89,_0xe05f1e=0x1){let _0x16b8ab;for(const _0x2ebe1d of this['_itemLabelsCallbacks'])if(_0x2ebe1d['matchingCallback'](_0x23fd89)){_0x16b8ab=_0x2ebe1d['label'];break;}return _0x16b8ab||(_0x16b8ab=this['_itemLabels']['get'](_0x23fd89['name'])),_0x16b8ab?_0x16b8ab(_0xe05f1e):0x1!==_0xe05f1e?_0xe05f1e+'\x20'+_0x23fd89['name']+'s':''+_0x23fd89['name'];}['_addDescriptionItems'](_0x472352,_0x1fd795){const _0xcfbdea=_0x1fd795['getFirstRange']()['getWalker'](),_0x9bdfd8='insertion'==_0x1fd795['type']?'add':'remove';for(const _0x4e9c53 of _0xcfbdea){const _0x382abf=_0x4e9c53['item'],_0x53d499=_0x472352[_0x472352['length']-0x1];if(_0x382abf['is']('$textProxy'))_0x53d499&&_0x53d499['type']['indexOf']('Container')>-0x1&&_0x472352['pop'](),_0x53d499&&'text'==_0x53d499['type']?_0x53d499[_0x9bdfd8]+=_0x382abf['data']:_0x472352['push']({'type':'text','add':'add'==_0x9bdfd8?_0x382abf['data']:'','remove':'remove'==_0x9bdfd8?_0x382abf['data']:''});else{if(this['_schema']['isObject'](_0x382abf)){const _0x594ba6=_0x382abf;if(_0x53d499&&_0x53d499['type']['indexOf']('Container')>-0x1&&_0x472352['pop'](),'elementEnd'==_0x4e9c53['type'])continue;_0x53d499&&_0x53d499['type']==_0x9bdfd8+'Object'&&_0x53d499['element']['name']==_0x594ba6['name']?_0x53d499['quantity']++:_0x472352['push']({'type':_0x9bdfd8+'Object','element':_0x594ba6,'quantity':0x1}),_0xcfbdea['skip'](_0x5117d6=>!('elementEnd'==_0x5117d6['type']&&_0x5117d6['item']==_0x382abf));}else{if(this['_schema']['checkChild'](_0x382abf,'$text')||_0x382abf['is']('element','softBreak')){const _0x52624e=_0x382abf;if('add'==_0x9bdfd8&&'elementStart'==_0x4e9c53['type']||'remove'==_0x9bdfd8&&'elementEnd'==_0x4e9c53['type'])continue;if(_0x53d499&&-0x1==_0x53d499['type']['indexOf']('Container')){'text'==_0x53d499['type']&&(_0x53d499[_0x9bdfd8]+='\x0a');continue;}let _0x4a8339;if(_0x4a8339='add'==_0x9bdfd8?_0x52624e['nextSibling']&&!this['_schema']['isObject'](_0x52624e['nextSibling'])?_0x52624e['nextSibling']:null:_0x52624e['previousSibling']&&!this['_schema']['isObject'](_0x52624e['previousSibling'])?_0x52624e['previousSibling']:null,_0x52624e['isEmpty']||_0x4a8339&&_0x4a8339['isEmpty']){const _0x40b9a8=_0x4a8339&&_0x4a8339['isEmpty']?_0x4a8339:_0x52624e;_0x53d499&&_0x53d499['type']==_0x9bdfd8+'EmptyContainer'&&_0x53d499['element']['name']==_0x40b9a8['name']?_0x53d499['quantity']++:_0x472352['push']({'type':_0x9bdfd8+'EmptyContainer','element':_0x40b9a8,'quantity':0x1});}else _0x472352['push']({'type':_0x9bdfd8+'Container','element':_0x52624e});}}}}}['_resolveDescriptionItems'](_0x19099f){const _0x3243f7=this['_locale'],_0x5afbfb=[],_0x2f34d6=[],_0x41b6a0=[];for(const _0x30935c of _0x19099f)switch(_0x30935c['type']){case'text':if(_0x30935c['add']=_0x30935c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x30935c['remove']=_0x30935c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x30935c['add']&&''!=_0x30935c['remove']){_0x5afbfb['push']({'type':'replace','content':o(_0x3243f7,'REPLACE_TEXT',['\x22'+_0x30935c['remove']+'\x22','\x22'+_0x30935c['add']+'\x22'])});continue;}if(null!=_0x30935c['add']['match'](/^ +$/)){_0x5afbfb['push']({'type':'insertion','content':o(_0x3243f7,'*Insert:*\x20%0',o(_0x3243f7,'ELEMENT_SPACE',_0x30935c['add']['length']))});continue;}if(null!=_0x30935c['remove']['match'](/^ +$/)){_0x5afbfb['push']({'type':'deletion','content':o(_0x3243f7,'*Remove:*\x20%0',o(_0x3243f7,'ELEMENT_SPACE',_0x30935c['remove']['length']))});continue;}if(''!=_0x30935c['add']){_0x5afbfb['push']({'type':'insertion','content':o(_0x3243f7,'*Insert:*\x20%0','\x22'+_0x30935c['add']+'\x22')});continue;}_0x5afbfb['push']({'type':'deletion','content':o(_0x3243f7,'*Remove:*\x20%0','\x22'+_0x30935c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5afbfb['push']({'type':'insertion','content':o(_0x3243f7,'*Insert:*\x20%0',this['getItemLabel'](_0x30935c['element'],_0x30935c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5afbfb['push']({'type':'deletion','content':o(_0x3243f7,'*Remove:*\x20%0',this['getItemLabel'](_0x30935c['element'],_0x30935c['quantity']))});continue;case'addContainer':_0x5afbfb['push']({'type':'insertion','content':o(_0x3243f7,'*Split:*\x20%0',this['getItemLabel'](_0x30935c['element'],_0x30935c['quantity']))});continue;case'removeContainer':_0x5afbfb['push']({'type':'deletion','content':o(_0x3243f7,'*Merge:*\x20%0',this['getItemLabel'](_0x30935c['element'],_0x30935c['quantity']))});continue;case'addFormat':_0x2f34d6['push'](_0x30935c['key']);continue;case'removeFormat':_0x41b6a0['push'](_0x30935c['key']);continue;default:_0x5afbfb['push'](_0x30935c);}if(_0x2f34d6['length']){const _0xe40d42=_0x2f34d6['map'](_0x4f25fb=>this['_attributeLabels']['has'](_0x4f25fb)?this['_attributeLabels']['get'](_0x4f25fb):_0x4f25fb)['join'](',\x20');_0x5afbfb['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xe40d42)});}if(_0x41b6a0['length']){const _0x2cc37e=_0x41b6a0['map'](_0x3385ed=>this['_attributeLabels']['has'](_0x3385ed)?this['_attributeLabels']['get'](_0x3385ed):_0x3385ed)['join'](',\x20');_0x5afbfb['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2cc37e)});}return _0x5afbfb;}['_handleCustomCallbackDescription'](_0x2130fa){for(const _0xd00fa5 of this['_customCallbacks']){const _0x324c1d=_0xd00fa5(_0x2130fa);if(_0x324c1d&&'type'in _0x324c1d)return _0x324c1d;}}['_handleAttributeSuggestionDescription'](_0x3c70c9,_0x40e2a4){const _0x49d828=_0x40e2a4['data'],_0x41d76f=void 0x0===_0x49d828['newValue']?'removeFormat':'addFormat';_0x3c70c9['push']({'type':_0x41d76f,'key':_0x49d828['key']});}['_handleRenameSuggestionDescription'](_0x43ccad,_0x5670c1){_0x43ccad['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5670c1['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x356731,_0x524a18,_0x42decb){if(this['_addDescriptionItems'](_0x356731,_0x524a18),_0x42decb&&_0x42decb['getFirstRange']()&&!_0x524a18['getFirstRange']()['end']['isEqual'](_0x42decb['getFirstRange']()['start'])){const _0x44f304=_0x356731[_0x356731['length']-0x1],_0x43fd32='insertion'==_0x524a18['type']?'add':'remove';_0x44f304&&'text'==_0x44f304['type']&&(_0x44f304[_0x43fd32]+='\x0a');}}}class O extends _0x17edf8{['afterInit'](){const _0x3d5262=this['editor'],_0x14c17a=_0x3d5262['plugins']['get']('TrackChangesEditing');_0x3d5262['commands']['get']('showAIAssistant')&&_0x14c17a['enableCommand']('showAIAssistant');}}class E extends _0x17edf8{['afterInit'](){const _0x79fc2b=this['editor'],_0x26a750=_0x79fc2b['locale'];if(!_0x79fc2b['plugins']['has']('AlignmentEditing'))return;const _0x280164=_0x79fc2b['plugins']['get']('TrackChangesEditing');_0x280164['enableDefaultAttributesIntegration']('alignment'),_0x280164['registerBlockAttribute']('alignment'),_0x280164['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x26a750,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ae70c=this['editor'],_0x5a4e43=_0x2ae70c['locale'];_0x2ae70c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c4422=>{if('formatBlock'!=_0x4c4422['type'])return;const {data:_0x3d29c6}=_0x4c4422;if(_0x3d29c6&&'alignment'==_0x3d29c6['commandName']){const _0x3fda18=_0x3d29c6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5a4e43,'*Format:*\x20%0',function(_0x4de4b9){switch(_0x4de4b9){case'left':return o(_0x5a4e43,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5a4e43,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5a4e43,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5a4e43,'FORMAT_JUSTIFY_TEXT');}}(_0x3fda18))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x17edf8{['afterInit'](){const _0x77490b=this['editor'],_0x26e5cf=_0x77490b['plugins']['get']('TrackChangesEditing'),_0x4b9f56=_0x77490b['locale'];for(const _0x3fdc4f of ti){if(!_0x77490b['plugins']['has'](_0x3fdc4f))continue;const _0x46d9bc=_0x3fdc4f['slice'](0x0,-0x7)['toLowerCase'](),_0x5bcfe2='FORMAT_'+_0x46d9bc['toUpperCase']();_0x26e5cf['enableDefaultAttributesIntegration'](_0x46d9bc),_0x26e5cf['registerInlineAttribute'](_0x46d9bc),_0x26e5cf['descriptionFactory']['registerAttributeLabel'](_0x46d9bc,o(_0x4b9f56,_0x5bcfe2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x284071=this['editor'],_0xb3b56a=_0x284071['locale'],_0x8b82a5=_0x284071['plugins']['get']('TrackChangesEditing');function _0x7037e6(_0x40e89f,_0x22d9a7){_0x8b82a5['descriptionFactory']['registerDescriptionCallback'](_0x5ca89e=>{if('formatInline'!=_0x5ca89e['type'])return;const {data:_0x3b9ff2}=_0x5ca89e;return _0x3b9ff2&&_0x3b9ff2['commandName']===_0x40e89f?_0x3b9ff2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb3b56a,'*Format:*\x20%0',_0x22d9a7)}:{'type':'format','content':o(_0xb3b56a,'*Remove\x20format:*\x20%0',_0x22d9a7)}:void 0x0;});}_0x7037e6('bold',o(_0xb3b56a,'FORMAT_BOLD')),_0x7037e6('italic',o(_0xb3b56a,'FORMAT_ITALIC')),_0x7037e6('underline',o(_0xb3b56a,'FORMAT_UNDERLINE')),_0x7037e6('code',o(_0xb3b56a,'FORMAT_CODE')),_0x7037e6('strikethrough',o(_0xb3b56a,'FORMAT_STRIKETHROUGH')),_0x7037e6('subscript',o(_0xb3b56a,'FORMAT_SUBSCRIPT')),_0x7037e6('superscript',o(_0xb3b56a,'FORMAT_SUPERSCRIPT'));}}class U extends _0x17edf8{['afterInit'](){const _0x31ce4d=this['editor'],_0x4674d5=_0x31ce4d['locale'];if(!_0x31ce4d['plugins']['has']('BlockQuoteEditing'))return;const _0x145d19=_0x31ce4d['plugins']['get']('TrackChangesEditing'),_0x11b66a=this['editor']['commands']['get']('blockQuote');_0x145d19['enableCommand']('blockQuote',(_0x93378e,_0x57d549={})=>{const _0x348f94=this['editor']['model']['document']['selection'],_0x10df3f=_0x57d549&&void 0x0!==_0x57d549['forceValue']?_0x57d549['forceValue']:!_0x11b66a['value'];let _0x2040ba=[];if(_0x10df3f){const _0x72de60=Array['from'](_0x348f94['getSelectedBlocks']())['filter'](_0x1e29f5=>oo(_0x1e29f5)||function(_0x346691,_0x214fb1){const _0x550b49=_0x214fb1['checkChild'](_0x346691['parent'],'blockQuote'),_0x268096=_0x214fb1['checkChild'](['$root','blockQuote'],_0x346691);return _0x550b49&&_0x268096;}(_0x1e29f5,this['editor']['model']['schema']));_0x2040ba=to(_0x72de60,_0x31ce4d['model']);}else{const _0x358486=Array['from'](_0x348f94['getSelectedBlocks']())['filter'](_0x2cee8a=>oo(_0x2cee8a));_0x2040ba=to(_0x358486,_0x31ce4d['model']);}_0x31ce4d['model']['change'](()=>{for(const _0x1fc0ba of _0x2040ba)_0x145d19['markBlockFormat'](_0x1fc0ba,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x10df3f}]});});}),_0x145d19['descriptionFactory']['registerDescriptionCallback'](_0x48cf7d=>{const {data:_0x423c08}=_0x48cf7d;if(_0x423c08&&'blockQuote'==_0x423c08['commandName']){const _0x47ee07=o(_0x4674d5,'ELEMENT_BLOCK_QUOTE');return _0x423c08['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4674d5,'*Set\x20format:*\x20%0',_0x47ee07)}:{'type':'format','content':o(_0x4674d5,'*Remove\x20format:*\x20%0',_0x47ee07)};}});}}function oo(_0x2bbd93){return'blockQuote'==_0x2bbd93['parent']['name'];}class V extends _0x17edf8{['afterInit'](){const _0x2b8ebe=this['editor'],_0x25ab66=_0x2b8ebe['locale'],_0x493c1f=_0x2b8ebe['plugins']['get']('TrackChangesEditing');_0x2b8ebe['plugins']['has']('BookmarkEditing')&&(_0x493c1f['enableCommand']('insertBookmark'),_0x493c1f['enableDefaultAttributesIntegration']('updateBookmark'),_0x493c1f['registerBlockAttribute']('bookmarkId'),_0x493c1f['descriptionFactory']['registerDescriptionCallback'](_0x49361c=>{if('insertion'!=_0x49361c['type']&&'deletion'!=_0x49361c['type']&&'attribute'!=_0x49361c['type'])return;const _0x1d4627=_0x49361c['getContainedElement']();if(null==_0x1d4627)return;if(!_0x1d4627['is']('element','bookmark'))return;const _0x37fb82=_0x1d4627['getAttribute']('bookmarkId');if('insertion'==_0x49361c['type'])return{'type':'insertion','content':o(_0x25ab66,'*Insert:*\x20%0','\x22'+_0x37fb82+'\x22\x20'+o(_0x25ab66,'ELEMENT_BOOKMARK'))};if('deletion'==_0x49361c['type'])return{'type':'deletion','content':o(_0x25ab66,'*Remove:*\x20%0','\x22'+_0x37fb82+'\x22\x20'+o(_0x25ab66,'ELEMENT_BOOKMARK'))};const {data:_0x155e04}=_0x49361c;if(!_0x155e04||'bookmarkId'!=_0x155e04['key'])return;return{'type':'format','content':o(_0x25ab66,'*Set\x20bookmark:*\x20%0','\x22'+_0x155e04['newValue']+'\x22')};}));}}class F extends _0x17edf8{['afterInit'](){const _0x54585f=this['editor'];_0x54585f['plugins']['has']('CaseChange')&&(_0x54585f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x54585f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x54585f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x17edf8{['afterInit'](){const _0x538a86=this['editor'];_0x538a86['commands']['get']('ckbox')&&_0x538a86['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x17edf8{['afterInit'](){const _0x24b69e=this['editor'];if(!_0x24b69e['plugins']['has']('CodeBlock'))return;const _0x5bdf10=_0x24b69e['plugins']['get']('TrackChangesEditing'),_0xb32698=_0x24b69e['locale'],_0xeba582=_0x24b69e['config']['get']('codeBlock')['languages'],_0x44eda4=_0x24b69e['commands']['get']('codeBlock');_0x5bdf10['enableCommand']('indentCodeBlock'),_0x5bdf10['enableCommand']('outdentCodeBlock'),_0x5bdf10['enableCommand']('codeBlock',(_0x524190,_0x28ff33={})=>{const _0x326a43=_0x24b69e['model'],_0x3ee9a3=_0x24b69e['model']['document']['selection'],_0x58f361=_0x28ff33&&void 0x0!==_0x28ff33['forceValue']?_0x28ff33['forceValue']:!_0x44eda4['value'];let _0x1854c8;_0x28ff33['language']||(_0x28ff33['language']=_0xeba582[0x0]['language']),_0x1854c8=_0x58f361?Array['from'](_0x3ee9a3['getSelectedBlocks']())['filter'](_0x569daa=>co(_0x569daa)||function(_0x3e95ee,_0x525a8f){if(_0x3e95ee['is']('rootElement')||_0x525a8f['isLimit'](_0x3e95ee))return!0x1;return _0x525a8f['checkChild'](_0x3e95ee['parent'],'codeBlock');}(_0x569daa,_0x326a43['schema'])):Array['from'](_0x3ee9a3['getSelectedBlocks']())['filter'](_0x170bbc=>co(_0x170bbc));const _0x568f02=to(_0x1854c8,_0x326a43);_0x326a43['change'](()=>{for(const _0x12409b of _0x568f02)_0x5bdf10['markBlockFormat'](_0x12409b,{'commandName':'codeBlock','commandParams':[{..._0x28ff33,'forceValue':_0x58f361}],'formatGroupId':'blockName'});});}),(_0x5bdf10['descriptionFactory']['registerElementLabel']('codeBlock',_0x327690=>o(_0xb32698,'ELEMENT_CODE_BLOCK',_0x327690)),_0x5bdf10['descriptionFactory']['registerDescriptionCallback'](_0x57954f=>{if('formatBlock'!=_0x57954f['type'])return;const _0x241289=_0xb32698['t'],{data:_0x3c0879}=_0x57954f;if(!_0x3c0879||'codeBlock'!=_0x3c0879['commandName'])return;const _0x182c5b=_0x3c0879['commandParams'][0x0]['language'],_0x4e4f91=_0x241289(_0xeba582['find'](_0x469bd=>_0x469bd['language']===_0x182c5b)['label'])['toLowerCase']();return _0x3c0879['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb32698,'*Set\x20format:*\x20%0',o(_0xb32698,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4e4f91+')')}:{'type':'format','content':o(_0xb32698,'*Remove\x20format:*\x20%0',o(_0xb32698,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x979429){return'codeBlock'==_0x979429['name'];}class J extends _0x17edf8{['afterInit'](){const _0xfa845=this['editor'];if(!_0xfa845['plugins']['has']('CommentsEditing'))return;_0xfa845['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3f458e,_0x421c69,_0x256898){const _0xa94dd=[];for(const _0x242698 of _0x421c69['getItems']())_0x242698['hasAttribute'](_0x3f458e)&&_0xa94dd['push'](_0x256898['createRangeOn'](_0x242698));return _0xa94dd;}function De(_0x307811,_0x1e93b3,{showActiveMarker:_0x3ea782=!0x0}={}){const _0x5102de=_0x307811['plugins']['get']('TrackChangesEditing');return(_0x108130,_0x2f03de,_0x54d5f3)=>{if(!_0x54d5f3['consumable']['test'](_0x2f03de['markerRange'],_0x108130['name']))return;const _0x428cd9=_0x2f03de['markerRange']['getWalker'](),_0xf98e80=_0x2f03de['markerRange']['start'],_0x1c2389=_0x307811['model']['schema'];let _0x4f8076=null,_0x58d24e=null,_0x407263=!0x1,_0x565190=!0x1;for(const _0x5909a6 of _0x428cd9){const _0x3e4cfc=_0x5909a6['item'];_0x407263=_0x407263||_0x1c2389['isContent'](_0x3e4cfc);const _0x1e9876=_0x54d5f3['mapper']['toViewElement'](_0x3e4cfc);if(_0x1e9876&&_0x1e9876['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5909a6['type']&&(_0x1c2389['isBlock'](_0x3e4cfc)&&!_0x1c2389['isLimit'](_0x3e4cfc)&&(_0x3e4cfc['nextSibling']||_0xf98e80['isAtEnd']?_0x4f8076&&_0x4f8076['parent']==_0x3e4cfc||(_0x4f8076=_0x3e4cfc,_0x502c28(_0x5909a6['previousPosition']),_0x565190=!0x0):_0x58d24e=_0x58d24e||_0x5909a6['previousPosition']));}function _0x502c28(_0x4bb844){const {id:_0x3c705b,authorId:_0x443852}=_0x5102de['_splitMarkerName'](_0x2f03de['markerName']),_0x25237b=_0x54d5f3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1e93b3,'data-suggestion':_0x3c705b,'data-author-id':_0x443852}),_0x1f3084=_0x54d5f3['mapper']['toViewPosition'](_0x4bb844);_0x3ea782&&_0x5102de['activeMarkers']['includes'](_0x2f03de['markerName'])&&_0x54d5f3['writer']['addClass']('ck-suggestion-marker--active',_0x25237b),_0x54d5f3['writer']['insert'](_0x1f3084,_0x25237b),_0x54d5f3['mapper']['bindElementToMarker'](_0x25237b,_0x2f03de['markerName']);}_0x407263||_0x565190||!_0x58d24e||_0x502c28(_0x58d24e);};}class K extends _0x17edf8{static get['requires'](){return[_0x517fe9];}['init'](){const _0x3ca37e=this['editor'],_0xec0da8=_0x3ca37e['plugins']['get']('TrackChangesEditing');_0xec0da8['enableCommand']('delete');const _0x244fe6=_0x3ca37e['commands']['get']('deleteForward');_0xec0da8['enableCommand']('deleteForward',(_0x4b6c15,_0x470964={})=>{const _0x2f4a47=_0x3ca37e['model']['createSelection'](_0x3ca37e['model']['document']['selection']);_0x2f4a47['isCollapsed']&&_0x3ca37e['model']['modifySelection'](_0x2f4a47,{'direction':'forward','unit':_0x470964['unit']});const _0x126b30=_0x2f4a47['getFirstRange'](),_0x35ce17=_0x2c8040['fromRange'](_0x126b30);let _0x5b0dc7;_0x4b6c15(_0x470964),_0x5b0dc7='$graveyard'==_0x35ce17['root']['rootName']?_0x3ca37e['model']['createRange'](_0x126b30['start']):_0x3ca37e['model']['createRange'](_0x35ce17['start'],_0x35ce17['end']),_0x35ce17['detach'](),_0x3ca37e['model']['enqueueChange'](_0x244fe6['buffer']['batch'],_0x16104a=>{_0x244fe6['buffer']['lock'](),_0x16104a['setSelection'](_0x16104a['createRange'](_0x5b0dc7['end'])),_0x244fe6['buffer']['unlock']();});}),_0x3ca37e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x3ca37e,'merge'),{'priority':'high'}),_0x3ca37e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xfbda48,_0x4978ad,_0x46a820)=>{_0x46a820['options']['showSuggestionHighlights']&&De(_0x3ca37e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xfbda48,_0x4978ad,_0x46a820);},{'priority':'high'}),_0x3ca37e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x53b48a,_0x478788,_0x3b96c6)=>{const _0x52902a=_0x3b96c6['mapper']['markerNameToElements'](_0x478788['markerName']);if(_0x52902a){for(const _0x6b03e1 of _0x52902a)_0x6b03e1['is']('uiElement')&&(_0x3b96c6['mapper']['unbindElementFromMarkerName'](_0x6b03e1,_0x478788['markerName']),_0x3b96c6['writer']['remove'](_0x6b03e1));}},{'priority':'high'});}}class H extends _0x17edf8{['afterInit'](){const _0x4e0abc=this['editor'];if(!_0x4e0abc['plugins']['has']('ListEditing'))return;const _0x31d7d7=_0x4e0abc['locale'],_0x115570=_0x4e0abc['plugins']['get']('TrackChangesEditing'),_0x232c66=_0x4e0abc['plugins']['has']('TodoListEditing'),_0x2c30cf=!!_0x4e0abc['config']['get']('list.multiBlock');function _0x475238(_0x20a9b7){return{'type':'format','content':''+o(_0x31d7d7,'*Set\x20format:*\x20%0',_0x20a9b7)};}function _0x20377d(_0x58a679){return{'type':'format','content':''+o(_0x31d7d7,'*Remove\x20format:*\x20%0',_0x58a679)};}_0x115570['enableDefaultAttributesIntegration']('numberedList'),_0x115570['enableDefaultAttributesIntegration']('bulletedList'),_0x115570['enableDefaultAttributesIntegration']('customNumberedList'),_0x115570['enableDefaultAttributesIntegration']('customBulletedList'),_0x115570['enableDefaultAttributesIntegration']('indentList'),_0x115570['enableDefaultAttributesIntegration']('outdentList'),_0x115570['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x115570['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x115570['registerBlockAttribute']('listItemId'),_0x115570['registerBlockAttribute']('listType'),_0x115570['registerBlockAttribute']('listIndent'),_0x2c30cf&&(_0x115570['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x115570['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x232c66&&(_0x115570['enableDefaultAttributesIntegration']('todoList'),_0x115570['enableDefaultAttributesIntegration']('checkTodoList'),_0x115570['registerBlockAttribute']('todoListChecked'),_0x115570['descriptionFactory']['registerDescriptionCallback'](_0x49736d=>{const {data:_0x3c5dbf}=_0x49736d;if(_0x3c5dbf&&'todoListChecked'==_0x3c5dbf['key'])return{'type':'format','content':_0x3c5dbf['newValue']?o(_0x31d7d7,'*Check\x20item*'):o(_0x31d7d7,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xa6910b=>{if(_0xa6910b['batch']['isUndo'])return!0x1;let _0x5b03ec=!0x1;const _0x16b1e7=_0x115570['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15944f=>'todoListChecked'===_0x115570['_getAttributeKey'](_0x15944f));for(const _0x358dd9 of _0x16b1e7){'todo'!=_0x358dd9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x115570['_findSuggestions'](_0x358dd9['getFirstRange'](),'attribute')['find'](_0x464d23=>'listType'===_0x115570['_getAttributeKey'](_0x464d23['suggestion']))||(_0xa6910b['removeMarker'](_0x358dd9['getFirstMarker']()),_0x5b03ec=!0x0));}return _0x5b03ec;})),_0x115570['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x31d7d7,'FORMAT_INDENT'));const _0x1b56b8={'type':'format','content':''};_0x115570['descriptionFactory']['registerDescriptionCallback'](_0x50f3e5=>{const {data:_0xfde879}=_0x50f3e5;if(!_0xfde879||'listType'!=_0xfde879['key'])return;let _0x5f24eb=_0x50f3e5['head'];for(;_0x5f24eb;){if(_0x5f24eb['data']&&(('listStyle'==_0x5f24eb['data']['key']||'listMarkerStyle'==_0x5f24eb['data']['key'])&&(_0x5f24eb['data']['newValue']&&'default'!=_0x5f24eb['data']['newValue']||'default'!=_0x5f24eb['data']['oldValue']&&!_0xfde879['newValue'])||!_0x2c30cf&&_0x5f24eb['data']['key']==m))return _0x1b56b8;_0x5f24eb=_0x5f24eb['next'];}if(null==_0xfde879['newValue'])switch(_0xfde879['oldValue']){case'bulleted':return _0x20377d(o(_0x31d7d7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x20377d(o(_0x31d7d7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x20377d(o(_0x31d7d7,'ELEMENT_TODO_LIST'));}switch(_0xfde879['newValue']){case'bulleted':return _0x475238(o(_0x31d7d7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x475238(o(_0x31d7d7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x475238(o(_0x31d7d7,'ELEMENT_TODO_LIST'));}}),_0x115570['descriptionFactory']['registerDescriptionCallback'](_0x49c613=>{const {data:_0x25fbf1}=_0x49c613;if(_0x25fbf1&&'listIndent'==_0x25fbf1['key'])return null==_0x25fbf1['newValue']||null==_0x25fbf1['oldValue']&&0x0==_0x25fbf1['newValue']?_0x1b56b8:void 0x0;}),_0x115570['descriptionFactory']['registerDescriptionCallback'](_0x3c90cf=>{if('attribute'!=_0x3c90cf['type'])return;const {data:_0x35967c}=_0x3c90cf;if(!_0x35967c||'listItemId'!=_0x35967c['key'])return;const _0x1e7083=Te(_0x3c90cf);return'newValue'==_0x1e7083?{'type':'format','content':o(_0x31d7d7,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1e7083?{'type':'format','content':o(_0x31d7d7,'*Split:*\x20list\x20item')}:_0x1b56b8;}),_0x4e0abc['model']['document']['registerPostFixer'](_0x2935fa=>this['listItemIdFixer'](_0x2935fa)),_0x4e0abc['model']['document']['registerPostFixer'](_0x8e977a=>this['noTrackChangesFixer'](_0x8e977a)),_0x4e0abc['model']['document']['on']('change:data',(_0x2570b3,_0x5b9908)=>{if(_0x5b9908['isUndo']||!_0x5b9908['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3d2d12){if(_0x3d2d12['batch']['isUndo']||!_0x3d2d12['batch']['isLocal'])return!0x1;let _0x56e3c6=!0x1;const _0x56d208=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f049e=>_0x5f049e['data']&&'listItemId'==_0x5f049e['data']['key'])['filter'](_0x577349=>_0x577349['data']['newValue']&&_0x577349['data']['oldValue']);for(const _0x415c9e of _0x56d208)Te(_0x415c9e)||(_0x3d2d12['removeMarker'](_0x415c9e['getFirstMarker']()),_0x56e3c6=!0x0);return _0x56e3c6;}['noTrackChangesFixer'](_0x5ddbec){if(_0x5ddbec['batch']['isUndo']||!_0x5ddbec['batch']['isLocal'])return!0x1;const _0x54c43e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x54c43e['trackChangesCommand']['value'])return!0x1;let _0x297c7f=!0x1;const _0x1e6655=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1e3985=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5c6be9=>'attribute'==_0x5c6be9['type'])['filter'](_0x3cdc74=>_0x1e6655['includes'](_0x3cdc74['attributeKey']));if(0x0==_0x1e3985['length'])return _0x297c7f;for(const _0x437398 of _0x1e3985){const _0x2dc773=_0x54c43e['_findSuggestions'](_0x437398['range'],'attribute')['filter'](_0x51a22d=>!_0x51a22d['meta']['isNextTo'])['map'](_0x1d1ed0=>_0x1d1ed0['suggestion'])['filter'](_0x1828d5=>{const _0x371311=_0x54c43e['_getAttributeKey'](_0x1828d5);return _0x1e6655['includes'](_0x371311);});if(_0x2dc773['length']){for(const _0xe48d41 of _0x2dc773)_0x5ddbec['removeMarker'](_0xe48d41['getFirstMarker']());_0x297c7f=!0x0;}}return _0x297c7f;}['assureChains'](){const _0x514e88=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a7ef2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4e6fe8;const _0x5a95=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4138c8=>{if(_0x4138c8['data']['oldRange']||!_0x4138c8['data']['newRange'])return null;if(!_0x4138c8['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1d93a8}=_0x514e88['_splitMarkerName'](_0x4138c8['name']);if(!_0x514e88['hasSuggestion'](_0x1d93a8))return null;const _0x59e412=_0x514e88['getSuggestion'](_0x1d93a8);return _0x5a7ef2['includes'](_0x59e412['data']['key']);})['map'](_0x3b16dc=>{const {id:_0x554f79}=_0x514e88['_splitMarkerName'](_0x3b16dc['name']),_0x19bceb=_0x514e88['getSuggestion'](_0x554f79);return _0x4e6fe8=_0x19bceb['attributes']['groupId'],_0x19bceb['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5a95['size'])return;const _0x44d6f6=_0x514e88['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d6f34=>'attribute'==_0x5d6f34['type']&&_0x5d6f34['data']&&_0x5a7ef2['includes'](_0x5d6f34['data']['key'])&&_0x5d6f34['attributes']['groupId']!=_0x4e6fe8)['map'](_0x53c5d5=>({'listItem':_0x53c5d5['getFirstRange']()['start']['nodeAfter'],'groupId':_0x53c5d5['attributes']['groupId']})),_0x274656=new Set();for(const {groupId:_0x25daae,listItem:_0x473650}of _0x44d6f6)_0x5a95['has'](_0x473650)&&_0x274656['add'](_0x25daae);for(const _0x279c46 of _0x514e88['getSuggestions']())_0x274656['has'](_0x279c46['attributes']['groupId'])&&_0x279c46['setAttribute']('groupId',_0x4e6fe8);}['_supportLegacySuggestions'](){const _0xb613f4=this['editor'],_0x4dd70c=_0xb613f4['locale'],_0x278754=_0xb613f4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x278754['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x280f51,_0x426b8c){const _0x25eb15=[];for(let _0x3737ee of _0x280f51)_0x3737ee['start']['nodeAfter']===_0x3737ee['end']['parent']&&(_0x3737ee=_0xb613f4['model']['createRange'](_0xb613f4['model']['createPositionAt'](_0x3737ee['start']['nodeAfter'],0x0))),_0x25eb15['push'](_0x3737ee);_0xb613f4['model']['change'](_0x35cf31=>{const _0x2a5164=_0xb613f4['model']['document']['selection'],_0x2bd8b6=Array['from'](_0x2a5164['getRanges']())['map'](_0x15058d=>_0x2c8040['fromRange'](_0x15058d));_0x35cf31['setSelection'](_0x25eb15),_0xb613f4['commands']['get'](_0x426b8c['commandName'])['refresh'](),_0x426b8c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xb613f4['execute'](_0x426b8c['commandName'],..._0x426b8c['commandParams']),_0x35cf31['setSelection'](_0x2bd8b6);for(const _0x2cdf77 of _0x2bd8b6)_0x2cdf77['detach']();});}),_0x278754['descriptionFactory']['registerElementLabel'](function(_0x283c2a){const _0x17b8d2=!_0xb613f4['model']['schema']['isObject'](_0x283c2a),_0x5696cc=_0x283c2a['previousSibling'],_0x58eaf8=_0x283c2a['nextSibling'],_0x26d4e5=_0x283c2a['getAttribute']('listItemId'),_0x4e938b=!_0x5696cc||_0x5696cc['getAttribute']('listItemId')!==_0x26d4e5,_0xb6da56=!_0x58eaf8||_0x58eaf8['getAttribute']('listItemId')!==_0x26d4e5;return _0x17b8d2&&Boolean(_0x26d4e5)&&_0x4e938b&&_0xb6da56;},_0x409cdd=>o(_0x4dd70c,'ELEMENT_LIST_ITEM',_0x409cdd));}['_registerLegacyDescription'](){const _0x143016=this['editor'],_0x4220f8=_0x143016['locale'];function _0xccb675(_0x575f82){const _0x3927ae=_0x143016['commands']['get']('bulletedList')['value'],_0x85c901=_0x143016['commands']['get']('numberedList')['value'];return'numberedList'===_0x575f82?_0x3927ae:_0x85c901;}_0x143016['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x215856){if('formatBlock'!=_0x215856['type'])return;const {data:_0x146e58}=_0x215856;if(!_0x146e58)return;let _0x57d449,_0x44e608,_0x2baaa6,_0x573aab;switch(_0x146e58['commandName']){case'bulletedList':_0x2baaa6=_0x146e58['commandParams'][0x0]['forceValue'],_0x573aab=_0xccb675(_0x146e58['commandName']),_0x57d449=_0x2baaa6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x573aab&&_0x143016['config']['get']('list.multiBlock')||(_0x57d449='*Change\x20to:*\x20%0'),_0x44e608={'type':'format','content':o(_0x4220f8,_0x57d449,o(_0x4220f8,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2baaa6=_0x146e58['commandParams'][0x0]['forceValue'],_0x573aab=_0xccb675(_0x146e58['commandName']),_0x57d449=_0x2baaa6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x573aab&&_0x143016['config']['get']('list.multiBlock')||(_0x57d449='*Change\x20to:*\x20%0'),_0x44e608={'type':'format','content':o(_0x4220f8,_0x57d449,o(_0x4220f8,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x57d449='*Indent:*\x20%0',_0x44e608={'type':'format','content':o(_0x4220f8,_0x57d449,o(_0x4220f8,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x57d449=function(_0x504679){const _0x59b3cc=_0x504679['getFirstRange']();let _0xfeffdb=_0x59b3cc['start']['nodeAfter'];for(;_0xfeffdb&&_0x59b3cc['containsItem'](_0xfeffdb);){if(_0xfeffdb['getAttribute']('listIndent')>0x0)return!0x1;_0xfeffdb=_0xfeffdb['nextSibling'];}return!0x0;}(_0x215856)?o(_0x4220f8,'*Format:*\x20remove\x20from\x20%0',o(_0x4220f8,function(_0x72ef17){return'ELEMENT_'+_0x72ef17['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x215856))):o(_0x4220f8,'*Outdent:*\x20%0',o(_0x4220f8,'ELEMENT_LIST_ITEM')),_0x44e608={'type':'format','content':_0x57d449};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x146e58['multipleBlocks']&&(_0x57d449='*Merge:*\x20%0',_0x44e608={'type':'deletion','content':o(_0x4220f8,_0x57d449,o(_0x4220f8,'ELEMENT_LIST_ITEM'))});}return _0x44e608;});}}function Te(_0x381667){let _0x2adc37=_0x381667['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2adc37;){const _0x2acbfd=_0x2adc37['getAttribute']('listItemId');if(!_0x2acbfd)return!0x1;if(_0x2acbfd==_0x381667['data']['newValue'])return'newValue';if(_0x2acbfd==_0x381667['data']['oldValue'])return'oldValue';_0x2adc37=_0x2adc37['previousSibling'];}return!0x1;}class q extends _0x17edf8{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x8cf084=this['editor']['config']['get']('list.properties'),_0x433eec=this['editor']['plugins']['get']('TrackChangesEditing');_0x8cf084['styles']&&(_0x433eec['enableDefaultAttributesIntegration']('listStyle'),_0x433eec['registerBlockAttribute']('listStyle')),_0x8cf084['reversed']&&(_0x433eec['enableDefaultAttributesIntegration']('listReversed'),_0x433eec['registerBlockAttribute']('listReversed')),_0x8cf084['startIndex']&&(_0x433eec['enableDefaultAttributesIntegration']('listStart'),_0x433eec['registerBlockAttribute']('listStart'));const _0x570e47={'type':'format','content':''};_0x433eec['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4d1ac8=this['editor']['locale'];_0x433eec['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4d1ac8,'FORMAT_LIST_REVERSED')),_0x433eec['descriptionFactory']['registerDescriptionCallback'](_0x2017a9=>{const {data:_0x2ab014}=_0x2017a9;if(_0x2ab014&&'listReversed'==_0x2ab014['key'])return null==_0x2ab014['newValue']||0x0==_0x2ab014['newValue']&&null==_0x2ab014['oldValue']?_0x570e47:void 0x0;}),_0x433eec['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4d1ac8,'FORMAT_LIST_START')),_0x433eec['descriptionFactory']['registerDescriptionCallback'](_0x1a709f=>{const {data:_0x47706f}=_0x1a709f;if(_0x47706f&&'listStart'==_0x47706f['key'])return null==_0x47706f['newValue']||0x1==_0x47706f['newValue']&&null==_0x47706f['oldValue']?_0x570e47:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x21d0ae=>{if(_0x21d0ae['batch']['isUndo'])return!0x1;let _0x2c4714=!0x1;const _0x367975=_0x433eec['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4323e7=>{const _0xc8c4d6=_0x433eec['_getAttributeKey'](_0x4323e7);return'listStart'==_0xc8c4d6||'listReversed'==_0xc8c4d6;});for(const _0x585455 of _0x367975){const _0x3f2729=_0x585455['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3f2729||'customNumbered'==_0x3f2729)continue;_0x433eec['_findSuggestions'](_0x585455['getFirstRange'](),'attribute')['find'](_0x230fa5=>'listType'==_0x433eec['_getAttributeKey'](_0x230fa5['suggestion']))||(_0x21d0ae['removeMarker'](_0x585455['getFirstMarker']()),_0x2c4714=!0x0);}return _0x2c4714;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x37bde4){const _0x4b081c=this['editor']['locale'],{data:_0x430b9b}=_0x37bde4,_0x7e9447={'type':'format','content':''};if(!_0x430b9b||'listStyle'!=_0x430b9b['key'])return;if(!_0x430b9b['oldValue'])return'default'==_0x430b9b['newValue']?_0x7e9447:{'type':'format','content':''+o(_0x4b081c,'*Set\x20format:*\x20%0',o(_0x4b081c,this['_getTranslationKeyForListStyle'](_0x430b9b['newValue'])))};if(!_0x430b9b['newValue']){if('default'==_0x430b9b['oldValue'])return _0x7e9447;let _0x4c9b32=_0x37bde4['head'];for(;_0x4c9b32;){if(_0x4c9b32['data']&&'listType'==_0x4c9b32['data']['key']&&_0x4c9b32['data']['newValue'])return _0x7e9447;_0x4c9b32=_0x4c9b32['next'];}return{'type':'format','content':''+o(_0x4b081c,'*Remove\x20format:*\x20%0',o(_0x4b081c,this['_getTranslationKeyForListStyle'](_0x430b9b['oldValue'])))};}if('default'!=_0x430b9b['newValue'])return{'type':'format','content':''+o(_0x4b081c,'*Set\x20format:*\x20%0',o(_0x4b081c,this['_getTranslationKeyForListStyle'](_0x430b9b['newValue'])))};let _0x195da9=_0x37bde4['head'];for(;_0x195da9;){if(_0x195da9['data']&&'listType'==_0x195da9['data']['key']&&_0x195da9['data']['newValue']&&_0x195da9['data']['oldValue'])return _0x7e9447;_0x195da9=_0x195da9['next'];}return{'type':'format','content':o(_0x4b081c,'*Set\x20format:*\x20%0',o(_0x4b081c,'ELEMENT_'+_0x37bde4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3fa562=this['editor'],_0x87d09a=_0x3fa562['locale'];_0x3fa562['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5626c8=>{if('formatBlock'!=_0x5626c8['type'])return;const {data:_0x1ed0d3}=_0x5626c8;if(!_0x1ed0d3)return;let _0x48ec68,_0x4d64bd;switch(_0x1ed0d3['commandName']){case'listStyle':_0x48ec68='*Change\x20to:*\x20%0',_0x4d64bd={'type':'format','content':o(_0x87d09a,_0x48ec68,o(_0x87d09a,this['_getTranslationKeyForListStyle'](_0x1ed0d3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x48ec68=_0x1ed0d3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4d64bd={'type':'format','content':o(_0x87d09a,_0x48ec68)};break;case'listStart':_0x48ec68='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4d64bd={'type':'format','content':o(_0x87d09a,_0x48ec68,_0x1ed0d3['commandParams'][0x0]['startIndex'])};}return _0x4d64bd;});}['_getTranslationKeyForListStyle'](_0x21c684){return'ELEMENT_'+function(_0x14eda7){if(Se['includes'](_0x14eda7))return'bulleted';if(_e['includes'](_0x14eda7))return'numbered';return null;}(_0x21c684)['toUpperCase']()+'_LIST_'+_0x21c684['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x17edf8{['afterInit'](){const _0x24bc12=this['editor'];_0x24bc12['commands']['get']('emoji')&&_0x24bc12['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x17edf8{static get['requires'](){return[_0x517aea];}['init'](){const _0x212699=this['editor'],_0x4e732a=_0x212699['plugins']['get']('TrackChangesEditing'),_0xab851=_0x212699['commands']['get']('enter');_0x4e732a['enableCommand']('enter',()=>{_0x212699['model']['change'](_0x2e5146=>{const _0x381987=_0x212699['model']['document']['selection'],_0xda2db5=_0x381987['getFirstPosition'](),_0x298cd3=_0x2c8040['fromRange'](_0x381987['getFirstRange']());if(_0xab851['enterBlock'](_0x2e5146)){const _0xa67b32=_0x212699['model']['createPositionAt'](_0xda2db5['parent']['nextSibling'],0x0),_0xde23ac=_0x2e5146['createRange'](_0xda2db5,_0xa67b32);_0x4e732a['markInsertion'](_0xde23ac);}else _0x2e5146['setSelection'](_0x2e5146['createRange'](_0x298cd3['end']));_0x298cd3['detach'](),_0xab851['fire']('afterExecute',{'writer':_0x2e5146});});}),_0x212699['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x212699,'split'),{'priority':'high'}),_0x212699['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4780d3,_0x130873,_0x119459)=>{const _0x474640=_0x119459['mapper']['markerNameToElements'](_0x130873['markerName']);if(_0x474640){for(const _0x5167e1 of _0x474640)_0x5167e1['hasClass']('ck-suggestion-marker-split')&&(_0x119459['mapper']['unbindElementFromMarkerName'](_0x5167e1,_0x130873['markerName']),_0x119459['writer']['remove'](_0x5167e1));}},{'priority':'high'}),_0x212699['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x312996,_0x1b2b06,_0x4cef7d)=>{_0x4cef7d['options']['showSuggestionHighlights']&&De(_0x212699,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x312996,_0x1b2b06,_0x4cef7d);},{'priority':'high'});}}class Q extends _0x17edf8{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x175cff=this['editor']['plugins']['get']('TrackChangesEditing');_0x175cff['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x175cff['enableCommand']('findNext'),_0x175cff['enableCommand']('findPrevious'),_0x175cff['enableCommand']('replace'),_0x175cff['enableCommand']('replaceAll');}['handleFindCommand'](_0x2516ce,_0x4cfa3f,_0x3bd23d={}){const _0x57033e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2516ce(_0x2bf56b=>{let _0x599a3f=('string'==typeof _0x4cfa3f?_0x57033e['findByTextCallback'](_0x4cfa3f,_0x3bd23d):_0x4cfa3f)(_0x2bf56b);Array['isArray'](_0x599a3f)&&(_0x599a3f={'results':_0x599a3f,'searchText':'string'==typeof _0x4cfa3f?_0x4cfa3f:''});const _0x558548=_0x599a3f['results']['filter'](_0x29d6fe=>!0x1===this['_isInDeletionRange'](_0x29d6fe,_0x2bf56b['item']));return{..._0x599a3f,'results':_0x558548};},_0x3bd23d);}['_isInDeletionRange'](_0x4ca24a,_0x1c103c){const _0x1ebc22=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c103c,_0x4ca24a['start']),this['editor']['model']['createPositionAt'](_0x1c103c,_0x4ca24a['end']));for(const _0x48d198 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1ebc22['getIntersection'](_0x48d198['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x17edf8{['afterInit'](){const _0x235ab3=this['editor']['locale'],_0x27adf9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x39298a,commandName:_0x56adf1}of eo)this['editor']['plugins']['has'](_0x39298a)&&(_0x27adf9['enableDefaultAttributesIntegration'](_0x56adf1),_0x27adf9['registerInlineAttribute'](_0x56adf1));_0x27adf9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x235ab3,'FORMAT_FONT_SIZE')),_0x27adf9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x235ab3,'FORMAT_FONT_FAMILY')),_0x27adf9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x235ab3,'FORMAT_FONT_COLOR')),_0x27adf9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x235ab3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35d472=this['editor'],_0x223503=_0x35d472['locale'];_0x35d472['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b0823=>{const _0x23f137=_0x223503['t'];if('formatInline'!=_0x5b0823['type'])return;const {data:_0x18dcdc}=_0x5b0823;if(null!=_0x18dcdc){if('fontSize'==_0x18dcdc['commandName']){const _0x1fe6cd=_0x18dcdc['commandParams'][0x0]['value'];if(_0x1fe6cd){const _0x5cf58c=_0x23f137(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4f8168=>_0x4f8168['model']==_0x1fe6cd)['title'])['toLowerCase']();return{'type':'format','content':o(_0x223503,'*Set\x20font\x20size:*\x20%0',_0x5cf58c)};}return{'type':'format','content':o(_0x223503,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x18dcdc['commandName']){const _0x1eb76f=_0x18dcdc['commandParams'][0x0]['value'];return _0x1eb76f?{'type':'format','content':o(_0x223503,'*Set\x20font\x20family:*\x20%0',_0x1eb76f)}:{'type':'format','content':o(_0x223503,'*Reset\x20font\x20family*')};}if('fontColor'==_0x18dcdc['commandName']){const _0x51f39a=_0x18dcdc['commandParams'][0x0]['value'];if(_0x51f39a){const _0x29e90f=_0xec5bfe(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4dcf11=>_0x4dcf11['model']==_0x51f39a);let _0x3e09be=_0x51f39a,_0x4a4892='';return _0x29e90f&&(_0x3e09be=_0x29e90f['label'],_0x4a4892=_0x23f137(_0x3e09be)['toLowerCase']()),{'type':'format','content':o(_0x223503,'*Set\x20font\x20color:*\x20%0',_0x4a4892)['trim'](),'color':{'value':_0x51f39a,'title':_0x4a4892||_0x3e09be}};}return{'type':'format','content':o(_0x223503,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x18dcdc['commandName']){const _0x59379f=_0x18dcdc['commandParams'][0x0]['value'];if(_0x59379f){const _0x38b36d=_0xec5bfe(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1c8ab4=>_0x1c8ab4['model']==_0x59379f);let _0x4ab7c9=_0x59379f,_0x23bd59='';return _0x38b36d&&(_0x4ab7c9=_0x38b36d['label'],_0x23bd59=_0x23f137(_0x4ab7c9)['toLowerCase']()),{'type':'format','content':o(_0x223503,'*Set\x20font\x20background\x20color:*\x20%0',_0x23bd59)['trim'](),'color':{'value':_0x59379f,'title':_0x23bd59||_0x4ab7c9}};}return{'type':'format','content':o(_0x223503,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x17edf8{['afterInit'](){const _0x5c91c9=this['editor'],_0x559e3c=_0x5c91c9['plugins']['get']('TrackChangesEditing'),_0x20a4ed=_0x5c91c9['commands']['get']('copyFormat'),_0x3e3f58=_0x5c91c9['commands']['get']('pasteFormat');_0x20a4ed&&_0x3e3f58&&(_0x559e3c['enableDefaultAttributesIntegration']('pasteFormat'),_0x559e3c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xf43808=this['editor'],_0x42edc7=_0xf43808['locale'];_0xf43808['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36e9e5=>{if('formatBlock'!=_0x36e9e5['type']&&'formatInline'!=_0x36e9e5['type'])return;const {data:_0x4a2121}=_0x36e9e5;if(_0x4a2121&&'pasteFormat'===_0x4a2121['commandName']){const _0x5988d6=[],_0x1e1353=_0x4a2121['commandParams'][0x0];for(const [_0x3dcdc1,_0x56381c]of Object['entries'](_0x1e1353))_0x5988d6['push'](ro(_0xf43808,_0x3dcdc1,_0x56381c));return _0x5988d6['length']?{'type':'format','content':o(_0x42edc7,'*Set\x20format\x20to:*\x20%0',_0x5988d6['join'](',\x20'))}:{'type':'format','content':o(_0x42edc7,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xccad3,_0x22f5b3,_0x47f6e9){const _0x5224fe=_0xccad3['locale']['t'],_0x4c96d8=_0x22f5b3['split'](/(?=[A-Z])/)['join']('\x20'),_0x3b8db3=_0x5224fe(_0x4c96d8['charAt'](0x0)['toUpperCase']()+_0x4c96d8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x47f6e9)return _0x3b8db3;if('fontColor'===_0x22f5b3||'fontBackgroundColor'===_0x22f5b3){const _0x264761=_0xec5bfe(_0xccad3['config']['get']('fontColor.colors'))['find'](_0x294c79=>_0x294c79['model']==_0x47f6e9);return _0x3b8db3+'\x20('+(_0x264761?_0x5224fe(_0x264761['label'])['toLowerCase']():_0x47f6e9)+')';}if('fontSize'===_0x22f5b3&&isNaN(parseFloat(_0x47f6e9))){const _0x4629a3=_0xccad3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xccad3['config']['get']('fontSize.options'))['find'](_0x22bd2e=>_0x22bd2e['model']==_0x47f6e9);return _0x3b8db3+'\x20('+(_0x4629a3?_0x5224fe(_0x4629a3['title'])['toLowerCase']():_0x47f6e9)+')';}return _0x3b8db3+'\x20('+_0x47f6e9+')';}class Z extends _0x17edf8{['_headingOptions'];['afterInit'](){const _0xd698f9=this['editor'];if(!_0xd698f9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xd698f9['config']['get']('heading.options');const _0x202101=_0xd698f9['locale'],_0x46c483=_0xd698f9['plugins']['get']('TrackChangesEditing');_0x46c483['enableDefaultAttributesIntegration']('heading');for(const _0x12e68b of this['_headingOptions'])'paragraph'!=_0x12e68b['model']&&_0x46c483['descriptionFactory']['registerElementLabel'](_0x12e68b['model'],_0x2a9b50=>{const _0x26497f=this['_getHeadingLevel'](_0x12e68b['model']);return null!==_0x26497f?_0x3530eb(_0x2a9b50,_0x26497f):_0x3735e6(_0x2a9b50,_0x12e68b['title']);});function _0x3530eb(_0x1826a7,_0x128de7){return o(_0x202101,'ELEMENT_HEADING',[_0x1826a7,_0x128de7]);}function _0x3735e6(_0x5c93ed,_0x5b3c07){return o(_0x202101,'ELEMENT_HEADING_CUSTOM',[_0x5c93ed,_0x5b3c07]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ff30f=this['editor'],_0x54be94=_0x3ff30f['locale'];function _0x28eb52(_0x296761,_0x1377d9){return o(_0x54be94,'ELEMENT_HEADING_CUSTOM',[_0x296761,_0x1377d9]);}_0x3ff30f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22b0b3=>{if('formatBlock'!=_0x22b0b3['type'])return;const {data:_0x5b6eac}=_0x22b0b3;if(_0x5b6eac&&'heading'==_0x5b6eac['commandName']){const _0x66871f=_0x5b6eac['commandParams'][0x0]['value'],_0x1d2a0c=this['_getHeadingLevel'](_0x66871f);if(null!==_0x1d2a0c)return{'type':'format','content':o(_0x54be94,'*Change\x20to:*\x20%0',(_0x3f08e5=0x1,_0x17c08a=_0x1d2a0c,o(_0x54be94,'ELEMENT_HEADING',[_0x3f08e5,_0x17c08a])))};const _0x58a4b2=this['_headingOptions']['find'](_0x1678e2=>_0x1678e2['model']===_0x66871f)['title'];return{'type':'format','content':o(_0x54be94,'*Change\x20to:*\x20%0',_0x28eb52(0x1,_0x58a4b2))};}var _0x3f08e5,_0x17c08a;});}['_getHeadingLevel'](_0xbb4787){const _0x7161d4=_0xbb4787['match'](/^heading(\d+)/);if(_0x7161d4)return _0x7161d4[0x1];const _0x4a3d7a=this['_headingOptions']?.['find'](_0x567ff1=>_0x567ff1['model']==_0xbb4787);if(_0x4a3d7a&&_0x4a3d7a['view']){const _0x379672=_0x4a3d7a['view'],_0x547b60=(_0x379672['name']??_0x379672)['match'](/^h(\d+)/);if(_0x547b60)return _0x547b60[0x1];}return null;}}class tt extends _0x17edf8{['afterInit'](){const _0x2804e6=this['editor'];if(!_0x2804e6['plugins']['has']('HighlightEditing'))return;const _0xe1595=_0x2804e6['plugins']['get']('TrackChangesEditing'),_0x10f187=_0x2804e6['locale'];_0xe1595['enableDefaultAttributesIntegration']('highlight'),_0xe1595['registerInlineAttribute']('highlight'),_0xe1595['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x10f187,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39dce5=this['editor'],_0x260657=_0x39dce5['locale'];_0x39dce5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x154795=>{if('formatInline'!=_0x154795['type'])return;const {data:_0x258ec9}=_0x154795;if(_0x258ec9&&'highlight'==_0x258ec9['commandName']){const _0x2d7446=_0x260657['t'],_0xfa96f5=_0x258ec9['commandParams'][0x0]['value'];if(_0xfa96f5){const _0x2d4cae=_0x39dce5['config']['get']('highlight.options')['find'](_0x387e71=>_0x387e71['model']==_0xfa96f5),_0x5e0420=_0x2d7446(_0x2d4cae['title'])['toLowerCase']();return{'type':'format','content':o(_0x260657,'*Set\x20highlight:*\x20%0',_0x5e0420),'color':{'value':_0x2d4cae['color'],'title':_0x2d4cae['title']}};}return{'type':'format','content':o(_0x260657,'*Remove\x20highlight*',o(_0x260657,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x17edf8{['afterInit'](){const _0xa318d8=this['editor'];if(!_0xa318d8['plugins']['has']('HorizontalLineEditing'))return;_0xa318d8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x44e8d9=_0xa318d8['plugins']['get']('TrackChangesEditing'),_0x1c9922=_0xa318d8['locale'];_0x44e8d9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3c2364=>o(_0x1c9922,'ELEMENT_HORIZONTAL_LINE',_0x3c2364)),_0xa318d8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2f524b,{writer:_0x208612,options:_0x56d865})=>{if(!_0x56d865['showSuggestionHighlights'])return null;const _0x5d7120=_0x208612['createContainerElement']('div'),_0x628c1b=_0x208612['createEmptyElement']('hr');return _0x208612['addClass']('ck-horizontal-line',_0x5d7120),_0x208612['insert'](_0x208612['createPositionAt'](_0x5d7120,0x0),_0x628c1b),_0x5d7120;},'converterPriority':'high'});}}class nt extends _0x17edf8{['afterInit'](){const _0x21b58f=this['editor'];if(!_0x21b58f['plugins']['has']('HtmlEmbed'))return;const _0x53a7fa=_0x21b58f['plugins']['get']('TrackChangesEditing'),_0x51168e=_0x21b58f['locale'];_0x53a7fa['descriptionFactory']['registerElementLabel']('rawHtml',_0x24e183=>o(_0x51168e,'ELEMENT_HTML_EMBED',_0x24e183)),_0x53a7fa['enableDefaultAttributesIntegration']('htmlEmbed'),_0x53a7fa['registerBlockAttribute']('value'),_0x53a7fa['descriptionFactory']['registerDescriptionCallback'](_0x2f91b=>{if('attribute'!=_0x2f91b['type'])return;const {data:_0x128259}=_0x2f91b;if(_0x128259&&'value'==_0x128259['key']&&_0x2f91b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x28a0dd=o(_0x51168e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x51168e,'*Change\x20%0\x20content*',_0x28a0dd)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52f500=this['editor'],_0x4a7363=_0x52f500['locale'];_0x52f500['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd8cf76=>{if('formatBlock'!=_0xd8cf76['type'])return;const {data:_0x18c5db}=_0xd8cf76;if(_0x18c5db&&'htmlEmbed'==_0x18c5db['commandName']){const _0xd5e8da=o(_0x4a7363,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4a7363,'*Change\x20%0\x20content*',_0xd5e8da)};}});}}class et extends _0x17edf8{['afterInit'](){const _0x5ec2f4=this['editor'];if(!_0x5ec2f4['plugins']['has']('ImageEditing'))return;const _0x50fb04=_0x5ec2f4['plugins']['get']('TrackChangesEditing'),_0x34c528=_0x5ec2f4['plugins']['get']('ImageUtils'),_0x2352d7=_0x5ec2f4['locale'];_0x50fb04['enableCommand']('insertImage'),_0x50fb04['descriptionFactory']['registerElementLabel']('imageBlock',_0x23d98c=>o(_0x2352d7,'ELEMENT_IMAGE',_0x23d98c)),_0x50fb04['descriptionFactory']['registerElementLabel']('imageInline',_0x542710=>o(_0x2352d7,'ELEMENT_INLINE_IMAGE',_0x542710)),_0x50fb04['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2352d7,'ELEMENT_CAPTION')),_0x5ec2f4['plugins']['has']('ImageUploadEditing')&&_0x50fb04['enableCommand']('uploadImage'),_0x5ec2f4['plugins']['has']('ImageBlockEditing')&&_0x5ec2f4['plugins']['has']('ImageInlineEditing')&&(_0x50fb04['enableCommand']('imageTypeInline',(_0x10b870,_0x2a729f)=>{const _0xb1e1ae=_0x34c528['getClosestSelectedImageElement'](_0x5ec2f4['model']['document']['selection']);_0x5ec2f4['model']['change'](()=>{_0x50fb04['markBlockFormat'](_0xb1e1ae,{'commandName':'imageTypeInline','commandParams':[_0x2a729f]},[],'convertBlockImageToInline');});}),_0x50fb04['enableCommand']('imageTypeBlock',(_0xf877b5,_0x219187)=>{_0x5ec2f4['model']['change'](_0x4d2932=>{let _0x8c844c=_0x34c528['getClosestSelectedImageElement'](_0x5ec2f4['model']['document']['selection']),_0x5edfec=_0x4d2932['createRangeOn'](_0x8c844c);const _0x21598a=_0x2299d8['fromPosition'](_0x5edfec['start'],'toPrevious'),_0x1a5256=_0x2299d8['fromPosition'](_0x5edfec['end'],'toNext');_0x50fb04['forceDefaultExecution'](()=>_0xf877b5(_0x219187)),_0x8c844c=_0x34c528['getClosestSelectedImageElement'](_0x5ec2f4['model']['document']['selection']),_0x5edfec=_0x4d2932['createRangeOn'](_0x8c844c);const _0x23ab46=_0x4d2932['createRange'](_0x21598a,_0x1a5256);_0x21598a['detach'](),_0x1a5256['detach'](),_0x50fb04['markBlockFormat'](_0x8c844c,{'commandName':'imageTypeInline','commandParams':[_0x219187]},[],'convertInlineImageToBlock'),_0x23ab46['start']['isBefore'](_0x5edfec['start'])&&_0x50fb04['markInsertion'](_0x4d2932['createRange'](_0x23ab46['start'],_0x5edfec['start']),'convertInlineImageToBlock'),_0x5edfec['end']['isBefore'](_0x23ab46['end'])&&_0x50fb04['markInsertion'](_0x4d2932['createRange'](_0x5edfec['end'],_0x23ab46['end']),'convertInlineImageToBlock');});}),_0x50fb04['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x50fb04['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x50fb04['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x50fb04['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x50fb04['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x50fb04['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2ac5aa])=>{const _0x2d8a55=_0x50fb04['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x256033=_0x2ac5aa['start'],_0x606325=_0x2ac5aa['end'];const _0x17aa15=_0x5ec2f4['model']['schema']['getNearestSelectionRange'](_0x256033,'backward'),_0x1e8305=_0x5ec2f4['model']['schema']['getNearestSelectionRange'](_0x606325,'forward');_0x17aa15['isCollapsed']&&(_0x256033=_0x17aa15['start']),_0x1e8305['isCollapsed']&&(_0x606325=_0x1e8305['end']),_0x2d8a55([_0x5ec2f4['model']['createRange'](_0x256033,_0x606325)]);}),_0x50fb04['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1759cd),_0x50fb04['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1759cd)),_0x5ec2f4['plugins']['has']('ImageCaptionEditing')&&(_0x50fb04['enableCommand']('toggleImageCaption',(_0x197e84,_0x5a8713)=>{const _0x5d6e05=_0x5ec2f4['plugins']['get']('ImageCaptionUtils');let _0x325dda=_0x34c528['getClosestSelectedImageElement'](_0x5ec2f4['model']['document']['selection']),_0xaab5df=_0x5d6e05['getCaptionFromImageModelElement'](_0x325dda);_0x5ec2f4['model']['change'](()=>{if(_0xaab5df)return void _0x50fb04['markDeletion'](_0x5ec2f4['model']['createRangeOn'](_0xaab5df));const _0x3222d0=_0x34c528['isBlockImage'](_0x325dda);_0x197e84(_0x5a8713),_0x325dda=_0x34c528['getClosestSelectedImageElement'](_0x5ec2f4['model']['document']['selection']),_0xaab5df=_0x5d6e05['getCaptionFromImageModelElement'](_0x325dda),_0x50fb04['markInsertion'](_0x5ec2f4['model']['createRangeOn'](_0xaab5df),_0x3222d0?null:'imageCaption');});}),_0x50fb04['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1759cd));const _0x143829=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x25801e(_0x37ab8a,_0x1a6a45){const _0x37b6b9=_0x143829['findIndex'](({type:_0x3f8905,subType:_0xc089ef})=>_0x37ab8a['type']==_0x3f8905&&_0x37ab8a['subType']==_0xc089ef),_0xe3f5c=_0x143829['findIndex'](({type:_0x3aab5d,subType:_0x5a6f3f})=>_0x1a6a45['type']==_0x3aab5d&&_0x1a6a45['subType']==_0x5a6f3f);if(_0x37b6b9<0x0||_0xe3f5c<0x0)return!0x1;const _0xd5409b=_0x37ab8a['getFirstRange'](),_0x20fb9a=_0x1a6a45['getFirstRange']();if((0x0==_0x37b6b9||0x1==_0x37b6b9)&&0x2==_0xe3f5c&&_0xd5409b['isIntersecting'](_0x20fb9a))return!0x0;if(0x2==_0x37b6b9&&0x3==_0xe3f5c){const _0x4e6e95=_0x50fb04['_findSuggestions'](_0xd5409b,'insertion')['filter'](({suggestion:_0x32e208,meta:_0x39bfe5})=>_0x39bfe5['isOwn']&&'convertInlineImageToBlock'==_0x32e208['subType']);if(_0x4e6e95['length']>0x1&&_0x20fb9a['end']['isEqual'](_0xd5409b['start']))return!0x0;if(0x1==_0x4e6e95['length']&&(_0xd5409b['start']['isEqual'](_0x20fb9a['end'])||_0xd5409b['end']['isEqual'](_0x20fb9a['start'])))return!0x0;}if(0x3==_0x37b6b9&&0x3==_0xe3f5c&&_0xd5409b['start']['isBefore'](_0x20fb9a['start'])){const _0x4e1e34=_0xd5409b['end']['nodeAfter'],_0xcc92a7=_0x20fb9a['start']['nodeBefore'];return _0x34c528['isBlockImage'](_0x4e1e34)&&_0x4e1e34===_0xcc92a7;}return!0x1;}function _0x1759cd(_0x1b1a7f,_0x2fbc9c){return _0x25801e(_0x1b1a7f,_0x2fbc9c)?[_0x1b1a7f,_0x2fbc9c]:_0x25801e(_0x2fbc9c,_0x1b1a7f)?[_0x2fbc9c,_0x1b1a7f]:null;}_0x5ec2f4['plugins']['has']('ImageResize')&&(_0x50fb04['enableDefaultAttributesIntegration']('resizeImage'),_0x50fb04['registerBlockAttribute']('resizedWidth'),_0x50fb04['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2352d7,'FORMAT_IMAGE_SIZE'))),_0x5ec2f4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x50fb04['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x50fb04['registerBlockAttribute']('alt')),_0x5ec2f4['plugins']['has']('PictureEditing')&&(_0x50fb04['registerBlockAttribute']('sources'),_0x50fb04['descriptionFactory']['registerDescriptionCallback'](_0x496a61=>{if('attribute'!=_0x496a61['type'])return;const {data:_0x594158}=_0x496a61;return _0x594158&&'sources'==_0x594158['key']?{'type':'format','content':''}:void 0x0;})),_0x5ec2f4['plugins']['has']('ImageSizeAttributes')&&(_0x50fb04['registerBlockAttribute']('width'),_0x50fb04['registerBlockAttribute']('height'),_0x50fb04['descriptionFactory']['registerDescriptionCallback'](_0x1756cc=>{if('attribute'!=_0x1756cc['type'])return;const {data:_0x413ed7}=_0x1756cc;return!_0x413ed7||'width'!=_0x413ed7['key']&&'height'!=_0x413ed7['key']?void 0x0:{'type':'format','content':''};})),_0x50fb04['descriptionFactory']['registerDescriptionCallback'](_0x16874b=>{if(!!_0x143829['find'](({type:_0x1175ab,subType:_0x3d171a})=>_0x16874b['type']==_0x1175ab&&_0x16874b['subType']==_0x3d171a))return _0x16874b['previous']?{}:void 0x0;}),_0x50fb04['descriptionFactory']['registerDescriptionCallback'](_0x35ef84=>{if('insertion'==_0x35ef84['type']||'deletion'==_0x35ef84['type']){const _0x571eb9=_0x35ef84['getContainedElement']();if(_0x571eb9&&_0x571eb9['is']('element','caption'))return{'type':'insertion'==_0x35ef84['type']?'addObject':'removeObject','element':_0x571eb9,'quantity':0x1};}}),_0x50fb04['descriptionFactory']['registerDescriptionCallback'](_0x3484f1=>'formatBlock'==_0x3484f1['type']&&'convertInlineImageToBlock'==_0x3484f1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3484f1['type']&&'convertBlockImageToInline'==_0x3484f1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x50fb04['descriptionFactory']['registerDescriptionCallback'](_0x5058a6=>{if('attribute'!=_0x5058a6['type'])return;const {data:_0x487c05}=_0x5058a6;if(!_0x487c05||'alt'!=_0x487c05['key'])return;const _0x28a515=_0x487c05['newValue'];return _0x28a515?{'type':'format','content':o(_0x2352d7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x28a515+'\x22')}:{'type':'format','content':o(_0x2352d7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x264515=this['editor'],_0x37c604=_0x264515['locale'];_0x264515['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48120b=>{if('formatBlock'!=_0x48120b['type']&&'formatInline'!=_0x48120b['type'])return;const {data:_0x394a43}=_0x48120b;if(_0x394a43){if('imageTextAlternative'==_0x394a43['commandName']){const _0x477bf4=_0x394a43['commandParams'][0x0]['newValue'];return _0x477bf4?{'type':'format','content':o(_0x37c604,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x477bf4+'\x22')}:{'type':'format','content':o(_0x37c604,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x394a43['commandName']){const _0xb8b154=_0x394a43['commandParams'][0x0]['width'];return _0xb8b154?{'type':'format','content':o(_0x37c604,'*Set\x20image\x20width:*\x20%0',_0xb8b154)}:{'type':'format','content':o(_0x37c604,'*Reset\x20image\x20width*')};}}});}}class st extends _0x17edf8{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1cf65=this['editor']['locale'],_0x22de63=this['editor']['plugins']['get']('TrackChangesEditing');_0x22de63['enableDefaultAttributesIntegration']('replaceImageSource'),_0x22de63['registerBlockAttribute']('src'),_0x22de63['descriptionFactory']['registerDescriptionCallback'](_0x557575=>{if('attribute'!=_0x557575['type'])return;const {data:_0x310633}=_0x557575;return _0x310633&&'src'==_0x310633['key']?_0x310633['newValue']&&_0x310633['oldValue']?{'type':'format','content':o(_0x1cf65,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b1795=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b1795['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1b1795['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1b1795['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1b1795['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c8f8f=this['editor'],_0x4ef5b0=_0x3c8f8f['locale'];_0x3c8f8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa38e47=>{if('formatBlock'!=_0xa38e47['type']&&'formatInline'!=_0xa38e47['type'])return;const {data:_0x578b7d}=_0xa38e47;if(!_0x578b7d||'replaceImageSource'!=_0x578b7d['commandName'])return;return{'type':'format','content':o(_0x4ef5b0,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x17edf8{['afterInit'](){const _0x3a9b99=this['editor'];if(!_0x3a9b99['plugins']['has']('ImageStyleEditing'))return;const _0x52a37c=_0x3a9b99['plugins']['get']('TrackChangesEditing'),_0x5b0539=_0x3a9b99['plugins']['get']('ImageUtils'),_0x502739={};_0x52a37c['enableCommand']('imageStyle',(_0x4bcdcf,_0x21387a)=>{const _0xeda78e=_0x3a9b99['plugins']['get']('Users')['me'],_0x571eb2=_0x3a9b99['commands']['get']('imageStyle');let _0x4a417e=_0x5b0539['getClosestSelectedImageElement'](_0x3a9b99['model']['document']['selection']),_0x188575=_0x3a9b99['model']['createRangeOn'](_0x4a417e),_0x363daf=_0x571eb2['value'];if(_0x363daf==_0x21387a['value'])return;const _0x2048a7={'commandName':'imageStyle','commandParams':[_0x21387a],'formatGroupId':_0x17daf6()};_0x3a9b99['model']['change'](()=>{if(_0x52a37c['getSuggestions']()['filter'](_0x2f4778=>_0x2f4778['isInContent']&&_0xeda78e==_0x2f4778['author']&&('formatBlock'==_0x2f4778['type']||'formatInline'==_0x2f4778['type'])&&('imageStylePreApply'==_0x2f4778['subType']||'imageStylePostApply'==_0x2f4778['subType'])&&_0x2f4778['getFirstRange']()['isEqual'](_0x188575))['forEach'](_0x26b365=>_0x52a37c['discardSuggestion'](_0x26b365['head'])),_0x4a417e=_0x5b0539['getClosestSelectedImageElement'](_0x3a9b99['model']['document']['selection']),_0x188575=_0x3a9b99['model']['createRangeOn'](_0x4a417e),_0x571eb2['refresh'](),_0x3a9b99['commands']['get']('imageTypeInline')['refresh'](),_0x3a9b99['commands']['get']('imageTypeBlock')['refresh'](),_0x363daf=_0x571eb2['value'],_0x363daf!=_0x21387a['value'])return _0x5b0539['isInlineImage'](_0x4a417e)&&_0x571eb2['shouldConvertImageType'](_0x21387a['value'],_0x4a417e)?(_0x4bcdcf({..._0x21387a,'setImageSizes':!0x1}),_0x4a417e=_0x5b0539['getClosestSelectedImageElement'](_0x3a9b99['model']['document']['selection']),void _0x52a37c['markBlockFormat'](_0x4a417e,{..._0x2048a7,'commandReversedParams':[{'value':_0x363daf||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5b0539['isBlockImage'](_0x4a417e)?_0x52a37c['markBlockFormat'](_0x4a417e,_0x2048a7,[],'imageStylePostApply'):_0x52a37c['markInlineFormat'](_0x188575,_0x2048a7,'imageStylePostApply'));});});for(const _0x5e5184 of _0x3a9b99['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x502739[_0x5e5184['name']]=_0x5e5184['title']['toLowerCase']();_0x52a37c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x52a37c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x52a37c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x52a37c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x337609])=>{_0x5b0539['setImageNaturalSizeAttributes'](_0x337609['getContainedElement']());}),_0x52a37c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xc00469,_0x1e1a39)=>{_0x52a37c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xc00469,{'commandName':_0x1e1a39['commandName'],'commandParams':_0x1e1a39['commandReversedParams']});}),_0x52a37c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x34e604,_0x25ec9b){if(_0x36adb9(_0x34e604,_0x25ec9b))return[_0x34e604,_0x25ec9b];if(_0x36adb9(_0x25ec9b,_0x34e604))return[_0x25ec9b,_0x34e604];return null;});const _0x12b041=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x36adb9(_0x36da78,_0x3cb87e){const _0x544fcc=_0x12b041['findIndex'](({type:_0x1ab998,subType:_0x33d573})=>_0x36da78['type']==_0x1ab998&&_0x36da78['subType']==_0x33d573),_0x10786d=_0x12b041['findIndex'](({type:_0x3336d4,subType:_0x2a3020})=>_0x3cb87e['type']==_0x3336d4&&_0x3cb87e['subType']==_0x2a3020);if(_0x544fcc<0x0||_0x10786d<0x0)return!0x1;const _0x116bc7=_0x36da78['getFirstRange'](),_0x28f55f=_0x3cb87e['getFirstRange']();if((0x0==_0x544fcc||0x1==_0x544fcc)&&0x2==_0x10786d&&_0x116bc7['isIntersecting'](_0x28f55f))return!0x0;if(0x2==_0x544fcc&&0x3==_0x10786d){const _0x214a1a=_0x52a37c['_findSuggestions'](_0x116bc7,'insertion')['filter'](({suggestion:_0x2ee91d,meta:_0x5b49b1})=>_0x5b49b1['isOwn']&&'convertInlineImageToBlock'==_0x2ee91d['subType']);if(_0x214a1a['length']>0x1&&_0x28f55f['end']['isEqual'](_0x116bc7['start']))return!0x0;if(0x1==_0x214a1a['length']&&(_0x116bc7['start']['isEqual'](_0x28f55f['end'])||_0x116bc7['end']['isEqual'](_0x28f55f['start'])))return!0x0;}if(0x3==_0x544fcc&&0x3==_0x10786d&&_0x116bc7['start']['isBefore'](_0x28f55f['start'])){const _0x9fad5=_0x116bc7['end']['nodeAfter'],_0x1495e8=_0x28f55f['start']['nodeBefore'];return _0x5b0539['isBlockImage'](_0x9fad5)&&_0x9fad5===_0x1495e8;}return!0x1;}_0x3a9b99['model']['document']['registerPostFixer'](()=>{let _0x4c449e=!0x1;const _0x121b96=Array['from'](_0x3a9b99['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3cb45e,data:_0x4a6bd8}of _0x121b96){const {group:_0x3c0de7,type:_0x3c06de,subType:_0x46f82f,id:_0x2175ae}=_0x52a37c['_splitMarkerName'](_0x3cb45e);if('suggestion'==_0x3c0de7&&_0x52a37c['hasSuggestion'](_0x2175ae)){if('formatBlock'==_0x3c06de&&('imageStylePreApply'==_0x46f82f||'imageStylePostApply'==_0x46f82f)){const _0x4b6f8c=_0x52a37c['getSuggestion'](_0x2175ae);if(_0x4a6bd8['newRange']){const _0x1bf73b=_0x4b6f8c['getFirstRange']()['getContainedElement']();if(_0x5b0539['isBlockImage'](_0x1bf73b))continue;_0x52a37c['discardSuggestion'](_0x4b6f8c),_0x4c449e=!0x0;}}if('insertion'==_0x3c06de&&'imageCaption'==_0x46f82f&&!_0x4a6bd8['newRange']){const _0x3879ea=_0x52a37c['getSuggestion'](_0x2175ae);_0x3879ea['next']&&_0x3879ea['next']['isInContent']&&(_0x52a37c['discardSuggestion'](_0x3879ea['next']),_0x4c449e=!0x0);}}}return _0x4c449e;}),this['_registerLegacyDescription'](_0x502739);}['_registerLegacyDescription'](_0x2b92a4){const _0x21b1c0=this['editor'],_0x4a3945=_0x21b1c0['locale'];_0x21b1c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2001ff=>{if('formatBlock'!=_0x2001ff['type']&&'formatInline'!=_0x2001ff['type'])return;const {data:_0x492107}=_0x2001ff;if(!_0x492107||'imageStyle'!=_0x492107['commandName'])return;const _0x1cdbcd=_0x492107['commandParams'][0x0]['value'];return _0x19ac5f('side'===_0x1cdbcd?o(_0x4a3945,'FORMAT_SIDE_IMAGE'):_0x2b92a4[_0x1cdbcd]||_0x1cdbcd);function _0x19ac5f(_0x88e6c1){return{'type':'format','content':o(_0x4a3945,'*Format:*\x20%0',_0x88e6c1)};}});}}class rt extends _0x17edf8{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1b87b0){super(_0x1b87b0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x50d753=this['editor'],_0x4b32d3=_0x50d753['commands']['get']('importWord'),_0x1d4a1a=_0x50d753['commands']['get']('trackChanges');_0x4b32d3&&(_0x4b32d3['on']('execute',(_0x1fc095,[,_0x2b9e9f])=>{this['_trackChangesValueDuringImport']=_0x1d4a1a['value'],_0x2b9e9f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4b32d3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4b32d3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1d4a1a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x50d753['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x54502f,_0x3f38b9){const {suggestions:_0x2df14b}=_0x3f38b9,_0x351a9d=this['editor']['commands']['get']('trackChanges'),_0x32cc01=_0x351a9d['value'];this['_trackChangesValueDuringImport']!==_0x32cc01&&(_0x351a9d['execute'](),this['_trackChangesExecuted']=!0x0),_0x2df14b&&_0x2df14b['forEach'](({id:_0x43fb07,type:_0x41d6c5,author:_0x121666,created_at:_0x488e86})=>{const _0x245090={'id':_0x43fb07,'type':_0x41d6c5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x121666,'createdAt':_0x488e86?new Date(_0x488e86):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x245090);});}}class at extends _0x17edf8{['afterInit'](){const _0x982b28=this['editor'],_0xd2c4b5=_0x982b28['plugins']['get']('TrackChangesEditing');if(_0x982b28['plugins']['has']('IndentEditing')&&(_0xd2c4b5['enableCommand']('indent'),_0xd2c4b5['enableCommand']('outdent')),_0x982b28['plugins']['has']('IndentBlock')){for(const _0x591efe of['indentBlock','outdentBlock'])_0xd2c4b5['enableDefaultAttributesIntegration'](_0x591efe);}const _0x47f3f6=_0x982b28['locale'];_0xd2c4b5['registerBlockAttribute']('blockIndent'),_0xd2c4b5['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x47f3f6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc0ca9=this['editor'],_0x207f98=_0xc0ca9['locale'],_0x4e58c8=_0xc0ca9['plugins']['get']('TrackChangesEditing');_0x4e58c8['descriptionFactory']['registerDescriptionCallback'](_0x556016=>{if('formatBlock'!=_0x556016['type'])return;const {data:_0x3011fd}=_0x556016;if(!_0x3011fd)return;if('indentBlock'!=_0x3011fd['commandName']&&'outdentBlock'!=_0x3011fd['commandName'])return;const _0x126bac=_0x556016['getItems']()[0x0],_0x2d2dc7=_0x4e58c8['descriptionFactory']['getItemLabel'](_0x126bac);return'indentBlock'==_0x3011fd['commandName']?{'type':'format','content':o(_0x207f98,'*Indent:*\x20%0',_0x2d2dc7)}:'outdentBlock'==_0x3011fd['commandName']?{'type':'format','content':o(_0x207f98,'*Outdent:*\x20%0',_0x2d2dc7)}:void 0x0;});}}class ct extends _0x17edf8{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x17edf8{['afterInit'](){const _0x4acfff=this['editor'];if(!_0x4acfff['plugins']['has']('LinkEditing'))return;const _0xd9931e=_0x4acfff['plugins']['get']('TrackChangesEditing'),_0x4ed2a2=_0x4acfff['commands']['get']('link');_0xd9931e['enableDefaultAttributesIntegration']('link'),_0xd9931e['enableDefaultAttributesIntegration']('unlink'),_0xd9931e['registerInlineAttribute']('linkHref');for(const _0x6220cc of _0x4ed2a2['manualDecorators'])_0xd9931e['registerInlineAttribute'](_0x6220cc['id']),_0xd9931e['descriptionFactory']['registerAttributeLabel'](_0x6220cc['id'],'link\x20('+_0x6220cc['label']['toLowerCase']()+')');_0xd9931e['descriptionFactory']['registerDescriptionCallback'](_0x20a200=>{if('attribute'!=_0x20a200['type'])return;const {data:_0x5a723a}=_0x20a200;if(!_0x5a723a||'linkHref'!=_0x5a723a['key'])return;const _0x1284b7=_0x5a723a['newValue'],_0x16481f=_0x4acfff['locale'];return{'type':'format','content':null==_0x1284b7?o(_0x16481f,'*Remove\x20link*'):o(_0x16481f,'*Set\x20link:*\x20%0','\x22'+_0x1284b7+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dde42=this['editor'],_0x4d4d6b=_0x5dde42['locale'];_0x5dde42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23f220=>{if('formatInline'!=_0x23f220['type'])return;const {data:_0x9f5abf}=_0x23f220;if(_0x9f5abf){if('link'==_0x9f5abf['commandName']){const _0x5b2946=_0x9f5abf['commandParams'][0x0];return{'type':'format','content':o(_0x4d4d6b,'*Set\x20link:*\x20%0','\x22'+_0x5b2946+'\x22')};}return'unlink'==_0x9f5abf['commandName']?{'type':'format','content':o(_0x4d4d6b,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x17edf8{['afterInit'](){const _0x33813d=this['editor'],_0x2fd96e=_0x33813d['locale'];if(!_0x33813d['plugins']['has']('LegacyListEditing'))return;const _0x16e337=_0x33813d['plugins']['get']('TrackChangesEditing'),_0x5d017b=_0x33813d['plugins']['has']('LegacyTodoListEditing');function _0x42580d(_0x42e9fa){return()=>{const _0xef03ee=_0x33813d['model']['document']['selection'],_0x3e9456=_0x33813d['commands']['get'](_0x42e9fa);if(_0x3e9456['value'])return void _0x33813d['execute']('paragraph',{});const _0x397978=_0x42e9fa['slice'](0x0,-0x4),_0x37db8f=function(_0x4018b4,_0x30f48b,_0x41f333){let _0x1d6d4e=Array['from'](_0x4018b4)['filter'](_0x10cdf8=>function(_0x4c0e47,_0x496ff7){return _0x496ff7['checkChild'](_0x4c0e47['parent'],'listItem')&&!_0x496ff7['isObject'](_0x4c0e47);}(_0x10cdf8,_0x41f333));_0x1d6d4e=_0x1d6d4e['filter'](_0x483333=>!_0x483333['is']('element','listItem')||_0x483333['getAttribute']('listType')!=_0x30f48b);const _0x3e48d5=new Set();for(const _0x3a4823 of _0x1d6d4e)_0x3a4823['is']('element','listItem')?_0x3e48d5['add'](Le(_0x3a4823)):_0x3e48d5['add'](_0x3a4823);return Array['from'](_0x3e48d5);}(_0xef03ee['getSelectedBlocks'](),_0x397978,_0x33813d['model']['schema']);_0x33813d['model']['change'](()=>{for(const _0x3c60b9 of _0x37db8f)_0x16e337['markBlockFormat'](_0x3c60b9,{'commandName':_0x42e9fa,'commandParams':[{'forceValue':!_0x3e9456['value']}],'formatGroupId':'blockName'},Ee(_0x3c60b9));});};}function _0x4a47cb(_0x931c9){return()=>{const _0x5eb61d=function(_0x37d2bd){let _0x5034c9=Array['from'](_0x37d2bd);const _0x32403f=_0x5034c9['findIndex'](_0x4b04fa=>'listItem'!=_0x4b04fa['name']);return _0x32403f>-0x1&&(_0x5034c9=_0x5034c9['slice'](0x0,_0x32403f)),_0x5034c9;}(_0x33813d['model']['document']['selection']['getSelectedBlocks']()),_0x2aa35b=_0x33813d['model']['createRange'](_0x33813d['model']['createPositionAt'](_0x5eb61d[0x0],'before'),_0x33813d['model']['createPositionAt'](_0x5eb61d[_0x5eb61d['length']-0x1],'end'));_0x33813d['model']['change'](()=>{_0x16e337['markBlockFormat'](_0x2aa35b,{'commandName':_0x931c9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x12a57b){const _0x46be45=new Set();for(const _0xd9ccb0 of _0x12a57b){let _0x990a58=_0xd9ccb0['nextSibling'];for(;_0x990a58&&_0x990a58['getAttribute']('listIndent')>_0xd9ccb0['getAttribute']('listIndent');)_0x46be45['add'](_0x990a58),_0x990a58=_0x990a58['nextSibling'];}return Array['from'](_0x46be45);}(_0x5eb61d));});};}_0x16e337['enableCommand']('numberedList',_0x42580d('numberedList')),_0x16e337['enableCommand']('bulletedList',_0x42580d('bulletedList')),_0x5d017b&&_0x16e337['enableCommand']('todoList',_0x42580d('todoList')),_0x16e337['enableCommand']('indentList',_0x4a47cb('indentList')),_0x16e337['enableCommand']('outdentList',_0x4a47cb('outdentList')),_0x5d017b&&_0x16e337['enableCommand']('checkTodoList',()=>{const _0x34a46d=_0x33813d['commands']['get']('checkTodoList'),_0x176db8=Array['from'](_0x34a46d['_selectedElements']);_0x176db8['filter'](_0x37e365=>_0x37e365['getAttribute']('todoListChecked')!=_0x34a46d['value']),_0x33813d['model']['change'](()=>{for(const _0x309ae4 of _0x176db8)_0x16e337['markBlockFormat'](_0x309ae4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x34a46d['value']}]});});}),_0x16e337['descriptionFactory']['registerElementLabel']('listItem',_0x21778a=>o(_0x2fd96e,'ELEMENT_LIST_ITEM',_0x21778a)),_0x16e337['descriptionFactory']['registerDescriptionCallback'](_0x339b05=>{if('formatBlock'!=_0x339b05['type']&&'formatInline'!=_0x339b05['type'])return;const {data:_0x4c6390}=_0x339b05;if(_0x4c6390){if('numberedList'==_0x4c6390['commandName']||'bulletedList'==_0x4c6390['commandName']||'todoList'==_0x4c6390['commandName'])switch(_0x4c6390['commandName']['replace']('List','')){case'bulleted':return _0x2437da(o(_0x2fd96e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2437da(o(_0x2fd96e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2437da(o(_0x2fd96e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4c6390['commandName'])return{'type':'format','content':o(_0x2fd96e,'*Indent:*\x20%0',o(_0x2fd96e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4c6390['commandName'])return{'type':'format','content':o(_0x2fd96e,'*Outdent:*\x20%0',o(_0x2fd96e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4c6390['commandName'])return _0x4c6390['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2fd96e,'*Check\x20item*')}:{'type':'format','content':o(_0x2fd96e,'*Uncheck\x20item*')};}function _0x2437da(_0xd9d22b){return{'type':'format','content':o(_0x2fd96e,'*Change\x20to:*\x20%0',_0xd9d22b)};}});}}function Le(_0xf1d050){const _0x47c827=_0xf1d050['getAttribute']('listIndent');if(0x0==_0x47c827)return _0xf1d050;let _0x312e7d=_0xf1d050;for(;_0xf1d050['previousSibling']&&_0xf1d050['previousSibling']['is']('element','listItem');){const _0x46dd80=_0xf1d050['previousSibling']['getAttribute']('listIndent');if(_0x46dd80==_0x47c827)_0x312e7d=_0xf1d050['previousSibling'];else{if(_0x46dd80<_0x47c827)break;}_0xf1d050=_0xf1d050['previousSibling'];}return _0x312e7d;}function Ee(_0x59322f){const _0x408c94=[];if(_0x59322f['is']('element','listItem')&&_0x59322f['getAttribute']('listIndent')>0x0){let _0xe3377d=_0x59322f['nextSibling'];for(;_0xe3377d&&'listItem'==_0xe3377d['name']&&_0xe3377d['getAttribute']('listIndent')==_0x59322f['getAttribute']('listIndent');)_0x408c94['push'](_0xe3377d),_0xe3377d=_0xe3377d['nextSibling'];}return _0x408c94;}class ht extends _0x17edf8{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2a6e4c=this['editor']['config']['get']('list.properties'),_0x12a29d=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a6e4c['styles']&&_0x12a29d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2a6e4c['reversed']&&_0x12a29d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2a6e4c['startIndex']&&_0x12a29d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x12a29d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xe3f0e6,_0x34b32b={}){const _0x5f2dc6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ef82c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5f2dc6['markMultiRangeBlockFormat'](_0x5ef82c,{'commandName':'listStyle','commandParams':[{'type':_0x34b32b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x586e5b,_0x32a785={}){const _0x467087=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cac55=this['_getSuggestionBlocks'](_0x361026=>_0x361026['is']('element','listItem')&&'numbered'===_0x361026['getAttribute']('listType'));if(_0x1cac55['length']<0x1)return;const _0x1eb85c=_0x1cac55['map'](_0x2e0dca=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e0dca,'before'),this['editor']['model']['createPositionAt'](_0x2e0dca,0x0)));this['editor']['model']['change'](()=>{_0x467087['markMultiRangeBlockFormat'](_0x1eb85c,{'commandName':'listReversed','commandParams':[{'reversed':_0x32a785['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3173ca,_0x347f28={}){const _0x1065f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dacb1=this['_getSuggestionBlocks'](_0x591626=>_0x591626['is']('element','listItem')&&'numbered'===_0x591626['getAttribute']('listType'));if(_0x3dacb1['length']<0x1)return;const _0x1558d0=_0x3dacb1['map'](_0x341ccb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x341ccb,'before'),this['editor']['model']['createPositionAt'](_0x341ccb,0x0)));this['editor']['model']['change'](()=>{_0x1065f9['markMultiRangeBlockFormat'](_0x1558d0,{'commandName':'listStart','commandParams':[{'startIndex':_0x347f28['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5e57e3){if('formatBlock'!=_0x5e57e3['type']&&'formatInline'!=_0x5e57e3['type'])return;const _0x5cae3f=this['editor']['locale'],{data:_0x15155c}=_0x5e57e3;if(!_0x15155c)return;let _0x40b2a6,_0x774ddc;switch(_0x15155c['commandName']){case'listStyle':_0x40b2a6='*Change\x20to:*\x20%0',_0x774ddc={'type':'format','content':o(_0x5cae3f,_0x40b2a6,o(_0x5cae3f,this['_getTranslationKeyForListStyle'](_0x15155c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40b2a6=_0x15155c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x774ddc={'type':'format','content':o(_0x5cae3f,_0x40b2a6)};break;case'listStart':_0x40b2a6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x774ddc={'type':'format','content':o(_0x5cae3f,_0x40b2a6,_0x15155c['commandParams'][0x0]['startIndex'])};}return _0x774ddc;}['_getSuggestionBlocksForListStyle'](){const _0x8c160b=this['editor']['plugins']['get']('LegacyListUtils');let _0x2d8491=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2d8491[0x0]?.['is']('element','listItem')&&_0x2d8491['unshift'](..._0x8c160b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2d8491[_0x2d8491['length']-0x1]?.['is']('element','listItem')&&_0x2d8491['push'](..._0x8c160b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2d8491=[...new Set(_0x2d8491)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2d8491=_0x2d8491['filter'](_0x53cb43=>_0x53cb43['is']('element','listItem'))),_0x2d8491;}['_getSuggestionBlocks'](_0x1d79eb){const _0x240496=this['editor']['plugins']['get']('LegacyListUtils');let _0x50551b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1d79eb)['map'](_0x4227d1=>{const _0x25de0d=this['editor']['model']['createPositionAt'](_0x4227d1,0x0);return[..._0x240496['getSiblingNodes'](_0x25de0d,'backward'),..._0x240496['getSiblingNodes'](_0x25de0d,'forward')];})['flat']();return _0x50551b=[...new Set(_0x50551b)],_0x50551b;}['_getTranslationKeyForListStyle'](_0x21c36f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x21c36f)||'default')['toUpperCase']()+'_LIST_'+_0x21c36f['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x17edf8{['afterInit'](){const _0x4933af=this['editor'];if(!_0x4933af['plugins']['has']('MediaEmbedEditing'))return;const _0x2cd459=_0x4933af['plugins']['get']('TrackChangesEditing'),_0xb99475=_0x4933af['locale'];_0x2cd459['enableCommand']('mediaEmbed'),_0x2cd459['descriptionFactory']['registerElementLabel']('media',_0x17fcd7=>o(_0xb99475,'ELEMENT_MEDIA',_0x17fcd7)),_0x4933af['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x505357,{writer:_0x1f7a47,options:_0x3988fc})=>{if(_0x3988fc['showSuggestionHighlights'])return _0x1f7a47['createEmptyElement']('div');},'converterPriority':'high'}),_0x4933af['data']['downcastDispatcher']['on']('attribute:url:media',(_0x576a7f,_0x5682d2,_0x513c1e)=>{_0x513c1e['options']['showSuggestionHighlights']&&_0x576a7f['stop']();},{'priority':'high'});}}class lt extends _0x17edf8{['afterInit'](){const _0x26d479=this['editor'];_0x26d479['plugins']['has']('MentionEditing')&&_0x26d479['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x17edf8{['afterInit'](){const _0xe305b8=this['editor'];if(!_0xe305b8['plugins']['has']('MergeFieldsEditing'))return;const _0x54f4c7=_0xe305b8['plugins']['get']('TrackChangesEditing'),_0x492580=_0xe305b8['locale'];_0x54f4c7['enableCommand']('insertMergeField'),_0x54f4c7['enableCommand']('insertMergeFieldBlock'),_0x54f4c7['enableCommand']('insertMergeFieldImage'),_0x54f4c7['descriptionFactory']['registerElementLabel']('mergeField',_0x1c3853=>o(_0x492580,'ELEMENT_MERGE_FIELD',_0x1c3853)),_0x54f4c7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3d5dc7=>o(_0x492580,'ELEMENT_MERGE_FIELD',_0x3d5dc7)),_0x54f4c7['descriptionFactory']['registerDescriptionCallback'](_0x253a7c=>{if('insertion'!=_0x253a7c['type']&&'deletion'!=_0x253a7c['type'])return;const _0x213e77=_0x253a7c['getContainedElement']();if(null==_0x213e77)return;const _0x366f4d=_0xe305b8['plugins']['get']('MergeFieldsEditing');let _0x86a6c4;switch(_0x366f4d['getMergeFieldType'](_0x213e77)){case null:return;case'image':{const _0x5615de=_0x366f4d['unwrapAffixes'](_0x213e77['getAttribute']('src'));_0x86a6c4=_0x366f4d['getLabel'](_0x5615de)||_0x5615de;break;}default:{const _0x5758fe=_0x213e77['getAttribute']('id');_0x86a6c4=_0x366f4d['getLabel'](_0x5758fe)||_0x5758fe;break;}}return'insertion'==_0x253a7c['type']?{'type':'insertion','content':o(_0x492580,'*Insert:*\x20%0','\x22'+_0x86a6c4+'\x22\x20'+o(_0x492580,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x492580,'*Remove:*\x20%0','\x22'+_0x86a6c4+'\x22\x20'+o(_0x492580,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x17edf8{['afterInit'](){const _0x11ff12=this['editor'],_0xde47c9=_0x11ff12['plugins']['get']('TrackChangesEditing');_0x11ff12['plugins']['has']('MultiLevelList')&&(_0xde47c9['enableDefaultAttributesIntegration']('multiLevelList'),_0xde47c9['registerBlockAttribute']('listMarkerStyle'),_0xde47c9['descriptionFactory']['registerDescriptionCallback'](_0x3fcd79=>this['handleDescriptions'](_0x3fcd79)));}['handleDescriptions'](_0x427dca){const _0x41ee27=this['editor']['locale'],{data:_0x287e54}=_0x427dca,_0x44730a={'type':'format','content':''};if(_0x287e54&&'listMarkerStyle'==_0x287e54['key']){if(!_0x287e54['oldValue'])return{'type':'format','content':o(_0x41ee27,'*Set\x20format:*\x20%0',o(_0x41ee27,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x287e54['newValue']+')'};if(!_0x287e54['newValue']){let _0x5a2dd3=_0x427dca['head'];for(;_0x5a2dd3;){if(_0x5a2dd3['data']&&'listType'==_0x5a2dd3['data']['key']&&_0x5a2dd3['data']['newValue'])return _0x44730a;_0x5a2dd3=_0x5a2dd3['next'];}return{'type':'format','content':o(_0x41ee27,'*Remove\x20format:*\x20%0',o(_0x41ee27,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x287e54['oldValue']+')'};}}}}class pt extends _0x17edf8{['afterInit'](){const _0xd80c9a=this['editor'];if(!_0xd80c9a['plugins']['has']('PageBreakEditing'))return;_0xd80c9a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x45547e=_0xd80c9a['plugins']['get']('TrackChangesEditing'),_0x1572f3=_0xd80c9a['locale'];_0x45547e['descriptionFactory']['registerElementLabel']('pageBreak',_0x2c4f7f=>o(_0x1572f3,'ELEMENT_PAGE_BREAK',_0x2c4f7f));}}class kt extends _0x17edf8{['afterInit'](){const _0x498efc=this['editor'];if(!_0x498efc['plugins']['has']('Paragraph'))return;const _0x1e272f=_0x498efc['locale'],_0x32b0be=_0x498efc['plugins']['get']('TrackChangesEditing');_0x32b0be['descriptionFactory']['registerElementLabel']('paragraph',_0x4e45ba=>o(_0x1e272f,'ELEMENT_PARAGRAPH',_0x4e45ba)),_0x32b0be['enableDefaultAttributesIntegration']('paragraph'),_0x32b0be['enableCommand']('insertParagraph'),_0x498efc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x498efc),{'priority':'highest'}),_0x498efc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2d5d81,_0x47f41a,_0x3db8ff)=>{_0x3db8ff['options']['showSuggestionHighlights']&&nr(_0x498efc,{'showActiveMarker':!0x1})(_0x2d5d81,_0x47f41a,_0x3db8ff);},{'priority':'highest'});const _0x24c78c=_0x32b0be['descriptionFactory'];_0x24c78c['registerDescriptionCallback'](_0xd02c2a=>{if('insertion'!==_0xd02c2a['type'])return;const {start:_0x373665,end:_0x2d7a09}=_0xd02c2a['getFirstRange']();if(!_0x373665['isTouching'](_0x2d7a09)||!_0x373665['nodeAfter'])return;const _0x25cec0=_0x498efc['model']['schema'],_0x2077e5=_0x373665['nodeAfter'];return _0x25cec0['isBlock'](_0x2077e5)&&!_0x25cec0['isLimit'](_0x2077e5)&&_0x25cec0['checkChild'](_0x2077e5,'$text')?{'type':'insertion','content':o(_0x1e272f,'*Insert:*\x20%0',_0x24c78c['getItemLabel'](_0x2077e5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4563b5=this['editor'],_0x3a288b=_0x4563b5['locale'];_0x4563b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x306066=>{if('formatBlock'!=_0x306066['type'])return;const {data:_0x157439}=_0x306066;return _0x157439&&'paragraph'==_0x157439['commandName']?{'type':'format','content':o(_0x3a288b,'*Change\x20to:*\x20%0',o(_0x3a288b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x610b0f,{showActiveMarker:_0x17a34e=!0x0}={}){return(_0x19eb60,_0x1b6316,_0x38f488)=>{const _0x23d660=_0x610b0f['plugins']['get']('TrackChangesEditing'),_0x2a5998=_0x1b6316['markerRange']['start'],_0x2bbd77=_0x1b6316['markerRange']['end'],_0x2704cd=_0x610b0f['model']['schema'];if(!_0x2a5998['isTouching'](_0x2bbd77)||!_0x2a5998['nodeAfter'])return;const _0x243956=_0x2a5998['nodeAfter'];if(_0x2704cd['isBlock'](_0x243956)&&!_0x2704cd['isLimit'](_0x243956)&&_0x2704cd['checkChild'](_0x243956,'$text')){if(!_0x38f488['consumable']['consume'](_0x1b6316['markerRange'],_0x19eb60['name']))return;const {id:_0x417984,authorId:_0x28cec4}=_0x23d660['_splitMarkerName'](_0x1b6316['markerName']),_0x4211e8=_0x38f488['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x417984,'data-author-id':_0x28cec4}),_0x13205c=_0x38f488['mapper']['toViewPosition'](_0x2bbd77);_0x17a34e&&_0x23d660['activeMarkers']['includes'](_0x1b6316['markerName'])&&_0x38f488['writer']['addClass']('ck-suggestion-marker--active',_0x4211e8),_0x38f488['writer']['insert'](_0x13205c,_0x4211e8),_0x38f488['mapper']['bindElementToMarker'](_0x4211e8,_0x1b6316['markerName']);}};}class wt extends _0x17edf8{['afterInit'](){const _0x2fac33=this['editor'];_0x2fac33['commands']['get']('replaceSource')&&_0x2fac33['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x17edf8{['afterInit'](){const _0x2bb060=this['editor'];if(!_0x2bb060['plugins']['has']('RemoveFormatEditing'))return;_0x2bb060['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49f476=this['editor'];_0x49f476['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2614fb=>{if('formatBlock'!=_0x2614fb['type']&&'formatInline'!=_0x2614fb['type'])return;const {data:_0x19cd5f}=_0x2614fb;return _0x19cd5f&&'removeFormat'==_0x19cd5f['commandName']?{'type':'format','content':o(_0x49f476['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x17edf8{['afterInit'](){const _0x47337d=this['editor'];if(!_0x47337d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2d0d38=_0x47337d['plugins']['get']('TrackChangesEditing');_0x2d0d38['enableCommand']('goToPreviousRestrictedEditingException'),_0x2d0d38['enableCommand']('goToNextRestrictedEditingException');const _0x1f2ae1=_0x47337d['plugins']['get']('RestrictedEditingModeEditing');_0x1f2ae1['enableCommand']('trackChanges'),_0x1f2ae1['enableCommand']('acceptSuggestion'),_0x1f2ae1['enableCommand']('discardSuggestion'),_0x1f2ae1['enableCommand']('acceptAllSuggestions'),_0x1f2ae1['enableCommand']('discardAllSuggestions'),_0x1f2ae1['enableCommand']('acceptSelectedSuggestions'),_0x1f2ae1['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x17edf8{['afterInit'](){const _0x43fdbd=this['editor'];if(!_0x43fdbd['plugins']['has']('ShiftEnter'))return;const _0x9e3f1a=_0x43fdbd['plugins']['get']('TrackChangesEditing');_0x9e3f1a['enableCommand']('shiftEnter'),_0x43fdbd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x43fdbd),{'priority':'high'}),_0x43fdbd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x43fdbd),{'priority':'high'}),_0x43fdbd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a47ef,_0x562424,_0x1cf67f)=>{_0x1cf67f['options']['showSuggestionHighlights']&&je(_0x43fdbd,{'showActiveMarker':!0x1})(_0x5a47ef,_0x562424,_0x1cf67f);}),_0x9e3f1a['descriptionFactory']['registerElementLabel']('softBreak',_0x180604=>o(_0x43fdbd['locale'],'ELEMENT_LINE_BREAK',_0x180604));}}function je(_0x8ee73f,{showActiveMarker:_0x89c571=!0x0}={}){return(_0x31feb7,_0x4ef3c6,_0x434ea5)=>{const _0x5202a7=_0x8ee73f['plugins']['get']('TrackChangesEditing');if(!_0x434ea5['consumable']['test'](_0x4ef3c6['markerRange'],_0x31feb7['name']))return;const _0x5e2c87=_0x8ee73f['model'];for(const _0x2636e1 of _0x4ef3c6['markerRange']['getItems']()){if(!_0x2636e1['is']('element','softBreak'))continue;const _0x22e123='deletion'==_0x4ef3c6['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1564d9,authorId:_0x1a98a0}=_0x5202a7['_splitMarkerName'](_0x4ef3c6['markerName']),_0x5737fe=_0x434ea5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x22e123,'data-suggestion':_0x1564d9,'data-author-id':_0x1a98a0}),_0x4d56ce=_0x434ea5['mapper']['toViewPosition'](_0x5e2c87['createPositionBefore'](_0x2636e1));_0x89c571&&_0x5202a7['activeMarkers']['includes'](_0x4ef3c6['markerName'])&&_0x434ea5['writer']['addClass']('ck-suggestion-marker--active',_0x5737fe),_0x434ea5['writer']['insert'](_0x4d56ce,_0x5737fe),_0x434ea5['mapper']['bindElementToMarker'](_0x5737fe,_0x4ef3c6['markerName']);}};}class St extends _0x17edf8{['afterInit'](){const _0x500597=this['editor'],_0x598d04=_0x500597['model'],_0x30972f=_0x500597['locale'];if(!_0x500597['plugins']['has']('StandardEditingModeEditing'))return;const _0x4bc752=_0x500597['plugins']['get']('TrackChangesEditing'),_0x4bd69c='restrictedEditingException',_0x27eb57=_0x500597['commands']['get'](_0x4bd69c);_0x4bc752['enableCommand'](_0x4bd69c,(_0x3f12d2,_0x1bcd74={})=>{const _0x3cf5c5=_0x598d04['document']['selection'];if(_0x3cf5c5['isCollapsed'])return void _0x3f12d2(_0x1bcd74);const _0x539ec8=void 0x0!==_0x1bcd74['forceValue']?_0x1bcd74['forceValue']:!_0x27eb57['value'];_0x598d04['change'](()=>{const _0x34bf3d=Array['from'](_0x3cf5c5['getRanges']());for(const _0x4012e2 of _0x34bf3d){const _0x322310=_0x539ec8?[_0x4012e2]:io(_0x4bd69c,_0x4012e2,_0x598d04);for(const _0x3455ca of _0x322310)_0x4bc752['markInlineFormat'](_0x3455ca,{'commandName':_0x4bd69c,'commandParams':[{'forceValue':_0x539ec8}]});}});}),_0x4bc752['descriptionFactory']['registerDescriptionCallback'](_0x4ff5c3=>{if('formatBlock'!=_0x4ff5c3['type']&&'formatInline'!=_0x4ff5c3['type'])return;const {data:_0x337da5}=_0x4ff5c3;return _0x337da5&&_0x337da5['commandName']==_0x4bd69c?_0x337da5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30972f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x30972f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x17edf8{['afterInit'](){const _0x372d0f=this['editor'];if(!_0x372d0f['plugins']['has']('Style')||!_0x372d0f['plugins']['has']('DataSchema'))return;const _0x12bf56=_0x372d0f['plugins']['get']('TrackChangesEditing'),_0x5e8cc8=_0x372d0f['locale'],_0x2230bb=_0x372d0f['config']['get']('style')||{},_0x29c15f=_0x372d0f['plugins']['get']('GeneralHtmlSupport'),_0x527457=_0x372d0f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x372d0f['plugins']['get']('DataSchema'),_0x2230bb['definitions']);_0x12bf56['enableDefaultAttributesIntegration']('style');const _0x3d558f=new Set();for(const _0x3bcf9a of _0x527457['block']){const _0x40a553=_0x29c15f['getGhsAttributeNameForElement'](_0x3bcf9a['element']);_0x3d558f['add'](_0x40a553);}const _0x5a3009=new Set();for(const _0x242fa6 of _0x527457['inline']){const _0x6ed3b2=_0x29c15f['getGhsAttributeNameForElement'](_0x242fa6['element']);_0x5a3009['add'](_0x6ed3b2);for(const _0x5fc06f of _0x242fa6['ghsAttributes'])_0x5a3009['add'](_0x5fc06f);}for(const _0x398e9e of _0x3d558f)_0x12bf56['registerBlockAttribute'](_0x398e9e),_0x12bf56['descriptionFactory']['registerAttributeLabel'](_0x398e9e,o(_0x5e8cc8,'FORMAT_STYLE'));for(const _0x4ae8e5 of _0x5a3009)_0x12bf56['registerInlineAttribute'](_0x4ae8e5),_0x12bf56['descriptionFactory']['registerAttributeLabel'](_0x4ae8e5,o(_0x5e8cc8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52a830=this['editor'],_0x22c0d8=_0x52a830['locale'];_0x52a830['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x423ccd=>{if('formatBlock'!=_0x423ccd['type']&&'formatInline'!=_0x423ccd['type'])return;const {data:_0xf2ba91}=_0x423ccd;return _0xf2ba91&&'style'===_0xf2ba91['commandName']?_0xf2ba91['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x22c0d8,'*Set\x20format:*\x20%0',_0xf2ba91['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x22c0d8,'*Remove\x20format:*\x20%0',_0xf2ba91['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x17edf8{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5767a8){super(_0x5767a8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1d53f9=this['editor'],_0x2e8819=_0x1d53f9['model']['document']['selection'];if(!_0x1d53f9['plugins']['has']('TableEditing'))return;const _0x5d61f5=_0x1d53f9['locale'],_0x21f7f4=_0x1d53f9['plugins']['get']('TrackChangesEditing'),_0x279fa9=_0x1d53f9['plugins']['get']('TableUtils');_0x21f7f4['descriptionFactory']['registerElementLabel']('table',_0x28e0cb=>o(_0x5d61f5,'ELEMENT_TABLE',_0x28e0cb)),this['_setupColumnsRowsFixing'](),_0x21f7f4['enableCommand']('insertTable'),_0x21f7f4['enableCommand']('selectTableRow'),_0x21f7f4['enableCommand']('selectTableColumn');for(const _0x569f14 of['insertTableRowAbove','insertTableRowBelow']){const _0x172909=_0x1d53f9['commands']['get'](_0x569f14);_0x21f7f4['enableCommand'](_0x569f14,_0x37650e=>{_0x1d53f9['model']['change'](_0x1c4ec4=>{_0x37650e();const _0x2f0a57='above'===_0x172909['order'],_0x1a5a69=_0x279fa9['getSelectionAffectedTableCells'](_0x2e8819),_0x3a70aa=_0x279fa9['getRowIndexes'](_0x1a5a69),_0x188a54=_0x2f0a57?_0x3a70aa['first']-0x1:_0x3a70aa['last']+0x1,_0x245945=_0x1a5a69[0x0]['findAncestor']('table'),_0xd8b186=_0x279fa9['createTableWalker'](_0x245945,{'startRow':_0x188a54,'endRow':_0x188a54}),_0x360bf0=Array['from'](_0xd8b186)['map'](_0x2872ff=>_0x1c4ec4['createRangeOn'](_0x2872ff['cell']));_0x21f7f4['markMultiRangeInsertion'](_0x360bf0,'tableRow');});});}for(const _0x273da9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4e6f6a=_0x1d53f9['commands']['get'](_0x273da9);_0x21f7f4['enableCommand'](_0x273da9,_0x2db4c=>{_0x1d53f9['model']['change'](_0x4e5396=>{_0x2db4c();const _0x28f2a6='left'===_0x4e6f6a['order'],_0x566af5=_0x279fa9['getSelectionAffectedTableCells'](_0x2e8819),_0x548cad=_0x279fa9['getColumnIndexes'](_0x566af5),_0x235484=_0x28f2a6?_0x548cad['first']-0x1:_0x548cad['last']+0x1,_0x2e46e3=_0x566af5[0x0]['findAncestor']('table'),_0x3dbeea=_0x279fa9['createTableWalker'](_0x2e46e3,{'startRow':0x0,'column':_0x235484,'includeAllSlots':!0x1}),_0x4729f8=Array['from'](_0x3dbeea)['map'](_0x14dfed=>_0x4e5396['createRangeOn'](_0x14dfed['cell']));_0x21f7f4['markMultiRangeInsertion'](_0x4729f8,'tableColumn');});});}for(const _0x5b4ea7 of['removeTableRow','removeTableColumn']){const _0x19ba50=_0x5b4ea7['substr'](0xb),_0x10590b=_0x19ba50['toLowerCase'](),_0x3174c4=_0x10590b['substr'](0x0,0x3)+'span',_0x281746='table'+_0x19ba50,_0x47a837='min'+_0x19ba50,_0x58e46f='max'+_0x19ba50;_0x21f7f4['enableCommand'](_0x5b4ea7,()=>{_0x1d53f9['model']['change'](_0x21864a=>{const _0x648d58=_0x279fa9['getSelectionAffectedTableCells'](_0x2e8819),_0x5e5dca=_0x648d58[0x0]['findAncestor']('table');let _0x34a913;if('removeTableRow'==_0x5b4ea7){const _0x57ddb3=_0x279fa9['getRowIndexes'](_0x648d58);_0x34a913={'startRow':_0x57ddb3['first'],'endRow':_0x57ddb3['last'],'includeAllSlots':!0x0};}else{const _0x19b49b=_0x279fa9['getColumnIndexes'](_0x648d58);_0x34a913={'startColumn':_0x19b49b['first'],'endColumn':_0x19b49b['last'],'includeAllSlots':!0x0};}const _0x5301ad=_0x279fa9['createTableWalker'](_0x5e5dca,_0x34a913),_0x3fd490=Array['from'](_0x5301ad)['map'](({cell:_0x4c04b9})=>_0x4c04b9),_0x4f546e=Ne(_0x3fd490['filter'](_0x3fc940=>_0x3fc940['hasAttribute'](_0x3174c4))),_0x1e947d=Ne(_0x3fd490['filter'](_0x34643e=>!_0x34643e['hasAttribute'](_0x3174c4)))['map'](_0x491807=>_0x21864a['createRangeOn'](_0x491807)),_0x397298=_0x21f7f4['markMultiRangeDeletion'](_0x1e947d,_0x281746);if(_0x397298&&('tableRow'==_0x397298['subType']||'tableColumn'==_0x397298['subType'])){const _0x1fe745=this['_getSuggestionCoords'](_0x397298);for(const _0x6fd561 of _0x4f546e){const _0x2a000b=_0x21864a['createRangeOn'](_0x6fd561),_0x1ae954=_0x279fa9['getCellLocation'](_0x6fd561),_0x298710=_0x6fd561['getAttribute'](_0x3174c4)-0x1,_0x53d79f=_0x1fe745[_0x47a837],_0x25a173=_0x1fe745[_0x58e46f];_0x53d79f<=_0x1ae954[_0x10590b]&&_0x1ae954[_0x10590b]+_0x298710<=_0x25a173&&_0x397298['addRange'](_0x2a000b);}}});});}function _0x96791d(_0x331a9a){const _0x53684b=Array['from'](_0x2e8819['getRanges']())['map'](_0x1b500f=>_0x2c8040['fromRange'](_0x1b500f));_0x1d53f9['model']['change'](_0x4e6c66=>{const _0x272289=_0x4e6c66['batch'];_0x331a9a=_0x331a9a['filter'](_0x36ab3f=>'$graveyard'!=_0x36ab3f['root']['rootName']),_0x4e6c66['setSelection'](_0x331a9a),_0x1d53f9['commands']['get']('removeTableRow')['refresh'](),_0x1d53f9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1d53f9['model']['enqueueChange'](()=>{_0x1d53f9['model']['enqueueChange'](_0x272289,_0x5756f4=>{const _0x2be883=_0x53684b['filter'](_0x4b71c5=>'$graveyard'!=_0x4b71c5['root']['rootName']);_0x2be883['length']>0x0&&_0x5756f4['setSelection'](_0x2be883);for(const _0x451de4 of _0x53684b)_0x451de4['detach']();});});});}function _0x4969b4(_0x4c4f12){_0x1d53f9['model']['change'](_0x1ef947=>{const _0x339405=Array['from'](_0x2e8819['getRanges']())['map'](_0x4be326=>_0x2c8040['fromRange'](_0x4be326)),_0x15d725=[];for(const _0x4f8ac8 of _0x4c4f12)for(const _0x1e7d11 of _0x4f8ac8['getItems']({'shallow':!0x0}))_0x15d725['push'](_0x1e7d11);for(const _0x22f753 of _0x15d725)'$graveyard'!=_0x22f753['root']['rootName']&&(_0x1ef947['setSelection'](_0x1ef947['createPositionAt'](_0x22f753,0x0)),_0x1d53f9['commands']['get']('removeTableColumn')['refresh'](),_0x1d53f9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xe9f69=_0x339405['filter'](_0x3bddb7=>'$graveyard'!=_0x3bddb7['root']['rootName']);_0xe9f69['length']>0x0&&_0x1ef947['setSelection'](_0xe9f69);for(const _0x48ecc1 of _0x339405)_0x48ecc1['detach']();});}function _0x42d521(_0x37298b,_0x381c1e){return _0x381c1e['every'](_0x4e4d27=>_0x37298b['some'](_0x3aa76a=>_0x3aa76a['end']['isEqual'](_0x4e4d27['start'])||_0x4e4d27['end']['isEqual'](_0x3aa76a['start'])));}function _0xac915a(_0x9f7581,_0x122807){return!_0x9f7581['some'](_0x548ff5=>_0x122807['some'](_0x4b9cbb=>_0x548ff5['isIntersecting'](_0x4b9cbb)))&&_0x9f7581['some'](_0x149acf=>_0x122807['some'](_0x4e1b67=>_0x149acf['end']['isTouching'](_0x4e1b67['start'])));}_0x1d53f9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x21aba5,_0x44a6d2,_0x1cf660)=>{if(!_0x1cf660['options']['showSuggestionHighlights'])return;const _0x5d296f=_0x44a6d2['item'];if(!_0x5d296f||!_0x5d296f['is']('element','tableCell'))return;const _0x194e07=_0x1cf660['mapper']['toViewElement'](_0x5d296f);if(_0x194e07){const {id:_0x315782,authorId:_0x89c28}=_0x21f7f4['_splitMarkerName'](_0x44a6d2['markerName']);_0x5b950c(_0x194e07,_0x1cf660['writer'],(_0x3ba7c0,_0x356ee7,_0x411ae0)=>{_0x411ae0['addClass'](_0x47289c(_0x356ee7['classes']),_0x3ba7c0),_0x411ae0['setAttribute']('data-suggestion-id',_0x315782,_0x3ba7c0),_0x411ae0['setAttribute']('data-author-id',_0x89c28,_0x3ba7c0);},(_0x153995,_0x45b45b,_0x44a51a)=>{_0x44a51a['removeClass'](_0x47289c(_0x45b45b['classes']),_0x153995),_0x44a51a['removeAttribute']('data-suggestion-id',_0x153995),_0x44a51a['removeAttribute']('data-author-id',_0x153995);});}},{'priority':'highest'}),_0x21f7f4['descriptionFactory']['registerDescriptionCallback'](_0x46d213=>{if('insertion'!=_0x46d213['type']&&'deletion'!=_0x46d213['type'])return;const _0x39346f=_0x46d213['getContainedElement']();if(null!=_0x39346f&&_0x39346f['is']('element','table')){if('insertion'==_0x46d213['type']){const _0x3e153d=_0x46d213['getItems']()['filter'](_0x37ffca=>_0x37ffca['is']('$textProxy'))['map'](_0x525d9f=>_0x525d9f['data']);if(_0x3e153d['length'])return{'type':'insertion','content':o(_0x5d61f5,'*Insert:*\x20%0',o(_0x5d61f5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3e153d['join']('\x20')+'\x22'))};}if('deletion'==_0x46d213['type']){const _0x51a1c7=_0x46d213['getItems']()['filter'](_0x1f66c5=>_0x1f66c5['is']('$textProxy'))['map'](_0x1eae0d=>_0x1eae0d['data']);if(_0x51a1c7['length'])return{'type':'deletion','content':o(_0x5d61f5,'*Remove:*\x20%0',o(_0x5d61f5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x51a1c7['join']('\x20')+'\x22'))};}}}),_0x21f7f4['descriptionFactory']['registerDescriptionCallback'](_0x172b92=>{if('tableRow'==_0x172b92['subType']){const _0x1d28ac=_0x172b92['getItems']()['filter'](_0x47d3e2=>_0x47d3e2['is']('$textProxy'))['map'](_0x404237=>_0x404237['data']),_0x3c0c64=this['_getSuggestionCoords'](_0x172b92),_0xdc0f8e=_0x3c0c64['maxRow']-_0x3c0c64['minRow']+0x1;if('insertion'==_0x172b92['type'])return _0x1d28ac['length']?{'type':'insertion','content':o(_0x5d61f5,'*Insert:*\x20%0',o(_0x5d61f5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xdc0f8e,'\x22'+_0x1d28ac['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5d61f5,'*Insert:*\x20%0',o(_0x5d61f5,'ELEMENT_TABLE_ROW',_0xdc0f8e))};if('deletion'==_0x172b92['type'])return _0x1d28ac['length']?{'type':'deletion','content':o(_0x5d61f5,'*Remove:*\x20%0',o(_0x5d61f5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xdc0f8e,'\x22'+_0x1d28ac['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5d61f5,'*Remove:*\x20%0',o(_0x5d61f5,'ELEMENT_TABLE_ROW',_0xdc0f8e))};}if('tableColumn'==_0x172b92['subType']){const _0x2294f0=_0x172b92['getItems']()['filter'](_0x41af4a=>_0x41af4a['is']('$textProxy'))['map'](_0x2b4d57=>_0x2b4d57['data']),_0x3f6892=this['_getSuggestionCoords'](_0x172b92),_0x2a5cc6=_0x3f6892['maxColumn']-_0x3f6892['minColumn']+0x1;if('insertion'==_0x172b92['type'])return _0x2294f0['length']?{'type':'insertion','content':o(_0x5d61f5,'*Insert:*\x20%0',o(_0x5d61f5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2a5cc6,'\x22'+_0x2294f0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5d61f5,'*Insert:*\x20%0',o(_0x5d61f5,'ELEMENT_TABLE_COLUMN',_0x2a5cc6))};if('deletion'==_0x172b92['type'])return _0x2294f0['length']?{'type':'deletion','content':o(_0x5d61f5,'*Remove:*\x20%0',o(_0x5d61f5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2a5cc6,'\x22'+_0x2294f0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5d61f5,'*Remove:*\x20%0',o(_0x5d61f5,'ELEMENT_TABLE_COLUMN',_0x2a5cc6))};}}),_0x21f7f4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x96791d),_0x21f7f4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x96791d),_0x21f7f4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4969b4),_0x21f7f4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4969b4),_0x21f7f4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x42d521),_0x21f7f4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x42d521),_0x21f7f4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xac915a),_0x21f7f4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xac915a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4ca7d3=this['editor'],_0x56417c=_0x4ca7d3['model']['document']['selection'];return(_0x1976e4,_0x286277)=>{_0x4ca7d3['model']['change'](_0x808acf=>{const {commandName:_0x328c86,commandParams:_0x21ecc0}=_0x286277;let _0x2b6747=_0x1976e4[0x0]['end']['nodeBefore'];_0x21ecc0&&_0x21ecc0[0x0]&&!0x1===_0x21ecc0[0x0]['forceValue']&&(_0x2b6747=_0x1976e4[0x0]['start']['nodeAfter']);const _0x1a8a44=_0x808acf['createRangeIn'](_0x2b6747);if('$graveyard'==_0x1a8a44['root']['rootName'])return;const _0x459f27=Array['from'](_0x56417c['getRanges']())['map'](_0x305fa=>_0x2c8040['fromRange'](_0x305fa));_0x808acf['setSelection'](_0x1a8a44),_0x4ca7d3['commands']['get'](_0x328c86)['refresh'](),_0x21ecc0['push']({'forceDefaultExecution':!0x0}),_0x4ca7d3['execute'](_0x328c86,..._0x21ecc0);const _0x3dcedf=_0x459f27['filter'](_0x359544=>'$graveyard'!=_0x359544['root']['rootName']);_0x3dcedf['length']>0x0&&_0x808acf['setSelection'](_0x3dcedf);for(const _0x5b44b9 of _0x459f27)_0x5b44b9['detach']();});};}['_getCoordsForCells'](_0x43dbcf){const _0x489546=this['editor']['plugins']['get']('TableUtils');let _0x54a335=Number['MAX_SAFE_INTEGER'],_0x4fc31c=Number['MIN_SAFE_INTEGER'],_0x9628dd=Number['MAX_SAFE_INTEGER'],_0xe1706f=Number['MIN_SAFE_INTEGER'];for(const _0x4fa8d8 of _0x43dbcf){if('$graveyard'==_0x4fa8d8['root']['rootName'])continue;const {row:_0x2d9b86,column:_0x475438}=_0x489546['getCellLocation'](_0x4fa8d8),_0x41c728=_0x4fa8d8['hasAttribute']('rowspan')?_0x4fa8d8['getAttribute']('rowspan')-0x1:0x0,_0x361ac8=_0x4fa8d8['hasAttribute']('colspan')?_0x4fa8d8['getAttribute']('colspan')-0x1:0x0;_0x54a335=_0x2d9b86<_0x54a335?_0x2d9b86:_0x54a335,_0x4fc31c=_0x2d9b86+_0x41c728>_0x4fc31c?_0x2d9b86+_0x41c728:_0x4fc31c,_0x9628dd=_0x475438<_0x9628dd?_0x475438:_0x9628dd,_0xe1706f=_0x475438+_0x361ac8>_0xe1706f?_0x475438+_0x361ac8:_0xe1706f;}return{'minRow':_0x54a335,'maxRow':_0x4fc31c,'minColumn':_0x9628dd,'maxColumn':_0xe1706f};}['_setupColumnsRowsFixing'](){const _0xe3b39f=this['editor'],_0x3a3837=_0xe3b39f['plugins']['get']('TrackChangesEditing'),_0x2c269f=_0xe3b39f['plugins']['get']('TableUtils');_0xe3b39f['model']['document']['on']('change:data',()=>{const _0x32727e=Array['from'](_0xe3b39f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x341237,data:_0x2d778a}of _0x32727e){const {group:_0xc83528,id:_0x58dcbb,subType:_0x1b1a08}=_0x3a3837['_splitMarkerName'](_0x341237);if('suggestion'!=_0xc83528)continue;if(null!=_0x2d778a['oldRange'])continue;const _0x4e74ac=_0x3a3837['getSuggestion'](_0x58dcbb);this['_tablePostFixingSubtypes']['includes'](_0x1b1a08)&&this['_tableSuggestions']['add'](_0x4e74ac);}},{'priority':'low'});const _0x20ca31=(_0x48ae21,_0x8937a5)=>{let _0x13ef10=!0x1;const _0x3caeaf=_0x8937a5['createRangeOn'](_0x48ae21),_0x4092f1=_0x48ae21['findAncestor']('table'),_0x1ebe83=_0x2c269f['getCellLocation'](_0x48ae21);for(const _0x5b988a of this['_tableSuggestions']){const _0x3fe74a=_0x5b988a['subType'],_0x205829=_0x3fe74a['startsWith']('tablePaste'),_0x29541c=_0x3fe74a['substr'](_0x205829?0xa:0x5),_0xfb304f=_0x29541c['toLowerCase'](),_0x4c6632=_0xfb304f['substr'](0x0,0x3)+'span',_0x345a36='min'+_0x29541c,_0x472422='max'+_0x29541c;if(!_0x5b988a['isInContent'])continue;if(_0x4092f1!=_0x5b988a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5b988a['isIntersectingWithRange'](_0x3caeaf))continue;const _0x2bc9b1=_0x48ae21['hasAttribute'](_0x4c6632)?_0x48ae21['getAttribute'](_0x4c6632)-0x1:0x0,_0x5d4f32=this['_getSuggestionCoords'](_0x5b988a),_0x584517=_0x5d4f32[_0x345a36],_0x9fad26=_0x5d4f32[_0x472422];_0x584517<=_0x1ebe83[_0xfb304f]&&_0x1ebe83[_0xfb304f]+_0x2bc9b1<=_0x9fad26&&(_0x5b988a['addRange'](_0x3caeaf),_0x13ef10=!0x0);}return _0x13ef10;};_0xe3b39f['model']['document']['registerPostFixer'](_0x1394e5=>{let _0x1ff550=!0x1;for(const _0x4d2fe6 of _0xe3b39f['model']['document']['differ']['getChanges']())if('insert'==_0x4d2fe6['type']){if('tableRow'==_0x4d2fe6['name']){for(const _0x5aae03 of _0x4d2fe6['position']['nodeAfter']['getChildren']())_0x1ff550=_0x1ff550||_0x20ca31(_0x5aae03,_0x1394e5);}else'tableCell'==_0x4d2fe6['name']&&(_0x1ff550=_0x1ff550||_0x20ca31(_0x4d2fe6['position']['nodeAfter'],_0x1394e5));}return _0x1ff550;});}['_getSuggestionCoords'](_0x2546db){return this['_getCoordsForCells'](_0x2546db['getRanges']()['map'](_0x3100ae=>_0x3100ae['start']['nodeAfter']));}}function Ne(_0x1b5a68){return Array['from'](new Set(_0x1b5a68)['values']());}class _t extends _0x17edf8{static get['requires'](){return[At];}['afterInit'](){const _0x64405d=this['editor'],_0x49107b=_0x64405d['model']['document']['selection'],_0x9235da=_0x64405d['locale'];if(!_0x64405d['plugins']['has']('TableEditing'))return;const _0x2e1d81=_0x64405d['plugins']['get']('TrackChangesEditing'),_0x2d758e=_0x64405d['plugins']['get']('TableUtils'),_0x161130=_0x64405d['plugins']['get'](At);_0x161130['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2e1d81['enableCommand']('mergeTableCells',()=>{const _0x5caec1=_0x2d758e['getSelectionAffectedTableCells'](_0x64405d['model']['document']['selection']);_0x64405d['model']['change'](()=>{_0x2e1d81['markMultiRangeBlockFormat'](_0x5caec1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x64405d['commands']['get']('mergeTableCells')['on']('execute',(_0xd71da7,_0x1b468e)=>{_0x64405d['commands']['get']('trackChanges')['value']&&(_0x1b468e['length']>0x0&&_0x1b468e[_0x1b468e['length']-0x1]&&_0x1b468e[_0x1b468e['length']-0x1]['forceDefaultExecution']||_0x2e1d81['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xd71da7['stop']());},{'priority':'highest'});for(const _0x248a11 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xe27fd7=_0x64405d['commands']['get'](_0x248a11);_0x2e1d81['enableCommand'](_0x248a11,()=>{const _0xa6f2a5=_0x64405d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x559c65=>_0x559c65['is']('element','tableCell')),_0x346783=_0xe27fd7['value'];_0x64405d['model']['change'](()=>{_0x2e1d81['markMultiRangeBlockFormat']([_0xa6f2a5,_0x346783],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3146c2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x570b62=_0x64405d['commands']['get'](_0x3146c2);_0x2e1d81['enableCommand'](_0x3146c2,()=>{const _0x1c9704=_0x2d758e['getSelectionAffectedTableCells'](_0x64405d['model']['document']['selection'])[0x0],_0x540495=_0x1c9704['findAncestor']('table'),{column:_0x518afc,row:_0x1c3d20}=_0x2d758e['getCellLocation'](_0x1c9704);let _0x5e56b4=[];if('horizontally'==_0x570b62['direction']){const _0x140ed8=_0x2d758e['createTableWalker'](_0x540495,{'startRow':_0x1c3d20,'endRow':_0x1c3d20,'includeAllSlots':!0x0});_0x5e56b4=Array['from'](_0x140ed8)['map'](_0x26758d=>_0x26758d['cell']);}else{const _0x5ce856=_0x2d758e['createTableWalker'](_0x540495,{'column':_0x518afc,'includeAllSlots':!0x0});_0x5e56b4=Array['from'](_0x5ce856)['map'](_0x7f4e9f=>_0x7f4e9f['cell']);}_0x64405d['model']['change'](_0x1f7443=>{_0x2e1d81['markBlockFormat'](_0x1f7443['createRangeOn'](_0x1c9704),{'commandName':_0x3146c2,'commandParams':[]},_0x5e56b4,_0x3146c2);});});}_0x2e1d81['descriptionFactory']['registerDescriptionCallback'](_0x3f0b01=>{if('formatBlock'!=_0x3f0b01['type']&&'formatInline'!=_0x3f0b01['type'])return;const {data:_0xa5928b}=_0x3f0b01;return _0xa5928b&&'mergeTableCells'==_0xa5928b['commandName']?{'type':'format','content':o(_0x9235da,'*Merge\x20cells*')}:void 0x0;}),_0x2e1d81['descriptionFactory']['registerDescriptionCallback'](_0x324f59=>{if('formatBlock'!=_0x324f59['type']&&'formatInline'!=_0x324f59['type'])return;const {data:_0x1c25ae}=_0x324f59;return _0x1c25ae?'splitTableCellVertically'==_0x1c25ae['commandName']?{'type':'format','content':o(_0x9235da,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1c25ae['commandName']?{'type':'format','content':o(_0x9235da,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4e580c=_0x161130['_acceptFormatSuggestionCallbackFactory']();for(const _0x16ce16 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2e1d81['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x16ce16,'accept',_0x4e580c);for(const _0x1c085c of['splitTableCellVertically','splitTableCellHorizontally'])_0x2e1d81['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c085c,'accept',_0x4e580c);_0x2e1d81['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x52ac5c=>{_0x64405d['model']['change'](_0x18d0c4=>{const _0x1b17c9=Array['from'](_0x49107b['getRanges']())['map'](_0x2f4aee=>_0x2c8040['fromRange'](_0x2f4aee));_0x18d0c4['setSelection'](_0x52ac5c),_0x64405d['commands']['get']('mergeTableCells')['refresh'](),_0x64405d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xbbd20=_0x1b17c9['filter'](_0x31b156=>'$graveyard'!=_0x31b156['root']['rootName']);_0xbbd20['length']>0x0&&_0x18d0c4['setSelection'](_0xbbd20);for(const _0x50343d of _0x1b17c9)_0x50343d['detach']();});});for(const _0xbcf8e4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x478bbd=_0x64405d['commands']['get'](_0xbcf8e4);_0x478bbd['on']('set:isEnabled',(_0x381c99,_0xe892e2,_0xb6711e)=>{if(_0xb6711e){const _0x19e6b9=_0x64405d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xaccf61=>_0xaccf61['is']('element','tableCell'));this['_areMergableCells'](_0x478bbd['value'],_0x19e6b9)||(_0x381c99['return']=!0x1,_0x381c99['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4f3dd8=this['editor']['commands']['get']('mergeTableCells'),_0x37fce3=this['editor']['plugins']['get']('TableUtils');if(!_0x4f3dd8['isEnabled'])return!0x1;const _0x50d8ae=_0x37fce3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2643e5 of _0x50d8ae)for(const _0x40bf16 of _0x50d8ae)if(_0x2643e5!=_0x40bf16&&!this['_areMergableCells'](_0x2643e5,_0x40bf16))return!0x1;return!0x0;}['_areMergableCells'](_0x1c6ad6,_0x1d9dc1){const _0x5870b3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a1b66=this['editor']['model']['createRangeOn'](_0x1c6ad6),_0x2c2cf8=this['editor']['model']['createRangeOn'](_0x1d9dc1),_0xce6fa8=new Set(),_0x29455c=new Set();for(const _0x12ad9b of _0x5870b3['getSuggestions']())if(('insertion'==_0x12ad9b['type']||'deletion'==_0x12ad9b['type']||'mergeTableCells'==_0x12ad9b['subType'])&&_0x12ad9b['isInContent']){for(const _0x4f49f0 of _0x12ad9b['getRanges']())_0x4f49f0['containsRange'](_0x5a1b66,!0x0)&&_0xce6fa8['add'](_0x12ad9b['type']+':'+_0x12ad9b['author']['id']),_0x4f49f0['containsRange'](_0x2c2cf8,!0x0)&&_0x29455c['add'](_0x12ad9b['type']+':'+_0x12ad9b['author']['id']);}if(_0xce6fa8['size']!=_0x29455c['size'])return!0x1;for(const _0x2f7c9a of _0xce6fa8)if(!_0x29455c['has'](_0x2f7c9a))return!0x1;return!0x0;}}class Ct extends _0x17edf8{static get['requires'](){return[At];}['afterInit'](){const _0x31c543=this['editor'];if(!_0x31c543['plugins']['has']('TableEditing'))return;const _0x52c3cc=_0x31c543['locale'],_0x580752=_0x31c543['plugins']['get']('TrackChangesEditing');_0x580752['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x580752['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x580752['registerBlockAttribute']('headingRows'),_0x580752['registerBlockAttribute']('headingColumns'),_0x580752['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x52c3cc,'FORMAT_HEADER_ROW')),_0x580752['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x52c3cc,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x718149=this['editor']['plugins']['get']('TrackChangesEditing'),_0x249b13=this['editor']['plugins']['get']('TableUtils'),_0x35f8f4=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x3cb4e2({showActiveMarker:_0x4f26b9=!0x0,setDataAttribute:_0x26a546=!0x0}={}){return(_0x149b91,_0x508de6,_0x138f98)=>{const {type:_0x595098,id:_0x43d1f2}=_0x718149['_splitMarkerName'](_0x508de6['markerName']),_0x1a675d=_0x718149['getSuggestion'](_0x43d1f2),_0x57da9d=_0x1a675d['data'];if('formatBlock'!=_0x1a675d['type']||!_0x57da9d||'setTableColumnHeader'!=_0x57da9d['commandName'])return;if(_0x508de6['item'])return void _0x149b91['stop']();if(!_0x138f98['consumable']['consume'](_0x508de6['markerRange'],_0x149b91['name']))return;const _0x5d43f9=_0x508de6['markerRange']['start']['nodeAfter'],_0x2eda16=_0x508de6['markerRange']['end']['nodeBefore'],_0x1ba854=_0x5d43f9['parent']['parent'],{column:_0x35fecb}=_0x249b13['getCellLocation'](_0x5d43f9),{column:_0x4f9cbd}=_0x249b13['getCellLocation'](_0x2eda16);for(let _0x46b959=_0x35fecb;_0x46b959<=_0x4f9cbd;_0x46b959++){const _0x2478b4=_0x249b13['createTableWalker'](_0x1ba854,{'column':_0x46b959,'includeAllSlots':!0x1});for(const _0x2ba40b of _0x2478b4){const _0xd58afa=_0x2ba40b['cell'],_0x209be6=_0x138f98['mapper']['toViewElement'](_0xd58afa);_0x138f98['writer']['addClass']('ck-suggestion-marker-'+_0x595098,_0x209be6),_0x26a546&&_0x138f98['writer']['setAttribute']('data-suggestion',_0x43d1f2,_0x209be6),_0x138f98['mapper']['bindElementToMarker'](_0x209be6,_0x508de6['markerName']),_0x4f26b9&&(_0x718149['activeMarkers']['includes'](_0x508de6['markerName'])?_0x138f98['writer']['addClass']('ck-suggestion-marker--active',_0x209be6):_0x138f98['writer']['removeClass']('ck-suggestion-marker--active',_0x209be6));}}};}_0x718149['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x35f8f4),_0x718149['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x35f8f4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3cb4e2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a44bb,_0x3dfc3e,_0x3ab8a4)=>{_0x3ab8a4['options']['showSuggestionHighlights']&&_0x3cb4e2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5a44bb,_0x3dfc3e,_0x3ab8a4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x25e25d,_0x2e3ed3,_0x859cae)=>{const {type:_0x364e11,id:_0x51d618}=_0x718149['_splitMarkerName'](_0x2e3ed3['markerName']),_0x45dcb1=_0x718149['getSuggestion'](_0x51d618),_0x114444=_0x45dcb1['data'];if('formatBlock'!=_0x45dcb1['type']||!_0x114444||'setTableColumnHeader'!=_0x114444['commandName'])return;const _0x98e908=_0x859cae['mapper']['markerNameToElements'](_0x2e3ed3['markerName']);if(_0x98e908){for(const _0x467965 of _0x98e908)_0x859cae['writer']['removeClass']('ck-suggestion-marker-'+_0x364e11,_0x467965),_0x859cae['writer']['removeClass']('ck-suggestion-marker--active',_0x467965),_0x859cae['writer']['removeAttribute']('data-suggestion',_0x467965),_0x859cae['mapper']['unbindElementFromMarkerName'](_0x467965,_0x2e3ed3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x759803=this['editor'],_0x4e12d1=_0x759803['locale'];function _0x34e26f(_0x4157b1){return{'type':'format','content':o(_0x4e12d1,'*Format:*\x20%0',_0x4157b1)};}_0x759803['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54e1ea=>{if('formatBlock'!=_0x54e1ea['type'])return;const {data:_0x1cb11c}=_0x54e1ea;if(_0x1cb11c){if('setTableRowHeader'==_0x1cb11c['commandName']){const _0x395c14=_0x1cb11c['commandParams'][0x0]['forceValue'];return _0x34e26f(o(_0x4e12d1,_0x395c14?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1cb11c['commandName']){const _0x19ae49=_0x1cb11c['commandParams'][0x0]['forceValue'];return _0x34e26f(o(_0x4e12d1,_0x19ae49?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x17edf8{['afterInit'](){const _0x9fe155=this['editor'],_0x4b48f3=_0x9fe155['locale'],_0x3f93cc=_0x9fe155['plugins']['get']('TrackChangesEditing');function _0x936e30(_0x3d008a){return{'type':'format','content':''+o(_0x4b48f3,'*Set\x20table\x20type:*\x20%0',_0x3d008a)};}_0x9fe155['plugins']['has']('TableLayout')&&(_0x3f93cc['enableCommand']('insertTableLayout'),_0x3f93cc['enableDefaultAttributesIntegration']('tableType'),_0x3f93cc['registerBlockAttribute']('tableType'),_0x3f93cc['descriptionFactory']['registerElementLabel'](_0x4464ec=>_0x4464ec['is']('element','table')&&'layout'===_0x4464ec['getAttribute']('tableType'),_0x5c378d=>o(_0x4b48f3,'ELEMENT_LAYOUT_TABLE',_0x5c378d)),_0x3f93cc['descriptionFactory']['registerDescriptionCallback'](_0x433228=>{const {data:_0x3a289f}=_0x433228;if(_0x3a289f&&'tableType'==_0x3a289f['key'])switch(_0x3a289f['newValue']){case'layout':return _0x936e30(o(_0x4b48f3,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x936e30(o(_0x4b48f3,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x438890=>[_0x438890,null]));class Nt extends _0x17edf8{static get['requires'](){return[At];}['afterInit'](){const _0x49465f=this['editor'];if(!_0x49465f['plugins']['has']('TableClipboard'))return;const _0x57350f=_0x49465f['plugins']['get']('TrackChangesEditing'),_0x56b8dc=_0x49465f['plugins']['get']('TableUtils'),_0xa9ee31=_0x49465f['plugins']['get'](At),_0x5f553e=_0x49465f['plugins']['get']('TableClipboard'),_0x24a90b=_0x49465f['plugins']['get']('TableSelection'),_0x3b82b3=_0x49465f['plugins']['get'](_0x28956c);_0xa9ee31['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x49465f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x49465f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2faff3=null,_0x4c145a=!0x1;_0x3b82b3['on']('contentInsertion',(_0x3d040c,_0x5d26b5)=>{_0x4c145a='paste'===_0x5d26b5['method'];}),_0x49465f['model']['on']('insertContent',(_0x371fce,_0x12ee39)=>{if(!_0x4c145a&&null===_0x24a90b['getSelectedTableCells']())return;const [_0x43cc62,_0x5e6b51]=_0x12ee39,_0x3c2b49=_0x12ee39[_0x12ee39['length']-0x1];_0x3c2b49&&_0x3c2b49['forceDefaultExecution']||_0x57350f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4de3d2,_0x1d98b1,_0x859171,_0x12a867,_0x4f32ac){if(_0x1d98b1&&!_0x1d98b1['is']('documentSelection'))return!0x1;const _0x44556a=_0x4f32ac['getTableIfOnlyTableInContent'](_0x4de3d2,_0x859171);if(!_0x44556a||!Ue(_0x44556a,void 0x0,_0x12a867))return!0x1;const _0x2c1ade=_0x12a867['getSelectionAffectedTableCells'](_0x859171['document']['selection']);if(!_0x2c1ade['length'])return!0x1;const _0x4a6bb2=_0x2c1ade[0x0]['findAncestor']('table'),_0x3afcbc=_0x12a867['getRowIndexes'](_0x2c1ade),_0x2ba59c=_0x12a867['getColumnIndexes'](_0x2c1ade),_0x5b97e7={'startRow':_0x3afcbc['first'],'endRow':_0x3afcbc['last'],'startColumn':_0x2ba59c['first'],'endColumn':_0x2ba59c['last']};return 0x1==_0x2c1ade['length']&&(_0x5b97e7['endRow']+=_0x12a867['getRows'](_0x44556a)-0x1,_0x5b97e7['endColumn']+=_0x12a867['getColumns'](_0x44556a)-0x1),Ue(_0x4a6bb2,_0x5b97e7,_0x12a867);}(_0x43cc62,_0x5e6b51,_0x49465f['model'],_0x56b8dc,_0x5f553e)&&(_0x371fce['stop'](),_0x2faff3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x49465f['model']['change'](()=>{_0x49465f['model']['insertContent'](_0x12ee39[0x0],_0x12ee39[0x1],_0x12ee39[0x2],{'forceDefaultExecution':!0x0});const _0x518885=_0x17daf6(),{rowInsertionRanges:_0x1d60c7,columnInsertionRanges:_0x4cb588,insertionRanges:_0x37a7bc,deletionRanges:_0xffd9c7,cells:_0x2e3bae}=_0x2faff3;_0x1d60c7['length']&&_0x57350f['markMultiRangeInsertion'](_0x1d60c7,'tablePasteRow',{'tablePasteChainId':_0x518885}),_0x4cb588['length']&&_0x57350f['markMultiRangeInsertion'](_0x4cb588,'tablePasteColumn',{'tablePasteChainId':_0x518885}),_0x37a7bc['length']&&(_0x57350f['markMultiRangeInsertion'](_0x37a7bc,'tablePaste',{'tablePasteChainId':_0x518885,'skipNestingCheck':!0x0}),_0x37a7bc['forEach'](_0x5d3bfd=>_0x5d3bfd['detach']?.())),_0xffd9c7['length']&&(_0x57350f['markMultiRangeDeletion'](_0xffd9c7,'tablePaste',{'tablePasteChainId':_0x518885,'skipNestingCheck':!0x0}),_0xffd9c7['forEach'](_0x46e8b1=>_0x46e8b1['detach']?.()));const _0x342701=_0x57350f['markMultiRangeBlockFormat'](_0x2e3bae['map'](({element:_0x3abb98})=>_0x3abb98),{'formatGroupId':_0x17daf6()},[],'tablePasteCell',{'tablePasteChainId':_0x518885});if(_0x342701){const _0x204d4e=_0x342701['getMarkers'](),_0x47810b=[];for(const {element:_0x4c58fe,attributes:_0x51cd59}of _0x2e3bae){if(!_0x51cd59)continue;const _0x4c380b=_0x49465f['model']['createRangeOn'](_0x4c58fe),_0x33d764=_0x204d4e['find'](_0x207d9d=>_0x207d9d['getRange']()['isEqual'](_0x4c380b));_0x33d764&&_0x47810b['push']([_0x33d764['name'],_0x51cd59]);}_0x47810b['length']&&_0x342701['setAttribute']('markerAttributes',Object['fromEntries'](_0x47810b));}_0x2faff3=null;}));},{'priority':_0x3dbbc7['high']+0xa}),_0x3b82b3['on']('contentInsertion',()=>{_0x4c145a=!0x1;},{'priority':'lowest'}),_0x49465f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3438d6,_0x573034)=>{const [_0x5bbce6,_0xb3c38b,,_0x4a4ccb]=_0x573034;if(!_0x2faff3)return;_0x3438d6['stop']();const _0x51c94a=_0x5bbce6['cell'],_0x5d1b23=_0xb3c38b,_0x1eb365=Oe(_0x51c94a),_0xa2de21=Oe(_0x5d1b23);_0x3438d6['return']=_0x51c94a;let _0x1b0580=null,_0x6e5d77=null;if(_0xa2de21||_0x1eb365){if(_0x1eb365&&!_0xa2de21){_0x4a4ccb['remove'](_0x51c94a['getChild'](0x0));for(const _0x15856b of Array['from'](_0x5d1b23['getChildren']()))_0x4a4ccb['insert'](_0x15856b,_0x51c94a,'end');const _0x4bd269=_0x2faff3['rowInsertionIndexes']['includes'](_0x5bbce6['row']),_0x3eb874=_0x2faff3['columnInsertionIndexes']['includes'](_0x5bbce6['column']);_0x4bd269||_0x3eb874||(_0x1b0580=_0x2c8040['fromRange'](_0x4a4ccb['createRangeIn'](_0x51c94a)));}else _0xa2de21&&!_0x1eb365&&(_0x6e5d77=_0x4a4ccb['createRangeIn'](_0x51c94a));}else{const _0x17f0cf=_0x4a4ccb['createElement']('tableCellSuggestion'),_0x5c8572=_0x4a4ccb['createElement']('tableCellSuggestion');_0x4a4ccb['wrap'](_0x4a4ccb['createRangeIn'](_0x51c94a),_0x5c8572),_0x4a4ccb['insert'](_0x17f0cf,_0x51c94a,0x0);for(const _0x2fcf5e of Array['from'](_0x5d1b23['getChildren']()))_0x4a4ccb['insert'](_0x2fcf5e,_0x17f0cf,'end');_0x1b0580=_0x2c8040['fromRange'](_0x4a4ccb['createRangeOn'](_0x17f0cf)),_0x6e5d77=_0x2c8040['fromRange'](_0x4a4ccb['createRangeOn'](_0x5c8572));}const _0x42cbdd=Array['from'](_0x5d1b23['getAttributes']())['filter'](([_0x203561])=>Be['includes'](_0x203561));_0x2faff3['cells']['push']({'element':_0x51c94a,'attributes':_0x42cbdd['length']?Object['fromEntries'](_0x42cbdd):null}),_0x1b0580&&_0x2faff3['insertionRanges']['push'](_0x1b0580),_0x6e5d77&&_0x2faff3['deletionRanges']['push'](_0x6e5d77);},{'priority':'high'}),_0x56b8dc['on']('insertColumns',(_0x199274,_0x24b20b)=>{const [_0x43b595,_0x33b453={}]=_0x24b20b;if(!_0x2faff3)return;const _0x4f4c2a=_0x33b453['at']||0x0,_0x3f9f0f=_0x33b453['columns']||0x1;_0x2faff3['columnInsertionIndexes']=new Array(_0x3f9f0f)['fill'](_0x4f4c2a)['map']((_0x414539,_0x529c24)=>_0x414539+_0x529c24);for(const {cell:_0x4ab56c}of _0x56b8dc['createTableWalker'](_0x43b595,{'startColumn':_0x4f4c2a,'endColumn':_0x4f4c2a+_0x3f9f0f-0x1}))_0x2faff3['columnInsertionRanges']['push'](_0x49465f['model']['createRangeOn'](_0x4ab56c));},{'priority':'low'}),_0x56b8dc['on']('insertRows',(_0x166f88,_0x45c969)=>{const [_0x6152fd,_0x4213b1={}]=_0x45c969;if(!_0x2faff3)return;const _0x2cfd16=_0x4213b1['at']||0x0,_0xeab31a=_0x4213b1['rows']||0x1;_0x2faff3['rowInsertionIndexes']=new Array(_0xeab31a)['fill'](_0x2cfd16)['map']((_0x46fed3,_0x28d4df)=>_0x46fed3+_0x28d4df);for(const {cell:_0x31b020}of _0x56b8dc['createTableWalker'](_0x6152fd,{'startRow':_0x2cfd16,'endRow':_0x2cfd16+_0xeab31a-0x1}))_0x2faff3['rowInsertionRanges']['push'](_0x49465f['model']['createRangeOn'](_0x31b020));},{'priority':'low'}),_0x57350f['descriptionFactory']['registerDescriptionCallback'](_0x171c75=>{if(_0x171c75['subType']&&_0x171c75['subType']['startsWith']('tablePaste'))return _0x171c75['previous']?{}:{'type':'insertion','content':o(_0x49465f['locale'],'*Replace\x20table\x20cells*')};});const _0x3bf014=()=>!0x1;for(const _0x27bd3b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x57350f['_suggestionFactory']['registerCustomCallback']('insertion',_0x27bd3b,'join',_0x3bf014),_0x57350f['_suggestionFactory']['registerCustomCallback']('deletion',_0x27bd3b,'join',_0x3bf014),_0x57350f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x27bd3b,'join',_0x3bf014);_0x57350f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3bf014),_0x57350f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4186d7,_0xac2731,_0x1a33ee)=>{const _0x8248d5=_0x4186d7['map'](_0x2cb76c=>_0x2cb76c['getContainedElement']())['filter'](_0x39439c=>_0x39439c),_0x1c8e2f=new Map(_0x8248d5['map'](_0x36898c=>[_0x36898c,null]));if(_0x2faff3){for(const {element:_0x3d420e,attributes:_0x3132d2}of _0x2faff3['cells'])_0x3132d2&&_0x1c8e2f['set'](_0x3d420e,_0x3132d2);}else{if(_0x1a33ee&&_0x1a33ee['markerAttributes'])for(const [_0x1ae464,_0x2db173]of Object['entries'](_0x1a33ee['markerAttributes'])){const _0x394391=_0x49465f['model']['markers']['get'](_0x1ae464),_0x365d57=_0x394391?_0x394391['getRange']()['getContainedElement']():null;_0x365d57&&_0x1c8e2f['set'](_0x365d57,_0x2db173);}}_0x49465f['model']['change'](_0xc6141f=>{for(const [_0x33132f,_0x16589d]of _0x1c8e2f)_0xc6141f['setAttributes']({...xe,..._0x16589d},_0x33132f);});});const _0x18cab6=(_0x42a2f8,_0x33e097)=>{_0x57350f['_suggestionFactory']['registerCustomCallback'](_0x42a2f8,'tablePaste',_0x33e097,(_0x146f58,_0x10b728,_0x1cfdc2)=>{_0x49465f['model']['change'](_0x20dbe9=>{const _0x44301a=[];for(const _0x42480e of _0x146f58){const _0x2a2105=_0x42480e['start']['nodeAfter'];_0x2a2105['is']('element','tableCellSuggestion')&&_0x44301a['push'](_0x2a2105);}_0x57350f['_suggestionFactory']['getSuggestionCallback'](_0x42a2f8,null,_0x33e097)(_0x146f58,_0x10b728,_0x1cfdc2);for(const _0x48219b of _0x44301a)'$graveyard'!=_0x48219b['root']['rootName']&&_0x20dbe9['unwrap'](_0x48219b);});});};_0x18cab6('insertion','accept'),_0x18cab6('insertion','discard'),_0x18cab6('deletion','accept'),_0x18cab6('deletion','discard'),_0x57350f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x119e8c=>{const _0x48a7e6=_0x119e8c['map'](_0x307c98=>_0x307c98['getContainedElement']()),_0x114e16=_0x48a7e6[0x0]['findAncestor']('table'),{minRow:_0x4c6caa,maxRow:_0x30f72c}=_0xa9ee31['_getCoordsForCells'](_0x48a7e6);_0x56b8dc['removeRows'](_0x114e16,{'at':_0x4c6caa,'rows':_0x30f72c-_0x4c6caa+0x1});}),_0x57350f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1edaea=>{const _0x2c8571=_0x1edaea['map'](_0x483282=>_0x483282['getContainedElement']()),_0x10d55a=_0x2c8571[0x0]['findAncestor']('table'),{minColumn:_0x2617ac,maxColumn:_0x5dcd6c}=_0xa9ee31['_getCoordsForCells'](_0x2c8571);_0x56b8dc['removeColumns'](_0x10d55a,{'at':_0x2617ac,'columns':_0x5dcd6c-_0x2617ac+0x1});});const _0x2f1f5=(_0x1cb765,_0x1ec7cc)=>{if(!_0x1ec7cc['subType']||!_0x1ec7cc['subType']['startsWith']('tablePaste'))return;const _0x13bd7d=_0x1ec7cc['attributes']['tablePasteChainId'],_0x3345ff=_0x57350f['getSuggestions']()['filter'](_0x1583a9=>_0x1583a9['isInContent']&&_0x1583a9['attributes']&&_0x1583a9['attributes']['tablePasteChainId']==_0x13bd7d);_0x3345ff['length']&&_0x1ec7cc['getAllAdjacentSuggestions']()['length']!=_0x3345ff['length']&&_0x3345ff['reduce']((_0x47dcbb,_0x31bec2)=>(_0x47dcbb['next']=_0x31bec2,_0x31bec2['previous']=_0x47dcbb,_0x31bec2));};function _0x102921(_0x55f6e1,_0x3da735=!0x0){const {id:_0x197b1a,authorId:_0x5157a8}=_0x57350f['_splitMarkerName'](_0x55f6e1['markerName']),_0x5b43b7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x147e72=_0x57350f['activeMarkers']['includes'](_0x55f6e1['markerName']);return _0x147e72&&_0x5b43b7['push']('ck-suggestion-marker--active'),{'classes':_0x5b43b7,'attributes':{'data-suggestion':_0x197b1a,'data-author-id':_0x5157a8},'priority':_0x147e72&&_0x3da735?0xbc2:0xbb8};}_0x57350f['on']('suggestionLoaded',_0x2f1f5,{'priority':'high'}),_0x57350f['on']('suggestionUnloaded',_0x2f1f5,{'priority':'high'}),_0x49465f['model']['document']['registerPostFixer'](()=>{let _0x19aa74=!0x1;const _0x4028ce=Array['from'](_0x49465f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1afb21,data:_0xdf6af3}of _0x4028ce){const {group:_0x2259d6,type:_0x39fa5f,id:_0x545c68}=_0x57350f['_splitMarkerName'](_0x1afb21);if('suggestion'!=_0x2259d6||'deletion'!=_0x39fa5f||_0xdf6af3['oldRange'])continue;if(!_0x57350f['hasSuggestion'](_0x545c68))continue;const _0xbe233=_0x57350f['getSuggestion'](_0x545c68)['getRanges'](),_0x34f53=_0x49465f['plugins']['get']('Users')['me'];for(const _0x210f20 of _0x57350f['getSuggestions']()){if(!_0x210f20['isInContent']||_0x210f20['author']!=_0x34f53)continue;if('formatBlock'!=_0x210f20['type']||'tablePasteCell'!=_0x210f20['subType'])continue;if(_0x210f20['getRanges']()['every'](_0x1cd43e=>_0xbe233['some'](_0x2a96ec=>_0x2a96ec['containsRange'](_0x1cd43e,!0x0)))){for(const _0x5a5a7a of _0x210f20['getAllAdjacentSuggestions']())_0x5a5a7a['isInContent']&&(_0x5a5a7a['discard'](),_0x19aa74=!0x0);}}}return _0x19aa74;}),_0x49465f['model']['document']['registerPostFixer'](_0x44fad8=>{const _0x5d22d5=_0x49465f['commands']['get']('redo');if(!_0x5d22d5||!_0x5d22d5['_createdBatches']['has'](_0x44fad8['batch']))return!0x1;let _0xd2686=!0x1;const _0x3166d1=_0x49465f['plugins']['get']('Users')['me'],_0x504dbe=_0x49465f['model']['document']['differ']['getChanges'](),_0x4be8fc=Array['from'](_0x49465f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1723c8,data:_0x2c54fc})=>{const {group:_0x1a3966,subType:_0x4a2e6a,authorId:_0x2f031d}=_0x57350f['_splitMarkerName'](_0x1723c8);return'suggestion'==_0x1a3966&&'tablePaste'==_0x4a2e6a&&_0x2f031d==_0x3166d1['id']&&!_0x2c54fc['oldRange'];});for(const _0x1872d7 of _0x504dbe){if('insert'!=_0x1872d7['type']||'tableCellSuggestion'!=_0x1872d7['name']||0x1!=_0x1872d7['length'])continue;const _0x5b337a=_0x44fad8['createRange'](_0x1872d7['position'],_0x1872d7['position']['getShiftedBy'](0x1));if(!_0x4be8fc['find'](({data:_0x149f70})=>_0x149f70['newRange']['isEqual'](_0x5b337a))){for(const {name:_0x1a1357,data:_0x23f2c2}of _0x4be8fc)if(_0x5b337a['containsRange'](_0x23f2c2['newRange'])){_0x44fad8['updateMarker'](_0x1a1357,{'range':_0x5b337a}),_0xd2686=!0x0;break;}}}return _0xd2686;}),_0x49465f['model']['document']['registerPostFixer'](_0x6ec81f=>{let _0x192e16=!0x1;const _0x6bb570=_0x49465f['plugins']['get']('Users')['me'],_0x279cac=_0x57350f['getSuggestions']()['filter'](_0x4b682f=>_0x4b682f['isInContent']&&_0x4b682f['author']==_0x6bb570),_0x33f147=new Set(),_0x3f6639=new Set();for(const _0x922c3e of _0x279cac)if('tablePaste'==_0x922c3e['subType'])for(const _0x344715 of _0x922c3e['getMarkers']()){const _0x15df6e=_0x344715['getRange']()['getContainedElement']();if(_0x15df6e){if(_0x15df6e['is']('element','tableCellSuggestion')&&Oe(_0x15df6e)){_0x922c3e['removeMarker'](_0x344715['name']),_0x33f147['add'](_0x15df6e),_0x192e16=!0x0;const _0x11d40f=_0x15df6e['nextSibling'],_0x45c8b6=_0x15df6e['previousSibling'],_0x41686f=_0x11d40f&&_0x11d40f['is']('element','tableCellSuggestion'),_0x4f1877=_0x45c8b6&&_0x45c8b6['is']('element','tableCellSuggestion');_0x41686f&&!_0x33f147['has'](_0x11d40f)&&_0x3f6639['add'](_0x11d40f),_0x4f1877&&!_0x33f147['has'](_0x45c8b6)&&_0x3f6639['add'](_0x45c8b6);}else _0x15df6e['is']('element','paragraph')&&_0x15df6e['isEmpty']&&(_0x922c3e['removeMarker'](_0x344715['name']),_0x192e16=!0x0);}}else{if('tablePasteCell'==_0x922c3e['subType']){if(!_0x922c3e['attributes']||!_0x922c3e['attributes']['tablePasteChainId'])continue;const _0xb44151=_0x922c3e['attributes']['markerAttributes'];if(_0xb44151&&Object['keys'](_0xb44151)['length'])continue;const _0xbdf338=_0x922c3e['attributes']['tablePasteChainId'];let _0x2e6ec8=!0x0,_0x50a887=!0x0;for(const _0x2cc121 of _0x279cac)if(_0x2cc121['subType']&&_0x2cc121['subType']['startsWith']('tablePaste')){if(!_0x2cc121['attributes']['tablePasteChainId']){_0x50a887=!0x1;break;}if(_0x2cc121['id']!=_0x922c3e['id']&&_0x2cc121['attributes']['tablePasteChainId']==_0xbdf338){_0x2e6ec8=!0x1;break;}}_0x50a887&&_0x2e6ec8&&(_0x922c3e['removeMarkers'](),_0x192e16=!0x0);}}for(const _0x55f5b2 of _0x33f147)_0x6ec81f['remove'](_0x55f5b2);for(const _0x5f1e90 of _0x3f6639)_0x6ec81f['unwrap'](_0x5f1e90);return _0x192e16;}),_0x49465f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x459216=>_0x102921(_0x459216),'converterPriority':'high'}),_0x49465f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3e47d8,_0x2d54ab)=>_0x2d54ab['options']['showSuggestionHighlights']?_0x102921(_0x3e47d8,!0x1):null,'converterPriority':'high'});const _0x330de6=_0x49465f['editing']['view'];this['listenTo'](_0x330de6['document'],'clipboardOutput',(_0x1b179b,_0x4dbf68)=>{const _0x543c12=[];for(const _0x63f0a0 of _0x330de6['createRangeIn'](_0x4dbf68['content'])['getItems']())_0x63f0a0['is']('element','suggestion-td')&&_0x543c12['push'](_0x63f0a0);_0x330de6['change'](_0x2670d4=>{for(const _0x2faaa5 of _0x543c12)_0x2670d4['move'](_0x2670d4['createRangeIn'](_0x2faaa5),_0x2670d4['createPositionBefore'](_0x2faaa5)),_0x2670d4['remove'](_0x2faaa5);});});}}function Oe(_0x2f31b7){if(_0x2f31b7['isEmpty'])return!0x0;const _0x2032b9=_0x2f31b7['getChild'](0x0);return _0x2032b9['is']('element','paragraph')&&_0x2032b9['isEmpty'];}function Ue(_0xc3a32e,_0x370bfc={},_0x5a0cc5){for(const {isAnchor:_0x2e59c0,cellHeight:_0x2409c8,cellWidth:_0x2adcb0}of _0x5a0cc5['createTableWalker'](_0xc3a32e,{'includeAllSlots':!0x0,..._0x370bfc}))if(!_0x2e59c0||0x1!=_0x2409c8||0x1!=_0x2adcb0)return!0x1;return!0x0;}class Dt extends _0x17edf8{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x244cdc=this['editor']['plugins']['get']('TrackChangesEditing');_0x244cdc['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x244cdc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x244cdc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x244cdc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x244cdc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x244cdc['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x460ca4,_0x350375){const _0x41df72=this['editor']['plugins']['get']('TrackChangesEditing'),_0x155983=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2acfe6=_0x350375['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x880768=_0x155983['getColumnGroupElement'](_0x2acfe6);let _0x85e742=_0x880768?_0x155983['getTableColumnsWidths'](_0x880768):null,_0x17e142=_0x2acfe6['getAttribute']('tableWidth')||null;const _0x2684fd=_0x350375['tableWidth']||_0x17e142,_0x24e2f9=_0x350375['columnWidths']||_0x85e742,_0x43e49d=this['editor']['plugins']['get']('Users')['me'];for(const _0x461814 of _0x41df72['getSuggestions']()){const _0x4e5812=_0x461814['getContainedElement']();if('resizeTable'===_0x461814['subType']&&_0x4e5812===_0x2acfe6){_0x461814['author']!==_0x43e49d&&_0x461814['discard']();const _0x68e48a=_0x461814['data']['commandParams'];_0x17e142=_0x68e48a[0x0]['tableWidth'],_0x85e742=_0x68e48a[0x0]['columnWidths'];break;}}_0x460ca4({'table':_0x2acfe6,'tableWidth':_0x2684fd,'columnWidths':_0x24e2f9}),_0x41df72['markBlockFormat'](_0x2acfe6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x17e142,'columnWidths':_0x85e742}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x44b041){if('formatBlock'!=_0x44b041['type']&&'formatInline'!=_0x44b041['type'])return;const {data:_0x2ef00f}=_0x44b041;if(_0x2ef00f&&'resizeTable'===_0x2ef00f['formatGroupId']){const _0x3f0f63='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3f0f63)};}}}class Mt extends _0x17edf8{['afterInit'](){const _0x35f9f4=this['editor'];_0x35f9f4['plugins']['has']('Template')&&_0x35f9f4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x17edf8{['afterInit'](){const _0x112439=this['editor'];if(!_0x112439['commands']['get']('insertTableOfContents'))return;_0x112439['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x44f142=_0x112439['plugins']['get']('TrackChangesEditing'),_0x4f1a54=_0x112439['locale'];_0x44f142['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3eaabf=>o(_0x4f1a54,'ELEMENT_TABLE_OF_CONTENTS',_0x3eaabf));}}class Bt extends _0x17edf8{['afterInit'](){const _0x537842=this['editor'];if(!_0x537842['plugins']['has']('Title'))return;const _0x47d7af=_0x537842['plugins']['get']('TrackChangesEditing');_0x47d7af['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x537842['locale'],'ELEMENT_TITLE')),_0x537842['model']['document']['registerPostFixer'](_0x5266a4=>{let _0x32c5d2=!0x1;const _0x4b2e95=Array['from'](_0x537842['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x6d7154,data:_0x529e78}of _0x4b2e95){const {group:_0xe7efe7}=_0x47d7af['_splitMarkerName'](_0x6d7154);if('suggestion'!==_0xe7efe7||!_0x529e78['newRange'])continue;const _0x556203=_0x529e78['newRange'],_0x3ab6fb=_0x556203['end']['nodeBefore'];if(!_0x3ab6fb||!_0x3ab6fb['is']('element','title-content'))continue;if(!_0x556203['start']['isTouching'](_0x556203['end']))continue;const _0x520b54=_0x537842['model']['schema']['getNearestSelectionRange'](_0x556203['end'],'forward');if(_0x520b54&&_0x520b54['isCollapsed']){const _0x5030b3=_0x5266a4['createRange'](_0x556203['start'],_0x520b54['start']);_0x5030b3['isEqual'](_0x556203)||(_0x5266a4['updateMarker'](_0x6d7154,{'range':_0x5030b3}),_0x32c5d2=!0x0);}_0x32c5d2||(_0x5266a4['removeMarker'](_0x6d7154),_0x32c5d2=!0x0);}return _0x32c5d2;});}}class Tt extends _0x17edf8{['afterInit'](){const _0xc1188f=this['editor'],_0xf20b0d=_0xc1188f['plugins']['get']('TrackChangesEditing');_0xc1188f['plugins']['has']('Uploadcare')&&(_0xf20b0d['enableCommand']('uploadcare'),_0xc1188f['plugins']['has']('UploadcareImageEdit')&&(_0xf20b0d['enableCommand']('uploadcareImageEdit'),_0xf20b0d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xf20b0d['registerBlockAttribute']('uploadcareImageId'),_0xf20b0d['descriptionFactory']['registerDescriptionCallback'](_0x9f0cbc=>{if('attribute'!=_0x9f0cbc['type'])return;const {data:_0x33a7f4}=_0x9f0cbc;return _0x33a7f4&&'uploadcareImageId'==_0x33a7f4['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x17edf8{['afterInit'](){const _0x374f7e=this['editor'],_0xc6c376=_0x374f7e['plugins']['get']('TrackChangesEditing');_0x374f7e['plugins']['has']('UndoEditing')&&(_0xc6c376['enableCommand']('undo'),_0xc6c376['enableCommand']('redo'));}}class Ot extends _0x17edf8{static get['requires'](){return[At];}['afterInit'](){const _0x36a508=this['editor'];if(!_0x36a508['plugins']['has']('TableCaptionEditing'))return;_0x36a508['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x17edf8{['tableProperties'];['tableCellProperties'];constructor(_0x397fd9){super(_0x397fd9),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2c02be=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x78d08b of this['tableProperties'])_0x2c02be['enableCommand'](_0x78d08b,(_0x37ed8,_0x33cbcc)=>{const _0x2e0e2e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x78d08b,[_0x2e0e2e],this['tableProperties'],'tableProperties',_0x37ed8,_0x33cbcc);});_0x2c02be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2c02be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c02be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x551824,_0x4622e2)=>this['handleDiscardAction'](this['tableProperties'],_0x551824,_0x4622e2)),_0x2c02be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x523577 of this['tableCellProperties'])_0x2c02be['enableCommand'](_0x523577,(_0x1c645c,_0xd5223)=>{const _0x479078=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x523577,_0x479078,this['tableCellProperties'],'tableCellProperties',_0x1c645c,_0xd5223);});_0x2c02be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2c02be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c02be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x10cd70,_0x2da88c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x10cd70,_0x2da88c)),_0x2c02be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2c02be['descriptionFactory']['registerDescriptionCallback'](_0x1c961e=>this['handleSuggestionDescription'](_0x1c961e));}['_handlePropertyChange'](_0x1e536b,_0x1f1d66,_0x1a0be6,_0x37539b,_0x4b59aa,_0x2e42cb){const _0x33ad05=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2e42cb['batch'],()=>{for(const _0x1645be of _0x1f1d66){if(this['_getSuggestion'](_0x1645be,_0x37539b))_0x4b59aa(_0x2e42cb);else{const _0x3e8454={};for(const _0x47ba7c of _0x1a0be6){const _0x44cca1=_0x1645be['getAttribute'](_0x47ba7c);void 0x0!==_0x44cca1&&(_0x3e8454[_0x47ba7c]=_0x44cca1);}_0x4b59aa(_0x2e42cb),_0x33ad05['markBlockFormat'](_0x1645be,{'commandParams':[_0x3e8454]},[],_0x37539b);}}});}['handleDiscardAction'](_0xe099e0,_0x547607,_0x1a878a){const _0x15d207=_0x547607[0x0]['start']['nodeAfter'],_0x10955b=_0x1a878a['commandParams'][0x0];this['editor']['model']['change'](_0xedd7ea=>{for(const _0x3bd17d of _0xe099e0)void 0x0!==_0x10955b[_0x3bd17d]?_0xedd7ea['setAttribute'](_0x3bd17d,_0x10955b[_0x3bd17d],_0x15d207):_0xedd7ea['removeAttribute'](_0x3bd17d,_0x15d207);});}['handleSuggestionDescription'](_0x2d9a6c){if(_0x2d9a6c['data'])switch(_0x2d9a6c['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'](_0x218352,_0x211277){const _0x262e51=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4548fa of _0x262e51['getSuggestions']({'skipNotAttached':!0x0})){const _0x5b2d4f=_0x4548fa['getContainedElement']();if(_0x4548fa['subType']===_0x211277&&_0x5b2d4f===_0x218352)return _0x4548fa;}return null;}}class Rt extends _0x17edf8{['afterInit'](){const _0x1b8720=this['editor'];if(!_0x1b8720['plugins']['has']('LineHeight'))return;const _0xcca1a0=_0x1b8720['plugins']['get']('TrackChangesEditing'),_0x4b5f3b=_0x1b8720['locale'];_0xcca1a0['enableDefaultAttributesIntegration']('lineHeight'),_0xcca1a0['registerBlockAttribute']('lineHeight'),_0xcca1a0['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4b5f3b,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x17edf8{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1eefc0,_0x233829,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9fc3ac){super(_0x9fc3ac),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x379c46,_0x4008f3,_0x4705f3,_0x337f81)=>{this['_model']['change'](()=>{for(const _0x52a645 of[..._0x337f81,..._0x4705f3])this['_model']['markers']['has'](_0x52a645)&&_0x9fc3ac['editing']['reconvertMarker'](_0x52a645);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x9fc3ac['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x9fc3ac['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x9fc3ac['config']['get']('trackChanges.trackFormatChanges'),_0x9fc3ac['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x9fc3ac['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x9fc3ac,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1ecb65=this['editor'],_0x50ba72=(_0x29d519,_0x55acc6)=>{if('attribute'!=_0x29d519)return'ck-suggestion-marker-'+_0x29d519;const _0x6ca0ea=_0x55acc6['split']('|')[0x0];return this['_isBlockAttribute'](_0x6ca0ea)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1ecb65['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x58e65c=>{const {id:_0x3ddc88,authorId:_0x5526f5,type:_0x2e0555,subType:_0x4d64a0}=this['_splitMarkerName'](_0x58e65c['markerName']),_0x4c39c3=['ck-suggestion-marker',_0x50ba72(_0x2e0555,_0x4d64a0)];let _0x555bed=0xbb8;return this['activeMarkers']['includes'](_0x58e65c['markerName'])&&(_0x4c39c3['push']('ck-suggestion-marker--active'),_0x555bed=0xbc2),'deletion'==_0x2e0555&&(_0x555bed+=0x5),{'classes':_0x4c39c3,'attributes':{'data-suggestion':_0x3ddc88,'data-author-id':_0x5526f5},'priority':_0x555bed};}}),_0x1ecb65['conversion']['for']('dataDowncast')['add'](_0x3da9ef=>{_0x3da9ef['on']('addMarker:suggestion',(_0x1b27e1,_0x418711,_0x1c6131)=>{if(!_0x1c6131['options']['showSuggestionHighlights'])return;const _0x4e32bd=_0x418711['item'];if(!_0x4e32bd)return;const _0x5739a4=_0x1c6131['mapper']['toViewElement'](_0x4e32bd);_0x1ecb65['model']['schema']['isObject'](_0x4e32bd)&&_0x5739a4&&!_0x5739a4['getCustomProperty']('widget')&&_0x5739a4['is']('containerElement')&&_0x4c8e3a(_0x5739a4,_0x1c6131['writer']);},{'priority':'high'});}),_0x1ecb65['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x52cd4d,_0xb6dfcc)=>{if(!_0xb6dfcc['options']['showSuggestionHighlights'])return null;const {id:_0x26926d,authorId:_0x2d44c9,type:_0x116bef,subType:_0x31b90b}=this['_splitMarkerName'](_0x52cd4d['markerName']);return{'classes':['ck-suggestion-marker',_0x50ba72(_0x116bef,_0x31b90b)],'priority':0xbb8,'attributes':{'data-suggestion':_0x26926d,'data-author-id':_0x2d44c9}};}});const _0x30fc74=({showActiveMarkers:_0x202b02=!0x0,isAttributeSuggestion:_0x2b9a45=!0x1}={})=>(_0x519ef2,_0x5888c4,_0x54d0b2)=>{if(!_0x5888c4['item'])return;const {id:_0x428724,authorId:_0x415f4c}=this['_splitMarkerName'](_0x5888c4['markerName']);if(_0x2b9a45){const _0x538440=this['_suggestions']['get'](_0x428724),_0x261906=this['_getAttributeKey'](_0x538440);if(!this['_isBlockAttribute'](_0x261906))return;}if(_0x5888c4['item']['is']('selection'))return void _0x54d0b2['consumable']['consume'](_0x5888c4['item'],_0x519ef2['name']);const _0x10304d=_0x54d0b2['mapper']['toViewElement'](_0x5888c4['item']);if(_0x5888c4['item']['is']('element')&&_0x1ecb65['model']['schema']['isBlock'](_0x5888c4['item'])&&!_0x10304d['getCustomProperty']('addHighlight')){_0x54d0b2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x10304d),_0x54d0b2['writer']['setAttribute']('data-suggestion',_0x428724,_0x10304d),_0x54d0b2['writer']['setAttribute']('data-author-id',_0x415f4c,_0x10304d),_0x54d0b2['mapper']['bindElementToMarker'](_0x10304d,_0x5888c4['markerName']),_0x202b02&&(this['activeMarkers']['includes'](_0x5888c4['markerName'])?_0x54d0b2['writer']['addClass']('ck-suggestion-marker--active',_0x10304d):_0x54d0b2['writer']['removeClass']('ck-suggestion-marker--active',_0x10304d));for(const _0x7d7abb of _0x1ecb65['model']['createRangeIn'](_0x5888c4['item'])['getItems']())_0x54d0b2['consumable']['consume'](_0x7d7abb,_0x519ef2['name']);_0x54d0b2['consumable']['consume'](_0x5888c4['item'],_0x519ef2['name']);}};_0x1ecb65['conversion']['for']('dataDowncast')['add'](_0x4d9f64=>{_0x4d9f64['on']('addMarker:suggestion:formatBlock',(_0x58b567,_0x3d67e8,_0x577eaa)=>{_0x577eaa['options']['showSuggestionHighlights']&&_0x30fc74({'showActiveMarkers':!0x1})(_0x58b567,_0x3d67e8,_0x577eaa);},{'priority':'highest'});}),_0x1ecb65['conversion']['for']('dataDowncast')['add'](_0x4bd23a=>{_0x4bd23a['on']('addMarker:suggestion:attribute',(_0x16c745,_0x43374c,_0x216faf)=>{_0x216faf['options']['showSuggestionHighlights']&&_0x30fc74({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x16c745,_0x43374c,_0x216faf);},{'priority':'highest'});}),_0x1ecb65['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2f6ed5,_0x3efbca)=>{if(_0x3efbca['options']['showSuggestionHighlights']){const {id:_0x7e4c1e,authorId:_0x2d33d0}=this['_splitMarkerName'](_0x2f6ed5);return _0x2f6ed5['includes'](':split')||_0x2f6ed5['includes'](':merge')?{'group':'suggestion','name':_0x2f6ed5['substr'](0xb),'attributes':{'data-suggestion':_0x7e4c1e,'data-author-id':_0x2d33d0}}:null;}return{'group':'suggestion','name':_0x2f6ed5['substr'](0xb)};}}),_0x1ecb65['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x30f2e6,{writer:_0x3aea06})=>{let _0x343977='suggestion:'+_0x30f2e6['getAttribute']('suggestion-type')+':'+_0x30f2e6['getAttribute']('id');return _0x30f2e6['getAttribute']('marker-count')&&(_0x343977+=':'+_0x30f2e6['getAttribute']('marker-count')),_0x3aea06['createElement']('$marker',{'data-name':_0x343977});}}),_0x1ecb65['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1ecb65['conversion']['for']('editingDowncast')['add'](_0x4b1142=>{_0x4b1142['on']('addMarker:suggestion:formatBlock',_0x30fc74(),{'priority':'high'});}),_0x1ecb65['conversion']['for']('editingDowncast')['add'](_0x536fb4=>{_0x536fb4['on']('addMarker:suggestion:attribute',_0x30fc74({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1ecb65['conversion']['for']('editingDowncast')['add'](_0x5b080c=>{_0x5b080c['on']('removeMarker:suggestion:formatBlock',(_0x519fd5,_0x3001ee,_0x2b3c6c)=>{const _0x5504f0=_0x2b3c6c['mapper']['markerNameToElements'](_0x3001ee['markerName']);if(_0x5504f0){for(const _0x17cbeb of _0x5504f0)_0x17cbeb['getCustomProperty']('addHighlight')||(_0x2b3c6c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x17cbeb),_0x2b3c6c['writer']['removeAttribute']('data-suggestion',_0x17cbeb),_0x2b3c6c['writer']['removeAttribute']('data-author-id',_0x17cbeb),_0x2b3c6c['mapper']['unbindElementFromMarkerName'](_0x17cbeb,_0x3001ee['markerName']));}},{'priority':'high'});}),_0x1ecb65['conversion']['for']('editingDowncast')['add'](_0x21d9c1=>{_0x21d9c1['on']('removeMarker:suggestion:attribute',(_0x2a2a6d,_0x420cac,_0x205b85)=>{const _0x1a8b32=_0x205b85['mapper']['markerNameToElements'](_0x420cac['markerName']);if(!_0x1a8b32)return;const {id:_0x18d91c}=this['_splitMarkerName'](_0x420cac['markerName']),_0x4d48ea=this['_suggestions']['get'](_0x18d91c),_0x443536=this['_getAttributeKey'](_0x4d48ea);if(this['_isBlockAttribute'](_0x443536)){for(const _0x2ef5ba of _0x1a8b32)_0x2ef5ba['getCustomProperty']('addHighlight')||(_0x205b85['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ef5ba),_0x205b85['writer']['removeAttribute']('data-suggestion',_0x2ef5ba),_0x205b85['writer']['removeAttribute']('data-author-id',_0x2ef5ba),_0x205b85['mapper']['unbindElementFromMarkerName'](_0x2ef5ba,_0x420cac['markerName']));}},{'priority':'high'});}),_0x1ecb65['model']['document']['registerPostFixer'](_0x5938a8=>{let _0x3a06e8=!0x1;const _0x344a57=Array['from'](_0x1ecb65['model']['document']['differ']['getChangedMarkers']()),_0x46321a=new Set();for(const {name:_0x48dd5d,data:_0x2d6d90}of _0x344a57){const {group:_0x306258,type:_0x26506a,subType:_0x4c2018,id:_0x101546}=this['_splitMarkerName'](_0x48dd5d);if('suggestion'!==_0x306258)continue;const _0x38e757=this['_suggestions']['get'](_0x101546);if(null!=_0x2d6d90['newRange']){'formatInline'==_0x26506a&&(_0x3a06e8=_0x3a06e8||Gt(_0x2d6d90['newRange'],_0x48dd5d,_0x5938a8,_0x1ecb65['model']['schema']));const _0x36c6bf='attribute'==_0x26506a&&this['_isBlockAttribute'](_0x4c2018['split']('|')[0x0]);if(_0x2d6d90['newRange']['isCollapsed']||'$graveyard'==_0x2d6d90['newRange']['root']['rootName']||'formatBlock'==_0x26506a&&!Jt(_0x2d6d90['newRange'])||_0x36c6bf&&!Jt(_0x2d6d90['newRange'])||'deletion'==_0x26506a&&!Kt(_0x2d6d90['newRange']))_0x5938a8['removeMarker'](_0x48dd5d),_0x3a06e8=!0x0;else{if(!_0x38e757||!_0x38e757['isInContent'])continue;if(_0x2d6d90['newRange']&&_0x2d6d90['oldRange']&&_0x2d6d90['newRange']['isEqual'](_0x2d6d90['oldRange']))continue;_0x46321a['add'](_0x38e757);}}}return _0x46321a['size']>0x0&&(_0x3a06e8=!!this['_joinWithAdjacentSuggestions'](_0x46321a)||_0x3a06e8),_0x3a06e8;}),_0x1ecb65['model']['document']['registerPostFixer'](_0x5761f6=>{let _0x2c0bd2=!0x1;for(const _0x216796 of _0x1ecb65['model']['document']['differ']['getChanges']())if('insert'==_0x216796['type'])for(const _0x2d2d1f of this['_suggestions']['values']()){if(_0x2d2d1f['isMultiRange']||!_0x2d2d1f['isInContent'])continue;const _0x30a39e='formatBlock'==_0x2d2d1f['type'],_0x4f2e64=this['_getAttributeKey'](_0x2d2d1f),_0x2f57aa=_0x4f2e64&&this['_isBlockAttribute'](_0x4f2e64);if(!_0x30a39e&&!_0x2f57aa)continue;const _0x15a0a4=_0x2d2d1f['getFirstRange']();if(_0x15a0a4['start']['parent']!=_0x15a0a4['end']['parent']&&!_0x15a0a4['end']['isAtEnd']){const _0x546197=_0x1ecb65['model']['createPositionAt'](_0x15a0a4['start']['nodeAfter'],'end'),_0x596816=_0x1ecb65['model']['createRange'](_0x15a0a4['start'],_0x546197);_0x5761f6['updateMarker'](_0x2d2d1f['getFirstMarker'](),{'range':_0x596816}),_0x2c0bd2=!0x0;}}return _0x2c0bd2;}),_0x1ecb65['model']['document']['registerPostFixer'](_0xf0c91f=>this['_processAttributeChanges'](_0xf0c91f)),_0x1ecb65['model']['document']['registerPostFixer'](_0x58edbb=>!_0x58edbb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x58edbb)),_0x1ecb65['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1ecb65['model']['document']['on']('change:data',(_0x43f491,_0x5864dd)=>{if(!_0x5864dd['isLocal']||_0x5864dd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4ab951=_0x1ecb65['model']['document']['differ']['getChanges']();if(0x0==_0x4ab951['length'])return;const _0x4fd6fa=[],_0x218852=_0x4ab951['filter'](_0x2c3354=>'attribute'==_0x2c3354['type']),_0x30ff3c=_0x4ab951['filter'](_0x940a5e=>'insert'==_0x940a5e['type']&&'$text'!=_0x940a5e['name']);for(const _0x43aa37 of _0x218852)this['_isRegisteredAttribute'](_0x43aa37['attributeKey'])&&_0x4fd6fa['push']({'key':_0x43aa37['attributeKey'],'newValue':_0x43aa37['attributeNewValue'],'oldValue':_0x43aa37['attributeOldValue'],'range':Ht(_0x43aa37['range'],_0x1ecb65['model'])});for(const _0x1e65be of _0x30ff3c){if('rename'!=_0x1e65be['action']&&'refresh'!=_0x1e65be['action'])continue;const _0x24c8d0=qt(_0x1e65be['position']['nodeAfter'],_0x1ecb65['model']),_0x15e6fb=_0x1e65be['before'];'rename'==_0x1e65be['action']&&_0x4fd6fa['push']({'key':m,'newValue':_0x1e65be['name'],'oldValue':_0x15e6fb['name'],'range':_0x24c8d0});for(const [_0x1038d7,_0x544bc3]of _0x15e6fb['attributes']){if(!this['_isRegisteredAttribute'](_0x1038d7))continue;const _0x425bc0=_0x1e65be['attributes']['get'](_0x1038d7);_0x544bc3!==_0x425bc0&&_0x4fd6fa['push']({'key':_0x1038d7,'newValue':_0x425bc0,'oldValue':_0x544bc3,'range':_0x24c8d0});}for(const [_0x34f2f4,_0x33bad7]of _0x1e65be['attributes'])this['_isRegisteredAttribute'](_0x34f2f4)&&(_0x15e6fb['attributes']['has'](_0x34f2f4)||_0x4fd6fa['push']({'key':_0x34f2f4,'newValue':_0x33bad7,'oldValue':null,'range':_0x24c8d0}));}0x0!=_0x4fd6fa['length']&&_0x1ecb65['model']['enqueueChange'](_0x5864dd,_0x524351=>{const _0x4ae404=_0x17daf6();for(const {range:_0x5ceaee,key:_0x4d6aa3,oldValue:_0x43d0a2,newValue:_0x3ee850}of _0x4fd6fa)this['markAttributeChange'](_0x5ceaee,_0x4d6aa3,_0x43d0a2,_0x3ee850,{'groupId':_0x4ae404});this['_reduceExistingSuggestions'](_0x524351,_0x4fd6fa);});},{'priority':'lowest'}),_0x1ecb65['model']['markers']['on']('update:suggestion',(_0x462648,_0x41eb11,_0x3cdce7)=>{if(null==_0x3cdce7){const {id:_0x3135aa}=this['_splitMarkerName'](_0x41eb11['name']),_0x6d0b56=this['_suggestions']['get'](_0x3135aa);_0x6d0b56&&_0x6d0b56['addMarkerName'](_0x41eb11['name']);}}),_0x1ecb65['model']['document']['on']('change:data',()=>{const _0x4bcb43=Array['from'](_0x1ecb65['model']['document']['differ']['getChangedMarkers']())['filter'](_0x59f5cc=>'suggestion'===this['_splitMarkerName'](_0x59f5cc['name'])['group']);if(0x0===_0x4bcb43['length'])return;_0x4bcb43['sort']((_0x3114b4,_0x4ecf4a)=>{const _0x2e3760=_0x3114b4['data']['oldRange'],_0x579c56=_0x4ecf4a['data']['oldRange'];return null===_0x2e3760&&null===_0x579c56?0x0:null===_0x2e3760&&null!==_0x579c56?-0x1:null!==_0x2e3760&&null===_0x579c56?0x1:_0x2e3760['start']['isBefore'](_0x579c56['start'])?-0x1:0x1;});const _0x4683b5=new Set(),_0x3d3b3f=new Set();for(const {name:_0x16c684,data:_0x502dc8}of _0x4bcb43){const {id:_0x4a058f}=this['_splitMarkerName'](_0x16c684);if(null===_0x502dc8['oldRange']){const _0x5c1747=this['_handleNewSuggestionMarker'](_0x16c684);_0x3d3b3f['add'](_0x5c1747);}else{const _0x1df8f2=this['_suggestions']['get'](_0x4a058f);null!==_0x502dc8['newRange']||_0x1df8f2['isInContent']?(_0x4683b5['add'](_0x1df8f2['head']),_0x3d3b3f['add'](_0x1df8f2)):this['_removeSuggestion'](_0x1df8f2);}}_0x3d3b3f['size']>0x0&&this['_refreshSuggestionsChain'](_0x3d3b3f);for(const _0x4e94d0 of _0x4683b5)this['fire']('suggestionChanged',_0x4e94d0);}),_0x1ecb65['model']['on']('applyOperation',(_0x578bd1,_0x2ab6ca)=>{const _0x34b646=_0x2ab6ca[0x0];if(!this['_suggestions']['size'])return;if(!_0x34b646['isDocumentOperation'])return;if(_0x34b646['batch']['isUndo']||!_0x34b646['batch']['isLocal'])return;let _0x50c3f3,_0x30b598;switch(_0x34b646['type']){case'insert':_0x50c3f3=_0x1ecb65['model']['createPositionAt'](_0x34b646['position']),_0x30b598=_0x50c3f3['getShiftedBy'](_0x34b646['howMany']);break;case'split':_0x50c3f3=_0x1ecb65['model']['createPositionAt'](_0x34b646['splitPosition']),_0x30b598=_0x1ecb65['model']['createPositionAt'](_0x34b646['moveTargetPosition']);break;case'move':_0x50c3f3=_0x1ecb65['model']['createPositionAt'](_0x34b646['targetPosition']),_0x30b598=_0x50c3f3['getShiftedBy'](_0x34b646['howMany']);break;default:return;}const _0x5a9ecd=_0x1ecb65['model']['createRange'](_0x50c3f3,_0x30b598);_0x1ecb65['model']['change'](()=>{for(const {suggestion:_0x2488a9,meta:_0x342592}of this['_findSuggestions'](_0x5a9ecd)){if(_0x2488a9['isMultiRange'])continue;if('formatInline'==_0x2488a9['type'])continue;const _0x3ee0fa=this['_getAttributeKey'](_0x2488a9);if(_0x3ee0fa&&this['_isBlockAttribute'](_0x3ee0fa)&&'split'!=_0x34b646['type'])continue;const _0x8773d8=_0x2488a9['data']&&_0x2488a9['data']['multipleBlocks'];('formatBlock'!=_0x2488a9['type']||'split'==_0x34b646['type']&&!_0x8773d8)&&(_0x342592['containsRangeInObject']||'insertion'==_0x2488a9['type']&&_0x342592['isOwn']||_0x2488a9['getFirstRange']()['containsRange'](_0x5a9ecd)&&this['_breakSuggestionMarker'](_0x2488a9,_0x50c3f3,_0x30b598));}});},{'priority':'lowest'}),_0x1ecb65['model']['on']('deleteContent',(_0x329d16,_0x5a97d4)=>{const _0x30837c=_0x5a97d4[0x0],_0xc5c538=_0x5a97d4[0x1];if(_0xc5c538&&_0xc5c538['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x30837c['isCollapsed'])return;const _0x53cc6f=_0x1ecb65['model']['schema'],{start:_0x35fd9a,end:_0x22ac9f}=_0x30837c['getFirstRange'](),_0x255a22=_0x35fd9a['nodeAfter']&&_0x53cc6f['isLimit'](_0x35fd9a['nodeAfter'])?null:_0x53cc6f['getNearestSelectionRange'](_0x35fd9a,'forward'),_0x32cb6b=_0x22ac9f['nodeBefore']&&_0x53cc6f['isLimit'](_0x22ac9f['nodeBefore'])?null:_0x53cc6f['getNearestSelectionRange'](_0x22ac9f,'backward'),_0x4f1a1f=_0x1ecb65['model']['createRange'](_0x255a22?_0x255a22['start']:_0x35fd9a,_0x32cb6b?_0x32cb6b['end']:_0x22ac9f);_0x1ecb65['model']['change'](_0xcebba6=>{this['markDeletion'](_0x4f1a1f);const _0xce7e3d=_0x1ecb65['model']['schema']['getNearestSelectionRange'](_0x4f1a1f['start']);_0x30837c['is']('documentSelection')?_0xcebba6['setSelection'](_0xce7e3d):_0x30837c['setTo'](_0xce7e3d);}),_0x329d16['stop']();},{'priority':_0x3dbbc7['normal']+0xa}),_0x1ecb65['model']['on']('insertContent',(_0x4c869a,_0x11305a)=>{const _0x52516e=_0x11305a[_0x11305a['length']-0x1];_0x52516e&&_0x52516e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1ecb65['model']['change'](()=>{let _0x44a189=_0x1ecb65['model']['insertContent'](_0x11305a[0x0],_0x11305a[0x1],_0x11305a[0x2],{'forceDefaultExecution':!0x0});if(!_0x44a189)return;_0x4c869a['return']=_0x44a189['clone']();const _0xa8e880=_0x44a189['end']['nodeBefore'],_0x2ea7ba=_0x1ecb65['model']['schema'];_0xa8e880&&_0x2ea7ba['isBlock'](_0xa8e880)&&!_0x2ea7ba['isObject'](_0xa8e880)&&(_0x44a189=_0x1ecb65['model']['createRange'](_0x44a189['start'],_0x1ecb65['model']['createPositionAt'](_0xa8e880,'end'))),this['markInsertion'](_0x44a189);}),_0x4c869a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1938fd=new D(_0x1ecb65,this['_suggestions']);_0x1ecb65['commands']['add']('acceptSuggestion',_0x1938fd),this['enableCommand']('acceptSuggestion');const _0x570692=new M(_0x1ecb65,this['_suggestions']);_0x1ecb65['commands']['add']('discardSuggestion',_0x570692),this['enableCommand']('discardSuggestion'),_0x1ecb65['commands']['add']('acceptAllSuggestions',new $(_0x1ecb65,_0x1938fd,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1ecb65['commands']['add']('discardAllSuggestions',new $(_0x1ecb65,_0x570692,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1ecb65['commands']['add']('acceptSelectedSuggestions',new B(_0x1ecb65,_0x1938fd,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1ecb65['commands']['add']('discardSelectedSuggestions',new B(_0x1ecb65,_0x570692,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x563fdd=_0x1ecb65['plugins']['get']('CommentsRepository');this['listenTo'](_0x563fdd,'addComment',(_0x420407,{threadId:_0x381865})=>{const _0x4f1e3f=this['_suggestions']['get'](_0x381865);_0x4f1e3f&&_0x4f1e3f['commentThread']&&0x1===_0x4f1e3f['commentThread']['length']&&this['_updateSuggestionData'](_0x381865,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x563fdd,'removeComment',(_0x8e3397,{threadId:_0x2baa25})=>{const _0x6b43c4=this['_suggestions']['get'](_0x2baa25);_0x6b43c4&&_0x6b43c4['commentThread']&&!_0x6b43c4['commentThread']['length']&&this['_updateSuggestionData'](_0x2baa25,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1798ab){const _0xcca760=_0x3892d7([0x37,0x62,0x34,0x38,0x72,0x50,0x64,0x35,0x43,0x61,0x4b,0x53,0x32,0x74,0x47,0x6b,0x4c,0x4e,0x48,0x4f,0x73,0x56,0x6d,0x4d,0x54,0x78,0x30,0x79,0x58,0x52,0x77,0x68,0x42,0x4a,0x69,0x36,0x41,0x57,0x6c,0x76,0x39,0x71,0x5a,0x6f,0x31,0x70,0x65,0x44,0x6e,0x6a,0x45,0x63,0x55,0x46,0x66,0x59,0x33,0x51,0x75,0x7a,0x49,0x67]),_0x4c62ea=0x215dab00,_0x4a91f3=0x215ac768^_0x4c62ea,_0x775b47=window[_0x3892d7([0x44,0x61,0x74,0x65])][_0x3892d7([0x6e,0x6f,0x77])](),_0x4c68c4=_0x1798ab[_0x3892d7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5588cb=new window[(_0x3892d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x599e6f=>{_0x4c68c4[_0x3892d7([0x6f,0x6e,0x63,0x65])](_0x3892d7([0x72,0x65,0x61,0x64,0x79]),_0x599e6f);}),_0x6fedf2={[_0x3892d7([0x6b,0x74,0x79])]:_0x3892d7([0x45,0x43]),[_0x3892d7([0x75,0x73,0x65])]:_0x3892d7([0x73,0x69,0x67]),[_0x3892d7([0x63,0x72,0x76])]:_0x3892d7([0x50,0x2d,0x32,0x35,0x36]),[_0x3892d7([0x78])]:_0x3892d7([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]),[_0x3892d7([0x79])]:_0x3892d7([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]),[_0x3892d7([0x61,0x6c,0x67])]:_0x3892d7([0x45,0x53,0x32,0x35,0x36])},_0x3b8330=_0x4c68c4[_0x3892d7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3892d7([0x67,0x65,0x74])](_0x3892d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38c48f(){let _0x156fde,_0x32c5c2=null,_0x394197=null;try{if(_0x3b8330==_0x3892d7([0x47,0x50,0x4c]))return _0x3892d7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x156fde=_0x304f89(),!_0x156fde)return _0x3892d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x156fde[_0x3892d7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x394197=_0x419ad7(_0x156fde[_0x3892d7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x156fde[_0x3892d7([0x6a,0x74,0x69])])),await _0x37e638()?_0x4be799()?_0x2ecf40()?_0x3892d7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x365188()?(_0x156fde[_0x3892d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3892d7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32c5c2=_0x164308(_0x3892d7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x156fde[_0x3892d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3892d7([0x74,0x72,0x69,0x61,0x6c])&&(_0x32c5c2=_0x164308(_0x3892d7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31fbaa()):_0x3892d7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3892d7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3892d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3892d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ecf40(){const _0x1a7345=[_0x3892d7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3892d7([0x74,0x72,0x69,0x61,0x6c])][_0x3892d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x156fde[_0x3892d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x775b47/0x3e8:0xe10*_0x4a91f3;return _0x156fde[_0x3892d7([0x65,0x78,0x70])]<_0x1a7345;}function _0x4be799(){const _0x14f26f=_0x156fde[_0x3892d7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x14f26f)return!0x1;if(_0x14f26f[_0x3892d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3892d7([0x2a])))return!0x0;if(_0x14f26f[_0x3892d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3892d7([0x54,0x43])))return!0x0;if(_0x14f26f[_0x3892d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3892d7([0x52,0x54,0x43]))){if(_0x138b2e())return!0x0;if(_0xfb8d5b()||_0x384318())return!0x0;}return!0x1;}function _0x365188(){const _0x3a9275=_0x156fde[_0x3892d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a9275||0x0==_0x3a9275[_0x3892d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a5587}=new URL(window[_0x3892d7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3a9275[_0x3892d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a5587))return!0x0;const _0x380b49=_0x5a5587[_0x3892d7([0x73,0x70,0x6c,0x69,0x74])](_0x3892d7([0x2e]));return _0x3a9275[_0x3892d7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x379e92=>_0x379e92[_0x3892d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3892d7([0x2a])))[_0x3892d7([0x6d,0x61,0x70])](_0x46290a=>_0x46290a[_0x3892d7([0x73,0x70,0x6c,0x69,0x74])](_0x3892d7([0x2e])))[_0x3892d7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35e581=>_0x35e581[_0x3892d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x380b49[_0x3892d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3892d7([0x6d,0x61,0x70])](_0x47d217=>Array(_0x380b49[_0x3892d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x47d217[_0x3892d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3892d7([0x66,0x69,0x6c,0x6c])](_0x47d217[0x0]===_0x3892d7([0x2a])?_0x3892d7([0x2a]):'')[_0x3892d7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x47d217))[_0x3892d7([0x73,0x6f,0x6d,0x65])](_0x4c651c=>_0x380b49[_0x3892d7([0x65,0x76,0x65,0x72,0x79])]((_0x5947d0,_0x4f2548)=>_0x4c651c[_0x4f2548]===_0x5947d0||_0x4c651c[_0x4f2548]===_0x3892d7([0x2a])));}function _0x31fbaa(){return _0x32c5c2&&_0x394197?new window[(_0x3892d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52ec01,_0x5770a8)=>{_0x32c5c2[_0x3892d7([0x74,0x68,0x65,0x6e])](_0x52ec01,_0x5770a8),_0x394197[_0x3892d7([0x74,0x68,0x65,0x6e])](_0x5adca5=>{_0x5adca5!=_0x3892d7([0x56,0x61,0x6c,0x69,0x64])&&_0x52ec01(_0x5adca5);},_0x5770a8);}):_0x32c5c2||_0x394197||_0x3892d7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x419ad7(_0xfe80c4,_0xedebd6){return new window[(_0x3892d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x187802=>{if(_0xba4772())return _0x187802(_0x3892d7([0x56,0x61,0x6c,0x69,0x64]));_0x4d6f6f(),_0x4c68c4[_0x3892d7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3892d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57eb76=!0x1;const _0x4bee48=_0x17daf6();function _0x1840e1(_0x3acd37){return!!_0x3acd37&&(typeof _0x3acd37===_0x3892d7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3acd37===_0x3892d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3acd37[_0x3892d7([0x74,0x68,0x65,0x6e])]===_0x3892d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3acd37[_0x3892d7([0x63,0x61,0x74,0x63,0x68])]===_0x3892d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5351e5(_0x4ac7fe){_0x43df14(_0x4ac7fe)[_0x3892d7([0x74,0x68,0x65,0x6e])](_0x7a4042=>{if(!_0x7a4042||_0x7a4042[_0x3892d7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3892d7([0x6f,0x6b]))return _0x3892d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2e6880(_0x31c979(_0x4bee48+_0xedebd6))!=_0x7a4042[_0x3892d7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3892d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3892d7([0x56,0x61,0x6c,0x69,0x64]);})[_0x3892d7([0x74,0x68,0x65,0x6e])](_0x355ef2=>(_0x14e3c7(),_0x355ef2),()=>{const _0x4e37e9=_0x14ee5c();return null==_0x4e37e9?(_0x14e3c7(),_0x3892d7([0x56,0x61,0x6c,0x69,0x64])):_0x3892d7(_0x775b47-_0x4e37e9>(0x5512f00^_0x4c62ea)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3892d7([0x74,0x68,0x65,0x6e])](_0x187802)[_0x3892d7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x187802(_0x3892d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1b128e=0x216b4580^_0x4c62ea;function _0x14e3c7(){const _0x2fd97c=_0x3892d7([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e6880(_0x31c979(_0xfe80c4)),_0x392b02=_0x45aa19(_0x2e6880(window[_0x3892d7([0x4d,0x61,0x74,0x68])][_0x3892d7([0x63,0x65,0x69,0x6c])](_0x775b47/_0x1b128e)));window[_0x3892d7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3892d7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fd97c,_0x392b02);}function _0x14ee5c(){const _0x23b352=_0x3892d7([0x6c,0x6c,0x63,0x74,0x2d])+_0x2e6880(_0x31c979(_0xfe80c4)),_0x5416c7=window[_0x3892d7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3892d7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23b352);return _0x5416c7?window[_0x3892d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45aa19(_0x5416c7),0x10)*_0x1b128e:null;}function _0x43df14(_0x1bec79){return new window[(_0x3892d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30ab60,_0x466ef4)=>{_0x1bec79[_0x3892d7([0x74,0x68,0x65,0x6e])](_0x30ab60,_0x466ef4),window[_0x3892d7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x466ef4,0x215c7fc0^_0x4c62ea);});}}_0x4c68c4[_0x3892d7([0x6f,0x6e])](_0x3892d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x43e372,_0x443acf)=>{if(_0x443acf[0x0]!=_0xfe80c4)return _0x187802(_0x3892d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x443acf[0x1]={..._0x443acf[0x1],[_0x3892d7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4bee48};},{[_0x3892d7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3892d7([0x68,0x69,0x67,0x68])}),_0x4c68c4[_0x3892d7([0x6f,0x6e])](_0x3892d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1c62f2=>{_0x1840e1(_0x1c62f2[_0x3892d7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57eb76=!0x0,_0x5351e5(_0x1c62f2[_0x3892d7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3892d7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3892d7([0x6c,0x6f,0x77])}),_0x5588cb[_0x3892d7([0x74,0x68,0x65,0x6e])](()=>{_0x57eb76||_0x187802(_0x3892d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xba4772(){return _0x4c68c4[_0x3892d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3892d7([0x76,0x69,0x65,0x77])][_0x3892d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3892d7([0x61,0x75,0x74,0x6f]);}function _0x4d6f6f(){_0x4c68c4[_0x3892d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3892d7([0x76,0x69,0x65,0x77])][_0x3892d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3892d7([0x61,0x75,0x74,0x6f]);}}function _0x164308(_0x25040b){const _0x4cd1c6=[new window[(_0x3892d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x499e48=>setTimeout(_0x499e48,0x215495cc^_0x4c62ea)),_0x5588cb[_0x3892d7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3892d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33cbda=>{let _0x1ad76a=0x0;_0x4c68c4[_0x3892d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3892d7([0x6f,0x6e])](_0x3892d7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x324835,_0x4bba4e)=>{_0x4bba4e[0x0][_0x3892d7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ad76a++,_0x1ad76a==(0x215daaf8^_0x4c62ea)&&(_0x33cbda(),_0x324835[_0x3892d7([0x6f,0x66,0x66])]());});}))];return window[_0x3892d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3892d7([0x72,0x61,0x63,0x65])](_0x4cd1c6)[_0x3892d7([0x74,0x68,0x65,0x6e])](()=>_0x25040b);}async function _0x231ca6(){await _0x5588cb,_0x4c68c4[_0x3892d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3892d7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x497d00,_0x4c68c4[_0x3892d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x3892d7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x497d00,_0x4c68c4[_0x3892d7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3892d7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x138b2e(){return _0x41ded9(_0x3892d7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x124325(_0x3892d7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3892d7([0x73,0x74,0x61,0x74,0x65])]==_0x3892d7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xfb8d5b(){return _0x41ded9(_0x3892d7([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 _0x384318(){return _0x41ded9(_0x3892d7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x41f39d(_0x4b2f76){const _0x4f68d5=_0x2ca3e2();_0x4c68c4[_0x4f68d5]=_0x3892d7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b2f76,_0x4b2f76!=_0x3892d7([0x56,0x61,0x6c,0x69,0x64])&&_0x231ca6();}function _0x2ca3e2(){const _0x119ec9=window[_0x3892d7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3892d7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3892d7([0x6e,0x6f,0x77])]())[_0x3892d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3892d7([0x2e]),'');let _0x1cd280=_0x3892d7([0x62]);for(let _0x18f4fe=0x0;_0x18f4fe<_0x119ec9[_0x3892d7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18f4fe+=0x2){let _0x5627bc=window[_0x3892d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x119ec9[_0x3892d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18f4fe,_0x18f4fe+0x2));_0x5627bc>=_0xcca760[_0x3892d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5627bc-=_0xcca760[_0x3892d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1cd280+=_0xcca760[_0x5627bc];}return _0x1cd280;}function _0x304f89(){const _0x7932ac=_0x3b8330[_0x3892d7([0x73,0x70,0x6c,0x69,0x74])](_0x3892d7([0x2e]));if(0x3!=_0x7932ac[_0x3892d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x59aaa2(_0x7932ac[0x1]);function _0x59aaa2(_0x65b0d0){const _0x23f30d=_0x300e9c(_0x65b0d0);return _0x23f30d&&_0x3744f4()?_0x23f30d:null;function _0x3744f4(){const _0x1ad9ba=_0x23f30d[_0x3892d7([0x6a,0x74,0x69])],_0x34b3f6=window[_0x3892d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ad9ba[_0x3892d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ad9ba[_0x3892d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x12b6ae={..._0x23f30d,[_0x3892d7([0x6a,0x74,0x69])]:_0x1ad9ba[_0x3892d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ad9ba[_0x3892d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x12b6ae[_0x3892d7([0x76,0x63])],_0x31c979(_0x12b6ae)==_0x34b3f6;}}}async function _0x37e638(){let _0x144feb=!0x0;try{const _0x1134f3=_0x3b8330[_0x3892d7([0x73,0x70,0x6c,0x69,0x74])](_0x3892d7([0x2e])),[_0x3dde87,_0xa48e3b,_0x18be8f]=_0x1134f3;return _0x11a449(_0x3dde87),await _0x5edc54(_0x3dde87,_0xa48e3b,_0x18be8f),_0x144feb;}catch{return!0x1;}function _0x11a449(_0x47429c){const _0x56ded2=_0x300e9c(_0x47429c);_0x56ded2&&_0x56ded2[_0x3892d7([0x61,0x6c,0x67])]==_0x3892d7([0x45,0x53,0x32,0x35,0x36])||(_0x144feb=!0x1);}async function _0x5edc54(_0x4da2fd,_0x18159a,_0x10e790){const _0x4c9ae2=window[_0x3892d7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3892d7([0x66,0x72,0x6f,0x6d])](_0x3b9352(_0x10e790),_0x4f646c=>_0x4f646c[_0x3892d7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x547645=new window[(_0x3892d7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3892d7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4da2fd+_0x3892d7([0x2e])+_0x18159a),_0x3817f2=window[_0x3892d7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3892d7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3817f2)return;const _0x1ae155=await _0x3817f2[_0x3892d7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3892d7([0x6a,0x77,0x6b]),_0x6fedf2,{[_0x3892d7([0x6e,0x61,0x6d,0x65])]:_0x3892d7([0x45,0x43,0x44,0x53,0x41]),[_0x3892d7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3892d7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3892d7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3817f2[_0x3892d7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3892d7([0x6e,0x61,0x6d,0x65])]:_0x3892d7([0x45,0x43,0x44,0x53,0x41]),[_0x3892d7([0x68,0x61,0x73,0x68])]:{[_0x3892d7([0x6e,0x61,0x6d,0x65])]:_0x3892d7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1ae155,_0x4c9ae2,_0x547645)||(_0x144feb=!0x1);}}function _0x300e9c(_0x4b9ae4){return _0x4b9ae4[_0x3892d7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3892d7([0x65,0x79]))?JSON[_0x3892d7([0x70,0x61,0x72,0x73,0x65])](_0x3b9352(_0x4b9ae4)):null;}function _0x3b9352(_0x14600c){return window[_0x3892d7([0x61,0x74,0x6f,0x62])](_0x14600c[_0x3892d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3892d7([0x2b]))[_0x3892d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3892d7([0x2f])));}function _0x31c979(_0x152a32){let _0x217e0a=0x1505;function _0x4bdbc5(_0x198fcd){for(let _0x3da0db=0x0;_0x3da0db<_0x198fcd[_0x3892d7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3da0db++){const _0x5cc232=_0x198fcd[_0x3892d7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3da0db);_0x217e0a=(_0x217e0a<<0x5)+_0x217e0a+_0x5cc232,_0x217e0a&=_0x217e0a;}}function _0x32f1cf(_0xf61424){Array[_0x3892d7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf61424)?_0xf61424[_0x3892d7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32f1cf):_0xf61424&&typeof _0xf61424==_0x3892d7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3892d7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf61424)[_0x3892d7([0x73,0x6f,0x72,0x74])]()[_0x3892d7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x48fa1d,_0xb32112])=>{_0x4bdbc5(_0x48fa1d),_0x32f1cf(_0xb32112);}):_0x4bdbc5(window[_0x3892d7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf61424));}return _0x32f1cf(_0x152a32),_0x217e0a>>>0x0;}function _0x2e6880(_0x2ad522){return _0x2ad522[_0x3892d7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3892d7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3892d7([0x30]));}function _0x45aa19(_0x51899b){return _0x51899b[_0x3892d7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3892d7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3892d7([0x6a,0x6f,0x69,0x6e])]('');}function _0x41ded9(_0x49fa35){return _0x4c68c4[_0x3892d7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3892d7([0x68,0x61,0x73])](_0x49fa35);}function _0x124325(_0xcf35c1){return _0x4c68c4[_0x3892d7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3892d7([0x67,0x65,0x74])](_0xcf35c1);}function _0x497d00(){}function _0x3892d7(_0x160f8d){return _0x160f8d['map'](_0x25049b=>String['fromCharCode'](_0x25049b))['join']('');}_0x41f39d(await _0x38c48f());}(this);}set['adapter'](_0x606d60){if(this['_adapter'])throw new _0x2cc94b('track-changes-adapter-already-set',this);this['_adapter']=_0x606d60;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x6b92ec=!0x1,toJSON:_0x181538=!0x1}={}){const _0x43c72d=[];for(const _0x2aa184 of this['_suggestions']['values']())_0x6b92ec&&!_0x2aa184['isInContent']||_0x43c72d['push'](_0x2aa184);return _0x181538?_0x43c72d['map'](_0x1bad4e=>_0x1bad4e['toJSON']()):_0x43c72d;}['getSuggestion'](_0x1e8f9a){const _0x20b1e1=this['_suggestions']['get'](_0x1e8f9a);if(!_0x20b1e1)throw new _0x2cc94b('track-changes-suggestion-not-found',this);return _0x20b1e1;}['hasSuggestion'](_0x3d646a){return this['_suggestions']['has'](_0x3d646a);}['addSuggestionData'](_0x2d05c3){const {authorId:_0x1bd7d8,id:_0x51b6fc,originalSuggestionId:_0x142870,attributes:_0x43f8f0}=_0x2d05c3,[_0x3e7386,_0x37d94d]=_0x2d05c3['type']['split'](':'),_0x1fff14=this['_suggestions']['get'](_0x51b6fc)||this['_createSuggestion'](_0x3e7386,_0x37d94d,_0x51b6fc,_0x1bd7d8,_0x43f8f0,_0x142870);if(this['_addThreadToSuggestion'](_0x1fff14),this['_checkSuggestionCorrectness'](_0x1fff14,_0x3e7386,_0x37d94d||null,_0x1bd7d8),_0x1fff14['createdAt']=_0x2d05c3['createdAt'],_0x1fff14['_isDataLoaded']=!0x0,_0x43f8f0&&_0x43f8f0['@external']){const _0x59de09=_0x43f8f0['@external'],_0x2b3a5b=this['_getExternalAuthor'](_0x59de09['authorName']);_0x1fff14['authoredAt']=_0x59de09['createdAt'],_0x1fff14['author']=_0x2b3a5b,_0x1fff14['isExternal']=!0x0;}else _0x1fff14['authoredAt']=_0x2d05c3['createdAt'];switch(_0x2d05c3['data']&&(_0x1fff14['data']=_0x2d05c3['data']),_0x2d05c3['attributes']&&(_0x1fff14['attributes']=_0x2d05c3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1fff14['_saved']=!0x0),this['_suggestionState']['get'](_0x1fff14)){case'notReady':this['_suggestionState']['set'](_0x1fff14,'dataReady');break;case'markerReady':_0x1fff14['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1fff14])),this['_refreshSuggestionsChain'](new Set([_0x1fff14])),this['_suggestionState']['set'](_0x1fff14,'ready'),this['fire']('suggestionLoaded',_0x1fff14)):this['_suggestionState']['set'](_0x1fff14,'removed');}return _0x1fff14;}['acceptSuggestion'](_0x25305e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5d8531 of _0x25305e['getAllAdjacentSuggestions']())_0x5d8531['accept']();});});}['discardSuggestion'](_0x32cdb0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x26d537 of _0x32cdb0['getAllAdjacentSuggestions']())_0x26d537['discard']();});});}['enableCommand'](_0x5b5373,_0x4e35d0){const _0x19e468=this['editor']['commands']['get'](_0x5b5373);if(!_0x19e468)throw new _0x2cc94b('track-changes-command-not-found',this,{'commandName':_0x5b5373});if(this['_enabledCommands']['has'](_0x19e468))throw new _0x2cc94b('track-changes-enable-command-twice',this,{'commandName':_0x5b5373});this['_enabledCommands']['add'](_0x19e468),_0x4e35d0&&_0x19e468['on']('execute',(_0xfe11ff,_0x2686de)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2686de['length']>0x0&&_0x2686de[_0x2686de['length']-0x1]&&_0x2686de[_0x2686de['length']-0x1]['forceDefaultExecution']?_0x2686de['pop']():(_0xfe11ff['return']=_0x4e35d0((..._0x3b5b66)=>_0x19e468['execute'](..._0x3b5b66,{'forceDefaultExecution':!0x0}),..._0x2686de),_0xfe11ff['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x15d5a7){let _0x13a16d,_0x45a73f;const _0x38e85c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x13a16d=_0x15d5a7();}catch(_0x1c96a3){_0x45a73f=_0x1c96a3;}return _0x38e85c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x45a73f&&_0x2cc94b['rethrowUnexpectedError'](_0x45a73f,this),_0x13a16d;}['markInsertion'](_0x23fdb6,_0x488772=null,_0x12d84d={}){if(_0x23fdb6['isCollapsed'])return null;const _0x30bc03=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x12d84d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x448a38,meta:_0x3e0af8}of this['_findSuggestions'](_0x23fdb6,'insertion'))if(_0x3e0af8['isOwn']){if(!_0x3e0af8['isNextTo']){if(_0x3e0af8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x448a38,_0x12d84d))continue;return _0x448a38;}if(Qt(_0x448a38,_0x12d84d))return _0x448a38;this['_breakSuggestionMarker'](_0x448a38,_0x23fdb6['start'],_0x23fdb6['end']);break;}if(_0x488772==_0x448a38['subType']&&Qt(_0x448a38,_0x12d84d)){const _0x1e9334=_0x448a38['getFirstRange']();return _0x1e9334['start']['isEqual'](_0x23fdb6['end'])?this['_setSuggestionRange'](_0x448a38,this['_model']['createRange'](_0x23fdb6['start'],_0x1e9334['end'])):this['_setSuggestionRange'](_0x448a38,this['_model']['createRange'](_0x1e9334['start'],_0x23fdb6['end'])),_0x448a38;}}const _0x24d750=_0x17daf6(),_0x55d0be=_0x30bc03['id'],_0x49bcc7=_0x488772?'insertion:'+_0x488772:'insertion',_0x3a345e=this['_setSuggestionData']({'id':_0x24d750,'type':_0x49bcc7,'createdAt':new Date(),'authorId':_0x55d0be,'attributes':_0x12d84d});return this['_addSuggestionMarker'](_0x49bcc7,_0x24d750,_0x55d0be,_0x23fdb6),_0x3a345e;}['markMultiRangeInsertion'](_0x2565a1,_0x343cd8='multi',_0x26a7ef={}){const _0x232b25=this['editor']['plugins']['get']('Users')['me'],_0x21f8ed=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x343cd8,'join');this['_trackingSessionId']&&(_0x26a7ef['trackingSessionId']=this['_trackingSessionId']);for(const _0x4a5e61 of this['getSuggestions']())if(_0x4a5e61['author']['id']==_0x232b25['id']&&'insertion'==_0x4a5e61['type']&&_0x4a5e61['subType']==_0x343cd8&&Qt(_0x4a5e61,_0x26a7ef)&&(_0x21f8ed(_0x4a5e61['getRanges'](),_0x2565a1)||_0x21f8ed(_0x2565a1,_0x4a5e61['getRanges']()))){for(const _0x1709b0 of _0x2565a1)_0x4a5e61['addRange'](_0x1709b0);return _0x4a5e61;}for(const {suggestion:_0x388875,meta:_0x160e34}of this['_findSuggestions'](_0x2565a1,'insertion')){if(!_0x160e34['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x160e34['containsRangeInObject'])continue;if(!Qt(_0x388875,_0x26a7ef))continue;let _0x4b8ac0=!0x0;for(const _0x55d0f4 of _0x388875['getRanges']())for(const _0x309e54 of _0x2565a1)if(!_0x55d0f4['containsRange'](_0x309e54)){_0x4b8ac0=!0x1;break;}if(_0x4b8ac0)return _0x388875;}const _0x2e6c27=_0x17daf6(),_0x150493=_0x232b25['id'],_0x52a727='insertion:'+_0x343cd8,_0x55df8f=this['_setSuggestionData']({'id':_0x2e6c27,'type':_0x52a727,'createdAt':new Date(),'authorId':_0x150493,'attributes':_0x26a7ef});for(const _0x1414a8 of _0x2565a1)this['_addSuggestionMarker'](_0x52a727,_0x2e6c27,_0x150493,_0x1414a8,T['getMultiRangeId']());return _0x55df8f;}['markInlineFormat'](_0x519238,_0x265418,_0x1b4863=null,_0x10081c={}){if(_0x1b4863=_0x1b4863||Lt(_0x265418),_0x519238['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x10081c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x39809a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1b4863,'accept');return this['forceDefaultExecution'](()=>_0x39809a([_0x519238],_0x265418,_0x10081c)),null;}const _0x11cda1=this['editor']['plugins']['get']('Users')['me'],_0x32d59b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x557fde,meta:_0x2623c9}of this['_findSuggestions'](_0x519238,'insertion'))_0x2623c9['isOwn']&&!_0x2623c9['isInsideObject']&&_0x32d59b['push'](..._0x557fde['getRanges']());}const _0x4d8b56=function(_0x4ebe0e,_0xdb0dce){const _0x5b54e7=[];for(const _0x1b6e50 of _0xdb0dce){const _0x13a7d9=_0x4ebe0e['getIntersection'](_0x1b6e50);_0x13a7d9&&_0x5b54e7['push'](_0x13a7d9);}return _0x5b54e7;}(_0x519238,_0x32d59b),_0x898c71=function(_0x46dd5c,_0x492883){const _0x4c074b=[_0x46dd5c];for(const _0x544910 of _0x492883){let _0x5bc938=0x0;for(;_0x5bc938<_0x4c074b['length'];){const _0x9fe627=_0x4c074b[_0x5bc938]['getDifference'](_0x544910);_0x4c074b['splice'](_0x5bc938,0x1,..._0x9fe627),_0x5bc938+=_0x9fe627['length'];}}return _0x4c074b;}(_0x519238,_0x32d59b);_0x4d8b56['length']&&this['_model']['change'](()=>{for(const _0x113e8d of _0x4d8b56){const _0x129505=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1b4863,'accept');this['forceDefaultExecution'](()=>_0x129505([_0x113e8d],_0x265418,_0x10081c));}});for(const _0x555023 of _0x898c71){let _0x5db9cd=null,_0x56dc3d=_0x555023['start'],_0x110a64=_0x555023['end'];for(const {suggestion:_0x274743,meta:_0x516144}of this['_findSuggestions'](_0x555023,'formatInline')){if(!_0x516144['isOwn'])continue;if(_0x274743['subType']!=_0x1b4863)continue;if(!Qt(_0x274743,_0x10081c))continue;const _0x530f8d=_0x274743['getFirstRange']();if(_0x530f8d['containsRange'](_0x555023,!0x0))return null;_0x56dc3d=_0x56dc3d['isBefore'](_0x530f8d['start'])?_0x56dc3d:_0x530f8d['start'],_0x110a64=_0x110a64['isAfter'](_0x530f8d['end'])?_0x110a64:_0x530f8d['end'],_0x5db9cd?_0x530f8d['start']['isBefore'](_0x5db9cd['getFirstRange']()['start'])?(_0x5db9cd['removeMarkers'](),_0x5db9cd=_0x274743):_0x274743['removeMarkers']():_0x5db9cd=_0x274743;}const _0x38131f=this['_model']['createRange'](_0x56dc3d,_0x110a64);if(_0x5db9cd)this['_setSuggestionRange'](_0x5db9cd,_0x38131f);else{const _0x380b2f=_0x17daf6(),_0x1d39ff=_0x11cda1['id'];this['_setSuggestionData']({'id':_0x380b2f,'type':'formatInline:'+_0x1b4863,'data':_0x265418,'createdAt':new Date(),'authorId':_0x1d39ff,'attributes':_0x10081c}),this['_addSuggestionMarker']('formatInline:'+_0x1b4863,_0x380b2f,_0x1d39ff,_0x38131f);}}return null;}['markBlockFormat'](_0x221d0d,_0x313f51,_0x10a4b1=[],_0x5a551c=null,_0x32fbfb={}){_0x313f51['formatGroupId']||(_0x313f51['formatGroupId']=_0x313f51['commandName']),_0x313f51['multipleBlocks']=_0x221d0d['is']('range'),_0x5a551c=_0x5a551c||Lt(_0x313f51);const _0x186e55=_0x10a4b1['map'](_0x350e38=>qt(_0x350e38,this['_model'])),_0x1e0b5f=_0x221d0d['is']('range')?_0x221d0d:qt(_0x221d0d,this['_model']);if(this['_trackingSessionId']&&(_0x32fbfb['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x54ed9f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a551c,'accept');return this['forceDefaultExecution'](()=>_0x54ed9f([_0x1e0b5f],_0x313f51,_0x32fbfb)),null;}_0x186e55['push'](_0x1e0b5f);let _0x2ebf48=!0x0;for(const _0x11ad64 of _0x186e55)if(!this['_rangeIsInLocalUserInsertion'](_0x11ad64)){_0x2ebf48=!0x1;break;}if(_0x2ebf48&&'always'!==this['_trackFormatChanges']){const _0x2793ff=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a551c,'accept');return this['forceDefaultExecution'](()=>_0x2793ff([_0x1e0b5f],_0x313f51,_0x32fbfb)),null;}let _0x4eaab3=null,_0x3bf7e4=_0x1e0b5f['start'],_0x4de548=_0x1e0b5f['end'];for(const {suggestion:_0xad1593,meta:_0x562a19}of this['_findSuggestions'](_0x1e0b5f,'formatBlock')){if(!_0x562a19['isOwn'])continue;if(_0x562a19['isNextTo']||_0x562a19['containsRangeInObject']||_0x562a19['isInsideObject'])continue;if(_0xad1593['data']['formatGroupId']!=_0x313f51['formatGroupId'])continue;if(!Qt(_0xad1593,_0x32fbfb))continue;const _0x4e113e=_0xad1593['getFirstRange']();if(_0xad1593['subType']==_0x5a551c){if(_0x4e113e['containsRange'](_0x1e0b5f,!0x0))return null;_0x3bf7e4=_0x3bf7e4['isBefore'](_0x4e113e['start'])?_0x3bf7e4:_0x4e113e['start'],_0x4de548=_0x4de548['isAfter'](_0x4e113e['end'])?_0x4de548:_0x4e113e['end'],_0x4eaab3?_0x4e113e['start']['isBefore'](_0x4eaab3['getFirstRange']()['start'])?(_0x4eaab3['removeMarkers'](),_0x4eaab3=_0xad1593):_0xad1593['removeMarkers']():_0x4eaab3=_0xad1593;}else{const _0x55d6a2=_0x1e0b5f['getIntersection'](_0x4e113e);this['_cutOutSuggestionMarker'](_0xad1593,_0x55d6a2);}}const _0x14871d=this['editor']['plugins']['get']('Users')['me'],_0x227e99=_0x17daf6(),_0x46c53d=_0x14871d['id'];if(_0x4eaab3)return this['_setSuggestionRange'](_0x4eaab3,this['_model']['createRange'](_0x3bf7e4,_0x4de548)),_0x4eaab3;{const _0x49425d=this['_setSuggestionData']({'id':_0x227e99,'type':'formatBlock:'+_0x5a551c,'data':_0x313f51,'createdAt':new Date(),'authorId':_0x46c53d,'attributes':_0x32fbfb});return this['_addSuggestionMarker']('formatBlock:'+_0x5a551c,_0x227e99,_0x46c53d,this['_model']['createRange'](_0x3bf7e4,_0x4de548)),_0x49425d;}}['markMultiRangeBlockFormat'](_0x2667c5,_0xbdb3a9,_0x446b9a=[],_0x15bb1d=null,_0x6cbf2b={}){_0xbdb3a9['formatGroupId']||(_0xbdb3a9['formatGroupId']=_0xbdb3a9['commandName']);const _0xbc2563=_0x2667c5[0x0];_0xbdb3a9['multipleBlocks']=_0xbc2563['is']('range'),_0x15bb1d=_0x15bb1d||Lt(_0xbdb3a9);const _0xceee58=_0x446b9a['map'](_0x503817=>qt(_0x503817,this['_model'])),_0x2f8282=_0xbc2563['is']('range')?_0x2667c5:_0x2667c5['map'](_0x36c256=>qt(_0x36c256,this['_model']));if(this['_trackingSessionId']&&(_0x6cbf2b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc098c3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15bb1d,'accept');return this['forceDefaultExecution'](()=>_0xc098c3(_0x2f8282,_0xbdb3a9,_0x6cbf2b)),null;}_0xceee58['push'](..._0x2f8282);let _0x90c765=!0x0;for(const _0x2c367e of _0xceee58)if(!this['_rangeIsInLocalUserInsertion'](_0x2c367e)){_0x90c765=!0x1;break;}if(_0x90c765&&'always'!==this['_trackFormatChanges']){const _0x4feffe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15bb1d,'accept');return this['forceDefaultExecution'](()=>_0x4feffe(_0x2f8282,_0xbdb3a9,_0x6cbf2b)),null;}const _0x4de8f4=this['editor']['plugins']['get']('Users')['me'];for(const _0x11680 of this['getSuggestions']()){const _0x58bcb1=_0x11680['data'];if(_0x11680['author']['id']!=_0x4de8f4['id'])continue;if('formatBlock'!=_0x11680['type']||_0x58bcb1['formatGroupId']!=_0xbdb3a9['formatGroupId'])continue;if(!Qt(_0x11680,_0x6cbf2b))continue;const _0x272882=_0x11680['subType']==_0x15bb1d;for(let _0x2d86a2=0x0;_0x2d86a2<_0x2f8282['length'];_0x2d86a2++){const _0x5cdd10=_0x2f8282[_0x2d86a2];for(const _0xb6f80d of _0x11680['getMarkers']()){const _0x3175c4=_0xb6f80d['getRange']();if(_0x5cdd10['isEqual'](_0x3175c4)){_0x272882?(_0x2f8282['splice'](_0x2d86a2,0x1),_0x2d86a2--):_0x11680['removeMarker'](_0xb6f80d['name']);break;}}}}if(0x0==_0x2f8282['length'])return null;const _0x4e9630=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15bb1d,'join');for(const _0x253c38 of this['getSuggestions']()){const _0x6e64eb=_0x253c38['data'];if(_0x253c38['author']['id']==_0x4de8f4['id']&&('formatBlock'==_0x253c38['type']&&_0x6e64eb['formatGroupId']==_0xbdb3a9['formatGroupId']&&_0x253c38['subType']==_0x15bb1d&&Qt(_0x253c38,_0x6cbf2b)&&(_0x4e9630(_0x253c38['getRanges'](),_0x2f8282)||_0x4e9630(_0x2f8282,_0x253c38['getRanges']())))){for(const _0x197c7a of _0x2f8282)_0x253c38['addRange'](_0x197c7a);return _0x253c38;}}const _0x4eb429=_0x17daf6(),_0x2b85f9=_0x4de8f4['id'],_0x130285='formatBlock:'+_0x15bb1d,_0x22dbaf=this['_setSuggestionData']({'id':_0x4eb429,'type':_0x130285,'data':_0xbdb3a9,'createdAt':new Date(),'authorId':_0x2b85f9,'attributes':_0x6cbf2b});for(const _0x3c5d7e of _0x2f8282)this['_addSuggestionMarker'](_0x130285,_0x4eb429,_0x2b85f9,_0x3c5d7e,T['getMultiRangeId']());return _0x22dbaf;}['markDeletion'](_0x483aab,_0x158e9e=null,_0x17cb87={}){if(_0x483aab['isCollapsed'])return null;const _0x259ae5=this['editor']['plugins']['get']('Users')['me'],_0x42cd7f=new _0x2c8040(_0x483aab['start'],_0x483aab['end']);this['_trackingSessionId']&&(_0x17cb87['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3fd8d6,meta:_0x32fb53}of this['_findSuggestions'](_0x42cd7f,'insertion'))if(_0x32fb53['isOwn']&&!_0x32fb53['isNextTo']){if(_0x3fd8d6['isMultiRange']){const _0x5c2ca3=_0x3fd8d6['getRanges']()['filter'](_0x4fca5c=>'$graveyard'!=_0x4fca5c['root']['rootName']);_0x5c2ca3['every'](_0x19a35c=>_0x42cd7f['containsRange'](_0x19a35c,!0x0))&&_0x3fd8d6['discard']();if(_0x5c2ca3['some'](_0x1cfd12=>_0x1cfd12['containsRange'](_0x42cd7f,!0x0))){const _0x2ffe96=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x158e9e,'accept');return this['forceDefaultExecution'](()=>_0x2ffe96([_0x42cd7f],null,_0x17cb87)),null;}}else{const _0x40346f=_0x42cd7f['getIntersection'](_0x3fd8d6['getFirstRange']());null!==_0x40346f&&_0x3fd8d6['_onDiscard']([_0x40346f],null,_0x17cb87);}}if(_0x42cd7f['detach'](),_0x42cd7f['isCollapsed']||'$graveyard'==_0x42cd7f['root']['rootName'])return null;let _0x574b54=null,_0x14cb09=_0x42cd7f['start'],_0x61bd67=_0x42cd7f['end'];const _0x13d2c2=this['_findSuggestions'](_0x42cd7f,'deletion');for(const {suggestion:_0x31a3b5,meta:_0x65477c}of _0x13d2c2){const _0x532fbf=this['_model']['createRange'](_0x14cb09,_0x61bd67);if(_0x65477c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x65477c['containsRangeInObject']&&!_0x65477c['isInsideObject'])){if(_0x31a3b5['isMultiRange']){if(!Qt(_0x31a3b5,_0x17cb87))continue;let _0x2be560=!0x0;for(const _0x23e6ad of _0x31a3b5['getRanges']()){if(_0x23e6ad['containsRange'](_0x532fbf,!0x0))return _0x31a3b5;_0x532fbf['containsRange'](_0x23e6ad)||(_0x2be560=!0x1);}_0x2be560&&_0x31a3b5['discard']();}else{const _0xa92166=_0x31a3b5['getFirstRange']();if(_0xa92166['containsRange'](_0x532fbf,!0x0))return _0x31a3b5;if(!Qt(_0x31a3b5,_0x17cb87)){_0x532fbf['containsRange'](_0xa92166)?_0x31a3b5['removeMarkers']():_0xa92166['containsPosition'](_0x14cb09)?_0x14cb09=_0xa92166['end']:_0xa92166['containsPosition'](_0x61bd67)&&(_0x61bd67=_0xa92166['start']);continue;}_0x14cb09=_0x14cb09['isBefore'](_0xa92166['start'])?_0x14cb09:_0xa92166['start'],_0x61bd67=_0x61bd67['isAfter'](_0xa92166['end'])?_0x61bd67:_0xa92166['end'],_0x17cb87=Object['assign']({},_0x31a3b5['attributes']),_0x574b54?_0xa92166['start']['isBefore'](_0x574b54['getFirstRange']()['start'])?(_0x574b54['removeMarkers'](),_0x574b54=_0x31a3b5):_0x31a3b5['removeMarkers']():_0x574b54=_0x31a3b5;}}}if(_0x574b54)return this['_setSuggestionRange'](_0x574b54,this['_model']['createRange'](_0x14cb09,_0x61bd67)),_0x574b54;{const _0x3e928d=_0x17daf6(),_0x2dc56e=this['_model']['createRange'](_0x14cb09,_0x61bd67),_0x472fbc=_0x259ae5['id'],_0x41341c=_0x158e9e?'deletion:'+_0x158e9e:'deletion',_0x182b72=this['_setSuggestionData']({'id':_0x3e928d,'type':_0x41341c,'createdAt':new Date(),'authorId':_0x472fbc,'attributes':_0x17cb87});return this['_addSuggestionMarker'](_0x41341c,_0x3e928d,_0x472fbc,_0x2dc56e),_0x182b72;}}['markMultiRangeDeletion'](_0xb6bdbd,_0x18e87c='multi',_0x33bc0b={}){const _0x11b849=this['editor']['plugins']['get']('Users')['me'],_0x484c13=_0xb6bdbd['map'](_0x549131=>new _0x2c8040(_0x549131['start'],_0x549131['end'])),_0x193cd1=new Set();this['_trackingSessionId']&&(_0x33bc0b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2c6692,meta:_0x4c47a1}of this['_findSuggestions'](_0x484c13,'insertion'))_0x4c47a1['isOwn']&&!_0x4c47a1['isNextTo']&&_0x193cd1['add'](_0x2c6692);for(const _0x375c98 of _0x193cd1)if(_0x375c98['isMultiRange']){const _0x6bccb6=_0x375c98['getRanges']();(!_0x375c98['attributes']||!_0x375c98['attributes']['skipNestingCheck'])&&(_0x6bccb6['every'](_0x4ef02a=>_0x484c13['some'](_0x20ee96=>_0x20ee96['containsRange'](_0x4ef02a,!0x0)))&&_0x375c98['discard']());if(_0x484c13['every'](_0x41efc4=>_0x6bccb6['some'](_0x3ba627=>_0x3ba627['containsRange'](_0x41efc4,!0x0)))){const _0x2ab0e6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x18e87c,'accept');return this['forceDefaultExecution'](()=>_0x2ab0e6(_0xb6bdbd,null,_0x33bc0b)),null;}}else{const _0x47d612=_0x375c98['getFirstRange']();_0x484c13['some'](_0x242679=>_0x242679['containsRange'](_0x47d612,!0x0))&&_0x375c98['discard']();if(_0x484c13['every'](_0x3eeb55=>_0x47d612['containsRange'](_0x3eeb55,!0x0))){const _0x5b1247=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x18e87c,'accept');return this['forceDefaultExecution'](()=>_0x5b1247(_0x484c13,null,_0x33bc0b)),null;}}const _0x4a2f11=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x18e87c,'join');let _0x5c126c=null;for(const _0x27c94a of this['getSuggestions']())if(_0x27c94a['author']['id']==_0x11b849['id']&&_0x27c94a['isInContent']&&'deletion'==_0x27c94a['type']&&_0x27c94a['subType']==_0x18e87c&&Qt(_0x27c94a,_0x33bc0b)&&(_0x4a2f11(_0x27c94a['getRanges'](),_0x484c13)||_0x4a2f11(_0x484c13,_0x27c94a['getRanges']()))){if(_0x5c126c){if(_0x27c94a['commentThread']&&_0x27c94a['commentThread']['length'])continue;for(const _0xac7f44 of _0x27c94a['getRanges']())_0x5c126c['isIntersectingWithRange'](_0xac7f44)||_0x5c126c['addRange'](_0xac7f44);_0x27c94a['removeMarkers']();}else{_0x5c126c=_0x27c94a;for(const _0x34d350 of _0x484c13)_0x27c94a['isIntersectingWithRange'](_0x34d350)||_0x27c94a['addRange'](_0x34d350);}}if(_0x5c126c)return _0x5c126c;_0x193cd1['clear']();for(const {suggestion:_0x27c243,meta:_0x3fd843}of this['_findSuggestions'](_0x484c13,'deletion'))_0x3fd843['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3fd843['containsRangeInObject']&&!_0x3fd843['isInsideObject'])&&Qt(_0x27c243,_0x33bc0b)&&_0x193cd1['add'](_0x27c243);for(const _0x25934d of _0x193cd1){const _0xa3cef=_0x25934d['getRanges']();if(!_0x33bc0b||!_0x33bc0b['skipNestingCheck']){if(_0x484c13['every'](_0x27b9b9=>_0xa3cef['some'](_0x360536=>_0x360536['containsRange'](_0x27b9b9,!0x0))))return _0x25934d;}(!_0x25934d['attributes']||!_0x25934d['attributes']['skipNestingCheck'])&&(_0xa3cef['every'](_0x4d37fd=>_0x484c13['some'](_0x30ba92=>_0x30ba92['containsRange'](_0x4d37fd,!0x0)))&&_0x25934d['discard']());}const _0x19a94b=_0x17daf6(),_0x41a3a1=_0x11b849['id'],_0x10bb51='deletion:'+_0x18e87c,_0x10cdfd=this['_setSuggestionData']({'id':_0x19a94b,'type':_0x10bb51,'createdAt':new Date(),'authorId':_0x41a3a1,'attributes':_0x33bc0b});for(const _0x58b97d of _0x484c13)_0x58b97d['detach'](),_0x58b97d['isCollapsed']||'$graveyard'==_0x58b97d['root']['rootName']||this['_addSuggestionMarker'](_0x10bb51,_0x19a94b,_0x41a3a1,_0x58b97d,T['getMultiRangeId']());return _0x10cdfd;}['markAttributeChange'](_0x4f66dc,_0x450df9,_0x219947,_0x2a97ba,_0x229490){if(_0x4f66dc['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x296196=this['editor']['plugins']['get']('Users')['me']['id'],_0x390509=Array['from'](this['_suggestions']['values']())['filter'](_0x18fbff=>'attribute'==_0x18fbff['type']&&_0x18fbff['data']['key']==_0x450df9&&_0x18fbff['isIntersectingWithRange'](_0x4f66dc));if(this['_trackingSessionId']&&(_0x229490['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x273195=this['_findSuggestions'](_0x4f66dc,'insertion')['filter'](({meta:_0x2de161})=>_0x2de161['isOwn']&&!_0x2de161['isInsideObject']&&!_0x2de161['isNextTo'])['map'](({suggestion:_0xf17663})=>_0xf17663);_0x390509['unshift'](..._0x273195);}const _0x32843b=new Map([[_0x4f66dc,_0x219947]]);for(const _0x2fb96a of _0x390509){const _0x2001cf='attribute'==_0x2fb96a['type']?_0x2fb96a['data']['oldValue']:void 0x0,_0x1c58e0=_0x2fb96a['getFirstRange'](),_0x4bcdd3=Array['from'](_0x32843b['keys']())['find'](_0x1d40ff=>_0x1d40ff['isIntersecting'](_0x1c58e0));if(!_0x4bcdd3)continue;const _0x4a7018=_0x4bcdd3['getDifference'](_0x1c58e0);this['_isBlockAttribute'](_0x450df9)&&'insertion'==_0x2fb96a['type']&&0x0!=_0x4a7018['length']||(_0x32843b['delete'](_0x4bcdd3),_0x4a7018['forEach'](_0x3abbfb=>{_0x32843b['set'](_0x3abbfb,_0x219947);}),'insertion'!=_0x2fb96a['type']&&_0x2001cf!=_0x2a97ba&&_0x32843b['set'](_0x4bcdd3['getIntersection'](_0x1c58e0),_0x2001cf));}const _0x569764=[];for(const [_0x36c367,_0x28759a]of _0x32843b){const _0x4ad951=_0x17daf6(),_0x3a0722={'key':_0x450df9,'oldValue':_0x28759a,'newValue':_0x2a97ba};_0x450df9['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':_0x450df9});const _0xe529a7=('attribute:'+(_0x450df9+'|'+Lt({'newValue':_0x2a97ba})))['substring'](0x0,0x3c),_0x554012=this['_setSuggestionData']({'id':_0x4ad951,'type':_0xe529a7,'data':_0x3a0722,'createdAt':new Date(),'authorId':_0x296196,'attributes':_0x229490});_0x569764['push'](_0x554012),this['_addSuggestionMarker'](_0xe529a7,_0x4ad951,_0x296196,_0x36c367);}return _0x569764;}['enableDefaultAttributesIntegration'](_0x1f2d7d){this['enableCommand'](_0x1f2d7d,(_0x43d391,..._0x54f370)=>{this['recordAttributeChanges'](()=>{_0x43d391(..._0x54f370);});});}['registerBlockAttribute'](_0x50faec){this['_blockAttributeKeys']['add'](_0x50faec);}['registerInlineAttribute'](_0x53d853){this['_inlineAttributeKeys']['add'](_0x53d853);}['startTrackingSession'](_0x538364){return this['_trackingSessionId']=void 0x0!==_0x538364?_0x538364:_0x17daf6(),this['_trackingSessionId'];}['_getAttributeKey'](_0x27fa0d){return'attribute'==_0x27fa0d['type']?_0x27fa0d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x577bfd,_0xbd8a5b){const _0x402880=_0x577bfd['getFirstMarker']();this['_model']['change'](_0x5c134a=>{_0x5c134a['updateMarker'](_0x402880,{'range':_0xbd8a5b});});}['_addThreadToSuggestion'](_0x533e69){const _0x323443=_0x533e69['id'],_0xce8940=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x323443)||this['_commentsRepository']['addCommentThread']({'channelId':_0xce8940,'threadId':_0x323443,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4dd647=this['_commentsRepository']['getCommentThread'](_0x323443);_0x4dd647['unbind']('isRemovable'),_0x4dd647['isRemovable']=!0x1,_0x533e69['commentThread']=_0x4dd647;}['_checkSuggestionCorrectness'](_0x4e9b54,_0x16339a,_0x5527e3,_0x35e0fd){if(_0x4e9b54['type']!=_0x16339a||_0x4e9b54['subType']!=_0x5527e3||_0x4e9b54['creator']['id']!=_0x35e0fd)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2cc94b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x42184f,_0x225dd4){const _0x56f977=_0x42184f['getFirstRange']();if(_0x225dd4['isEqual'](_0x56f977))_0x42184f['removeMarkers']();else{if(_0x56f977['containsRange'](_0x225dd4)){const _0x4aa2a6=this['_model']['createPositionAt'](_0x225dd4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x42184f,this['_model']['createRange'](_0x56f977['start'],_0x4aa2a6));const _0x421666=_0x17daf6(),_0x5cca9f=_0x42184f['creator']['id'],_0x32c08e=_0x42184f['type']+':'+_0x42184f['subType'];this['_setSuggestionData']({'id':_0x421666,'type':_0x32c08e,'createdAt':new Date(),'authorId':_0x5cca9f,'data':_0x42184f['data'],'attributes':_0x42184f['attributes']});const _0x148dea=this['_model']['createPositionAt'](_0x225dd4['end']['parent'],'after'),_0x5f0303=this['_model']['createRange'](_0x148dea,_0x56f977['end']);this['_addSuggestionMarker'](_0x32c08e,_0x421666,_0x5cca9f,_0x5f0303);}else{if(_0x56f977['containsPosition'](_0x225dd4['start'])){const _0x369b47=this['_model']['createPositionAt'](_0x225dd4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x42184f,this['_model']['createRange'](_0x56f977['start'],_0x369b47));}else{const _0x41d197=this['_model']['createPositionAt'](_0x225dd4['end']['parent'],'after');this['_setSuggestionRange'](_0x42184f,this['_model']['createRange'](_0x41d197,_0x56f977['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1fe560){for(const {suggestion:_0xceab7e,meta:_0x22bcea}of this['_findSuggestions'](_0x1fe560,'insertion')){if(!_0x22bcea['isOwn'])continue;const _0x424e9e=_0xceab7e['getRanges']();for(const _0x17f0f7 of _0x424e9e)if(!_0x1fe560['getDifference'](_0x17f0f7)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x59f74c){const _0x5d095b=this['editor']['plugins']['get']('Users')['getUser'](_0x59f74c);if(!_0x5d095b)throw new _0x2cc94b('track-changes-user-not-found',this);return _0x5d095b;}['_getExternalAuthor'](_0x3c5965){const _0x52508e=this['editor']['plugins']['get']('Users'),_0x4820aa=_0xf571a('external:'+_0x3c5965),_0x2147a1=_0x52508e['getUser'](_0x4820aa);return _0x2147a1||_0x52508e['addUser']({'id':_0x4820aa,'name':_0x3c5965});}['_createSuggestion'](_0x479b94,_0x10ab69,_0x29db5a,_0x3be6df,_0x3fd0ef,_0x26ce4d){const _0x21d7be=this['_getAuthorFromId'](_0x3be6df),_0x908675=this['_suggestionFactory']['buildSuggestion'](_0x479b94,_0x10ab69,_0x29db5a,_0x21d7be,_0x3fd0ef,_0x29eb38=>{this['_updateSuggestionData'](_0x29db5a,{'attributes':_0x29eb38});const _0x1fbcd3=this['getSuggestion'](_0x29db5a);this['_joinWithAdjacentSuggestions'](new Set([_0x1fbcd3])),this['_refreshSuggestionsChain'](new Set([_0x1fbcd3]));},_0x26ce4d);return this['listenTo'](_0x908675,'accept',()=>{this['_updateSuggestionData'](_0x29db5a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x908675,'discard',()=>{this['_updateSuggestionData'](_0x29db5a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x29db5a,_0x908675),this['_suggestionState']['set'](_0x908675,'notReady'),_0x908675;}['_splitMarkerName'](_0x1feede){const _0x658921=_0x1feede['split'](':');return{'group':_0x658921[0x0],'type':_0x658921[0x1],'subType':_0x658921['length']>=0x5?_0x658921[0x2]:null,'id':_0x658921['length']<0x5?_0x658921[0x2]:_0x658921[0x3],'authorId':_0x658921['length']<0x5?_0x658921[0x3]:_0x658921[0x4],'markerCount':0x6==_0x658921['length']?_0x658921[0x5]:null};}['_breakSuggestionMarker'](_0x649658,_0x3a3a2e,_0x2098df){const _0xc4c6e0=_0x649658['getFirstRange'](),_0x2be5af=_0xc4c6e0['start'],_0x3f2ff8=_0xc4c6e0['end'];this['_setSuggestionRange'](_0x649658,this['_model']['createRange'](_0x2be5af,_0x3a3a2e));const _0x3e18c0=_0x17daf6(),_0x5f0bb3=_0x649658['creator']['id'],_0x2bb154=_0x649658['type']+(_0x649658['subType']?':'+_0x649658['subType']:'');this['_setSuggestionData']({'id':_0x3e18c0,'type':_0x2bb154,'createdAt':new Date(),'authorId':_0x5f0bb3,'originalSuggestionId':_0x649658['_originalSuggestionId']||_0x649658['id'],'attributes':_0x649658['attributes'],'data':_0x649658['data']});const _0x306f77=this['_getAttributeKey'](_0x649658);('formatBlock'==_0x649658['type']||_0x306f77&&this['_isBlockAttribute'](_0x306f77))&&(_0x2098df=this['_model']['createPositionBefore'](_0x2098df['parent'])),this['_addSuggestionMarker'](_0x2bb154,_0x3e18c0,_0x5f0bb3,this['_model']['createRange'](_0x2098df,_0x3f2ff8));}['_findSuggestions'](_0x8c1ec3,_0x54f5c8=null){const _0x172bfd=[],_0x37e691=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x8c1ec3)||(_0x8c1ec3=[_0x8c1ec3]);for(const _0x1f851b of this['getSuggestions']()){if(!_0x1f851b['isInContent'])continue;if(_0x54f5c8&&_0x1f851b['type']!=_0x54f5c8)continue;let _0x3a5f0c=!0x1;for(const _0x594dd5 of _0x1f851b['getRanges']()){for(const _0x121541 of _0x8c1ec3){const _0x32dbd6=_0x121541['start']['isEqual'](_0x594dd5['end'])||_0x121541['end']['isEqual'](_0x594dd5['start']);if(_0x32dbd6||_0x121541['getIntersection'](_0x594dd5)){const _0x258d39=_0x121541['containsRange'](_0x594dd5)&&Ft(this['_model']['schema'],_0x594dd5['start'],_0x121541),_0x19bd29=_0x594dd5['containsRange'](_0x121541)&&Ft(this['_model']['schema'],_0x121541['start'],_0x594dd5);_0x172bfd['push']({'suggestion':_0x1f851b,'meta':{'isOwn':_0x37e691==_0x1f851b['author'],'isNextTo':_0x32dbd6,'isInsideObject':_0x258d39,'containsRangeInObject':_0x19bd29}}),_0x3a5f0c=!0x0;break;}}if(_0x3a5f0c)break;}}return _0x172bfd;}['_addSuggestionMarker'](_0x497aa0,_0x323eb2,_0x1c7800,_0x17bee1,_0x4a4fdb){this['_model']['change'](_0x9acc3e=>{let _0x15cc0a='suggestion:'+_0x497aa0+':'+_0x323eb2+':'+_0x1c7800;_0x4a4fdb&&(_0x15cc0a=_0x15cc0a+':'+_0x4a4fdb),_0x9acc3e['addMarker'](_0x15cc0a,{'range':_0x17bee1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x340734){const _0x3ed146=_0x340734['previous'],_0x85f49b=_0x340734['next'];_0x340734['previous']=null,_0x340734['next']=null,null!=_0x3ed146&&_0x3ed146['next']==_0x340734&&(_0x3ed146['next']=_0x85f49b),null!=_0x85f49b&&_0x85f49b['previous']==_0x340734&&(_0x85f49b['previous']=_0x3ed146),'ready'==this['_suggestionState']['get'](_0x340734)&&(this['_suggestionState']['set'](_0x340734,'removed'),this['fire']('suggestionUnloaded',_0x340734,_0x3ed146,_0x85f49b));}['_setSuggestionData'](_0x399245){const _0x2836d3=_0x399245['id'],_0x1c3d78=this['addSuggestionData'](_0x399245);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5a86ce=this['editor']['plugins']['get']('PendingActions'),_0x22ac85=_0x1c3d78['hasComments'],_0x4543cd=_0x1c3d78['subType']?_0x1c3d78['type']+':'+_0x1c3d78['subType']:_0x1c3d78['type'],_0x5ae23e=this['editor']['locale'],_0xa0523c=_0x5a86ce['add'](o(_0x5ae23e,'PENDING_ACTION_SUGGESTION')),_0xe9c002={'id':_0x2836d3,'type':_0x4543cd,'hasComments':_0x22ac85,'data':_0x399245['data']||null,'originalSuggestionId':_0x399245['originalSuggestionId']||null,'attributes':_0x1c3d78['attributes']};this['_adapter']['addSuggestion'](_0xe9c002)['then'](_0x5d581f=>{_0x1c3d78['_saved']=!0x0,_0x5a86ce['remove'](_0xa0523c),_0x5d581f&&_0x5d581f['createdAt']&&(this['_suggestions']['get'](_0x2836d3)['createdAt']=_0x5d581f['createdAt']);})['catch'](_0x1af0ff=>{throw _0x32cd6a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1c3d78['discard']();}),_0x1c3d78['stopListening'](),this['_suggestions']['delete'](_0x1c3d78['id']),this['_suggestionState']['delete'](_0x1c3d78),_0x1af0ff;});}return _0x1c3d78;}['_isBlockAttribute'](_0x536d68){return this['_blockAttributeKeys']['has'](_0x536d68);}['_updateSuggestionData'](_0x19ad0b,_0x3db803){const _0x2e91ab=this['editor']['plugins']['get']('PendingActions'),_0x5292d5=this['getSuggestion'](_0x19ad0b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5292d5['_saved']){const _0xd34e0c=_0x2e91ab['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x19ad0b,_0x3db803)['then'](()=>{_0x2e91ab['remove'](_0xd34e0c);});}else _0x5292d5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x19ad0b,_0x3db803);});}}['_getSuggestionData'](_0x25ae15){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2cc94b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x25ae15);}['_handleNewSuggestionMarker'](_0x232d71){const {id:_0x2ad9ec,type:_0x2c95d7,subType:_0x4f4b3,authorId:_0x2bca35}=this['_splitMarkerName'](_0x232d71),_0xb7ca79=this['_suggestions']['get'](_0x2ad9ec)||this['_createSuggestion'](_0x2c95d7,_0x4f4b3,_0x2ad9ec,_0x2bca35,{});switch(this['_checkSuggestionCorrectness'](_0xb7ca79,_0x2c95d7,_0x4f4b3,_0x2bca35),this['_suggestionState']['get'](_0xb7ca79)){case'notReady':this['_getSuggestionData'](_0x2ad9ec)['then'](_0x587208=>{let _0xdadf3=Promise['resolve']();_0x587208['hasComments']&&(_0xdadf3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ad9ec})),_0xdadf3['then'](()=>{this['addSuggestionData'](_0x587208)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xb7ca79,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ad9ec,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xb7ca79,'ready'),this['fire']('suggestionLoaded',_0xb7ca79);break;case'ready':this['fire']('suggestionChanged',_0xb7ca79);}return _0xb7ca79['addMarkerName'](_0x232d71),_0xb7ca79;}['_refreshSuggestionsChain'](_0x3f20d2){const _0x1f806d=Array['from'](_0x3f20d2),_0x5b0b46=_0x1f806d['filter'](_0x137a1c=>'attribute'==_0x137a1c['type']);this['_refreshAttributeSuggestionsChain'](_0x5b0b46);const _0x585dbb=_0x1f806d['filter'](_0x600aad=>!_0x600aad['isMultiRange']&&'attribute'!=_0x600aad['type']),_0x117d50=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ee0e1=>!_0x3ee0e1['isMultiRange']&&'attribute'!=_0x3ee0e1['type']),_0x18f781=_0x117d50['filter'](_0x2bb066=>!_0x3f20d2['has'](_0x2bb066)),_0x46ddc3=new Map(_0x117d50['map'](_0x45d3f2=>[_0x45d3f2,this['_suggestionFactory']['getSuggestionCallback'](_0x45d3f2['type'],_0x45d3f2['subType'],'chain')])),_0x5f25d9=new Map(_0x117d50['map'](_0x23bf5b=>[_0x23bf5b,_0x23bf5b['getFirstRange']()])),_0xea2db2=new Set(),_0x288dd2=new Set();for(let _0x168de5=0x0;_0x168de5<_0x585dbb['length'];_0x168de5++)_0xef6db8(_0x585dbb[_0x168de5],_0x585dbb,_0x168de5+0x1);for(let _0x3028bf=0x0;_0x3028bf<_0x585dbb['length'];_0x3028bf++)_0xef6db8(_0x585dbb[_0x3028bf],_0x18f781,0x0);const _0x4909f3=new Set();for(let _0x3bf62b=0x0;_0x3bf62b<_0x585dbb['length'];_0x3bf62b++){const _0x25a5b2=_0x585dbb[_0x3bf62b];!_0x288dd2['has'](_0x25a5b2)&&_0x25a5b2['previous']&&(_0x4909f3['add'](_0x25a5b2['previous']),_0x25a5b2['previous']['next']===_0x25a5b2&&(_0x25a5b2['previous']['next']=null),_0x25a5b2['previous']=null),!_0xea2db2['has'](_0x25a5b2)&&_0x25a5b2['next']&&(_0x4909f3['add'](_0x25a5b2['next']),_0x25a5b2['next']['previous']===_0x25a5b2&&(_0x25a5b2['next']['previous']=null),_0x25a5b2['next']=null);}function _0xef6db8(_0x28d5c3,_0x5080cb,_0x4ef2b4){for(let _0x421063=_0x4ef2b4;_0x421063<_0x5080cb['length'];_0x421063++){const _0x2ccae1=_0x2a4de3(_0x28d5c3,_0x5080cb[_0x421063]);_0x2ccae1&&(_0x2ccae1[0x0]['next']=_0x2ccae1[0x1],_0x2ccae1[0x1]['previous']=_0x2ccae1[0x0],_0xea2db2['add'](_0x2ccae1[0x0]),_0x288dd2['add'](_0x2ccae1[0x1]));}}function _0x2a4de3(_0x39c0fe,_0x338fbf){if(_0x39c0fe['author']['id']!==_0x338fbf['author']['id'])return null;const _0x105fb1=_0x46ddc3['get'](_0x39c0fe)(_0x39c0fe,_0x338fbf,_0x5f25d9['get'](_0x39c0fe),_0x5f25d9['get'](_0x338fbf));if(!_0x105fb1)return null;return _0x46ddc3['get'](_0x338fbf)(_0x39c0fe,_0x338fbf,_0x5f25d9['get'](_0x39c0fe),_0x5f25d9['get'](_0x338fbf))?_0x105fb1[0x1]['commentThread']&&_0x105fb1[0x1]['commentThread']['length']?null:_0x105fb1:null;}_0x4909f3['size']&&this['_refreshSuggestionsChain'](_0x4909f3);}['_refreshAttributeSuggestionsChain'](_0x560967){if(0x0==_0x560967['length'])return;const _0x394439=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1da74e=>'attribute'==_0x1da74e['type']&&_0x1da74e['_isDataLoaded']),_0x2ad358=[],_0x4c5f31=new Map();for(const _0xcadc5a of _0x394439){const _0x14f789=_0xf571a(_0xcadc5a['attributes']);_0x4c5f31['has'](_0x14f789)||(_0x4c5f31['set'](_0x14f789,_0x2ad358['length']),_0x2ad358['push']([]));const _0x26d9ab=_0x4c5f31['get'](_0x14f789);_0x2ad358[_0x26d9ab]['push'](_0xcadc5a);}!(function(){_0x2ad358['sort']((_0x14e7c0,_0x46429d)=>{const _0x479ba6=_0x14e7c0[0x0]['createdAt'],_0x485248=_0x46429d[0x0]['createdAt'];return _0x479ba6==_0x485248?_0x14e7c0[0x0]['attributes']['groupId']<_0x46429d[0x0]['attributes']['groupId']?-0x1:0x1:_0x479ba6<_0x485248?-0x1:0x1;});for(const _0x36763e of _0x2ad358)_0x36763e['sort']((_0x45c86b,_0x4f8138)=>_0x45c86b['id']<_0x4f8138['id']?-0x1:0x1);}());for(let _0x2d7506=0x0;_0x2d7506<_0x2ad358['length'];_0x2d7506++){if(0x0==_0x2ad358[_0x2d7506]['length'])continue;const _0x575028=[];for(let _0xe32fd7=_0x2d7506+0x1;_0xe32fd7<_0x2ad358['length'];_0xe32fd7++)0x0!=_0x2ad358[_0xe32fd7]['length']&&_0x1c030c(_0x2ad358[_0x2d7506],_0x2ad358[_0xe32fd7])&&_0x575028['push'](_0xe32fd7);for(const _0x836ca of _0x575028)_0x2ad358[_0x2d7506]=_0x2ad358[_0x2d7506]['concat'](_0x2ad358[_0x836ca]),_0x2ad358[_0x836ca]=[];}for(const _0x509154 of _0x2ad358)for(let _0x4cc884=0x0;_0x4cc884<_0x509154['length'];_0x4cc884++){const _0x70a8db=_0x509154[_0x4cc884+0x1]||null;_0x509154[_0x4cc884]['next']!==_0x70a8db&&(_0x509154[_0x4cc884]['next']=_0x70a8db);}for(const _0x2ab42a of _0x2ad358)for(let _0x4f7224=0x0;_0x4f7224<_0x2ab42a['length'];_0x4f7224++){const _0xc99003=_0x2ab42a[_0x4f7224-0x1]||null;_0x2ab42a[_0x4f7224]['previous']!==_0xc99003&&(_0x2ab42a[_0x4f7224]['previous']=_0xc99003);}function _0x1c030c(_0x589541,_0x5e76a2){if(_0x589541[0x0]['attributes']['groupId']!==_0x5e76a2[0x0]['attributes']['groupId']&&_0x589541[0x0]['author']!==_0x5e76a2[0x0]['author'])return!0x1;if(!function(_0x407662,_0x159fb3){if(!_0x407662['hasComments']&&!_0x159fb3['hasComments'])return!0x0;if(_0x407662['hasComments']&&_0x159fb3['hasComments'])return!0x1;if(_0x407662['hasComments']&&_0x159fb3['createdAt']<_0x407662['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x159fb3['hasComments']&&_0x407662['createdAt']<_0x159fb3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x589541[0x0],_0x5e76a2[0x0]))return!0x1;const _0x196732=Ut(_0x589541[0x0]['attributes'],['groupId','trackingSessionId']),_0x2799e2=Ut(_0x5e76a2[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x314b12(_0x196732,_0x2799e2))return!0x1;if(_0x589541[0x0]['attributes']['groupId']==_0x5e76a2[0x0]['attributes']['groupId'])return!0x0;if(_0x589541[0x0]['attributes']['trackingSessionId']!==_0x5e76a2[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x589541['every'](_0x26097f=>_0x5e76a2['some'](_0x19c82c=>_0x26097f['getFirstRange']()['isEqual'](_0x19c82c['getFirstRange']())))&&_0x5e76a2['every'](_0x4ec009=>_0x589541['some'](_0x83e037=>_0x4ec009['getFirstRange']()['isEqual'](_0x83e037['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4ff66a){const _0x2157da=Array['from'](_0x4ff66a),_0x4a7300=this['getSuggestions']({'skipNotAttached':!0x0}),_0x15fe53=_0x4a7300['filter'](_0x18ee87=>!_0x4ff66a['has'](_0x18ee87)),_0x4ad5cb=new Map(_0x2157da['map'](_0x283f95=>[_0x283f95,this['_suggestionFactory']['getSuggestionCallback'](_0x283f95['type'],_0x283f95['subType'],'join')])),_0x33435a=new Map(_0x4a7300['map'](_0xfce3e=>[_0xfce3e,_0xfce3e['getRanges']()]));for(let _0x51a2ba=0x0;_0x51a2ba<_0x2157da['length'];_0x51a2ba++){if(_0x2c7f0e(this,_0x2157da[_0x51a2ba],_0x2157da,_0x51a2ba+0x1))return!0x0;}for(let _0x3a83ff=0x0;_0x3a83ff<_0x2157da['length'];_0x3a83ff++){if(_0x2c7f0e(this,_0x2157da[_0x3a83ff],_0x15fe53,0x0))return!0x0;}return!0x1;function _0x2c7f0e(_0x4eb8d2,_0x2501e1,_0x50672a,_0x55b2ce){for(let _0x354bbc=_0x55b2ce;_0x354bbc<_0x50672a['length'];_0x354bbc++){const _0x2bbf98=_0x50672a[_0x354bbc];if(_0x2bbf98['type']!==_0x2501e1['type']||_0x2bbf98['author']['id']!==_0x2501e1['author']['id']||_0x2bbf98['subType']!==_0x2501e1['subType'])continue;if(!Wt(_0x2501e1,_0x2bbf98))continue;if('attribute'==_0x2501e1['type']&&_0x2501e1['data']['oldValue']!=_0x2bbf98['data']['oldValue'])continue;if('attribute'==_0x2501e1['type']&&_0x4eb8d2['_isBlockAttribute'](_0x2501e1['data']['key']))continue;if('formatBlock'==_0x2501e1['type']){const _0x352b75=_0x4eb8d2['editor']['model'],_0x4099ad=_0x2501e1['getContainedElement']();if(_0x4099ad&&(_0x352b75['schema']['isObject'](_0x4099ad)||_0x352b75['schema']['isLimit'](_0x4099ad)))continue;}const _0x33e0b8=_0x4ad5cb['get'](_0x2501e1),_0xe705a0=_0x33435a['get'](_0x2501e1),_0x5309fd=_0x33435a['get'](_0x2bbf98),_0x47f3f3=_0x2501e1['commentThread']&&_0x2501e1['commentThread']['length'],_0x3fee4a=_0x2bbf98['commentThread']&&_0x2bbf98['commentThread']['length'];if(!_0x47f3f3&&_0x33e0b8(_0x5309fd,_0xe705a0))return _0x4eb8d2['_joinSuggestions'](_0x2bbf98,_0x2501e1),_0x33435a['delete'](_0x2501e1),!0x0;if(!_0x3fee4a&&_0x33e0b8(_0xe705a0,_0x5309fd))return _0x4eb8d2['_joinSuggestions'](_0x2501e1,_0x2bbf98),_0x33435a['delete'](_0x2bbf98),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2a77e1,_0x472930){if(_0x2a77e1['isMultiRange']){for(const _0x1f2f42 of _0x472930['getRanges']())_0x2a77e1['addRange'](_0x1f2f42);}else{const _0x308169=_0x472930['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2a77e1,this['_model']['createRange'](_0x2a77e1['getFirstRange']()['start'],_0x308169));}_0x472930['removeMarkers']();}['_getMarkerAnnouncementText'](_0xb135,_0x3e08e7,_0x45660c){const _0x5bd127=_0xb135['startsWith']('format')||_0xb135['startsWith']('attribute')?'FORMATTING':_0xb135['toUpperCase']();return o(this['editor']['locale'],_0x3e08e7+'_'+_0x5bd127+'_SUGGESTION_ANNOUNCEMENT',_0x45660c);}['_initAriaMarkerChangeAnnouncements'](){const _0x50d007=this['editor'];if(!_0x50d007['ui'])return;const {ariaLiveAnnouncer:_0x1337a5}=_0x50d007['ui'];_0xdb4ddf(this['_model'],({left:_0x54c042,entered:_0x19a5df})=>{for(const _0x26279e of _0x54c042){const {group:_0x11258a,type:_0x535744}=this['_splitMarkerName'](_0x26279e['name']);if('suggestion'===_0x11258a){_0x1337a5['announce'](this['_getMarkerAnnouncementText'](_0x535744,'LEAVE'));break;}}for(const _0x4b4968 of _0x19a5df){const {group:_0x2d85e2,type:_0x3a85eb}=this['_splitMarkerName'](_0x4b4968['name']);if('suggestion'===_0x2d85e2){_0x1337a5['announce'](this['_getMarkerAnnouncementText'](_0x3a85eb,'ENTER',_0x2cf8a0(_0x4cd54a)));break;}}});}['_processAttributeChanges'](_0x3213b8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2f6358=this['editor'],_0x9e5847=_0x2f6358['model']['document']['differ']['getChanges']();if(0x0==_0x9e5847['length'])return!0x1;const _0x5c695f=[],_0x23f53a=_0x9e5847['filter'](_0x5d0877=>'attribute'==_0x5d0877['type']),_0x2467cd=_0x9e5847['filter'](_0x59b55c=>'insert'==_0x59b55c['type']&&'$text'!=_0x59b55c['name']),_0x531d07=_0x9e5847['filter'](_0x467977=>'remove'==_0x467977['type']&&'$text'!=_0x467977['name']);for(const _0x4fe53e of _0x23f53a)_0x5c695f['push']({'key':_0x4fe53e['attributeKey'],'newValue':_0x4fe53e['attributeNewValue'],'oldValue':_0x4fe53e['attributeOldValue'],'range':Ht(_0x4fe53e['range'],_0x2f6358['model'])});for(const _0x242588 of _0x2467cd){const _0x5a3299=_0x531d07['find'](_0xf2e4ff=>_0xf2e4ff['position']['isEqual'](_0x242588['position']));_0x5a3299&&_0x5c695f['push']({'key':m,'newValue':_0x242588['name'],'oldValue':_0x5a3299['name'],'range':_0x2f6358['model']['createRangeOn'](_0x242588['position']['nodeAfter'])});}return 0x0!=_0x5c695f['length']&&this['_reduceExistingSuggestions'](_0x3213b8,_0x5c695f);}['_processAttributeSuggestions'](_0x241fa5){let _0x49bf2b=!0x1;const _0x2c6b1c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e2ba8=>_0x3e2ba8['data']['newRange']&&_0x3e2ba8['name']['startsWith']('suggestion:attribute:'));for(const _0x340ba9 of _0x2c6b1c){const {subType:_0xb2db5d,id:_0x4b65f5}=this['_splitMarkerName'](_0x340ba9['name']),_0x9de7e4=_0xb2db5d['split']('|')[0x0];for(const _0x4f00c4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4f00c4['id']!=_0x4b65f5&&'attribute'==_0x4f00c4['type']&&_0x4f00c4['data']&&_0x4f00c4['data']['key']==_0x9de7e4&&_0x4f00c4['getFirstRange']()['isIntersecting'](_0x340ba9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4f00c4,_0x340ba9['data']['newRange'],_0x241fa5),_0x49bf2b=!0x0);}return _0x49bf2b;}['recordAttributeChanges'](_0x179fca){this['_recordAttributeSuggestions']=!0x0,_0x179fca();}['_isRegisteredAttribute'](_0x28569f){const _0x40b912=this['_isBlockAttribute'](_0x28569f),_0x3e8496=this['_inlineAttributeKeys']['has'](_0x28569f);return _0x40b912||_0x3e8496;}['_reduceExistingSuggestions'](_0x3e34b1,_0x2d681f){if(0x0==_0x2d681f['length'])return!0x1;let _0x3a1922=!0x1;for(const _0x4ab99c of _0x2d681f){const _0x1d672a=this['_findSuggestions'](_0x4ab99c['range'],'attribute')['filter'](_0x24832c=>!_0x24832c['meta']['isNextTo'])['map'](_0x2b484b=>_0x2b484b['suggestion']),_0x121ec6=_0xf571a({'newValue':_0x4ab99c['newValue']});_0x1d672a['filter'](_0x33077f=>{const [_0xd413bf,_0x56b7fc]=_0x33077f['subType']['split']('|');return _0xd413bf==_0x4ab99c['key']&&_0x56b7fc!=_0x121ec6;})['forEach'](_0x3880f4=>{this['_reduceSuggestionAttributeRange'](_0x3880f4,_0x4ab99c['range'],_0x3e34b1),_0x3a1922=!0x0;});}return _0x3a1922;}['_reduceSuggestionAttributeRange'](_0xac78a4,_0x48b2d6,_0x5a29a5){const _0x35acd6=_0xac78a4['getFirstRange']()['getDifference'](_0x48b2d6);0x0!==_0x35acd6['length']?0x1!==_0x35acd6['length']?this['_breakSuggestionMarker'](_0xac78a4,_0x48b2d6['start'],_0x48b2d6['end']):this['_setSuggestionRange'](_0xac78a4,_0x35acd6[0x0]):_0x5a29a5['removeMarker'](_0xac78a4['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5a10e9){this['_editor']=_0x5a10e9,this['_model']=_0x5a10e9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x22d66f,_0x5a34e3,_0x1947ed,_0xec0ca7,_0x3e0da4,_0x1e35ef,_0xb99604){return new T(this['_model'],{'type':_0x22d66f,'subType':_0x5a34e3,'id':_0x1947ed,'originalSuggestionId':_0xb99604,'author':_0xec0ca7,'creator':_0xec0ca7,'attributes':_0x3e0da4,'onAttributesChange':_0x1e35ef,'onAccept':(..._0xde3a11)=>this['getSuggestionCallback'](_0x22d66f,_0x5a34e3,'accept')(..._0xde3a11),'onDiscard':(..._0x446d92)=>this['getSuggestionCallback'](_0x22d66f,_0x5a34e3,'discard')(..._0x446d92)});}['registerCustomCallback'](_0x12703b,_0x431128,_0x6435e1,_0x4072eb){const _0x4b2ec4=_0x12703b+':'+_0x431128+':'+_0x6435e1;this['_customCallbacks']['set'](_0x4b2ec4,_0x4072eb);}['getSuggestionCallback'](_0x31235c,_0x33d71a,_0x2d63f4){const _0x2dce6a=_0x31235c+':'+_0x33d71a+':'+_0x2d63f4;return this['_customCallbacks']['get'](_0x2dce6a)||this['_defaultCallbacks']['get'](_0x31235c+':'+_0x2d63f4);}['_registerDefaultCallbacks'](){const _0x3bc040=()=>!0x1,_0x37ce30=_0x4606d0=>{_0x4606d0['sort']((_0x2b0aac,_0x30e65c)=>_0x2b0aac['start']['isBefore'](_0x30e65c['start'])?0x1:-0x1),this['_model']['change'](_0x4f8948=>{for(const _0x3de9ae of _0x4606d0){let _0x337b26;_0x337b26=_0x3de9ae['end']['isAtEnd']&&_0x3de9ae['end']['parent']==_0x3de9ae['start']['nodeAfter']?_0x4f8948['createSelection'](_0x3de9ae['start']['nodeAfter'],'on'):_0x4f8948['createSelection'](_0x3de9ae),this['_model']['deleteContent'](_0x337b26,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x40c93d=(_0x19db38,_0x15f048)=>{_0x15f048&&this['_model']['change'](_0x19f23e=>{const {commandName:_0x1a6ae1,commandParams:_0x2371bf=[]}=_0x15f048,_0x5dd60a=_0x19db38['map'](_0x582dfe=>(Pt(_0x582dfe)&&(_0x582dfe=this['_model']['createRange'](_0x582dfe['end'])),_0x582dfe))['filter'](_0x19df4d=>'$graveyard'!==_0x19df4d['root']['rootName']);if(_0x5dd60a['length']<0x1)return;const _0x531ce2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x398d4d=>_0x2c8040['fromRange'](_0x398d4d));_0x19f23e['setSelection'](_0x5dd60a);for(const _0x21d1e4 of this['_editor']['commands']['commands']())_0x21d1e4['refresh']();_0x2371bf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1a6ae1,..._0x2371bf);const _0x34a6fc=_0x531ce2['filter'](_0x43e41b=>'$graveyard'!=_0x43e41b['root']['rootName']);_0x34a6fc['length']>0x0&&_0x19f23e['setSelection'](_0x34a6fc);for(const _0x51fa2a of _0x531ce2)_0x51fa2a['detach']();});},_0x3e9e1f=(_0x1072ce,_0x22917f)=>0x1==_0x1072ce['length']&&0x1==_0x22917f['length']&&_0x1072ce[0x0]['end']['isEqual'](_0x22917f[0x0]['start']),_0x4e6c49=(_0x21f6e9,_0x5507de,_0x342c65,_0x456927)=>zt(_0x21f6e9,_0x5507de,_0x342c65,_0x456927)?[_0x21f6e9,_0x5507de]:zt(_0x5507de,_0x21f6e9,_0x456927,_0x342c65)?[_0x5507de,_0x21f6e9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3bc040),this['_defaultCallbacks']['set']('insertion:discard',_0x37ce30),this['_defaultCallbacks']['set']('insertion:join',_0x3e9e1f),this['_defaultCallbacks']['set']('insertion:chain',_0x4e6c49),this['_defaultCallbacks']['set']('deletion:accept',_0x37ce30),this['_defaultCallbacks']['set']('deletion:discard',_0x3bc040),this['_defaultCallbacks']['set']('deletion:join',_0x3e9e1f),this['_defaultCallbacks']['set']('deletion:chain',_0x4e6c49),this['_defaultCallbacks']['set']('formatInline:accept',_0x40c93d),this['_defaultCallbacks']['set']('formatInline:discard',_0x3bc040),this['_defaultCallbacks']['set']('formatInline:join',_0x3e9e1f),this['_defaultCallbacks']['set']('formatInline:chain',_0x3bc040),this['_defaultCallbacks']['set']('formatBlock:accept',_0x40c93d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3bc040),this['_defaultCallbacks']['set']('formatBlock:join',_0x3e9e1f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3bc040),this['_defaultCallbacks']['set']('attribute:accept',_0x3bc040),this['_defaultCallbacks']['set']('attribute:discard',(_0x5ba043,_0x2807fd)=>{if(!_0x2807fd)return;const _0x36076e=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x32b1eb=>{if(_0x2807fd['key']==m)for(const _0x532177 of _0x5ba043){const _0x23ba7e=_0x532177['start']['nodeAfter'],_0x599a4c=_0x2807fd['oldValue'];_0x32b1eb['rename'](_0x23ba7e,_0x599a4c);}else{if(_0x36076e['_isBlockAttribute'](_0x2807fd['key'])){for(const _0x395e93 of _0x5ba043)void 0x0!==_0x2807fd['oldValue']?_0x32b1eb['setAttribute'](_0x2807fd['key'],_0x2807fd['oldValue'],_0x395e93['start']['nodeAfter']):_0x32b1eb['removeAttribute'](_0x2807fd['key'],_0x395e93['start']['nodeAfter']);}else{for(const _0x70ca54 of _0x5ba043)_0x2807fd['oldValue']?_0x32b1eb['setAttribute'](_0x2807fd['key'],_0x2807fd['oldValue'],_0x70ca54):_0x32b1eb['removeAttribute'](_0x2807fd['key'],_0x70ca54);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3e9e1f);}}function Ft(_0x42c64e,_0x317092,_0x4cd99a){for(const _0x5c0566 of _0x317092['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5c0566['root']==_0x5c0566)return!0x1;if(!_0x4cd99a['containsItem'](_0x5c0566))return!0x1;if(_0x42c64e['isObject'](_0x5c0566)||_0x42c64e['isLimit'](_0x5c0566))return!0x0;}return!0x1;}function Pt(_0x363b0f){return _0x363b0f['end']['parent']==_0x363b0f['start']['nodeAfter']&&_0x363b0f['end']['isAtStart'];}function Gt(_0x1baa0d,_0x1f12ec,_0x4b7665,_0x3d9cb7){const _0x1d7acd=_0x2411fc=>!_0x2411fc['item']['is']('$textProxy')&&!_0x3d9cb7['isObject'](_0x2411fc['item']),_0x46bf08=_0x1baa0d['start']['getLastMatchingPosition'](_0x1d7acd),_0x4ed2ff=_0x1baa0d['end']['getLastMatchingPosition'](_0x1d7acd,{'direction':'backward'});return(!_0x1baa0d['start']['isEqual'](_0x46bf08)||!_0x1baa0d['end']['isEqual'](_0x4ed2ff))&&(_0x46bf08['isBefore'](_0x4ed2ff)?_0x4b7665['updateMarker'](_0x1f12ec,{'range':_0x4b7665['createRange'](_0x46bf08,_0x4ed2ff)}):_0x4b7665['removeMarker'](_0x1f12ec),!0x0);}function Lt(_0x23964e){return _0xf571a(_0x23964e);}function Jt(_0x141439){const _0x254fd6=_0x141439['start']['nodeAfter'];return _0x254fd6&&_0x254fd6['is']('element');}function Kt(_0x37114f){return!Pt(_0x37114f)&&!function(_0x84e2f8){return _0x84e2f8['start']['parent']==_0x84e2f8['end']['nodeBefore']&&_0x84e2f8['start']['isAtEnd'];}(_0x37114f);}function Ht(_0x57d666,_0x1ed505){return null==_0x57d666['end']['nodeBefore']&&_0x57d666['end']['parent']==_0x57d666['start']['nodeAfter']?qt(_0x57d666['start']['nodeAfter'],_0x1ed505):_0x57d666;}function qt(_0x2e88ab,_0x371a36){const _0x530da5=_0x371a36['schema']['isObject'](_0x2e88ab)||_0x371a36['schema']['isSelectable'](_0x2e88ab);return _0x371a36['createRange'](_0x371a36['createPositionAt'](_0x2e88ab,'before'),_0x530da5?_0x371a36['createPositionAfter'](_0x2e88ab):_0x371a36['createPositionAt'](_0x2e88ab,'end'));}function zt(_0x87a12f,_0x9f9138,_0x4a9c82,_0x4a2993){return!!Wt(_0x87a12f,_0x9f9138)&&_0x4a9c82['end']['isEqual'](_0x4a2993['start']);}function Wt(_0x54f36b,_0x5e2fa6){if(!_0x54f36b['_isDataLoaded']||!_0x5e2fa6['_isDataLoaded'])return!0x1;const _0x2aad8f=new Set(Object['keys'](_0x54f36b['attributes'])),_0x2f551d=new Set(Object['keys'](_0x5e2fa6['attributes']));if(_0x2aad8f['delete']('groupId'),_0x2f551d['delete']('groupId'),0x0==_0x2aad8f['size']&&0x0==_0x2f551d['size'])return!0x0;if(_0x2aad8f['size']!=_0x2f551d['size'])return!0x1;const _0x3300e6={..._0x54f36b['attributes']},_0x2d6ca4={..._0x5e2fa6['attributes']};return delete _0x3300e6['groupId'],delete _0x2d6ca4['groupId'],JSON['stringify'](_0x3300e6)==JSON['stringify'](_0x2d6ca4);}function Qt(_0x4ad1f4,_0x3790ac){const _0x226220=Xt(_0x4ad1f4['attributes']),_0x45e095=Xt(_0x3790ac);if(!_0x4ad1f4['_isDataLoaded'])return!0x1;for(const _0x46406b of Object['keys'](_0x45e095))if(!_0x314b12(_0x226220[_0x46406b],_0x45e095[_0x46406b]))return!0x1;return!0x0;}function Xt(_0x3cc332){const _0x30d744=Object['assign']({},_0x3cc332);return delete _0x30d744['skipNestingCheck'],delete _0x30d744['tablePasteChainId'],_0x30d744;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x539e5e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x475f44,_0x35b6ea,_0x352e0f,_0xe34ad2){super(),this['model']=_0x35b6ea,this['view']=_0x352e0f,this['commentThreadController']=_0xe34ad2,this['_editor']=_0x475f44,this['_acceptCommand']=_0x475f44['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x475f44['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3d1ab1,_0x135fbd)=>_0x3d1ab1||_0x135fbd),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x211404=>_0x211404&&this['_editor']['model']['canEditAt'](_0x35b6ea['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1ead65=>_0x1ead65&&this['_editor']['model']['canEditAt'](_0x35b6ea['getRanges']())),this['_pendingAction']=null,_0x352e0f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x352e0f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x352e0f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x352e0f,'change:isDirty',()=>{_0x352e0f['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 _0x220ea7=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x220ea7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x9d102f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x13be2e,_0x2c4d8a,_0x507bee,_0xe7b34a){super(_0x13be2e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x21daff(_0x13be2e,o(_0x13be2e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2c4d8a['authoredAt']),this['bind']('authoredAt')['to'](_0x2c4d8a),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',_0x2c4d8a,'authoredAt',this,'descriptionParts',(_0x273f07,_0x2edcec,_0x3d7611)=>{const _0x360021=_0x3d7611['map'](_0x419026=>ls(_0x419026['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x273f07-0x1,_0x2c4d8a['author']['name'],_0x2edcec?_0xe7b34a['formatDateTime'](_0x2edcec):'',new DOMParser()['parseFromString'](_0x360021,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5e683b(),this['focusTracker']=new _0x35320d(),this['keystrokes']=new _0x97d3d4(),this['focusCycler']=new _0x2cabf5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x25f192=>_0x25f192['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2c4d8a,this['_localUser']=_0x507bee,this['_config']=_0xe7b34a,_0xe7b34a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x483e19(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3e52e3}=this['_config'];this['commentsListView']=new _0x3e52e3(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',_0x58a13e=>_0x58a13e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x58963b,_0x195b02)=>_0x58963b||!!_0x195b02);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x51ac66}=this['_config'],_0x3e857d=new _0x51ac66(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x98d367=_0x3e857d['commentInputView'];return _0x3e857d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x98d367,'value',(_0x24a628,_0x4ac388,_0x5c0254)=>!!_0x5c0254||_0x24a628&&!_0x4ac388),_0x98d367['on']('submit',(_0x234e94,_0xa960eb)=>{this['fire']('addComment',_0xa960eb),_0x98d367['editor']['setData']('');}),_0x98d367['on']('cancel',()=>this['focus']()),_0x98d367['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3e857d;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x4b1d5e,_0xc8d1d2,_0x5e75fd,_0x4a7035){super(_0x4b1d5e,_0xc8d1d2,_0x5e75fd,_0x4a7035),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x36103d=>_0x36103d&&_0x36103d[0x0]?_0x36103d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x519af7,_0x279eec)=>{let _0x277fea='';for(const _0x1b588c of _0x519af7)_0x277fea+='<p>'+ls(_0x1b588c['content'],_0x1b588c['color'])+'</p>';return _0x279eec?_0x277fea:_0x4b18e1(_0x277fea,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4a7035['SuggestionView'](_0x4b1d5e,_0xc8d1d2,{'formatDateTime':_0x4a7035['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 _0x1787a5=this['bindTemplate'],_0x5d1031=[this['suggestionView']];return this['commentsListView']&&_0x5d1031['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5d1031['push'](this['commentThreadInputView']),_0x5d1031['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1787a5['if']('isActive','ck-suggestion-wrapper--active'),_0x1787a5['to']('type',_0x529b46=>'ck-suggestion-'+_0x529b46),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':_0x1787a5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5d1031};}['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 _0x9d102f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5a951f,_0x1e7798,_0x576040){super(_0x5a951f),this['_model']=_0x1e7798,this['_config']=_0x576040,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1e7798),this['acceptButton']=this['_createButton'](o(_0x5a951f,'Accept\x20suggestion'),_0x49279f,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5a951f,'Discard\x20suggestion'),_0x20acdc,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x29479d(_0x5a951f,_0x1e7798['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5e683b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x35320d(),this['keystrokes']=new _0x97d3d4(),this['focusCycler']=new _0x2cabf5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x21bc33=>_0x21bc33['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3614e0=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3614e0['innerHTML']=this['description'],this['on']('change:description',(_0x1463d9,_0x374722,_0x23d3ab)=>{_0x3614e0['innerHTML']=_0x23d3ab;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3b99e2=this['bindTemplate'],_0x36d4e9=[{'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':_0x3b99e2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3b99e2['to']('authoredAt',_0x49215a=>this['_config']['formatDateTime'](_0x49215a))}]}]},{'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']&&_0x36d4e9['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':_0x36d4e9}]};}['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'](_0x5ba39b,_0x17190e,_0x4d0e71,_0x35310f,_0xdede2d){const _0x318eef=new _0x45789c(this['locale']);return _0x318eef['set']({'label':_0x5ba39b,'icon':_0x17190e,'tooltip':!0x0,'tooltipPosition':_0xdede2d}),_0x318eef['extendTemplate']({'attributes':{'class':_0x4d0e71}}),_0x318eef['on']('execute',()=>{this['fire'](_0x35310f,this['_model']['id']);}),_0x318eef;}['_setupKeyboardNavigation'](){const _0x2f6b0b=this['element'];this['keystrokes']['listenTo'](_0x2f6b0b);for(const _0x41b90c of this['focusables'])this['focusTracker']['add'](_0x41b90c['element']),this['keystrokes']['listenTo'](_0x41b90c['element']);this['keystrokes']['set']('enter',(_0x87fbf7,_0x262f1b)=>{_0x2f6b0b===_0x87fbf7['target']&&(this['focusCycler']['focusFirst'](),_0x262f1b());}),this['keystrokes']['set']('esc',(_0x3b199e,_0x287c55)=>{_0x2f6b0b!==_0x3b199e['target']&&(this['focus'](),_0x287c55());});}}class u extends _0x17edf8{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1eefc0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x447577){super(_0x447577),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5f405a=this['editor']['config'];_0x5f405a['define']('trackChanges.SuggestionThreadView',fe),_0x5f405a['define']('trackChanges.SuggestionView',we),_0x5f405a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5f405a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x8fdb34,_0x422596){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x82494,_0x501bc0]of this['_handleControllerBuffer']){const _0x186400=this['_suggestionToController']['has'](_0x82494);_0x186400||_0x501bc0?_0x186400&&_0x501bc0&&this['_destroyController'](_0x82494):this['_initializeController'](_0x82494);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x8fdb34,_0x422596);}['init'](){const _0x391aac=this['editor'],_0x1f9b49=_0x391aac['plugins']['get']('TrackChangesEditing'),_0x475158=_0x391aac['plugins']['get']('Annotations'),_0x384eb5=_0x391aac['plugins']['get']('EditorAnnotations'),_0x268656=_0x391aac['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x384eb5['addSourceCollector'](()=>{const _0x5d957e=[];for(const [_0x5ac2c4,_0x5d024e]of Array['from'](this['_suggestionToController'])){const _0x59916e=_0x5ac2c4['getAllAdjacentSuggestions'](),_0x2a9d02=[];for(const _0x38de06 of _0x59916e){if(!_0x38de06['isInContent'])continue;if(_0x38de06['isMultiRange']){_0x2a9d02['push'](..._0x38de06['getRanges']());continue;}const _0x38a57b=_0x38de06['getFirstRange']();if(_0x2a9d02['length']>0x0){const _0x5ac9ac=_0x2a9d02[0x0]['getJoined'](_0x38a57b);if(_0x5ac9ac){_0x2a9d02[0x0]=_0x5ac9ac;continue;}}_0x2a9d02['push'](_0x38a57b);}_0x5d957e['push']([_0x5d024e['view'],_0x2a9d02]);}return _0x5d957e;}),this['listenTo'](_0x1f9b49,'suggestionLoaded',(_0x2872c6,_0x2eb1c0)=>{this['listenTo'](_0x2eb1c0,'change:previous',(_0x3ef3d0,_0x50de2f,_0x3f6357,_0x33f7c2)=>{_0x2eb1c0['isInContent']&&(null==_0x3f6357?(this['_updateController'](_0x33f7c2['head']),this['_handleSuggestionControllerDelayed'](_0x2eb1c0,!0x1)):(this['_updateController'](_0x3f6357['head']),null==_0x33f7c2&&this['_handleSuggestionControllerDelayed'](_0x2eb1c0,!0x0)));}),null!==_0x2eb1c0['previous']?this['_updateController'](_0x2eb1c0['head']):this['_handleSuggestionControllerDelayed'](_0x2eb1c0,!0x1);}),this['listenTo'](_0x1f9b49,'suggestionUnloaded',(_0x2d6e2e,_0x2e45d1,_0x5bdaa8)=>{this['stopListening'](_0x2e45d1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2e45d1),this['_suggestionToController']['has'](_0x2e45d1)&&this['_destroyController'](_0x2e45d1),_0x5bdaa8&&this['_updateController'](_0x5bdaa8['head']);}),this['listenTo'](_0x1f9b49,'suggestionChanged',(_0x1c6b26,_0x4da1e1)=>{this['_updateController'](_0x4da1e1);}),this['listenTo'](_0x475158,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x268656,'addComment',(_0x4fbc76,{threadId:_0x146b0b,isFromAdapter:_0x539909})=>{if(_0x539909||!_0x1f9b49['hasSuggestion'](_0x146b0b))return;const _0x49fab6=_0x1f9b49['getSuggestion'](_0x146b0b);this['_suggestionToController']['get'](_0x49fab6)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1368b1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x57c01f;for(const _0x370787 in _0x1368b1){const _0x437d3a=_0x370787,_0x29708f=_0x1368b1[_0x437d3a];if('trackChangesLicenseKeyValid'==_0x29708f||'trackChangesLicenseKeyInvalid'==_0x29708f||'trackChangesLicenseKeyExpired'==_0x29708f||'trackChangesLicenseKeyDomainLimit'==_0x29708f||'trackChangesLicenseKeyNotAllowed'==_0x29708f||'trackChangesLicenseKeyEvaluationLimit'==_0x29708f||'trackChangesLicenseKeyTrialLimit'==_0x29708f||'trackChangesLicenseKeyUsageLimit'==_0x29708f){delete _0x1368b1[_0x437d3a],_0x57c01f=_0x29708f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x57c01f&&_0x1368b1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x57c01f&&_0x1368b1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x57c01f&&_0x1368b1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x57c01f&&_0x1368b1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x57c01f&&_0x1368b1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x57c01f&&_0x1368b1['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x57c01f&&_0x1368b1['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x56a75a){const _0x504fc6=this['_suggestionToController']['get'](_0x56a75a);if(!_0x504fc6)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x504fc6['view'])||null;}['getSuggestionForAnnotation'](_0x764fb6){const _0x1edf0f=this['_viewToController']['get'](_0x764fb6['innerView']);return _0x1edf0f?_0x1edf0f['model']:null;}['_refreshActiveMarkers'](){const _0x27ae99=this['editor']['plugins']['get']('Annotations'),_0x5ce9de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1deb4b=Array['from'](_0x27ae99['activeAnnotations'],_0x4d0323=>_0x4d0323['innerView'])['filter'](_0x4d7645=>this['_viewToController']['has'](_0x4d7645)),_0x1fec62=[];for(const _0x227b86 of _0x1deb4b){const _0x287ffa=this['_viewToController']['get'](_0x227b86)['model']['getAllAdjacentSuggestions']();_0x1fec62['push'](..._0x287ffa['reduce']((_0x413e99,_0x4f2f6e)=>[..._0x413e99,..._0x4f2f6e['getMarkerNames']()],[]));}_0x5ce9de['activeMarkers']=_0x1fec62;}['_addUIComponentsToFactory'](){const _0x475562=this['editor'],_0x4c0d65=_0x475562['locale'],_0x22af8d=o(_0x4c0d65,'Track\x20changes'),_0x4daf2e=new _0xb05dfe([{'type':'switchbutton','model':new _0xeebce4({'withText':!0x0,'isToggleable':!0x0,'label':_0x22af8d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xeebce4({'withText':!0x0,'label':o(_0x4c0d65,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xeebce4({'withText':!0x0,'label':o(_0x4c0d65,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xeebce4({'withText':!0x0,'label':o(_0x4c0d65,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xeebce4({'withText':!0x0,'label':o(_0x4c0d65,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x475562['plugins']['has']('TrackChangesPreview')&&_0x4daf2e['addMany']([{'type':'separator'},{'type':'button','model':new _0xeebce4({'withText':!0x0,'label':o(_0x4c0d65,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x24216c of _0x4daf2e)if(ke(_0x24216c)){const _0x50814d=_0x475562['commands']['get'](_0x24216c['model']['commandName']);_0x24216c['model']['bind']('isOn','isEnabled')['to'](_0x50814d,'value','isEnabled');}_0x475562['ui']['componentFactory']['add']('trackChanges',_0x4a76e6=>this['_createToolbarButton'](_0x4a76e6,_0x4daf2e,_0x22af8d)),_0x475562['ui']['componentFactory']['add']('menuBar:trackChanges',_0x790541=>this['_createMenuBarMenu'](_0x790541,_0x4daf2e,_0x22af8d));}['_createToolbarButton'](_0xf539ae,_0x367a63,_0x4c4e0c){const _0x35fbb1=_0x41cda3(_0xf539ae,_0x21bdc8),_0x304198=this['editor']['commands']['get']('trackChanges');_0x35fbb1['buttonView']['set']({'tooltip':_0x4c4e0c,'label':_0x4c4e0c,'icon':_0x5b0a13}),_0x35fbb1['buttonView']['bind']('isOn')['to'](_0x304198,'value'),_0x35fbb1['buttonView']['on']('execute',()=>{_0x304198['execute'](),this['editor']['editing']['view']['focus']();}),_0x1cf122(_0x35fbb1,_0x367a63,{'role':'menu'});const _0x320624=[];for(const _0x244aa9 of _0x367a63)ke(_0x244aa9)&&_0x320624['push'](this['editor']['commands']['get'](_0x244aa9['model']['commandName']));const _0xc5613f=_0x35fbb1['buttonView'];return _0xc5613f['actionView']['unbind']('isEnabled'),_0xc5613f['arrowView']['unbind']('isEnabled'),_0xc5613f['actionView']['bind']('isEnabled')['to'](_0x304198,'isEnabled'),_0xc5613f['arrowView']['bind']('isEnabled')['toMany'](_0x320624,'isEnabled',(..._0xc4f036)=>_0xc4f036['some'](_0x3fa623=>_0x3fa623)),_0x35fbb1['on']('execute',_0x286dde=>{this['editor']['execute'](_0x286dde['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x35fbb1;}['_createMenuBarMenu'](_0x4b4a95,_0x1f3e74,_0x39fa56){const _0x1c6c28=new _0xaa3912(_0x4b4a95),_0xced540=this['editor']['commands']['get']('trackChanges');_0x1c6c28['buttonView']['set']({'label':_0x39fa56,'icon':_0x5b0a13});const _0x21557b=new _0x5ca14d(_0x4b4a95);for(const _0x54d228 of _0x1f3e74){if('separator'==_0x54d228['type']){_0x21557b['items']['add'](new _0x33fd38(_0x4b4a95));continue;}const _0x4fd568=new _0x5ba698(_0x4b4a95,_0x1c6c28),_0x141d15=new _0xfe6b82(_0x4b4a95),_0x17d265=_0x54d228['model'];_0x141d15['bind'](...Object['keys'](_0x17d265))['to'](_0x17d265),_0x141d15['delegate']('execute')['to'](_0x1c6c28),_0x141d15['on']('execute',()=>{this['editor']['execute'](_0x17d265['commandName']),this['editor']['editing']['view']['focus']();}),_0x4fd568['children']['add'](_0x141d15),_0x21557b['items']['add'](_0x4fd568);}return _0x1c6c28['bind']('isEnabled')['to'](_0xced540,'isEnabled'),_0x1c6c28['panelView']['children']['add'](_0x21557b),_0x1c6c28;}['_initializeController'](_0x356a31){const _0x51a58d=this['editor'],_0x4dfb37=_0x51a58d['config'],_0x3a13df=_0x51a58d['plugins']['get']('Annotations'),_0x3451d4=_0x51a58d['plugins']['get']('CommentsRepository'),_0x3a55c7=_0x51a58d['plugins']['get']('EditorAnnotations'),_0x2bc852=_0x51a58d['plugins']['get'](_0x1eefc0)['me'],_0x3b4f54=_0x4dfb37['get']('trackChanges')['SuggestionThreadView'],_0x12864a=_0x4dfb37['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4d99c2,CommentThreadInputView:_0x49e1aa}=_0x51a58d['plugins']['get']('CommentsUI');let _0x25ebcf,_0x159d84,_0xce6c0e;this['_annotationViews']['has'](_0x356a31['id'])?(_0x159d84=this['_annotationViews']['get'](_0x356a31['id']),_0x25ebcf=_0x159d84['mainView']):(_0x25ebcf=new _0x3b4f54(_0x51a58d['locale'],_0x356a31,_0x2bc852,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4dfb37['get']('comments.editorConfig'),'licenseKey':_0x4dfb37['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4dfb37['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4dfb37['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4dfb37['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2b9b70(_0x4dfb37['get']('locale'),_0x51a58d['locale']),'CommentView':_0x4dfb37['get']('comments')['CommentView'],'CommentsListView':_0x4d99c2,'CommentThreadInputView':_0x49e1aa,'SuggestionView':_0x12864a}),_0x25ebcf['suggestionView']['acceptButton']['on']('execute',()=>{_0x51a58d['editing']['view']['focus']();}),_0x25ebcf['suggestionView']['discardButton']['on']('execute',()=>{_0x51a58d['editing']['view']['focus']();}),_0x159d84=_0x3a13df['createAnnotationView'](this['editor']['locale'],_0x25ebcf),_0x159d84['bind']('isDirty')['to'](_0x25ebcf,'isDirty'),_0x159d84['bind']('length')['to'](_0x25ebcf),_0x159d84['bind']('type')['to'](_0x25ebcf,'type',_0x3fb717=>'suggestion-'+_0x3fb717),_0x25ebcf['on']('escape',()=>{_0xce6c0e['fire']('escape');}),this['_annotationViews']['set'](_0x356a31['id'],_0x159d84));const _0x1cf744=_0x3451d4['createCommentThreadController'](_0x356a31['commentThread'],_0x25ebcf),_0x138c26=new pe(_0x51a58d,_0x356a31,_0x25ebcf,_0x1cf744),_0x56f2b0=_0x356a31['getAllAdjacentSuggestions']()['filter'](_0x31d728=>_0x31d728['isInContent']);_0x25ebcf['descriptionParts']=_0x51a58d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x56f2b0),this['_suggestionToController']['set'](_0x356a31,_0x138c26),this['_viewToController']['set'](_0x25ebcf,_0x138c26),_0xce6c0e=_0x3a13df['createAnnotation']({'view':_0x159d84,'target':()=>{const _0x43472e=[],_0x17ce26=_0x356a31['getAllAdjacentSuggestions']()['filter'](_0x42dedf=>_0x42dedf['isInContent']);for(const _0x273f97 of _0x17ce26)_0x43472e['push'](..._0x273f97['getMarkers']());return _0x5e3b66(_0x51a58d['editing'],_0x43472e);},'type':()=>'suggestion-'+_0x138c26['view']['type']}),_0x3451d4['_bindAnnotationToEditors'](_0x25ebcf,_0xce6c0e),_0x3a13df['add'](_0xce6c0e),_0x3a55c7['registerAnnotation'](_0xce6c0e);}['_destroyController'](_0x4f3c88){const _0x24f1cb=this['editor']['plugins']['get']('CommentsRepository'),_0x2f108f=this['editor']['plugins']['get']('Annotations'),_0x4f6fcd=this['_suggestionToController']['get'](_0x4f3c88),_0x55d843=_0x4f6fcd['view'],_0x419da5=_0x2f108f['getByInnerView'](_0x55d843);_0x24f1cb['_unbindEditors'](_0x55d843),_0x419da5&&_0x2f108f['remove'](_0x419da5),this['_suggestionToController']['delete'](_0x4f3c88),this['_viewToController']['delete'](_0x55d843),_0x4f6fcd['destroy']();}['_updateController'](_0x4932e0){if(!_0x4932e0['isInContent']||!this['_suggestionToController']['has'](_0x4932e0))return;const _0x180790=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a8bf4=this['_suggestionToController']['get'](_0x4932e0),_0x4215e6=_0x4932e0['getAllAdjacentSuggestions']();_0x4a8bf4['view']['descriptionParts']=_0x180790['descriptionFactory']['getDescriptions'](_0x4215e6);}['destroy'](){for(const _0x102d85 of this['_suggestionToController']['keys']())this['_destroyController'](_0x102d85);for(const _0x4f09a5 of this['_annotationViews']['values']())_0x4f09a5['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x34cde5){return'model'in _0x34cde5;}class Fe extends _0x17edf8{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2d570e){this['editor']['plugins']['get'](d)['adapter']=_0x2d570e;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x36794e){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x36794e);}['getSuggestions']({skipNotAttached:_0x349a9d=!0x1,toJSON:_0x1831cd=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x349a9d,'toJSON':_0x1831cd});}['getSuggestion'](_0x4cab9d){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4cab9d);}}const p=['Pagination'];class re extends _0x17edf8{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x37c930=this['editor'];if(_0x37c930['config']['define']('trackChangesData.editorCreator',_0x28f8cb=>{const _0x76518=_0x37c930['model']['document']['getRootNames']()['reduce']((_0x2853ca,_0x16ee13)=>(_0x2853ca[_0x16ee13]='',_0x2853ca),{});return _0x37c930['constructor']['create'](_0x76518,_0x28f8cb);}),'function'!=typeof _0x37c930['config']['get']('trackChangesData')['editorCreator'])throw new _0x2cc94b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x354e39){return P(this['editor'],!0x0,_0x354e39);}['getDataWithDiscardedSuggestions'](_0xf95c78){return P(this['editor'],!0x1,_0xf95c78);}}class Ge extends _0x17edf8{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a1d63){function _0x26e5e3(_0x24300e){return _0x24300e['map'](_0x56cd42=>String['fromCharCode'](_0x56cd42))['join']('');}super(_0x1a1d63),this['result']='end',_0x1a1d63[_0x26e5e3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26e5e3([0x76,0x69,0x65,0x77])][_0x26e5e3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26e5e3([0x61,0x75,0x74,0x6f]),_0x1a1d63[_0x26e5e3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x26e5e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26e5e3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x26e5e3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x26e5e3([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 $e(_0x21b8cd){return void 0x0!==_0x21b8cd['getRootsAttributes'];}async function P(_0x3422f7,_0x31373d,_0x10a432){const _0x1180af=_0xbb136c(_0x3422f7,p);_0x1180af['plugins']['push'](d,Ge),_0x1180af['rootsAttributes']=$e(_0x3422f7)?_0x3422f7['getRootsAttributes']():void 0x0;const _0x402c82=document['createDocumentFragment'](),_0x5ac3ef=_0x3422f7['config']['get']('trackChangesData')['editorCreator'],_0x3d641f=await _0x5ac3ef(_0x1180af,()=>function(_0x828403){const _0x1543d6=document['createElement']('div');return _0x828403['appendChild'](_0x1543d6),_0x1543d6;}(_0x402c82));!function(_0x4cefdd,_0x3a78d){const _0x9129a1=_0x4cefdd['model']['document']['getRootNames']()['reduce']((_0x2c3c4d,_0x434bf7)=>(_0x2c3c4d[_0x434bf7]=_0x4cefdd['data']['get']({'rootName':_0x434bf7}),_0x2c3c4d),{}),_0x127898=_0x4cefdd['plugins']['get']('Users')['users']['map'](_0xa95b7=>({'id':_0xa95b7['id'],'name':_0xa95b7['name']})),_0x2a896a=_0x4cefdd['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x33e5e1=_0x4cefdd['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2527b7=_0x3a78d['plugins']['get']('Users'),_0x465b36=_0x3a78d['plugins']['get']('TrackChangesEditing'),_0x50a3de=_0x3a78d['plugins']['get']('CommentsRepository');for(const _0x1064f5 of _0x50a3de['getCommentThreads']())_0x1064f5['remove']();for(const _0x2a7f5e of _0x127898)_0x2527b7['getUser'](_0x2a7f5e['id'])||_0x2527b7['addUser'](_0x2a7f5e);_0x2527b7['me']||_0x2527b7['useAnonymousUser']();for(const _0x3361c3 of _0x33e5e1)_0x50a3de['addCommentThread'](_0x3361c3);for(const _0x3c64b4 of _0x2a896a)_0x465b36['addSuggestionData'](_0x3c64b4);_0x3a78d['data']['set'](_0x9129a1);}(_0x3422f7,_0x3d641f),_0x3d641f['execute'](_0x31373d?'acceptAllSuggestions':'discardAllSuggestions');const _0x11c5bd=$e(_0x3d641f)?_0x3d641f['getFullData'](_0x10a432):_0x3d641f['data']['get'](_0x10a432);return await _0x3d641f['destroy'](),_0x11c5bd;}class Me extends _0x9d102f{['options'];constructor(_0x19340c,_0x38c600){super(_0x19340c),this['options']=_0x38c600,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'](_0x3ecc62,_0xee6189){if(!this['element'])return;const _0x3825de=[];for(const [_0x38a713,_0xc69299]of _0x3ecc62){const _0x5d8392=document['createElement']('div');_0x5d8392['setAttribute']('data-ck-root-name',_0x38a713),_0x5d8392['className']=_0xc69299['classes']+'\x20ck-track-changes-preview__root-container',_0x5d8392['innerHTML']=_0xc69299['content'],_0x3825de['push'](_0x5d8392);}_0xee6189(this['element'],_0x3825de),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x9748dc{constructor(_0xd711c0){super(_0xd711c0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x40326c=this['editor'],_0x349112=_0x40326c['locale'],_0x36d78e=_0x40326c['plugins']['get']('Dialog');let _0x20168b;const _0x572b6d=function(_0x8934d4){const _0x2e0130={};if('editables'in _0x8934d4['ui']['view']){for(const [_0x28abc6,_0xa4e7e2]of Object['entries'](_0x8934d4['ui']['view']['editables']))_0x2e0130[_0x28abc6]=_0xa4e7e2['element'];}else _0x2e0130[_0x8934d4['model']['document']['getRootNames']()[0x0]]=_0x8934d4['ui']['view']['editable']['element'];return _0x2e0130;}(_0x40326c),_0x4af013=function(_0x34c0a9){let _0x4457dc=0x0;for(const _0x5a398c of Object['values'](_0x34c0a9))_0x4457dc=Math['max'](_0x4457dc,_0x5a398c['getBoundingClientRect']()['width']);let _0x2fade6=0x0;for(const _0x2b131a of Object['values'](_0x34c0a9))_0x2fade6+=_0x2b131a['getBoundingClientRect']()['height'];const _0x4c0a40=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4768b2=Math['min'](_0x2fade6,_0x4c0a40);return{'width':_0x4457dc,'height':_0x4768b2};}(_0x572b6d);_0x36d78e['show']({'id':'finalContentPreview','title':o(_0x349112,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x349112,{'dialogRects':_0x4af013}),'onHide':()=>{_0x20168b['detachFromDom']();},'onShow':()=>{_0x40326c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x403878=>{const _0x16c577=this['_standarizeRootsData'](_0x403878,_0x40326c,_0x572b6d);_0x36d78e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x16c577,_0x40326c['config']['get']('trackChanges.preview.renderFunction'));}),_0x20168b=new _0xf78c2(_0x349112,[_0x36d78e['view']]),_0x20168b['attachToDom'](),_0x20168b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x40326c['once']('destroy',()=>{_0x20168b['detachFromDom']();});const _0x7cb152=_0x36d78e['view']['headerView']['class'];_0x36d78e['view']['headerView']['class']=_0x7cb152?_0x7cb152+'\x20ck-reset_all':'ck-reset_all',_0x36d78e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x36d78e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x40d5cc=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x22a9bd=_0x40d5cc['previewMode'],_0x58cd97={};if('$labels'===_0x22a9bd){for(const _0x38b022 of _0x40d5cc['getMergeFieldsIds']())_0x58cd97[_0x38b022]=_0x40d5cc['getLabel'](_0x38b022)||_0x38b022;}else{const _0x5ae3e2='$defaultValues'===_0x22a9bd?_0x40d5cc['getDefaultValues']():_0x40d5cc['getDataSetValues'](_0x22a9bd,!0x0);for(const _0x59ec44 of Object['entries'](_0x5ae3e2)){const [_0xa39c70,_0x323473]=_0x59ec44;_0x58cd97[_0xa39c70]=null!==_0x323473?_0x323473:_0x40d5cc['getLabel'](_0xa39c70)||_0xa39c70;}}return{'mergeFieldsData':_0x58cd97};}['_standarizeRootsData'](_0x467b76,_0x504739,_0x2e202f){let _0x4297e7;if('string'==typeof _0x467b76){const _0x132c9d=_0x504739['model']['document']['getRootNames']()[0x0];_0x4297e7={[_0x132c9d]:_0x467b76};}else _0x4297e7=_0x467b76;const _0x4c975c=this['_fixMediaEmbeds'](_0x4297e7,_0x504739),_0x106388=function(_0x2ef600,_0x2c8ec6){for(const [_0x2c377f,_0x36940a]of _0x2ef600)_0x36940a['classes']=_0x2c8ec6[_0x2c377f]['classList']['value']['replace']('ck-focused','');return _0x2ef600;}(this['_sortRoots'](_0x504739)['reduce']((_0x2c467e,_0xea9d10)=>(_0x2c467e['push']([_0xea9d10,{'content':_0x4c975c[_0xea9d10],'classes':''}]),_0x2c467e),[]),_0x2e202f);return _0x106388;}['_fixMediaEmbeds'](_0x434060,_0x39108c){if(!_0x39108c['plugins']['has']('MediaEmbedEditing'))return _0x434060;const _0x9346a7=_0x39108c['plugins']['get']('MediaEmbedEditing');for(const [_0x3b2108,_0x3879c6]of Object['entries'](_0x434060)){const _0x3cce61=document['createElement']('div');_0x3cce61['innerHTML']=_0x3879c6,(_0x3cce61['querySelectorAll']('figure.media')['forEach'](_0x9b9593=>{const _0x236472=_0x9b9593['querySelector']('oembed');if(_0x236472){const _0x2933b6=_0x236472['getAttribute']('url');if(_0x2933b6){const _0x327e6e=_0x9346a7['registry']['getMediaViewElement'](new _0x410750(_0x39108c['editing']['view']['document']),_0x2933b6,{'elementName':'','renderForEditingView':!0x0}),_0xf66977=document['createElement']('div');_0xf66977['classList']['add']('ck-media__wrapper'),_0x327e6e['render'](_0xf66977,_0x39108c['editing']['view']['domConverter']),_0x236472['replaceWith'](_0xf66977);}}}),_0x434060[_0x3b2108]=_0x3cce61['innerHTML']);}return _0x434060;}['_sortRoots'](_0x17e121){if(!function(_0x20d591){return void 0x0!==_0x20d591['getRootsAttributes'];}(_0x17e121))return _0x17e121['model']['document']['getRootNames']();const _0x4343e8=[],_0x6e9cb3=new Map();for(const _0x45b3e5 of _0x17e121['model']['document']['getRootNames']()){const _0x348760=_0x17e121['editing']['view']['getDomRoot'](_0x45b3e5)['getClientRects']()['item'](0x0);_0x4343e8['push'](_0x45b3e5),_0x6e9cb3['set'](_0x45b3e5,_0x348760);}return _0x4343e8['sort']((_0x4bd4be,_0x249885)=>{const _0x4e45d3=_0x6e9cb3['get'](_0x4bd4be),_0x5d916d=_0x6e9cb3['get'](_0x249885);return _0x4e45d3['y']-_0x5d916d['y']||_0x4e45d3['x']-_0x5d916d['x'];}),_0x4343e8;}}class He extends _0x17edf8{static get['requires'](){return[re,_0x212621];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e7c3c){super(_0x2e7c3c),_0x2e7c3c['commands']['add']('previewFinalContent',new te(this['editor'])),_0x2e7c3c['config']['define']('trackChanges.preview.renderFunction',(_0x31749b,_0x1e45c2)=>{for(const _0xa94ed1 of _0x1e45c2)_0x31749b['appendChild'](_0xa94ed1);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
23
+ import{Command as _0x3ce43f,Plugin as _0x519785,PendingActions as _0x2a689b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5cecf6,ObservableMixin as _0x2f7706,uid as _0x19694d,priorities as _0x57c570,insertToPriorityArray as _0x4f17a4,toArray as _0x2b7eab,logWarning as _0xc05f79,getEnvKeystrokeText as _0x206b69,FocusTracker as _0x513954,KeystrokeHandler as _0x3f6c83,Collection as _0x221f2c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x163398,IconCancel as _0x4dad76,IconTrackChanges as _0x1c1625}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1031d7,View as _0x33a1b7,ViewCollection as _0x2a00df,FocusCycler as _0x3288bf,UIModel as _0x5bd144,createDropdown as _0x2851f4,SplitButtonView as _0x463226,addListToDropdown as _0x50583c,MenuBarMenuView as _0x39293e,MenuBarMenuListView as _0x42ef81,ListSeparatorView as _0x179721,MenuBarMenuListItemView as _0x49d588,MenuBarMenuListItemButtonView as _0x377c54,BodyCollection as _0x31f2fe,Dialog as _0xd32161}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3141dd,hashObject as _0x2d1cfb,surroundingMarkersDetector as _0x927f42,FOCUS_ANNOTATION_KEYSTROKE as _0x48270c,AriaDescriptionView as _0x29e999,setupThreadKeyboardNavigation as _0x4a448c,trimHtml as _0x4c24c5,UserView as _0x10a06d,LateFocusButtonView as _0x57cb20,getDateTimeFormatter as _0xcf14d9,getAllMarkersDomElementsSorted as _0x54ca32,sanitizeEditorConfig as _0x4bb27a}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x860346,ModelLiveRange as _0x45518e,ModelLivePosition as _0x25db75,ViewDowncastWriter as _0xdb61c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x55ab0b,toWidget as _0x7c41fb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x312db7,set as _0x4c330a,isEqual as _0x4e9274,unset as _0x4fb041,omit as Ut}from'es-toolkit/compat';import{Delete as _0x4fa260,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x40d804}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x182772}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x3ce43f{['_enabledCommands'];constructor(_0x41767e,_0x445eb0){super(_0x41767e),this['_enabledCommands']=_0x445eb0,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 _0x2cb803 of this['editor']['commands']['commands']())_0x2cb803['affectsData']&&!this['_enabledCommands']['has'](_0x2cb803)&&_0x2cb803['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2ef945 of this['editor']['commands']['commands']())_0x2ef945['affectsData']&&!this['_enabledCommands']['has'](_0x2ef945)&&_0x2ef945['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x3ce43f{['_suggestions'];constructor(_0x36ebac,_0xbc0c38){super(_0x36ebac),this['_suggestions']=_0xbc0c38,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2720d7){const _0x346190=this['_suggestions']['get'](_0x2720d7);if(!_0x346190)throw new _0x5cecf6('track-changes-accept-suggestion-not-found',this);const _0x32a7a3=_0x346190['getRanges']();this['editor']['model']['canEditAt'](_0x32a7a3)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x346190);}}class M extends _0x3ce43f{['_suggestions'];constructor(_0x30c8b5,_0x3e9a3b){super(_0x30c8b5),this['_suggestions']=_0x3e9a3b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5737d2){const _0xa43bda=this['_suggestions']['get'](_0x5737d2);if(!_0xa43bda)throw new _0x5cecf6('track-changes-discard-suggestion-not-found',this);const _0x2df597=_0xa43bda['getRanges']();this['editor']['model']['canEditAt'](_0x2df597)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xa43bda);}}function ls(_0x12e24a,_0x4c28be){let _0x4ded29='';return _0x4ded29+=_0x12e24a['split']('*')['map']((_0x130f75,_0x14dd9b)=>_0x14dd9b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x130f75)+'</span>':Yt(_0x130f75))['join'](''),_0x4c28be&&(_0x4ded29+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4c28be['value']+'\x22\x20title=\x22'+_0x4c28be['title']+'\x22></span>'),_0x4ded29;}function Yt(_0x12d1cb){const _0x14c245=document['createElement']('span');return _0x14c245['innerText']=_0x12d1cb,_0x14c245['innerHTML'];}function ts(_0x2238b5){return _0x2238b5['sort']((_0x2d1949,_0x24e8db)=>'attribute'===_0x2d1949['type']&&'attribute'!==_0x24e8db['type']?-0x1:'attribute'!==_0x2d1949['type']&&'attribute'===_0x24e8db['type']?0x1:'deletion'==_0x2d1949['type']&&'deletion'!=_0x24e8db['type']?-0x1:'deletion'!=_0x2d1949['type']&&'deletion'==_0x24e8db['type']?0x1:0x0);}function to(_0x59bc9c,_0x4df848){let _0x216d59,_0x1a7677=0x0;const _0x3945c9=[],_0x3b490c=_0x4df848['schema'];for(;_0x1a7677<_0x59bc9c['length'];){const _0x15db75=_0x59bc9c[_0x1a7677],_0x13de79=_0x59bc9c[_0x1a7677+0x1];_0x216d59||(_0x216d59=_0x4df848['createPositionBefore'](_0x15db75)),Zt(_0x4df848,_0x15db75,_0x13de79)||(_0x3945c9['push'](_0x4df848['createRange'](_0x216d59,_0x3b490c['isObject'](_0x15db75)?_0x4df848['createPositionAfter'](_0x15db75):_0x4df848['createPositionAt'](_0x15db75,'end'))),_0x216d59=null),_0x1a7677++;}return _0x3945c9;}function Zt(_0x5168e2,_0x4c04ae,_0x87f46b){if(!_0x87f46b)return!0x1;const _0x27ac36=_0x5168e2['createPositionAfter'](_0x4c04ae),_0x3f9089=_0x5168e2['createPositionBefore'](_0x87f46b);return _0x27ac36['isTouching'](_0x3f9089);}function rs(_0xa21ebe,_0x412f1a,_0x13682b){for(;_0x13682b['length'];){const _0xf76c6d=_0x13682b['splice'](0x0,0x64);_0xa21ebe['change'](()=>{for(const _0x6cc76b of _0xf76c6d)_0x6cc76b['isInContent']&&_0x412f1a['execute'](_0x6cc76b['id']);});}}class $ extends _0x3ce43f{['_command'];['_suggestions'];constructor(_0xb46600,_0x292e40,_0x129a59){super(_0xb46600),this['_command']=_0x292e40,this['_suggestions']=_0x129a59,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x27c1a6=Array['from'](this['_suggestions']['values']())['some'](_0x1d4378=>_0x1d4378['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x27c1a6;}['execute'](){const _0x5c69af=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1d7857 of _0x5c69af){const _0x428b7b=_0x1d7857['getRanges']();if(!this['editor']['model']['canEditAt'](_0x428b7b))return;}rs(this['editor']['model'],this['_command'],_0x5c69af);}}class B extends _0x3ce43f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2ef9c2,_0x434b62,_0x2c3b52){super(_0x2ef9c2),this['_command']=_0x434b62,this['_suggestions']=_0x2c3b52,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3a5c6b=this['editor']['model']['document']['selection'],_0x25cd95=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x45cfde,_0x1f36a3){const _0x35e48b=Array['from'](_0x45cfde['getRanges']()),_0x283870=new Set();for(const _0x252886 of _0x1f36a3)if(_0x252886['isInContent']){for(const _0x5ad2ac of _0x35e48b)for(const _0x3af341 of _0x252886['getRanges']())(_0x5ad2ac['isIntersecting'](_0x3af341)||_0x45cfde['isCollapsed']&&!_0x252886['isMultiRange']&&_0x252886['next']&&_0x3af341['end']['isTouching'](_0x5ad2ac['start']))&&_0x283870['add'](_0x252886);}return _0x283870;}(_0x3a5c6b,_0x25cd95),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xfdef7b=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1896d4 of _0xfdef7b){const _0x2f3b63=_0x1896d4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2f3b63))return;}rs(this['editor']['model'],this['_command'],_0xfdef7b);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x2f7706(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x29bf81,_0x56461b){super(),this['id']=_0x56461b['id'],this['type']=_0x56461b['type'],this['subType']=_0x56461b['subType']||null,this['author']=_0x56461b['author'],this['creator']=_0x56461b['creator']||_0x56461b['author'],this['isExternal']=Boolean(_0x56461b['attributes']&&_0x56461b['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x56461b['originalSuggestionId']||null,this['_model']=_0x29bf81,this['_onAccept']=_0x56461b['onAccept'],this['_onDiscard']=_0x56461b['onDiscard'],this['_onAttributesChange']=_0x56461b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x56461b['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 _0xbccb9e=this;for(;_0xbccb9e['previous'];)_0xbccb9e=_0xbccb9e['previous'];return _0xbccb9e;}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'](_0x4393bd){this['_markerNames']['add'](_0x4393bd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x18a49b=>this['_model']['markers']['get'](_0x18a49b))['filter'](_0x449195=>_0x449195);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x392fe1=>{for(const _0x43bad8 of this['getMarkers']())_0x392fe1['removeMarker'](_0x43bad8);}),this['_markerNames']['clear']();}['removeMarker'](_0x32a6f4){this['_model']['change'](_0x4a4de9=>{_0x4a4de9['removeMarker'](_0x32a6f4);}),this['_markerNames']['delete'](_0x32a6f4);}['addRange'](_0x4230ce){const _0xc1f881='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0xc1f881),this['_model']['change'](_0x5858cc=>{_0x5858cc['addMarker'](_0xc1f881,{'range':_0x4230ce,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2ade33){for(const _0x49c558 of this['getRanges']())if(_0x49c558['isIntersecting'](_0x2ade33))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x228bd5=>_0x228bd5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x31e54d,_0x53f843)=>[..._0x31e54d,..._0x53f843['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x59d60e=this['getRanges']();if(0x1!=_0x59d60e['length'])return null;const _0x51d9ea=_0x59d60e[0x0],_0x1b1510=_0x51d9ea['start']['nodeAfter'],_0x1d517b=_0x51d9ea['end']['nodeBefore'];return _0x1b1510 instanceof _0x860346?_0x1b1510!=_0x1d517b?null:_0x1b1510: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 _0x2c54c7=[];let _0x1c3e6b=this['head'];for(;_0x1c3e6b;)_0x2c54c7['push'](_0x1c3e6b),_0x1c3e6b=_0x1c3e6b['next'];return _0x2c54c7;}['setAttribute'](_0x39205c,_0x49f045){const _0x30d301=_0x312db7(this['attributes']);_0x4c330a(_0x30d301,_0x39205c,_0x49f045),_0x4e9274(_0x30d301,this['attributes'])||(this['attributes']=_0x30d301,this['_onAttributesChange'](_0x30d301));}['removeAttribute'](_0x2c816f){const _0xae6787=_0x312db7(this['attributes']);_0x4fb041(_0xae6787,_0x2c816f),_0x4e9274(_0xae6787,this['attributes'])||(this['attributes']=_0xae6787,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 _0x19694d()['substr'](0x1,0x5);}}function o(_0x3b3092,_0x5e513a,_0x44076a){const _0x764012=_0x3b3092['t'],t=_0x3b3092['t'];switch(_0x5e513a){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',_0x44076a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x44076a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x44076a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x44076a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x44076a);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',_0x44076a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x44076a);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',_0x44076a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x44076a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x44076a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x44076a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x44076a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x44076a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x44076a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x44076a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x44076a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x44076a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x44076a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x44076a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x44076a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x44076a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x44076a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x44076a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x44076a);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x44076a);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'},_0x44076a);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x44076a);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x44076a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x44076a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x44076a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x44076a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x44076a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x44076a);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'},_0x44076a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x44076a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x44076a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x44076a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x44076a);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x44076a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x44076a);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'},_0x44076a);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'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'},_0x44076a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x44076a);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'},_0x44076a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x44076a);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'},_0x44076a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x44076a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x44076a);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'},_0x44076a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x44076a);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 _0x764012({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x44076a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x764012({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x44076a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x44076a);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'},_0x44076a);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'},_0x44076a);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'},_0x44076a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5e513a;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5e03bb,_0x4c720b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5e03bb,this['_locale']=_0x4c720b;}['getDescriptions'](_0x46b769){const _0x3319a9=[],_0x4f49db=new Set(),_0x140f6e=new Set();for(let _0x2e64aa=0x0;_0x2e64aa<_0x46b769['length'];_0x2e64aa++){const _0x3e126d=_0x46b769[_0x2e64aa];if(!_0x3e126d['isInContent'])continue;const _0x11dda0=this['_handleCustomCallbackDescription'](_0x3e126d);if(_0x11dda0){if(null!=_0x3e126d['subType']){if(_0x4f49db['has'](_0x3e126d['subType']))continue;_0x4f49db['add'](_0x3e126d['subType']);}_0x3319a9['push'](_0x11dda0);}else{if('attribute'==_0x3e126d['type']){const _0x44af48=_0x3e126d['data']['key'];if(_0x140f6e['has'](_0x44af48))continue;_0x140f6e['add'](_0x3e126d['data']['key']),_0x44af48==m?this['_handleRenameSuggestionDescription'](_0x3319a9,_0x3e126d):this['_handleAttributeSuggestionDescription'](_0x3319a9,_0x3e126d);continue;}'insertion'!=_0x3e126d['type']&&'deletion'!=_0x3e126d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3319a9,_0x3e126d,_0x46b769[_0x2e64aa+0x1]);}}return this['_resolveDescriptionItems'](_0x3319a9);}['registerDescriptionCallback'](_0x33aae3){this['_customCallbacks']['push'](_0x33aae3);}['registerElementLabel'](_0x1689cc,_0x1d3679,_0x406842=_0x57c570['normal']){'function'==typeof _0x1689cc?_0x4f17a4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1689cc,'label':_0x1d3679,'priority':_0x406842}):this['_itemLabels']['set'](_0x1689cc,_0x1d3679);}['registerAttributeLabel'](_0x1d0dbf,_0x3993bb){this['_attributeLabels']['set'](_0x1d0dbf,_0x3993bb);}['getItemLabel'](_0x21de2d,_0x58e014=0x1){let _0x4a4cae;for(const _0x2150cc of this['_itemLabelsCallbacks'])if(_0x2150cc['matchingCallback'](_0x21de2d)){_0x4a4cae=_0x2150cc['label'];break;}return _0x4a4cae||(_0x4a4cae=this['_itemLabels']['get'](_0x21de2d['name'])),_0x4a4cae?_0x4a4cae(_0x58e014):0x1!==_0x58e014?_0x58e014+'\x20'+_0x21de2d['name']+'s':''+_0x21de2d['name'];}['_addDescriptionItems'](_0x557c7b,_0x4b529d){const _0x2a636b=_0x4b529d['getFirstRange']()['getWalker'](),_0x39e5ce='insertion'==_0x4b529d['type']?'add':'remove';for(const _0x51611a of _0x2a636b){const _0x22d113=_0x51611a['item'],_0x3e303e=_0x557c7b[_0x557c7b['length']-0x1];if(_0x22d113['is']('$textProxy'))_0x3e303e&&_0x3e303e['type']['indexOf']('Container')>-0x1&&_0x557c7b['pop'](),_0x3e303e&&'text'==_0x3e303e['type']?_0x3e303e[_0x39e5ce]+=_0x22d113['data']:_0x557c7b['push']({'type':'text','add':'add'==_0x39e5ce?_0x22d113['data']:'','remove':'remove'==_0x39e5ce?_0x22d113['data']:''});else{if(this['_schema']['isObject'](_0x22d113)){const _0x5e1c5d=_0x22d113;if(_0x3e303e&&_0x3e303e['type']['indexOf']('Container')>-0x1&&_0x557c7b['pop'](),'elementEnd'==_0x51611a['type'])continue;_0x3e303e&&_0x3e303e['type']==_0x39e5ce+'Object'&&_0x3e303e['element']['name']==_0x5e1c5d['name']?_0x3e303e['quantity']++:_0x557c7b['push']({'type':_0x39e5ce+'Object','element':_0x5e1c5d,'quantity':0x1}),_0x2a636b['skip'](_0x4d6a20=>!('elementEnd'==_0x4d6a20['type']&&_0x4d6a20['item']==_0x22d113));}else{if(this['_schema']['checkChild'](_0x22d113,'$text')||_0x22d113['is']('element','softBreak')){const _0x108aad=_0x22d113;if('add'==_0x39e5ce&&'elementStart'==_0x51611a['type']||'remove'==_0x39e5ce&&'elementEnd'==_0x51611a['type'])continue;if(_0x3e303e&&-0x1==_0x3e303e['type']['indexOf']('Container')){'text'==_0x3e303e['type']&&(_0x3e303e[_0x39e5ce]+='\x0a');continue;}let _0x27ce1b;if(_0x27ce1b='add'==_0x39e5ce?_0x108aad['nextSibling']&&!this['_schema']['isObject'](_0x108aad['nextSibling'])?_0x108aad['nextSibling']:null:_0x108aad['previousSibling']&&!this['_schema']['isObject'](_0x108aad['previousSibling'])?_0x108aad['previousSibling']:null,_0x108aad['isEmpty']||_0x27ce1b&&_0x27ce1b['isEmpty']){const _0x35f305=_0x27ce1b&&_0x27ce1b['isEmpty']?_0x27ce1b:_0x108aad;_0x3e303e&&_0x3e303e['type']==_0x39e5ce+'EmptyContainer'&&_0x3e303e['element']['name']==_0x35f305['name']?_0x3e303e['quantity']++:_0x557c7b['push']({'type':_0x39e5ce+'EmptyContainer','element':_0x35f305,'quantity':0x1});}else _0x557c7b['push']({'type':_0x39e5ce+'Container','element':_0x108aad});}}}}}['_resolveDescriptionItems'](_0x1a67d0){const _0x93cd02=this['_locale'],_0x4fdc83=[],_0x141e61=[],_0x3123cb=[];for(const _0x59df5f of _0x1a67d0)switch(_0x59df5f['type']){case'text':if(_0x59df5f['add']=_0x59df5f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x59df5f['remove']=_0x59df5f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x59df5f['add']&&''!=_0x59df5f['remove']){_0x4fdc83['push']({'type':'replace','content':o(_0x93cd02,'REPLACE_TEXT',['\x22'+_0x59df5f['remove']+'\x22','\x22'+_0x59df5f['add']+'\x22'])});continue;}if(null!=_0x59df5f['add']['match'](/^ +$/)){_0x4fdc83['push']({'type':'insertion','content':o(_0x93cd02,'*Insert:*\x20%0',o(_0x93cd02,'ELEMENT_SPACE',_0x59df5f['add']['length']))});continue;}if(null!=_0x59df5f['remove']['match'](/^ +$/)){_0x4fdc83['push']({'type':'deletion','content':o(_0x93cd02,'*Remove:*\x20%0',o(_0x93cd02,'ELEMENT_SPACE',_0x59df5f['remove']['length']))});continue;}if(''!=_0x59df5f['add']){_0x4fdc83['push']({'type':'insertion','content':o(_0x93cd02,'*Insert:*\x20%0','\x22'+_0x59df5f['add']+'\x22')});continue;}_0x4fdc83['push']({'type':'deletion','content':o(_0x93cd02,'*Remove:*\x20%0','\x22'+_0x59df5f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4fdc83['push']({'type':'insertion','content':o(_0x93cd02,'*Insert:*\x20%0',this['getItemLabel'](_0x59df5f['element'],_0x59df5f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4fdc83['push']({'type':'deletion','content':o(_0x93cd02,'*Remove:*\x20%0',this['getItemLabel'](_0x59df5f['element'],_0x59df5f['quantity']))});continue;case'addContainer':_0x4fdc83['push']({'type':'insertion','content':o(_0x93cd02,'*Split:*\x20%0',this['getItemLabel'](_0x59df5f['element'],_0x59df5f['quantity']))});continue;case'removeContainer':_0x4fdc83['push']({'type':'deletion','content':o(_0x93cd02,'*Merge:*\x20%0',this['getItemLabel'](_0x59df5f['element'],_0x59df5f['quantity']))});continue;case'addFormat':_0x141e61['push'](_0x59df5f['key']);continue;case'removeFormat':_0x3123cb['push'](_0x59df5f['key']);continue;default:_0x4fdc83['push'](_0x59df5f);}if(_0x141e61['length']){const _0x437841=_0x141e61['map'](_0x192735=>this['_attributeLabels']['has'](_0x192735)?this['_attributeLabels']['get'](_0x192735):_0x192735)['join'](',\x20');_0x4fdc83['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x437841)});}if(_0x3123cb['length']){const _0x590250=_0x3123cb['map'](_0x4be660=>this['_attributeLabels']['has'](_0x4be660)?this['_attributeLabels']['get'](_0x4be660):_0x4be660)['join'](',\x20');_0x4fdc83['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x590250)});}return _0x4fdc83;}['_handleCustomCallbackDescription'](_0x248d1c){for(const _0xc3257f of this['_customCallbacks']){const _0x1ec93b=_0xc3257f(_0x248d1c);if(_0x1ec93b&&'type'in _0x1ec93b)return _0x1ec93b;}}['_handleAttributeSuggestionDescription'](_0x2162b9,_0x6f61c5){const _0x5b5d10=_0x6f61c5['data'],_0x41bc26=void 0x0===_0x5b5d10['newValue']?'removeFormat':'addFormat';_0x2162b9['push']({'type':_0x41bc26,'key':_0x5b5d10['key']});}['_handleRenameSuggestionDescription'](_0x28e60f,_0x4053bf){_0x28e60f['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4053bf['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5db3e0,_0x4e43fb,_0x24af62){if(this['_addDescriptionItems'](_0x5db3e0,_0x4e43fb),_0x24af62&&_0x24af62['getFirstRange']()&&!_0x4e43fb['getFirstRange']()['end']['isEqual'](_0x24af62['getFirstRange']()['start'])){const _0x45e573=_0x5db3e0[_0x5db3e0['length']-0x1],_0x4a9ee5='insertion'==_0x4e43fb['type']?'add':'remove';_0x45e573&&'text'==_0x45e573['type']&&(_0x45e573[_0x4a9ee5]+='\x0a');}}}class O extends _0x519785{['afterInit'](){const _0xa91d19=this['editor'],_0x246bce=_0xa91d19['plugins']['get']('TrackChangesEditing');_0xa91d19['commands']['get']('showAIAssistant')&&_0x246bce['enableCommand']('showAIAssistant');}}class E extends _0x519785{['afterInit'](){const _0x4d2580=this['editor'],_0x487f47=_0x4d2580['locale'];if(!_0x4d2580['plugins']['has']('AlignmentEditing'))return;const _0x29c737=_0x4d2580['plugins']['get']('TrackChangesEditing');_0x29c737['enableDefaultAttributesIntegration']('alignment'),_0x29c737['registerBlockAttribute']('alignment'),_0x29c737['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x487f47,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b7eb0=this['editor'],_0x41e2b8=_0x1b7eb0['locale'];_0x1b7eb0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48378b=>{if('formatBlock'!=_0x48378b['type'])return;const {data:_0x5504e1}=_0x48378b;if(_0x5504e1&&'alignment'==_0x5504e1['commandName']){const _0x9b0077=_0x5504e1['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x41e2b8,'*Format:*\x20%0',function(_0x193845){switch(_0x193845){case'left':return o(_0x41e2b8,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x41e2b8,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x41e2b8,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x41e2b8,'FORMAT_JUSTIFY_TEXT');}}(_0x9b0077))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x519785{['afterInit'](){const _0x56cfe6=this['editor'],_0x814f44=_0x56cfe6['plugins']['get']('TrackChangesEditing'),_0x1b9ef5=_0x56cfe6['locale'];for(const _0x38b772 of ti){if(!_0x56cfe6['plugins']['has'](_0x38b772))continue;const _0x5dbd4f=_0x38b772['slice'](0x0,-0x7)['toLowerCase'](),_0x3cdfa5='FORMAT_'+_0x5dbd4f['toUpperCase']();_0x814f44['enableDefaultAttributesIntegration'](_0x5dbd4f),_0x814f44['registerInlineAttribute'](_0x5dbd4f),_0x814f44['descriptionFactory']['registerAttributeLabel'](_0x5dbd4f,o(_0x1b9ef5,_0x3cdfa5));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb30c6e=this['editor'],_0x5ddd8a=_0xb30c6e['locale'],_0x1ab4a4=_0xb30c6e['plugins']['get']('TrackChangesEditing');function _0x1e857e(_0xedabf9,_0x205649){_0x1ab4a4['descriptionFactory']['registerDescriptionCallback'](_0x1dd405=>{if('formatInline'!=_0x1dd405['type'])return;const {data:_0x5e41c6}=_0x1dd405;return _0x5e41c6&&_0x5e41c6['commandName']===_0xedabf9?_0x5e41c6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ddd8a,'*Format:*\x20%0',_0x205649)}:{'type':'format','content':o(_0x5ddd8a,'*Remove\x20format:*\x20%0',_0x205649)}:void 0x0;});}_0x1e857e('bold',o(_0x5ddd8a,'FORMAT_BOLD')),_0x1e857e('italic',o(_0x5ddd8a,'FORMAT_ITALIC')),_0x1e857e('underline',o(_0x5ddd8a,'FORMAT_UNDERLINE')),_0x1e857e('code',o(_0x5ddd8a,'FORMAT_CODE')),_0x1e857e('strikethrough',o(_0x5ddd8a,'FORMAT_STRIKETHROUGH')),_0x1e857e('subscript',o(_0x5ddd8a,'FORMAT_SUBSCRIPT')),_0x1e857e('superscript',o(_0x5ddd8a,'FORMAT_SUPERSCRIPT'));}}class U extends _0x519785{['afterInit'](){const _0x3a01e0=this['editor'],_0x10d443=_0x3a01e0['locale'];if(!_0x3a01e0['plugins']['has']('BlockQuoteEditing'))return;const _0x37d660=_0x3a01e0['plugins']['get']('TrackChangesEditing'),_0x571ae1=this['editor']['commands']['get']('blockQuote');_0x37d660['enableCommand']('blockQuote',(_0x1d88fa,_0x1b7122={})=>{const _0x1252af=this['editor']['model']['document']['selection'],_0x1d1309=_0x1b7122&&void 0x0!==_0x1b7122['forceValue']?_0x1b7122['forceValue']:!_0x571ae1['value'];let _0x5f45ce=[];if(_0x1d1309){const _0x4c8752=Array['from'](_0x1252af['getSelectedBlocks']())['filter'](_0x4e39b9=>oo(_0x4e39b9)||function(_0x4792c1,_0x288996){const _0x539ccc=_0x288996['checkChild'](_0x4792c1['parent'],'blockQuote'),_0x38929a=_0x288996['checkChild'](['$root','blockQuote'],_0x4792c1);return _0x539ccc&&_0x38929a;}(_0x4e39b9,this['editor']['model']['schema']));_0x5f45ce=to(_0x4c8752,_0x3a01e0['model']);}else{const _0x2344b3=Array['from'](_0x1252af['getSelectedBlocks']())['filter'](_0x554a4e=>oo(_0x554a4e));_0x5f45ce=to(_0x2344b3,_0x3a01e0['model']);}_0x3a01e0['model']['change'](()=>{for(const _0xd503b8 of _0x5f45ce)_0x37d660['markBlockFormat'](_0xd503b8,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1d1309}]});});}),_0x37d660['descriptionFactory']['registerDescriptionCallback'](_0x4019cf=>{const {data:_0x119d43}=_0x4019cf;if(_0x119d43&&'blockQuote'==_0x119d43['commandName']){const _0x2b3c7d=o(_0x10d443,'ELEMENT_BLOCK_QUOTE');return _0x119d43['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10d443,'*Set\x20format:*\x20%0',_0x2b3c7d)}:{'type':'format','content':o(_0x10d443,'*Remove\x20format:*\x20%0',_0x2b3c7d)};}});}}function oo(_0x5394aa){return'blockQuote'==_0x5394aa['parent']['name'];}class V extends _0x519785{['afterInit'](){const _0xc7adbe=this['editor'],_0x91b7d=_0xc7adbe['locale'],_0x106a70=_0xc7adbe['plugins']['get']('TrackChangesEditing');_0xc7adbe['plugins']['has']('BookmarkEditing')&&(_0x106a70['enableCommand']('insertBookmark'),_0x106a70['enableDefaultAttributesIntegration']('updateBookmark'),_0x106a70['registerBlockAttribute']('bookmarkId'),_0x106a70['descriptionFactory']['registerDescriptionCallback'](_0x1a96e6=>{if('insertion'!=_0x1a96e6['type']&&'deletion'!=_0x1a96e6['type']&&'attribute'!=_0x1a96e6['type'])return;const _0x4d469d=_0x1a96e6['getContainedElement']();if(null==_0x4d469d)return;if(!_0x4d469d['is']('element','bookmark'))return;const _0x35ce6c=_0x4d469d['getAttribute']('bookmarkId');if('insertion'==_0x1a96e6['type'])return{'type':'insertion','content':o(_0x91b7d,'*Insert:*\x20%0','\x22'+_0x35ce6c+'\x22\x20'+o(_0x91b7d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1a96e6['type'])return{'type':'deletion','content':o(_0x91b7d,'*Remove:*\x20%0','\x22'+_0x35ce6c+'\x22\x20'+o(_0x91b7d,'ELEMENT_BOOKMARK'))};const {data:_0xdb3503}=_0x1a96e6;if(!_0xdb3503||'bookmarkId'!=_0xdb3503['key'])return;return{'type':'format','content':o(_0x91b7d,'*Set\x20bookmark:*\x20%0','\x22'+_0xdb3503['newValue']+'\x22')};}));}}class F extends _0x519785{['afterInit'](){const _0x516401=this['editor'];_0x516401['plugins']['has']('CaseChange')&&(_0x516401['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x516401['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x516401['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x519785{['afterInit'](){const _0x2c07e8=this['editor'];_0x2c07e8['commands']['get']('ckbox')&&_0x2c07e8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x519785{['afterInit'](){const _0x1d1947=this['editor'];if(!_0x1d1947['plugins']['has']('CodeBlock'))return;const _0x4c81c2=_0x1d1947['plugins']['get']('TrackChangesEditing'),_0x4246f8=_0x1d1947['locale'],_0x5f4d25=_0x1d1947['config']['get']('codeBlock')['languages'],_0x34d984=_0x1d1947['commands']['get']('codeBlock');_0x4c81c2['enableCommand']('indentCodeBlock'),_0x4c81c2['enableCommand']('outdentCodeBlock'),_0x4c81c2['enableCommand']('codeBlock',(_0x12f51e,_0x5c9766={})=>{const _0x4b2780=_0x1d1947['model'],_0x40719c=_0x1d1947['model']['document']['selection'],_0x170c65=_0x5c9766&&void 0x0!==_0x5c9766['forceValue']?_0x5c9766['forceValue']:!_0x34d984['value'];let _0x13dd31;_0x5c9766['language']||(_0x5c9766['language']=_0x5f4d25[0x0]['language']),_0x13dd31=_0x170c65?Array['from'](_0x40719c['getSelectedBlocks']())['filter'](_0x380f8d=>co(_0x380f8d)||function(_0x487379,_0x29937f){if(_0x487379['is']('rootElement')||_0x29937f['isLimit'](_0x487379))return!0x1;return _0x29937f['checkChild'](_0x487379['parent'],'codeBlock');}(_0x380f8d,_0x4b2780['schema'])):Array['from'](_0x40719c['getSelectedBlocks']())['filter'](_0x2fc277=>co(_0x2fc277));const _0x6266f6=to(_0x13dd31,_0x4b2780);_0x4b2780['change'](()=>{for(const _0x876f7a of _0x6266f6)_0x4c81c2['markBlockFormat'](_0x876f7a,{'commandName':'codeBlock','commandParams':[{..._0x5c9766,'forceValue':_0x170c65}],'formatGroupId':'blockName'});});}),(_0x4c81c2['descriptionFactory']['registerElementLabel']('codeBlock',_0x2a4a08=>o(_0x4246f8,'ELEMENT_CODE_BLOCK',_0x2a4a08)),_0x4c81c2['descriptionFactory']['registerDescriptionCallback'](_0x5c371e=>{if('formatBlock'!=_0x5c371e['type'])return;const _0x5ad699=_0x4246f8['t'],{data:_0x1c5945}=_0x5c371e;if(!_0x1c5945||'codeBlock'!=_0x1c5945['commandName'])return;const _0x5400d2=_0x1c5945['commandParams'][0x0]['language'],_0x4609b0=_0x5ad699(_0x5f4d25['find'](_0x33b44a=>_0x33b44a['language']===_0x5400d2)['label'])['toLowerCase']();return _0x1c5945['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4246f8,'*Set\x20format:*\x20%0',o(_0x4246f8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4609b0+')')}:{'type':'format','content':o(_0x4246f8,'*Remove\x20format:*\x20%0',o(_0x4246f8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1be7c7){return'codeBlock'==_0x1be7c7['name'];}class J extends _0x519785{['afterInit'](){const _0x4914bf=this['editor'];if(!_0x4914bf['plugins']['has']('CommentsEditing'))return;_0x4914bf['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1adff7,_0x462c25,_0x265931){const _0x34018f=[];for(const _0x2d076b of _0x462c25['getItems']())_0x2d076b['hasAttribute'](_0x1adff7)&&_0x34018f['push'](_0x265931['createRangeOn'](_0x2d076b));return _0x34018f;}function De(_0xf92b35,_0x32fefd,{showActiveMarker:_0x3a88be=!0x0}={}){const _0x5ed093=_0xf92b35['plugins']['get']('TrackChangesEditing');return(_0x26a337,_0x131e13,_0x447f32)=>{if(!_0x447f32['consumable']['test'](_0x131e13['markerRange'],_0x26a337['name']))return;const _0x421203=_0x131e13['markerRange']['getWalker'](),_0x1f4669=_0x131e13['markerRange']['start'],_0x2f7f32=_0xf92b35['model']['schema'];let _0x56f34e=null,_0x2f3d52=null,_0x489361=!0x1,_0x1aec76=!0x1;for(const _0x5d336d of _0x421203){const _0x3c15a4=_0x5d336d['item'];_0x489361=_0x489361||_0x2f7f32['isContent'](_0x3c15a4);const _0x17f323=_0x447f32['mapper']['toViewElement'](_0x3c15a4);if(_0x17f323&&_0x17f323['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5d336d['type']&&(_0x2f7f32['isBlock'](_0x3c15a4)&&!_0x2f7f32['isLimit'](_0x3c15a4)&&(_0x3c15a4['nextSibling']||_0x1f4669['isAtEnd']?_0x56f34e&&_0x56f34e['parent']==_0x3c15a4||(_0x56f34e=_0x3c15a4,_0x42f314(_0x5d336d['previousPosition']),_0x1aec76=!0x0):_0x2f3d52=_0x2f3d52||_0x5d336d['previousPosition']));}function _0x42f314(_0x2d2293){const {id:_0x52d15e,authorId:_0x2e4372}=_0x5ed093['_splitMarkerName'](_0x131e13['markerName']),_0x3cd1b3=_0x447f32['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x32fefd,'data-suggestion':_0x52d15e,'data-author-id':_0x2e4372}),_0x1347e4=_0x447f32['mapper']['toViewPosition'](_0x2d2293);_0x3a88be&&_0x5ed093['activeMarkers']['includes'](_0x131e13['markerName'])&&_0x447f32['writer']['addClass']('ck-suggestion-marker--active',_0x3cd1b3),_0x447f32['writer']['insert'](_0x1347e4,_0x3cd1b3),_0x447f32['mapper']['bindElementToMarker'](_0x3cd1b3,_0x131e13['markerName']);}_0x489361||_0x1aec76||!_0x2f3d52||_0x42f314(_0x2f3d52);};}class K extends _0x519785{static get['requires'](){return[_0x4fa260];}['init'](){const _0xfaf328=this['editor'],_0x3444ed=_0xfaf328['plugins']['get']('TrackChangesEditing');_0x3444ed['enableCommand']('delete');const _0x185ca5=_0xfaf328['commands']['get']('deleteForward');_0x3444ed['enableCommand']('deleteForward',(_0x46a6fa,_0x26c2a6={})=>{const _0x9cccfd=_0xfaf328['model']['createSelection'](_0xfaf328['model']['document']['selection']);_0x9cccfd['isCollapsed']&&_0xfaf328['model']['modifySelection'](_0x9cccfd,{'direction':'forward','unit':_0x26c2a6['unit']});const _0x5bb70d=_0x9cccfd['getFirstRange'](),_0x803beb=_0x45518e['fromRange'](_0x5bb70d);let _0x3a150a;_0x46a6fa(_0x26c2a6),_0x3a150a='$graveyard'==_0x803beb['root']['rootName']?_0xfaf328['model']['createRange'](_0x5bb70d['start']):_0xfaf328['model']['createRange'](_0x803beb['start'],_0x803beb['end']),_0x803beb['detach'](),_0xfaf328['model']['enqueueChange'](_0x185ca5['buffer']['batch'],_0x31e13e=>{_0x185ca5['buffer']['lock'](),_0x31e13e['setSelection'](_0x31e13e['createRange'](_0x3a150a['end'])),_0x185ca5['buffer']['unlock']();});}),_0xfaf328['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0xfaf328,'merge'),{'priority':'high'}),_0xfaf328['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x22a21c,_0x2f3f88,_0x5c2956)=>{_0x5c2956['options']['showSuggestionHighlights']&&De(_0xfaf328,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x22a21c,_0x2f3f88,_0x5c2956);},{'priority':'high'}),_0xfaf328['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5a2404,_0x46426b,_0xace863)=>{const _0x1e5cd8=_0xace863['mapper']['markerNameToElements'](_0x46426b['markerName']);if(_0x1e5cd8){for(const _0x4ce462 of _0x1e5cd8)_0x4ce462['is']('uiElement')&&(_0xace863['mapper']['unbindElementFromMarkerName'](_0x4ce462,_0x46426b['markerName']),_0xace863['writer']['remove'](_0x4ce462));}},{'priority':'high'});}}class H extends _0x519785{['afterInit'](){const _0x29800a=this['editor'];if(!_0x29800a['plugins']['has']('ListEditing'))return;const _0x4bae8a=_0x29800a['locale'],_0x5a7e7e=_0x29800a['plugins']['get']('TrackChangesEditing'),_0x5dff26=_0x29800a['plugins']['has']('TodoListEditing'),_0xaad7af=!!_0x29800a['config']['get']('list.multiBlock');function _0x4e9798(_0x1c757d){return{'type':'format','content':''+o(_0x4bae8a,'*Set\x20format:*\x20%0',_0x1c757d)};}function _0x2558c2(_0x5e0471){return{'type':'format','content':''+o(_0x4bae8a,'*Remove\x20format:*\x20%0',_0x5e0471)};}_0x5a7e7e['enableDefaultAttributesIntegration']('numberedList'),_0x5a7e7e['enableDefaultAttributesIntegration']('bulletedList'),_0x5a7e7e['enableDefaultAttributesIntegration']('customNumberedList'),_0x5a7e7e['enableDefaultAttributesIntegration']('customBulletedList'),_0x5a7e7e['enableDefaultAttributesIntegration']('indentList'),_0x5a7e7e['enableDefaultAttributesIntegration']('outdentList'),_0x5a7e7e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5a7e7e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5a7e7e['registerBlockAttribute']('listItemId'),_0x5a7e7e['registerBlockAttribute']('listType'),_0x5a7e7e['registerBlockAttribute']('listIndent'),_0xaad7af&&(_0x5a7e7e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5a7e7e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5dff26&&(_0x5a7e7e['enableDefaultAttributesIntegration']('todoList'),_0x5a7e7e['enableDefaultAttributesIntegration']('checkTodoList'),_0x5a7e7e['registerBlockAttribute']('todoListChecked'),_0x5a7e7e['descriptionFactory']['registerDescriptionCallback'](_0x3bbb7=>{const {data:_0x4809a0}=_0x3bbb7;if(_0x4809a0&&'todoListChecked'==_0x4809a0['key'])return{'type':'format','content':_0x4809a0['newValue']?o(_0x4bae8a,'*Check\x20item*'):o(_0x4bae8a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2de1b5=>{if(_0x2de1b5['batch']['isUndo'])return!0x1;let _0x337b8c=!0x1;const _0x2e0f1d=_0x5a7e7e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a4fd8=>'todoListChecked'===_0x5a7e7e['_getAttributeKey'](_0x4a4fd8));for(const _0x4c726e of _0x2e0f1d){'todo'!=_0x4c726e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5a7e7e['_findSuggestions'](_0x4c726e['getFirstRange'](),'attribute')['find'](_0x2e8de2=>'listType'===_0x5a7e7e['_getAttributeKey'](_0x2e8de2['suggestion']))||(_0x2de1b5['removeMarker'](_0x4c726e['getFirstMarker']()),_0x337b8c=!0x0));}return _0x337b8c;})),_0x5a7e7e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4bae8a,'FORMAT_INDENT'));const _0x490862={'type':'format','content':''};_0x5a7e7e['descriptionFactory']['registerDescriptionCallback'](_0x2adae5=>{const {data:_0x2b15e4}=_0x2adae5;if(!_0x2b15e4||'listType'!=_0x2b15e4['key'])return;let _0x3416c3=_0x2adae5['head'];for(;_0x3416c3;){if(_0x3416c3['data']&&(('listStyle'==_0x3416c3['data']['key']||'listMarkerStyle'==_0x3416c3['data']['key'])&&(_0x3416c3['data']['newValue']&&'default'!=_0x3416c3['data']['newValue']||'default'!=_0x3416c3['data']['oldValue']&&!_0x2b15e4['newValue'])||!_0xaad7af&&_0x3416c3['data']['key']==m))return _0x490862;_0x3416c3=_0x3416c3['next'];}if(null==_0x2b15e4['newValue'])switch(_0x2b15e4['oldValue']){case'bulleted':return _0x2558c2(o(_0x4bae8a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2558c2(o(_0x4bae8a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2558c2(o(_0x4bae8a,'ELEMENT_TODO_LIST'));}switch(_0x2b15e4['newValue']){case'bulleted':return _0x4e9798(o(_0x4bae8a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4e9798(o(_0x4bae8a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4e9798(o(_0x4bae8a,'ELEMENT_TODO_LIST'));}}),_0x5a7e7e['descriptionFactory']['registerDescriptionCallback'](_0x51dec2=>{const {data:_0x54bfc5}=_0x51dec2;if(_0x54bfc5&&'listIndent'==_0x54bfc5['key'])return null==_0x54bfc5['newValue']||null==_0x54bfc5['oldValue']&&0x0==_0x54bfc5['newValue']?_0x490862:void 0x0;}),_0x5a7e7e['descriptionFactory']['registerDescriptionCallback'](_0x17ca5a=>{if('attribute'!=_0x17ca5a['type'])return;const {data:_0x4b3729}=_0x17ca5a;if(!_0x4b3729||'listItemId'!=_0x4b3729['key'])return;const _0x55fa58=Te(_0x17ca5a);return'newValue'==_0x55fa58?{'type':'format','content':o(_0x4bae8a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x55fa58?{'type':'format','content':o(_0x4bae8a,'*Split:*\x20list\x20item')}:_0x490862;}),_0x29800a['model']['document']['registerPostFixer'](_0x95b07b=>this['listItemIdFixer'](_0x95b07b)),_0x29800a['model']['document']['registerPostFixer'](_0xe9c41a=>this['noTrackChangesFixer'](_0xe9c41a)),_0x29800a['model']['document']['on']('change:data',(_0x1a17c5,_0x1b7bfa)=>{if(_0x1b7bfa['isUndo']||!_0x1b7bfa['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x398e86){if(_0x398e86['batch']['isUndo']||!_0x398e86['batch']['isLocal'])return!0x1;let _0x3a369e=!0x1;const _0x198a0b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f15e9=>_0x4f15e9['data']&&'listItemId'==_0x4f15e9['data']['key'])['filter'](_0x5929a1=>_0x5929a1['data']['newValue']&&_0x5929a1['data']['oldValue']);for(const _0xc75aaf of _0x198a0b)Te(_0xc75aaf)||(_0x398e86['removeMarker'](_0xc75aaf['getFirstMarker']()),_0x3a369e=!0x0);return _0x3a369e;}['noTrackChangesFixer'](_0x261634){if(_0x261634['batch']['isUndo']||!_0x261634['batch']['isLocal'])return!0x1;const _0x30497d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x30497d['trackChangesCommand']['value'])return!0x1;let _0x1a1d9d=!0x1;const _0x3cb7e5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4526c2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x966ee2=>'attribute'==_0x966ee2['type'])['filter'](_0x2c4ba3=>_0x3cb7e5['includes'](_0x2c4ba3['attributeKey']));if(0x0==_0x4526c2['length'])return _0x1a1d9d;for(const _0x27eb19 of _0x4526c2){const _0x1f0f3e=_0x30497d['_findSuggestions'](_0x27eb19['range'],'attribute')['filter'](_0x1b3d6a=>!_0x1b3d6a['meta']['isNextTo'])['map'](_0x575fd3=>_0x575fd3['suggestion'])['filter'](_0x5dea37=>{const _0x156a42=_0x30497d['_getAttributeKey'](_0x5dea37);return _0x3cb7e5['includes'](_0x156a42);});if(_0x1f0f3e['length']){for(const _0x3b4f12 of _0x1f0f3e)_0x261634['removeMarker'](_0x3b4f12['getFirstMarker']());_0x1a1d9d=!0x0;}}return _0x1a1d9d;}['assureChains'](){const _0x1534fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52c10e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3393ec;const _0x46f6f6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x217435=>{if(_0x217435['data']['oldRange']||!_0x217435['data']['newRange'])return null;if(!_0x217435['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x229d70}=_0x1534fb['_splitMarkerName'](_0x217435['name']);if(!_0x1534fb['hasSuggestion'](_0x229d70))return null;const _0x5bdf08=_0x1534fb['getSuggestion'](_0x229d70);return _0x52c10e['includes'](_0x5bdf08['data']['key']);})['map'](_0x1ae460=>{const {id:_0x54982c}=_0x1534fb['_splitMarkerName'](_0x1ae460['name']),_0x146874=_0x1534fb['getSuggestion'](_0x54982c);return _0x3393ec=_0x146874['attributes']['groupId'],_0x146874['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x46f6f6['size'])return;const _0x9d7222=_0x1534fb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x416c7a=>'attribute'==_0x416c7a['type']&&_0x416c7a['data']&&_0x52c10e['includes'](_0x416c7a['data']['key'])&&_0x416c7a['attributes']['groupId']!=_0x3393ec)['map'](_0x1ffad7=>({'listItem':_0x1ffad7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1ffad7['attributes']['groupId']})),_0x1fdc54=new Set();for(const {groupId:_0x4d017d,listItem:_0x5603fb}of _0x9d7222)_0x46f6f6['has'](_0x5603fb)&&_0x1fdc54['add'](_0x4d017d);for(const _0x2f52c8 of _0x1534fb['getSuggestions']())_0x1fdc54['has'](_0x2f52c8['attributes']['groupId'])&&_0x2f52c8['setAttribute']('groupId',_0x3393ec);}['_supportLegacySuggestions'](){const _0x3ea95e=this['editor'],_0x47846f=_0x3ea95e['locale'],_0x380143=_0x3ea95e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x380143['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x26bb92,_0x48aa27){const _0x8de686=[];for(let _0x1b0496 of _0x26bb92)_0x1b0496['start']['nodeAfter']===_0x1b0496['end']['parent']&&(_0x1b0496=_0x3ea95e['model']['createRange'](_0x3ea95e['model']['createPositionAt'](_0x1b0496['start']['nodeAfter'],0x0))),_0x8de686['push'](_0x1b0496);_0x3ea95e['model']['change'](_0x329ea0=>{const _0x5eb218=_0x3ea95e['model']['document']['selection'],_0x578d81=Array['from'](_0x5eb218['getRanges']())['map'](_0x397a43=>_0x45518e['fromRange'](_0x397a43));_0x329ea0['setSelection'](_0x8de686),_0x3ea95e['commands']['get'](_0x48aa27['commandName'])['refresh'](),_0x48aa27['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3ea95e['execute'](_0x48aa27['commandName'],..._0x48aa27['commandParams']),_0x329ea0['setSelection'](_0x578d81);for(const _0x2bab92 of _0x578d81)_0x2bab92['detach']();});}),_0x380143['descriptionFactory']['registerElementLabel'](function(_0x555fe7){const _0x2c0e44=!_0x3ea95e['model']['schema']['isObject'](_0x555fe7),_0x409f26=_0x555fe7['previousSibling'],_0x19af9c=_0x555fe7['nextSibling'],_0xa3378c=_0x555fe7['getAttribute']('listItemId'),_0x2ce83c=!_0x409f26||_0x409f26['getAttribute']('listItemId')!==_0xa3378c,_0x2344d2=!_0x19af9c||_0x19af9c['getAttribute']('listItemId')!==_0xa3378c;return _0x2c0e44&&Boolean(_0xa3378c)&&_0x2ce83c&&_0x2344d2;},_0x20f8fa=>o(_0x47846f,'ELEMENT_LIST_ITEM',_0x20f8fa));}['_registerLegacyDescription'](){const _0x35c615=this['editor'],_0x2c1b12=_0x35c615['locale'];function _0x37d8a5(_0x4e9572){const _0x2e73a0=_0x35c615['commands']['get']('bulletedList')['value'],_0x4cc196=_0x35c615['commands']['get']('numberedList')['value'];return'numberedList'===_0x4e9572?_0x2e73a0:_0x4cc196;}_0x35c615['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x378d90){if('formatBlock'!=_0x378d90['type'])return;const {data:_0x3df24b}=_0x378d90;if(!_0x3df24b)return;let _0x43f213,_0x12519f,_0x5b279a,_0x4dc56b;switch(_0x3df24b['commandName']){case'bulletedList':_0x5b279a=_0x3df24b['commandParams'][0x0]['forceValue'],_0x4dc56b=_0x37d8a5(_0x3df24b['commandName']),_0x43f213=_0x5b279a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4dc56b&&_0x35c615['config']['get']('list.multiBlock')||(_0x43f213='*Change\x20to:*\x20%0'),_0x12519f={'type':'format','content':o(_0x2c1b12,_0x43f213,o(_0x2c1b12,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5b279a=_0x3df24b['commandParams'][0x0]['forceValue'],_0x4dc56b=_0x37d8a5(_0x3df24b['commandName']),_0x43f213=_0x5b279a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4dc56b&&_0x35c615['config']['get']('list.multiBlock')||(_0x43f213='*Change\x20to:*\x20%0'),_0x12519f={'type':'format','content':o(_0x2c1b12,_0x43f213,o(_0x2c1b12,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x43f213='*Indent:*\x20%0',_0x12519f={'type':'format','content':o(_0x2c1b12,_0x43f213,o(_0x2c1b12,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x43f213=function(_0x591f87){const _0x514c26=_0x591f87['getFirstRange']();let _0x5ce95d=_0x514c26['start']['nodeAfter'];for(;_0x5ce95d&&_0x514c26['containsItem'](_0x5ce95d);){if(_0x5ce95d['getAttribute']('listIndent')>0x0)return!0x1;_0x5ce95d=_0x5ce95d['nextSibling'];}return!0x0;}(_0x378d90)?o(_0x2c1b12,'*Format:*\x20remove\x20from\x20%0',o(_0x2c1b12,function(_0xe19bf9){return'ELEMENT_'+_0xe19bf9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x378d90))):o(_0x2c1b12,'*Outdent:*\x20%0',o(_0x2c1b12,'ELEMENT_LIST_ITEM')),_0x12519f={'type':'format','content':_0x43f213};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3df24b['multipleBlocks']&&(_0x43f213='*Merge:*\x20%0',_0x12519f={'type':'deletion','content':o(_0x2c1b12,_0x43f213,o(_0x2c1b12,'ELEMENT_LIST_ITEM'))});}return _0x12519f;});}}function Te(_0x2d85be){let _0x15eed6=_0x2d85be['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x15eed6;){const _0x181513=_0x15eed6['getAttribute']('listItemId');if(!_0x181513)return!0x1;if(_0x181513==_0x2d85be['data']['newValue'])return'newValue';if(_0x181513==_0x2d85be['data']['oldValue'])return'oldValue';_0x15eed6=_0x15eed6['previousSibling'];}return!0x1;}class q extends _0x519785{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x21ec25=this['editor']['config']['get']('list.properties'),_0x209819=this['editor']['plugins']['get']('TrackChangesEditing');_0x21ec25['styles']&&(_0x209819['enableDefaultAttributesIntegration']('listStyle'),_0x209819['registerBlockAttribute']('listStyle')),_0x21ec25['reversed']&&(_0x209819['enableDefaultAttributesIntegration']('listReversed'),_0x209819['registerBlockAttribute']('listReversed')),_0x21ec25['startIndex']&&(_0x209819['enableDefaultAttributesIntegration']('listStart'),_0x209819['registerBlockAttribute']('listStart'));const _0x2d9527={'type':'format','content':''};_0x209819['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x33590e=this['editor']['locale'];_0x209819['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x33590e,'FORMAT_LIST_REVERSED')),_0x209819['descriptionFactory']['registerDescriptionCallback'](_0x4de569=>{const {data:_0x18f39c}=_0x4de569;if(_0x18f39c&&'listReversed'==_0x18f39c['key'])return null==_0x18f39c['newValue']||0x0==_0x18f39c['newValue']&&null==_0x18f39c['oldValue']?_0x2d9527:void 0x0;}),_0x209819['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x33590e,'FORMAT_LIST_START')),_0x209819['descriptionFactory']['registerDescriptionCallback'](_0x59bdd1=>{const {data:_0x49cb2d}=_0x59bdd1;if(_0x49cb2d&&'listStart'==_0x49cb2d['key'])return null==_0x49cb2d['newValue']||0x1==_0x49cb2d['newValue']&&null==_0x49cb2d['oldValue']?_0x2d9527:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5d5330=>{if(_0x5d5330['batch']['isUndo'])return!0x1;let _0x48f756=!0x1;const _0x5f1644=_0x209819['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a0f5b=>{const _0x377d60=_0x209819['_getAttributeKey'](_0x2a0f5b);return'listStart'==_0x377d60||'listReversed'==_0x377d60;});for(const _0x37c47b of _0x5f1644){const _0x3050fc=_0x37c47b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3050fc||'customNumbered'==_0x3050fc)continue;_0x209819['_findSuggestions'](_0x37c47b['getFirstRange'](),'attribute')['find'](_0x52aeab=>'listType'==_0x209819['_getAttributeKey'](_0x52aeab['suggestion']))||(_0x5d5330['removeMarker'](_0x37c47b['getFirstMarker']()),_0x48f756=!0x0);}return _0x48f756;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4eee03){const _0x1988ad=this['editor']['locale'],{data:_0x1b2bd6}=_0x4eee03,_0xc9d323={'type':'format','content':''};if(!_0x1b2bd6||'listStyle'!=_0x1b2bd6['key'])return;if(!_0x1b2bd6['oldValue'])return'default'==_0x1b2bd6['newValue']?_0xc9d323:{'type':'format','content':''+o(_0x1988ad,'*Set\x20format:*\x20%0',o(_0x1988ad,this['_getTranslationKeyForListStyle'](_0x1b2bd6['newValue'])))};if(!_0x1b2bd6['newValue']){if('default'==_0x1b2bd6['oldValue'])return _0xc9d323;let _0x19e254=_0x4eee03['head'];for(;_0x19e254;){if(_0x19e254['data']&&'listType'==_0x19e254['data']['key']&&_0x19e254['data']['newValue'])return _0xc9d323;_0x19e254=_0x19e254['next'];}return{'type':'format','content':''+o(_0x1988ad,'*Remove\x20format:*\x20%0',o(_0x1988ad,this['_getTranslationKeyForListStyle'](_0x1b2bd6['oldValue'])))};}if('default'!=_0x1b2bd6['newValue'])return{'type':'format','content':''+o(_0x1988ad,'*Set\x20format:*\x20%0',o(_0x1988ad,this['_getTranslationKeyForListStyle'](_0x1b2bd6['newValue'])))};let _0x2b4274=_0x4eee03['head'];for(;_0x2b4274;){if(_0x2b4274['data']&&'listType'==_0x2b4274['data']['key']&&_0x2b4274['data']['newValue']&&_0x2b4274['data']['oldValue'])return _0xc9d323;_0x2b4274=_0x2b4274['next'];}return{'type':'format','content':o(_0x1988ad,'*Set\x20format:*\x20%0',o(_0x1988ad,'ELEMENT_'+_0x4eee03['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2e84ac=this['editor'],_0x38f279=_0x2e84ac['locale'];_0x2e84ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b2061=>{if('formatBlock'!=_0x3b2061['type'])return;const {data:_0x4274f3}=_0x3b2061;if(!_0x4274f3)return;let _0x5dc027,_0xbe897;switch(_0x4274f3['commandName']){case'listStyle':_0x5dc027='*Change\x20to:*\x20%0',_0xbe897={'type':'format','content':o(_0x38f279,_0x5dc027,o(_0x38f279,this['_getTranslationKeyForListStyle'](_0x4274f3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5dc027=_0x4274f3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xbe897={'type':'format','content':o(_0x38f279,_0x5dc027)};break;case'listStart':_0x5dc027='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xbe897={'type':'format','content':o(_0x38f279,_0x5dc027,_0x4274f3['commandParams'][0x0]['startIndex'])};}return _0xbe897;});}['_getTranslationKeyForListStyle'](_0x38b787){return'ELEMENT_'+function(_0x47fb0){if(Se['includes'](_0x47fb0))return'bulleted';if(_e['includes'](_0x47fb0))return'numbered';return null;}(_0x38b787)['toUpperCase']()+'_LIST_'+_0x38b787['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x519785{['afterInit'](){const _0x543e4e=this['editor'];_0x543e4e['commands']['get']('emoji')&&_0x543e4e['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x519785{static get['requires'](){return[_0x40d804];}['init'](){const _0x38dff8=this['editor'],_0xaf2306=_0x38dff8['plugins']['get']('TrackChangesEditing'),_0x2166f9=_0x38dff8['commands']['get']('enter');_0xaf2306['enableCommand']('enter',()=>{_0x38dff8['model']['change'](_0x249c60=>{const _0x1272dd=_0x38dff8['model']['document']['selection'],_0x402344=_0x1272dd['getFirstPosition'](),_0x2680cf=_0x45518e['fromRange'](_0x1272dd['getFirstRange']());if(_0x2166f9['enterBlock'](_0x249c60)){const _0x2719bd=_0x38dff8['model']['createPositionAt'](_0x402344['parent']['nextSibling'],0x0),_0x39ad89=_0x249c60['createRange'](_0x402344,_0x2719bd);_0xaf2306['markInsertion'](_0x39ad89);}else _0x249c60['setSelection'](_0x249c60['createRange'](_0x2680cf['end']));_0x2680cf['detach'](),_0x2166f9['fire']('afterExecute',{'writer':_0x249c60});});}),_0x38dff8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x38dff8,'split'),{'priority':'high'}),_0x38dff8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x49b8df,_0x595928,_0x3c138e)=>{const _0x51e6a9=_0x3c138e['mapper']['markerNameToElements'](_0x595928['markerName']);if(_0x51e6a9){for(const _0x11ba8a of _0x51e6a9)_0x11ba8a['hasClass']('ck-suggestion-marker-split')&&(_0x3c138e['mapper']['unbindElementFromMarkerName'](_0x11ba8a,_0x595928['markerName']),_0x3c138e['writer']['remove'](_0x11ba8a));}},{'priority':'high'}),_0x38dff8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4f4041,_0x5cab08,_0x5f2f94)=>{_0x5f2f94['options']['showSuggestionHighlights']&&De(_0x38dff8,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4f4041,_0x5cab08,_0x5f2f94);},{'priority':'high'});}}class Q extends _0x519785{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3bbf50=this['editor']['plugins']['get']('TrackChangesEditing');_0x3bbf50['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3bbf50['enableCommand']('findNext'),_0x3bbf50['enableCommand']('findPrevious'),_0x3bbf50['enableCommand']('replace'),_0x3bbf50['enableCommand']('replaceAll');}['handleFindCommand'](_0x275424,_0x2d0b24,_0x554945={}){const _0x30c8f5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x275424(_0x31c962=>{let _0x2611b6=('string'==typeof _0x2d0b24?_0x30c8f5['findByTextCallback'](_0x2d0b24,_0x554945):_0x2d0b24)(_0x31c962);Array['isArray'](_0x2611b6)&&(_0x2611b6={'results':_0x2611b6,'searchText':'string'==typeof _0x2d0b24?_0x2d0b24:''});const _0x3b3388=_0x2611b6['results']['filter'](_0x3ac597=>!0x1===this['_isInDeletionRange'](_0x3ac597,_0x31c962['item']));return{..._0x2611b6,'results':_0x3b3388};},_0x554945);}['_isInDeletionRange'](_0x4a19d4,_0x1aee85){const _0x292d27=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1aee85,_0x4a19d4['start']),this['editor']['model']['createPositionAt'](_0x1aee85,_0x4a19d4['end']));for(const _0x31fe05 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x292d27['getIntersection'](_0x31fe05['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x519785{['afterInit'](){const _0x1f09b5=this['editor']['locale'],_0x306e9c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x551403,commandName:_0x59c868}of eo)this['editor']['plugins']['has'](_0x551403)&&(_0x306e9c['enableDefaultAttributesIntegration'](_0x59c868),_0x306e9c['registerInlineAttribute'](_0x59c868));_0x306e9c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1f09b5,'FORMAT_FONT_SIZE')),_0x306e9c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1f09b5,'FORMAT_FONT_FAMILY')),_0x306e9c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1f09b5,'FORMAT_FONT_COLOR')),_0x306e9c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1f09b5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x404fab=this['editor'],_0x5bacae=_0x404fab['locale'];_0x404fab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f7bbc=>{const _0x9a696a=_0x5bacae['t'];if('formatInline'!=_0x4f7bbc['type'])return;const {data:_0x2cfd71}=_0x4f7bbc;if(null!=_0x2cfd71){if('fontSize'==_0x2cfd71['commandName']){const _0x264944=_0x2cfd71['commandParams'][0x0]['value'];if(_0x264944){const _0x411a49=_0x9a696a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x32bb0a=>_0x32bb0a['model']==_0x264944)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5bacae,'*Set\x20font\x20size:*\x20%0',_0x411a49)};}return{'type':'format','content':o(_0x5bacae,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2cfd71['commandName']){const _0x40e87a=_0x2cfd71['commandParams'][0x0]['value'];return _0x40e87a?{'type':'format','content':o(_0x5bacae,'*Set\x20font\x20family:*\x20%0',_0x40e87a)}:{'type':'format','content':o(_0x5bacae,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2cfd71['commandName']){const _0x12c3f3=_0x2cfd71['commandParams'][0x0]['value'];if(_0x12c3f3){const _0x481fd4=_0x1031d7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3266b3=>_0x3266b3['model']==_0x12c3f3);let _0x1e77f8=_0x12c3f3,_0x28023c='';return _0x481fd4&&(_0x1e77f8=_0x481fd4['label'],_0x28023c=_0x9a696a(_0x1e77f8)['toLowerCase']()),{'type':'format','content':o(_0x5bacae,'*Set\x20font\x20color:*\x20%0',_0x28023c)['trim'](),'color':{'value':_0x12c3f3,'title':_0x28023c||_0x1e77f8}};}return{'type':'format','content':o(_0x5bacae,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2cfd71['commandName']){const _0x5cc8df=_0x2cfd71['commandParams'][0x0]['value'];if(_0x5cc8df){const _0x3dc60b=_0x1031d7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3e1852=>_0x3e1852['model']==_0x5cc8df);let _0xfbdc00=_0x5cc8df,_0x449faa='';return _0x3dc60b&&(_0xfbdc00=_0x3dc60b['label'],_0x449faa=_0x9a696a(_0xfbdc00)['toLowerCase']()),{'type':'format','content':o(_0x5bacae,'*Set\x20font\x20background\x20color:*\x20%0',_0x449faa)['trim'](),'color':{'value':_0x5cc8df,'title':_0x449faa||_0xfbdc00}};}return{'type':'format','content':o(_0x5bacae,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x519785{['afterInit'](){const _0x382d1f=this['editor'],_0x285d22=_0x382d1f['plugins']['get']('TrackChangesEditing'),_0x46716c=_0x382d1f['commands']['get']('copyFormat'),_0x5abac4=_0x382d1f['commands']['get']('pasteFormat');_0x46716c&&_0x5abac4&&(_0x285d22['enableDefaultAttributesIntegration']('pasteFormat'),_0x285d22['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x496c22=this['editor'],_0x1d701b=_0x496c22['locale'];_0x496c22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ffdbf=>{if('formatBlock'!=_0x4ffdbf['type']&&'formatInline'!=_0x4ffdbf['type'])return;const {data:_0x26bc37}=_0x4ffdbf;if(_0x26bc37&&'pasteFormat'===_0x26bc37['commandName']){const _0x14aa4a=[],_0x1638a5=_0x26bc37['commandParams'][0x0];for(const [_0x3dcca2,_0x19a8e0]of Object['entries'](_0x1638a5))_0x14aa4a['push'](ro(_0x496c22,_0x3dcca2,_0x19a8e0));return _0x14aa4a['length']?{'type':'format','content':o(_0x1d701b,'*Set\x20format\x20to:*\x20%0',_0x14aa4a['join'](',\x20'))}:{'type':'format','content':o(_0x1d701b,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x347bb2,_0xe8f2a9,_0x5776dc){const _0x4844f1=_0x347bb2['locale']['t'],_0x536a37=_0xe8f2a9['split'](/(?=[A-Z])/)['join']('\x20'),_0x26db8e=_0x4844f1(_0x536a37['charAt'](0x0)['toUpperCase']()+_0x536a37['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5776dc)return _0x26db8e;if('fontColor'===_0xe8f2a9||'fontBackgroundColor'===_0xe8f2a9){const _0x4276b7=_0x1031d7(_0x347bb2['config']['get']('fontColor.colors'))['find'](_0x148895=>_0x148895['model']==_0x5776dc);return _0x26db8e+'\x20('+(_0x4276b7?_0x4844f1(_0x4276b7['label'])['toLowerCase']():_0x5776dc)+')';}if('fontSize'===_0xe8f2a9&&isNaN(parseFloat(_0x5776dc))){const _0x47cc97=_0x347bb2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x347bb2['config']['get']('fontSize.options'))['find'](_0x520e54=>_0x520e54['model']==_0x5776dc);return _0x26db8e+'\x20('+(_0x47cc97?_0x4844f1(_0x47cc97['title'])['toLowerCase']():_0x5776dc)+')';}return _0x26db8e+'\x20('+_0x5776dc+')';}class Z extends _0x519785{['_headingOptions'];['afterInit'](){const _0x206d09=this['editor'];if(!_0x206d09['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x206d09['config']['get']('heading.options');const _0x4d6a73=_0x206d09['locale'],_0x514a0b=_0x206d09['plugins']['get']('TrackChangesEditing');_0x514a0b['enableDefaultAttributesIntegration']('heading');for(const _0x51c9d7 of this['_headingOptions'])'paragraph'!=_0x51c9d7['model']&&_0x514a0b['descriptionFactory']['registerElementLabel'](_0x51c9d7['model'],_0x25f75b=>{const _0x17086b=this['_getHeadingLevel'](_0x51c9d7['model']);return null!==_0x17086b?_0x49d876(_0x25f75b,_0x17086b):_0xb25ea3(_0x25f75b,_0x51c9d7['title']);});function _0x49d876(_0xb48aea,_0x76c8b4){return o(_0x4d6a73,'ELEMENT_HEADING',[_0xb48aea,_0x76c8b4]);}function _0xb25ea3(_0x2d478c,_0x31fb8c){return o(_0x4d6a73,'ELEMENT_HEADING_CUSTOM',[_0x2d478c,_0x31fb8c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1255fb=this['editor'],_0x44f652=_0x1255fb['locale'];function _0x419ce2(_0x4ad693,_0x5557d6){return o(_0x44f652,'ELEMENT_HEADING_CUSTOM',[_0x4ad693,_0x5557d6]);}_0x1255fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c3500=>{if('formatBlock'!=_0x3c3500['type'])return;const {data:_0x5c1184}=_0x3c3500;if(_0x5c1184&&'heading'==_0x5c1184['commandName']){const _0x6fe908=_0x5c1184['commandParams'][0x0]['value'],_0x292f80=this['_getHeadingLevel'](_0x6fe908);if(null!==_0x292f80)return{'type':'format','content':o(_0x44f652,'*Change\x20to:*\x20%0',(_0x532214=0x1,_0x102e61=_0x292f80,o(_0x44f652,'ELEMENT_HEADING',[_0x532214,_0x102e61])))};const _0x1257ed=this['_headingOptions']['find'](_0x44519b=>_0x44519b['model']===_0x6fe908)['title'];return{'type':'format','content':o(_0x44f652,'*Change\x20to:*\x20%0',_0x419ce2(0x1,_0x1257ed))};}var _0x532214,_0x102e61;});}['_getHeadingLevel'](_0x3d346a){const _0x202ac5=_0x3d346a['match'](/^heading(\d+)/);if(_0x202ac5)return _0x202ac5[0x1];const _0x12edca=this['_headingOptions']?.['find'](_0x3d8deb=>_0x3d8deb['model']==_0x3d346a);if(_0x12edca&&_0x12edca['view']){const _0x299bcd=_0x12edca['view'],_0x23ebe3=(_0x299bcd['name']??_0x299bcd)['match'](/^h(\d+)/);if(_0x23ebe3)return _0x23ebe3[0x1];}return null;}}class tt extends _0x519785{['afterInit'](){const _0x42f239=this['editor'];if(!_0x42f239['plugins']['has']('HighlightEditing'))return;const _0x173d2e=_0x42f239['plugins']['get']('TrackChangesEditing'),_0x2399a4=_0x42f239['locale'];_0x173d2e['enableDefaultAttributesIntegration']('highlight'),_0x173d2e['registerInlineAttribute']('highlight'),_0x173d2e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2399a4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcfe396=this['editor'],_0x146e61=_0xcfe396['locale'];_0xcfe396['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b4227=>{if('formatInline'!=_0x2b4227['type'])return;const {data:_0x11601a}=_0x2b4227;if(_0x11601a&&'highlight'==_0x11601a['commandName']){const _0x14b67c=_0x146e61['t'],_0xb14035=_0x11601a['commandParams'][0x0]['value'];if(_0xb14035){const _0x4b981e=_0xcfe396['config']['get']('highlight.options')['find'](_0x567b4b=>_0x567b4b['model']==_0xb14035),_0x3afb15=_0x14b67c(_0x4b981e['title'])['toLowerCase']();return{'type':'format','content':o(_0x146e61,'*Set\x20highlight:*\x20%0',_0x3afb15),'color':{'value':_0x4b981e['color'],'title':_0x4b981e['title']}};}return{'type':'format','content':o(_0x146e61,'*Remove\x20highlight*',o(_0x146e61,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x519785{['afterInit'](){const _0xcba0ac=this['editor'];if(!_0xcba0ac['plugins']['has']('HorizontalLineEditing'))return;_0xcba0ac['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x363d92=_0xcba0ac['plugins']['get']('TrackChangesEditing'),_0x56d9ed=_0xcba0ac['locale'];_0x363d92['descriptionFactory']['registerElementLabel']('horizontalLine',_0x47691d=>o(_0x56d9ed,'ELEMENT_HORIZONTAL_LINE',_0x47691d)),_0xcba0ac['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2170d5,{writer:_0x2af3e9,options:_0x7acc39})=>{if(!_0x7acc39['showSuggestionHighlights'])return null;const _0x52f588=_0x2af3e9['createContainerElement']('div'),_0x1db80b=_0x2af3e9['createEmptyElement']('hr');return _0x2af3e9['addClass']('ck-horizontal-line',_0x52f588),_0x2af3e9['insert'](_0x2af3e9['createPositionAt'](_0x52f588,0x0),_0x1db80b),_0x52f588;},'converterPriority':'high'});}}class nt extends _0x519785{['afterInit'](){const _0x58def5=this['editor'];if(!_0x58def5['plugins']['has']('HtmlEmbed'))return;const _0x36a103=_0x58def5['plugins']['get']('TrackChangesEditing'),_0xd3b1e4=_0x58def5['locale'];_0x36a103['descriptionFactory']['registerElementLabel']('rawHtml',_0x3d8efb=>o(_0xd3b1e4,'ELEMENT_HTML_EMBED',_0x3d8efb)),_0x36a103['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36a103['registerBlockAttribute']('value'),_0x36a103['descriptionFactory']['registerDescriptionCallback'](_0x5eb66d=>{if('attribute'!=_0x5eb66d['type'])return;const {data:_0x581229}=_0x5eb66d;if(_0x581229&&'value'==_0x581229['key']&&_0x5eb66d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x26f932=o(_0xd3b1e4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xd3b1e4,'*Change\x20%0\x20content*',_0x26f932)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x268b74=this['editor'],_0x4a95dd=_0x268b74['locale'];_0x268b74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe1464d=>{if('formatBlock'!=_0xe1464d['type'])return;const {data:_0x3d02c5}=_0xe1464d;if(_0x3d02c5&&'htmlEmbed'==_0x3d02c5['commandName']){const _0x5ef80a=o(_0x4a95dd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4a95dd,'*Change\x20%0\x20content*',_0x5ef80a)};}});}}class et extends _0x519785{['afterInit'](){const _0x4c0e74=this['editor'];if(!_0x4c0e74['plugins']['has']('ImageEditing'))return;const _0x271a62=_0x4c0e74['plugins']['get']('TrackChangesEditing'),_0x206560=_0x4c0e74['plugins']['get']('ImageUtils'),_0x87c3ff=_0x4c0e74['locale'];_0x271a62['enableCommand']('insertImage'),_0x271a62['descriptionFactory']['registerElementLabel']('imageBlock',_0x10b8c5=>o(_0x87c3ff,'ELEMENT_IMAGE',_0x10b8c5)),_0x271a62['descriptionFactory']['registerElementLabel']('imageInline',_0x4321cb=>o(_0x87c3ff,'ELEMENT_INLINE_IMAGE',_0x4321cb)),_0x271a62['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x87c3ff,'ELEMENT_CAPTION')),_0x4c0e74['plugins']['has']('ImageUploadEditing')&&_0x271a62['enableCommand']('uploadImage'),_0x4c0e74['plugins']['has']('ImageBlockEditing')&&_0x4c0e74['plugins']['has']('ImageInlineEditing')&&(_0x271a62['enableCommand']('imageTypeInline',(_0x35a0a5,_0x22aec5)=>{const _0x2d0029=_0x206560['getClosestSelectedImageElement'](_0x4c0e74['model']['document']['selection']);_0x4c0e74['model']['change'](()=>{_0x271a62['markBlockFormat'](_0x2d0029,{'commandName':'imageTypeInline','commandParams':[_0x22aec5]},[],'convertBlockImageToInline');});}),_0x271a62['enableCommand']('imageTypeBlock',(_0xbc8b5c,_0x23e34e)=>{_0x4c0e74['model']['change'](_0x47ec42=>{let _0x4aa48a=_0x206560['getClosestSelectedImageElement'](_0x4c0e74['model']['document']['selection']),_0x47d627=_0x47ec42['createRangeOn'](_0x4aa48a);const _0x256a30=_0x25db75['fromPosition'](_0x47d627['start'],'toPrevious'),_0x1eccec=_0x25db75['fromPosition'](_0x47d627['end'],'toNext');_0x271a62['forceDefaultExecution'](()=>_0xbc8b5c(_0x23e34e)),_0x4aa48a=_0x206560['getClosestSelectedImageElement'](_0x4c0e74['model']['document']['selection']),_0x47d627=_0x47ec42['createRangeOn'](_0x4aa48a);const _0xea0e78=_0x47ec42['createRange'](_0x256a30,_0x1eccec);_0x256a30['detach'](),_0x1eccec['detach'](),_0x271a62['markBlockFormat'](_0x4aa48a,{'commandName':'imageTypeInline','commandParams':[_0x23e34e]},[],'convertInlineImageToBlock'),_0xea0e78['start']['isBefore'](_0x47d627['start'])&&_0x271a62['markInsertion'](_0x47ec42['createRange'](_0xea0e78['start'],_0x47d627['start']),'convertInlineImageToBlock'),_0x47d627['end']['isBefore'](_0xea0e78['end'])&&_0x271a62['markInsertion'](_0x47ec42['createRange'](_0x47d627['end'],_0xea0e78['end']),'convertInlineImageToBlock');});}),_0x271a62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x271a62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x271a62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x271a62['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x271a62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x271a62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x247dd9])=>{const _0x3df913=_0x271a62['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x27ef18=_0x247dd9['start'],_0x40eff6=_0x247dd9['end'];const _0x55d8c8=_0x4c0e74['model']['schema']['getNearestSelectionRange'](_0x27ef18,'backward'),_0x4fb18d=_0x4c0e74['model']['schema']['getNearestSelectionRange'](_0x40eff6,'forward');_0x55d8c8['isCollapsed']&&(_0x27ef18=_0x55d8c8['start']),_0x4fb18d['isCollapsed']&&(_0x40eff6=_0x4fb18d['end']),_0x3df913([_0x4c0e74['model']['createRange'](_0x27ef18,_0x40eff6)]);}),_0x271a62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3dccc7),_0x271a62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3dccc7)),_0x4c0e74['plugins']['has']('ImageCaptionEditing')&&(_0x271a62['enableCommand']('toggleImageCaption',(_0x211c88,_0x34d11b)=>{const _0x35b201=_0x4c0e74['plugins']['get']('ImageCaptionUtils');let _0x22a591=_0x206560['getClosestSelectedImageElement'](_0x4c0e74['model']['document']['selection']),_0x25aadd=_0x35b201['getCaptionFromImageModelElement'](_0x22a591);_0x4c0e74['model']['change'](()=>{if(_0x25aadd)return void _0x271a62['markDeletion'](_0x4c0e74['model']['createRangeOn'](_0x25aadd));const _0x568920=_0x206560['isBlockImage'](_0x22a591);_0x211c88(_0x34d11b),_0x22a591=_0x206560['getClosestSelectedImageElement'](_0x4c0e74['model']['document']['selection']),_0x25aadd=_0x35b201['getCaptionFromImageModelElement'](_0x22a591),_0x271a62['markInsertion'](_0x4c0e74['model']['createRangeOn'](_0x25aadd),_0x568920?null:'imageCaption');});}),_0x271a62['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3dccc7));const _0x138be0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5e1c58(_0x24d50a,_0x400c9c){const _0x3ddacf=_0x138be0['findIndex'](({type:_0x5c1b2f,subType:_0x43a1a3})=>_0x24d50a['type']==_0x5c1b2f&&_0x24d50a['subType']==_0x43a1a3),_0x3d6c6a=_0x138be0['findIndex'](({type:_0x3229e2,subType:_0xdd4417})=>_0x400c9c['type']==_0x3229e2&&_0x400c9c['subType']==_0xdd4417);if(_0x3ddacf<0x0||_0x3d6c6a<0x0)return!0x1;const _0x253bc1=_0x24d50a['getFirstRange'](),_0x390003=_0x400c9c['getFirstRange']();if((0x0==_0x3ddacf||0x1==_0x3ddacf)&&0x2==_0x3d6c6a&&_0x253bc1['isIntersecting'](_0x390003))return!0x0;if(0x2==_0x3ddacf&&0x3==_0x3d6c6a){const _0x4220fc=_0x271a62['_findSuggestions'](_0x253bc1,'insertion')['filter'](({suggestion:_0x462c08,meta:_0x5d5b2f})=>_0x5d5b2f['isOwn']&&'convertInlineImageToBlock'==_0x462c08['subType']);if(_0x4220fc['length']>0x1&&_0x390003['end']['isEqual'](_0x253bc1['start']))return!0x0;if(0x1==_0x4220fc['length']&&(_0x253bc1['start']['isEqual'](_0x390003['end'])||_0x253bc1['end']['isEqual'](_0x390003['start'])))return!0x0;}if(0x3==_0x3ddacf&&0x3==_0x3d6c6a&&_0x253bc1['start']['isBefore'](_0x390003['start'])){const _0x152b00=_0x253bc1['end']['nodeAfter'],_0x46419a=_0x390003['start']['nodeBefore'];return _0x206560['isBlockImage'](_0x152b00)&&_0x152b00===_0x46419a;}return!0x1;}function _0x3dccc7(_0x4e08f4,_0x2eb674){return _0x5e1c58(_0x4e08f4,_0x2eb674)?[_0x4e08f4,_0x2eb674]:_0x5e1c58(_0x2eb674,_0x4e08f4)?[_0x2eb674,_0x4e08f4]:null;}_0x4c0e74['plugins']['has']('ImageResize')&&(_0x271a62['enableDefaultAttributesIntegration']('resizeImage'),_0x271a62['registerBlockAttribute']('resizedWidth'),_0x271a62['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x87c3ff,'FORMAT_IMAGE_SIZE'))),_0x4c0e74['plugins']['has']('ImageTextAlternativeEditing')&&(_0x271a62['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x271a62['registerBlockAttribute']('alt')),_0x4c0e74['plugins']['has']('PictureEditing')&&(_0x271a62['registerBlockAttribute']('sources'),_0x271a62['descriptionFactory']['registerDescriptionCallback'](_0x489c24=>{if('attribute'!=_0x489c24['type'])return;const {data:_0x2d7d04}=_0x489c24;return _0x2d7d04&&'sources'==_0x2d7d04['key']?{'type':'format','content':''}:void 0x0;})),_0x4c0e74['plugins']['has']('ImageSizeAttributes')&&(_0x271a62['registerBlockAttribute']('width'),_0x271a62['registerBlockAttribute']('height'),_0x271a62['descriptionFactory']['registerDescriptionCallback'](_0x33c44d=>{if('attribute'!=_0x33c44d['type'])return;const {data:_0x1317ff}=_0x33c44d;return!_0x1317ff||'width'!=_0x1317ff['key']&&'height'!=_0x1317ff['key']?void 0x0:{'type':'format','content':''};})),_0x271a62['descriptionFactory']['registerDescriptionCallback'](_0x56dc30=>{if(!!_0x138be0['find'](({type:_0x271916,subType:_0x5a2445})=>_0x56dc30['type']==_0x271916&&_0x56dc30['subType']==_0x5a2445))return _0x56dc30['previous']?{}:void 0x0;}),_0x271a62['descriptionFactory']['registerDescriptionCallback'](_0x286125=>{if('insertion'==_0x286125['type']||'deletion'==_0x286125['type']){const _0x290612=_0x286125['getContainedElement']();if(_0x290612&&_0x290612['is']('element','caption'))return{'type':'insertion'==_0x286125['type']?'addObject':'removeObject','element':_0x290612,'quantity':0x1};}}),_0x271a62['descriptionFactory']['registerDescriptionCallback'](_0x35a344=>'formatBlock'==_0x35a344['type']&&'convertInlineImageToBlock'==_0x35a344['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x35a344['type']&&'convertBlockImageToInline'==_0x35a344['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x271a62['descriptionFactory']['registerDescriptionCallback'](_0x1c7c3a=>{if('attribute'!=_0x1c7c3a['type'])return;const {data:_0xff38f8}=_0x1c7c3a;if(!_0xff38f8||'alt'!=_0xff38f8['key'])return;const _0x547ae8=_0xff38f8['newValue'];return _0x547ae8?{'type':'format','content':o(_0x87c3ff,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x547ae8+'\x22')}:{'type':'format','content':o(_0x87c3ff,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xee9ce7=this['editor'],_0x78fb06=_0xee9ce7['locale'];_0xee9ce7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27aaa7=>{if('formatBlock'!=_0x27aaa7['type']&&'formatInline'!=_0x27aaa7['type'])return;const {data:_0x3e39d6}=_0x27aaa7;if(_0x3e39d6){if('imageTextAlternative'==_0x3e39d6['commandName']){const _0x4015cb=_0x3e39d6['commandParams'][0x0]['newValue'];return _0x4015cb?{'type':'format','content':o(_0x78fb06,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4015cb+'\x22')}:{'type':'format','content':o(_0x78fb06,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3e39d6['commandName']){const _0x5207fd=_0x3e39d6['commandParams'][0x0]['width'];return _0x5207fd?{'type':'format','content':o(_0x78fb06,'*Set\x20image\x20width:*\x20%0',_0x5207fd)}:{'type':'format','content':o(_0x78fb06,'*Reset\x20image\x20width*')};}}});}}class st extends _0x519785{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1526fc=this['editor']['locale'],_0x219c76=this['editor']['plugins']['get']('TrackChangesEditing');_0x219c76['enableDefaultAttributesIntegration']('replaceImageSource'),_0x219c76['registerBlockAttribute']('src'),_0x219c76['descriptionFactory']['registerDescriptionCallback'](_0x5084a5=>{if('attribute'!=_0x5084a5['type'])return;const {data:_0x503675}=_0x5084a5;return _0x503675&&'src'==_0x503675['key']?_0x503675['newValue']&&_0x503675['oldValue']?{'type':'format','content':o(_0x1526fc,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x35aedd=this['editor']['plugins']['get']('TrackChangesEditing');_0x35aedd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x35aedd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x35aedd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x35aedd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f5c5a=this['editor'],_0x51b104=_0x1f5c5a['locale'];_0x1f5c5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57bd4c=>{if('formatBlock'!=_0x57bd4c['type']&&'formatInline'!=_0x57bd4c['type'])return;const {data:_0x449951}=_0x57bd4c;if(!_0x449951||'replaceImageSource'!=_0x449951['commandName'])return;return{'type':'format','content':o(_0x51b104,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x519785{['afterInit'](){const _0x3717dc=this['editor'];if(!_0x3717dc['plugins']['has']('ImageStyleEditing'))return;const _0xe7ff0b=_0x3717dc['plugins']['get']('TrackChangesEditing'),_0xb12c23=_0x3717dc['plugins']['get']('ImageUtils'),_0x47b201={};_0xe7ff0b['enableCommand']('imageStyle',(_0x4059eb,_0x30f34f)=>{const _0x17aa69=_0x3717dc['plugins']['get']('Users')['me'],_0x3cd2ba=_0x3717dc['commands']['get']('imageStyle');let _0x1fc963=_0xb12c23['getClosestSelectedImageElement'](_0x3717dc['model']['document']['selection']),_0x33ff16=_0x3717dc['model']['createRangeOn'](_0x1fc963),_0x499e74=_0x3cd2ba['value'];if(_0x499e74==_0x30f34f['value'])return;const _0x2ced55={'commandName':'imageStyle','commandParams':[_0x30f34f],'formatGroupId':_0x19694d()};_0x3717dc['model']['change'](()=>{if(_0xe7ff0b['getSuggestions']()['filter'](_0x11bda4=>_0x11bda4['isInContent']&&_0x17aa69==_0x11bda4['author']&&('formatBlock'==_0x11bda4['type']||'formatInline'==_0x11bda4['type'])&&('imageStylePreApply'==_0x11bda4['subType']||'imageStylePostApply'==_0x11bda4['subType'])&&_0x11bda4['getFirstRange']()['isEqual'](_0x33ff16))['forEach'](_0x395297=>_0xe7ff0b['discardSuggestion'](_0x395297['head'])),_0x1fc963=_0xb12c23['getClosestSelectedImageElement'](_0x3717dc['model']['document']['selection']),_0x33ff16=_0x3717dc['model']['createRangeOn'](_0x1fc963),_0x3cd2ba['refresh'](),_0x3717dc['commands']['get']('imageTypeInline')['refresh'](),_0x3717dc['commands']['get']('imageTypeBlock')['refresh'](),_0x499e74=_0x3cd2ba['value'],_0x499e74!=_0x30f34f['value'])return _0xb12c23['isInlineImage'](_0x1fc963)&&_0x3cd2ba['shouldConvertImageType'](_0x30f34f['value'],_0x1fc963)?(_0x4059eb({..._0x30f34f,'setImageSizes':!0x1}),_0x1fc963=_0xb12c23['getClosestSelectedImageElement'](_0x3717dc['model']['document']['selection']),void _0xe7ff0b['markBlockFormat'](_0x1fc963,{..._0x2ced55,'commandReversedParams':[{'value':_0x499e74||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xb12c23['isBlockImage'](_0x1fc963)?_0xe7ff0b['markBlockFormat'](_0x1fc963,_0x2ced55,[],'imageStylePostApply'):_0xe7ff0b['markInlineFormat'](_0x33ff16,_0x2ced55,'imageStylePostApply'));});});for(const _0x33d8c1 of _0x3717dc['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x47b201[_0x33d8c1['name']]=_0x33d8c1['title']['toLowerCase']();_0xe7ff0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xe7ff0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xe7ff0b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xe7ff0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x18fdd8])=>{_0xb12c23['setImageNaturalSizeAttributes'](_0x18fdd8['getContainedElement']());}),_0xe7ff0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2ab931,_0x2b949f)=>{_0xe7ff0b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2ab931,{'commandName':_0x2b949f['commandName'],'commandParams':_0x2b949f['commandReversedParams']});}),_0xe7ff0b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1704fd,_0x3228a1){if(_0x29b891(_0x1704fd,_0x3228a1))return[_0x1704fd,_0x3228a1];if(_0x29b891(_0x3228a1,_0x1704fd))return[_0x3228a1,_0x1704fd];return null;});const _0x24b4ac=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x29b891(_0x2cea37,_0x5bb9fc){const _0x5151cf=_0x24b4ac['findIndex'](({type:_0x2132f8,subType:_0x2e568b})=>_0x2cea37['type']==_0x2132f8&&_0x2cea37['subType']==_0x2e568b),_0x5ceac9=_0x24b4ac['findIndex'](({type:_0xc21e7a,subType:_0x450b15})=>_0x5bb9fc['type']==_0xc21e7a&&_0x5bb9fc['subType']==_0x450b15);if(_0x5151cf<0x0||_0x5ceac9<0x0)return!0x1;const _0x5f45ca=_0x2cea37['getFirstRange'](),_0x590d52=_0x5bb9fc['getFirstRange']();if((0x0==_0x5151cf||0x1==_0x5151cf)&&0x2==_0x5ceac9&&_0x5f45ca['isIntersecting'](_0x590d52))return!0x0;if(0x2==_0x5151cf&&0x3==_0x5ceac9){const _0x1bb31a=_0xe7ff0b['_findSuggestions'](_0x5f45ca,'insertion')['filter'](({suggestion:_0x4c6660,meta:_0x5200f4})=>_0x5200f4['isOwn']&&'convertInlineImageToBlock'==_0x4c6660['subType']);if(_0x1bb31a['length']>0x1&&_0x590d52['end']['isEqual'](_0x5f45ca['start']))return!0x0;if(0x1==_0x1bb31a['length']&&(_0x5f45ca['start']['isEqual'](_0x590d52['end'])||_0x5f45ca['end']['isEqual'](_0x590d52['start'])))return!0x0;}if(0x3==_0x5151cf&&0x3==_0x5ceac9&&_0x5f45ca['start']['isBefore'](_0x590d52['start'])){const _0x2d569d=_0x5f45ca['end']['nodeAfter'],_0x56c71a=_0x590d52['start']['nodeBefore'];return _0xb12c23['isBlockImage'](_0x2d569d)&&_0x2d569d===_0x56c71a;}return!0x1;}_0x3717dc['model']['document']['registerPostFixer'](()=>{let _0x263709=!0x1;const _0x923aab=Array['from'](_0x3717dc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x317569,data:_0x2f54bd}of _0x923aab){const {group:_0x4941aa,type:_0x2ff21f,subType:_0x10bc28,id:_0x55e5ed}=_0xe7ff0b['_splitMarkerName'](_0x317569);if('suggestion'==_0x4941aa&&_0xe7ff0b['hasSuggestion'](_0x55e5ed)){if('formatBlock'==_0x2ff21f&&('imageStylePreApply'==_0x10bc28||'imageStylePostApply'==_0x10bc28)){const _0x403fec=_0xe7ff0b['getSuggestion'](_0x55e5ed);if(_0x2f54bd['newRange']){const _0x34bd50=_0x403fec['getFirstRange']()['getContainedElement']();if(_0xb12c23['isBlockImage'](_0x34bd50))continue;_0xe7ff0b['discardSuggestion'](_0x403fec),_0x263709=!0x0;}}if('insertion'==_0x2ff21f&&'imageCaption'==_0x10bc28&&!_0x2f54bd['newRange']){const _0x576e5b=_0xe7ff0b['getSuggestion'](_0x55e5ed);_0x576e5b['next']&&_0x576e5b['next']['isInContent']&&(_0xe7ff0b['discardSuggestion'](_0x576e5b['next']),_0x263709=!0x0);}}}return _0x263709;}),this['_registerLegacyDescription'](_0x47b201);}['_registerLegacyDescription'](_0x205d03){const _0x5458b2=this['editor'],_0x3eb863=_0x5458b2['locale'];_0x5458b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdff6c9=>{if('formatBlock'!=_0xdff6c9['type']&&'formatInline'!=_0xdff6c9['type'])return;const {data:_0x21b748}=_0xdff6c9;if(!_0x21b748||'imageStyle'!=_0x21b748['commandName'])return;const _0x2e6ae6=_0x21b748['commandParams'][0x0]['value'];return _0x5989f7('side'===_0x2e6ae6?o(_0x3eb863,'FORMAT_SIDE_IMAGE'):_0x205d03[_0x2e6ae6]||_0x2e6ae6);function _0x5989f7(_0x5972de){return{'type':'format','content':o(_0x3eb863,'*Format:*\x20%0',_0x5972de)};}});}}class rt extends _0x519785{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x229fc1){super(_0x229fc1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x44d419=this['editor'],_0x4cdd5f=_0x44d419['commands']['get']('importWord'),_0x322e90=_0x44d419['commands']['get']('trackChanges');_0x4cdd5f&&(_0x4cdd5f['on']('execute',(_0x2e5d36,[,_0x2019e6])=>{this['_trackChangesValueDuringImport']=_0x322e90['value'],_0x2019e6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4cdd5f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4cdd5f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x322e90['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x44d419['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x10183e,_0x288666){const {suggestions:_0x1ff3b9}=_0x288666,_0x43b468=this['editor']['commands']['get']('trackChanges'),_0x57139c=_0x43b468['value'];this['_trackChangesValueDuringImport']!==_0x57139c&&(_0x43b468['execute'](),this['_trackChangesExecuted']=!0x0),_0x1ff3b9&&_0x1ff3b9['forEach'](({id:_0x123736,type:_0x32bb6d,author:_0x27b02b,created_at:_0x9846ea})=>{const _0xb86c4={'id':_0x123736,'type':_0x32bb6d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x27b02b,'createdAt':_0x9846ea?new Date(_0x9846ea):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb86c4);});}}class at extends _0x519785{['afterInit'](){const _0x441d11=this['editor'],_0x12afcf=_0x441d11['plugins']['get']('TrackChangesEditing');if(_0x441d11['plugins']['has']('IndentEditing')&&(_0x12afcf['enableCommand']('indent'),_0x12afcf['enableCommand']('outdent')),_0x441d11['plugins']['has']('IndentBlock')){for(const _0x3530c5 of['indentBlock','outdentBlock'])_0x12afcf['enableDefaultAttributesIntegration'](_0x3530c5);}const _0x3af926=_0x441d11['locale'];_0x12afcf['registerBlockAttribute']('blockIndent'),_0x12afcf['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3af926,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b820d=this['editor'],_0x218a91=_0x5b820d['locale'],_0x3799b4=_0x5b820d['plugins']['get']('TrackChangesEditing');_0x3799b4['descriptionFactory']['registerDescriptionCallback'](_0x467d65=>{if('formatBlock'!=_0x467d65['type'])return;const {data:_0x4129ee}=_0x467d65;if(!_0x4129ee)return;if('indentBlock'!=_0x4129ee['commandName']&&'outdentBlock'!=_0x4129ee['commandName'])return;const _0x2b5a3a=_0x467d65['getItems']()[0x0],_0x37a4fb=_0x3799b4['descriptionFactory']['getItemLabel'](_0x2b5a3a);return'indentBlock'==_0x4129ee['commandName']?{'type':'format','content':o(_0x218a91,'*Indent:*\x20%0',_0x37a4fb)}:'outdentBlock'==_0x4129ee['commandName']?{'type':'format','content':o(_0x218a91,'*Outdent:*\x20%0',_0x37a4fb)}:void 0x0;});}}class ct extends _0x519785{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x519785{['afterInit'](){const _0x2c7998=this['editor'];if(!_0x2c7998['plugins']['has']('LinkEditing'))return;const _0x5c4989=_0x2c7998['plugins']['get']('TrackChangesEditing'),_0x5e2c79=_0x2c7998['commands']['get']('link');_0x5c4989['enableDefaultAttributesIntegration']('link'),_0x5c4989['enableDefaultAttributesIntegration']('unlink'),_0x5c4989['registerInlineAttribute']('linkHref');for(const _0x47bd74 of _0x5e2c79['manualDecorators'])_0x5c4989['registerInlineAttribute'](_0x47bd74['id']),_0x5c4989['descriptionFactory']['registerAttributeLabel'](_0x47bd74['id'],'link\x20('+_0x47bd74['label']['toLowerCase']()+')');_0x5c4989['descriptionFactory']['registerDescriptionCallback'](_0x5244e4=>{if('attribute'!=_0x5244e4['type'])return;const {data:_0x1ffe94}=_0x5244e4;if(!_0x1ffe94||'linkHref'!=_0x1ffe94['key'])return;const _0x4382d4=_0x1ffe94['newValue'],_0x275bb6=_0x2c7998['locale'];return{'type':'format','content':null==_0x4382d4?o(_0x275bb6,'*Remove\x20link*'):o(_0x275bb6,'*Set\x20link:*\x20%0','\x22'+_0x4382d4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x238d26=this['editor'],_0x3a7433=_0x238d26['locale'];_0x238d26['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a5227=>{if('formatInline'!=_0x1a5227['type'])return;const {data:_0x31aec4}=_0x1a5227;if(_0x31aec4){if('link'==_0x31aec4['commandName']){const _0x2ff06d=_0x31aec4['commandParams'][0x0];return{'type':'format','content':o(_0x3a7433,'*Set\x20link:*\x20%0','\x22'+_0x2ff06d+'\x22')};}return'unlink'==_0x31aec4['commandName']?{'type':'format','content':o(_0x3a7433,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x519785{['afterInit'](){const _0x5e3333=this['editor'],_0x44e155=_0x5e3333['locale'];if(!_0x5e3333['plugins']['has']('LegacyListEditing'))return;const _0x27f0a2=_0x5e3333['plugins']['get']('TrackChangesEditing'),_0x4d8e43=_0x5e3333['plugins']['has']('LegacyTodoListEditing');function _0x328e02(_0x4c0c44){return()=>{const _0x19d086=_0x5e3333['model']['document']['selection'],_0x5574b9=_0x5e3333['commands']['get'](_0x4c0c44);if(_0x5574b9['value'])return void _0x5e3333['execute']('paragraph',{});const _0x19df28=_0x4c0c44['slice'](0x0,-0x4),_0x4b695e=function(_0x161d9a,_0x4b96b6,_0x52c8ae){let _0x402cda=Array['from'](_0x161d9a)['filter'](_0x39ce42=>function(_0x1483d8,_0x55085a){return _0x55085a['checkChild'](_0x1483d8['parent'],'listItem')&&!_0x55085a['isObject'](_0x1483d8);}(_0x39ce42,_0x52c8ae));_0x402cda=_0x402cda['filter'](_0x36263a=>!_0x36263a['is']('element','listItem')||_0x36263a['getAttribute']('listType')!=_0x4b96b6);const _0x275fb4=new Set();for(const _0x389051 of _0x402cda)_0x389051['is']('element','listItem')?_0x275fb4['add'](Le(_0x389051)):_0x275fb4['add'](_0x389051);return Array['from'](_0x275fb4);}(_0x19d086['getSelectedBlocks'](),_0x19df28,_0x5e3333['model']['schema']);_0x5e3333['model']['change'](()=>{for(const _0x57fc10 of _0x4b695e)_0x27f0a2['markBlockFormat'](_0x57fc10,{'commandName':_0x4c0c44,'commandParams':[{'forceValue':!_0x5574b9['value']}],'formatGroupId':'blockName'},Ee(_0x57fc10));});};}function _0x2eab62(_0x47d7cf){return()=>{const _0x182983=function(_0x226356){let _0x155f5c=Array['from'](_0x226356);const _0x38291d=_0x155f5c['findIndex'](_0x27b67d=>'listItem'!=_0x27b67d['name']);return _0x38291d>-0x1&&(_0x155f5c=_0x155f5c['slice'](0x0,_0x38291d)),_0x155f5c;}(_0x5e3333['model']['document']['selection']['getSelectedBlocks']()),_0x4ef927=_0x5e3333['model']['createRange'](_0x5e3333['model']['createPositionAt'](_0x182983[0x0],'before'),_0x5e3333['model']['createPositionAt'](_0x182983[_0x182983['length']-0x1],'end'));_0x5e3333['model']['change'](()=>{_0x27f0a2['markBlockFormat'](_0x4ef927,{'commandName':_0x47d7cf,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2d6ec8){const _0x52baba=new Set();for(const _0x5ad6c of _0x2d6ec8){let _0x476d0f=_0x5ad6c['nextSibling'];for(;_0x476d0f&&_0x476d0f['getAttribute']('listIndent')>_0x5ad6c['getAttribute']('listIndent');)_0x52baba['add'](_0x476d0f),_0x476d0f=_0x476d0f['nextSibling'];}return Array['from'](_0x52baba);}(_0x182983));});};}_0x27f0a2['enableCommand']('numberedList',_0x328e02('numberedList')),_0x27f0a2['enableCommand']('bulletedList',_0x328e02('bulletedList')),_0x4d8e43&&_0x27f0a2['enableCommand']('todoList',_0x328e02('todoList')),_0x27f0a2['enableCommand']('indentList',_0x2eab62('indentList')),_0x27f0a2['enableCommand']('outdentList',_0x2eab62('outdentList')),_0x4d8e43&&_0x27f0a2['enableCommand']('checkTodoList',()=>{const _0x22f9c3=_0x5e3333['commands']['get']('checkTodoList'),_0xcd800c=Array['from'](_0x22f9c3['_selectedElements']);_0xcd800c['filter'](_0x27e369=>_0x27e369['getAttribute']('todoListChecked')!=_0x22f9c3['value']),_0x5e3333['model']['change'](()=>{for(const _0x3521b3 of _0xcd800c)_0x27f0a2['markBlockFormat'](_0x3521b3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x22f9c3['value']}]});});}),_0x27f0a2['descriptionFactory']['registerElementLabel']('listItem',_0x5a1235=>o(_0x44e155,'ELEMENT_LIST_ITEM',_0x5a1235)),_0x27f0a2['descriptionFactory']['registerDescriptionCallback'](_0x9b615b=>{if('formatBlock'!=_0x9b615b['type']&&'formatInline'!=_0x9b615b['type'])return;const {data:_0x36cc7a}=_0x9b615b;if(_0x36cc7a){if('numberedList'==_0x36cc7a['commandName']||'bulletedList'==_0x36cc7a['commandName']||'todoList'==_0x36cc7a['commandName'])switch(_0x36cc7a['commandName']['replace']('List','')){case'bulleted':return _0x278541(o(_0x44e155,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x278541(o(_0x44e155,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x278541(o(_0x44e155,'ELEMENT_TODO_LIST'));}if('indentList'==_0x36cc7a['commandName'])return{'type':'format','content':o(_0x44e155,'*Indent:*\x20%0',o(_0x44e155,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x36cc7a['commandName'])return{'type':'format','content':o(_0x44e155,'*Outdent:*\x20%0',o(_0x44e155,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x36cc7a['commandName'])return _0x36cc7a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44e155,'*Check\x20item*')}:{'type':'format','content':o(_0x44e155,'*Uncheck\x20item*')};}function _0x278541(_0x403caf){return{'type':'format','content':o(_0x44e155,'*Change\x20to:*\x20%0',_0x403caf)};}});}}function Le(_0x1bad51){const _0x28d4da=_0x1bad51['getAttribute']('listIndent');if(0x0==_0x28d4da)return _0x1bad51;let _0x10c813=_0x1bad51;for(;_0x1bad51['previousSibling']&&_0x1bad51['previousSibling']['is']('element','listItem');){const _0x14c568=_0x1bad51['previousSibling']['getAttribute']('listIndent');if(_0x14c568==_0x28d4da)_0x10c813=_0x1bad51['previousSibling'];else{if(_0x14c568<_0x28d4da)break;}_0x1bad51=_0x1bad51['previousSibling'];}return _0x10c813;}function Ee(_0x5f46a7){const _0xa0d1af=[];if(_0x5f46a7['is']('element','listItem')&&_0x5f46a7['getAttribute']('listIndent')>0x0){let _0x1ddf3a=_0x5f46a7['nextSibling'];for(;_0x1ddf3a&&'listItem'==_0x1ddf3a['name']&&_0x1ddf3a['getAttribute']('listIndent')==_0x5f46a7['getAttribute']('listIndent');)_0xa0d1af['push'](_0x1ddf3a),_0x1ddf3a=_0x1ddf3a['nextSibling'];}return _0xa0d1af;}class ht extends _0x519785{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x41e35a=this['editor']['config']['get']('list.properties'),_0x1a4a3a=this['editor']['plugins']['get']('TrackChangesEditing');_0x41e35a['styles']&&_0x1a4a3a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x41e35a['reversed']&&_0x1a4a3a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x41e35a['startIndex']&&_0x1a4a3a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1a4a3a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2e3a3e,_0x2cf224={}){const _0x34b28c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e0d03=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x34b28c['markMultiRangeBlockFormat'](_0x1e0d03,{'commandName':'listStyle','commandParams':[{'type':_0x2cf224['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x46d1d0,_0x516a8e={}){const _0x265856=this['editor']['plugins']['get']('TrackChangesEditing'),_0xafd322=this['_getSuggestionBlocks'](_0x161906=>_0x161906['is']('element','listItem')&&'numbered'===_0x161906['getAttribute']('listType'));if(_0xafd322['length']<0x1)return;const _0x32b0b3=_0xafd322['map'](_0x21305c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x21305c,'before'),this['editor']['model']['createPositionAt'](_0x21305c,0x0)));this['editor']['model']['change'](()=>{_0x265856['markMultiRangeBlockFormat'](_0x32b0b3,{'commandName':'listReversed','commandParams':[{'reversed':_0x516a8e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5ae4d7,_0x12f738={}){const _0x70ab8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23acf6=this['_getSuggestionBlocks'](_0x8334b7=>_0x8334b7['is']('element','listItem')&&'numbered'===_0x8334b7['getAttribute']('listType'));if(_0x23acf6['length']<0x1)return;const _0x47c0d1=_0x23acf6['map'](_0x37695f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37695f,'before'),this['editor']['model']['createPositionAt'](_0x37695f,0x0)));this['editor']['model']['change'](()=>{_0x70ab8e['markMultiRangeBlockFormat'](_0x47c0d1,{'commandName':'listStart','commandParams':[{'startIndex':_0x12f738['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x229e0c){if('formatBlock'!=_0x229e0c['type']&&'formatInline'!=_0x229e0c['type'])return;const _0x4d4430=this['editor']['locale'],{data:_0x56ddf3}=_0x229e0c;if(!_0x56ddf3)return;let _0x3dfecc,_0x35e5f0;switch(_0x56ddf3['commandName']){case'listStyle':_0x3dfecc='*Change\x20to:*\x20%0',_0x35e5f0={'type':'format','content':o(_0x4d4430,_0x3dfecc,o(_0x4d4430,this['_getTranslationKeyForListStyle'](_0x56ddf3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3dfecc=_0x56ddf3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x35e5f0={'type':'format','content':o(_0x4d4430,_0x3dfecc)};break;case'listStart':_0x3dfecc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x35e5f0={'type':'format','content':o(_0x4d4430,_0x3dfecc,_0x56ddf3['commandParams'][0x0]['startIndex'])};}return _0x35e5f0;}['_getSuggestionBlocksForListStyle'](){const _0x3d5e71=this['editor']['plugins']['get']('LegacyListUtils');let _0x2a24a3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2a24a3[0x0]?.['is']('element','listItem')&&_0x2a24a3['unshift'](..._0x3d5e71['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2a24a3[_0x2a24a3['length']-0x1]?.['is']('element','listItem')&&_0x2a24a3['push'](..._0x3d5e71['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2a24a3=[...new Set(_0x2a24a3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2a24a3=_0x2a24a3['filter'](_0x5d1c5f=>_0x5d1c5f['is']('element','listItem'))),_0x2a24a3;}['_getSuggestionBlocks'](_0xc92950){const _0x1f2554=this['editor']['plugins']['get']('LegacyListUtils');let _0x3a1268=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xc92950)['map'](_0x3d66e6=>{const _0x4a8fdb=this['editor']['model']['createPositionAt'](_0x3d66e6,0x0);return[..._0x1f2554['getSiblingNodes'](_0x4a8fdb,'backward'),..._0x1f2554['getSiblingNodes'](_0x4a8fdb,'forward')];})['flat']();return _0x3a1268=[...new Set(_0x3a1268)],_0x3a1268;}['_getTranslationKeyForListStyle'](_0x527471){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x527471)||'default')['toUpperCase']()+'_LIST_'+_0x527471['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x519785{['afterInit'](){const _0x20804a=this['editor'];if(!_0x20804a['plugins']['has']('MediaEmbedEditing'))return;const _0x2b16bd=_0x20804a['plugins']['get']('TrackChangesEditing'),_0x1488d5=_0x20804a['locale'];_0x2b16bd['enableCommand']('mediaEmbed'),_0x2b16bd['descriptionFactory']['registerElementLabel']('media',_0x56febe=>o(_0x1488d5,'ELEMENT_MEDIA',_0x56febe)),_0x20804a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2a97fe,{writer:_0x79f66a,options:_0x144394})=>{if(_0x144394['showSuggestionHighlights'])return _0x79f66a['createEmptyElement']('div');},'converterPriority':'high'}),_0x20804a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x219d68,_0x2a2329,_0x554805)=>{_0x554805['options']['showSuggestionHighlights']&&_0x219d68['stop']();},{'priority':'high'});}}class lt extends _0x519785{['afterInit'](){const _0x51a356=this['editor'];_0x51a356['plugins']['has']('MentionEditing')&&_0x51a356['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x519785{['afterInit'](){const _0x149cd4=this['editor'];if(!_0x149cd4['plugins']['has']('MergeFieldsEditing'))return;const _0x260f2f=_0x149cd4['plugins']['get']('TrackChangesEditing'),_0x38d2a8=_0x149cd4['locale'];_0x260f2f['enableCommand']('insertMergeField'),_0x260f2f['enableCommand']('insertMergeFieldBlock'),_0x260f2f['enableCommand']('insertMergeFieldImage'),_0x260f2f['descriptionFactory']['registerElementLabel']('mergeField',_0x5c8464=>o(_0x38d2a8,'ELEMENT_MERGE_FIELD',_0x5c8464)),_0x260f2f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x14f0e4=>o(_0x38d2a8,'ELEMENT_MERGE_FIELD',_0x14f0e4)),_0x260f2f['descriptionFactory']['registerDescriptionCallback'](_0x2858d2=>{if('insertion'!=_0x2858d2['type']&&'deletion'!=_0x2858d2['type'])return;const _0x2751bf=_0x2858d2['getContainedElement']();if(null==_0x2751bf)return;const _0x2793c1=_0x149cd4['plugins']['get']('MergeFieldsEditing');let _0x14d517;switch(_0x2793c1['getMergeFieldType'](_0x2751bf)){case null:return;case'image':{const _0x116f52=_0x2793c1['unwrapAffixes'](_0x2751bf['getAttribute']('src'));_0x14d517=_0x2793c1['getLabel'](_0x116f52)||_0x116f52;break;}default:{const _0x4778e3=_0x2751bf['getAttribute']('id');_0x14d517=_0x2793c1['getLabel'](_0x4778e3)||_0x4778e3;break;}}return'insertion'==_0x2858d2['type']?{'type':'insertion','content':o(_0x38d2a8,'*Insert:*\x20%0','\x22'+_0x14d517+'\x22\x20'+o(_0x38d2a8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x38d2a8,'*Remove:*\x20%0','\x22'+_0x14d517+'\x22\x20'+o(_0x38d2a8,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x519785{['afterInit'](){const _0x4d00b1=this['editor'],_0x493c97=_0x4d00b1['plugins']['get']('TrackChangesEditing');_0x4d00b1['plugins']['has']('MultiLevelList')&&(_0x493c97['enableDefaultAttributesIntegration']('multiLevelList'),_0x493c97['registerBlockAttribute']('listMarkerStyle'),_0x493c97['descriptionFactory']['registerDescriptionCallback'](_0x3233ec=>this['handleDescriptions'](_0x3233ec)));}['handleDescriptions'](_0x2e8189){const _0x2e9e63=this['editor']['locale'],{data:_0x38f3f9}=_0x2e8189,_0x22e81f={'type':'format','content':''};if(_0x38f3f9&&'listMarkerStyle'==_0x38f3f9['key']){if(!_0x38f3f9['oldValue'])return{'type':'format','content':o(_0x2e9e63,'*Set\x20format:*\x20%0',o(_0x2e9e63,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x38f3f9['newValue']+')'};if(!_0x38f3f9['newValue']){let _0xc63a61=_0x2e8189['head'];for(;_0xc63a61;){if(_0xc63a61['data']&&'listType'==_0xc63a61['data']['key']&&_0xc63a61['data']['newValue'])return _0x22e81f;_0xc63a61=_0xc63a61['next'];}return{'type':'format','content':o(_0x2e9e63,'*Remove\x20format:*\x20%0',o(_0x2e9e63,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x38f3f9['oldValue']+')'};}}}}class pt extends _0x519785{['afterInit'](){const _0x1c8aeb=this['editor'];if(!_0x1c8aeb['plugins']['has']('PageBreakEditing'))return;_0x1c8aeb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4b2acb=_0x1c8aeb['plugins']['get']('TrackChangesEditing'),_0x1c002a=_0x1c8aeb['locale'];_0x4b2acb['descriptionFactory']['registerElementLabel']('pageBreak',_0x35c1a4=>o(_0x1c002a,'ELEMENT_PAGE_BREAK',_0x35c1a4));}}class kt extends _0x519785{['afterInit'](){const _0x2d5e55=this['editor'];if(!_0x2d5e55['plugins']['has']('Paragraph'))return;const _0x186d19=_0x2d5e55['locale'],_0x4fbcff=_0x2d5e55['plugins']['get']('TrackChangesEditing');_0x4fbcff['descriptionFactory']['registerElementLabel']('paragraph',_0x1fc88f=>o(_0x186d19,'ELEMENT_PARAGRAPH',_0x1fc88f)),_0x4fbcff['enableDefaultAttributesIntegration']('paragraph'),_0x4fbcff['enableCommand']('insertParagraph'),_0x2d5e55['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2d5e55),{'priority':'highest'}),_0x2d5e55['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc6a0df,_0x22fa77,_0xf66904)=>{_0xf66904['options']['showSuggestionHighlights']&&nr(_0x2d5e55,{'showActiveMarker':!0x1})(_0xc6a0df,_0x22fa77,_0xf66904);},{'priority':'highest'});const _0x3afa60=_0x4fbcff['descriptionFactory'];_0x3afa60['registerDescriptionCallback'](_0x37bd0f=>{if('insertion'!==_0x37bd0f['type'])return;const {start:_0x316d81,end:_0x5082ed}=_0x37bd0f['getFirstRange']();if(!_0x316d81['isTouching'](_0x5082ed)||!_0x316d81['nodeAfter'])return;const _0x335605=_0x2d5e55['model']['schema'],_0x497e16=_0x316d81['nodeAfter'];return _0x335605['isBlock'](_0x497e16)&&!_0x335605['isLimit'](_0x497e16)&&_0x335605['checkChild'](_0x497e16,'$text')?{'type':'insertion','content':o(_0x186d19,'*Insert:*\x20%0',_0x3afa60['getItemLabel'](_0x497e16,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x440628=this['editor'],_0x18cfd3=_0x440628['locale'];_0x440628['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2435f8=>{if('formatBlock'!=_0x2435f8['type'])return;const {data:_0x2c1056}=_0x2435f8;return _0x2c1056&&'paragraph'==_0x2c1056['commandName']?{'type':'format','content':o(_0x18cfd3,'*Change\x20to:*\x20%0',o(_0x18cfd3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3128ca,{showActiveMarker:_0x430c8a=!0x0}={}){return(_0x48c89a,_0xf6c12e,_0x3d2138)=>{const _0x4c3b7c=_0x3128ca['plugins']['get']('TrackChangesEditing'),_0x3b25cc=_0xf6c12e['markerRange']['start'],_0x563f82=_0xf6c12e['markerRange']['end'],_0x47acf2=_0x3128ca['model']['schema'];if(!_0x3b25cc['isTouching'](_0x563f82)||!_0x3b25cc['nodeAfter'])return;const _0x1796f8=_0x3b25cc['nodeAfter'];if(_0x47acf2['isBlock'](_0x1796f8)&&!_0x47acf2['isLimit'](_0x1796f8)&&_0x47acf2['checkChild'](_0x1796f8,'$text')){if(!_0x3d2138['consumable']['consume'](_0xf6c12e['markerRange'],_0x48c89a['name']))return;const {id:_0x51af6c,authorId:_0x1233e9}=_0x4c3b7c['_splitMarkerName'](_0xf6c12e['markerName']),_0x299905=_0x3d2138['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x51af6c,'data-author-id':_0x1233e9}),_0xdb0187=_0x3d2138['mapper']['toViewPosition'](_0x563f82);_0x430c8a&&_0x4c3b7c['activeMarkers']['includes'](_0xf6c12e['markerName'])&&_0x3d2138['writer']['addClass']('ck-suggestion-marker--active',_0x299905),_0x3d2138['writer']['insert'](_0xdb0187,_0x299905),_0x3d2138['mapper']['bindElementToMarker'](_0x299905,_0xf6c12e['markerName']);}};}class wt extends _0x519785{['afterInit'](){const _0x224d41=this['editor'];_0x224d41['commands']['get']('replaceSource')&&_0x224d41['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x519785{['afterInit'](){const _0xa31dbd=this['editor'];if(!_0xa31dbd['plugins']['has']('RemoveFormatEditing'))return;_0xa31dbd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b8f7b=this['editor'];_0x5b8f7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x442c12=>{if('formatBlock'!=_0x442c12['type']&&'formatInline'!=_0x442c12['type'])return;const {data:_0x1e7c6f}=_0x442c12;return _0x1e7c6f&&'removeFormat'==_0x1e7c6f['commandName']?{'type':'format','content':o(_0x5b8f7b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x519785{['afterInit'](){const _0x2892a3=this['editor'];if(!_0x2892a3['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x549a8f=_0x2892a3['plugins']['get']('TrackChangesEditing');_0x549a8f['enableCommand']('goToPreviousRestrictedEditingException'),_0x549a8f['enableCommand']('goToNextRestrictedEditingException');const _0x227c17=_0x2892a3['plugins']['get']('RestrictedEditingModeEditing');_0x227c17['enableCommand']('trackChanges'),_0x227c17['enableCommand']('acceptSuggestion'),_0x227c17['enableCommand']('discardSuggestion'),_0x227c17['enableCommand']('acceptAllSuggestions'),_0x227c17['enableCommand']('discardAllSuggestions'),_0x227c17['enableCommand']('acceptSelectedSuggestions'),_0x227c17['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x519785{['afterInit'](){const _0x1845ca=this['editor'];if(!_0x1845ca['plugins']['has']('ShiftEnter'))return;const _0x275fcd=_0x1845ca['plugins']['get']('TrackChangesEditing');_0x275fcd['enableCommand']('shiftEnter'),_0x1845ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1845ca),{'priority':'high'}),_0x1845ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1845ca),{'priority':'high'}),_0x1845ca['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5ab983,_0x7f903c,_0x5980b)=>{_0x5980b['options']['showSuggestionHighlights']&&je(_0x1845ca,{'showActiveMarker':!0x1})(_0x5ab983,_0x7f903c,_0x5980b);}),_0x275fcd['descriptionFactory']['registerElementLabel']('softBreak',_0x444392=>o(_0x1845ca['locale'],'ELEMENT_LINE_BREAK',_0x444392));}}function je(_0x283f15,{showActiveMarker:_0x185147=!0x0}={}){return(_0x1aaa23,_0x5ac5aa,_0x1d8c47)=>{const _0xbbdf52=_0x283f15['plugins']['get']('TrackChangesEditing');if(!_0x1d8c47['consumable']['test'](_0x5ac5aa['markerRange'],_0x1aaa23['name']))return;const _0x204d29=_0x283f15['model'];for(const _0x1a9794 of _0x5ac5aa['markerRange']['getItems']()){if(!_0x1a9794['is']('element','softBreak'))continue;const _0x38d4fc='deletion'==_0x5ac5aa['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3d8274,authorId:_0x359b50}=_0xbbdf52['_splitMarkerName'](_0x5ac5aa['markerName']),_0x4236d0=_0x1d8c47['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38d4fc,'data-suggestion':_0x3d8274,'data-author-id':_0x359b50}),_0x5a7dde=_0x1d8c47['mapper']['toViewPosition'](_0x204d29['createPositionBefore'](_0x1a9794));_0x185147&&_0xbbdf52['activeMarkers']['includes'](_0x5ac5aa['markerName'])&&_0x1d8c47['writer']['addClass']('ck-suggestion-marker--active',_0x4236d0),_0x1d8c47['writer']['insert'](_0x5a7dde,_0x4236d0),_0x1d8c47['mapper']['bindElementToMarker'](_0x4236d0,_0x5ac5aa['markerName']);}};}class St extends _0x519785{['afterInit'](){const _0x496abb=this['editor'],_0x283697=_0x496abb['model'],_0x2865e9=_0x496abb['locale'];if(!_0x496abb['plugins']['has']('StandardEditingModeEditing'))return;const _0x10f3b1=_0x496abb['plugins']['get']('TrackChangesEditing'),_0x2e5795='restrictedEditingException',_0x288d74=_0x496abb['commands']['get'](_0x2e5795);_0x10f3b1['enableCommand'](_0x2e5795,(_0x2febbc,_0x52f1b4={})=>{const _0x28d0e6=_0x283697['document']['selection'];if(_0x28d0e6['isCollapsed'])return void _0x2febbc(_0x52f1b4);const _0x33c8c7=void 0x0!==_0x52f1b4['forceValue']?_0x52f1b4['forceValue']:!_0x288d74['value'];_0x283697['change'](()=>{const _0x49139a=Array['from'](_0x28d0e6['getRanges']());for(const _0x5b08d2 of _0x49139a){const _0x56e901=_0x33c8c7?[_0x5b08d2]:io(_0x2e5795,_0x5b08d2,_0x283697);for(const _0x363357 of _0x56e901)_0x10f3b1['markInlineFormat'](_0x363357,{'commandName':_0x2e5795,'commandParams':[{'forceValue':_0x33c8c7}]});}});}),_0x10f3b1['descriptionFactory']['registerDescriptionCallback'](_0x56b168=>{if('formatBlock'!=_0x56b168['type']&&'formatInline'!=_0x56b168['type'])return;const {data:_0x8a9424}=_0x56b168;return _0x8a9424&&_0x8a9424['commandName']==_0x2e5795?_0x8a9424['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2865e9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2865e9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x519785{['afterInit'](){const _0x2b54cf=this['editor'];if(!_0x2b54cf['plugins']['has']('Style')||!_0x2b54cf['plugins']['has']('DataSchema'))return;const _0x53f39e=_0x2b54cf['plugins']['get']('TrackChangesEditing'),_0x13b8bd=_0x2b54cf['locale'],_0x1a6a99=_0x2b54cf['config']['get']('style')||{},_0x9a9b0e=_0x2b54cf['plugins']['get']('GeneralHtmlSupport'),_0x3547be=_0x2b54cf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2b54cf['plugins']['get']('DataSchema'),_0x1a6a99['definitions']);_0x53f39e['enableDefaultAttributesIntegration']('style');const _0x231318=new Set();for(const _0x17d2b4 of _0x3547be['block']){const _0x42d9e4=_0x9a9b0e['getGhsAttributeNameForElement'](_0x17d2b4['element']);_0x231318['add'](_0x42d9e4);}const _0x4a6d11=new Set();for(const _0x505407 of _0x3547be['inline']){const _0x2a5bd6=_0x9a9b0e['getGhsAttributeNameForElement'](_0x505407['element']);_0x4a6d11['add'](_0x2a5bd6);for(const _0x4dde06 of _0x505407['ghsAttributes'])_0x4a6d11['add'](_0x4dde06);}for(const _0x19bc7c of _0x231318)_0x53f39e['registerBlockAttribute'](_0x19bc7c),_0x53f39e['descriptionFactory']['registerAttributeLabel'](_0x19bc7c,o(_0x13b8bd,'FORMAT_STYLE'));for(const _0x118686 of _0x4a6d11)_0x53f39e['registerInlineAttribute'](_0x118686),_0x53f39e['descriptionFactory']['registerAttributeLabel'](_0x118686,o(_0x13b8bd,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x548cb3=this['editor'],_0x1544d9=_0x548cb3['locale'];_0x548cb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50101a=>{if('formatBlock'!=_0x50101a['type']&&'formatInline'!=_0x50101a['type'])return;const {data:_0x4e9652}=_0x50101a;return _0x4e9652&&'style'===_0x4e9652['commandName']?_0x4e9652['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1544d9,'*Set\x20format:*\x20%0',_0x4e9652['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1544d9,'*Remove\x20format:*\x20%0',_0x4e9652['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x519785{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x328fef){super(_0x328fef),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1b3945=this['editor'],_0x3598d0=_0x1b3945['model']['document']['selection'];if(!_0x1b3945['plugins']['has']('TableEditing'))return;const _0x343c06=_0x1b3945['locale'],_0x50119d=_0x1b3945['plugins']['get']('TrackChangesEditing'),_0x4c86af=_0x1b3945['plugins']['get']('TableUtils');_0x50119d['descriptionFactory']['registerElementLabel']('table',_0x1644fb=>o(_0x343c06,'ELEMENT_TABLE',_0x1644fb)),this['_setupColumnsRowsFixing'](),_0x50119d['enableCommand']('insertTable'),_0x50119d['enableCommand']('selectTableRow'),_0x50119d['enableCommand']('selectTableColumn');for(const _0x48cddb of['insertTableRowAbove','insertTableRowBelow']){const _0x293880=_0x1b3945['commands']['get'](_0x48cddb);_0x50119d['enableCommand'](_0x48cddb,_0x32066f=>{_0x1b3945['model']['change'](_0x26c5e5=>{_0x32066f();const _0x1d291a='above'===_0x293880['order'],_0x372a30=_0x4c86af['getSelectionAffectedTableCells'](_0x3598d0),_0x1f14e5=_0x4c86af['getRowIndexes'](_0x372a30),_0x3509de=_0x1d291a?_0x1f14e5['first']-0x1:_0x1f14e5['last']+0x1,_0x1248cc=_0x372a30[0x0]['findAncestor']('table'),_0x9ba5af=_0x4c86af['createTableWalker'](_0x1248cc,{'startRow':_0x3509de,'endRow':_0x3509de}),_0x451e47=Array['from'](_0x9ba5af)['map'](_0x3593f3=>_0x26c5e5['createRangeOn'](_0x3593f3['cell']));_0x50119d['markMultiRangeInsertion'](_0x451e47,'tableRow');});});}for(const _0x496843 of['insertTableColumnLeft','insertTableColumnRight']){const _0x48b141=_0x1b3945['commands']['get'](_0x496843);_0x50119d['enableCommand'](_0x496843,_0x2f23ac=>{_0x1b3945['model']['change'](_0x2e5c5f=>{_0x2f23ac();const _0x5e8fb9='left'===_0x48b141['order'],_0x384cd7=_0x4c86af['getSelectionAffectedTableCells'](_0x3598d0),_0x1ddb3b=_0x4c86af['getColumnIndexes'](_0x384cd7),_0x4aeef3=_0x5e8fb9?_0x1ddb3b['first']-0x1:_0x1ddb3b['last']+0x1,_0x38a7bc=_0x384cd7[0x0]['findAncestor']('table'),_0x440cbd=_0x4c86af['createTableWalker'](_0x38a7bc,{'startRow':0x0,'column':_0x4aeef3,'includeAllSlots':!0x1}),_0x5dcefe=Array['from'](_0x440cbd)['map'](_0x48e376=>_0x2e5c5f['createRangeOn'](_0x48e376['cell']));_0x50119d['markMultiRangeInsertion'](_0x5dcefe,'tableColumn');});});}for(const _0x331a25 of['removeTableRow','removeTableColumn']){const _0x20cf0f=_0x331a25['substr'](0xb),_0x5774bd=_0x20cf0f['toLowerCase'](),_0x2b0320=_0x5774bd['substr'](0x0,0x3)+'span',_0x2ee515='table'+_0x20cf0f,_0x5e44b8='min'+_0x20cf0f,_0xb93d6a='max'+_0x20cf0f;_0x50119d['enableCommand'](_0x331a25,()=>{_0x1b3945['model']['change'](_0x25f98d=>{const _0x43a2c7=_0x4c86af['getSelectionAffectedTableCells'](_0x3598d0),_0x1c6ac7=_0x43a2c7[0x0]['findAncestor']('table');let _0x216cc7;if('removeTableRow'==_0x331a25){const _0x1ae17f=_0x4c86af['getRowIndexes'](_0x43a2c7);_0x216cc7={'startRow':_0x1ae17f['first'],'endRow':_0x1ae17f['last'],'includeAllSlots':!0x0};}else{const _0x3849b3=_0x4c86af['getColumnIndexes'](_0x43a2c7);_0x216cc7={'startColumn':_0x3849b3['first'],'endColumn':_0x3849b3['last'],'includeAllSlots':!0x0};}const _0x46aabb=_0x4c86af['createTableWalker'](_0x1c6ac7,_0x216cc7),_0x385e4f=Array['from'](_0x46aabb)['map'](({cell:_0x40029e})=>_0x40029e),_0x1c20b5=Ne(_0x385e4f['filter'](_0x2ab7a9=>_0x2ab7a9['hasAttribute'](_0x2b0320))),_0x1074ce=Ne(_0x385e4f['filter'](_0x5d1cee=>!_0x5d1cee['hasAttribute'](_0x2b0320)))['map'](_0xa64ef=>_0x25f98d['createRangeOn'](_0xa64ef)),_0x5175ea=_0x50119d['markMultiRangeDeletion'](_0x1074ce,_0x2ee515);if(_0x5175ea&&('tableRow'==_0x5175ea['subType']||'tableColumn'==_0x5175ea['subType'])){const _0x1456f9=this['_getSuggestionCoords'](_0x5175ea);for(const _0x3b0a4e of _0x1c20b5){const _0x3d5c62=_0x25f98d['createRangeOn'](_0x3b0a4e),_0x327c39=_0x4c86af['getCellLocation'](_0x3b0a4e),_0x2a8616=_0x3b0a4e['getAttribute'](_0x2b0320)-0x1,_0x1609df=_0x1456f9[_0x5e44b8],_0x587f26=_0x1456f9[_0xb93d6a];_0x1609df<=_0x327c39[_0x5774bd]&&_0x327c39[_0x5774bd]+_0x2a8616<=_0x587f26&&_0x5175ea['addRange'](_0x3d5c62);}}});});}function _0x221dc7(_0x12876e){const _0x50f9b8=Array['from'](_0x3598d0['getRanges']())['map'](_0x1d273e=>_0x45518e['fromRange'](_0x1d273e));_0x1b3945['model']['change'](_0x5f5993=>{const _0x590256=_0x5f5993['batch'];_0x12876e=_0x12876e['filter'](_0x2d7e42=>'$graveyard'!=_0x2d7e42['root']['rootName']),_0x5f5993['setSelection'](_0x12876e),_0x1b3945['commands']['get']('removeTableRow')['refresh'](),_0x1b3945['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1b3945['model']['enqueueChange'](()=>{_0x1b3945['model']['enqueueChange'](_0x590256,_0x43c85a=>{const _0xdbc988=_0x50f9b8['filter'](_0x5a2b10=>'$graveyard'!=_0x5a2b10['root']['rootName']);_0xdbc988['length']>0x0&&_0x43c85a['setSelection'](_0xdbc988);for(const _0x3fd60e of _0x50f9b8)_0x3fd60e['detach']();});});});}function _0x13c79c(_0x2fcf78){_0x1b3945['model']['change'](_0x3df516=>{const _0x5acd79=Array['from'](_0x3598d0['getRanges']())['map'](_0x21c74c=>_0x45518e['fromRange'](_0x21c74c)),_0x4a6cc5=[];for(const _0x3c13d4 of _0x2fcf78)for(const _0x2fcbf7 of _0x3c13d4['getItems']({'shallow':!0x0}))_0x4a6cc5['push'](_0x2fcbf7);for(const _0x1e22e0 of _0x4a6cc5)'$graveyard'!=_0x1e22e0['root']['rootName']&&(_0x3df516['setSelection'](_0x3df516['createPositionAt'](_0x1e22e0,0x0)),_0x1b3945['commands']['get']('removeTableColumn')['refresh'](),_0x1b3945['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x390212=_0x5acd79['filter'](_0x1ac6c4=>'$graveyard'!=_0x1ac6c4['root']['rootName']);_0x390212['length']>0x0&&_0x3df516['setSelection'](_0x390212);for(const _0x26bcb0 of _0x5acd79)_0x26bcb0['detach']();});}function _0x3f2516(_0x262902,_0x1a42cc){return _0x1a42cc['every'](_0x48e6d2=>_0x262902['some'](_0x231afa=>_0x231afa['end']['isEqual'](_0x48e6d2['start'])||_0x48e6d2['end']['isEqual'](_0x231afa['start'])));}function _0x15f29b(_0x3a07f8,_0x2334f8){return!_0x3a07f8['some'](_0x52903b=>_0x2334f8['some'](_0x176245=>_0x52903b['isIntersecting'](_0x176245)))&&_0x3a07f8['some'](_0x5ac287=>_0x2334f8['some'](_0x4c78ea=>_0x5ac287['end']['isTouching'](_0x4c78ea['start'])));}_0x1b3945['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f119,_0x2aa5f4,_0x4972fb)=>{if(!_0x4972fb['options']['showSuggestionHighlights'])return;const _0x1698b5=_0x2aa5f4['item'];if(!_0x1698b5||!_0x1698b5['is']('element','tableCell'))return;const _0x503b7a=_0x4972fb['mapper']['toViewElement'](_0x1698b5);if(_0x503b7a){const {id:_0x458a5b,authorId:_0x5656da}=_0x50119d['_splitMarkerName'](_0x2aa5f4['markerName']);_0x55ab0b(_0x503b7a,_0x4972fb['writer'],(_0x54dbd1,_0x4d4e4a,_0x28ee12)=>{_0x28ee12['addClass'](_0x2b7eab(_0x4d4e4a['classes']),_0x54dbd1),_0x28ee12['setAttribute']('data-suggestion-id',_0x458a5b,_0x54dbd1),_0x28ee12['setAttribute']('data-author-id',_0x5656da,_0x54dbd1);},(_0x29c0e1,_0x21c212,_0x4d64d7)=>{_0x4d64d7['removeClass'](_0x2b7eab(_0x21c212['classes']),_0x29c0e1),_0x4d64d7['removeAttribute']('data-suggestion-id',_0x29c0e1),_0x4d64d7['removeAttribute']('data-author-id',_0x29c0e1);});}},{'priority':'highest'}),_0x50119d['descriptionFactory']['registerDescriptionCallback'](_0x363a0f=>{if('insertion'!=_0x363a0f['type']&&'deletion'!=_0x363a0f['type'])return;const _0x3aeaf2=_0x363a0f['getContainedElement']();if(null!=_0x3aeaf2&&_0x3aeaf2['is']('element','table')){if('insertion'==_0x363a0f['type']){const _0x16def6=_0x363a0f['getItems']()['filter'](_0x8401fc=>_0x8401fc['is']('$textProxy'))['map'](_0x50afe3=>_0x50afe3['data']);if(_0x16def6['length'])return{'type':'insertion','content':o(_0x343c06,'*Insert:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x16def6['join']('\x20')+'\x22'))};}if('deletion'==_0x363a0f['type']){const _0x5ee301=_0x363a0f['getItems']()['filter'](_0x489fa0=>_0x489fa0['is']('$textProxy'))['map'](_0x4c4e48=>_0x4c4e48['data']);if(_0x5ee301['length'])return{'type':'deletion','content':o(_0x343c06,'*Remove:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5ee301['join']('\x20')+'\x22'))};}}}),_0x50119d['descriptionFactory']['registerDescriptionCallback'](_0x3fef81=>{if('tableRow'==_0x3fef81['subType']){const _0x348258=_0x3fef81['getItems']()['filter'](_0x47dc71=>_0x47dc71['is']('$textProxy'))['map'](_0x2204ed=>_0x2204ed['data']),_0x291013=this['_getSuggestionCoords'](_0x3fef81),_0x5baec6=_0x291013['maxRow']-_0x291013['minRow']+0x1;if('insertion'==_0x3fef81['type'])return _0x348258['length']?{'type':'insertion','content':o(_0x343c06,'*Insert:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5baec6,'\x22'+_0x348258['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x343c06,'*Insert:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_ROW',_0x5baec6))};if('deletion'==_0x3fef81['type'])return _0x348258['length']?{'type':'deletion','content':o(_0x343c06,'*Remove:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5baec6,'\x22'+_0x348258['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x343c06,'*Remove:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_ROW',_0x5baec6))};}if('tableColumn'==_0x3fef81['subType']){const _0xf1e43=_0x3fef81['getItems']()['filter'](_0x7dff5b=>_0x7dff5b['is']('$textProxy'))['map'](_0x1da2db=>_0x1da2db['data']),_0x5c3f6c=this['_getSuggestionCoords'](_0x3fef81),_0x21b7cd=_0x5c3f6c['maxColumn']-_0x5c3f6c['minColumn']+0x1;if('insertion'==_0x3fef81['type'])return _0xf1e43['length']?{'type':'insertion','content':o(_0x343c06,'*Insert:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x21b7cd,'\x22'+_0xf1e43['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x343c06,'*Insert:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_COLUMN',_0x21b7cd))};if('deletion'==_0x3fef81['type'])return _0xf1e43['length']?{'type':'deletion','content':o(_0x343c06,'*Remove:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x21b7cd,'\x22'+_0xf1e43['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x343c06,'*Remove:*\x20%0',o(_0x343c06,'ELEMENT_TABLE_COLUMN',_0x21b7cd))};}}),_0x50119d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x221dc7),_0x50119d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x221dc7),_0x50119d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x13c79c),_0x50119d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x13c79c),_0x50119d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3f2516),_0x50119d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3f2516),_0x50119d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x15f29b),_0x50119d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x15f29b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x537613=this['editor'],_0x93f08a=_0x537613['model']['document']['selection'];return(_0x47f535,_0x2e322a)=>{_0x537613['model']['change'](_0x208286=>{const {commandName:_0x1f33eb,commandParams:_0x40d83f}=_0x2e322a;let _0x22bf09=_0x47f535[0x0]['end']['nodeBefore'];_0x40d83f&&_0x40d83f[0x0]&&!0x1===_0x40d83f[0x0]['forceValue']&&(_0x22bf09=_0x47f535[0x0]['start']['nodeAfter']);const _0x415c6e=_0x208286['createRangeIn'](_0x22bf09);if('$graveyard'==_0x415c6e['root']['rootName'])return;const _0x1819c7=Array['from'](_0x93f08a['getRanges']())['map'](_0x3766fd=>_0x45518e['fromRange'](_0x3766fd));_0x208286['setSelection'](_0x415c6e),_0x537613['commands']['get'](_0x1f33eb)['refresh'](),_0x40d83f['push']({'forceDefaultExecution':!0x0}),_0x537613['execute'](_0x1f33eb,..._0x40d83f);const _0x23f1b8=_0x1819c7['filter'](_0x1be799=>'$graveyard'!=_0x1be799['root']['rootName']);_0x23f1b8['length']>0x0&&_0x208286['setSelection'](_0x23f1b8);for(const _0x3c9767 of _0x1819c7)_0x3c9767['detach']();});};}['_getCoordsForCells'](_0x333678){const _0x1d48ed=this['editor']['plugins']['get']('TableUtils');let _0x4d63d8=Number['MAX_SAFE_INTEGER'],_0x1a7d15=Number['MIN_SAFE_INTEGER'],_0x11b0b2=Number['MAX_SAFE_INTEGER'],_0x2528cf=Number['MIN_SAFE_INTEGER'];for(const _0x5a9b42 of _0x333678){if('$graveyard'==_0x5a9b42['root']['rootName'])continue;const {row:_0xc86608,column:_0x14210c}=_0x1d48ed['getCellLocation'](_0x5a9b42),_0x3ec9a5=_0x5a9b42['hasAttribute']('rowspan')?_0x5a9b42['getAttribute']('rowspan')-0x1:0x0,_0x42960b=_0x5a9b42['hasAttribute']('colspan')?_0x5a9b42['getAttribute']('colspan')-0x1:0x0;_0x4d63d8=_0xc86608<_0x4d63d8?_0xc86608:_0x4d63d8,_0x1a7d15=_0xc86608+_0x3ec9a5>_0x1a7d15?_0xc86608+_0x3ec9a5:_0x1a7d15,_0x11b0b2=_0x14210c<_0x11b0b2?_0x14210c:_0x11b0b2,_0x2528cf=_0x14210c+_0x42960b>_0x2528cf?_0x14210c+_0x42960b:_0x2528cf;}return{'minRow':_0x4d63d8,'maxRow':_0x1a7d15,'minColumn':_0x11b0b2,'maxColumn':_0x2528cf};}['_setupColumnsRowsFixing'](){const _0x476097=this['editor'],_0x349c88=_0x476097['plugins']['get']('TrackChangesEditing'),_0x4af111=_0x476097['plugins']['get']('TableUtils');_0x476097['model']['document']['on']('change:data',()=>{const _0x296d39=Array['from'](_0x476097['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30ec1b,data:_0x39378a}of _0x296d39){const {group:_0x59ba92,id:_0x56e6db,subType:_0x515f89}=_0x349c88['_splitMarkerName'](_0x30ec1b);if('suggestion'!=_0x59ba92)continue;if(null!=_0x39378a['oldRange'])continue;const _0x480be9=_0x349c88['getSuggestion'](_0x56e6db);this['_tablePostFixingSubtypes']['includes'](_0x515f89)&&this['_tableSuggestions']['add'](_0x480be9);}},{'priority':'low'});const _0xdd54fe=(_0x1fe0ca,_0x1e8926)=>{let _0x4713c5=!0x1;const _0x26ad4a=_0x1e8926['createRangeOn'](_0x1fe0ca),_0x39adaa=_0x1fe0ca['findAncestor']('table'),_0x31a022=_0x4af111['getCellLocation'](_0x1fe0ca);for(const _0x3f70c8 of this['_tableSuggestions']){const _0x4eea10=_0x3f70c8['subType'],_0xc9c504=_0x4eea10['startsWith']('tablePaste'),_0xc3e76b=_0x4eea10['substr'](_0xc9c504?0xa:0x5),_0x3c2bf3=_0xc3e76b['toLowerCase'](),_0xf070b3=_0x3c2bf3['substr'](0x0,0x3)+'span',_0xe9c3fd='min'+_0xc3e76b,_0x3461b5='max'+_0xc3e76b;if(!_0x3f70c8['isInContent'])continue;if(_0x39adaa!=_0x3f70c8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3f70c8['isIntersectingWithRange'](_0x26ad4a))continue;const _0x142931=_0x1fe0ca['hasAttribute'](_0xf070b3)?_0x1fe0ca['getAttribute'](_0xf070b3)-0x1:0x0,_0x5efa3b=this['_getSuggestionCoords'](_0x3f70c8),_0x54f5ee=_0x5efa3b[_0xe9c3fd],_0x11ce34=_0x5efa3b[_0x3461b5];_0x54f5ee<=_0x31a022[_0x3c2bf3]&&_0x31a022[_0x3c2bf3]+_0x142931<=_0x11ce34&&(_0x3f70c8['addRange'](_0x26ad4a),_0x4713c5=!0x0);}return _0x4713c5;};_0x476097['model']['document']['registerPostFixer'](_0x11113a=>{let _0x571247=!0x1;for(const _0x5cb84b of _0x476097['model']['document']['differ']['getChanges']())if('insert'==_0x5cb84b['type']){if('tableRow'==_0x5cb84b['name']){for(const _0xee78f of _0x5cb84b['position']['nodeAfter']['getChildren']())_0x571247=_0x571247||_0xdd54fe(_0xee78f,_0x11113a);}else'tableCell'==_0x5cb84b['name']&&(_0x571247=_0x571247||_0xdd54fe(_0x5cb84b['position']['nodeAfter'],_0x11113a));}return _0x571247;});}['_getSuggestionCoords'](_0x1518db){return this['_getCoordsForCells'](_0x1518db['getRanges']()['map'](_0x19c8e0=>_0x19c8e0['start']['nodeAfter']));}}function Ne(_0x2321f4){return Array['from'](new Set(_0x2321f4)['values']());}class _t extends _0x519785{static get['requires'](){return[At];}['afterInit'](){const _0x3ecbc4=this['editor'],_0x335651=_0x3ecbc4['model']['document']['selection'],_0x1087c6=_0x3ecbc4['locale'];if(!_0x3ecbc4['plugins']['has']('TableEditing'))return;const _0x27527b=_0x3ecbc4['plugins']['get']('TrackChangesEditing'),_0x548d98=_0x3ecbc4['plugins']['get']('TableUtils'),_0x40401f=_0x3ecbc4['plugins']['get'](At);_0x40401f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x27527b['enableCommand']('mergeTableCells',()=>{const _0x21c338=_0x548d98['getSelectionAffectedTableCells'](_0x3ecbc4['model']['document']['selection']);_0x3ecbc4['model']['change'](()=>{_0x27527b['markMultiRangeBlockFormat'](_0x21c338,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3ecbc4['commands']['get']('mergeTableCells')['on']('execute',(_0x3a31e0,_0x9d293)=>{_0x3ecbc4['commands']['get']('trackChanges')['value']&&(_0x9d293['length']>0x0&&_0x9d293[_0x9d293['length']-0x1]&&_0x9d293[_0x9d293['length']-0x1]['forceDefaultExecution']||_0x27527b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3a31e0['stop']());},{'priority':'highest'});for(const _0x28ed44 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x50f576=_0x3ecbc4['commands']['get'](_0x28ed44);_0x27527b['enableCommand'](_0x28ed44,()=>{const _0x185c50=_0x3ecbc4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xb40209=>_0xb40209['is']('element','tableCell')),_0x581452=_0x50f576['value'];_0x3ecbc4['model']['change'](()=>{_0x27527b['markMultiRangeBlockFormat']([_0x185c50,_0x581452],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x56d580 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4dbdc9=_0x3ecbc4['commands']['get'](_0x56d580);_0x27527b['enableCommand'](_0x56d580,()=>{const _0x5b4ecd=_0x548d98['getSelectionAffectedTableCells'](_0x3ecbc4['model']['document']['selection'])[0x0],_0x2af512=_0x5b4ecd['findAncestor']('table'),{column:_0x2b3ba0,row:_0x2a4d57}=_0x548d98['getCellLocation'](_0x5b4ecd);let _0x566484=[];if('horizontally'==_0x4dbdc9['direction']){const _0x4040a8=_0x548d98['createTableWalker'](_0x2af512,{'startRow':_0x2a4d57,'endRow':_0x2a4d57,'includeAllSlots':!0x0});_0x566484=Array['from'](_0x4040a8)['map'](_0x127f14=>_0x127f14['cell']);}else{const _0x3767d4=_0x548d98['createTableWalker'](_0x2af512,{'column':_0x2b3ba0,'includeAllSlots':!0x0});_0x566484=Array['from'](_0x3767d4)['map'](_0x52747f=>_0x52747f['cell']);}_0x3ecbc4['model']['change'](_0x42650d=>{_0x27527b['markBlockFormat'](_0x42650d['createRangeOn'](_0x5b4ecd),{'commandName':_0x56d580,'commandParams':[]},_0x566484,_0x56d580);});});}_0x27527b['descriptionFactory']['registerDescriptionCallback'](_0x5c06b2=>{if('formatBlock'!=_0x5c06b2['type']&&'formatInline'!=_0x5c06b2['type'])return;const {data:_0x4556dc}=_0x5c06b2;return _0x4556dc&&'mergeTableCells'==_0x4556dc['commandName']?{'type':'format','content':o(_0x1087c6,'*Merge\x20cells*')}:void 0x0;}),_0x27527b['descriptionFactory']['registerDescriptionCallback'](_0x3fc1b7=>{if('formatBlock'!=_0x3fc1b7['type']&&'formatInline'!=_0x3fc1b7['type'])return;const {data:_0x2e23b5}=_0x3fc1b7;return _0x2e23b5?'splitTableCellVertically'==_0x2e23b5['commandName']?{'type':'format','content':o(_0x1087c6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2e23b5['commandName']?{'type':'format','content':o(_0x1087c6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4f60a4=_0x40401f['_acceptFormatSuggestionCallbackFactory']();for(const _0x14892e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x27527b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14892e,'accept',_0x4f60a4);for(const _0xae69ad of['splitTableCellVertically','splitTableCellHorizontally'])_0x27527b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xae69ad,'accept',_0x4f60a4);_0x27527b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x322e05=>{_0x3ecbc4['model']['change'](_0x10f552=>{const _0x26aae0=Array['from'](_0x335651['getRanges']())['map'](_0x216a4e=>_0x45518e['fromRange'](_0x216a4e));_0x10f552['setSelection'](_0x322e05),_0x3ecbc4['commands']['get']('mergeTableCells')['refresh'](),_0x3ecbc4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1591c4=_0x26aae0['filter'](_0x36030b=>'$graveyard'!=_0x36030b['root']['rootName']);_0x1591c4['length']>0x0&&_0x10f552['setSelection'](_0x1591c4);for(const _0x1d7c6a of _0x26aae0)_0x1d7c6a['detach']();});});for(const _0x4ec428 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x41f489=_0x3ecbc4['commands']['get'](_0x4ec428);_0x41f489['on']('set:isEnabled',(_0x64afba,_0xafc781,_0x52b5b6)=>{if(_0x52b5b6){const _0x3a1cfa=_0x3ecbc4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xbb63a2=>_0xbb63a2['is']('element','tableCell'));this['_areMergableCells'](_0x41f489['value'],_0x3a1cfa)||(_0x64afba['return']=!0x1,_0x64afba['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5845b3=this['editor']['commands']['get']('mergeTableCells'),_0x170270=this['editor']['plugins']['get']('TableUtils');if(!_0x5845b3['isEnabled'])return!0x1;const _0x269626=_0x170270['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xbaa10a of _0x269626)for(const _0x400023 of _0x269626)if(_0xbaa10a!=_0x400023&&!this['_areMergableCells'](_0xbaa10a,_0x400023))return!0x1;return!0x0;}['_areMergableCells'](_0x2ffc59,_0x1d7ba4){const _0x215bb3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e9d23=this['editor']['model']['createRangeOn'](_0x2ffc59),_0x4c799f=this['editor']['model']['createRangeOn'](_0x1d7ba4),_0x1e1e25=new Set(),_0x3a5b9f=new Set();for(const _0x838685 of _0x215bb3['getSuggestions']())if(('insertion'==_0x838685['type']||'deletion'==_0x838685['type']||'mergeTableCells'==_0x838685['subType'])&&_0x838685['isInContent']){for(const _0x4361d5 of _0x838685['getRanges']())_0x4361d5['containsRange'](_0x4e9d23,!0x0)&&_0x1e1e25['add'](_0x838685['type']+':'+_0x838685['author']['id']),_0x4361d5['containsRange'](_0x4c799f,!0x0)&&_0x3a5b9f['add'](_0x838685['type']+':'+_0x838685['author']['id']);}if(_0x1e1e25['size']!=_0x3a5b9f['size'])return!0x1;for(const _0xbb073a of _0x1e1e25)if(!_0x3a5b9f['has'](_0xbb073a))return!0x1;return!0x0;}}class Ct extends _0x519785{static get['requires'](){return[At];}['afterInit'](){const _0x43a45e=this['editor'];if(!_0x43a45e['plugins']['has']('TableEditing'))return;const _0x55adb6=_0x43a45e['locale'],_0x781782=_0x43a45e['plugins']['get']('TrackChangesEditing');_0x781782['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x781782['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x781782['registerBlockAttribute']('headingRows'),_0x781782['registerBlockAttribute']('headingColumns'),_0x781782['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x55adb6,'FORMAT_HEADER_ROW')),_0x781782['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x55adb6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x26aa09=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bcba5=this['editor']['plugins']['get']('TableUtils'),_0x2b90e9=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x16f97d({showActiveMarker:_0x3a1ea5=!0x0,setDataAttribute:_0x4adb4f=!0x0}={}){return(_0x1584a0,_0x366002,_0x59dab0)=>{const {type:_0x2bcb29,id:_0x57a4b3}=_0x26aa09['_splitMarkerName'](_0x366002['markerName']),_0x1ee5b7=_0x26aa09['getSuggestion'](_0x57a4b3),_0x83fd44=_0x1ee5b7['data'];if('formatBlock'!=_0x1ee5b7['type']||!_0x83fd44||'setTableColumnHeader'!=_0x83fd44['commandName'])return;if(_0x366002['item'])return void _0x1584a0['stop']();if(!_0x59dab0['consumable']['consume'](_0x366002['markerRange'],_0x1584a0['name']))return;const _0x252429=_0x366002['markerRange']['start']['nodeAfter'],_0x25627b=_0x366002['markerRange']['end']['nodeBefore'],_0x5e9c58=_0x252429['parent']['parent'],{column:_0xd2e42c}=_0x4bcba5['getCellLocation'](_0x252429),{column:_0x248b6e}=_0x4bcba5['getCellLocation'](_0x25627b);for(let _0x38ae95=_0xd2e42c;_0x38ae95<=_0x248b6e;_0x38ae95++){const _0x52b2fa=_0x4bcba5['createTableWalker'](_0x5e9c58,{'column':_0x38ae95,'includeAllSlots':!0x1});for(const _0x348361 of _0x52b2fa){const _0x4ba0d8=_0x348361['cell'],_0x341969=_0x59dab0['mapper']['toViewElement'](_0x4ba0d8);_0x59dab0['writer']['addClass']('ck-suggestion-marker-'+_0x2bcb29,_0x341969),_0x4adb4f&&_0x59dab0['writer']['setAttribute']('data-suggestion',_0x57a4b3,_0x341969),_0x59dab0['mapper']['bindElementToMarker'](_0x341969,_0x366002['markerName']),_0x3a1ea5&&(_0x26aa09['activeMarkers']['includes'](_0x366002['markerName'])?_0x59dab0['writer']['addClass']('ck-suggestion-marker--active',_0x341969):_0x59dab0['writer']['removeClass']('ck-suggestion-marker--active',_0x341969));}}};}_0x26aa09['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2b90e9),_0x26aa09['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2b90e9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x16f97d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4195f0,_0x456b4d,_0x4e63a9)=>{_0x4e63a9['options']['showSuggestionHighlights']&&_0x16f97d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4195f0,_0x456b4d,_0x4e63a9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3caaf8,_0x1d2ab9,_0x1a0b0a)=>{const {type:_0x2890b9,id:_0x276ff1}=_0x26aa09['_splitMarkerName'](_0x1d2ab9['markerName']),_0x5eb1ab=_0x26aa09['getSuggestion'](_0x276ff1),_0x284149=_0x5eb1ab['data'];if('formatBlock'!=_0x5eb1ab['type']||!_0x284149||'setTableColumnHeader'!=_0x284149['commandName'])return;const _0x1aa903=_0x1a0b0a['mapper']['markerNameToElements'](_0x1d2ab9['markerName']);if(_0x1aa903){for(const _0x374a7e of _0x1aa903)_0x1a0b0a['writer']['removeClass']('ck-suggestion-marker-'+_0x2890b9,_0x374a7e),_0x1a0b0a['writer']['removeClass']('ck-suggestion-marker--active',_0x374a7e),_0x1a0b0a['writer']['removeAttribute']('data-suggestion',_0x374a7e),_0x1a0b0a['mapper']['unbindElementFromMarkerName'](_0x374a7e,_0x1d2ab9['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17a5b2=this['editor'],_0x456132=_0x17a5b2['locale'];function _0x543097(_0x534b9e){return{'type':'format','content':o(_0x456132,'*Format:*\x20%0',_0x534b9e)};}_0x17a5b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x97015a=>{if('formatBlock'!=_0x97015a['type'])return;const {data:_0x188e36}=_0x97015a;if(_0x188e36){if('setTableRowHeader'==_0x188e36['commandName']){const _0x87201d=_0x188e36['commandParams'][0x0]['forceValue'];return _0x543097(o(_0x456132,_0x87201d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x188e36['commandName']){const _0x48d23d=_0x188e36['commandParams'][0x0]['forceValue'];return _0x543097(o(_0x456132,_0x48d23d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x519785{['afterInit'](){const _0x42c652=this['editor'],_0x3c83a6=_0x42c652['locale'],_0x366a4d=_0x42c652['plugins']['get']('TrackChangesEditing');function _0x1c4333(_0x47347d){return{'type':'format','content':''+o(_0x3c83a6,'*Set\x20table\x20type:*\x20%0',_0x47347d)};}_0x42c652['plugins']['has']('TableLayout')&&(_0x366a4d['enableCommand']('insertTableLayout'),_0x366a4d['enableDefaultAttributesIntegration']('tableType'),_0x366a4d['registerBlockAttribute']('tableType'),_0x366a4d['descriptionFactory']['registerElementLabel'](_0x398ef2=>_0x398ef2['is']('element','table')&&'layout'===_0x398ef2['getAttribute']('tableType'),_0x44bd44=>o(_0x3c83a6,'ELEMENT_LAYOUT_TABLE',_0x44bd44)),_0x366a4d['descriptionFactory']['registerDescriptionCallback'](_0xbfd87b=>{const {data:_0x376b16}=_0xbfd87b;if(_0x376b16&&'tableType'==_0x376b16['key'])switch(_0x376b16['newValue']){case'layout':return _0x1c4333(o(_0x3c83a6,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1c4333(o(_0x3c83a6,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x4d22e8=>[_0x4d22e8,null]));class Nt extends _0x519785{static get['requires'](){return[At];}['afterInit'](){const _0x46154b=this['editor'];if(!_0x46154b['plugins']['has']('TableClipboard'))return;const _0x44e2b9=_0x46154b['plugins']['get']('TrackChangesEditing'),_0x5df5db=_0x46154b['plugins']['get']('TableUtils'),_0x24f85b=_0x46154b['plugins']['get'](At),_0x5a21e9=_0x46154b['plugins']['get']('TableClipboard'),_0x49f1c2=_0x46154b['plugins']['get']('TableSelection'),_0x455007=_0x46154b['plugins']['get'](_0x182772);_0x24f85b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x46154b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x46154b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3947e4=null,_0xdf3368=!0x1;_0x455007['on']('contentInsertion',(_0x1c4561,_0x4f8135)=>{_0xdf3368='paste'===_0x4f8135['method'];}),_0x46154b['model']['on']('insertContent',(_0xc82b1d,_0x576365)=>{if(!_0xdf3368&&null===_0x49f1c2['getSelectedTableCells']())return;const [_0x2e3e2b,_0x511fc2]=_0x576365,_0x4804a9=_0x576365[_0x576365['length']-0x1];_0x4804a9&&_0x4804a9['forceDefaultExecution']||_0x44e2b9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x540264,_0x283370,_0x58bb7e,_0x4dfd95,_0x2ec418){if(_0x283370&&!_0x283370['is']('documentSelection'))return!0x1;const _0x3f4ad2=_0x2ec418['getTableIfOnlyTableInContent'](_0x540264,_0x58bb7e);if(!_0x3f4ad2||!Ue(_0x3f4ad2,void 0x0,_0x4dfd95))return!0x1;const _0x3d4e6b=_0x4dfd95['getSelectionAffectedTableCells'](_0x58bb7e['document']['selection']);if(!_0x3d4e6b['length'])return!0x1;const _0x2c17b7=_0x3d4e6b[0x0]['findAncestor']('table'),_0x636371=_0x4dfd95['getRowIndexes'](_0x3d4e6b),_0x25f7eb=_0x4dfd95['getColumnIndexes'](_0x3d4e6b),_0x4cfee7={'startRow':_0x636371['first'],'endRow':_0x636371['last'],'startColumn':_0x25f7eb['first'],'endColumn':_0x25f7eb['last']};return 0x1==_0x3d4e6b['length']&&(_0x4cfee7['endRow']+=_0x4dfd95['getRows'](_0x3f4ad2)-0x1,_0x4cfee7['endColumn']+=_0x4dfd95['getColumns'](_0x3f4ad2)-0x1),Ue(_0x2c17b7,_0x4cfee7,_0x4dfd95);}(_0x2e3e2b,_0x511fc2,_0x46154b['model'],_0x5df5db,_0x5a21e9)&&(_0xc82b1d['stop'](),_0x3947e4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x46154b['model']['change'](()=>{_0x46154b['model']['insertContent'](_0x576365[0x0],_0x576365[0x1],_0x576365[0x2],{'forceDefaultExecution':!0x0});const _0x34477d=_0x19694d(),{rowInsertionRanges:_0x1cb319,columnInsertionRanges:_0x437c5d,insertionRanges:_0x1f94d4,deletionRanges:_0x10c90b,cells:_0x46c6c7}=_0x3947e4;_0x1cb319['length']&&_0x44e2b9['markMultiRangeInsertion'](_0x1cb319,'tablePasteRow',{'tablePasteChainId':_0x34477d}),_0x437c5d['length']&&_0x44e2b9['markMultiRangeInsertion'](_0x437c5d,'tablePasteColumn',{'tablePasteChainId':_0x34477d}),_0x1f94d4['length']&&(_0x44e2b9['markMultiRangeInsertion'](_0x1f94d4,'tablePaste',{'tablePasteChainId':_0x34477d,'skipNestingCheck':!0x0}),_0x1f94d4['forEach'](_0xa3481e=>_0xa3481e['detach']?.())),_0x10c90b['length']&&(_0x44e2b9['markMultiRangeDeletion'](_0x10c90b,'tablePaste',{'tablePasteChainId':_0x34477d,'skipNestingCheck':!0x0}),_0x10c90b['forEach'](_0x597732=>_0x597732['detach']?.()));const _0xbadb42=_0x44e2b9['markMultiRangeBlockFormat'](_0x46c6c7['map'](({element:_0xb14c49})=>_0xb14c49),{'formatGroupId':_0x19694d()},[],'tablePasteCell',{'tablePasteChainId':_0x34477d});if(_0xbadb42){const _0x3ad27f=_0xbadb42['getMarkers'](),_0x2b3457=[];for(const {element:_0x40d869,attributes:_0x457181}of _0x46c6c7){if(!_0x457181)continue;const _0x23c113=_0x46154b['model']['createRangeOn'](_0x40d869),_0x3506a2=_0x3ad27f['find'](_0x3d7af6=>_0x3d7af6['getRange']()['isEqual'](_0x23c113));_0x3506a2&&_0x2b3457['push']([_0x3506a2['name'],_0x457181]);}_0x2b3457['length']&&_0xbadb42['setAttribute']('markerAttributes',Object['fromEntries'](_0x2b3457));}_0x3947e4=null;}));},{'priority':_0x57c570['high']+0xa}),_0x455007['on']('contentInsertion',()=>{_0xdf3368=!0x1;},{'priority':'lowest'}),_0x46154b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xa7a71b,_0x10cad4)=>{const [_0x354242,_0x4a8f78,,_0x55d570]=_0x10cad4;if(!_0x3947e4)return;_0xa7a71b['stop']();const _0x39ecbe=_0x354242['cell'],_0x139bb0=_0x4a8f78,_0x2f8244=Oe(_0x39ecbe),_0x16e2a9=Oe(_0x139bb0);_0xa7a71b['return']=_0x39ecbe;let _0xed2da3=null,_0x3c21d1=null;if(_0x16e2a9||_0x2f8244){if(_0x2f8244&&!_0x16e2a9){_0x55d570['remove'](_0x39ecbe['getChild'](0x0));for(const _0x4b9cea of Array['from'](_0x139bb0['getChildren']()))_0x55d570['insert'](_0x4b9cea,_0x39ecbe,'end');const _0x4a4ea0=_0x3947e4['rowInsertionIndexes']['includes'](_0x354242['row']),_0x2e97a7=_0x3947e4['columnInsertionIndexes']['includes'](_0x354242['column']);_0x4a4ea0||_0x2e97a7||(_0xed2da3=_0x45518e['fromRange'](_0x55d570['createRangeIn'](_0x39ecbe)));}else _0x16e2a9&&!_0x2f8244&&(_0x3c21d1=_0x55d570['createRangeIn'](_0x39ecbe));}else{const _0x303b6a=_0x55d570['createElement']('tableCellSuggestion'),_0x1c59f4=_0x55d570['createElement']('tableCellSuggestion');_0x55d570['wrap'](_0x55d570['createRangeIn'](_0x39ecbe),_0x1c59f4),_0x55d570['insert'](_0x303b6a,_0x39ecbe,0x0);for(const _0x3f46cf of Array['from'](_0x139bb0['getChildren']()))_0x55d570['insert'](_0x3f46cf,_0x303b6a,'end');_0xed2da3=_0x45518e['fromRange'](_0x55d570['createRangeOn'](_0x303b6a)),_0x3c21d1=_0x45518e['fromRange'](_0x55d570['createRangeOn'](_0x1c59f4));}const _0x2835fe=Array['from'](_0x139bb0['getAttributes']())['filter'](([_0x25d363])=>Be['includes'](_0x25d363));_0x3947e4['cells']['push']({'element':_0x39ecbe,'attributes':_0x2835fe['length']?Object['fromEntries'](_0x2835fe):null}),_0xed2da3&&_0x3947e4['insertionRanges']['push'](_0xed2da3),_0x3c21d1&&_0x3947e4['deletionRanges']['push'](_0x3c21d1);},{'priority':'high'}),_0x5df5db['on']('insertColumns',(_0x34db0c,_0x2840e5)=>{const [_0x1f0361,_0xe5d2b9={}]=_0x2840e5;if(!_0x3947e4)return;const _0x34e74c=_0xe5d2b9['at']||0x0,_0x3b3c0d=_0xe5d2b9['columns']||0x1;_0x3947e4['columnInsertionIndexes']=new Array(_0x3b3c0d)['fill'](_0x34e74c)['map']((_0x496806,_0x2403e1)=>_0x496806+_0x2403e1);for(const {cell:_0x400606}of _0x5df5db['createTableWalker'](_0x1f0361,{'startColumn':_0x34e74c,'endColumn':_0x34e74c+_0x3b3c0d-0x1}))_0x3947e4['columnInsertionRanges']['push'](_0x46154b['model']['createRangeOn'](_0x400606));},{'priority':'low'}),_0x5df5db['on']('insertRows',(_0x5ee07d,_0x1f7bb6)=>{const [_0x178f2c,_0x4a58e5={}]=_0x1f7bb6;if(!_0x3947e4)return;const _0xb67c3a=_0x4a58e5['at']||0x0,_0x48b11e=_0x4a58e5['rows']||0x1;_0x3947e4['rowInsertionIndexes']=new Array(_0x48b11e)['fill'](_0xb67c3a)['map']((_0x18a1de,_0x2ec5aa)=>_0x18a1de+_0x2ec5aa);for(const {cell:_0x44b887}of _0x5df5db['createTableWalker'](_0x178f2c,{'startRow':_0xb67c3a,'endRow':_0xb67c3a+_0x48b11e-0x1}))_0x3947e4['rowInsertionRanges']['push'](_0x46154b['model']['createRangeOn'](_0x44b887));},{'priority':'low'}),_0x44e2b9['descriptionFactory']['registerDescriptionCallback'](_0x5166d5=>{if(_0x5166d5['subType']&&_0x5166d5['subType']['startsWith']('tablePaste'))return _0x5166d5['previous']?{}:{'type':'insertion','content':o(_0x46154b['locale'],'*Replace\x20table\x20cells*')};});const _0x31efed=()=>!0x1;for(const _0x128216 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x44e2b9['_suggestionFactory']['registerCustomCallback']('insertion',_0x128216,'join',_0x31efed),_0x44e2b9['_suggestionFactory']['registerCustomCallback']('deletion',_0x128216,'join',_0x31efed),_0x44e2b9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x128216,'join',_0x31efed);_0x44e2b9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x31efed),_0x44e2b9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xe2dcae,_0x474139,_0x44208d)=>{const _0xddf1a0=_0xe2dcae['map'](_0x4d6c78=>_0x4d6c78['getContainedElement']())['filter'](_0x556f32=>_0x556f32),_0x3f2985=new Map(_0xddf1a0['map'](_0x28c2ef=>[_0x28c2ef,null]));if(_0x3947e4){for(const {element:_0x3b353d,attributes:_0x4e4cc0}of _0x3947e4['cells'])_0x4e4cc0&&_0x3f2985['set'](_0x3b353d,_0x4e4cc0);}else{if(_0x44208d&&_0x44208d['markerAttributes'])for(const [_0x2f54b0,_0x4ed5b1]of Object['entries'](_0x44208d['markerAttributes'])){const _0x40601a=_0x46154b['model']['markers']['get'](_0x2f54b0),_0x427c7e=_0x40601a?_0x40601a['getRange']()['getContainedElement']():null;_0x427c7e&&_0x3f2985['set'](_0x427c7e,_0x4ed5b1);}}_0x46154b['model']['change'](_0x41084a=>{for(const [_0x1bdfeb,_0x14509b]of _0x3f2985)_0x41084a['setAttributes']({...xe,..._0x14509b},_0x1bdfeb);});});const _0x25ed55=(_0x5730f0,_0x344525)=>{_0x44e2b9['_suggestionFactory']['registerCustomCallback'](_0x5730f0,'tablePaste',_0x344525,(_0x258db8,_0x2b3f69,_0x22e55f)=>{_0x46154b['model']['change'](_0x53924d=>{const _0x4cb25a=[];for(const _0x23c2c5 of _0x258db8){const _0x5acfdf=_0x23c2c5['start']['nodeAfter'];_0x5acfdf['is']('element','tableCellSuggestion')&&_0x4cb25a['push'](_0x5acfdf);}_0x44e2b9['_suggestionFactory']['getSuggestionCallback'](_0x5730f0,null,_0x344525)(_0x258db8,_0x2b3f69,_0x22e55f);for(const _0xc27a14 of _0x4cb25a)'$graveyard'!=_0xc27a14['root']['rootName']&&_0x53924d['unwrap'](_0xc27a14);});});};_0x25ed55('insertion','accept'),_0x25ed55('insertion','discard'),_0x25ed55('deletion','accept'),_0x25ed55('deletion','discard'),_0x44e2b9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3484ab=>{const _0x24a33a=_0x3484ab['map'](_0xe3108c=>_0xe3108c['getContainedElement']()),_0x26eaef=_0x24a33a[0x0]['findAncestor']('table'),{minRow:_0x22d782,maxRow:_0x5dccd9}=_0x24f85b['_getCoordsForCells'](_0x24a33a);_0x5df5db['removeRows'](_0x26eaef,{'at':_0x22d782,'rows':_0x5dccd9-_0x22d782+0x1});}),_0x44e2b9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x970160=>{const _0x26d7e3=_0x970160['map'](_0x1a0022=>_0x1a0022['getContainedElement']()),_0x4ebe30=_0x26d7e3[0x0]['findAncestor']('table'),{minColumn:_0x250f04,maxColumn:_0x57428a}=_0x24f85b['_getCoordsForCells'](_0x26d7e3);_0x5df5db['removeColumns'](_0x4ebe30,{'at':_0x250f04,'columns':_0x57428a-_0x250f04+0x1});});const _0x3ca551=(_0x34cdb3,_0x56fe33)=>{if(!_0x56fe33['subType']||!_0x56fe33['subType']['startsWith']('tablePaste'))return;const _0x40a1be=_0x56fe33['attributes']['tablePasteChainId'],_0x5cb732=_0x44e2b9['getSuggestions']()['filter'](_0x2d3c62=>_0x2d3c62['isInContent']&&_0x2d3c62['attributes']&&_0x2d3c62['attributes']['tablePasteChainId']==_0x40a1be);_0x5cb732['length']&&_0x56fe33['getAllAdjacentSuggestions']()['length']!=_0x5cb732['length']&&_0x5cb732['reduce']((_0x6e6b45,_0x17d69b)=>(_0x6e6b45['next']=_0x17d69b,_0x17d69b['previous']=_0x6e6b45,_0x17d69b));};function _0x1b3dab(_0x25c9ed,_0x20cc86=!0x0){const {id:_0x3cba03,authorId:_0x25159e}=_0x44e2b9['_splitMarkerName'](_0x25c9ed['markerName']),_0xa04940=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x353d16=_0x44e2b9['activeMarkers']['includes'](_0x25c9ed['markerName']);return _0x353d16&&_0xa04940['push']('ck-suggestion-marker--active'),{'classes':_0xa04940,'attributes':{'data-suggestion':_0x3cba03,'data-author-id':_0x25159e},'priority':_0x353d16&&_0x20cc86?0xbc2:0xbb8};}_0x44e2b9['on']('suggestionLoaded',_0x3ca551,{'priority':'high'}),_0x44e2b9['on']('suggestionUnloaded',_0x3ca551,{'priority':'high'}),_0x46154b['model']['document']['registerPostFixer'](()=>{let _0x4cefb7=!0x1;const _0x19ba48=Array['from'](_0x46154b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b42d5,data:_0x508f31}of _0x19ba48){const {group:_0x40e63d,type:_0x2e0fdb,id:_0x49be60}=_0x44e2b9['_splitMarkerName'](_0x2b42d5);if('suggestion'!=_0x40e63d||'deletion'!=_0x2e0fdb||_0x508f31['oldRange'])continue;if(!_0x44e2b9['hasSuggestion'](_0x49be60))continue;const _0x411648=_0x44e2b9['getSuggestion'](_0x49be60)['getRanges'](),_0x3bb736=_0x46154b['plugins']['get']('Users')['me'];for(const _0x5212ff of _0x44e2b9['getSuggestions']()){if(!_0x5212ff['isInContent']||_0x5212ff['author']!=_0x3bb736)continue;if('formatBlock'!=_0x5212ff['type']||'tablePasteCell'!=_0x5212ff['subType'])continue;if(_0x5212ff['getRanges']()['every'](_0x36bedf=>_0x411648['some'](_0x301fe3=>_0x301fe3['containsRange'](_0x36bedf,!0x0)))){for(const _0x198b1f of _0x5212ff['getAllAdjacentSuggestions']())_0x198b1f['isInContent']&&(_0x198b1f['discard'](),_0x4cefb7=!0x0);}}}return _0x4cefb7;}),_0x46154b['model']['document']['registerPostFixer'](_0x3941c7=>{const _0x36d1b4=_0x46154b['commands']['get']('redo');if(!_0x36d1b4||!_0x36d1b4['_createdBatches']['has'](_0x3941c7['batch']))return!0x1;let _0x1a5a29=!0x1;const _0x5d7480=_0x46154b['plugins']['get']('Users')['me'],_0x3795e4=_0x46154b['model']['document']['differ']['getChanges'](),_0x47ae65=Array['from'](_0x46154b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x16de9a,data:_0x207932})=>{const {group:_0x2e8ec3,subType:_0x591356,authorId:_0x2bd59b}=_0x44e2b9['_splitMarkerName'](_0x16de9a);return'suggestion'==_0x2e8ec3&&'tablePaste'==_0x591356&&_0x2bd59b==_0x5d7480['id']&&!_0x207932['oldRange'];});for(const _0x58055b of _0x3795e4){if('insert'!=_0x58055b['type']||'tableCellSuggestion'!=_0x58055b['name']||0x1!=_0x58055b['length'])continue;const _0x33dfc3=_0x3941c7['createRange'](_0x58055b['position'],_0x58055b['position']['getShiftedBy'](0x1));if(!_0x47ae65['find'](({data:_0x33384b})=>_0x33384b['newRange']['isEqual'](_0x33dfc3))){for(const {name:_0x3ff52e,data:_0x2e4e42}of _0x47ae65)if(_0x33dfc3['containsRange'](_0x2e4e42['newRange'])){_0x3941c7['updateMarker'](_0x3ff52e,{'range':_0x33dfc3}),_0x1a5a29=!0x0;break;}}}return _0x1a5a29;}),_0x46154b['model']['document']['registerPostFixer'](_0x102ebb=>{let _0x2e39e9=!0x1;const _0x2728dc=_0x46154b['plugins']['get']('Users')['me'],_0x22c2c9=_0x44e2b9['getSuggestions']()['filter'](_0xa49c9d=>_0xa49c9d['isInContent']&&_0xa49c9d['author']==_0x2728dc),_0x1be5a7=new Set(),_0x855ee2=new Set();for(const _0xedde97 of _0x22c2c9)if('tablePaste'==_0xedde97['subType'])for(const _0x5a9eac of _0xedde97['getMarkers']()){const _0xfbed4b=_0x5a9eac['getRange']()['getContainedElement']();if(_0xfbed4b){if(_0xfbed4b['is']('element','tableCellSuggestion')&&Oe(_0xfbed4b)){_0xedde97['removeMarker'](_0x5a9eac['name']),_0x1be5a7['add'](_0xfbed4b),_0x2e39e9=!0x0;const _0x3c9a56=_0xfbed4b['nextSibling'],_0x26ce1b=_0xfbed4b['previousSibling'],_0x2e53ab=_0x3c9a56&&_0x3c9a56['is']('element','tableCellSuggestion'),_0x10e4fb=_0x26ce1b&&_0x26ce1b['is']('element','tableCellSuggestion');_0x2e53ab&&!_0x1be5a7['has'](_0x3c9a56)&&_0x855ee2['add'](_0x3c9a56),_0x10e4fb&&!_0x1be5a7['has'](_0x26ce1b)&&_0x855ee2['add'](_0x26ce1b);}else _0xfbed4b['is']('element','paragraph')&&_0xfbed4b['isEmpty']&&(_0xedde97['removeMarker'](_0x5a9eac['name']),_0x2e39e9=!0x0);}}else{if('tablePasteCell'==_0xedde97['subType']){if(!_0xedde97['attributes']||!_0xedde97['attributes']['tablePasteChainId'])continue;const _0xae667c=_0xedde97['attributes']['markerAttributes'];if(_0xae667c&&Object['keys'](_0xae667c)['length'])continue;const _0x45aaff=_0xedde97['attributes']['tablePasteChainId'];let _0x5ce3aa=!0x0,_0x4361d3=!0x0;for(const _0x216f82 of _0x22c2c9)if(_0x216f82['subType']&&_0x216f82['subType']['startsWith']('tablePaste')){if(!_0x216f82['attributes']['tablePasteChainId']){_0x4361d3=!0x1;break;}if(_0x216f82['id']!=_0xedde97['id']&&_0x216f82['attributes']['tablePasteChainId']==_0x45aaff){_0x5ce3aa=!0x1;break;}}_0x4361d3&&_0x5ce3aa&&(_0xedde97['removeMarkers'](),_0x2e39e9=!0x0);}}for(const _0x5b5858 of _0x1be5a7)_0x102ebb['remove'](_0x5b5858);for(const _0x4546dd of _0x855ee2)_0x102ebb['unwrap'](_0x4546dd);return _0x2e39e9;}),_0x46154b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5717ff=>_0x1b3dab(_0x5717ff),'converterPriority':'high'}),_0x46154b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x851037,_0x138333)=>_0x138333['options']['showSuggestionHighlights']?_0x1b3dab(_0x851037,!0x1):null,'converterPriority':'high'});const _0xd23444=_0x46154b['editing']['view'];this['listenTo'](_0xd23444['document'],'clipboardOutput',(_0x5d75a4,_0x34d0ce)=>{const _0xe33253=[];for(const _0x579a9c of _0xd23444['createRangeIn'](_0x34d0ce['content'])['getItems']())_0x579a9c['is']('element','suggestion-td')&&_0xe33253['push'](_0x579a9c);_0xd23444['change'](_0x43111e=>{for(const _0x1eca76 of _0xe33253)_0x43111e['move'](_0x43111e['createRangeIn'](_0x1eca76),_0x43111e['createPositionBefore'](_0x1eca76)),_0x43111e['remove'](_0x1eca76);});});}}function Oe(_0x3e6d04){if(_0x3e6d04['isEmpty'])return!0x0;const _0x222686=_0x3e6d04['getChild'](0x0);return _0x222686['is']('element','paragraph')&&_0x222686['isEmpty'];}function Ue(_0x433a30,_0x2765e9={},_0x22417b){for(const {isAnchor:_0x4c3ccb,cellHeight:_0x1070df,cellWidth:_0x317973}of _0x22417b['createTableWalker'](_0x433a30,{'includeAllSlots':!0x0,..._0x2765e9}))if(!_0x4c3ccb||0x1!=_0x1070df||0x1!=_0x317973)return!0x1;return!0x0;}class Dt extends _0x519785{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x639b41=this['editor']['plugins']['get']('TrackChangesEditing');_0x639b41['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x639b41['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x639b41['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x639b41['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x639b41['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x639b41['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x33727d,_0x779d0e){const _0x3b67c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34f95e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x25a7ed=_0x779d0e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x531364=_0x34f95e['getColumnGroupElement'](_0x25a7ed);let _0x8cc8eb=_0x531364?_0x34f95e['getTableColumnsWidths'](_0x531364):null,_0x21c30b=_0x25a7ed['getAttribute']('tableWidth')||null;const _0x5456a4=_0x779d0e['tableWidth']||_0x21c30b,_0x200583=_0x779d0e['columnWidths']||_0x8cc8eb,_0x1af39c=this['editor']['plugins']['get']('Users')['me'];for(const _0x108d48 of _0x3b67c0['getSuggestions']()){const _0x1940a1=_0x108d48['getContainedElement']();if('resizeTable'===_0x108d48['subType']&&_0x1940a1===_0x25a7ed){_0x108d48['author']!==_0x1af39c&&_0x108d48['discard']();const _0x2c1080=_0x108d48['data']['commandParams'];_0x21c30b=_0x2c1080[0x0]['tableWidth'],_0x8cc8eb=_0x2c1080[0x0]['columnWidths'];break;}}_0x33727d({'table':_0x25a7ed,'tableWidth':_0x5456a4,'columnWidths':_0x200583}),_0x3b67c0['markBlockFormat'](_0x25a7ed,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x21c30b,'columnWidths':_0x8cc8eb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2f423f){if('formatBlock'!=_0x2f423f['type']&&'formatInline'!=_0x2f423f['type'])return;const {data:_0x54d8df}=_0x2f423f;if(_0x54d8df&&'resizeTable'===_0x54d8df['formatGroupId']){const _0x35f5c0='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x35f5c0)};}}}class Mt extends _0x519785{['afterInit'](){const _0x2be7a0=this['editor'];_0x2be7a0['plugins']['has']('Template')&&_0x2be7a0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x519785{['afterInit'](){const _0x48604f=this['editor'];if(!_0x48604f['commands']['get']('insertTableOfContents'))return;_0x48604f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x885364=_0x48604f['plugins']['get']('TrackChangesEditing'),_0x4965ae=_0x48604f['locale'];_0x885364['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5dc17b=>o(_0x4965ae,'ELEMENT_TABLE_OF_CONTENTS',_0x5dc17b));}}class Bt extends _0x519785{['afterInit'](){const _0x2f5f11=this['editor'];if(!_0x2f5f11['plugins']['has']('Title'))return;const _0x4b1ee4=_0x2f5f11['plugins']['get']('TrackChangesEditing');_0x4b1ee4['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2f5f11['locale'],'ELEMENT_TITLE')),_0x2f5f11['model']['document']['registerPostFixer'](_0x89f4e0=>{let _0x49d306=!0x1;const _0x54afab=Array['from'](_0x2f5f11['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x317ae2,data:_0x2c9f02}of _0x54afab){const {group:_0x4a8f6d}=_0x4b1ee4['_splitMarkerName'](_0x317ae2);if('suggestion'!==_0x4a8f6d||!_0x2c9f02['newRange'])continue;const _0x15cf5b=_0x2c9f02['newRange'],_0x5adb6f=_0x15cf5b['end']['nodeBefore'];if(!_0x5adb6f||!_0x5adb6f['is']('element','title-content'))continue;if(!_0x15cf5b['start']['isTouching'](_0x15cf5b['end']))continue;const _0x104747=_0x2f5f11['model']['schema']['getNearestSelectionRange'](_0x15cf5b['end'],'forward');if(_0x104747&&_0x104747['isCollapsed']){const _0x5297b8=_0x89f4e0['createRange'](_0x15cf5b['start'],_0x104747['start']);_0x5297b8['isEqual'](_0x15cf5b)||(_0x89f4e0['updateMarker'](_0x317ae2,{'range':_0x5297b8}),_0x49d306=!0x0);}_0x49d306||(_0x89f4e0['removeMarker'](_0x317ae2),_0x49d306=!0x0);}return _0x49d306;});}}class Tt extends _0x519785{['afterInit'](){const _0x2c2b78=this['editor'],_0x1d59d3=_0x2c2b78['plugins']['get']('TrackChangesEditing');_0x2c2b78['plugins']['has']('Uploadcare')&&(_0x1d59d3['enableCommand']('uploadcare'),_0x2c2b78['plugins']['has']('UploadcareImageEdit')&&(_0x1d59d3['enableCommand']('uploadcareImageEdit'),_0x1d59d3['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1d59d3['registerBlockAttribute']('uploadcareImageId'),_0x1d59d3['descriptionFactory']['registerDescriptionCallback'](_0x5f4d4b=>{if('attribute'!=_0x5f4d4b['type'])return;const {data:_0x2e4d7d}=_0x5f4d4b;return _0x2e4d7d&&'uploadcareImageId'==_0x2e4d7d['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x519785{['afterInit'](){const _0x437cc2=this['editor'],_0x1255d9=_0x437cc2['plugins']['get']('TrackChangesEditing');_0x437cc2['plugins']['has']('UndoEditing')&&(_0x1255d9['enableCommand']('undo'),_0x1255d9['enableCommand']('redo'));}}class Ot extends _0x519785{static get['requires'](){return[At];}['afterInit'](){const _0x3d82c4=this['editor'];if(!_0x3d82c4['plugins']['has']('TableCaptionEditing'))return;_0x3d82c4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x519785{['tableProperties'];['tableCellProperties'];constructor(_0x3789e3){super(_0x3789e3),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x22e448=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x39dd8d of this['tableProperties'])_0x22e448['enableCommand'](_0x39dd8d,(_0xa6cbe3,_0x17bebc)=>{const _0x2cb0b7=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x39dd8d,[_0x2cb0b7],this['tableProperties'],'tableProperties',_0xa6cbe3,_0x17bebc);});_0x22e448['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x22e448['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22e448['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x433e70,_0x94db8a)=>this['handleDiscardAction'](this['tableProperties'],_0x433e70,_0x94db8a)),_0x22e448['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x174743 of this['tableCellProperties'])_0x22e448['enableCommand'](_0x174743,(_0x3bf012,_0x529f62)=>{const _0x4bbbba=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x174743,_0x4bbbba,this['tableCellProperties'],'tableCellProperties',_0x3bf012,_0x529f62);});_0x22e448['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x22e448['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x22e448['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x223ce1,_0x219382)=>this['handleDiscardAction'](this['tableCellProperties'],_0x223ce1,_0x219382)),_0x22e448['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x22e448['descriptionFactory']['registerDescriptionCallback'](_0x4be70d=>this['handleSuggestionDescription'](_0x4be70d));}['_handlePropertyChange'](_0x3a7c0e,_0x1cc2da,_0x3e35bb,_0x1ff179,_0x895a8b,_0x22cb9e){const _0x4221c4=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x22cb9e['batch'],()=>{for(const _0x5a539f of _0x1cc2da){if(this['_getSuggestion'](_0x5a539f,_0x1ff179))_0x895a8b(_0x22cb9e);else{const _0xb0a2da={};for(const _0x3b4500 of _0x3e35bb){const _0x214bd6=_0x5a539f['getAttribute'](_0x3b4500);void 0x0!==_0x214bd6&&(_0xb0a2da[_0x3b4500]=_0x214bd6);}_0x895a8b(_0x22cb9e),_0x4221c4['markBlockFormat'](_0x5a539f,{'commandParams':[_0xb0a2da]},[],_0x1ff179);}}});}['handleDiscardAction'](_0x3fa6e7,_0x341063,_0x8b795e){const _0x50a5d3=_0x341063[0x0]['start']['nodeAfter'],_0x44a1cf=_0x8b795e['commandParams'][0x0];this['editor']['model']['change'](_0x47eac0=>{for(const _0x1449a8 of _0x3fa6e7)void 0x0!==_0x44a1cf[_0x1449a8]?_0x47eac0['setAttribute'](_0x1449a8,_0x44a1cf[_0x1449a8],_0x50a5d3):_0x47eac0['removeAttribute'](_0x1449a8,_0x50a5d3);});}['handleSuggestionDescription'](_0x361607){if(_0x361607['data'])switch(_0x361607['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'](_0x50ab6f,_0x50f6a1){const _0x58063b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x34851b of _0x58063b['getSuggestions']({'skipNotAttached':!0x0})){const _0x360f17=_0x34851b['getContainedElement']();if(_0x34851b['subType']===_0x50f6a1&&_0x360f17===_0x50ab6f)return _0x34851b;}return null;}}class Rt extends _0x519785{['afterInit'](){const _0x27f3be=this['editor'];if(!_0x27f3be['plugins']['has']('LineHeight'))return;const _0x270ca5=_0x27f3be['plugins']['get']('TrackChangesEditing'),_0x1df656=_0x27f3be['locale'];_0x270ca5['enableDefaultAttributesIntegration']('lineHeight'),_0x270ca5['registerBlockAttribute']('lineHeight'),_0x270ca5['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1df656,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x519785{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3141dd,_0x2a689b,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5429b4){super(_0x5429b4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x27cc29,_0x8b360,_0x266def,_0x132ecc)=>{this['_model']['change'](()=>{for(const _0x54cc02 of[..._0x132ecc,..._0x266def])this['_model']['markers']['has'](_0x54cc02)&&_0x5429b4['editing']['reconvertMarker'](_0x54cc02);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5429b4['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x5429b4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5429b4['config']['get']('trackChanges.trackFormatChanges'),_0x5429b4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5429b4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x5429b4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xddd2d0=this['editor'],_0x44af5e=(_0x1cc5e9,_0x46b7ca)=>{if('attribute'!=_0x1cc5e9)return'ck-suggestion-marker-'+_0x1cc5e9;const _0xa24efe=_0x46b7ca['split']('|')[0x0];return this['_isBlockAttribute'](_0xa24efe)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xddd2d0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x355974=>{const {id:_0x2b8cb7,authorId:_0x1a07c9,type:_0xc8f541,subType:_0x1b2765}=this['_splitMarkerName'](_0x355974['markerName']),_0x1c63bf=['ck-suggestion-marker',_0x44af5e(_0xc8f541,_0x1b2765)];let _0x46a526=0xbb8;return this['activeMarkers']['includes'](_0x355974['markerName'])&&(_0x1c63bf['push']('ck-suggestion-marker--active'),_0x46a526=0xbc2),'deletion'==_0xc8f541&&(_0x46a526+=0x5),{'classes':_0x1c63bf,'attributes':{'data-suggestion':_0x2b8cb7,'data-author-id':_0x1a07c9},'priority':_0x46a526};}}),_0xddd2d0['conversion']['for']('dataDowncast')['add'](_0x4398ae=>{_0x4398ae['on']('addMarker:suggestion',(_0x3aa217,_0x4f34eb,_0x294ed5)=>{if(!_0x294ed5['options']['showSuggestionHighlights'])return;const _0x24adf9=_0x4f34eb['item'];if(!_0x24adf9)return;const _0x354a14=_0x294ed5['mapper']['toViewElement'](_0x24adf9);_0xddd2d0['model']['schema']['isObject'](_0x24adf9)&&_0x354a14&&!_0x354a14['getCustomProperty']('widget')&&_0x354a14['is']('containerElement')&&_0x7c41fb(_0x354a14,_0x294ed5['writer']);},{'priority':'high'});}),_0xddd2d0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x325906,_0xd285d0)=>{if(!_0xd285d0['options']['showSuggestionHighlights'])return null;const {id:_0x1d31bc,authorId:_0x1924cf,type:_0x422dfe,subType:_0x5a3642}=this['_splitMarkerName'](_0x325906['markerName']);return{'classes':['ck-suggestion-marker',_0x44af5e(_0x422dfe,_0x5a3642)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1d31bc,'data-author-id':_0x1924cf}};}});const _0x35a231=({showActiveMarkers:_0x5f1836=!0x0,isAttributeSuggestion:_0x144559=!0x1}={})=>(_0x5c6924,_0x94fff8,_0x24f579)=>{if(!_0x94fff8['item'])return;const {id:_0x3609cc,authorId:_0x2e2098}=this['_splitMarkerName'](_0x94fff8['markerName']);if(_0x144559){const _0x33321f=this['_suggestions']['get'](_0x3609cc),_0x50aa01=this['_getAttributeKey'](_0x33321f);if(!this['_isBlockAttribute'](_0x50aa01))return;}if(_0x94fff8['item']['is']('selection'))return void _0x24f579['consumable']['consume'](_0x94fff8['item'],_0x5c6924['name']);const _0x3d9948=_0x24f579['mapper']['toViewElement'](_0x94fff8['item']);if(_0x94fff8['item']['is']('element')&&_0xddd2d0['model']['schema']['isBlock'](_0x94fff8['item'])&&!_0x3d9948['getCustomProperty']('addHighlight')){_0x24f579['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3d9948),_0x24f579['writer']['setAttribute']('data-suggestion',_0x3609cc,_0x3d9948),_0x24f579['writer']['setAttribute']('data-author-id',_0x2e2098,_0x3d9948),_0x24f579['mapper']['bindElementToMarker'](_0x3d9948,_0x94fff8['markerName']),_0x5f1836&&(this['activeMarkers']['includes'](_0x94fff8['markerName'])?_0x24f579['writer']['addClass']('ck-suggestion-marker--active',_0x3d9948):_0x24f579['writer']['removeClass']('ck-suggestion-marker--active',_0x3d9948));for(const _0x3f3e84 of _0xddd2d0['model']['createRangeIn'](_0x94fff8['item'])['getItems']())_0x24f579['consumable']['consume'](_0x3f3e84,_0x5c6924['name']);_0x24f579['consumable']['consume'](_0x94fff8['item'],_0x5c6924['name']);}};_0xddd2d0['conversion']['for']('dataDowncast')['add'](_0x36cc58=>{_0x36cc58['on']('addMarker:suggestion:formatBlock',(_0x503986,_0xd3a536,_0x1918ec)=>{_0x1918ec['options']['showSuggestionHighlights']&&_0x35a231({'showActiveMarkers':!0x1})(_0x503986,_0xd3a536,_0x1918ec);},{'priority':'highest'});}),_0xddd2d0['conversion']['for']('dataDowncast')['add'](_0x19411e=>{_0x19411e['on']('addMarker:suggestion:attribute',(_0xf1668b,_0x2d94f4,_0x4c8b9a)=>{_0x4c8b9a['options']['showSuggestionHighlights']&&_0x35a231({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xf1668b,_0x2d94f4,_0x4c8b9a);},{'priority':'highest'});}),_0xddd2d0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x240239,_0x274335)=>{if(_0x274335['options']['showSuggestionHighlights']){const {id:_0x5037ae,authorId:_0x843bf5}=this['_splitMarkerName'](_0x240239);return _0x240239['includes'](':split')||_0x240239['includes'](':merge')?{'group':'suggestion','name':_0x240239['substr'](0xb),'attributes':{'data-suggestion':_0x5037ae,'data-author-id':_0x843bf5}}:null;}return{'group':'suggestion','name':_0x240239['substr'](0xb)};}}),_0xddd2d0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xe758ab,{writer:_0x53dc94})=>{let _0x15538f='suggestion:'+_0xe758ab['getAttribute']('suggestion-type')+':'+_0xe758ab['getAttribute']('id');return _0xe758ab['getAttribute']('marker-count')&&(_0x15538f+=':'+_0xe758ab['getAttribute']('marker-count')),_0x53dc94['createElement']('$marker',{'data-name':_0x15538f});}}),_0xddd2d0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xddd2d0['conversion']['for']('editingDowncast')['add'](_0x35e28c=>{_0x35e28c['on']('addMarker:suggestion:formatBlock',_0x35a231(),{'priority':'high'});}),_0xddd2d0['conversion']['for']('editingDowncast')['add'](_0x2c5a93=>{_0x2c5a93['on']('addMarker:suggestion:attribute',_0x35a231({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xddd2d0['conversion']['for']('editingDowncast')['add'](_0xc1a8e6=>{_0xc1a8e6['on']('removeMarker:suggestion:formatBlock',(_0x128ff5,_0x1ff68f,_0x256db2)=>{const _0x4ca615=_0x256db2['mapper']['markerNameToElements'](_0x1ff68f['markerName']);if(_0x4ca615){for(const _0x1842c8 of _0x4ca615)_0x1842c8['getCustomProperty']('addHighlight')||(_0x256db2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1842c8),_0x256db2['writer']['removeAttribute']('data-suggestion',_0x1842c8),_0x256db2['writer']['removeAttribute']('data-author-id',_0x1842c8),_0x256db2['mapper']['unbindElementFromMarkerName'](_0x1842c8,_0x1ff68f['markerName']));}},{'priority':'high'});}),_0xddd2d0['conversion']['for']('editingDowncast')['add'](_0x2ff44b=>{_0x2ff44b['on']('removeMarker:suggestion:attribute',(_0x3a0550,_0xc7a5e4,_0x2913fc)=>{const _0x38d9ce=_0x2913fc['mapper']['markerNameToElements'](_0xc7a5e4['markerName']);if(!_0x38d9ce)return;const {id:_0x265082}=this['_splitMarkerName'](_0xc7a5e4['markerName']),_0x14ac43=this['_suggestions']['get'](_0x265082),_0x585553=this['_getAttributeKey'](_0x14ac43);if(this['_isBlockAttribute'](_0x585553)){for(const _0x5bae8c of _0x38d9ce)_0x5bae8c['getCustomProperty']('addHighlight')||(_0x2913fc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5bae8c),_0x2913fc['writer']['removeAttribute']('data-suggestion',_0x5bae8c),_0x2913fc['writer']['removeAttribute']('data-author-id',_0x5bae8c),_0x2913fc['mapper']['unbindElementFromMarkerName'](_0x5bae8c,_0xc7a5e4['markerName']));}},{'priority':'high'});}),_0xddd2d0['model']['document']['registerPostFixer'](_0x1588a2=>{let _0x2f907c=!0x1;const _0x4b5bea=Array['from'](_0xddd2d0['model']['document']['differ']['getChangedMarkers']()),_0x4e4fc9=new Set();for(const {name:_0x34ba58,data:_0x57c802}of _0x4b5bea){const {group:_0x2fd979,type:_0x57a189,subType:_0x3f02a0,id:_0x22fd8e}=this['_splitMarkerName'](_0x34ba58);if('suggestion'!==_0x2fd979)continue;const _0x2e1f51=this['_suggestions']['get'](_0x22fd8e);if(null!=_0x57c802['newRange']){'formatInline'==_0x57a189&&(_0x2f907c=_0x2f907c||Gt(_0x57c802['newRange'],_0x34ba58,_0x1588a2,_0xddd2d0['model']['schema']));const _0x1ead10='attribute'==_0x57a189&&this['_isBlockAttribute'](_0x3f02a0['split']('|')[0x0]);if(_0x57c802['newRange']['isCollapsed']||'$graveyard'==_0x57c802['newRange']['root']['rootName']||'formatBlock'==_0x57a189&&!Jt(_0x57c802['newRange'])||_0x1ead10&&!Jt(_0x57c802['newRange'])||'deletion'==_0x57a189&&!Kt(_0x57c802['newRange']))_0x1588a2['removeMarker'](_0x34ba58),_0x2f907c=!0x0;else{if(!_0x2e1f51||!_0x2e1f51['isInContent'])continue;if(_0x57c802['newRange']&&_0x57c802['oldRange']&&_0x57c802['newRange']['isEqual'](_0x57c802['oldRange']))continue;_0x4e4fc9['add'](_0x2e1f51);}}}return _0x4e4fc9['size']>0x0&&(_0x2f907c=!!this['_joinWithAdjacentSuggestions'](_0x4e4fc9)||_0x2f907c),_0x2f907c;}),_0xddd2d0['model']['document']['registerPostFixer'](_0x4b50a8=>{let _0x4dc3f4=!0x1;for(const _0x56587d of _0xddd2d0['model']['document']['differ']['getChanges']())if('insert'==_0x56587d['type'])for(const _0x241508 of this['_suggestions']['values']()){if(_0x241508['isMultiRange']||!_0x241508['isInContent'])continue;const _0x1ef6c3='formatBlock'==_0x241508['type'],_0x1bdd11=this['_getAttributeKey'](_0x241508),_0x54f74e=_0x1bdd11&&this['_isBlockAttribute'](_0x1bdd11);if(!_0x1ef6c3&&!_0x54f74e)continue;const _0x4eeccc=_0x241508['getFirstRange']();if(_0x4eeccc['start']['parent']!=_0x4eeccc['end']['parent']&&!_0x4eeccc['end']['isAtEnd']){const _0x28869d=_0xddd2d0['model']['createPositionAt'](_0x4eeccc['start']['nodeAfter'],'end'),_0x328f06=_0xddd2d0['model']['createRange'](_0x4eeccc['start'],_0x28869d);_0x4b50a8['updateMarker'](_0x241508['getFirstMarker'](),{'range':_0x328f06}),_0x4dc3f4=!0x0;}}return _0x4dc3f4;}),_0xddd2d0['model']['document']['registerPostFixer'](_0x26db2f=>this['_processAttributeChanges'](_0x26db2f)),_0xddd2d0['model']['document']['registerPostFixer'](_0x595b45=>!_0x595b45['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x595b45)),_0xddd2d0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xddd2d0['model']['document']['on']('change:data',(_0x2844a5,_0x4e6742)=>{if(!_0x4e6742['isLocal']||_0x4e6742['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x248847=_0xddd2d0['model']['document']['differ']['getChanges']();if(0x0==_0x248847['length'])return;const _0x41c1e5=[],_0x5c5d33=_0x248847['filter'](_0x55d163=>'attribute'==_0x55d163['type']),_0x20adfc=_0x248847['filter'](_0x5dbea4=>'insert'==_0x5dbea4['type']&&'$text'!=_0x5dbea4['name']);for(const _0x28e92a of _0x5c5d33)this['_isRegisteredAttribute'](_0x28e92a['attributeKey'])&&_0x41c1e5['push']({'key':_0x28e92a['attributeKey'],'newValue':_0x28e92a['attributeNewValue'],'oldValue':_0x28e92a['attributeOldValue'],'range':Ht(_0x28e92a['range'],_0xddd2d0['model'])});for(const _0x420b81 of _0x20adfc){if('rename'!=_0x420b81['action']&&'refresh'!=_0x420b81['action'])continue;const _0x44ac87=qt(_0x420b81['position']['nodeAfter'],_0xddd2d0['model']),_0x42afcc=_0x420b81['before'];'rename'==_0x420b81['action']&&_0x41c1e5['push']({'key':m,'newValue':_0x420b81['name'],'oldValue':_0x42afcc['name'],'range':_0x44ac87});for(const [_0x1e7d6a,_0x1439b7]of _0x42afcc['attributes']){if(!this['_isRegisteredAttribute'](_0x1e7d6a))continue;const _0x415ded=_0x420b81['attributes']['get'](_0x1e7d6a);_0x1439b7!==_0x415ded&&_0x41c1e5['push']({'key':_0x1e7d6a,'newValue':_0x415ded,'oldValue':_0x1439b7,'range':_0x44ac87});}for(const [_0x167f34,_0x59353e]of _0x420b81['attributes'])this['_isRegisteredAttribute'](_0x167f34)&&(_0x42afcc['attributes']['has'](_0x167f34)||_0x41c1e5['push']({'key':_0x167f34,'newValue':_0x59353e,'oldValue':null,'range':_0x44ac87}));}0x0!=_0x41c1e5['length']&&_0xddd2d0['model']['enqueueChange'](_0x4e6742,_0x237516=>{const _0x24caa7=_0x19694d();for(const {range:_0xacebb9,key:_0x1190d5,oldValue:_0x5c21d1,newValue:_0x55d360}of _0x41c1e5)this['markAttributeChange'](_0xacebb9,_0x1190d5,_0x5c21d1,_0x55d360,{'groupId':_0x24caa7});this['_reduceExistingSuggestions'](_0x237516,_0x41c1e5);});},{'priority':'lowest'}),_0xddd2d0['model']['markers']['on']('update:suggestion',(_0x5181ea,_0x1542bb,_0x40fc67)=>{if(null==_0x40fc67){const {id:_0x21852d}=this['_splitMarkerName'](_0x1542bb['name']),_0x428749=this['_suggestions']['get'](_0x21852d);_0x428749&&_0x428749['addMarkerName'](_0x1542bb['name']);}}),_0xddd2d0['model']['document']['on']('change:data',()=>{const _0x2ff4db=Array['from'](_0xddd2d0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x309ac0=>'suggestion'===this['_splitMarkerName'](_0x309ac0['name'])['group']);if(0x0===_0x2ff4db['length'])return;_0x2ff4db['sort']((_0x37efc4,_0x355dcc)=>{const _0x3c521b=_0x37efc4['data']['oldRange'],_0x2d631d=_0x355dcc['data']['oldRange'];return null===_0x3c521b&&null===_0x2d631d?0x0:null===_0x3c521b&&null!==_0x2d631d?-0x1:null!==_0x3c521b&&null===_0x2d631d?0x1:_0x3c521b['start']['isBefore'](_0x2d631d['start'])?-0x1:0x1;});const _0x2d4b8f=new Set(),_0x537261=new Set();for(const {name:_0x5d59fb,data:_0x2c085a}of _0x2ff4db){const {id:_0x472eff}=this['_splitMarkerName'](_0x5d59fb);if(null===_0x2c085a['oldRange']){const _0x239ea3=this['_handleNewSuggestionMarker'](_0x5d59fb);_0x537261['add'](_0x239ea3);}else{const _0x336cba=this['_suggestions']['get'](_0x472eff);null!==_0x2c085a['newRange']||_0x336cba['isInContent']?(_0x2d4b8f['add'](_0x336cba['head']),_0x537261['add'](_0x336cba)):this['_removeSuggestion'](_0x336cba);}}_0x537261['size']>0x0&&this['_refreshSuggestionsChain'](_0x537261);for(const _0x5c8d8a of _0x2d4b8f)this['fire']('suggestionChanged',_0x5c8d8a);}),_0xddd2d0['model']['on']('applyOperation',(_0x5dfa2c,_0x42a98d)=>{const _0x12b853=_0x42a98d[0x0];if(!this['_suggestions']['size'])return;if(!_0x12b853['isDocumentOperation'])return;if(_0x12b853['batch']['isUndo']||!_0x12b853['batch']['isLocal'])return;let _0x29b156,_0x4d0800;switch(_0x12b853['type']){case'insert':_0x29b156=_0xddd2d0['model']['createPositionAt'](_0x12b853['position']),_0x4d0800=_0x29b156['getShiftedBy'](_0x12b853['howMany']);break;case'split':_0x29b156=_0xddd2d0['model']['createPositionAt'](_0x12b853['splitPosition']),_0x4d0800=_0xddd2d0['model']['createPositionAt'](_0x12b853['moveTargetPosition']);break;case'move':_0x29b156=_0xddd2d0['model']['createPositionAt'](_0x12b853['targetPosition']),_0x4d0800=_0x29b156['getShiftedBy'](_0x12b853['howMany']);break;default:return;}const _0x2b5132=_0xddd2d0['model']['createRange'](_0x29b156,_0x4d0800);_0xddd2d0['model']['change'](()=>{for(const {suggestion:_0x3db9b5,meta:_0x27a20b}of this['_findSuggestions'](_0x2b5132)){if(_0x3db9b5['isMultiRange'])continue;if('formatInline'==_0x3db9b5['type'])continue;const _0x5b3158=this['_getAttributeKey'](_0x3db9b5);if(_0x5b3158&&this['_isBlockAttribute'](_0x5b3158)&&'split'!=_0x12b853['type'])continue;const _0x177a26=_0x3db9b5['data']&&_0x3db9b5['data']['multipleBlocks'];('formatBlock'!=_0x3db9b5['type']||'split'==_0x12b853['type']&&!_0x177a26)&&(_0x27a20b['containsRangeInObject']||'insertion'==_0x3db9b5['type']&&_0x27a20b['isOwn']||_0x3db9b5['getFirstRange']()['containsRange'](_0x2b5132)&&this['_breakSuggestionMarker'](_0x3db9b5,_0x29b156,_0x4d0800));}});},{'priority':'lowest'}),_0xddd2d0['model']['on']('deleteContent',(_0x2cf2e4,_0x296187)=>{const _0x36b15b=_0x296187[0x0],_0xc6577f=_0x296187[0x1];if(_0xc6577f&&_0xc6577f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x36b15b['isCollapsed'])return;const _0x737b2f=_0xddd2d0['model']['schema'],{start:_0x5d9d9c,end:_0x51e666}=_0x36b15b['getFirstRange'](),_0x258436=_0x5d9d9c['nodeAfter']&&_0x737b2f['isLimit'](_0x5d9d9c['nodeAfter'])?null:_0x737b2f['getNearestSelectionRange'](_0x5d9d9c,'forward'),_0x3c953f=_0x51e666['nodeBefore']&&_0x737b2f['isLimit'](_0x51e666['nodeBefore'])?null:_0x737b2f['getNearestSelectionRange'](_0x51e666,'backward'),_0x72e019=_0xddd2d0['model']['createRange'](_0x258436?_0x258436['start']:_0x5d9d9c,_0x3c953f?_0x3c953f['end']:_0x51e666);_0xddd2d0['model']['change'](_0x332c37=>{this['markDeletion'](_0x72e019);const _0x3320e7=_0xddd2d0['model']['schema']['getNearestSelectionRange'](_0x72e019['start']);_0x36b15b['is']('documentSelection')?_0x332c37['setSelection'](_0x3320e7):_0x36b15b['setTo'](_0x3320e7);}),_0x2cf2e4['stop']();},{'priority':_0x57c570['normal']+0xa}),_0xddd2d0['model']['on']('insertContent',(_0x546822,_0x32a743)=>{const _0x2a9bfc=_0x32a743[_0x32a743['length']-0x1];_0x2a9bfc&&_0x2a9bfc['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xddd2d0['model']['change'](()=>{let _0x219dec=_0xddd2d0['model']['insertContent'](_0x32a743[0x0],_0x32a743[0x1],_0x32a743[0x2],{'forceDefaultExecution':!0x0});if(!_0x219dec)return;_0x546822['return']=_0x219dec['clone']();const _0x314681=_0x219dec['end']['nodeBefore'],_0x24992c=_0xddd2d0['model']['schema'];_0x314681&&_0x24992c['isBlock'](_0x314681)&&!_0x24992c['isObject'](_0x314681)&&(_0x219dec=_0xddd2d0['model']['createRange'](_0x219dec['start'],_0xddd2d0['model']['createPositionAt'](_0x314681,'end'))),this['markInsertion'](_0x219dec);}),_0x546822['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x56b1d1=new D(_0xddd2d0,this['_suggestions']);_0xddd2d0['commands']['add']('acceptSuggestion',_0x56b1d1),this['enableCommand']('acceptSuggestion');const _0x137cf1=new M(_0xddd2d0,this['_suggestions']);_0xddd2d0['commands']['add']('discardSuggestion',_0x137cf1),this['enableCommand']('discardSuggestion'),_0xddd2d0['commands']['add']('acceptAllSuggestions',new $(_0xddd2d0,_0x56b1d1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xddd2d0['commands']['add']('discardAllSuggestions',new $(_0xddd2d0,_0x137cf1,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xddd2d0['commands']['add']('acceptSelectedSuggestions',new B(_0xddd2d0,_0x56b1d1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xddd2d0['commands']['add']('discardSelectedSuggestions',new B(_0xddd2d0,_0x137cf1,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1f41c4=_0xddd2d0['plugins']['get']('CommentsRepository');this['listenTo'](_0x1f41c4,'addComment',(_0x32d73e,{threadId:_0x388371})=>{const _0x14b437=this['_suggestions']['get'](_0x388371);_0x14b437&&_0x14b437['commentThread']&&0x1===_0x14b437['commentThread']['length']&&this['_updateSuggestionData'](_0x388371,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1f41c4,'removeComment',(_0x148ab6,{threadId:_0x2a43eb})=>{const _0x571fc0=this['_suggestions']['get'](_0x2a43eb);_0x571fc0&&_0x571fc0['commentThread']&&!_0x571fc0['commentThread']['length']&&this['_updateSuggestionData'](_0x2a43eb,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x72911c){const _0x745ef=_0x13a4fd([0x4b,0x56,0x6f,0x61,0x49,0x74,0x67,0x63,0x72,0x6a,0x4d,0x42,0x47,0x4e,0x34,0x73,0x41,0x30,0x36,0x79,0x62,0x32,0x7a,0x70,0x38,0x54,0x33,0x51,0x44,0x77,0x53,0x6c,0x39,0x4f,0x59,0x46,0x76,0x5a,0x50,0x75,0x69,0x65,0x31,0x48,0x4c,0x68,0x4a,0x64,0x52,0x66,0x58,0x43,0x71,0x55,0x35,0x6e,0x6d,0x57,0x6b,0x45,0x37,0x78]),_0xea4c1f=0x1c2c301d,_0x48ac72=0x1c2b5c85^_0xea4c1f,_0x3fb57c=window[_0x13a4fd([0x44,0x61,0x74,0x65])][_0x13a4fd([0x6e,0x6f,0x77])](),_0x500d4a=_0x72911c[_0x13a4fd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5894ab=new window[(_0x13a4fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aa1af=>{_0x500d4a[_0x13a4fd([0x6f,0x6e,0x63,0x65])](_0x13a4fd([0x72,0x65,0x61,0x64,0x79]),_0x3aa1af);}),_0x489b83={[_0x13a4fd([0x6b,0x74,0x79])]:_0x13a4fd([0x45,0x43]),[_0x13a4fd([0x75,0x73,0x65])]:_0x13a4fd([0x73,0x69,0x67]),[_0x13a4fd([0x63,0x72,0x76])]:_0x13a4fd([0x50,0x2d,0x32,0x35,0x36]),[_0x13a4fd([0x78])]:_0x13a4fd([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]),[_0x13a4fd([0x79])]:_0x13a4fd([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]),[_0x13a4fd([0x61,0x6c,0x67])]:_0x13a4fd([0x45,0x53,0x32,0x35,0x36])},_0x41335d=_0x500d4a[_0x13a4fd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13a4fd([0x67,0x65,0x74])](_0x13a4fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x506f4e(){let _0x24aced,_0x5544cc=null,_0x3fa303=null;try{if(_0x41335d==_0x13a4fd([0x47,0x50,0x4c]))return _0x13a4fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x24aced=_0x3f909d(),!_0x24aced)return _0x13a4fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x24aced[_0x13a4fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3fa303=_0x3760af(_0x24aced[_0x13a4fd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x24aced[_0x13a4fd([0x6a,0x74,0x69])])),await _0x285b1e()?_0x207e73()?_0x3ab4ad()?_0x13a4fd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x335c28()?(_0x24aced[_0x13a4fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13a4fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5544cc=_0x25b25c(_0x13a4fd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x24aced[_0x13a4fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13a4fd([0x74,0x72,0x69,0x61,0x6c])&&(_0x5544cc=_0x25b25c(_0x13a4fd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e35f8()):_0x13a4fd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13a4fd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13a4fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x13a4fd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ab4ad(){const _0x498a2=[_0x13a4fd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13a4fd([0x74,0x72,0x69,0x61,0x6c])][_0x13a4fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24aced[_0x13a4fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fb57c/0x3e8:0xe10*_0x48ac72;return _0x24aced[_0x13a4fd([0x65,0x78,0x70])]<_0x498a2;}function _0x207e73(){const _0x452ef3=_0x24aced[_0x13a4fd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x452ef3)return!0x1;if(_0x452ef3[_0x13a4fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13a4fd([0x2a])))return!0x0;if(_0x452ef3[_0x13a4fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13a4fd([0x54,0x43])))return!0x0;if(_0x452ef3[_0x13a4fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13a4fd([0x52,0x54,0x43]))){if(_0x324011())return!0x0;if(_0x570e34()||_0x5230ed())return!0x0;}return!0x1;}function _0x335c28(){const _0x227dee=_0x24aced[_0x13a4fd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x227dee||0x0==_0x227dee[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x47aa6f}=new URL(window[_0x13a4fd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x227dee[_0x13a4fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47aa6f))return!0x0;const _0x2bb970=_0x47aa6f[_0x13a4fd([0x73,0x70,0x6c,0x69,0x74])](_0x13a4fd([0x2e]));return _0x227dee[_0x13a4fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x310236=>_0x310236[_0x13a4fd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13a4fd([0x2a])))[_0x13a4fd([0x6d,0x61,0x70])](_0x5a3dbe=>_0x5a3dbe[_0x13a4fd([0x73,0x70,0x6c,0x69,0x74])](_0x13a4fd([0x2e])))[_0x13a4fd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19fa1a=>_0x19fa1a[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2bb970[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13a4fd([0x6d,0x61,0x70])](_0x12bc08=>Array(_0x2bb970[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x12bc08[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x13a4fd([0x66,0x69,0x6c,0x6c])](_0x12bc08[0x0]===_0x13a4fd([0x2a])?_0x13a4fd([0x2a]):'')[_0x13a4fd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x12bc08))[_0x13a4fd([0x73,0x6f,0x6d,0x65])](_0x40929e=>_0x2bb970[_0x13a4fd([0x65,0x76,0x65,0x72,0x79])]((_0xb26650,_0x2e3e24)=>_0x40929e[_0x2e3e24]===_0xb26650||_0x40929e[_0x2e3e24]===_0x13a4fd([0x2a])));}function _0x5e35f8(){return _0x5544cc&&_0x3fa303?new window[(_0x13a4fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x228436,_0xb3ff5c)=>{_0x5544cc[_0x13a4fd([0x74,0x68,0x65,0x6e])](_0x228436,_0xb3ff5c),_0x3fa303[_0x13a4fd([0x74,0x68,0x65,0x6e])](_0x2e59cb=>{_0x2e59cb!=_0x13a4fd([0x56,0x61,0x6c,0x69,0x64])&&_0x228436(_0x2e59cb);},_0xb3ff5c);}):_0x5544cc||_0x3fa303||_0x13a4fd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3760af(_0x33f15e,_0x2678fd){return new window[(_0x13a4fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19b7bd=>{if(_0x9fc9d2())return _0x19b7bd(_0x13a4fd([0x56,0x61,0x6c,0x69,0x64]));_0x291b85(),_0x500d4a[_0x13a4fd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13a4fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2bcce6=!0x1;const _0x5dffbc=_0x19694d();function _0x3bf82a(_0x5e0df8){return!!_0x5e0df8&&(typeof _0x5e0df8===_0x13a4fd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e0df8===_0x13a4fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e0df8[_0x13a4fd([0x74,0x68,0x65,0x6e])]===_0x13a4fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e0df8[_0x13a4fd([0x63,0x61,0x74,0x63,0x68])]===_0x13a4fd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x412a09(_0x22b4f3){_0x348e85(_0x22b4f3)[_0x13a4fd([0x74,0x68,0x65,0x6e])](_0x424f3e=>{if(!_0x424f3e||_0x424f3e[_0x13a4fd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13a4fd([0x6f,0x6b]))return _0x13a4fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x415f01(_0x320047(_0x5dffbc+_0x2678fd))!=_0x424f3e[_0x13a4fd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13a4fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13a4fd([0x56,0x61,0x6c,0x69,0x64]);})[_0x13a4fd([0x74,0x68,0x65,0x6e])](_0x4bb1e7=>(_0x37d051(),_0x4bb1e7),()=>{const _0x458594=_0x236537();return null==_0x458594?(_0x37d051(),_0x13a4fd([0x56,0x61,0x6c,0x69,0x64])):_0x13a4fd(_0x3fb57c-_0x458594>(0x3820b41d^_0xea4c1f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13a4fd([0x74,0x68,0x65,0x6e])](_0x19b7bd)[_0x13a4fd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19b7bd(_0x13a4fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4742fa=0x1c1ade9d^_0xea4c1f;function _0x37d051(){const _0x4730aa=_0x13a4fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x415f01(_0x320047(_0x33f15e)),_0x437fd8=_0x5d7bd9(_0x415f01(window[_0x13a4fd([0x4d,0x61,0x74,0x68])][_0x13a4fd([0x63,0x65,0x69,0x6c])](_0x3fb57c/_0x4742fa)));window[_0x13a4fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13a4fd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4730aa,_0x437fd8);}function _0x236537(){const _0x34ed51=_0x13a4fd([0x6c,0x6c,0x63,0x74,0x2d])+_0x415f01(_0x320047(_0x33f15e)),_0x9d0a70=window[_0x13a4fd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13a4fd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34ed51);return _0x9d0a70?window[_0x13a4fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d7bd9(_0x9d0a70),0x10)*_0x4742fa:null;}function _0x348e85(_0x1b252c){return new window[(_0x13a4fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fc004,_0x30deff)=>{_0x1b252c[_0x13a4fd([0x74,0x68,0x65,0x6e])](_0x4fc004,_0x30deff),window[_0x13a4fd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x30deff,0x1c2de4dd^_0xea4c1f);});}}_0x500d4a[_0x13a4fd([0x6f,0x6e])](_0x13a4fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20af87,_0x39ea63)=>{if(_0x39ea63[0x0]!=_0x33f15e)return _0x19b7bd(_0x13a4fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39ea63[0x1]={..._0x39ea63[0x1],[_0x13a4fd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5dffbc};},{[_0x13a4fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13a4fd([0x68,0x69,0x67,0x68])}),_0x500d4a[_0x13a4fd([0x6f,0x6e])](_0x13a4fd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10c7a1=>{_0x3bf82a(_0x10c7a1[_0x13a4fd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2bcce6=!0x0,_0x412a09(_0x10c7a1[_0x13a4fd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13a4fd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13a4fd([0x6c,0x6f,0x77])}),_0x5894ab[_0x13a4fd([0x74,0x68,0x65,0x6e])](()=>{_0x2bcce6||_0x19b7bd(_0x13a4fd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9fc9d2(){return _0x500d4a[_0x13a4fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13a4fd([0x76,0x69,0x65,0x77])][_0x13a4fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13a4fd([0x61,0x75,0x74,0x6f]);}function _0x291b85(){_0x500d4a[_0x13a4fd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13a4fd([0x76,0x69,0x65,0x77])][_0x13a4fd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13a4fd([0x61,0x75,0x74,0x6f]);}}function _0x25b25c(_0x17cd46){const _0x7b32ea=[new window[(_0x13a4fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2569b8=>setTimeout(_0x2569b8,0x1c250ed1^_0xea4c1f)),_0x5894ab[_0x13a4fd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13a4fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd461b7=>{let _0x3f9f51=0x0;_0x500d4a[_0x13a4fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x13a4fd([0x6f,0x6e])](_0x13a4fd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22677c,_0x1451fd)=>{_0x1451fd[0x0][_0x13a4fd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f9f51++,_0x3f9f51==(0x1c2c31e5^_0xea4c1f)&&(_0xd461b7(),_0x22677c[_0x13a4fd([0x6f,0x66,0x66])]());});}))];return window[_0x13a4fd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13a4fd([0x72,0x61,0x63,0x65])](_0x7b32ea)[_0x13a4fd([0x74,0x68,0x65,0x6e])](()=>_0x17cd46);}async function _0x5ea8c1(){await _0x5894ab,_0x500d4a[_0x13a4fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x13a4fd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20f6d0,_0x500d4a[_0x13a4fd([0x6d,0x6f,0x64,0x65,0x6c])][_0x13a4fd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20f6d0,_0x500d4a[_0x13a4fd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13a4fd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x324011(){return _0x5032f7(_0x13a4fd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x18c80e(_0x13a4fd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x13a4fd([0x73,0x74,0x61,0x74,0x65])]==_0x13a4fd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x570e34(){return _0x5032f7(_0x13a4fd([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 _0x5230ed(){return _0x5032f7(_0x13a4fd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x46809b(_0x29b890){const _0x15de79=_0x55d977();_0x500d4a[_0x15de79]=_0x13a4fd([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x29b890,_0x29b890!=_0x13a4fd([0x56,0x61,0x6c,0x69,0x64])&&_0x5ea8c1();}function _0x55d977(){const _0x3f96e8=window[_0x13a4fd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13a4fd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13a4fd([0x6e,0x6f,0x77])]())[_0x13a4fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13a4fd([0x2e]),'');let _0x3f0d2a=_0x13a4fd([0x4b]);for(let _0x5775b4=0x0;_0x5775b4<_0x3f96e8[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5775b4+=0x2){let _0x1f8090=window[_0x13a4fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f96e8[_0x13a4fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5775b4,_0x5775b4+0x2));_0x1f8090>=_0x745ef[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f8090-=_0x745ef[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f0d2a+=_0x745ef[_0x1f8090];}return _0x3f0d2a;}function _0x3f909d(){const _0x1ec8d1=_0x41335d[_0x13a4fd([0x73,0x70,0x6c,0x69,0x74])](_0x13a4fd([0x2e]));if(0x3!=_0x1ec8d1[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x510455(_0x1ec8d1[0x1]);function _0x510455(_0x2be15e){const _0x1a17f3=_0x3adedf(_0x2be15e);return _0x1a17f3&&_0x9e3c95()?_0x1a17f3:null;function _0x9e3c95(){const _0x46808e=_0x1a17f3[_0x13a4fd([0x6a,0x74,0x69])],_0x599212=window[_0x13a4fd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46808e[_0x13a4fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46808e[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21e9c7={..._0x1a17f3,[_0x13a4fd([0x6a,0x74,0x69])]:_0x46808e[_0x13a4fd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46808e[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21e9c7[_0x13a4fd([0x76,0x63])],_0x320047(_0x21e9c7)==_0x599212;}}}async function _0x285b1e(){let _0x31364c=!0x0;try{const _0x3e4dc8=_0x41335d[_0x13a4fd([0x73,0x70,0x6c,0x69,0x74])](_0x13a4fd([0x2e])),[_0x4a03d5,_0x459754,_0x59bfb3]=_0x3e4dc8;return _0x472bee(_0x4a03d5),await _0x48cc39(_0x4a03d5,_0x459754,_0x59bfb3),_0x31364c;}catch{return!0x1;}function _0x472bee(_0x305724){const _0x160461=_0x3adedf(_0x305724);_0x160461&&_0x160461[_0x13a4fd([0x61,0x6c,0x67])]==_0x13a4fd([0x45,0x53,0x32,0x35,0x36])||(_0x31364c=!0x1);}async function _0x48cc39(_0x421922,_0x17f873,_0x48f82e){const _0x91d23d=window[_0x13a4fd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13a4fd([0x66,0x72,0x6f,0x6d])](_0x232866(_0x48f82e),_0x269792=>_0x269792[_0x13a4fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x50d950=new window[(_0x13a4fd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13a4fd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x421922+_0x13a4fd([0x2e])+_0x17f873),_0xdb6de9=window[_0x13a4fd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13a4fd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xdb6de9)return;const _0x24ae68=await _0xdb6de9[_0x13a4fd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13a4fd([0x6a,0x77,0x6b]),_0x489b83,{[_0x13a4fd([0x6e,0x61,0x6d,0x65])]:_0x13a4fd([0x45,0x43,0x44,0x53,0x41]),[_0x13a4fd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13a4fd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13a4fd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xdb6de9[_0x13a4fd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13a4fd([0x6e,0x61,0x6d,0x65])]:_0x13a4fd([0x45,0x43,0x44,0x53,0x41]),[_0x13a4fd([0x68,0x61,0x73,0x68])]:{[_0x13a4fd([0x6e,0x61,0x6d,0x65])]:_0x13a4fd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24ae68,_0x91d23d,_0x50d950)||(_0x31364c=!0x1);}}function _0x3adedf(_0x381031){return _0x381031[_0x13a4fd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13a4fd([0x65,0x79]))?JSON[_0x13a4fd([0x70,0x61,0x72,0x73,0x65])](_0x232866(_0x381031)):null;}function _0x232866(_0x374582){return window[_0x13a4fd([0x61,0x74,0x6f,0x62])](_0x374582[_0x13a4fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13a4fd([0x2b]))[_0x13a4fd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13a4fd([0x2f])));}function _0x320047(_0x47fe04){let _0x1b8eeb=0x1505;function _0x539515(_0x24b762){for(let _0x2b2b95=0x0;_0x2b2b95<_0x24b762[_0x13a4fd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b2b95++){const _0x1c1049=_0x24b762[_0x13a4fd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b2b95);_0x1b8eeb=(_0x1b8eeb<<0x5)+_0x1b8eeb+_0x1c1049,_0x1b8eeb&=_0x1b8eeb;}}function _0x4bcf0c(_0x4a7c49){Array[_0x13a4fd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a7c49)?_0x4a7c49[_0x13a4fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bcf0c):_0x4a7c49&&typeof _0x4a7c49==_0x13a4fd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13a4fd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a7c49)[_0x13a4fd([0x73,0x6f,0x72,0x74])]()[_0x13a4fd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4799e5,_0x4dd86e])=>{_0x539515(_0x4799e5),_0x4bcf0c(_0x4dd86e);}):_0x539515(window[_0x13a4fd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a7c49));}return _0x4bcf0c(_0x47fe04),_0x1b8eeb>>>0x0;}function _0x415f01(_0x135181){return _0x135181[_0x13a4fd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13a4fd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13a4fd([0x30]));}function _0x5d7bd9(_0x56e427){return _0x56e427[_0x13a4fd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13a4fd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13a4fd([0x6a,0x6f,0x69,0x6e])]('');}function _0x5032f7(_0x52813c){return _0x500d4a[_0x13a4fd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x13a4fd([0x68,0x61,0x73])](_0x52813c);}function _0x18c80e(_0x427c8d){return _0x500d4a[_0x13a4fd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x13a4fd([0x67,0x65,0x74])](_0x427c8d);}function _0x20f6d0(){}function _0x13a4fd(_0x2be52a){return _0x2be52a['map'](_0x4c6557=>String['fromCharCode'](_0x4c6557))['join']('');}_0x46809b(await _0x506f4e());}(this);}set['adapter'](_0x2bd41f){if(this['_adapter'])throw new _0x5cecf6('track-changes-adapter-already-set',this);this['_adapter']=_0x2bd41f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x30b72b=!0x1,toJSON:_0x2f2222=!0x1}={}){const _0x1f375e=[];for(const _0x2cdc18 of this['_suggestions']['values']())_0x30b72b&&!_0x2cdc18['isInContent']||_0x1f375e['push'](_0x2cdc18);return _0x2f2222?_0x1f375e['map'](_0x54ceb3=>_0x54ceb3['toJSON']()):_0x1f375e;}['getSuggestion'](_0x1b1ebd){const _0x2b64d1=this['_suggestions']['get'](_0x1b1ebd);if(!_0x2b64d1)throw new _0x5cecf6('track-changes-suggestion-not-found',this);return _0x2b64d1;}['hasSuggestion'](_0x863a41){return this['_suggestions']['has'](_0x863a41);}['addSuggestionData'](_0x583634){const {authorId:_0x3d4a53,id:_0x10ab97,originalSuggestionId:_0x1382a5,attributes:_0x5271dd}=_0x583634,[_0x56279a,_0x221f05]=_0x583634['type']['split'](':'),_0xe61efe=this['_suggestions']['get'](_0x10ab97)||this['_createSuggestion'](_0x56279a,_0x221f05,_0x10ab97,_0x3d4a53,_0x5271dd,_0x1382a5);if(this['_addThreadToSuggestion'](_0xe61efe),this['_checkSuggestionCorrectness'](_0xe61efe,_0x56279a,_0x221f05||null,_0x3d4a53),_0xe61efe['createdAt']=_0x583634['createdAt'],_0xe61efe['_isDataLoaded']=!0x0,_0x5271dd&&_0x5271dd['@external']){const _0x214c8a=_0x5271dd['@external'],_0x582561=this['_getExternalAuthor'](_0x214c8a['authorName']);_0xe61efe['authoredAt']=_0x214c8a['createdAt'],_0xe61efe['author']=_0x582561,_0xe61efe['isExternal']=!0x0;}else _0xe61efe['authoredAt']=_0x583634['createdAt'];switch(_0x583634['data']&&(_0xe61efe['data']=_0x583634['data']),_0x583634['attributes']&&(_0xe61efe['attributes']=_0x583634['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xe61efe['_saved']=!0x0),this['_suggestionState']['get'](_0xe61efe)){case'notReady':this['_suggestionState']['set'](_0xe61efe,'dataReady');break;case'markerReady':_0xe61efe['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xe61efe])),this['_refreshSuggestionsChain'](new Set([_0xe61efe])),this['_suggestionState']['set'](_0xe61efe,'ready'),this['fire']('suggestionLoaded',_0xe61efe)):this['_suggestionState']['set'](_0xe61efe,'removed');}return _0xe61efe;}['acceptSuggestion'](_0x28ab75){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4199d2 of _0x28ab75['getAllAdjacentSuggestions']())_0x4199d2['accept']();});});}['discardSuggestion'](_0x5ac6f1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x27e43b of _0x5ac6f1['getAllAdjacentSuggestions']())_0x27e43b['discard']();});});}['enableCommand'](_0xb2161a,_0x511fe7){const _0x41aad3=this['editor']['commands']['get'](_0xb2161a);if(!_0x41aad3)throw new _0x5cecf6('track-changes-command-not-found',this,{'commandName':_0xb2161a});if(this['_enabledCommands']['has'](_0x41aad3))throw new _0x5cecf6('track-changes-enable-command-twice',this,{'commandName':_0xb2161a});this['_enabledCommands']['add'](_0x41aad3),_0x511fe7&&_0x41aad3['on']('execute',(_0xf171b8,_0x9e2215)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x9e2215['length']>0x0&&_0x9e2215[_0x9e2215['length']-0x1]&&_0x9e2215[_0x9e2215['length']-0x1]['forceDefaultExecution']?_0x9e2215['pop']():(_0xf171b8['return']=_0x511fe7((..._0x4f1f54)=>_0x41aad3['execute'](..._0x4f1f54,{'forceDefaultExecution':!0x0}),..._0x9e2215),_0xf171b8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x510c02){let _0x51a7cc,_0x1499fc;const _0x152e77=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x51a7cc=_0x510c02();}catch(_0x41d7cc){_0x1499fc=_0x41d7cc;}return _0x152e77||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1499fc&&_0x5cecf6['rethrowUnexpectedError'](_0x1499fc,this),_0x51a7cc;}['markInsertion'](_0x4061dd,_0x5c4719=null,_0x3348aa={}){if(_0x4061dd['isCollapsed'])return null;const _0x56e664=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3348aa['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x47772c,meta:_0x197059}of this['_findSuggestions'](_0x4061dd,'insertion'))if(_0x197059['isOwn']){if(!_0x197059['isNextTo']){if(_0x197059['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x47772c,_0x3348aa))continue;return _0x47772c;}if(Qt(_0x47772c,_0x3348aa))return _0x47772c;this['_breakSuggestionMarker'](_0x47772c,_0x4061dd['start'],_0x4061dd['end']);break;}if(_0x5c4719==_0x47772c['subType']&&Qt(_0x47772c,_0x3348aa)){const _0x526d77=_0x47772c['getFirstRange']();return _0x526d77['start']['isEqual'](_0x4061dd['end'])?this['_setSuggestionRange'](_0x47772c,this['_model']['createRange'](_0x4061dd['start'],_0x526d77['end'])):this['_setSuggestionRange'](_0x47772c,this['_model']['createRange'](_0x526d77['start'],_0x4061dd['end'])),_0x47772c;}}const _0x251eee=_0x19694d(),_0xa82ac4=_0x56e664['id'],_0x1aa221=_0x5c4719?'insertion:'+_0x5c4719:'insertion',_0x2536cd=this['_setSuggestionData']({'id':_0x251eee,'type':_0x1aa221,'createdAt':new Date(),'authorId':_0xa82ac4,'attributes':_0x3348aa});return this['_addSuggestionMarker'](_0x1aa221,_0x251eee,_0xa82ac4,_0x4061dd),_0x2536cd;}['markMultiRangeInsertion'](_0x400e0a,_0x570205='multi',_0xf01a05={}){const _0x3a76b3=this['editor']['plugins']['get']('Users')['me'],_0x953d4a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x570205,'join');this['_trackingSessionId']&&(_0xf01a05['trackingSessionId']=this['_trackingSessionId']);for(const _0x45cb04 of this['getSuggestions']())if(_0x45cb04['author']['id']==_0x3a76b3['id']&&'insertion'==_0x45cb04['type']&&_0x45cb04['subType']==_0x570205&&Qt(_0x45cb04,_0xf01a05)&&(_0x953d4a(_0x45cb04['getRanges'](),_0x400e0a)||_0x953d4a(_0x400e0a,_0x45cb04['getRanges']()))){for(const _0x569718 of _0x400e0a)_0x45cb04['addRange'](_0x569718);return _0x45cb04;}for(const {suggestion:_0x19d5db,meta:_0xca3f53}of this['_findSuggestions'](_0x400e0a,'insertion')){if(!_0xca3f53['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xca3f53['containsRangeInObject'])continue;if(!Qt(_0x19d5db,_0xf01a05))continue;let _0x1ee7e8=!0x0;for(const _0x57ec70 of _0x19d5db['getRanges']())for(const _0xf6f378 of _0x400e0a)if(!_0x57ec70['containsRange'](_0xf6f378)){_0x1ee7e8=!0x1;break;}if(_0x1ee7e8)return _0x19d5db;}const _0x2da7d6=_0x19694d(),_0x4fd4c6=_0x3a76b3['id'],_0x11d86f='insertion:'+_0x570205,_0xf16a07=this['_setSuggestionData']({'id':_0x2da7d6,'type':_0x11d86f,'createdAt':new Date(),'authorId':_0x4fd4c6,'attributes':_0xf01a05});for(const _0x5e4774 of _0x400e0a)this['_addSuggestionMarker'](_0x11d86f,_0x2da7d6,_0x4fd4c6,_0x5e4774,T['getMultiRangeId']());return _0xf16a07;}['markInlineFormat'](_0x8b343a,_0x15bed3,_0x2b1629=null,_0x465474={}){if(_0x2b1629=_0x2b1629||Lt(_0x15bed3),_0x8b343a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x465474['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4d9537=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b1629,'accept');return this['forceDefaultExecution'](()=>_0x4d9537([_0x8b343a],_0x15bed3,_0x465474)),null;}const _0x1b0834=this['editor']['plugins']['get']('Users')['me'],_0x11ee00=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2809ac,meta:_0x735a5f}of this['_findSuggestions'](_0x8b343a,'insertion'))_0x735a5f['isOwn']&&!_0x735a5f['isInsideObject']&&_0x11ee00['push'](..._0x2809ac['getRanges']());}const _0x58d819=function(_0x188371,_0x255a29){const _0xd8d878=[];for(const _0x1aad27 of _0x255a29){const _0x4380ce=_0x188371['getIntersection'](_0x1aad27);_0x4380ce&&_0xd8d878['push'](_0x4380ce);}return _0xd8d878;}(_0x8b343a,_0x11ee00),_0x243e98=function(_0x37e105,_0x4bef6a){const _0x1bcc41=[_0x37e105];for(const _0x34eb9b of _0x4bef6a){let _0x350231=0x0;for(;_0x350231<_0x1bcc41['length'];){const _0x1f3eda=_0x1bcc41[_0x350231]['getDifference'](_0x34eb9b);_0x1bcc41['splice'](_0x350231,0x1,..._0x1f3eda),_0x350231+=_0x1f3eda['length'];}}return _0x1bcc41;}(_0x8b343a,_0x11ee00);_0x58d819['length']&&this['_model']['change'](()=>{for(const _0xdfef6e of _0x58d819){const _0x23aa46=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b1629,'accept');this['forceDefaultExecution'](()=>_0x23aa46([_0xdfef6e],_0x15bed3,_0x465474));}});for(const _0x521b11 of _0x243e98){let _0x74de21=null,_0xbabcba=_0x521b11['start'],_0x4953cd=_0x521b11['end'];for(const {suggestion:_0xaa2c5f,meta:_0x380e0b}of this['_findSuggestions'](_0x521b11,'formatInline')){if(!_0x380e0b['isOwn'])continue;if(_0xaa2c5f['subType']!=_0x2b1629)continue;if(!Qt(_0xaa2c5f,_0x465474))continue;const _0x17f78a=_0xaa2c5f['getFirstRange']();if(_0x17f78a['containsRange'](_0x521b11,!0x0))return null;_0xbabcba=_0xbabcba['isBefore'](_0x17f78a['start'])?_0xbabcba:_0x17f78a['start'],_0x4953cd=_0x4953cd['isAfter'](_0x17f78a['end'])?_0x4953cd:_0x17f78a['end'],_0x74de21?_0x17f78a['start']['isBefore'](_0x74de21['getFirstRange']()['start'])?(_0x74de21['removeMarkers'](),_0x74de21=_0xaa2c5f):_0xaa2c5f['removeMarkers']():_0x74de21=_0xaa2c5f;}const _0x196b2f=this['_model']['createRange'](_0xbabcba,_0x4953cd);if(_0x74de21)this['_setSuggestionRange'](_0x74de21,_0x196b2f);else{const _0x4fa911=_0x19694d(),_0x4dafc8=_0x1b0834['id'];this['_setSuggestionData']({'id':_0x4fa911,'type':'formatInline:'+_0x2b1629,'data':_0x15bed3,'createdAt':new Date(),'authorId':_0x4dafc8,'attributes':_0x465474}),this['_addSuggestionMarker']('formatInline:'+_0x2b1629,_0x4fa911,_0x4dafc8,_0x196b2f);}}return null;}['markBlockFormat'](_0x322244,_0xda2968,_0x18512c=[],_0x44067b=null,_0x39885a={}){_0xda2968['formatGroupId']||(_0xda2968['formatGroupId']=_0xda2968['commandName']),_0xda2968['multipleBlocks']=_0x322244['is']('range'),_0x44067b=_0x44067b||Lt(_0xda2968);const _0x1c831f=_0x18512c['map'](_0x73145b=>qt(_0x73145b,this['_model'])),_0x551fad=_0x322244['is']('range')?_0x322244:qt(_0x322244,this['_model']);if(this['_trackingSessionId']&&(_0x39885a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xdbaf04=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44067b,'accept');return this['forceDefaultExecution'](()=>_0xdbaf04([_0x551fad],_0xda2968,_0x39885a)),null;}_0x1c831f['push'](_0x551fad);let _0x2d896c=!0x0;for(const _0xc03752 of _0x1c831f)if(!this['_rangeIsInLocalUserInsertion'](_0xc03752)){_0x2d896c=!0x1;break;}if(_0x2d896c&&'always'!==this['_trackFormatChanges']){const _0x53920b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44067b,'accept');return this['forceDefaultExecution'](()=>_0x53920b([_0x551fad],_0xda2968,_0x39885a)),null;}let _0x39f2d3=null,_0xba43b=_0x551fad['start'],_0x5a9406=_0x551fad['end'];for(const {suggestion:_0xae9e61,meta:_0x31ffc2}of this['_findSuggestions'](_0x551fad,'formatBlock')){if(!_0x31ffc2['isOwn'])continue;if(_0x31ffc2['isNextTo']||_0x31ffc2['containsRangeInObject']||_0x31ffc2['isInsideObject'])continue;if(_0xae9e61['data']['formatGroupId']!=_0xda2968['formatGroupId'])continue;if(!Qt(_0xae9e61,_0x39885a))continue;const _0x4558b3=_0xae9e61['getFirstRange']();if(_0xae9e61['subType']==_0x44067b){if(_0x4558b3['containsRange'](_0x551fad,!0x0))return null;_0xba43b=_0xba43b['isBefore'](_0x4558b3['start'])?_0xba43b:_0x4558b3['start'],_0x5a9406=_0x5a9406['isAfter'](_0x4558b3['end'])?_0x5a9406:_0x4558b3['end'],_0x39f2d3?_0x4558b3['start']['isBefore'](_0x39f2d3['getFirstRange']()['start'])?(_0x39f2d3['removeMarkers'](),_0x39f2d3=_0xae9e61):_0xae9e61['removeMarkers']():_0x39f2d3=_0xae9e61;}else{const _0xd528dd=_0x551fad['getIntersection'](_0x4558b3);this['_cutOutSuggestionMarker'](_0xae9e61,_0xd528dd);}}const _0xfd6a88=this['editor']['plugins']['get']('Users')['me'],_0x1470be=_0x19694d(),_0x31f995=_0xfd6a88['id'];if(_0x39f2d3)return this['_setSuggestionRange'](_0x39f2d3,this['_model']['createRange'](_0xba43b,_0x5a9406)),_0x39f2d3;{const _0x4bf858=this['_setSuggestionData']({'id':_0x1470be,'type':'formatBlock:'+_0x44067b,'data':_0xda2968,'createdAt':new Date(),'authorId':_0x31f995,'attributes':_0x39885a});return this['_addSuggestionMarker']('formatBlock:'+_0x44067b,_0x1470be,_0x31f995,this['_model']['createRange'](_0xba43b,_0x5a9406)),_0x4bf858;}}['markMultiRangeBlockFormat'](_0x5aa366,_0x130f58,_0x3ee0fe=[],_0x2d2a34=null,_0x404df6={}){_0x130f58['formatGroupId']||(_0x130f58['formatGroupId']=_0x130f58['commandName']);const _0x281642=_0x5aa366[0x0];_0x130f58['multipleBlocks']=_0x281642['is']('range'),_0x2d2a34=_0x2d2a34||Lt(_0x130f58);const _0x57cc2f=_0x3ee0fe['map'](_0xdcfe56=>qt(_0xdcfe56,this['_model'])),_0x5e5017=_0x281642['is']('range')?_0x5aa366:_0x5aa366['map'](_0x5a2523=>qt(_0x5a2523,this['_model']));if(this['_trackingSessionId']&&(_0x404df6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5cf3c1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d2a34,'accept');return this['forceDefaultExecution'](()=>_0x5cf3c1(_0x5e5017,_0x130f58,_0x404df6)),null;}_0x57cc2f['push'](..._0x5e5017);let _0x3448ce=!0x0;for(const _0x3d7d96 of _0x57cc2f)if(!this['_rangeIsInLocalUserInsertion'](_0x3d7d96)){_0x3448ce=!0x1;break;}if(_0x3448ce&&'always'!==this['_trackFormatChanges']){const _0x508ce6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d2a34,'accept');return this['forceDefaultExecution'](()=>_0x508ce6(_0x5e5017,_0x130f58,_0x404df6)),null;}const _0x42a52c=this['editor']['plugins']['get']('Users')['me'];for(const _0x351273 of this['getSuggestions']()){const _0x451ccc=_0x351273['data'];if(_0x351273['author']['id']!=_0x42a52c['id'])continue;if('formatBlock'!=_0x351273['type']||_0x451ccc['formatGroupId']!=_0x130f58['formatGroupId'])continue;if(!Qt(_0x351273,_0x404df6))continue;const _0x5a2365=_0x351273['subType']==_0x2d2a34;for(let _0x4bcde3=0x0;_0x4bcde3<_0x5e5017['length'];_0x4bcde3++){const _0x5adfe3=_0x5e5017[_0x4bcde3];for(const _0x1845e3 of _0x351273['getMarkers']()){const _0x2ded8a=_0x1845e3['getRange']();if(_0x5adfe3['isEqual'](_0x2ded8a)){_0x5a2365?(_0x5e5017['splice'](_0x4bcde3,0x1),_0x4bcde3--):_0x351273['removeMarker'](_0x1845e3['name']);break;}}}}if(0x0==_0x5e5017['length'])return null;const _0x16adf9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2d2a34,'join');for(const _0x22282e of this['getSuggestions']()){const _0x4d9562=_0x22282e['data'];if(_0x22282e['author']['id']==_0x42a52c['id']&&('formatBlock'==_0x22282e['type']&&_0x4d9562['formatGroupId']==_0x130f58['formatGroupId']&&_0x22282e['subType']==_0x2d2a34&&Qt(_0x22282e,_0x404df6)&&(_0x16adf9(_0x22282e['getRanges'](),_0x5e5017)||_0x16adf9(_0x5e5017,_0x22282e['getRanges']())))){for(const _0x598361 of _0x5e5017)_0x22282e['addRange'](_0x598361);return _0x22282e;}}const _0xdc8cf3=_0x19694d(),_0x12f6b0=_0x42a52c['id'],_0x753c6e='formatBlock:'+_0x2d2a34,_0x340209=this['_setSuggestionData']({'id':_0xdc8cf3,'type':_0x753c6e,'data':_0x130f58,'createdAt':new Date(),'authorId':_0x12f6b0,'attributes':_0x404df6});for(const _0x367fa2 of _0x5e5017)this['_addSuggestionMarker'](_0x753c6e,_0xdc8cf3,_0x12f6b0,_0x367fa2,T['getMultiRangeId']());return _0x340209;}['markDeletion'](_0x2a8642,_0x3b1f51=null,_0x4a7faa={}){if(_0x2a8642['isCollapsed'])return null;const _0x57bac0=this['editor']['plugins']['get']('Users')['me'],_0x2b6523=new _0x45518e(_0x2a8642['start'],_0x2a8642['end']);this['_trackingSessionId']&&(_0x4a7faa['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x345c93,meta:_0x5b9650}of this['_findSuggestions'](_0x2b6523,'insertion'))if(_0x5b9650['isOwn']&&!_0x5b9650['isNextTo']){if(_0x345c93['isMultiRange']){const _0x336c3e=_0x345c93['getRanges']()['filter'](_0x38fa31=>'$graveyard'!=_0x38fa31['root']['rootName']);_0x336c3e['every'](_0x3b527b=>_0x2b6523['containsRange'](_0x3b527b,!0x0))&&_0x345c93['discard']();if(_0x336c3e['some'](_0x4ff147=>_0x4ff147['containsRange'](_0x2b6523,!0x0))){const _0x463033=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3b1f51,'accept');return this['forceDefaultExecution'](()=>_0x463033([_0x2b6523],null,_0x4a7faa)),null;}}else{const _0xaed66e=_0x2b6523['getIntersection'](_0x345c93['getFirstRange']());null!==_0xaed66e&&_0x345c93['_onDiscard']([_0xaed66e],null,_0x4a7faa);}}if(_0x2b6523['detach'](),_0x2b6523['isCollapsed']||'$graveyard'==_0x2b6523['root']['rootName'])return null;let _0x1154c5=null,_0x3ce204=_0x2b6523['start'],_0x43fd7f=_0x2b6523['end'];const _0x587738=this['_findSuggestions'](_0x2b6523,'deletion');for(const {suggestion:_0x5af1d3,meta:_0x2abe71}of _0x587738){const _0x32d35d=this['_model']['createRange'](_0x3ce204,_0x43fd7f);if(_0x2abe71['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2abe71['containsRangeInObject']&&!_0x2abe71['isInsideObject'])){if(_0x5af1d3['isMultiRange']){if(!Qt(_0x5af1d3,_0x4a7faa))continue;let _0x1f0b5a=!0x0;for(const _0x47b518 of _0x5af1d3['getRanges']()){if(_0x47b518['containsRange'](_0x32d35d,!0x0))return _0x5af1d3;_0x32d35d['containsRange'](_0x47b518)||(_0x1f0b5a=!0x1);}_0x1f0b5a&&_0x5af1d3['discard']();}else{const _0x1fdf36=_0x5af1d3['getFirstRange']();if(_0x1fdf36['containsRange'](_0x32d35d,!0x0))return _0x5af1d3;if(!Qt(_0x5af1d3,_0x4a7faa)){_0x32d35d['containsRange'](_0x1fdf36)?_0x5af1d3['removeMarkers']():_0x1fdf36['containsPosition'](_0x3ce204)?_0x3ce204=_0x1fdf36['end']:_0x1fdf36['containsPosition'](_0x43fd7f)&&(_0x43fd7f=_0x1fdf36['start']);continue;}_0x3ce204=_0x3ce204['isBefore'](_0x1fdf36['start'])?_0x3ce204:_0x1fdf36['start'],_0x43fd7f=_0x43fd7f['isAfter'](_0x1fdf36['end'])?_0x43fd7f:_0x1fdf36['end'],_0x4a7faa=Object['assign']({},_0x5af1d3['attributes']),_0x1154c5?_0x1fdf36['start']['isBefore'](_0x1154c5['getFirstRange']()['start'])?(_0x1154c5['removeMarkers'](),_0x1154c5=_0x5af1d3):_0x5af1d3['removeMarkers']():_0x1154c5=_0x5af1d3;}}}if(_0x1154c5)return this['_setSuggestionRange'](_0x1154c5,this['_model']['createRange'](_0x3ce204,_0x43fd7f)),_0x1154c5;{const _0x1c0a00=_0x19694d(),_0x725c9a=this['_model']['createRange'](_0x3ce204,_0x43fd7f),_0x541aba=_0x57bac0['id'],_0x2215a6=_0x3b1f51?'deletion:'+_0x3b1f51:'deletion',_0x445cc3=this['_setSuggestionData']({'id':_0x1c0a00,'type':_0x2215a6,'createdAt':new Date(),'authorId':_0x541aba,'attributes':_0x4a7faa});return this['_addSuggestionMarker'](_0x2215a6,_0x1c0a00,_0x541aba,_0x725c9a),_0x445cc3;}}['markMultiRangeDeletion'](_0x5620e7,_0x4d1e4d='multi',_0x4b26fd={}){const _0x10bb99=this['editor']['plugins']['get']('Users')['me'],_0x320d52=_0x5620e7['map'](_0x24e4d9=>new _0x45518e(_0x24e4d9['start'],_0x24e4d9['end'])),_0x371044=new Set();this['_trackingSessionId']&&(_0x4b26fd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x586aef,meta:_0x1640c1}of this['_findSuggestions'](_0x320d52,'insertion'))_0x1640c1['isOwn']&&!_0x1640c1['isNextTo']&&_0x371044['add'](_0x586aef);for(const _0x4f41ee of _0x371044)if(_0x4f41ee['isMultiRange']){const _0x467e7d=_0x4f41ee['getRanges']();(!_0x4f41ee['attributes']||!_0x4f41ee['attributes']['skipNestingCheck'])&&(_0x467e7d['every'](_0x4e27c0=>_0x320d52['some'](_0x41366c=>_0x41366c['containsRange'](_0x4e27c0,!0x0)))&&_0x4f41ee['discard']());if(_0x320d52['every'](_0x56ba4a=>_0x467e7d['some'](_0x3926fd=>_0x3926fd['containsRange'](_0x56ba4a,!0x0)))){const _0xd42a6c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d1e4d,'accept');return this['forceDefaultExecution'](()=>_0xd42a6c(_0x5620e7,null,_0x4b26fd)),null;}}else{const _0x53393d=_0x4f41ee['getFirstRange']();_0x320d52['some'](_0x19a5c9=>_0x19a5c9['containsRange'](_0x53393d,!0x0))&&_0x4f41ee['discard']();if(_0x320d52['every'](_0x3e9ab2=>_0x53393d['containsRange'](_0x3e9ab2,!0x0))){const _0x47e997=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d1e4d,'accept');return this['forceDefaultExecution'](()=>_0x47e997(_0x320d52,null,_0x4b26fd)),null;}}const _0x322e26=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d1e4d,'join');let _0x24ea96=null;for(const _0x37f322 of this['getSuggestions']())if(_0x37f322['author']['id']==_0x10bb99['id']&&_0x37f322['isInContent']&&'deletion'==_0x37f322['type']&&_0x37f322['subType']==_0x4d1e4d&&Qt(_0x37f322,_0x4b26fd)&&(_0x322e26(_0x37f322['getRanges'](),_0x320d52)||_0x322e26(_0x320d52,_0x37f322['getRanges']()))){if(_0x24ea96){if(_0x37f322['commentThread']&&_0x37f322['commentThread']['length'])continue;for(const _0x56d5f0 of _0x37f322['getRanges']())_0x24ea96['isIntersectingWithRange'](_0x56d5f0)||_0x24ea96['addRange'](_0x56d5f0);_0x37f322['removeMarkers']();}else{_0x24ea96=_0x37f322;for(const _0x585d88 of _0x320d52)_0x37f322['isIntersectingWithRange'](_0x585d88)||_0x37f322['addRange'](_0x585d88);}}if(_0x24ea96)return _0x24ea96;_0x371044['clear']();for(const {suggestion:_0x243ea7,meta:_0x109918}of this['_findSuggestions'](_0x320d52,'deletion'))_0x109918['isOwn']&&(this['_mergeNestedSuggestions']||!_0x109918['containsRangeInObject']&&!_0x109918['isInsideObject'])&&Qt(_0x243ea7,_0x4b26fd)&&_0x371044['add'](_0x243ea7);for(const _0x42e787 of _0x371044){const _0x7f80e6=_0x42e787['getRanges']();if(!_0x4b26fd||!_0x4b26fd['skipNestingCheck']){if(_0x320d52['every'](_0x2c421e=>_0x7f80e6['some'](_0x529d8c=>_0x529d8c['containsRange'](_0x2c421e,!0x0))))return _0x42e787;}(!_0x42e787['attributes']||!_0x42e787['attributes']['skipNestingCheck'])&&(_0x7f80e6['every'](_0x3bc17f=>_0x320d52['some'](_0x200933=>_0x200933['containsRange'](_0x3bc17f,!0x0)))&&_0x42e787['discard']());}const _0x2cf92d=_0x19694d(),_0xbbc8f=_0x10bb99['id'],_0x385b54='deletion:'+_0x4d1e4d,_0xafb6d9=this['_setSuggestionData']({'id':_0x2cf92d,'type':_0x385b54,'createdAt':new Date(),'authorId':_0xbbc8f,'attributes':_0x4b26fd});for(const _0x5bb1bd of _0x320d52)_0x5bb1bd['detach'](),_0x5bb1bd['isCollapsed']||'$graveyard'==_0x5bb1bd['root']['rootName']||this['_addSuggestionMarker'](_0x385b54,_0x2cf92d,_0xbbc8f,_0x5bb1bd,T['getMultiRangeId']());return _0xafb6d9;}['markAttributeChange'](_0x39c737,_0x38bfcf,_0x24549f,_0x43530d,_0x507e8e){if(_0x39c737['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x47e059=this['editor']['plugins']['get']('Users')['me']['id'],_0x2c6c8c=Array['from'](this['_suggestions']['values']())['filter'](_0x2bacb5=>'attribute'==_0x2bacb5['type']&&_0x2bacb5['data']['key']==_0x38bfcf&&_0x2bacb5['isIntersectingWithRange'](_0x39c737));if(this['_trackingSessionId']&&(_0x507e8e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x58bbba=this['_findSuggestions'](_0x39c737,'insertion')['filter'](({meta:_0x5e55d7})=>_0x5e55d7['isOwn']&&!_0x5e55d7['isInsideObject']&&!_0x5e55d7['isNextTo'])['map'](({suggestion:_0x44f32d})=>_0x44f32d);_0x2c6c8c['unshift'](..._0x58bbba);}const _0x161bb9=new Map([[_0x39c737,_0x24549f]]);for(const _0x480d1e of _0x2c6c8c){const _0xc984b6='attribute'==_0x480d1e['type']?_0x480d1e['data']['oldValue']:void 0x0,_0x12d97c=_0x480d1e['getFirstRange'](),_0x2f8723=Array['from'](_0x161bb9['keys']())['find'](_0x144759=>_0x144759['isIntersecting'](_0x12d97c));if(!_0x2f8723)continue;const _0x50b8d7=_0x2f8723['getDifference'](_0x12d97c);this['_isBlockAttribute'](_0x38bfcf)&&'insertion'==_0x480d1e['type']&&0x0!=_0x50b8d7['length']||(_0x161bb9['delete'](_0x2f8723),_0x50b8d7['forEach'](_0x8fb05e=>{_0x161bb9['set'](_0x8fb05e,_0x24549f);}),'insertion'!=_0x480d1e['type']&&_0xc984b6!=_0x43530d&&_0x161bb9['set'](_0x2f8723['getIntersection'](_0x12d97c),_0xc984b6));}const _0x53d814=[];for(const [_0x551e9b,_0x555847]of _0x161bb9){const _0x33991e=_0x19694d(),_0x2b594d={'key':_0x38bfcf,'oldValue':_0x555847,'newValue':_0x43530d};_0x38bfcf['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':_0x38bfcf});const _0x5d19e9=('attribute:'+(_0x38bfcf+'|'+Lt({'newValue':_0x43530d})))['substring'](0x0,0x3c),_0x11825a=this['_setSuggestionData']({'id':_0x33991e,'type':_0x5d19e9,'data':_0x2b594d,'createdAt':new Date(),'authorId':_0x47e059,'attributes':_0x507e8e});_0x53d814['push'](_0x11825a),this['_addSuggestionMarker'](_0x5d19e9,_0x33991e,_0x47e059,_0x551e9b);}return _0x53d814;}['enableDefaultAttributesIntegration'](_0x535953){this['enableCommand'](_0x535953,(_0x1b90ad,..._0x1e0f02)=>{this['recordAttributeChanges'](()=>{_0x1b90ad(..._0x1e0f02);});});}['registerBlockAttribute'](_0x4827c0){this['_blockAttributeKeys']['add'](_0x4827c0);}['registerInlineAttribute'](_0x28b09f){this['_inlineAttributeKeys']['add'](_0x28b09f);}['startTrackingSession'](_0x1ee789){return this['_trackingSessionId']=void 0x0!==_0x1ee789?_0x1ee789:_0x19694d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1d564d){return'attribute'==_0x1d564d['type']?_0x1d564d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x222864,_0x3ca362){const _0x39eda9=_0x222864['getFirstMarker']();this['_model']['change'](_0x5f131c=>{_0x5f131c['updateMarker'](_0x39eda9,{'range':_0x3ca362});});}['_addThreadToSuggestion'](_0x3b6a2e){const _0x26da2d=_0x3b6a2e['id'],_0x5a8ab3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x26da2d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5a8ab3,'threadId':_0x26da2d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3384ae=this['_commentsRepository']['getCommentThread'](_0x26da2d);_0x3384ae['unbind']('isRemovable'),_0x3384ae['isRemovable']=!0x1,_0x3b6a2e['commentThread']=_0x3384ae;}['_checkSuggestionCorrectness'](_0x40888c,_0x56ea3a,_0x5d6f99,_0x315e3b){if(_0x40888c['type']!=_0x56ea3a||_0x40888c['subType']!=_0x5d6f99||_0x40888c['creator']['id']!=_0x315e3b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5cecf6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1a65f1,_0x1aae80){const _0x1f5120=_0x1a65f1['getFirstRange']();if(_0x1aae80['isEqual'](_0x1f5120))_0x1a65f1['removeMarkers']();else{if(_0x1f5120['containsRange'](_0x1aae80)){const _0x1e3925=this['_model']['createPositionAt'](_0x1aae80['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a65f1,this['_model']['createRange'](_0x1f5120['start'],_0x1e3925));const _0x3af5ae=_0x19694d(),_0x3a2a67=_0x1a65f1['creator']['id'],_0x3040e9=_0x1a65f1['type']+':'+_0x1a65f1['subType'];this['_setSuggestionData']({'id':_0x3af5ae,'type':_0x3040e9,'createdAt':new Date(),'authorId':_0x3a2a67,'data':_0x1a65f1['data'],'attributes':_0x1a65f1['attributes']});const _0x6e2825=this['_model']['createPositionAt'](_0x1aae80['end']['parent'],'after'),_0x55d06e=this['_model']['createRange'](_0x6e2825,_0x1f5120['end']);this['_addSuggestionMarker'](_0x3040e9,_0x3af5ae,_0x3a2a67,_0x55d06e);}else{if(_0x1f5120['containsPosition'](_0x1aae80['start'])){const _0x58ada4=this['_model']['createPositionAt'](_0x1aae80['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a65f1,this['_model']['createRange'](_0x1f5120['start'],_0x58ada4));}else{const _0x4c6f11=this['_model']['createPositionAt'](_0x1aae80['end']['parent'],'after');this['_setSuggestionRange'](_0x1a65f1,this['_model']['createRange'](_0x4c6f11,_0x1f5120['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x53a1ca){for(const {suggestion:_0x154c9e,meta:_0x2a6f43}of this['_findSuggestions'](_0x53a1ca,'insertion')){if(!_0x2a6f43['isOwn'])continue;const _0x6b8557=_0x154c9e['getRanges']();for(const _0x4cf316 of _0x6b8557)if(!_0x53a1ca['getDifference'](_0x4cf316)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x43520e){const _0x201778=this['editor']['plugins']['get']('Users')['getUser'](_0x43520e);if(!_0x201778)throw new _0x5cecf6('track-changes-user-not-found',this);return _0x201778;}['_getExternalAuthor'](_0x4cd7a7){const _0x38774c=this['editor']['plugins']['get']('Users'),_0xa0c876=_0x2d1cfb('external:'+_0x4cd7a7),_0xd4db45=_0x38774c['getUser'](_0xa0c876);return _0xd4db45||_0x38774c['addUser']({'id':_0xa0c876,'name':_0x4cd7a7});}['_createSuggestion'](_0x163a4b,_0x3a3416,_0x371482,_0x5ee9ad,_0x290e6c,_0x348e38){const _0x125ae4=this['_getAuthorFromId'](_0x5ee9ad),_0x3e51d8=this['_suggestionFactory']['buildSuggestion'](_0x163a4b,_0x3a3416,_0x371482,_0x125ae4,_0x290e6c,_0x42cf30=>{this['_updateSuggestionData'](_0x371482,{'attributes':_0x42cf30});const _0x52246c=this['getSuggestion'](_0x371482);this['_joinWithAdjacentSuggestions'](new Set([_0x52246c])),this['_refreshSuggestionsChain'](new Set([_0x52246c]));},_0x348e38);return this['listenTo'](_0x3e51d8,'accept',()=>{this['_updateSuggestionData'](_0x371482,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3e51d8,'discard',()=>{this['_updateSuggestionData'](_0x371482,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x371482,_0x3e51d8),this['_suggestionState']['set'](_0x3e51d8,'notReady'),_0x3e51d8;}['_splitMarkerName'](_0x46026a){const _0x3278d3=_0x46026a['split'](':');return{'group':_0x3278d3[0x0],'type':_0x3278d3[0x1],'subType':_0x3278d3['length']>=0x5?_0x3278d3[0x2]:null,'id':_0x3278d3['length']<0x5?_0x3278d3[0x2]:_0x3278d3[0x3],'authorId':_0x3278d3['length']<0x5?_0x3278d3[0x3]:_0x3278d3[0x4],'markerCount':0x6==_0x3278d3['length']?_0x3278d3[0x5]:null};}['_breakSuggestionMarker'](_0x198b83,_0x140cb4,_0x4622b3){const _0x57e295=_0x198b83['getFirstRange'](),_0x49a236=_0x57e295['start'],_0x52318a=_0x57e295['end'];this['_setSuggestionRange'](_0x198b83,this['_model']['createRange'](_0x49a236,_0x140cb4));const _0x1e7009=_0x19694d(),_0x1fa5cc=_0x198b83['creator']['id'],_0x454382=_0x198b83['type']+(_0x198b83['subType']?':'+_0x198b83['subType']:'');this['_setSuggestionData']({'id':_0x1e7009,'type':_0x454382,'createdAt':new Date(),'authorId':_0x1fa5cc,'originalSuggestionId':_0x198b83['_originalSuggestionId']||_0x198b83['id'],'attributes':_0x198b83['attributes'],'data':_0x198b83['data']});const _0x1ea1a8=this['_getAttributeKey'](_0x198b83);('formatBlock'==_0x198b83['type']||_0x1ea1a8&&this['_isBlockAttribute'](_0x1ea1a8))&&(_0x4622b3=this['_model']['createPositionBefore'](_0x4622b3['parent'])),this['_addSuggestionMarker'](_0x454382,_0x1e7009,_0x1fa5cc,this['_model']['createRange'](_0x4622b3,_0x52318a));}['_findSuggestions'](_0x58452f,_0x52bc8e=null){const _0x1695c4=[],_0xd8a6f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x58452f)||(_0x58452f=[_0x58452f]);for(const _0x3ad2fa of this['getSuggestions']()){if(!_0x3ad2fa['isInContent'])continue;if(_0x52bc8e&&_0x3ad2fa['type']!=_0x52bc8e)continue;let _0xac264f=!0x1;for(const _0x26a49f of _0x3ad2fa['getRanges']()){for(const _0x536b4e of _0x58452f){const _0x5e234a=_0x536b4e['start']['isEqual'](_0x26a49f['end'])||_0x536b4e['end']['isEqual'](_0x26a49f['start']);if(_0x5e234a||_0x536b4e['getIntersection'](_0x26a49f)){const _0x477900=_0x536b4e['containsRange'](_0x26a49f)&&Ft(this['_model']['schema'],_0x26a49f['start'],_0x536b4e),_0x5b0342=_0x26a49f['containsRange'](_0x536b4e)&&Ft(this['_model']['schema'],_0x536b4e['start'],_0x26a49f);_0x1695c4['push']({'suggestion':_0x3ad2fa,'meta':{'isOwn':_0xd8a6f==_0x3ad2fa['author'],'isNextTo':_0x5e234a,'isInsideObject':_0x477900,'containsRangeInObject':_0x5b0342}}),_0xac264f=!0x0;break;}}if(_0xac264f)break;}}return _0x1695c4;}['_addSuggestionMarker'](_0x379a5a,_0x3f86ad,_0x236f0d,_0x2e99ea,_0x4a1c72){this['_model']['change'](_0x9fdacf=>{let _0xdb9a0e='suggestion:'+_0x379a5a+':'+_0x3f86ad+':'+_0x236f0d;_0x4a1c72&&(_0xdb9a0e=_0xdb9a0e+':'+_0x4a1c72),_0x9fdacf['addMarker'](_0xdb9a0e,{'range':_0x2e99ea,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x56f2b0){const _0x19b5cb=_0x56f2b0['previous'],_0x4a937b=_0x56f2b0['next'];_0x56f2b0['previous']=null,_0x56f2b0['next']=null,null!=_0x19b5cb&&_0x19b5cb['next']==_0x56f2b0&&(_0x19b5cb['next']=_0x4a937b),null!=_0x4a937b&&_0x4a937b['previous']==_0x56f2b0&&(_0x4a937b['previous']=_0x19b5cb),'ready'==this['_suggestionState']['get'](_0x56f2b0)&&(this['_suggestionState']['set'](_0x56f2b0,'removed'),this['fire']('suggestionUnloaded',_0x56f2b0,_0x19b5cb,_0x4a937b));}['_setSuggestionData'](_0x1c441f){const _0x28e3df=_0x1c441f['id'],_0x2c8081=this['addSuggestionData'](_0x1c441f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3a289e=this['editor']['plugins']['get']('PendingActions'),_0x16598a=_0x2c8081['hasComments'],_0x3c845e=_0x2c8081['subType']?_0x2c8081['type']+':'+_0x2c8081['subType']:_0x2c8081['type'],_0x39d57c=this['editor']['locale'],_0x34796b=_0x3a289e['add'](o(_0x39d57c,'PENDING_ACTION_SUGGESTION')),_0x2ce91e={'id':_0x28e3df,'type':_0x3c845e,'hasComments':_0x16598a,'data':_0x1c441f['data']||null,'originalSuggestionId':_0x1c441f['originalSuggestionId']||null,'attributes':_0x2c8081['attributes']};this['_adapter']['addSuggestion'](_0x2ce91e)['then'](_0xb79343=>{_0x2c8081['_saved']=!0x0,_0x3a289e['remove'](_0x34796b),_0xb79343&&_0xb79343['createdAt']&&(this['_suggestions']['get'](_0x28e3df)['createdAt']=_0xb79343['createdAt']);})['catch'](_0x34e1cf=>{throw _0xc05f79('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2c8081['discard']();}),_0x2c8081['stopListening'](),this['_suggestions']['delete'](_0x2c8081['id']),this['_suggestionState']['delete'](_0x2c8081),_0x34e1cf;});}return _0x2c8081;}['_isBlockAttribute'](_0x4e944e){return this['_blockAttributeKeys']['has'](_0x4e944e);}['_updateSuggestionData'](_0x121bfb,_0x254fd1){const _0x1f3902=this['editor']['plugins']['get']('PendingActions'),_0x26022b=this['getSuggestion'](_0x121bfb);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x26022b['_saved']){const _0x1d172b=_0x1f3902['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x121bfb,_0x254fd1)['then'](()=>{_0x1f3902['remove'](_0x1d172b);});}else _0x26022b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x121bfb,_0x254fd1);});}}['_getSuggestionData'](_0x1ef897){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5cecf6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1ef897);}['_handleNewSuggestionMarker'](_0x656b0b){const {id:_0x41048e,type:_0x55232b,subType:_0x4c9150,authorId:_0x42ac22}=this['_splitMarkerName'](_0x656b0b),_0x482f7c=this['_suggestions']['get'](_0x41048e)||this['_createSuggestion'](_0x55232b,_0x4c9150,_0x41048e,_0x42ac22,{});switch(this['_checkSuggestionCorrectness'](_0x482f7c,_0x55232b,_0x4c9150,_0x42ac22),this['_suggestionState']['get'](_0x482f7c)){case'notReady':this['_getSuggestionData'](_0x41048e)['then'](_0xe2975b=>{let _0x2bd4d7=Promise['resolve']();_0xe2975b['hasComments']&&(_0x2bd4d7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x41048e})),_0x2bd4d7['then'](()=>{this['addSuggestionData'](_0xe2975b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x482f7c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x41048e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x482f7c,'ready'),this['fire']('suggestionLoaded',_0x482f7c);break;case'ready':this['fire']('suggestionChanged',_0x482f7c);}return _0x482f7c['addMarkerName'](_0x656b0b),_0x482f7c;}['_refreshSuggestionsChain'](_0x40838e){const _0x19e9a8=Array['from'](_0x40838e),_0x43fd44=_0x19e9a8['filter'](_0x5d7673=>'attribute'==_0x5d7673['type']);this['_refreshAttributeSuggestionsChain'](_0x43fd44);const _0x4c1ddb=_0x19e9a8['filter'](_0x1ec361=>!_0x1ec361['isMultiRange']&&'attribute'!=_0x1ec361['type']),_0x1199f6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11d173=>!_0x11d173['isMultiRange']&&'attribute'!=_0x11d173['type']),_0x2451e5=_0x1199f6['filter'](_0x115c30=>!_0x40838e['has'](_0x115c30)),_0x107f7d=new Map(_0x1199f6['map'](_0x11bd4b=>[_0x11bd4b,this['_suggestionFactory']['getSuggestionCallback'](_0x11bd4b['type'],_0x11bd4b['subType'],'chain')])),_0x1939cb=new Map(_0x1199f6['map'](_0x3d30b8=>[_0x3d30b8,_0x3d30b8['getFirstRange']()])),_0x11dffb=new Set(),_0x4e5778=new Set();for(let _0x109e90=0x0;_0x109e90<_0x4c1ddb['length'];_0x109e90++)_0xc85f3c(_0x4c1ddb[_0x109e90],_0x4c1ddb,_0x109e90+0x1);for(let _0x4c6f41=0x0;_0x4c6f41<_0x4c1ddb['length'];_0x4c6f41++)_0xc85f3c(_0x4c1ddb[_0x4c6f41],_0x2451e5,0x0);const _0x258ea1=new Set();for(let _0x19cd10=0x0;_0x19cd10<_0x4c1ddb['length'];_0x19cd10++){const _0x15b574=_0x4c1ddb[_0x19cd10];!_0x4e5778['has'](_0x15b574)&&_0x15b574['previous']&&(_0x258ea1['add'](_0x15b574['previous']),_0x15b574['previous']['next']===_0x15b574&&(_0x15b574['previous']['next']=null),_0x15b574['previous']=null),!_0x11dffb['has'](_0x15b574)&&_0x15b574['next']&&(_0x258ea1['add'](_0x15b574['next']),_0x15b574['next']['previous']===_0x15b574&&(_0x15b574['next']['previous']=null),_0x15b574['next']=null);}function _0xc85f3c(_0x59ea30,_0x43a4c9,_0x5391f8){for(let _0x1019dd=_0x5391f8;_0x1019dd<_0x43a4c9['length'];_0x1019dd++){const _0x5a67e8=_0x29d591(_0x59ea30,_0x43a4c9[_0x1019dd]);_0x5a67e8&&(_0x5a67e8[0x0]['next']=_0x5a67e8[0x1],_0x5a67e8[0x1]['previous']=_0x5a67e8[0x0],_0x11dffb['add'](_0x5a67e8[0x0]),_0x4e5778['add'](_0x5a67e8[0x1]));}}function _0x29d591(_0x12a031,_0x136a1d){if(_0x12a031['author']['id']!==_0x136a1d['author']['id'])return null;const _0xcded38=_0x107f7d['get'](_0x12a031)(_0x12a031,_0x136a1d,_0x1939cb['get'](_0x12a031),_0x1939cb['get'](_0x136a1d));if(!_0xcded38)return null;return _0x107f7d['get'](_0x136a1d)(_0x12a031,_0x136a1d,_0x1939cb['get'](_0x12a031),_0x1939cb['get'](_0x136a1d))?_0xcded38[0x1]['commentThread']&&_0xcded38[0x1]['commentThread']['length']?null:_0xcded38:null;}_0x258ea1['size']&&this['_refreshSuggestionsChain'](_0x258ea1);}['_refreshAttributeSuggestionsChain'](_0x30f6d6){if(0x0==_0x30f6d6['length'])return;const _0x8c8e39=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16344d=>'attribute'==_0x16344d['type']&&_0x16344d['_isDataLoaded']),_0x4a007e=[],_0x148581=new Map();for(const _0x4350a3 of _0x8c8e39){const _0x292b95=_0x2d1cfb(_0x4350a3['attributes']);_0x148581['has'](_0x292b95)||(_0x148581['set'](_0x292b95,_0x4a007e['length']),_0x4a007e['push']([]));const _0xeb340f=_0x148581['get'](_0x292b95);_0x4a007e[_0xeb340f]['push'](_0x4350a3);}!(function(){_0x4a007e['sort']((_0x3ea8be,_0x40c1b0)=>{const _0x40ad2e=_0x3ea8be[0x0]['createdAt'],_0x19af3f=_0x40c1b0[0x0]['createdAt'];return _0x40ad2e==_0x19af3f?_0x3ea8be[0x0]['attributes']['groupId']<_0x40c1b0[0x0]['attributes']['groupId']?-0x1:0x1:_0x40ad2e<_0x19af3f?-0x1:0x1;});for(const _0x58c8f6 of _0x4a007e)_0x58c8f6['sort']((_0x16c540,_0x30c96d)=>_0x16c540['id']<_0x30c96d['id']?-0x1:0x1);}());for(let _0x498841=0x0;_0x498841<_0x4a007e['length'];_0x498841++){if(0x0==_0x4a007e[_0x498841]['length'])continue;const _0x3466f2=[];for(let _0x42e577=_0x498841+0x1;_0x42e577<_0x4a007e['length'];_0x42e577++)0x0!=_0x4a007e[_0x42e577]['length']&&_0x33c592(_0x4a007e[_0x498841],_0x4a007e[_0x42e577])&&_0x3466f2['push'](_0x42e577);for(const _0x435dd8 of _0x3466f2)_0x4a007e[_0x498841]=_0x4a007e[_0x498841]['concat'](_0x4a007e[_0x435dd8]),_0x4a007e[_0x435dd8]=[];}for(const _0x5a9667 of _0x4a007e)for(let _0x1e9842=0x0;_0x1e9842<_0x5a9667['length'];_0x1e9842++){const _0x588921=_0x5a9667[_0x1e9842+0x1]||null;_0x5a9667[_0x1e9842]['next']!==_0x588921&&(_0x5a9667[_0x1e9842]['next']=_0x588921);}for(const _0x5671c0 of _0x4a007e)for(let _0x12efed=0x0;_0x12efed<_0x5671c0['length'];_0x12efed++){const _0x220d6c=_0x5671c0[_0x12efed-0x1]||null;_0x5671c0[_0x12efed]['previous']!==_0x220d6c&&(_0x5671c0[_0x12efed]['previous']=_0x220d6c);}function _0x33c592(_0x2ab541,_0x1f761a){if(_0x2ab541[0x0]['attributes']['groupId']!==_0x1f761a[0x0]['attributes']['groupId']&&_0x2ab541[0x0]['author']!==_0x1f761a[0x0]['author'])return!0x1;if(!function(_0x3145ef,_0x46df87){if(!_0x3145ef['hasComments']&&!_0x46df87['hasComments'])return!0x0;if(_0x3145ef['hasComments']&&_0x46df87['hasComments'])return!0x1;if(_0x3145ef['hasComments']&&_0x46df87['createdAt']<_0x3145ef['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x46df87['hasComments']&&_0x3145ef['createdAt']<_0x46df87['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2ab541[0x0],_0x1f761a[0x0]))return!0x1;const _0x4bfa28=Ut(_0x2ab541[0x0]['attributes'],['groupId','trackingSessionId']),_0x54184b=Ut(_0x1f761a[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4e9274(_0x4bfa28,_0x54184b))return!0x1;if(_0x2ab541[0x0]['attributes']['groupId']==_0x1f761a[0x0]['attributes']['groupId'])return!0x0;if(_0x2ab541[0x0]['attributes']['trackingSessionId']!==_0x1f761a[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2ab541['every'](_0x44c13f=>_0x1f761a['some'](_0x2638fb=>_0x44c13f['getFirstRange']()['isEqual'](_0x2638fb['getFirstRange']())))&&_0x1f761a['every'](_0x518ef8=>_0x2ab541['some'](_0x5d6f24=>_0x518ef8['getFirstRange']()['isEqual'](_0x5d6f24['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x218a1c){const _0x455d61=Array['from'](_0x218a1c),_0x4831db=this['getSuggestions']({'skipNotAttached':!0x0}),_0x39ce5b=_0x4831db['filter'](_0x434434=>!_0x218a1c['has'](_0x434434)),_0x19eb3f=new Map(_0x455d61['map'](_0x2baf67=>[_0x2baf67,this['_suggestionFactory']['getSuggestionCallback'](_0x2baf67['type'],_0x2baf67['subType'],'join')])),_0x1df0ff=new Map(_0x4831db['map'](_0x10ebc9=>[_0x10ebc9,_0x10ebc9['getRanges']()]));for(let _0x407209=0x0;_0x407209<_0x455d61['length'];_0x407209++){if(_0x1514b8(this,_0x455d61[_0x407209],_0x455d61,_0x407209+0x1))return!0x0;}for(let _0x3ef86e=0x0;_0x3ef86e<_0x455d61['length'];_0x3ef86e++){if(_0x1514b8(this,_0x455d61[_0x3ef86e],_0x39ce5b,0x0))return!0x0;}return!0x1;function _0x1514b8(_0x408b0a,_0x1582cb,_0x5b793b,_0x44a2db){for(let _0x267294=_0x44a2db;_0x267294<_0x5b793b['length'];_0x267294++){const _0x538f8f=_0x5b793b[_0x267294];if(_0x538f8f['type']!==_0x1582cb['type']||_0x538f8f['author']['id']!==_0x1582cb['author']['id']||_0x538f8f['subType']!==_0x1582cb['subType'])continue;if(!Wt(_0x1582cb,_0x538f8f))continue;if('attribute'==_0x1582cb['type']&&_0x1582cb['data']['oldValue']!=_0x538f8f['data']['oldValue'])continue;if('attribute'==_0x1582cb['type']&&_0x408b0a['_isBlockAttribute'](_0x1582cb['data']['key']))continue;if('formatBlock'==_0x1582cb['type']){const _0x32cba7=_0x408b0a['editor']['model'],_0x359f89=_0x1582cb['getContainedElement']();if(_0x359f89&&(_0x32cba7['schema']['isObject'](_0x359f89)||_0x32cba7['schema']['isLimit'](_0x359f89)))continue;}const _0x2611d9=_0x19eb3f['get'](_0x1582cb),_0x25d17b=_0x1df0ff['get'](_0x1582cb),_0x5cbfae=_0x1df0ff['get'](_0x538f8f),_0x481cc2=_0x1582cb['commentThread']&&_0x1582cb['commentThread']['length'],_0x106ba6=_0x538f8f['commentThread']&&_0x538f8f['commentThread']['length'];if(!_0x481cc2&&_0x2611d9(_0x5cbfae,_0x25d17b))return _0x408b0a['_joinSuggestions'](_0x538f8f,_0x1582cb),_0x1df0ff['delete'](_0x1582cb),!0x0;if(!_0x106ba6&&_0x2611d9(_0x25d17b,_0x5cbfae))return _0x408b0a['_joinSuggestions'](_0x1582cb,_0x538f8f),_0x1df0ff['delete'](_0x538f8f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x467164,_0x5eb0c6){if(_0x467164['isMultiRange']){for(const _0x8d4263 of _0x5eb0c6['getRanges']())_0x467164['addRange'](_0x8d4263);}else{const _0x3a688f=_0x5eb0c6['getFirstRange']()['end'];this['_setSuggestionRange'](_0x467164,this['_model']['createRange'](_0x467164['getFirstRange']()['start'],_0x3a688f));}_0x5eb0c6['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5313da,_0xdc6550,_0x18e607){const _0x5dbf54=_0x5313da['startsWith']('format')||_0x5313da['startsWith']('attribute')?'FORMATTING':_0x5313da['toUpperCase']();return o(this['editor']['locale'],_0xdc6550+'_'+_0x5dbf54+'_SUGGESTION_ANNOUNCEMENT',_0x18e607);}['_initAriaMarkerChangeAnnouncements'](){const _0x517039=this['editor'];if(!_0x517039['ui'])return;const {ariaLiveAnnouncer:_0x3f7f95}=_0x517039['ui'];_0x927f42(this['_model'],({left:_0x45feee,entered:_0x16b168})=>{for(const _0x4eb63f of _0x45feee){const {group:_0x17b03c,type:_0x176403}=this['_splitMarkerName'](_0x4eb63f['name']);if('suggestion'===_0x17b03c){_0x3f7f95['announce'](this['_getMarkerAnnouncementText'](_0x176403,'LEAVE'));break;}}for(const _0x1464c1 of _0x16b168){const {group:_0x1813d0,type:_0x7eac90}=this['_splitMarkerName'](_0x1464c1['name']);if('suggestion'===_0x1813d0){_0x3f7f95['announce'](this['_getMarkerAnnouncementText'](_0x7eac90,'ENTER',_0x206b69(_0x48270c)));break;}}});}['_processAttributeChanges'](_0x2d4476){if(this['_recordAttributeSuggestions'])return!0x1;const _0x37f3d4=this['editor'],_0x249e3c=_0x37f3d4['model']['document']['differ']['getChanges']();if(0x0==_0x249e3c['length'])return!0x1;const _0x49943c=[],_0x3ec376=_0x249e3c['filter'](_0x4c1d9c=>'attribute'==_0x4c1d9c['type']),_0xb018c5=_0x249e3c['filter'](_0x5a6df7=>'insert'==_0x5a6df7['type']&&'$text'!=_0x5a6df7['name']),_0x39e613=_0x249e3c['filter'](_0x5475eb=>'remove'==_0x5475eb['type']&&'$text'!=_0x5475eb['name']);for(const _0x28bda8 of _0x3ec376)_0x49943c['push']({'key':_0x28bda8['attributeKey'],'newValue':_0x28bda8['attributeNewValue'],'oldValue':_0x28bda8['attributeOldValue'],'range':Ht(_0x28bda8['range'],_0x37f3d4['model'])});for(const _0x559d38 of _0xb018c5){const _0x43a4fa=_0x39e613['find'](_0x19738a=>_0x19738a['position']['isEqual'](_0x559d38['position']));_0x43a4fa&&_0x49943c['push']({'key':m,'newValue':_0x559d38['name'],'oldValue':_0x43a4fa['name'],'range':_0x37f3d4['model']['createRangeOn'](_0x559d38['position']['nodeAfter'])});}return 0x0!=_0x49943c['length']&&this['_reduceExistingSuggestions'](_0x2d4476,_0x49943c);}['_processAttributeSuggestions'](_0x4ce308){let _0x163602=!0x1;const _0x5ab601=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4788c6=>_0x4788c6['data']['newRange']&&_0x4788c6['name']['startsWith']('suggestion:attribute:'));for(const _0x3b0999 of _0x5ab601){const {subType:_0x437ed2,id:_0x4f6c4a}=this['_splitMarkerName'](_0x3b0999['name']),_0x5a3dd7=_0x437ed2['split']('|')[0x0];for(const _0x553545 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x553545['id']!=_0x4f6c4a&&'attribute'==_0x553545['type']&&_0x553545['data']&&_0x553545['data']['key']==_0x5a3dd7&&_0x553545['getFirstRange']()['isIntersecting'](_0x3b0999['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x553545,_0x3b0999['data']['newRange'],_0x4ce308),_0x163602=!0x0);}return _0x163602;}['recordAttributeChanges'](_0x189609){this['_recordAttributeSuggestions']=!0x0,_0x189609();}['_isRegisteredAttribute'](_0x4ba031){const _0x843140=this['_isBlockAttribute'](_0x4ba031),_0xf4a294=this['_inlineAttributeKeys']['has'](_0x4ba031);return _0x843140||_0xf4a294;}['_reduceExistingSuggestions'](_0x3f4e56,_0x5af7fd){if(0x0==_0x5af7fd['length'])return!0x1;let _0x294c5a=!0x1;for(const _0x21f60c of _0x5af7fd){const _0x58d679=this['_findSuggestions'](_0x21f60c['range'],'attribute')['filter'](_0x113e92=>!_0x113e92['meta']['isNextTo'])['map'](_0x150eef=>_0x150eef['suggestion']),_0x8f6e61=_0x2d1cfb({'newValue':_0x21f60c['newValue']});_0x58d679['filter'](_0x3f8007=>{const [_0x5e5810,_0x268d80]=_0x3f8007['subType']['split']('|');return _0x5e5810==_0x21f60c['key']&&_0x268d80!=_0x8f6e61;})['forEach'](_0x4ed4be=>{this['_reduceSuggestionAttributeRange'](_0x4ed4be,_0x21f60c['range'],_0x3f4e56),_0x294c5a=!0x0;});}return _0x294c5a;}['_reduceSuggestionAttributeRange'](_0x442140,_0x295768,_0x193afb){const _0x3e719a=_0x442140['getFirstRange']()['getDifference'](_0x295768);0x0!==_0x3e719a['length']?0x1!==_0x3e719a['length']?this['_breakSuggestionMarker'](_0x442140,_0x295768['start'],_0x295768['end']):this['_setSuggestionRange'](_0x442140,_0x3e719a[0x0]):_0x193afb['removeMarker'](_0x442140['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4f020d){this['_editor']=_0x4f020d,this['_model']=_0x4f020d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x24eac9,_0xbd7e7f,_0x470446,_0x3bc537,_0x56d72c,_0x36088c,_0x58df00){return new T(this['_model'],{'type':_0x24eac9,'subType':_0xbd7e7f,'id':_0x470446,'originalSuggestionId':_0x58df00,'author':_0x3bc537,'creator':_0x3bc537,'attributes':_0x56d72c,'onAttributesChange':_0x36088c,'onAccept':(..._0x359c41)=>this['getSuggestionCallback'](_0x24eac9,_0xbd7e7f,'accept')(..._0x359c41),'onDiscard':(..._0x3e3619)=>this['getSuggestionCallback'](_0x24eac9,_0xbd7e7f,'discard')(..._0x3e3619)});}['registerCustomCallback'](_0x5d6124,_0x261dff,_0xea2528,_0x750a68){const _0x48e255=_0x5d6124+':'+_0x261dff+':'+_0xea2528;this['_customCallbacks']['set'](_0x48e255,_0x750a68);}['getSuggestionCallback'](_0x24b165,_0x25b07c,_0x2f2ce9){const _0x29bc9c=_0x24b165+':'+_0x25b07c+':'+_0x2f2ce9;return this['_customCallbacks']['get'](_0x29bc9c)||this['_defaultCallbacks']['get'](_0x24b165+':'+_0x2f2ce9);}['_registerDefaultCallbacks'](){const _0x143254=()=>!0x1,_0x280a00=_0x1c5297=>{_0x1c5297['sort']((_0x3b269d,_0x4c82a0)=>_0x3b269d['start']['isBefore'](_0x4c82a0['start'])?0x1:-0x1),this['_model']['change'](_0x25f38e=>{for(const _0x4c5d60 of _0x1c5297){let _0x182051;_0x182051=_0x4c5d60['end']['isAtEnd']&&_0x4c5d60['end']['parent']==_0x4c5d60['start']['nodeAfter']?_0x25f38e['createSelection'](_0x4c5d60['start']['nodeAfter'],'on'):_0x25f38e['createSelection'](_0x4c5d60),this['_model']['deleteContent'](_0x182051,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x555274=(_0x41be51,_0x18704e)=>{_0x18704e&&this['_model']['change'](_0x4d7f70=>{const {commandName:_0x15c2c3,commandParams:_0x1af859=[]}=_0x18704e,_0x114e44=_0x41be51['map'](_0x334e48=>(Pt(_0x334e48)&&(_0x334e48=this['_model']['createRange'](_0x334e48['end'])),_0x334e48))['filter'](_0x1107dc=>'$graveyard'!==_0x1107dc['root']['rootName']);if(_0x114e44['length']<0x1)return;const _0x4a632d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x350737=>_0x45518e['fromRange'](_0x350737));_0x4d7f70['setSelection'](_0x114e44);for(const _0x57f303 of this['_editor']['commands']['commands']())_0x57f303['refresh']();_0x1af859['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x15c2c3,..._0x1af859);const _0x43df13=_0x4a632d['filter'](_0x1d47c9=>'$graveyard'!=_0x1d47c9['root']['rootName']);_0x43df13['length']>0x0&&_0x4d7f70['setSelection'](_0x43df13);for(const _0xabd2f8 of _0x4a632d)_0xabd2f8['detach']();});},_0x288ba6=(_0x488ee8,_0x26a870)=>0x1==_0x488ee8['length']&&0x1==_0x26a870['length']&&_0x488ee8[0x0]['end']['isEqual'](_0x26a870[0x0]['start']),_0x5cd30f=(_0x5a2b3f,_0x5b8bab,_0x122d44,_0xc5a6f0)=>zt(_0x5a2b3f,_0x5b8bab,_0x122d44,_0xc5a6f0)?[_0x5a2b3f,_0x5b8bab]:zt(_0x5b8bab,_0x5a2b3f,_0xc5a6f0,_0x122d44)?[_0x5b8bab,_0x5a2b3f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x143254),this['_defaultCallbacks']['set']('insertion:discard',_0x280a00),this['_defaultCallbacks']['set']('insertion:join',_0x288ba6),this['_defaultCallbacks']['set']('insertion:chain',_0x5cd30f),this['_defaultCallbacks']['set']('deletion:accept',_0x280a00),this['_defaultCallbacks']['set']('deletion:discard',_0x143254),this['_defaultCallbacks']['set']('deletion:join',_0x288ba6),this['_defaultCallbacks']['set']('deletion:chain',_0x5cd30f),this['_defaultCallbacks']['set']('formatInline:accept',_0x555274),this['_defaultCallbacks']['set']('formatInline:discard',_0x143254),this['_defaultCallbacks']['set']('formatInline:join',_0x288ba6),this['_defaultCallbacks']['set']('formatInline:chain',_0x143254),this['_defaultCallbacks']['set']('formatBlock:accept',_0x555274),this['_defaultCallbacks']['set']('formatBlock:discard',_0x143254),this['_defaultCallbacks']['set']('formatBlock:join',_0x288ba6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x143254),this['_defaultCallbacks']['set']('attribute:accept',_0x143254),this['_defaultCallbacks']['set']('attribute:discard',(_0x5f28a2,_0x2ff75d)=>{if(!_0x2ff75d)return;const _0x5b0eb1=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x303851=>{if(_0x2ff75d['key']==m)for(const _0x40005f of _0x5f28a2){const _0x416fbb=_0x40005f['start']['nodeAfter'],_0xb7435d=_0x2ff75d['oldValue'];_0x303851['rename'](_0x416fbb,_0xb7435d);}else{if(_0x5b0eb1['_isBlockAttribute'](_0x2ff75d['key'])){for(const _0x4870f5 of _0x5f28a2)void 0x0!==_0x2ff75d['oldValue']?_0x303851['setAttribute'](_0x2ff75d['key'],_0x2ff75d['oldValue'],_0x4870f5['start']['nodeAfter']):_0x303851['removeAttribute'](_0x2ff75d['key'],_0x4870f5['start']['nodeAfter']);}else{for(const _0x4cd0d7 of _0x5f28a2)_0x2ff75d['oldValue']?_0x303851['setAttribute'](_0x2ff75d['key'],_0x2ff75d['oldValue'],_0x4cd0d7):_0x303851['removeAttribute'](_0x2ff75d['key'],_0x4cd0d7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x288ba6);}}function Ft(_0x3cc89d,_0x580a93,_0x4a45cc){for(const _0x2638b9 of _0x580a93['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2638b9['root']==_0x2638b9)return!0x1;if(!_0x4a45cc['containsItem'](_0x2638b9))return!0x1;if(_0x3cc89d['isObject'](_0x2638b9)||_0x3cc89d['isLimit'](_0x2638b9))return!0x0;}return!0x1;}function Pt(_0xf70b34){return _0xf70b34['end']['parent']==_0xf70b34['start']['nodeAfter']&&_0xf70b34['end']['isAtStart'];}function Gt(_0x574570,_0x46c279,_0x24b887,_0x6886e6){const _0x29479e=_0x47ac1c=>!_0x47ac1c['item']['is']('$textProxy')&&!_0x6886e6['isObject'](_0x47ac1c['item']),_0x8d03e5=_0x574570['start']['getLastMatchingPosition'](_0x29479e),_0x2fbf95=_0x574570['end']['getLastMatchingPosition'](_0x29479e,{'direction':'backward'});return(!_0x574570['start']['isEqual'](_0x8d03e5)||!_0x574570['end']['isEqual'](_0x2fbf95))&&(_0x8d03e5['isBefore'](_0x2fbf95)?_0x24b887['updateMarker'](_0x46c279,{'range':_0x24b887['createRange'](_0x8d03e5,_0x2fbf95)}):_0x24b887['removeMarker'](_0x46c279),!0x0);}function Lt(_0x310f2a){return _0x2d1cfb(_0x310f2a);}function Jt(_0x5a652c){const _0x456181=_0x5a652c['start']['nodeAfter'];return _0x456181&&_0x456181['is']('element');}function Kt(_0x949b03){return!Pt(_0x949b03)&&!function(_0x4e79cf){return _0x4e79cf['start']['parent']==_0x4e79cf['end']['nodeBefore']&&_0x4e79cf['start']['isAtEnd'];}(_0x949b03);}function Ht(_0x5130ec,_0x55df4b){return null==_0x5130ec['end']['nodeBefore']&&_0x5130ec['end']['parent']==_0x5130ec['start']['nodeAfter']?qt(_0x5130ec['start']['nodeAfter'],_0x55df4b):_0x5130ec;}function qt(_0x2fd4ce,_0x2a55d6){const _0x4de403=_0x2a55d6['schema']['isObject'](_0x2fd4ce)||_0x2a55d6['schema']['isSelectable'](_0x2fd4ce);return _0x2a55d6['createRange'](_0x2a55d6['createPositionAt'](_0x2fd4ce,'before'),_0x4de403?_0x2a55d6['createPositionAfter'](_0x2fd4ce):_0x2a55d6['createPositionAt'](_0x2fd4ce,'end'));}function zt(_0x38e8a4,_0x23df76,_0x294341,_0x4b88fd){return!!Wt(_0x38e8a4,_0x23df76)&&_0x294341['end']['isEqual'](_0x4b88fd['start']);}function Wt(_0x32ef2c,_0x476428){if(!_0x32ef2c['_isDataLoaded']||!_0x476428['_isDataLoaded'])return!0x1;const _0x166683=new Set(Object['keys'](_0x32ef2c['attributes'])),_0x29392c=new Set(Object['keys'](_0x476428['attributes']));if(_0x166683['delete']('groupId'),_0x29392c['delete']('groupId'),0x0==_0x166683['size']&&0x0==_0x29392c['size'])return!0x0;if(_0x166683['size']!=_0x29392c['size'])return!0x1;const _0x2d04aa={..._0x32ef2c['attributes']},_0x122403={..._0x476428['attributes']};return delete _0x2d04aa['groupId'],delete _0x122403['groupId'],JSON['stringify'](_0x2d04aa)==JSON['stringify'](_0x122403);}function Qt(_0x19956d,_0x4c0f4d){const _0x2dff91=Xt(_0x19956d['attributes']),_0x3a9ac7=Xt(_0x4c0f4d);if(!_0x19956d['_isDataLoaded'])return!0x1;for(const _0x127638 of Object['keys'](_0x3a9ac7))if(!_0x4e9274(_0x2dff91[_0x127638],_0x3a9ac7[_0x127638]))return!0x1;return!0x0;}function Xt(_0x1e1265){const _0x5b33af=Object['assign']({},_0x1e1265);return delete _0x5b33af['skipNestingCheck'],delete _0x5b33af['tablePasteChainId'],_0x5b33af;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x2f7706(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x567e34,_0x4ccf54,_0x434fdb,_0x5ec21e){super(),this['model']=_0x4ccf54,this['view']=_0x434fdb,this['commentThreadController']=_0x5ec21e,this['_editor']=_0x567e34,this['_acceptCommand']=_0x567e34['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x567e34['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x220e8e,_0x485a0f)=>_0x220e8e||_0x485a0f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x38883e=>_0x38883e&&this['_editor']['model']['canEditAt'](_0x4ccf54['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xc09942=>_0xc09942&&this['_editor']['model']['canEditAt'](_0x4ccf54['getRanges']())),this['_pendingAction']=null,_0x434fdb['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x434fdb,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x434fdb,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x434fdb,'change:isDirty',()=>{_0x434fdb['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 _0x38ead4=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x38ead4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x33a1b7{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x50d4f8,_0x52dac4,_0x4e10d3,_0x3517ce){super(_0x50d4f8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x29e999(_0x50d4f8,o(_0x50d4f8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x52dac4['authoredAt']),this['bind']('authoredAt')['to'](_0x52dac4),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',_0x52dac4,'authoredAt',this,'descriptionParts',(_0x15f71c,_0x2c45b6,_0x22c960)=>{const _0x23d34d=_0x22c960['map'](_0x147970=>ls(_0x147970['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x15f71c-0x1,_0x52dac4['author']['name'],_0x2c45b6?_0x3517ce['formatDateTime'](_0x2c45b6):'',new DOMParser()['parseFromString'](_0x23d34d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2a00df(),this['focusTracker']=new _0x513954(),this['keystrokes']=new _0x3f6c83(),this['focusCycler']=new _0x3288bf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5b2034=>_0x5b2034['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x52dac4,this['_localUser']=_0x4e10d3,this['_config']=_0x3517ce,_0x3517ce['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4a448c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x17361b}=this['_config'];this['commentsListView']=new _0x17361b(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',_0x2efcc0=>_0x2efcc0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4973dc,_0x587b0a)=>_0x4973dc||!!_0x587b0a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2319e2}=this['_config'],_0x516d34=new _0x2319e2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5003f8=_0x516d34['commentInputView'];return _0x516d34['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5003f8,'value',(_0x1bcded,_0x4879bc,_0x16d0d3)=>!!_0x16d0d3||_0x1bcded&&!_0x4879bc),_0x5003f8['on']('submit',(_0x17a75e,_0x1fc47a)=>{this['fire']('addComment',_0x1fc47a),_0x5003f8['editor']['setData']('');}),_0x5003f8['on']('cancel',()=>this['focus']()),_0x5003f8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x516d34;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x39704f,_0xd00722,_0x889fca,_0x3fc0c0){super(_0x39704f,_0xd00722,_0x889fca,_0x3fc0c0),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x21d68b=>_0x21d68b&&_0x21d68b[0x0]?_0x21d68b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x394672,_0x397cd7)=>{let _0x9f0e5f='';for(const _0x43dc2c of _0x394672)_0x9f0e5f+='<p>'+ls(_0x43dc2c['content'],_0x43dc2c['color'])+'</p>';return _0x397cd7?_0x9f0e5f:_0x4c24c5(_0x9f0e5f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3fc0c0['SuggestionView'](_0x39704f,_0xd00722,{'formatDateTime':_0x3fc0c0['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 _0x1da4c8=this['bindTemplate'],_0x7394f4=[this['suggestionView']];return this['commentsListView']&&_0x7394f4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x7394f4['push'](this['commentThreadInputView']),_0x7394f4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1da4c8['if']('isActive','ck-suggestion-wrapper--active'),_0x1da4c8['to']('type',_0x339e0c=>'ck-suggestion-'+_0x339e0c),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':_0x1da4c8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x7394f4};}['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 _0x33a1b7{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4d6ee8,_0x4ff054,_0x227250){super(_0x4d6ee8),this['_model']=_0x4ff054,this['_config']=_0x227250,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4ff054),this['acceptButton']=this['_createButton'](o(_0x4d6ee8,'Accept\x20suggestion'),_0x163398,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4d6ee8,'Discard\x20suggestion'),_0x4dad76,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x10a06d(_0x4d6ee8,_0x4ff054['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2a00df([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x513954(),this['keystrokes']=new _0x3f6c83(),this['focusCycler']=new _0x3288bf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3f767f=>_0x3f767f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x7f57c4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x7f57c4['innerHTML']=this['description'],this['on']('change:description',(_0x4ae089,_0x193638,_0x20ae51)=>{_0x7f57c4['innerHTML']=_0x20ae51;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x231c1c=this['bindTemplate'],_0x192f6f=[{'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':_0x231c1c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x231c1c['to']('authoredAt',_0x38c27b=>this['_config']['formatDateTime'](_0x38c27b))}]}]},{'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']&&_0x192f6f['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':_0x192f6f}]};}['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'](_0x3173b5,_0x4859e0,_0x38a6aa,_0x423bc5,_0x30499e){const _0x32ce12=new _0x57cb20(this['locale']);return _0x32ce12['set']({'label':_0x3173b5,'icon':_0x4859e0,'tooltip':!0x0,'tooltipPosition':_0x30499e}),_0x32ce12['extendTemplate']({'attributes':{'class':_0x38a6aa}}),_0x32ce12['on']('execute',()=>{this['fire'](_0x423bc5,this['_model']['id']);}),_0x32ce12;}['_setupKeyboardNavigation'](){const _0x5a972c=this['element'];this['keystrokes']['listenTo'](_0x5a972c);for(const _0x4b717b of this['focusables'])this['focusTracker']['add'](_0x4b717b['element']),this['keystrokes']['listenTo'](_0x4b717b['element']);this['keystrokes']['set']('enter',(_0x319212,_0x12311a)=>{_0x5a972c===_0x319212['target']&&(this['focusCycler']['focusFirst'](),_0x12311a());}),this['keystrokes']['set']('esc',(_0x390806,_0x4ca7bb)=>{_0x5a972c!==_0x390806['target']&&(this['focus'](),_0x4ca7bb());});}}class u extends _0x519785{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3141dd,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x62f051){super(_0x62f051),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5af4fd=this['editor']['config'];_0x5af4fd['define']('trackChanges.SuggestionThreadView',fe),_0x5af4fd['define']('trackChanges.SuggestionView',we),_0x5af4fd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5af4fd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1af111,_0x2308b3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x284333,_0x5ee566]of this['_handleControllerBuffer']){const _0xd849b3=this['_suggestionToController']['has'](_0x284333);_0xd849b3||_0x5ee566?_0xd849b3&&_0x5ee566&&this['_destroyController'](_0x284333):this['_initializeController'](_0x284333);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1af111,_0x2308b3);}['init'](){const _0x3c2428=this['editor'],_0x4a3c81=_0x3c2428['plugins']['get']('TrackChangesEditing'),_0x2c138f=_0x3c2428['plugins']['get']('Annotations'),_0x1d60a3=_0x3c2428['plugins']['get']('EditorAnnotations'),_0x428d7c=_0x3c2428['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1d60a3['addSourceCollector'](()=>{const _0x564d9e=[];for(const [_0x3f98de,_0x994e80]of Array['from'](this['_suggestionToController'])){const _0x3e3f7e=_0x3f98de['getAllAdjacentSuggestions'](),_0x23c84d=[];for(const _0x310a73 of _0x3e3f7e){if(!_0x310a73['isInContent'])continue;if(_0x310a73['isMultiRange']){_0x23c84d['push'](..._0x310a73['getRanges']());continue;}const _0x2f2ad6=_0x310a73['getFirstRange']();if(_0x23c84d['length']>0x0){const _0xf2b134=_0x23c84d[0x0]['getJoined'](_0x2f2ad6);if(_0xf2b134){_0x23c84d[0x0]=_0xf2b134;continue;}}_0x23c84d['push'](_0x2f2ad6);}_0x564d9e['push']([_0x994e80['view'],_0x23c84d]);}return _0x564d9e;}),this['listenTo'](_0x4a3c81,'suggestionLoaded',(_0x456852,_0x130dc9)=>{this['listenTo'](_0x130dc9,'change:previous',(_0x4e2c98,_0x150444,_0x498478,_0x3e3925)=>{_0x130dc9['isInContent']&&(null==_0x498478?(this['_updateController'](_0x3e3925['head']),this['_handleSuggestionControllerDelayed'](_0x130dc9,!0x1)):(this['_updateController'](_0x498478['head']),null==_0x3e3925&&this['_handleSuggestionControllerDelayed'](_0x130dc9,!0x0)));}),null!==_0x130dc9['previous']?this['_updateController'](_0x130dc9['head']):this['_handleSuggestionControllerDelayed'](_0x130dc9,!0x1);}),this['listenTo'](_0x4a3c81,'suggestionUnloaded',(_0x1dadb7,_0x1ca6f7,_0x31ad46)=>{this['stopListening'](_0x1ca6f7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1ca6f7),this['_suggestionToController']['has'](_0x1ca6f7)&&this['_destroyController'](_0x1ca6f7),_0x31ad46&&this['_updateController'](_0x31ad46['head']);}),this['listenTo'](_0x4a3c81,'suggestionChanged',(_0x532175,_0x205f65)=>{this['_updateController'](_0x205f65);}),this['listenTo'](_0x2c138f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x428d7c,'addComment',(_0x32f4b5,{threadId:_0x3bec70,isFromAdapter:_0x104833})=>{if(_0x104833||!_0x4a3c81['hasSuggestion'](_0x3bec70))return;const _0x5a889d=_0x4a3c81['getSuggestion'](_0x3bec70);this['_suggestionToController']['get'](_0x5a889d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xfc273f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x45b2e4;for(const _0x8b0e86 in _0xfc273f){const _0x57211e=_0x8b0e86,_0x383dfa=_0xfc273f[_0x57211e];if('trackChangesLicenseKeyValid'==_0x383dfa||'trackChangesLicenseKeyInvalid'==_0x383dfa||'trackChangesLicenseKeyExpired'==_0x383dfa||'trackChangesLicenseKeyDomainLimit'==_0x383dfa||'trackChangesLicenseKeyNotAllowed'==_0x383dfa||'trackChangesLicenseKeyEvaluationLimit'==_0x383dfa||'trackChangesLicenseKeyTrialLimit'==_0x383dfa||'trackChangesLicenseKeyUsageLimit'==_0x383dfa){delete _0xfc273f[_0x57211e],_0x45b2e4=_0x383dfa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x45b2e4&&_0xfc273f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x45b2e4&&_0xfc273f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x45b2e4&&_0xfc273f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x45b2e4&&_0xfc273f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x45b2e4&&_0xfc273f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x45b2e4&&_0xfc273f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x45b2e4&&_0xfc273f['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x27d747){const _0x251230=this['_suggestionToController']['get'](_0x27d747);if(!_0x251230)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x251230['view'])||null;}['getSuggestionForAnnotation'](_0x184d9d){const _0x59c63a=this['_viewToController']['get'](_0x184d9d['innerView']);return _0x59c63a?_0x59c63a['model']:null;}['_refreshActiveMarkers'](){const _0x2410f1=this['editor']['plugins']['get']('Annotations'),_0xea9b57=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ac31f=Array['from'](_0x2410f1['activeAnnotations'],_0x40332d=>_0x40332d['innerView'])['filter'](_0x15bdd4=>this['_viewToController']['has'](_0x15bdd4)),_0x2285b8=[];for(const _0x1c99b8 of _0x4ac31f){const _0x3e26b5=this['_viewToController']['get'](_0x1c99b8)['model']['getAllAdjacentSuggestions']();_0x2285b8['push'](..._0x3e26b5['reduce']((_0x5e5aa4,_0xe76c12)=>[..._0x5e5aa4,..._0xe76c12['getMarkerNames']()],[]));}_0xea9b57['activeMarkers']=_0x2285b8;}['_addUIComponentsToFactory'](){const _0x311edc=this['editor'],_0x52b7f5=_0x311edc['locale'],_0x8408ef=o(_0x52b7f5,'Track\x20changes'),_0x7f56bc=new _0x221f2c([{'type':'switchbutton','model':new _0x5bd144({'withText':!0x0,'isToggleable':!0x0,'label':_0x8408ef,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5bd144({'withText':!0x0,'label':o(_0x52b7f5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5bd144({'withText':!0x0,'label':o(_0x52b7f5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5bd144({'withText':!0x0,'label':o(_0x52b7f5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5bd144({'withText':!0x0,'label':o(_0x52b7f5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x311edc['plugins']['has']('TrackChangesPreview')&&_0x7f56bc['addMany']([{'type':'separator'},{'type':'button','model':new _0x5bd144({'withText':!0x0,'label':o(_0x52b7f5,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4e3420 of _0x7f56bc)if(ke(_0x4e3420)){const _0x551f78=_0x311edc['commands']['get'](_0x4e3420['model']['commandName']);_0x4e3420['model']['bind']('isOn','isEnabled')['to'](_0x551f78,'value','isEnabled');}_0x311edc['ui']['componentFactory']['add']('trackChanges',_0x47269a=>this['_createToolbarButton'](_0x47269a,_0x7f56bc,_0x8408ef)),_0x311edc['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3e8183=>this['_createMenuBarMenu'](_0x3e8183,_0x7f56bc,_0x8408ef));}['_createToolbarButton'](_0x3705c9,_0x42bf74,_0x2919ef){const _0x3545ec=_0x2851f4(_0x3705c9,_0x463226),_0x3967d9=this['editor']['commands']['get']('trackChanges');_0x3545ec['buttonView']['set']({'tooltip':_0x2919ef,'label':_0x2919ef,'icon':_0x1c1625}),_0x3545ec['buttonView']['bind']('isOn')['to'](_0x3967d9,'value'),_0x3545ec['buttonView']['on']('execute',()=>{_0x3967d9['execute'](),this['editor']['editing']['view']['focus']();}),_0x50583c(_0x3545ec,_0x42bf74,{'role':'menu'});const _0x42f964=[];for(const _0x478f52 of _0x42bf74)ke(_0x478f52)&&_0x42f964['push'](this['editor']['commands']['get'](_0x478f52['model']['commandName']));const _0x1c64ac=_0x3545ec['buttonView'];return _0x1c64ac['actionView']['unbind']('isEnabled'),_0x1c64ac['arrowView']['unbind']('isEnabled'),_0x1c64ac['actionView']['bind']('isEnabled')['to'](_0x3967d9,'isEnabled'),_0x1c64ac['arrowView']['bind']('isEnabled')['toMany'](_0x42f964,'isEnabled',(..._0x4d5686)=>_0x4d5686['some'](_0x5d42c3=>_0x5d42c3)),_0x3545ec['on']('execute',_0x37df19=>{this['editor']['execute'](_0x37df19['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3545ec;}['_createMenuBarMenu'](_0x2f0a31,_0x586791,_0xa88c9d){const _0x591876=new _0x39293e(_0x2f0a31),_0x2d6f49=this['editor']['commands']['get']('trackChanges');_0x591876['buttonView']['set']({'label':_0xa88c9d,'icon':_0x1c1625});const _0x44425d=new _0x42ef81(_0x2f0a31);for(const _0x3a5cc5 of _0x586791){if('separator'==_0x3a5cc5['type']){_0x44425d['items']['add'](new _0x179721(_0x2f0a31));continue;}const _0x404707=new _0x49d588(_0x2f0a31,_0x591876),_0x432168=new _0x377c54(_0x2f0a31),_0x3f217b=_0x3a5cc5['model'];_0x432168['bind'](...Object['keys'](_0x3f217b))['to'](_0x3f217b),_0x432168['delegate']('execute')['to'](_0x591876),_0x432168['on']('execute',()=>{this['editor']['execute'](_0x3f217b['commandName']),this['editor']['editing']['view']['focus']();}),_0x404707['children']['add'](_0x432168),_0x44425d['items']['add'](_0x404707);}return _0x591876['bind']('isEnabled')['to'](_0x2d6f49,'isEnabled'),_0x591876['panelView']['children']['add'](_0x44425d),_0x591876;}['_initializeController'](_0x5186fb){const _0x250156=this['editor'],_0x1d6cfd=_0x250156['config'],_0xd15abf=_0x250156['plugins']['get']('Annotations'),_0x11fb2c=_0x250156['plugins']['get']('CommentsRepository'),_0x3eff03=_0x250156['plugins']['get']('EditorAnnotations'),_0x3534a3=_0x250156['plugins']['get'](_0x3141dd)['me'],_0x482635=_0x1d6cfd['get']('trackChanges')['SuggestionThreadView'],_0x33e644=_0x1d6cfd['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x18dfac,CommentThreadInputView:_0x317510}=_0x250156['plugins']['get']('CommentsUI');let _0x5beb01,_0x5bd3c9,_0x505a6e;this['_annotationViews']['has'](_0x5186fb['id'])?(_0x5bd3c9=this['_annotationViews']['get'](_0x5186fb['id']),_0x5beb01=_0x5bd3c9['mainView']):(_0x5beb01=new _0x482635(_0x250156['locale'],_0x5186fb,_0x3534a3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1d6cfd['get']('comments.editorConfig'),'licenseKey':_0x1d6cfd['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1d6cfd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1d6cfd['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1d6cfd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xcf14d9(_0x1d6cfd['get']('locale'),_0x250156['locale']),'CommentView':_0x1d6cfd['get']('comments')['CommentView'],'CommentsListView':_0x18dfac,'CommentThreadInputView':_0x317510,'SuggestionView':_0x33e644}),_0x5beb01['suggestionView']['acceptButton']['on']('execute',()=>{_0x250156['editing']['view']['focus']();}),_0x5beb01['suggestionView']['discardButton']['on']('execute',()=>{_0x250156['editing']['view']['focus']();}),_0x5bd3c9=_0xd15abf['createAnnotationView'](this['editor']['locale'],_0x5beb01),_0x5bd3c9['bind']('isDirty')['to'](_0x5beb01,'isDirty'),_0x5bd3c9['bind']('length')['to'](_0x5beb01),_0x5bd3c9['bind']('type')['to'](_0x5beb01,'type',_0x5089ad=>'suggestion-'+_0x5089ad),_0x5beb01['on']('escape',()=>{_0x505a6e['fire']('escape');}),this['_annotationViews']['set'](_0x5186fb['id'],_0x5bd3c9));const _0x4cb2b2=_0x11fb2c['createCommentThreadController'](_0x5186fb['commentThread'],_0x5beb01),_0x42ee29=new pe(_0x250156,_0x5186fb,_0x5beb01,_0x4cb2b2),_0x6dff58=_0x5186fb['getAllAdjacentSuggestions']()['filter'](_0x49644f=>_0x49644f['isInContent']);_0x5beb01['descriptionParts']=_0x250156['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x6dff58),this['_suggestionToController']['set'](_0x5186fb,_0x42ee29),this['_viewToController']['set'](_0x5beb01,_0x42ee29),_0x505a6e=_0xd15abf['createAnnotation']({'view':_0x5bd3c9,'target':()=>{const _0x4eb911=[],_0x91b47d=_0x5186fb['getAllAdjacentSuggestions']()['filter'](_0x115844=>_0x115844['isInContent']);for(const _0x5df4c3 of _0x91b47d)_0x4eb911['push'](..._0x5df4c3['getMarkers']());return _0x54ca32(_0x250156['editing'],_0x4eb911);},'type':()=>'suggestion-'+_0x42ee29['view']['type']}),_0x11fb2c['_bindAnnotationToEditors'](_0x5beb01,_0x505a6e),_0xd15abf['add'](_0x505a6e),_0x3eff03['registerAnnotation'](_0x505a6e);}['_destroyController'](_0x8360a7){const _0x32da4f=this['editor']['plugins']['get']('CommentsRepository'),_0x293450=this['editor']['plugins']['get']('Annotations'),_0x2381c7=this['_suggestionToController']['get'](_0x8360a7),_0x34f099=_0x2381c7['view'],_0x4776e5=_0x293450['getByInnerView'](_0x34f099);_0x32da4f['_unbindEditors'](_0x34f099),_0x4776e5&&_0x293450['remove'](_0x4776e5),this['_suggestionToController']['delete'](_0x8360a7),this['_viewToController']['delete'](_0x34f099),_0x2381c7['destroy']();}['_updateController'](_0x5d0b5c){if(!_0x5d0b5c['isInContent']||!this['_suggestionToController']['has'](_0x5d0b5c))return;const _0x13a655=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbc1d4a=this['_suggestionToController']['get'](_0x5d0b5c),_0x4f0f3a=_0x5d0b5c['getAllAdjacentSuggestions']();_0xbc1d4a['view']['descriptionParts']=_0x13a655['descriptionFactory']['getDescriptions'](_0x4f0f3a);}['destroy'](){for(const _0x1d9ea1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1d9ea1);for(const _0x96c8b7 of this['_annotationViews']['values']())_0x96c8b7['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x34bc68){return'model'in _0x34bc68;}class Fe extends _0x519785{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x55b418){this['editor']['plugins']['get'](d)['adapter']=_0x55b418;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x20c61f){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x20c61f);}['getSuggestions']({skipNotAttached:_0x1eb54c=!0x1,toJSON:_0xf272e3=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1eb54c,'toJSON':_0xf272e3});}['getSuggestion'](_0x32d5a2){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x32d5a2);}}const p=['Pagination'];class re extends _0x519785{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2d749e=this['editor'];if(_0x2d749e['config']['define']('trackChangesData.editorCreator',_0x5b6ab6=>{const _0x505493=_0x2d749e['model']['document']['getRootNames']()['reduce']((_0x58132d,_0x58df75)=>(_0x58132d[_0x58df75]='',_0x58132d),{});return _0x2d749e['constructor']['create'](_0x505493,_0x5b6ab6);}),'function'!=typeof _0x2d749e['config']['get']('trackChangesData')['editorCreator'])throw new _0x5cecf6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x518f9d){return P(this['editor'],!0x0,_0x518f9d);}['getDataWithDiscardedSuggestions'](_0x3ef222){return P(this['editor'],!0x1,_0x3ef222);}}class Ge extends _0x519785{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34d8b3){function _0x39796c(_0x28a945){return _0x28a945['map'](_0x51c1dd=>String['fromCharCode'](_0x51c1dd))['join']('');}super(_0x34d8b3),this['result']='end',_0x34d8b3[_0x39796c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39796c([0x76,0x69,0x65,0x77])][_0x39796c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39796c([0x61,0x75,0x74,0x6f]),_0x34d8b3[_0x39796c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x39796c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39796c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x39796c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x39796c([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 $e(_0x275bb9){return void 0x0!==_0x275bb9['getRootsAttributes'];}async function P(_0x5727c7,_0x223932,_0x36f074){const _0x4facf1=_0x4bb27a(_0x5727c7,p);_0x4facf1['plugins']['push'](d,Ge),_0x4facf1['rootsAttributes']=$e(_0x5727c7)?_0x5727c7['getRootsAttributes']():void 0x0;const _0x2f46ea=document['createDocumentFragment'](),_0x2ffb05=_0x5727c7['config']['get']('trackChangesData')['editorCreator'],_0x49bc0e=await _0x2ffb05(_0x4facf1,()=>function(_0x2c7abd){const _0x3da064=document['createElement']('div');return _0x2c7abd['appendChild'](_0x3da064),_0x3da064;}(_0x2f46ea));!function(_0x440e58,_0x112859){const _0x207472=_0x440e58['model']['document']['getRootNames']()['reduce']((_0x4b6ec0,_0x23de67)=>(_0x4b6ec0[_0x23de67]=_0x440e58['data']['get']({'rootName':_0x23de67}),_0x4b6ec0),{}),_0x6596d2=_0x440e58['plugins']['get']('Users')['users']['map'](_0x4803da=>({'id':_0x4803da['id'],'name':_0x4803da['name']})),_0x38d36d=_0x440e58['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3bc42a=_0x440e58['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3a2405=_0x112859['plugins']['get']('Users'),_0x45f35d=_0x112859['plugins']['get']('TrackChangesEditing'),_0x423ccc=_0x112859['plugins']['get']('CommentsRepository');for(const _0x1aa96e of _0x423ccc['getCommentThreads']())_0x1aa96e['remove']();for(const _0x28881c of _0x6596d2)_0x3a2405['getUser'](_0x28881c['id'])||_0x3a2405['addUser'](_0x28881c);_0x3a2405['me']||_0x3a2405['useAnonymousUser']();for(const _0x2a15b3 of _0x3bc42a)_0x423ccc['addCommentThread'](_0x2a15b3);for(const _0x37c0b5 of _0x38d36d)_0x45f35d['addSuggestionData'](_0x37c0b5);_0x112859['data']['set'](_0x207472);}(_0x5727c7,_0x49bc0e),_0x49bc0e['execute'](_0x223932?'acceptAllSuggestions':'discardAllSuggestions');const _0x18fc85=$e(_0x49bc0e)?_0x49bc0e['getFullData'](_0x36f074):_0x49bc0e['data']['get'](_0x36f074);return await _0x49bc0e['destroy'](),_0x18fc85;}class Me extends _0x33a1b7{['options'];constructor(_0x4237d7,_0x149bc8){super(_0x4237d7),this['options']=_0x149bc8,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'](_0x3d57dd,_0x2fc8f4){if(!this['element'])return;const _0x3b451f=[];for(const [_0x24e12a,_0xd1c16c]of _0x3d57dd){const _0x34b028=document['createElement']('div');_0x34b028['setAttribute']('data-ck-root-name',_0x24e12a),_0x34b028['className']=_0xd1c16c['classes']+'\x20ck-track-changes-preview__root-container',_0x34b028['innerHTML']=_0xd1c16c['content'],_0x3b451f['push'](_0x34b028);}_0x2fc8f4(this['element'],_0x3b451f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3ce43f{constructor(_0x101f9b){super(_0x101f9b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x317815=this['editor'],_0x1d18c0=_0x317815['locale'],_0x5e3a56=_0x317815['plugins']['get']('Dialog');let _0x37c009;const _0x3292ad=function(_0x59a0d8){const _0x1ff6f2={};if('editables'in _0x59a0d8['ui']['view']){for(const [_0x1e1eae,_0x57433d]of Object['entries'](_0x59a0d8['ui']['view']['editables']))_0x1ff6f2[_0x1e1eae]=_0x57433d['element'];}else _0x1ff6f2[_0x59a0d8['model']['document']['getRootNames']()[0x0]]=_0x59a0d8['ui']['view']['editable']['element'];return _0x1ff6f2;}(_0x317815),_0x3bce13=function(_0x43ea22){let _0x297683=0x0;for(const _0x16fc01 of Object['values'](_0x43ea22))_0x297683=Math['max'](_0x297683,_0x16fc01['getBoundingClientRect']()['width']);let _0x5ccfd=0x0;for(const _0x55f31d of Object['values'](_0x43ea22))_0x5ccfd+=_0x55f31d['getBoundingClientRect']()['height'];const _0x4d308c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x370648=Math['min'](_0x5ccfd,_0x4d308c);return{'width':_0x297683,'height':_0x370648};}(_0x3292ad);_0x5e3a56['show']({'id':'finalContentPreview','title':o(_0x1d18c0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1d18c0,{'dialogRects':_0x3bce13}),'onHide':()=>{_0x37c009['detachFromDom']();},'onShow':()=>{_0x317815['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x46c887=>{const _0x35ac9=this['_standarizeRootsData'](_0x46c887,_0x317815,_0x3292ad);_0x5e3a56['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x35ac9,_0x317815['config']['get']('trackChanges.preview.renderFunction'));}),_0x37c009=new _0x31f2fe(_0x1d18c0,[_0x5e3a56['view']]),_0x37c009['attachToDom'](),_0x37c009['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x317815['once']('destroy',()=>{_0x37c009['detachFromDom']();});const _0x5d9470=_0x5e3a56['view']['headerView']['class'];_0x5e3a56['view']['headerView']['class']=_0x5d9470?_0x5d9470+'\x20ck-reset_all':'ck-reset_all',_0x5e3a56['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5e3a56['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x17a638=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x97bd74=_0x17a638['previewMode'],_0x4289f0={};if('$labels'===_0x97bd74){for(const _0x20c51c of _0x17a638['getMergeFieldsIds']())_0x4289f0[_0x20c51c]=_0x17a638['getLabel'](_0x20c51c)||_0x20c51c;}else{const _0x2bb7a6='$defaultValues'===_0x97bd74?_0x17a638['getDefaultValues']():_0x17a638['getDataSetValues'](_0x97bd74,!0x0);for(const _0x2dc874 of Object['entries'](_0x2bb7a6)){const [_0x177277,_0x3f8085]=_0x2dc874;_0x4289f0[_0x177277]=null!==_0x3f8085?_0x3f8085:_0x17a638['getLabel'](_0x177277)||_0x177277;}}return{'mergeFieldsData':_0x4289f0};}['_standarizeRootsData'](_0x512c1c,_0xccfa8e,_0x3005ac){let _0x571308;if('string'==typeof _0x512c1c){const _0xb2d77c=_0xccfa8e['model']['document']['getRootNames']()[0x0];_0x571308={[_0xb2d77c]:_0x512c1c};}else _0x571308=_0x512c1c;const _0x6bdf01=this['_fixMediaEmbeds'](_0x571308,_0xccfa8e),_0x161e57=function(_0x168457,_0x21cc1d){for(const [_0x1483d5,_0x1a7a12]of _0x168457)_0x1a7a12['classes']=_0x21cc1d[_0x1483d5]['classList']['value']['replace']('ck-focused','');return _0x168457;}(this['_sortRoots'](_0xccfa8e)['reduce']((_0x86ef39,_0x26075e)=>(_0x86ef39['push']([_0x26075e,{'content':_0x6bdf01[_0x26075e],'classes':''}]),_0x86ef39),[]),_0x3005ac);return _0x161e57;}['_fixMediaEmbeds'](_0x1934c1,_0x1dd347){if(!_0x1dd347['plugins']['has']('MediaEmbedEditing'))return _0x1934c1;const _0xcb122a=_0x1dd347['plugins']['get']('MediaEmbedEditing');for(const [_0x51c34d,_0x47e169]of Object['entries'](_0x1934c1)){const _0xe6bf1d=document['createElement']('div');_0xe6bf1d['innerHTML']=_0x47e169,(_0xe6bf1d['querySelectorAll']('figure.media')['forEach'](_0x48ebd5=>{const _0x12672d=_0x48ebd5['querySelector']('oembed');if(_0x12672d){const _0x1c96e1=_0x12672d['getAttribute']('url');if(_0x1c96e1){const _0x45796b=_0xcb122a['registry']['getMediaViewElement'](new _0xdb61c(_0x1dd347['editing']['view']['document']),_0x1c96e1,{'elementName':'','renderForEditingView':!0x0}),_0x20e7c7=document['createElement']('div');_0x20e7c7['classList']['add']('ck-media__wrapper'),_0x45796b['render'](_0x20e7c7,_0x1dd347['editing']['view']['domConverter']),_0x12672d['replaceWith'](_0x20e7c7);}}}),_0x1934c1[_0x51c34d]=_0xe6bf1d['innerHTML']);}return _0x1934c1;}['_sortRoots'](_0x4c68de){if(!function(_0x15b83e){return void 0x0!==_0x15b83e['getRootsAttributes'];}(_0x4c68de))return _0x4c68de['model']['document']['getRootNames']();const _0x53e322=[],_0x10ad12=new Map();for(const _0x29eabc of _0x4c68de['model']['document']['getRootNames']()){const _0x5140d7=_0x4c68de['editing']['view']['getDomRoot'](_0x29eabc)['getClientRects']()['item'](0x0);_0x53e322['push'](_0x29eabc),_0x10ad12['set'](_0x29eabc,_0x5140d7);}return _0x53e322['sort']((_0x5affcf,_0x43d5f5)=>{const _0x63229c=_0x10ad12['get'](_0x5affcf),_0x59ea24=_0x10ad12['get'](_0x43d5f5);return _0x63229c['y']-_0x59ea24['y']||_0x63229c['x']-_0x59ea24['x'];}),_0x53e322;}}class He extends _0x519785{static get['requires'](){return[re,_0xd32161];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4118d3){super(_0x4118d3),_0x4118d3['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4118d3['config']['define']('trackChanges.preview.renderFunction',(_0x2a7950,_0x23a197)=>{for(const _0x352d02 of _0x23a197)_0x2a7950['appendChild'](_0x352d02);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};