@ckeditor/ckeditor5-track-changes 46.0.0-alpha.6 → 46.0.0-alpha.8

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 _0x201f08,Plugin as _0x13e452,PendingActions as _0x377dde}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x19b862,ObservableMixin as _0x4af2b4,uid as _0x22223a,priorities as _0x17dc3a,insertToPriorityArray as _0x4770ea,toArray as _0x2e0ed6,logWarning as _0x5ac787,getEnvKeystrokeText as _0x4b4623,FocusTracker as _0x49dfd9,KeystrokeHandler as _0x47fd75,Collection as _0x5bf0cc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x317a1a,IconCancel as _0x1efdbd,IconTrackChanges as _0x13883d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1d2800,View as _0x2d8d59,ViewCollection as _0xc8541d,FocusCycler as _0x4ac438,UIModel as _0x518378,createDropdown as _0x366dc0,SplitButtonView as _0x2253af,addListToDropdown as _0x6d9994,MenuBarMenuView as _0x1f0be0,MenuBarMenuListView as _0x2849be,ListSeparatorView as _0x43929d,MenuBarMenuListItemView as _0x1fb5d9,MenuBarMenuListItemButtonView as _0x4d739d,BodyCollection as _0x3bc5c1,Dialog as _0x5cbeab}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x56d1a,hashObject as _0x51d884,surroundingMarkersDetector as _0x4124c9,FOCUS_ANNOTATION_KEYSTROKE as _0x50d6b0,AriaDescriptionView as _0x5e3ac9,setupThreadKeyboardNavigation as _0x32d9f5,trimHtml as _0x27347b,UserView as _0x241076,LateFocusButtonView as _0x55ec27,getDateTimeFormatter as _0x45f341,getAllMarkersDomElementsSorted as _0x1dfa67,sanitizeEditorConfig as _0x79006e}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x7e4058,ModelLiveRange as _0x158d49,ModelLivePosition as _0x488dc6,ViewDowncastWriter as _0x242596}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5b6e86,toWidget as _0xb90220}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xc94e0f,set as _0x1b70ab,isEqual as _0x1ced7c,unset as _0x1250ae,omit as Ut}from'es-toolkit/compat';import{Delete as _0xc472a0,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3e1d1a}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x283213}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x201f08{['_enabledCommands'];constructor(_0x3609b8,_0x5f24f6){super(_0x3609b8),this['_enabledCommands']=_0x5f24f6,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 _0x2620bf of this['editor']['commands']['commands']())_0x2620bf['affectsData']&&!this['_enabledCommands']['has'](_0x2620bf)&&_0x2620bf['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe75ebd of this['editor']['commands']['commands']())_0xe75ebd['affectsData']&&!this['_enabledCommands']['has'](_0xe75ebd)&&_0xe75ebd['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x201f08{['_suggestions'];constructor(_0xd1d9e1,_0x48c075){super(_0xd1d9e1),this['_suggestions']=_0x48c075,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1bf26f){const _0x6e5b8e=this['_suggestions']['get'](_0x1bf26f);if(!_0x6e5b8e)throw new _0x19b862('track-changes-accept-suggestion-not-found',this);const _0x2a434b=_0x6e5b8e['getRanges']();this['editor']['model']['canEditAt'](_0x2a434b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x6e5b8e);}}class M extends _0x201f08{['_suggestions'];constructor(_0xab34c0,_0x1050ed){super(_0xab34c0),this['_suggestions']=_0x1050ed,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x24dc22){const _0x2659fa=this['_suggestions']['get'](_0x24dc22);if(!_0x2659fa)throw new _0x19b862('track-changes-discard-suggestion-not-found',this);const _0x1ef323=_0x2659fa['getRanges']();this['editor']['model']['canEditAt'](_0x1ef323)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2659fa);}}function ls(_0x51ad80,_0x58f9bc){let _0x584cb8='';return _0x584cb8+=_0x51ad80['split']('*')['map']((_0x412f6a,_0x590c3e)=>_0x590c3e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x412f6a)+'</span>':Yt(_0x412f6a))['join'](''),_0x58f9bc&&(_0x584cb8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x58f9bc['value']+'\x22\x20title=\x22'+_0x58f9bc['title']+'\x22></span>'),_0x584cb8;}function Yt(_0x1c9f1f){const _0x1c105c=document['createElement']('span');return _0x1c105c['innerText']=_0x1c9f1f,_0x1c105c['innerHTML'];}function ts(_0x759029){return _0x759029['sort']((_0x218a77,_0x3a27d0)=>'attribute'===_0x218a77['type']&&'attribute'!==_0x3a27d0['type']?-0x1:'attribute'!==_0x218a77['type']&&'attribute'===_0x3a27d0['type']?0x1:'deletion'==_0x218a77['type']&&'deletion'!=_0x3a27d0['type']?-0x1:'deletion'!=_0x218a77['type']&&'deletion'==_0x3a27d0['type']?0x1:0x0);}function to(_0xa15c9a,_0x2c082c){let _0x6a99cf,_0x41ac06=0x0;const _0x4e1919=[],_0xe65e84=_0x2c082c['schema'];for(;_0x41ac06<_0xa15c9a['length'];){const _0x40a07c=_0xa15c9a[_0x41ac06],_0x3d9e6f=_0xa15c9a[_0x41ac06+0x1];_0x6a99cf||(_0x6a99cf=_0x2c082c['createPositionBefore'](_0x40a07c)),Zt(_0x2c082c,_0x40a07c,_0x3d9e6f)||(_0x4e1919['push'](_0x2c082c['createRange'](_0x6a99cf,_0xe65e84['isObject'](_0x40a07c)?_0x2c082c['createPositionAfter'](_0x40a07c):_0x2c082c['createPositionAt'](_0x40a07c,'end'))),_0x6a99cf=null),_0x41ac06++;}return _0x4e1919;}function Zt(_0x4dc841,_0x2a5fde,_0x4b8bf0){if(!_0x4b8bf0)return!0x1;const _0x1f3cab=_0x4dc841['createPositionAfter'](_0x2a5fde),_0x3f75d9=_0x4dc841['createPositionBefore'](_0x4b8bf0);return _0x1f3cab['isTouching'](_0x3f75d9);}function rs(_0x113fb8,_0x2b01d0,_0x41d132){for(;_0x41d132['length'];){const _0x28d26e=_0x41d132['splice'](0x0,0x64);_0x113fb8['change'](()=>{for(const _0x296a3c of _0x28d26e)_0x296a3c['isInContent']&&_0x2b01d0['execute'](_0x296a3c['id']);});}}class $ extends _0x201f08{['_command'];['_suggestions'];constructor(_0x49a2f0,_0x5ed29b,_0x1e5604){super(_0x49a2f0),this['_command']=_0x5ed29b,this['_suggestions']=_0x1e5604,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x28e90d=Array['from'](this['_suggestions']['values']())['some'](_0x3e1d3f=>_0x3e1d3f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x28e90d;}['execute'](){const _0x1516a2=ts(Array['from'](this['_suggestions']['values']()));for(const _0x499e4b of _0x1516a2){const _0x1c3651=_0x499e4b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1c3651))return;}rs(this['editor']['model'],this['_command'],_0x1516a2);}}class B extends _0x201f08{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x184842,_0x40d481,_0x3e09ec){super(_0x184842),this['_command']=_0x40d481,this['_suggestions']=_0x3e09ec,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2a98e2=this['editor']['model']['document']['selection'],_0x2cd1c0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x196b54,_0xf59fce){const _0xb19696=Array['from'](_0x196b54['getRanges']()),_0x27d7c6=new Set();for(const _0x38bca6 of _0xf59fce)if(_0x38bca6['isInContent']){for(const _0x1a0256 of _0xb19696)for(const _0x146382 of _0x38bca6['getRanges']())(_0x1a0256['isIntersecting'](_0x146382)||_0x196b54['isCollapsed']&&!_0x38bca6['isMultiRange']&&_0x38bca6['next']&&_0x146382['end']['isTouching'](_0x1a0256['start']))&&_0x27d7c6['add'](_0x38bca6);}return _0x27d7c6;}(_0x2a98e2,_0x2cd1c0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4f7127=ts(Array['from'](this['_selectedSuggestions']));for(const _0xaf8ba7 of _0x4f7127){const _0x5c29d2=_0xaf8ba7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c29d2))return;}rs(this['editor']['model'],this['_command'],_0x4f7127);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x4af2b4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x421a31,_0x575572){super(),this['id']=_0x575572['id'],this['type']=_0x575572['type'],this['subType']=_0x575572['subType']||null,this['author']=_0x575572['author'],this['creator']=_0x575572['creator']||_0x575572['author'],this['isExternal']=Boolean(_0x575572['attributes']&&_0x575572['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x575572['originalSuggestionId']||null,this['_model']=_0x421a31,this['_onAccept']=_0x575572['onAccept'],this['_onDiscard']=_0x575572['onDiscard'],this['_onAttributesChange']=_0x575572['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x575572['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 _0x24986a=this;for(;_0x24986a['previous'];)_0x24986a=_0x24986a['previous'];return _0x24986a;}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'](_0x58f270){this['_markerNames']['add'](_0x58f270);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x31f157=>this['_model']['markers']['get'](_0x31f157))['filter'](_0xb16336=>_0xb16336);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3ae3fd=>{for(const _0x5545f0 of this['getMarkers']())_0x3ae3fd['removeMarker'](_0x5545f0);}),this['_markerNames']['clear']();}['removeMarker'](_0x4acbce){this['_model']['change'](_0x107454=>{_0x107454['removeMarker'](_0x4acbce);}),this['_markerNames']['delete'](_0x4acbce);}['addRange'](_0x454bb8){const _0x1eb543='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x1eb543),this['_model']['change'](_0x8414af=>{_0x8414af['addMarker'](_0x1eb543,{'range':_0x454bb8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1c6fdd){for(const _0x15c007 of this['getRanges']())if(_0x15c007['isIntersecting'](_0x1c6fdd))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5b7d06=>_0x5b7d06['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3063ca,_0x4007a7)=>[..._0x3063ca,..._0x4007a7['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x52b5d6=this['getRanges']();if(0x1!=_0x52b5d6['length'])return null;const _0x43b343=_0x52b5d6[0x0],_0x114dd2=_0x43b343['start']['nodeAfter'],_0xe8343a=_0x43b343['end']['nodeBefore'];return _0x114dd2 instanceof _0x7e4058?_0x114dd2!=_0xe8343a?null:_0x114dd2: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 _0x39c087=[];let _0x10f8f5=this['head'];for(;_0x10f8f5;)_0x39c087['push'](_0x10f8f5),_0x10f8f5=_0x10f8f5['next'];return _0x39c087;}['setAttribute'](_0x1fadfa,_0x191b71){const _0x387a71=_0xc94e0f(this['attributes']);_0x1b70ab(_0x387a71,_0x1fadfa,_0x191b71),_0x1ced7c(_0x387a71,this['attributes'])||(this['attributes']=_0x387a71,this['_onAttributesChange'](_0x387a71));}['removeAttribute'](_0x529220){const _0x51673c=_0xc94e0f(this['attributes']);_0x1250ae(_0x51673c,_0x529220),_0x1ced7c(_0x51673c,this['attributes'])||(this['attributes']=_0x51673c,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 _0x22223a()['substr'](0x1,0x5);}}function o(_0x295321,_0x3d24f1,_0x4b8d49){const _0x63fa84=_0x295321['t'],t=_0x295321['t'];switch(_0x3d24f1){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',_0x4b8d49);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4b8d49);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4b8d49);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4b8d49);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4b8d49);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',_0x4b8d49);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4b8d49);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',_0x4b8d49);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4b8d49);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4b8d49);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4b8d49);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4b8d49);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4b8d49);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4b8d49);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4b8d49);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4b8d49);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4b8d49);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4b8d49);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4b8d49);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4b8d49);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4b8d49);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4b8d49);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4b8d49);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4b8d49);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4b8d49);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4b8d49);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4b8d49);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4b8d49);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4b8d49);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4b8d49);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4b8d49);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4b8d49);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4b8d49);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4b8d49);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'},_0x4b8d49);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x4b8d49);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4b8d49);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4b8d49);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 _0x63fa84({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4b8d49);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x63fa84({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4b8d49);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4b8d49);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'},_0x4b8d49);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'},_0x4b8d49);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'},_0x4b8d49);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3d24f1;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x234bab,_0x6dd382){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x234bab,this['_locale']=_0x6dd382;}['getDescriptions'](_0x199588){const _0x41a156=[],_0x5bf7e1=new Set(),_0x24cf3d=new Set();for(let _0x50a904=0x0;_0x50a904<_0x199588['length'];_0x50a904++){const _0x5ecc55=_0x199588[_0x50a904];if(!_0x5ecc55['isInContent'])continue;const _0x346872=this['_handleCustomCallbackDescription'](_0x5ecc55);if(_0x346872){if(null!=_0x5ecc55['subType']){if(_0x5bf7e1['has'](_0x5ecc55['subType']))continue;_0x5bf7e1['add'](_0x5ecc55['subType']);}_0x41a156['push'](_0x346872);}else{if('attribute'==_0x5ecc55['type']){const _0x54b6ef=_0x5ecc55['data']['key'];if(_0x24cf3d['has'](_0x54b6ef))continue;_0x24cf3d['add'](_0x5ecc55['data']['key']),_0x54b6ef==m?this['_handleRenameSuggestionDescription'](_0x41a156,_0x5ecc55):this['_handleAttributeSuggestionDescription'](_0x41a156,_0x5ecc55);continue;}'insertion'!=_0x5ecc55['type']&&'deletion'!=_0x5ecc55['type']||this['_handleInsertRemoveSuggestionDescription'](_0x41a156,_0x5ecc55,_0x199588[_0x50a904+0x1]);}}return this['_resolveDescriptionItems'](_0x41a156);}['registerDescriptionCallback'](_0x586b66){this['_customCallbacks']['push'](_0x586b66);}['registerElementLabel'](_0x49d0fd,_0x22228e,_0x467382=_0x17dc3a['normal']){'function'==typeof _0x49d0fd?_0x4770ea(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49d0fd,'label':_0x22228e,'priority':_0x467382}):this['_itemLabels']['set'](_0x49d0fd,_0x22228e);}['registerAttributeLabel'](_0x56b479,_0x5013d1){this['_attributeLabels']['set'](_0x56b479,_0x5013d1);}['getItemLabel'](_0x5b24bf,_0x110894=0x1){let _0x66c12;for(const _0x469b21 of this['_itemLabelsCallbacks'])if(_0x469b21['matchingCallback'](_0x5b24bf)){_0x66c12=_0x469b21['label'];break;}return _0x66c12||(_0x66c12=this['_itemLabels']['get'](_0x5b24bf['name'])),_0x66c12?_0x66c12(_0x110894):0x1!==_0x110894?_0x110894+'\x20'+_0x5b24bf['name']+'s':''+_0x5b24bf['name'];}['_addDescriptionItems'](_0x44d5d8,_0x310ed9){const _0x3db904=_0x310ed9['getFirstRange']()['getWalker'](),_0x567f36='insertion'==_0x310ed9['type']?'add':'remove';for(const _0x291f5a of _0x3db904){const _0xfed165=_0x291f5a['item'],_0x4b8707=_0x44d5d8[_0x44d5d8['length']-0x1];if(_0xfed165['is']('$textProxy'))_0x4b8707&&_0x4b8707['type']['indexOf']('Container')>-0x1&&_0x44d5d8['pop'](),_0x4b8707&&'text'==_0x4b8707['type']?_0x4b8707[_0x567f36]+=_0xfed165['data']:_0x44d5d8['push']({'type':'text','add':'add'==_0x567f36?_0xfed165['data']:'','remove':'remove'==_0x567f36?_0xfed165['data']:''});else{if(this['_schema']['isObject'](_0xfed165)){const _0x37fab5=_0xfed165;if(_0x4b8707&&_0x4b8707['type']['indexOf']('Container')>-0x1&&_0x44d5d8['pop'](),'elementEnd'==_0x291f5a['type'])continue;_0x4b8707&&_0x4b8707['type']==_0x567f36+'Object'&&_0x4b8707['element']['name']==_0x37fab5['name']?_0x4b8707['quantity']++:_0x44d5d8['push']({'type':_0x567f36+'Object','element':_0x37fab5,'quantity':0x1}),_0x3db904['skip'](_0x4a3b01=>!('elementEnd'==_0x4a3b01['type']&&_0x4a3b01['item']==_0xfed165));}else{if(this['_schema']['checkChild'](_0xfed165,'$text')||_0xfed165['is']('element','softBreak')){const _0x4d57a3=_0xfed165;if('add'==_0x567f36&&'elementStart'==_0x291f5a['type']||'remove'==_0x567f36&&'elementEnd'==_0x291f5a['type'])continue;if(_0x4b8707&&-0x1==_0x4b8707['type']['indexOf']('Container')){'text'==_0x4b8707['type']&&(_0x4b8707[_0x567f36]+='\x0a');continue;}let _0x396f3a;if(_0x396f3a='add'==_0x567f36?_0x4d57a3['nextSibling']&&!this['_schema']['isObject'](_0x4d57a3['nextSibling'])?_0x4d57a3['nextSibling']:null:_0x4d57a3['previousSibling']&&!this['_schema']['isObject'](_0x4d57a3['previousSibling'])?_0x4d57a3['previousSibling']:null,_0x4d57a3['isEmpty']||_0x396f3a&&_0x396f3a['isEmpty']){const _0x20372f=_0x396f3a&&_0x396f3a['isEmpty']?_0x396f3a:_0x4d57a3;_0x4b8707&&_0x4b8707['type']==_0x567f36+'EmptyContainer'&&_0x4b8707['element']['name']==_0x20372f['name']?_0x4b8707['quantity']++:_0x44d5d8['push']({'type':_0x567f36+'EmptyContainer','element':_0x20372f,'quantity':0x1});}else _0x44d5d8['push']({'type':_0x567f36+'Container','element':_0x4d57a3});}}}}}['_resolveDescriptionItems'](_0x103020){const _0x277012=this['_locale'],_0x1df3fc=[],_0x5db9cf=[],_0x53f054=[];for(const _0x18025c of _0x103020)switch(_0x18025c['type']){case'text':if(_0x18025c['add']=_0x18025c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x18025c['remove']=_0x18025c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x18025c['add']&&''!=_0x18025c['remove']){_0x1df3fc['push']({'type':'replace','content':o(_0x277012,'REPLACE_TEXT',['\x22'+_0x18025c['remove']+'\x22','\x22'+_0x18025c['add']+'\x22'])});continue;}if(null!=_0x18025c['add']['match'](/^ +$/)){_0x1df3fc['push']({'type':'insertion','content':o(_0x277012,'*Insert:*\x20%0',o(_0x277012,'ELEMENT_SPACE',_0x18025c['add']['length']))});continue;}if(null!=_0x18025c['remove']['match'](/^ +$/)){_0x1df3fc['push']({'type':'deletion','content':o(_0x277012,'*Remove:*\x20%0',o(_0x277012,'ELEMENT_SPACE',_0x18025c['remove']['length']))});continue;}if(''!=_0x18025c['add']){_0x1df3fc['push']({'type':'insertion','content':o(_0x277012,'*Insert:*\x20%0','\x22'+_0x18025c['add']+'\x22')});continue;}_0x1df3fc['push']({'type':'deletion','content':o(_0x277012,'*Remove:*\x20%0','\x22'+_0x18025c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1df3fc['push']({'type':'insertion','content':o(_0x277012,'*Insert:*\x20%0',this['getItemLabel'](_0x18025c['element'],_0x18025c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1df3fc['push']({'type':'deletion','content':o(_0x277012,'*Remove:*\x20%0',this['getItemLabel'](_0x18025c['element'],_0x18025c['quantity']))});continue;case'addContainer':_0x1df3fc['push']({'type':'insertion','content':o(_0x277012,'*Split:*\x20%0',this['getItemLabel'](_0x18025c['element'],_0x18025c['quantity']))});continue;case'removeContainer':_0x1df3fc['push']({'type':'deletion','content':o(_0x277012,'*Merge:*\x20%0',this['getItemLabel'](_0x18025c['element'],_0x18025c['quantity']))});continue;case'addFormat':_0x5db9cf['push'](_0x18025c['key']);continue;case'removeFormat':_0x53f054['push'](_0x18025c['key']);continue;default:_0x1df3fc['push'](_0x18025c);}if(_0x5db9cf['length']){const _0x464444=_0x5db9cf['map'](_0x2a38a0=>this['_attributeLabels']['has'](_0x2a38a0)?this['_attributeLabels']['get'](_0x2a38a0):_0x2a38a0)['join'](',\x20');_0x1df3fc['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x464444)});}if(_0x53f054['length']){const _0x4a62da=_0x53f054['map'](_0x1aabff=>this['_attributeLabels']['has'](_0x1aabff)?this['_attributeLabels']['get'](_0x1aabff):_0x1aabff)['join'](',\x20');_0x1df3fc['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4a62da)});}return _0x1df3fc;}['_handleCustomCallbackDescription'](_0xdea11f){for(const _0x560707 of this['_customCallbacks']){const _0x48fc37=_0x560707(_0xdea11f);if(_0x48fc37&&'type'in _0x48fc37)return _0x48fc37;}}['_handleAttributeSuggestionDescription'](_0x124387,_0x38ac42){const _0x4d9b09=_0x38ac42['data'],_0x46d822=void 0x0===_0x4d9b09['newValue']?'removeFormat':'addFormat';_0x124387['push']({'type':_0x46d822,'key':_0x4d9b09['key']});}['_handleRenameSuggestionDescription'](_0x5034e7,_0x52644c){_0x5034e7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x52644c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5a6142,_0x1c911d,_0x27b620){if(this['_addDescriptionItems'](_0x5a6142,_0x1c911d),_0x27b620&&_0x27b620['getFirstRange']()&&!_0x1c911d['getFirstRange']()['end']['isEqual'](_0x27b620['getFirstRange']()['start'])){const _0x5bb732=_0x5a6142[_0x5a6142['length']-0x1],_0x166ae7='insertion'==_0x1c911d['type']?'add':'remove';_0x5bb732&&'text'==_0x5bb732['type']&&(_0x5bb732[_0x166ae7]+='\x0a');}}}class O extends _0x13e452{['afterInit'](){const _0x36f91d=this['editor'],_0x27747c=_0x36f91d['plugins']['get']('TrackChangesEditing');_0x36f91d['commands']['get']('showAIAssistant')&&_0x27747c['enableCommand']('showAIAssistant');}}class E extends _0x13e452{['afterInit'](){const _0x16ee13=this['editor'],_0x70cd1b=_0x16ee13['locale'];if(!_0x16ee13['plugins']['has']('AlignmentEditing'))return;const _0x2373da=_0x16ee13['plugins']['get']('TrackChangesEditing');_0x2373da['enableDefaultAttributesIntegration']('alignment'),_0x2373da['registerBlockAttribute']('alignment'),_0x2373da['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x70cd1b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49bb92=this['editor'],_0xfbc58b=_0x49bb92['locale'];_0x49bb92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1893df=>{if('formatBlock'!=_0x1893df['type'])return;const {data:_0x246644}=_0x1893df;if(_0x246644&&'alignment'==_0x246644['commandName']){const _0x40d4f2=_0x246644['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xfbc58b,'*Format:*\x20%0',function(_0x539ffe){switch(_0x539ffe){case'left':return o(_0xfbc58b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xfbc58b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xfbc58b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xfbc58b,'FORMAT_JUSTIFY_TEXT');}}(_0x40d4f2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x13e452{['afterInit'](){const _0x1547e0=this['editor'],_0x59493c=_0x1547e0['plugins']['get']('TrackChangesEditing'),_0x1ccd0d=_0x1547e0['locale'];for(const _0x323a1c of ti){if(!_0x1547e0['plugins']['has'](_0x323a1c))continue;const _0x10fa46=_0x323a1c['slice'](0x0,-0x7)['toLowerCase'](),_0x4e6af0='FORMAT_'+_0x10fa46['toUpperCase']();_0x59493c['enableDefaultAttributesIntegration'](_0x10fa46),_0x59493c['registerInlineAttribute'](_0x10fa46),_0x59493c['descriptionFactory']['registerAttributeLabel'](_0x10fa46,o(_0x1ccd0d,_0x4e6af0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4df4c6=this['editor'],_0x15eba7=_0x4df4c6['locale'],_0x82934a=_0x4df4c6['plugins']['get']('TrackChangesEditing');function _0xbd042f(_0x149ebc,_0x370c15){_0x82934a['descriptionFactory']['registerDescriptionCallback'](_0xbe1492=>{if('formatInline'!=_0xbe1492['type'])return;const {data:_0x115e97}=_0xbe1492;return _0x115e97&&_0x115e97['commandName']===_0x149ebc?_0x115e97['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15eba7,'*Format:*\x20%0',_0x370c15)}:{'type':'format','content':o(_0x15eba7,'*Remove\x20format:*\x20%0',_0x370c15)}:void 0x0;});}_0xbd042f('bold',o(_0x15eba7,'FORMAT_BOLD')),_0xbd042f('italic',o(_0x15eba7,'FORMAT_ITALIC')),_0xbd042f('underline',o(_0x15eba7,'FORMAT_UNDERLINE')),_0xbd042f('code',o(_0x15eba7,'FORMAT_CODE')),_0xbd042f('strikethrough',o(_0x15eba7,'FORMAT_STRIKETHROUGH')),_0xbd042f('subscript',o(_0x15eba7,'FORMAT_SUBSCRIPT')),_0xbd042f('superscript',o(_0x15eba7,'FORMAT_SUPERSCRIPT'));}}class U extends _0x13e452{['afterInit'](){const _0x434135=this['editor'],_0x492dbc=_0x434135['locale'];if(!_0x434135['plugins']['has']('BlockQuoteEditing'))return;const _0x458f1d=_0x434135['plugins']['get']('TrackChangesEditing'),_0xbb785a=this['editor']['commands']['get']('blockQuote');_0x458f1d['enableCommand']('blockQuote',(_0x865f01,_0x24879c={})=>{const _0x182d13=this['editor']['model']['document']['selection'],_0x5c7657=_0x24879c&&void 0x0!==_0x24879c['forceValue']?_0x24879c['forceValue']:!_0xbb785a['value'];let _0x6995f=[];if(_0x5c7657){const _0x830a39=Array['from'](_0x182d13['getSelectedBlocks']())['filter'](_0x3534f7=>oo(_0x3534f7)||function(_0x5d32da,_0x54ac73){const _0x471c14=_0x54ac73['checkChild'](_0x5d32da['parent'],'blockQuote'),_0x3ed61a=_0x54ac73['checkChild'](['$root','blockQuote'],_0x5d32da);return _0x471c14&&_0x3ed61a;}(_0x3534f7,this['editor']['model']['schema']));_0x6995f=to(_0x830a39,_0x434135['model']);}else{const _0x47f408=Array['from'](_0x182d13['getSelectedBlocks']())['filter'](_0x2a33cf=>oo(_0x2a33cf));_0x6995f=to(_0x47f408,_0x434135['model']);}_0x434135['model']['change'](()=>{for(const _0x34053b of _0x6995f)_0x458f1d['markBlockFormat'](_0x34053b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5c7657}]});});}),_0x458f1d['descriptionFactory']['registerDescriptionCallback'](_0xfbd97d=>{const {data:_0x39030a}=_0xfbd97d;if(_0x39030a&&'blockQuote'==_0x39030a['commandName']){const _0x58b241=o(_0x492dbc,'ELEMENT_BLOCK_QUOTE');return _0x39030a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x492dbc,'*Set\x20format:*\x20%0',_0x58b241)}:{'type':'format','content':o(_0x492dbc,'*Remove\x20format:*\x20%0',_0x58b241)};}});}}function oo(_0x1bc125){return'blockQuote'==_0x1bc125['parent']['name'];}class V extends _0x13e452{['afterInit'](){const _0x46113c=this['editor'],_0x55b887=_0x46113c['locale'],_0x1838a0=_0x46113c['plugins']['get']('TrackChangesEditing');_0x46113c['plugins']['has']('BookmarkEditing')&&(_0x1838a0['enableCommand']('insertBookmark'),_0x1838a0['enableDefaultAttributesIntegration']('updateBookmark'),_0x1838a0['registerBlockAttribute']('bookmarkId'),_0x1838a0['descriptionFactory']['registerDescriptionCallback'](_0x460b49=>{if('insertion'!=_0x460b49['type']&&'deletion'!=_0x460b49['type']&&'attribute'!=_0x460b49['type'])return;const _0x508f76=_0x460b49['getContainedElement']();if(null==_0x508f76)return;if(!_0x508f76['is']('element','bookmark'))return;const _0x2b8d7a=_0x508f76['getAttribute']('bookmarkId');if('insertion'==_0x460b49['type'])return{'type':'insertion','content':o(_0x55b887,'*Insert:*\x20%0','\x22'+_0x2b8d7a+'\x22\x20'+o(_0x55b887,'ELEMENT_BOOKMARK'))};if('deletion'==_0x460b49['type'])return{'type':'deletion','content':o(_0x55b887,'*Remove:*\x20%0','\x22'+_0x2b8d7a+'\x22\x20'+o(_0x55b887,'ELEMENT_BOOKMARK'))};const {data:_0x4c9a46}=_0x460b49;if(!_0x4c9a46||'bookmarkId'!=_0x4c9a46['key'])return;return{'type':'format','content':o(_0x55b887,'*Set\x20bookmark:*\x20%0','\x22'+_0x4c9a46['newValue']+'\x22')};}));}}class F extends _0x13e452{['afterInit'](){const _0x36fd7c=this['editor'];_0x36fd7c['plugins']['has']('CaseChange')&&(_0x36fd7c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x36fd7c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x36fd7c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x13e452{['afterInit'](){const _0x45fe04=this['editor'];_0x45fe04['commands']['get']('ckbox')&&_0x45fe04['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x13e452{['afterInit'](){const _0x5533d1=this['editor'];if(!_0x5533d1['plugins']['has']('CodeBlock'))return;const _0xe2d473=_0x5533d1['plugins']['get']('TrackChangesEditing'),_0x5e074e=_0x5533d1['locale'],_0x2a16bd=_0x5533d1['config']['get']('codeBlock')['languages'],_0x26405f=_0x5533d1['commands']['get']('codeBlock');_0xe2d473['enableCommand']('indentCodeBlock'),_0xe2d473['enableCommand']('outdentCodeBlock'),_0xe2d473['enableCommand']('codeBlock',(_0x5b3889,_0x23d744={})=>{const _0x4090a4=_0x5533d1['model'],_0x48b344=_0x5533d1['model']['document']['selection'],_0x2d8622=_0x23d744&&void 0x0!==_0x23d744['forceValue']?_0x23d744['forceValue']:!_0x26405f['value'];let _0x278012;_0x23d744['language']||(_0x23d744['language']=_0x2a16bd[0x0]['language']),_0x278012=_0x2d8622?Array['from'](_0x48b344['getSelectedBlocks']())['filter'](_0x340586=>co(_0x340586)||function(_0x5f050d,_0x23902c){if(_0x5f050d['is']('rootElement')||_0x23902c['isLimit'](_0x5f050d))return!0x1;return _0x23902c['checkChild'](_0x5f050d['parent'],'codeBlock');}(_0x340586,_0x4090a4['schema'])):Array['from'](_0x48b344['getSelectedBlocks']())['filter'](_0x4221f3=>co(_0x4221f3));const _0x7f0e39=to(_0x278012,_0x4090a4);_0x4090a4['change'](()=>{for(const _0xbb6f0b of _0x7f0e39)_0xe2d473['markBlockFormat'](_0xbb6f0b,{'commandName':'codeBlock','commandParams':[{..._0x23d744,'forceValue':_0x2d8622}],'formatGroupId':'blockName'});});}),(_0xe2d473['descriptionFactory']['registerElementLabel']('codeBlock',_0x51aaf7=>o(_0x5e074e,'ELEMENT_CODE_BLOCK',_0x51aaf7)),_0xe2d473['descriptionFactory']['registerDescriptionCallback'](_0x118e7a=>{if('formatBlock'!=_0x118e7a['type'])return;const _0x5d7dfb=_0x5e074e['t'],{data:_0x48b5c8}=_0x118e7a;if(!_0x48b5c8||'codeBlock'!=_0x48b5c8['commandName'])return;const _0x13498c=_0x48b5c8['commandParams'][0x0]['language'],_0x304c75=_0x5d7dfb(_0x2a16bd['find'](_0x232003=>_0x232003['language']===_0x13498c)['label'])['toLowerCase']();return _0x48b5c8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e074e,'*Set\x20format:*\x20%0',o(_0x5e074e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x304c75+')')}:{'type':'format','content':o(_0x5e074e,'*Remove\x20format:*\x20%0',o(_0x5e074e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x444e31){return'codeBlock'==_0x444e31['name'];}class J extends _0x13e452{['afterInit'](){const _0x2f049c=this['editor'];if(!_0x2f049c['plugins']['has']('CommentsEditing'))return;_0x2f049c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x29e7ba,_0x47747c,_0xfdb34){const _0x13a0a1=[];for(const _0x3dabf8 of _0x47747c['getItems']())_0x3dabf8['hasAttribute'](_0x29e7ba)&&_0x13a0a1['push'](_0xfdb34['createRangeOn'](_0x3dabf8));return _0x13a0a1;}function De(_0x34eae3,_0xff288e,{showActiveMarker:_0x2095c6=!0x0}={}){const _0x41e3bf=_0x34eae3['plugins']['get']('TrackChangesEditing');return(_0x5c38da,_0x2d2ff2,_0x5241ed)=>{if(!_0x5241ed['consumable']['test'](_0x2d2ff2['markerRange'],_0x5c38da['name']))return;const _0x3ea53f=_0x2d2ff2['markerRange']['getWalker'](),_0x3ed0f8=_0x2d2ff2['markerRange']['start'],_0x2ed189=_0x34eae3['model']['schema'];let _0x3572f6=null,_0x8f119a=null,_0x11accb=!0x1,_0x319f8c=!0x1;for(const _0x532e2d of _0x3ea53f){const _0x4a4fff=_0x532e2d['item'];_0x11accb=_0x11accb||_0x2ed189['isContent'](_0x4a4fff);const _0x578da1=_0x5241ed['mapper']['toViewElement'](_0x4a4fff);if(_0x578da1&&_0x578da1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x532e2d['type']&&(_0x2ed189['isBlock'](_0x4a4fff)&&!_0x2ed189['isLimit'](_0x4a4fff)&&(_0x4a4fff['nextSibling']||_0x3ed0f8['isAtEnd']?_0x3572f6&&_0x3572f6['parent']==_0x4a4fff||(_0x3572f6=_0x4a4fff,_0x1825df(_0x532e2d['previousPosition']),_0x319f8c=!0x0):_0x8f119a=_0x8f119a||_0x532e2d['previousPosition']));}function _0x1825df(_0x8a2ea){const {id:_0x861cd8,authorId:_0x37a5cd}=_0x41e3bf['_splitMarkerName'](_0x2d2ff2['markerName']),_0x4fa3e4=_0x5241ed['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xff288e,'data-suggestion':_0x861cd8,'data-author-id':_0x37a5cd}),_0x405354=_0x5241ed['mapper']['toViewPosition'](_0x8a2ea);_0x2095c6&&_0x41e3bf['activeMarkers']['includes'](_0x2d2ff2['markerName'])&&_0x5241ed['writer']['addClass']('ck-suggestion-marker--active',_0x4fa3e4),_0x5241ed['writer']['insert'](_0x405354,_0x4fa3e4),_0x5241ed['mapper']['bindElementToMarker'](_0x4fa3e4,_0x2d2ff2['markerName']);}_0x11accb||_0x319f8c||!_0x8f119a||_0x1825df(_0x8f119a);};}class K extends _0x13e452{static get['requires'](){return[_0xc472a0];}['init'](){const _0x29d743=this['editor'],_0x29e195=_0x29d743['plugins']['get']('TrackChangesEditing');_0x29e195['enableCommand']('delete');const _0x433757=_0x29d743['commands']['get']('deleteForward');_0x29e195['enableCommand']('deleteForward',(_0x326543,_0x4c5b6a={})=>{const _0x516d6f=_0x29d743['model']['createSelection'](_0x29d743['model']['document']['selection']);_0x516d6f['isCollapsed']&&_0x29d743['model']['modifySelection'](_0x516d6f,{'direction':'forward','unit':_0x4c5b6a['unit']});const _0x490a01=_0x516d6f['getFirstRange'](),_0x17656b=_0x158d49['fromRange'](_0x490a01);let _0x1aaa2a;_0x326543(_0x4c5b6a),_0x1aaa2a='$graveyard'==_0x17656b['root']['rootName']?_0x29d743['model']['createRange'](_0x490a01['start']):_0x29d743['model']['createRange'](_0x17656b['start'],_0x17656b['end']),_0x17656b['detach'](),_0x29d743['model']['enqueueChange'](_0x433757['buffer']['batch'],_0x3fc159=>{_0x433757['buffer']['lock'](),_0x3fc159['setSelection'](_0x3fc159['createRange'](_0x1aaa2a['end'])),_0x433757['buffer']['unlock']();});}),_0x29d743['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x29d743,'merge'),{'priority':'high'}),_0x29d743['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x242949,_0xa47e01,_0x49c939)=>{_0x49c939['options']['showSuggestionHighlights']&&De(_0x29d743,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x242949,_0xa47e01,_0x49c939);},{'priority':'high'}),_0x29d743['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3e97b9,_0x1e06f6,_0x2e9046)=>{const _0x4bc8a8=_0x2e9046['mapper']['markerNameToElements'](_0x1e06f6['markerName']);if(_0x4bc8a8){for(const _0x419deb of _0x4bc8a8)_0x419deb['is']('uiElement')&&(_0x2e9046['mapper']['unbindElementFromMarkerName'](_0x419deb,_0x1e06f6['markerName']),_0x2e9046['writer']['remove'](_0x419deb));}},{'priority':'high'});}}class H extends _0x13e452{['afterInit'](){const _0x5e6de9=this['editor'];if(!_0x5e6de9['plugins']['has']('ListEditing'))return;const _0x963106=_0x5e6de9['locale'],_0xcee423=_0x5e6de9['plugins']['get']('TrackChangesEditing'),_0x15b21c=_0x5e6de9['plugins']['has']('TodoListEditing'),_0x2cbbd2=!!_0x5e6de9['config']['get']('list.multiBlock');function _0x3e7a56(_0x35f64e){return{'type':'format','content':''+o(_0x963106,'*Set\x20format:*\x20%0',_0x35f64e)};}function _0x368336(_0x4126ce){return{'type':'format','content':''+o(_0x963106,'*Remove\x20format:*\x20%0',_0x4126ce)};}_0xcee423['enableDefaultAttributesIntegration']('numberedList'),_0xcee423['enableDefaultAttributesIntegration']('bulletedList'),_0xcee423['enableDefaultAttributesIntegration']('customNumberedList'),_0xcee423['enableDefaultAttributesIntegration']('customBulletedList'),_0xcee423['enableDefaultAttributesIntegration']('indentList'),_0xcee423['enableDefaultAttributesIntegration']('outdentList'),_0xcee423['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xcee423['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xcee423['registerBlockAttribute']('listItemId'),_0xcee423['registerBlockAttribute']('listType'),_0xcee423['registerBlockAttribute']('listIndent'),_0x2cbbd2&&(_0xcee423['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xcee423['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x15b21c&&(_0xcee423['enableDefaultAttributesIntegration']('todoList'),_0xcee423['enableDefaultAttributesIntegration']('checkTodoList'),_0xcee423['registerBlockAttribute']('todoListChecked'),_0xcee423['descriptionFactory']['registerDescriptionCallback'](_0x5174df=>{const {data:_0x4ea2d6}=_0x5174df;if(_0x4ea2d6&&'todoListChecked'==_0x4ea2d6['key'])return{'type':'format','content':_0x4ea2d6['newValue']?o(_0x963106,'*Check\x20item*'):o(_0x963106,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3dc6b1=>{if(_0x3dc6b1['batch']['isUndo'])return!0x1;let _0x3a8f38=!0x1;const _0x15a49d=_0xcee423['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b5b1b=>'todoListChecked'===_0xcee423['_getAttributeKey'](_0x4b5b1b));for(const _0x31ba61 of _0x15a49d){'todo'!=_0x31ba61['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xcee423['_findSuggestions'](_0x31ba61['getFirstRange'](),'attribute')['find'](_0x17b5ce=>'listType'===_0xcee423['_getAttributeKey'](_0x17b5ce['suggestion']))||(_0x3dc6b1['removeMarker'](_0x31ba61['getFirstMarker']()),_0x3a8f38=!0x0));}return _0x3a8f38;})),_0xcee423['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x963106,'FORMAT_INDENT'));const _0x1275dc={'type':'format','content':''};_0xcee423['descriptionFactory']['registerDescriptionCallback'](_0x34865a=>{const {data:_0x5eed91}=_0x34865a;if(!_0x5eed91||'listType'!=_0x5eed91['key'])return;let _0x1121bc=_0x34865a['head'];for(;_0x1121bc;){if(_0x1121bc['data']&&(('listStyle'==_0x1121bc['data']['key']||'listMarkerStyle'==_0x1121bc['data']['key'])&&(_0x1121bc['data']['newValue']&&'default'!=_0x1121bc['data']['newValue']||'default'!=_0x1121bc['data']['oldValue']&&!_0x5eed91['newValue'])||!_0x2cbbd2&&_0x1121bc['data']['key']==m))return _0x1275dc;_0x1121bc=_0x1121bc['next'];}if(null==_0x5eed91['newValue'])switch(_0x5eed91['oldValue']){case'bulleted':return _0x368336(o(_0x963106,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x368336(o(_0x963106,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x368336(o(_0x963106,'ELEMENT_TODO_LIST'));}switch(_0x5eed91['newValue']){case'bulleted':return _0x3e7a56(o(_0x963106,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e7a56(o(_0x963106,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e7a56(o(_0x963106,'ELEMENT_TODO_LIST'));}}),_0xcee423['descriptionFactory']['registerDescriptionCallback'](_0x21f4cb=>{const {data:_0x2b863f}=_0x21f4cb;if(_0x2b863f&&'listIndent'==_0x2b863f['key'])return null==_0x2b863f['newValue']||null==_0x2b863f['oldValue']&&0x0==_0x2b863f['newValue']?_0x1275dc:void 0x0;}),_0xcee423['descriptionFactory']['registerDescriptionCallback'](_0x4a6406=>{if('attribute'!=_0x4a6406['type'])return;const {data:_0x119e80}=_0x4a6406;if(!_0x119e80||'listItemId'!=_0x119e80['key'])return;const _0x392364=Te(_0x4a6406);return'newValue'==_0x392364?{'type':'format','content':o(_0x963106,'*Merge:*\x20list\x20item')}:'oldValue'==_0x392364?{'type':'format','content':o(_0x963106,'*Split:*\x20list\x20item')}:_0x1275dc;}),_0x5e6de9['model']['document']['registerPostFixer'](_0x47da25=>this['listItemIdFixer'](_0x47da25)),_0x5e6de9['model']['document']['registerPostFixer'](_0x53eb8f=>this['noTrackChangesFixer'](_0x53eb8f)),_0x5e6de9['model']['document']['on']('change:data',(_0x126233,_0x310ed0)=>{if(_0x310ed0['isUndo']||!_0x310ed0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x15115a){if(_0x15115a['batch']['isUndo']||!_0x15115a['batch']['isLocal'])return!0x1;let _0x258613=!0x1;const _0x3f1bf8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x190bd6=>_0x190bd6['data']&&'listItemId'==_0x190bd6['data']['key'])['filter'](_0x41317d=>_0x41317d['data']['newValue']&&_0x41317d['data']['oldValue']);for(const _0x1e8415 of _0x3f1bf8)Te(_0x1e8415)||(_0x15115a['removeMarker'](_0x1e8415['getFirstMarker']()),_0x258613=!0x0);return _0x258613;}['noTrackChangesFixer'](_0x131178){if(_0x131178['batch']['isUndo']||!_0x131178['batch']['isLocal'])return!0x1;const _0x100bfd=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x100bfd['trackChangesCommand']['value'])return!0x1;let _0x2d17ab=!0x1;const _0x5bcd85=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x454867=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x561b29=>'attribute'==_0x561b29['type'])['filter'](_0x280b16=>_0x5bcd85['includes'](_0x280b16['attributeKey']));if(0x0==_0x454867['length'])return _0x2d17ab;for(const _0x41c445 of _0x454867){const _0x1ed3e9=_0x100bfd['_findSuggestions'](_0x41c445['range'],'attribute')['filter'](_0x4a934d=>!_0x4a934d['meta']['isNextTo'])['map'](_0x84ff67=>_0x84ff67['suggestion'])['filter'](_0x1e9ad7=>{const _0x53f57d=_0x100bfd['_getAttributeKey'](_0x1e9ad7);return _0x5bcd85['includes'](_0x53f57d);});if(_0x1ed3e9['length']){for(const _0x231138 of _0x1ed3e9)_0x131178['removeMarker'](_0x231138['getFirstMarker']());_0x2d17ab=!0x0;}}return _0x2d17ab;}['assureChains'](){const _0x476313=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c7807=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xdab00c;const _0x58f344=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x6500be=>{if(_0x6500be['data']['oldRange']||!_0x6500be['data']['newRange'])return null;if(!_0x6500be['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3e84c6}=_0x476313['_splitMarkerName'](_0x6500be['name']);if(!_0x476313['hasSuggestion'](_0x3e84c6))return null;const _0x1760d6=_0x476313['getSuggestion'](_0x3e84c6);return _0x5c7807['includes'](_0x1760d6['data']['key']);})['map'](_0x62e8a9=>{const {id:_0xd8f4b5}=_0x476313['_splitMarkerName'](_0x62e8a9['name']),_0x22cb10=_0x476313['getSuggestion'](_0xd8f4b5);return _0xdab00c=_0x22cb10['attributes']['groupId'],_0x22cb10['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x58f344['size'])return;const _0x20a4ab=_0x476313['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4edfcb=>'attribute'==_0x4edfcb['type']&&_0x4edfcb['data']&&_0x5c7807['includes'](_0x4edfcb['data']['key'])&&_0x4edfcb['attributes']['groupId']!=_0xdab00c)['map'](_0x51c587=>({'listItem':_0x51c587['getFirstRange']()['start']['nodeAfter'],'groupId':_0x51c587['attributes']['groupId']})),_0x5be331=new Set();for(const {groupId:_0x22aad0,listItem:_0x1315cc}of _0x20a4ab)_0x58f344['has'](_0x1315cc)&&_0x5be331['add'](_0x22aad0);for(const _0x552acb of _0x476313['getSuggestions']())_0x5be331['has'](_0x552acb['attributes']['groupId'])&&_0x552acb['setAttribute']('groupId',_0xdab00c);}['_supportLegacySuggestions'](){const _0x5d1ca4=this['editor'],_0x22fee3=_0x5d1ca4['locale'],_0x168c57=_0x5d1ca4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x168c57['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2ac8b2,_0x468cbe){const _0x5795ac=[];for(let _0x5da0ea of _0x2ac8b2)_0x5da0ea['start']['nodeAfter']===_0x5da0ea['end']['parent']&&(_0x5da0ea=_0x5d1ca4['model']['createRange'](_0x5d1ca4['model']['createPositionAt'](_0x5da0ea['start']['nodeAfter'],0x0))),_0x5795ac['push'](_0x5da0ea);_0x5d1ca4['model']['change'](_0x1dfed8=>{const _0x515eed=_0x5d1ca4['model']['document']['selection'],_0x3abc92=Array['from'](_0x515eed['getRanges']())['map'](_0x573abb=>_0x158d49['fromRange'](_0x573abb));_0x1dfed8['setSelection'](_0x5795ac),_0x5d1ca4['commands']['get'](_0x468cbe['commandName'])['refresh'](),_0x468cbe['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5d1ca4['execute'](_0x468cbe['commandName'],..._0x468cbe['commandParams']),_0x1dfed8['setSelection'](_0x3abc92);for(const _0x4578c1 of _0x3abc92)_0x4578c1['detach']();});}),_0x168c57['descriptionFactory']['registerElementLabel'](function(_0x41e198){const _0x61092a=!_0x5d1ca4['model']['schema']['isObject'](_0x41e198),_0x54dbf4=_0x41e198['previousSibling'],_0x24944f=_0x41e198['nextSibling'],_0x383771=_0x41e198['getAttribute']('listItemId'),_0x3c0a40=!_0x54dbf4||_0x54dbf4['getAttribute']('listItemId')!==_0x383771,_0x2bfc11=!_0x24944f||_0x24944f['getAttribute']('listItemId')!==_0x383771;return _0x61092a&&Boolean(_0x383771)&&_0x3c0a40&&_0x2bfc11;},_0x713c24=>o(_0x22fee3,'ELEMENT_LIST_ITEM',_0x713c24));}['_registerLegacyDescription'](){const _0x336e35=this['editor'],_0x24aa9d=_0x336e35['locale'];function _0x48767f(_0x2d6c12){const _0x5832f9=_0x336e35['commands']['get']('bulletedList')['value'],_0x5ee708=_0x336e35['commands']['get']('numberedList')['value'];return'numberedList'===_0x2d6c12?_0x5832f9:_0x5ee708;}_0x336e35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x42aef0){if('formatBlock'!=_0x42aef0['type'])return;const {data:_0x58fdb1}=_0x42aef0;if(!_0x58fdb1)return;let _0x4c3c4d,_0x39fe1b,_0xd74c94,_0x3af6a4;switch(_0x58fdb1['commandName']){case'bulletedList':_0xd74c94=_0x58fdb1['commandParams'][0x0]['forceValue'],_0x3af6a4=_0x48767f(_0x58fdb1['commandName']),_0x4c3c4d=_0xd74c94?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3af6a4&&_0x336e35['config']['get']('list.multiBlock')||(_0x4c3c4d='*Change\x20to:*\x20%0'),_0x39fe1b={'type':'format','content':o(_0x24aa9d,_0x4c3c4d,o(_0x24aa9d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xd74c94=_0x58fdb1['commandParams'][0x0]['forceValue'],_0x3af6a4=_0x48767f(_0x58fdb1['commandName']),_0x4c3c4d=_0xd74c94?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3af6a4&&_0x336e35['config']['get']('list.multiBlock')||(_0x4c3c4d='*Change\x20to:*\x20%0'),_0x39fe1b={'type':'format','content':o(_0x24aa9d,_0x4c3c4d,o(_0x24aa9d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4c3c4d='*Indent:*\x20%0',_0x39fe1b={'type':'format','content':o(_0x24aa9d,_0x4c3c4d,o(_0x24aa9d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4c3c4d=function(_0x4cac16){const _0x441dcb=_0x4cac16['getFirstRange']();let _0x3cbec3=_0x441dcb['start']['nodeAfter'];for(;_0x3cbec3&&_0x441dcb['containsItem'](_0x3cbec3);){if(_0x3cbec3['getAttribute']('listIndent')>0x0)return!0x1;_0x3cbec3=_0x3cbec3['nextSibling'];}return!0x0;}(_0x42aef0)?o(_0x24aa9d,'*Format:*\x20remove\x20from\x20%0',o(_0x24aa9d,function(_0x327bf1){return'ELEMENT_'+_0x327bf1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x42aef0))):o(_0x24aa9d,'*Outdent:*\x20%0',o(_0x24aa9d,'ELEMENT_LIST_ITEM')),_0x39fe1b={'type':'format','content':_0x4c3c4d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x58fdb1['multipleBlocks']&&(_0x4c3c4d='*Merge:*\x20%0',_0x39fe1b={'type':'deletion','content':o(_0x24aa9d,_0x4c3c4d,o(_0x24aa9d,'ELEMENT_LIST_ITEM'))});}return _0x39fe1b;});}}function Te(_0x505bbf){let _0x53f007=_0x505bbf['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x53f007;){const _0xe8cc31=_0x53f007['getAttribute']('listItemId');if(!_0xe8cc31)return!0x1;if(_0xe8cc31==_0x505bbf['data']['newValue'])return'newValue';if(_0xe8cc31==_0x505bbf['data']['oldValue'])return'oldValue';_0x53f007=_0x53f007['previousSibling'];}return!0x1;}class q extends _0x13e452{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5241e5=this['editor']['config']['get']('list.properties'),_0x2a98fe=this['editor']['plugins']['get']('TrackChangesEditing');_0x5241e5['styles']&&(_0x2a98fe['enableDefaultAttributesIntegration']('listStyle'),_0x2a98fe['registerBlockAttribute']('listStyle')),_0x5241e5['reversed']&&(_0x2a98fe['enableDefaultAttributesIntegration']('listReversed'),_0x2a98fe['registerBlockAttribute']('listReversed')),_0x5241e5['startIndex']&&(_0x2a98fe['enableDefaultAttributesIntegration']('listStart'),_0x2a98fe['registerBlockAttribute']('listStart'));const _0x44558c={'type':'format','content':''};_0x2a98fe['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3b8dae=this['editor']['locale'];_0x2a98fe['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3b8dae,'FORMAT_LIST_REVERSED')),_0x2a98fe['descriptionFactory']['registerDescriptionCallback'](_0x39f9b9=>{const {data:_0x2cb8ed}=_0x39f9b9;if(_0x2cb8ed&&'listReversed'==_0x2cb8ed['key'])return null==_0x2cb8ed['newValue']||0x0==_0x2cb8ed['newValue']&&null==_0x2cb8ed['oldValue']?_0x44558c:void 0x0;}),_0x2a98fe['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3b8dae,'FORMAT_LIST_START')),_0x2a98fe['descriptionFactory']['registerDescriptionCallback'](_0x455268=>{const {data:_0x4cdfce}=_0x455268;if(_0x4cdfce&&'listStart'==_0x4cdfce['key'])return null==_0x4cdfce['newValue']||0x1==_0x4cdfce['newValue']&&null==_0x4cdfce['oldValue']?_0x44558c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3019b5=>{if(_0x3019b5['batch']['isUndo'])return!0x1;let _0x102360=!0x1;const _0x405d5b=_0x2a98fe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50ba73=>{const _0x5cbd20=_0x2a98fe['_getAttributeKey'](_0x50ba73);return'listStart'==_0x5cbd20||'listReversed'==_0x5cbd20;});for(const _0x2933a1 of _0x405d5b){const _0x8e4ff0=_0x2933a1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x8e4ff0||'customNumbered'==_0x8e4ff0)continue;_0x2a98fe['_findSuggestions'](_0x2933a1['getFirstRange'](),'attribute')['find'](_0x1528fe=>'listType'==_0x2a98fe['_getAttributeKey'](_0x1528fe['suggestion']))||(_0x3019b5['removeMarker'](_0x2933a1['getFirstMarker']()),_0x102360=!0x0);}return _0x102360;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1aa33f){const _0x46b82b=this['editor']['locale'],{data:_0x58a582}=_0x1aa33f,_0x443b41={'type':'format','content':''};if(!_0x58a582||'listStyle'!=_0x58a582['key'])return;if(!_0x58a582['oldValue'])return'default'==_0x58a582['newValue']?_0x443b41:{'type':'format','content':''+o(_0x46b82b,'*Set\x20format:*\x20%0',o(_0x46b82b,this['_getTranslationKeyForListStyle'](_0x58a582['newValue'])))};if(!_0x58a582['newValue']){if('default'==_0x58a582['oldValue'])return _0x443b41;let _0x28f799=_0x1aa33f['head'];for(;_0x28f799;){if(_0x28f799['data']&&'listType'==_0x28f799['data']['key']&&_0x28f799['data']['newValue'])return _0x443b41;_0x28f799=_0x28f799['next'];}return{'type':'format','content':''+o(_0x46b82b,'*Remove\x20format:*\x20%0',o(_0x46b82b,this['_getTranslationKeyForListStyle'](_0x58a582['oldValue'])))};}if('default'!=_0x58a582['newValue'])return{'type':'format','content':''+o(_0x46b82b,'*Set\x20format:*\x20%0',o(_0x46b82b,this['_getTranslationKeyForListStyle'](_0x58a582['newValue'])))};let _0x287bbb=_0x1aa33f['head'];for(;_0x287bbb;){if(_0x287bbb['data']&&'listType'==_0x287bbb['data']['key']&&_0x287bbb['data']['newValue']&&_0x287bbb['data']['oldValue'])return _0x443b41;_0x287bbb=_0x287bbb['next'];}return{'type':'format','content':o(_0x46b82b,'*Set\x20format:*\x20%0',o(_0x46b82b,'ELEMENT_'+_0x1aa33f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x25df69=this['editor'],_0x403187=_0x25df69['locale'];_0x25df69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27f39b=>{if('formatBlock'!=_0x27f39b['type'])return;const {data:_0x459af8}=_0x27f39b;if(!_0x459af8)return;let _0x47bf6f,_0x286b0f;switch(_0x459af8['commandName']){case'listStyle':_0x47bf6f='*Change\x20to:*\x20%0',_0x286b0f={'type':'format','content':o(_0x403187,_0x47bf6f,o(_0x403187,this['_getTranslationKeyForListStyle'](_0x459af8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47bf6f=_0x459af8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x286b0f={'type':'format','content':o(_0x403187,_0x47bf6f)};break;case'listStart':_0x47bf6f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x286b0f={'type':'format','content':o(_0x403187,_0x47bf6f,_0x459af8['commandParams'][0x0]['startIndex'])};}return _0x286b0f;});}['_getTranslationKeyForListStyle'](_0x2073cd){return'ELEMENT_'+function(_0x15ec7f){if(Se['includes'](_0x15ec7f))return'bulleted';if(_e['includes'](_0x15ec7f))return'numbered';return null;}(_0x2073cd)['toUpperCase']()+'_LIST_'+_0x2073cd['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x13e452{['afterInit'](){const _0x4c4c86=this['editor'];_0x4c4c86['commands']['get']('emoji')&&_0x4c4c86['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x13e452{static get['requires'](){return[_0x3e1d1a];}['init'](){const _0x32a208=this['editor'],_0x53a669=_0x32a208['plugins']['get']('TrackChangesEditing'),_0x31bda4=_0x32a208['commands']['get']('enter');_0x53a669['enableCommand']('enter',()=>{_0x32a208['model']['change'](_0x28b041=>{const _0x15e70d=_0x32a208['model']['document']['selection'],_0xf4020a=_0x15e70d['getFirstPosition'](),_0x5445bf=_0x158d49['fromRange'](_0x15e70d['getFirstRange']());if(_0x31bda4['enterBlock'](_0x28b041)){const _0x5da2bd=_0x32a208['model']['createPositionAt'](_0xf4020a['parent']['nextSibling'],0x0),_0x22e931=_0x28b041['createRange'](_0xf4020a,_0x5da2bd);_0x53a669['markInsertion'](_0x22e931);}else _0x28b041['setSelection'](_0x28b041['createRange'](_0x5445bf['end']));_0x5445bf['detach'](),_0x31bda4['fire']('afterExecute',{'writer':_0x28b041});});}),_0x32a208['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x32a208,'split'),{'priority':'high'}),_0x32a208['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xe4ffe0,_0x14ce75,_0x37174f)=>{const _0x1eff62=_0x37174f['mapper']['markerNameToElements'](_0x14ce75['markerName']);if(_0x1eff62){for(const _0x144379 of _0x1eff62)_0x144379['hasClass']('ck-suggestion-marker-split')&&(_0x37174f['mapper']['unbindElementFromMarkerName'](_0x144379,_0x14ce75['markerName']),_0x37174f['writer']['remove'](_0x144379));}},{'priority':'high'}),_0x32a208['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x42113b,_0x177f2c,_0x17052e)=>{_0x17052e['options']['showSuggestionHighlights']&&De(_0x32a208,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x42113b,_0x177f2c,_0x17052e);},{'priority':'high'});}}class Q extends _0x13e452{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x532ee8=this['editor']['plugins']['get']('TrackChangesEditing');_0x532ee8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x532ee8['enableCommand']('findNext'),_0x532ee8['enableCommand']('findPrevious'),_0x532ee8['enableCommand']('replace'),_0x532ee8['enableCommand']('replaceAll');}['handleFindCommand'](_0x4af7ff,_0x3d78f,_0x206453={}){const _0x202c2b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4af7ff(_0x5f1d44=>{let _0x4a1c88=('string'==typeof _0x3d78f?_0x202c2b['findByTextCallback'](_0x3d78f,_0x206453):_0x3d78f)(_0x5f1d44);Array['isArray'](_0x4a1c88)&&(_0x4a1c88={'results':_0x4a1c88,'searchText':'string'==typeof _0x3d78f?_0x3d78f:''});const _0x4f93c=_0x4a1c88['results']['filter'](_0x4c4695=>!0x1===this['_isInDeletionRange'](_0x4c4695,_0x5f1d44['item']));return{..._0x4a1c88,'results':_0x4f93c};},_0x206453);}['_isInDeletionRange'](_0x5ae141,_0x451fb3){const _0x54a201=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x451fb3,_0x5ae141['start']),this['editor']['model']['createPositionAt'](_0x451fb3,_0x5ae141['end']));for(const _0x384168 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x54a201['getIntersection'](_0x384168['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 _0x13e452{['afterInit'](){const _0x13037f=this['editor']['locale'],_0x172228=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf6c9ef,commandName:_0x50b778}of eo)this['editor']['plugins']['has'](_0xf6c9ef)&&(_0x172228['enableDefaultAttributesIntegration'](_0x50b778),_0x172228['registerInlineAttribute'](_0x50b778));_0x172228['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x13037f,'FORMAT_FONT_SIZE')),_0x172228['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x13037f,'FORMAT_FONT_FAMILY')),_0x172228['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x13037f,'FORMAT_FONT_COLOR')),_0x172228['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x13037f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b002b=this['editor'],_0x39b5c0=_0x4b002b['locale'];_0x4b002b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40dda3=>{const _0x3d933c=_0x39b5c0['t'];if('formatInline'!=_0x40dda3['type'])return;const {data:_0x1ec455}=_0x40dda3;if(null!=_0x1ec455){if('fontSize'==_0x1ec455['commandName']){const _0xaeea1a=_0x1ec455['commandParams'][0x0]['value'];if(_0xaeea1a){const _0xc98009=_0x3d933c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x58f12c=>_0x58f12c['model']==_0xaeea1a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x39b5c0,'*Set\x20font\x20size:*\x20%0',_0xc98009)};}return{'type':'format','content':o(_0x39b5c0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1ec455['commandName']){const _0x5937db=_0x1ec455['commandParams'][0x0]['value'];return _0x5937db?{'type':'format','content':o(_0x39b5c0,'*Set\x20font\x20family:*\x20%0',_0x5937db)}:{'type':'format','content':o(_0x39b5c0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1ec455['commandName']){const _0x58b2e0=_0x1ec455['commandParams'][0x0]['value'];if(_0x58b2e0){const _0xd4ba8=_0x1d2800(this['editor']['config']['get']('fontColor.colors'))['find'](_0x34a154=>_0x34a154['model']==_0x58b2e0);let _0x3ce7e4=_0x58b2e0,_0x1868b7='';return _0xd4ba8&&(_0x3ce7e4=_0xd4ba8['label'],_0x1868b7=_0x3d933c(_0x3ce7e4)['toLowerCase']()),{'type':'format','content':o(_0x39b5c0,'*Set\x20font\x20color:*\x20%0',_0x1868b7)['trim'](),'color':{'value':_0x58b2e0,'title':_0x1868b7||_0x3ce7e4}};}return{'type':'format','content':o(_0x39b5c0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1ec455['commandName']){const _0x219279=_0x1ec455['commandParams'][0x0]['value'];if(_0x219279){const _0x22134f=_0x1d2800(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4f5209=>_0x4f5209['model']==_0x219279);let _0x506463=_0x219279,_0x49d8de='';return _0x22134f&&(_0x506463=_0x22134f['label'],_0x49d8de=_0x3d933c(_0x506463)['toLowerCase']()),{'type':'format','content':o(_0x39b5c0,'*Set\x20font\x20background\x20color:*\x20%0',_0x49d8de)['trim'](),'color':{'value':_0x219279,'title':_0x49d8de||_0x506463}};}return{'type':'format','content':o(_0x39b5c0,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x13e452{['afterInit'](){const _0x2a3870=this['editor'],_0x3dc58e=_0x2a3870['plugins']['get']('TrackChangesEditing'),_0x4b3172=_0x2a3870['commands']['get']('copyFormat'),_0x2f5d03=_0x2a3870['commands']['get']('pasteFormat');_0x4b3172&&_0x2f5d03&&(_0x3dc58e['enableDefaultAttributesIntegration']('pasteFormat'),_0x3dc58e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x76eac2=this['editor'],_0x597da3=_0x76eac2['locale'];_0x76eac2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf99766=>{if('formatBlock'!=_0xf99766['type']&&'formatInline'!=_0xf99766['type'])return;const {data:_0x440bf8}=_0xf99766;if(_0x440bf8&&'pasteFormat'===_0x440bf8['commandName']){const _0x156eb4=[],_0x33637f=_0x440bf8['commandParams'][0x0];for(const [_0x39a877,_0x4706a2]of Object['entries'](_0x33637f))_0x156eb4['push'](ro(_0x76eac2,_0x39a877,_0x4706a2));return _0x156eb4['length']?{'type':'format','content':o(_0x597da3,'*Set\x20format\x20to:*\x20%0',_0x156eb4['join'](',\x20'))}:{'type':'format','content':o(_0x597da3,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x407cc0,_0x3cd10a,_0x1eba09){const _0x4f369b=_0x407cc0['locale']['t'],_0x177d58=_0x3cd10a['split'](/(?=[A-Z])/)['join']('\x20'),_0x4ee4e9=_0x4f369b(_0x177d58['charAt'](0x0)['toUpperCase']()+_0x177d58['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1eba09)return _0x4ee4e9;if('fontColor'===_0x3cd10a||'fontBackgroundColor'===_0x3cd10a){const _0x1b2e38=_0x1d2800(_0x407cc0['config']['get']('fontColor.colors'))['find'](_0x3a6505=>_0x3a6505['model']==_0x1eba09);return _0x4ee4e9+'\x20('+(_0x1b2e38?_0x4f369b(_0x1b2e38['label'])['toLowerCase']():_0x1eba09)+')';}if('fontSize'===_0x3cd10a&&isNaN(parseFloat(_0x1eba09))){const _0x448cc6=_0x407cc0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x407cc0['config']['get']('fontSize.options'))['find'](_0x5d3647=>_0x5d3647['model']==_0x1eba09);return _0x4ee4e9+'\x20('+(_0x448cc6?_0x4f369b(_0x448cc6['title'])['toLowerCase']():_0x1eba09)+')';}return _0x4ee4e9+'\x20('+_0x1eba09+')';}class Z extends _0x13e452{['_headingOptions'];['afterInit'](){const _0x3c7245=this['editor'];if(!_0x3c7245['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3c7245['config']['get']('heading.options');const _0x1d7b3f=_0x3c7245['locale'],_0x3b5433=_0x3c7245['plugins']['get']('TrackChangesEditing');_0x3b5433['enableDefaultAttributesIntegration']('heading');for(const _0x11e6ce of this['_headingOptions'])'paragraph'!=_0x11e6ce['model']&&_0x3b5433['descriptionFactory']['registerElementLabel'](_0x11e6ce['model'],_0x13cb3d=>{const _0x340d5e=this['_getHeadingLevel'](_0x11e6ce['model']);return null!==_0x340d5e?_0x3c3cfa(_0x13cb3d,_0x340d5e):_0x887661(_0x13cb3d,_0x11e6ce['title']);});function _0x3c3cfa(_0x488d0e,_0x568623){return o(_0x1d7b3f,'ELEMENT_HEADING',[_0x488d0e,_0x568623]);}function _0x887661(_0x3b2caf,_0x59158d){return o(_0x1d7b3f,'ELEMENT_HEADING_CUSTOM',[_0x3b2caf,_0x59158d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12f505=this['editor'],_0xd3c34a=_0x12f505['locale'];function _0x3bfb99(_0x1696e6,_0x29c9fb){return o(_0xd3c34a,'ELEMENT_HEADING_CUSTOM',[_0x1696e6,_0x29c9fb]);}_0x12f505['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24fe7f=>{if('formatBlock'!=_0x24fe7f['type'])return;const {data:_0xca69e9}=_0x24fe7f;if(_0xca69e9&&'heading'==_0xca69e9['commandName']){const _0x35392d=_0xca69e9['commandParams'][0x0]['value'],_0x5b1701=this['_getHeadingLevel'](_0x35392d);if(null!==_0x5b1701)return{'type':'format','content':o(_0xd3c34a,'*Change\x20to:*\x20%0',(_0x1b858b=0x1,_0x542686=_0x5b1701,o(_0xd3c34a,'ELEMENT_HEADING',[_0x1b858b,_0x542686])))};const _0x5b2f78=this['_headingOptions']['find'](_0x52d312=>_0x52d312['model']===_0x35392d)['title'];return{'type':'format','content':o(_0xd3c34a,'*Change\x20to:*\x20%0',_0x3bfb99(0x1,_0x5b2f78))};}var _0x1b858b,_0x542686;});}['_getHeadingLevel'](_0x33642d){const _0x1fb4cc=_0x33642d['match'](/^heading(\d+)/);if(_0x1fb4cc)return _0x1fb4cc[0x1];const _0x22a315=this['_headingOptions']?.['find'](_0x29e123=>_0x29e123['model']==_0x33642d);if(_0x22a315&&_0x22a315['view']){const _0x6213c8=_0x22a315['view'],_0x15fb5f=(_0x6213c8['name']??_0x6213c8)['match'](/^h(\d+)/);if(_0x15fb5f)return _0x15fb5f[0x1];}return null;}}class tt extends _0x13e452{['afterInit'](){const _0x11c000=this['editor'];if(!_0x11c000['plugins']['has']('HighlightEditing'))return;const _0x286ea5=_0x11c000['plugins']['get']('TrackChangesEditing'),_0xe07e3b=_0x11c000['locale'];_0x286ea5['enableDefaultAttributesIntegration']('highlight'),_0x286ea5['registerInlineAttribute']('highlight'),_0x286ea5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xe07e3b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x409b5c=this['editor'],_0x2557e1=_0x409b5c['locale'];_0x409b5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52e383=>{if('formatInline'!=_0x52e383['type'])return;const {data:_0xf01b70}=_0x52e383;if(_0xf01b70&&'highlight'==_0xf01b70['commandName']){const _0xf198be=_0x2557e1['t'],_0x426855=_0xf01b70['commandParams'][0x0]['value'];if(_0x426855){const _0x50f423=_0x409b5c['config']['get']('highlight.options')['find'](_0x28e47d=>_0x28e47d['model']==_0x426855),_0x5a3749=_0xf198be(_0x50f423['title'])['toLowerCase']();return{'type':'format','content':o(_0x2557e1,'*Set\x20highlight:*\x20%0',_0x5a3749),'color':{'value':_0x50f423['color'],'title':_0x50f423['title']}};}return{'type':'format','content':o(_0x2557e1,'*Remove\x20highlight*',o(_0x2557e1,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x13e452{['afterInit'](){const _0x41414d=this['editor'];if(!_0x41414d['plugins']['has']('HorizontalLineEditing'))return;_0x41414d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x357029=_0x41414d['plugins']['get']('TrackChangesEditing'),_0x2c9584=_0x41414d['locale'];_0x357029['descriptionFactory']['registerElementLabel']('horizontalLine',_0x553237=>o(_0x2c9584,'ELEMENT_HORIZONTAL_LINE',_0x553237)),_0x41414d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1b6b57,{writer:_0xe50b02,options:_0x457553})=>{if(!_0x457553['showSuggestionHighlights'])return null;const _0x1764d7=_0xe50b02['createContainerElement']('div'),_0x149c12=_0xe50b02['createEmptyElement']('hr');return _0xe50b02['addClass']('ck-horizontal-line',_0x1764d7),_0xe50b02['insert'](_0xe50b02['createPositionAt'](_0x1764d7,0x0),_0x149c12),_0x1764d7;},'converterPriority':'high'});}}class nt extends _0x13e452{['afterInit'](){const _0x19bd75=this['editor'];if(!_0x19bd75['plugins']['has']('HtmlEmbed'))return;const _0x58f932=_0x19bd75['plugins']['get']('TrackChangesEditing'),_0x123dda=_0x19bd75['locale'];_0x58f932['descriptionFactory']['registerElementLabel']('rawHtml',_0x53ecc5=>o(_0x123dda,'ELEMENT_HTML_EMBED',_0x53ecc5)),_0x58f932['enableDefaultAttributesIntegration']('htmlEmbed'),_0x58f932['registerBlockAttribute']('value'),_0x58f932['descriptionFactory']['registerDescriptionCallback'](_0x440867=>{if('attribute'!=_0x440867['type'])return;const {data:_0x350a06}=_0x440867;if(_0x350a06&&'value'==_0x350a06['key']&&_0x440867['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x37fb4f=o(_0x123dda,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x123dda,'*Change\x20%0\x20content*',_0x37fb4f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51f18c=this['editor'],_0x5557a3=_0x51f18c['locale'];_0x51f18c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x401adb=>{if('formatBlock'!=_0x401adb['type'])return;const {data:_0x41a4ea}=_0x401adb;if(_0x41a4ea&&'htmlEmbed'==_0x41a4ea['commandName']){const _0x5257a2=o(_0x5557a3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5557a3,'*Change\x20%0\x20content*',_0x5257a2)};}});}}class et extends _0x13e452{['afterInit'](){const _0x11381b=this['editor'];if(!_0x11381b['plugins']['has']('ImageEditing'))return;const _0x1c69f3=_0x11381b['plugins']['get']('TrackChangesEditing'),_0x11f7e3=_0x11381b['plugins']['get']('ImageUtils'),_0x46dced=_0x11381b['locale'];_0x1c69f3['enableCommand']('insertImage'),_0x1c69f3['descriptionFactory']['registerElementLabel']('imageBlock',_0x52037d=>o(_0x46dced,'ELEMENT_IMAGE',_0x52037d)),_0x1c69f3['descriptionFactory']['registerElementLabel']('imageInline',_0x466ab2=>o(_0x46dced,'ELEMENT_INLINE_IMAGE',_0x466ab2)),_0x1c69f3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x46dced,'ELEMENT_CAPTION')),_0x11381b['plugins']['has']('ImageUploadEditing')&&_0x1c69f3['enableCommand']('uploadImage'),_0x11381b['plugins']['has']('ImageBlockEditing')&&_0x11381b['plugins']['has']('ImageInlineEditing')&&(_0x1c69f3['enableCommand']('imageTypeInline',(_0x41a1f4,_0x169da7)=>{const _0x159e23=_0x11f7e3['getClosestSelectedImageElement'](_0x11381b['model']['document']['selection']);_0x11381b['model']['change'](()=>{_0x1c69f3['markBlockFormat'](_0x159e23,{'commandName':'imageTypeInline','commandParams':[_0x169da7]},[],'convertBlockImageToInline');});}),_0x1c69f3['enableCommand']('imageTypeBlock',(_0x94e5f3,_0x4cb06f)=>{_0x11381b['model']['change'](_0x571121=>{let _0x5e6668=_0x11f7e3['getClosestSelectedImageElement'](_0x11381b['model']['document']['selection']),_0x4e1bad=_0x571121['createRangeOn'](_0x5e6668);const _0x3889b9=_0x488dc6['fromPosition'](_0x4e1bad['start'],'toPrevious'),_0x3bafa8=_0x488dc6['fromPosition'](_0x4e1bad['end'],'toNext');_0x1c69f3['forceDefaultExecution'](()=>_0x94e5f3(_0x4cb06f)),_0x5e6668=_0x11f7e3['getClosestSelectedImageElement'](_0x11381b['model']['document']['selection']),_0x4e1bad=_0x571121['createRangeOn'](_0x5e6668);const _0x40139c=_0x571121['createRange'](_0x3889b9,_0x3bafa8);_0x3889b9['detach'](),_0x3bafa8['detach'](),_0x1c69f3['markBlockFormat'](_0x5e6668,{'commandName':'imageTypeInline','commandParams':[_0x4cb06f]},[],'convertInlineImageToBlock'),_0x40139c['start']['isBefore'](_0x4e1bad['start'])&&_0x1c69f3['markInsertion'](_0x571121['createRange'](_0x40139c['start'],_0x4e1bad['start']),'convertInlineImageToBlock'),_0x4e1bad['end']['isBefore'](_0x40139c['end'])&&_0x1c69f3['markInsertion'](_0x571121['createRange'](_0x4e1bad['end'],_0x40139c['end']),'convertInlineImageToBlock');});}),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1c69f3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x348dc6])=>{const _0x1feae5=_0x1c69f3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1b0baf=_0x348dc6['start'],_0x4e7692=_0x348dc6['end'];const _0x5b781b=_0x11381b['model']['schema']['getNearestSelectionRange'](_0x1b0baf,'backward'),_0xe35259=_0x11381b['model']['schema']['getNearestSelectionRange'](_0x4e7692,'forward');_0x5b781b['isCollapsed']&&(_0x1b0baf=_0x5b781b['start']),_0xe35259['isCollapsed']&&(_0x4e7692=_0xe35259['end']),_0x1feae5([_0x11381b['model']['createRange'](_0x1b0baf,_0x4e7692)]);}),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xa81911),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xa81911)),_0x11381b['plugins']['has']('ImageCaptionEditing')&&(_0x1c69f3['enableCommand']('toggleImageCaption',(_0x1ec58c,_0xd82105)=>{const _0x5289e9=_0x11381b['plugins']['get']('ImageCaptionUtils');let _0x55115a=_0x11f7e3['getClosestSelectedImageElement'](_0x11381b['model']['document']['selection']),_0x2b5479=_0x5289e9['getCaptionFromImageModelElement'](_0x55115a);_0x11381b['model']['change'](()=>{if(_0x2b5479)return void _0x1c69f3['markDeletion'](_0x11381b['model']['createRangeOn'](_0x2b5479));const _0x1ff2f7=_0x11f7e3['isBlockImage'](_0x55115a);_0x1ec58c(_0xd82105),_0x55115a=_0x11f7e3['getClosestSelectedImageElement'](_0x11381b['model']['document']['selection']),_0x2b5479=_0x5289e9['getCaptionFromImageModelElement'](_0x55115a),_0x1c69f3['markInsertion'](_0x11381b['model']['createRangeOn'](_0x2b5479),_0x1ff2f7?null:'imageCaption');});}),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xa81911));const _0x540e37=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x10b9b2(_0x404e58,_0x496f7f){const _0x20b971=_0x540e37['findIndex'](({type:_0x2973bf,subType:_0x30fe96})=>_0x404e58['type']==_0x2973bf&&_0x404e58['subType']==_0x30fe96),_0x5e551f=_0x540e37['findIndex'](({type:_0x260f4e,subType:_0x3896c4})=>_0x496f7f['type']==_0x260f4e&&_0x496f7f['subType']==_0x3896c4);if(_0x20b971<0x0||_0x5e551f<0x0)return!0x1;const _0x11ef4d=_0x404e58['getFirstRange'](),_0x56ffdb=_0x496f7f['getFirstRange']();if((0x0==_0x20b971||0x1==_0x20b971)&&0x2==_0x5e551f&&_0x11ef4d['isIntersecting'](_0x56ffdb))return!0x0;if(0x2==_0x20b971&&0x3==_0x5e551f){const _0x5a32ed=_0x1c69f3['_findSuggestions'](_0x11ef4d,'insertion')['filter'](({suggestion:_0x3dc81d,meta:_0x25566e})=>_0x25566e['isOwn']&&'convertInlineImageToBlock'==_0x3dc81d['subType']);if(_0x5a32ed['length']>0x1&&_0x56ffdb['end']['isEqual'](_0x11ef4d['start']))return!0x0;if(0x1==_0x5a32ed['length']&&(_0x11ef4d['start']['isEqual'](_0x56ffdb['end'])||_0x11ef4d['end']['isEqual'](_0x56ffdb['start'])))return!0x0;}if(0x3==_0x20b971&&0x3==_0x5e551f&&_0x11ef4d['start']['isBefore'](_0x56ffdb['start'])){const _0x36b7d6=_0x11ef4d['end']['nodeAfter'],_0x57437e=_0x56ffdb['start']['nodeBefore'];return _0x11f7e3['isBlockImage'](_0x36b7d6)&&_0x36b7d6===_0x57437e;}return!0x1;}function _0xa81911(_0x294d9d,_0x23e8bb){return _0x10b9b2(_0x294d9d,_0x23e8bb)?[_0x294d9d,_0x23e8bb]:_0x10b9b2(_0x23e8bb,_0x294d9d)?[_0x23e8bb,_0x294d9d]:null;}_0x11381b['plugins']['has']('ImageResize')&&(_0x1c69f3['enableDefaultAttributesIntegration']('resizeImage'),_0x1c69f3['registerBlockAttribute']('resizedWidth'),_0x1c69f3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x46dced,'FORMAT_IMAGE_SIZE'))),_0x11381b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1c69f3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1c69f3['registerBlockAttribute']('alt')),_0x11381b['plugins']['has']('PictureEditing')&&(_0x1c69f3['registerBlockAttribute']('sources'),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0xe40826=>{if('attribute'!=_0xe40826['type'])return;const {data:_0x1b9171}=_0xe40826;return _0x1b9171&&'sources'==_0x1b9171['key']?{'type':'format','content':''}:void 0x0;})),_0x11381b['plugins']['has']('ImageSizeAttributes')&&(_0x1c69f3['registerBlockAttribute']('width'),_0x1c69f3['registerBlockAttribute']('height'),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0x14db52=>{if('attribute'!=_0x14db52['type'])return;const {data:_0x496969}=_0x14db52;return!_0x496969||'width'!=_0x496969['key']&&'height'!=_0x496969['key']?void 0x0:{'type':'format','content':''};})),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0x2b8645=>{if(!!_0x540e37['find'](({type:_0x1b45a3,subType:_0x5b4f41})=>_0x2b8645['type']==_0x1b45a3&&_0x2b8645['subType']==_0x5b4f41))return _0x2b8645['previous']?{}:void 0x0;}),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0x37de6f=>{if('insertion'==_0x37de6f['type']||'deletion'==_0x37de6f['type']){const _0x5783ba=_0x37de6f['getContainedElement']();if(_0x5783ba&&_0x5783ba['is']('element','caption'))return{'type':'insertion'==_0x37de6f['type']?'addObject':'removeObject','element':_0x5783ba,'quantity':0x1};}}),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0x22d1d7=>'formatBlock'==_0x22d1d7['type']&&'convertInlineImageToBlock'==_0x22d1d7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x22d1d7['type']&&'convertBlockImageToInline'==_0x22d1d7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0x19a150=>{if('attribute'!=_0x19a150['type'])return;const {data:_0x28190f}=_0x19a150;if(!_0x28190f||'alt'!=_0x28190f['key'])return;const _0x5a5fd8=_0x28190f['newValue'];return _0x5a5fd8?{'type':'format','content':o(_0x46dced,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a5fd8+'\x22')}:{'type':'format','content':o(_0x46dced,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13ace4=this['editor'],_0x16ce4e=_0x13ace4['locale'];_0x13ace4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3db944=>{if('formatBlock'!=_0x3db944['type']&&'formatInline'!=_0x3db944['type'])return;const {data:_0x2441a5}=_0x3db944;if(_0x2441a5){if('imageTextAlternative'==_0x2441a5['commandName']){const _0x293e7d=_0x2441a5['commandParams'][0x0]['newValue'];return _0x293e7d?{'type':'format','content':o(_0x16ce4e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x293e7d+'\x22')}:{'type':'format','content':o(_0x16ce4e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2441a5['commandName']){const _0x5c665f=_0x2441a5['commandParams'][0x0]['width'];return _0x5c665f?{'type':'format','content':o(_0x16ce4e,'*Set\x20image\x20width:*\x20%0',_0x5c665f)}:{'type':'format','content':o(_0x16ce4e,'*Reset\x20image\x20width*')};}}});}}class st extends _0x13e452{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1d7787=this['editor']['locale'],_0x109690=this['editor']['plugins']['get']('TrackChangesEditing');_0x109690['enableDefaultAttributesIntegration']('replaceImageSource'),_0x109690['registerBlockAttribute']('src'),_0x109690['descriptionFactory']['registerDescriptionCallback'](_0x3ce29c=>{if('attribute'!=_0x3ce29c['type'])return;const {data:_0x3f33ba}=_0x3ce29c;return _0x3f33ba&&'src'==_0x3f33ba['key']?_0x3f33ba['newValue']&&_0x3f33ba['oldValue']?{'type':'format','content':o(_0x1d7787,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fc2bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fc2bf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4fc2bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fc2bf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4fc2bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x381b72=this['editor'],_0x10a242=_0x381b72['locale'];_0x381b72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x517c7d=>{if('formatBlock'!=_0x517c7d['type']&&'formatInline'!=_0x517c7d['type'])return;const {data:_0x5ea905}=_0x517c7d;if(!_0x5ea905||'replaceImageSource'!=_0x5ea905['commandName'])return;return{'type':'format','content':o(_0x10a242,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x13e452{['afterInit'](){const _0x392ef9=this['editor'];if(!_0x392ef9['plugins']['has']('ImageStyleEditing'))return;const _0x1658b3=_0x392ef9['plugins']['get']('TrackChangesEditing'),_0x3ce559=_0x392ef9['plugins']['get']('ImageUtils'),_0x479f87={};_0x1658b3['enableCommand']('imageStyle',(_0x38c206,_0x33f0db)=>{const _0x1ac35d=_0x392ef9['plugins']['get']('Users')['me'],_0x363d42=_0x392ef9['commands']['get']('imageStyle');let _0x3d6506=_0x3ce559['getClosestSelectedImageElement'](_0x392ef9['model']['document']['selection']),_0x22f2be=_0x392ef9['model']['createRangeOn'](_0x3d6506),_0x48d7c3=_0x363d42['value'];if(_0x48d7c3==_0x33f0db['value'])return;const _0x395fb0={'commandName':'imageStyle','commandParams':[_0x33f0db],'formatGroupId':_0x22223a()};_0x392ef9['model']['change'](()=>{if(_0x1658b3['getSuggestions']()['filter'](_0x561c76=>_0x561c76['isInContent']&&_0x1ac35d==_0x561c76['author']&&('formatBlock'==_0x561c76['type']||'formatInline'==_0x561c76['type'])&&('imageStylePreApply'==_0x561c76['subType']||'imageStylePostApply'==_0x561c76['subType'])&&_0x561c76['getFirstRange']()['isEqual'](_0x22f2be))['forEach'](_0x345ea3=>_0x1658b3['discardSuggestion'](_0x345ea3['head'])),_0x3d6506=_0x3ce559['getClosestSelectedImageElement'](_0x392ef9['model']['document']['selection']),_0x22f2be=_0x392ef9['model']['createRangeOn'](_0x3d6506),_0x363d42['refresh'](),_0x392ef9['commands']['get']('imageTypeInline')['refresh'](),_0x392ef9['commands']['get']('imageTypeBlock')['refresh'](),_0x48d7c3=_0x363d42['value'],_0x48d7c3!=_0x33f0db['value'])return _0x3ce559['isInlineImage'](_0x3d6506)&&_0x363d42['shouldConvertImageType'](_0x33f0db['value'],_0x3d6506)?(_0x38c206({..._0x33f0db,'setImageSizes':!0x1}),_0x3d6506=_0x3ce559['getClosestSelectedImageElement'](_0x392ef9['model']['document']['selection']),void _0x1658b3['markBlockFormat'](_0x3d6506,{..._0x395fb0,'commandReversedParams':[{'value':_0x48d7c3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3ce559['isBlockImage'](_0x3d6506)?_0x1658b3['markBlockFormat'](_0x3d6506,_0x395fb0,[],'imageStylePostApply'):_0x1658b3['markInlineFormat'](_0x22f2be,_0x395fb0,'imageStylePostApply'));});});for(const _0x6cf4bd of _0x392ef9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x479f87[_0x6cf4bd['name']]=_0x6cf4bd['title']['toLowerCase']();_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x487dde])=>{_0x3ce559['setImageNaturalSizeAttributes'](_0x487dde['getContainedElement']());}),_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2a455a,_0x40f6c6)=>{_0x1658b3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2a455a,{'commandName':_0x40f6c6['commandName'],'commandParams':_0x40f6c6['commandReversedParams']});}),_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x339406,_0x22e4fe){if(_0x49ac77(_0x339406,_0x22e4fe))return[_0x339406,_0x22e4fe];if(_0x49ac77(_0x22e4fe,_0x339406))return[_0x22e4fe,_0x339406];return null;});const _0x3af73e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x49ac77(_0x3e59d2,_0xf9d85c){const _0x1fe4dc=_0x3af73e['findIndex'](({type:_0x2a610f,subType:_0x1a6cf1})=>_0x3e59d2['type']==_0x2a610f&&_0x3e59d2['subType']==_0x1a6cf1),_0x3602f3=_0x3af73e['findIndex'](({type:_0x35054d,subType:_0x40df29})=>_0xf9d85c['type']==_0x35054d&&_0xf9d85c['subType']==_0x40df29);if(_0x1fe4dc<0x0||_0x3602f3<0x0)return!0x1;const _0xf99737=_0x3e59d2['getFirstRange'](),_0x2dab70=_0xf9d85c['getFirstRange']();if((0x0==_0x1fe4dc||0x1==_0x1fe4dc)&&0x2==_0x3602f3&&_0xf99737['isIntersecting'](_0x2dab70))return!0x0;if(0x2==_0x1fe4dc&&0x3==_0x3602f3){const _0x5c2663=_0x1658b3['_findSuggestions'](_0xf99737,'insertion')['filter'](({suggestion:_0x4d0123,meta:_0x2ad9a1})=>_0x2ad9a1['isOwn']&&'convertInlineImageToBlock'==_0x4d0123['subType']);if(_0x5c2663['length']>0x1&&_0x2dab70['end']['isEqual'](_0xf99737['start']))return!0x0;if(0x1==_0x5c2663['length']&&(_0xf99737['start']['isEqual'](_0x2dab70['end'])||_0xf99737['end']['isEqual'](_0x2dab70['start'])))return!0x0;}if(0x3==_0x1fe4dc&&0x3==_0x3602f3&&_0xf99737['start']['isBefore'](_0x2dab70['start'])){const _0x880434=_0xf99737['end']['nodeAfter'],_0x4e768d=_0x2dab70['start']['nodeBefore'];return _0x3ce559['isBlockImage'](_0x880434)&&_0x880434===_0x4e768d;}return!0x1;}_0x392ef9['model']['document']['registerPostFixer'](()=>{let _0x10c7ed=!0x1;const _0x93446=Array['from'](_0x392ef9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bd5b1,data:_0x987769}of _0x93446){const {group:_0x231893,type:_0x1001ea,subType:_0x45110c,id:_0x122fd2}=_0x1658b3['_splitMarkerName'](_0x1bd5b1);if('suggestion'==_0x231893&&_0x1658b3['hasSuggestion'](_0x122fd2)){if('formatBlock'==_0x1001ea&&('imageStylePreApply'==_0x45110c||'imageStylePostApply'==_0x45110c)){const _0x36d2ee=_0x1658b3['getSuggestion'](_0x122fd2);if(_0x987769['newRange']){const _0xdfa59f=_0x36d2ee['getFirstRange']()['getContainedElement']();if(_0x3ce559['isBlockImage'](_0xdfa59f))continue;_0x1658b3['discardSuggestion'](_0x36d2ee),_0x10c7ed=!0x0;}}if('insertion'==_0x1001ea&&'imageCaption'==_0x45110c&&!_0x987769['newRange']){const _0x1ea1d2=_0x1658b3['getSuggestion'](_0x122fd2);_0x1ea1d2['next']&&_0x1ea1d2['next']['isInContent']&&(_0x1658b3['discardSuggestion'](_0x1ea1d2['next']),_0x10c7ed=!0x0);}}}return _0x10c7ed;}),this['_registerLegacyDescription'](_0x479f87);}['_registerLegacyDescription'](_0x326ab0){const _0xc7ad5f=this['editor'],_0x3bc7c0=_0xc7ad5f['locale'];_0xc7ad5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36d835=>{if('formatBlock'!=_0x36d835['type']&&'formatInline'!=_0x36d835['type'])return;const {data:_0x44ef45}=_0x36d835;if(!_0x44ef45||'imageStyle'!=_0x44ef45['commandName'])return;const _0x207b0b=_0x44ef45['commandParams'][0x0]['value'];return _0x31d1da('side'===_0x207b0b?o(_0x3bc7c0,'FORMAT_SIDE_IMAGE'):_0x326ab0[_0x207b0b]||_0x207b0b);function _0x31d1da(_0x287aff){return{'type':'format','content':o(_0x3bc7c0,'*Format:*\x20%0',_0x287aff)};}});}}class rt extends _0x13e452{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x48b062){super(_0x48b062),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2eca17=this['editor'],_0x44bd77=_0x2eca17['commands']['get']('importWord'),_0x4e8c80=_0x2eca17['commands']['get']('trackChanges');_0x44bd77&&(_0x44bd77['on']('execute',(_0x57c54b,[,_0xb11b53])=>{this['_trackChangesValueDuringImport']=_0x4e8c80['value'],_0xb11b53['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x44bd77,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x44bd77,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4e8c80['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2eca17['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x15c5e8,_0x39250f){const {suggestions:_0x378962}=_0x39250f,_0x57a4bb=this['editor']['commands']['get']('trackChanges'),_0x36bc45=_0x57a4bb['value'];this['_trackChangesValueDuringImport']!==_0x36bc45&&(_0x57a4bb['execute'](),this['_trackChangesExecuted']=!0x0),_0x378962&&_0x378962['forEach'](({id:_0x2f5cf1,type:_0x1f047c,author:_0x56e05d,created_at:_0x1ab9e8})=>{const _0x358fa3={'id':_0x2f5cf1,'type':_0x1f047c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x56e05d,'createdAt':_0x1ab9e8?new Date(_0x1ab9e8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x358fa3);});}}class at extends _0x13e452{['afterInit'](){const _0x835b6a=this['editor'],_0x47845e=_0x835b6a['plugins']['get']('TrackChangesEditing');if(_0x835b6a['plugins']['has']('IndentEditing')&&(_0x47845e['enableCommand']('indent'),_0x47845e['enableCommand']('outdent')),_0x835b6a['plugins']['has']('IndentBlock')){for(const _0x55636f of['indentBlock','outdentBlock'])_0x47845e['enableDefaultAttributesIntegration'](_0x55636f);}const _0x55fe50=_0x835b6a['locale'];_0x47845e['registerBlockAttribute']('blockIndent'),_0x47845e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x55fe50,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8f4550=this['editor'],_0x405e0f=_0x8f4550['locale'],_0x3a5554=_0x8f4550['plugins']['get']('TrackChangesEditing');_0x3a5554['descriptionFactory']['registerDescriptionCallback'](_0x15261c=>{if('formatBlock'!=_0x15261c['type'])return;const {data:_0x110553}=_0x15261c;if(!_0x110553)return;if('indentBlock'!=_0x110553['commandName']&&'outdentBlock'!=_0x110553['commandName'])return;const _0x2aba2e=_0x15261c['getItems']()[0x0],_0x2dc276=_0x3a5554['descriptionFactory']['getItemLabel'](_0x2aba2e);return'indentBlock'==_0x110553['commandName']?{'type':'format','content':o(_0x405e0f,'*Indent:*\x20%0',_0x2dc276)}:'outdentBlock'==_0x110553['commandName']?{'type':'format','content':o(_0x405e0f,'*Outdent:*\x20%0',_0x2dc276)}:void 0x0;});}}class ct extends _0x13e452{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x13e452{['afterInit'](){const _0x19be13=this['editor'];if(!_0x19be13['plugins']['has']('LinkEditing'))return;const _0x482c8f=_0x19be13['plugins']['get']('TrackChangesEditing'),_0x35a92c=_0x19be13['commands']['get']('link');_0x482c8f['enableDefaultAttributesIntegration']('link'),_0x482c8f['enableDefaultAttributesIntegration']('unlink'),_0x482c8f['registerInlineAttribute']('linkHref');for(const _0x1b308c of _0x35a92c['manualDecorators'])_0x482c8f['registerInlineAttribute'](_0x1b308c['id']),_0x482c8f['descriptionFactory']['registerAttributeLabel'](_0x1b308c['id'],'link\x20('+_0x1b308c['label']['toLowerCase']()+')');_0x482c8f['descriptionFactory']['registerDescriptionCallback'](_0x4732bd=>{if('attribute'!=_0x4732bd['type'])return;const {data:_0x5d956a}=_0x4732bd;if(!_0x5d956a||'linkHref'!=_0x5d956a['key'])return;const _0x42735b=_0x5d956a['newValue'],_0x483a02=_0x19be13['locale'];return{'type':'format','content':null==_0x42735b?o(_0x483a02,'*Remove\x20link*'):o(_0x483a02,'*Set\x20link:*\x20%0','\x22'+_0x42735b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b9b7b=this['editor'],_0x55b41b=_0x4b9b7b['locale'];_0x4b9b7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x111388=>{if('formatInline'!=_0x111388['type'])return;const {data:_0x5dbc84}=_0x111388;if(_0x5dbc84){if('link'==_0x5dbc84['commandName']){const _0x5f37ed=_0x5dbc84['commandParams'][0x0];return{'type':'format','content':o(_0x55b41b,'*Set\x20link:*\x20%0','\x22'+_0x5f37ed+'\x22')};}return'unlink'==_0x5dbc84['commandName']?{'type':'format','content':o(_0x55b41b,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x13e452{['afterInit'](){const _0x4fa5d4=this['editor'],_0x278321=_0x4fa5d4['locale'];if(!_0x4fa5d4['plugins']['has']('LegacyListEditing'))return;const _0x19618f=_0x4fa5d4['plugins']['get']('TrackChangesEditing'),_0x5ab760=_0x4fa5d4['plugins']['has']('LegacyTodoListEditing');function _0x225094(_0x2cb9b5){return()=>{const _0x39dcea=_0x4fa5d4['model']['document']['selection'],_0x3d7a9e=_0x4fa5d4['commands']['get'](_0x2cb9b5);if(_0x3d7a9e['value'])return void _0x4fa5d4['execute']('paragraph',{});const _0x323548=_0x2cb9b5['slice'](0x0,-0x4),_0x1a34f5=function(_0xb0a981,_0x7d7d2c,_0x583d32){let _0x2b4c4f=Array['from'](_0xb0a981)['filter'](_0x4dc543=>function(_0x4ccc6d,_0x2c25f3){return _0x2c25f3['checkChild'](_0x4ccc6d['parent'],'listItem')&&!_0x2c25f3['isObject'](_0x4ccc6d);}(_0x4dc543,_0x583d32));_0x2b4c4f=_0x2b4c4f['filter'](_0x3c8eb9=>!_0x3c8eb9['is']('element','listItem')||_0x3c8eb9['getAttribute']('listType')!=_0x7d7d2c);const _0x19ad39=new Set();for(const _0x55ed0f of _0x2b4c4f)_0x55ed0f['is']('element','listItem')?_0x19ad39['add'](Le(_0x55ed0f)):_0x19ad39['add'](_0x55ed0f);return Array['from'](_0x19ad39);}(_0x39dcea['getSelectedBlocks'](),_0x323548,_0x4fa5d4['model']['schema']);_0x4fa5d4['model']['change'](()=>{for(const _0x450b5b of _0x1a34f5)_0x19618f['markBlockFormat'](_0x450b5b,{'commandName':_0x2cb9b5,'commandParams':[{'forceValue':!_0x3d7a9e['value']}],'formatGroupId':'blockName'},Ee(_0x450b5b));});};}function _0x12688a(_0x46599e){return()=>{const _0x4dd34e=function(_0x4c459d){let _0x108fad=Array['from'](_0x4c459d);const _0x15a854=_0x108fad['findIndex'](_0x106a92=>'listItem'!=_0x106a92['name']);return _0x15a854>-0x1&&(_0x108fad=_0x108fad['slice'](0x0,_0x15a854)),_0x108fad;}(_0x4fa5d4['model']['document']['selection']['getSelectedBlocks']()),_0x68dd61=_0x4fa5d4['model']['createRange'](_0x4fa5d4['model']['createPositionAt'](_0x4dd34e[0x0],'before'),_0x4fa5d4['model']['createPositionAt'](_0x4dd34e[_0x4dd34e['length']-0x1],'end'));_0x4fa5d4['model']['change'](()=>{_0x19618f['markBlockFormat'](_0x68dd61,{'commandName':_0x46599e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1b6e74){const _0x5dbf6d=new Set();for(const _0x1b467e of _0x1b6e74){let _0x12daec=_0x1b467e['nextSibling'];for(;_0x12daec&&_0x12daec['getAttribute']('listIndent')>_0x1b467e['getAttribute']('listIndent');)_0x5dbf6d['add'](_0x12daec),_0x12daec=_0x12daec['nextSibling'];}return Array['from'](_0x5dbf6d);}(_0x4dd34e));});};}_0x19618f['enableCommand']('numberedList',_0x225094('numberedList')),_0x19618f['enableCommand']('bulletedList',_0x225094('bulletedList')),_0x5ab760&&_0x19618f['enableCommand']('todoList',_0x225094('todoList')),_0x19618f['enableCommand']('indentList',_0x12688a('indentList')),_0x19618f['enableCommand']('outdentList',_0x12688a('outdentList')),_0x5ab760&&_0x19618f['enableCommand']('checkTodoList',()=>{const _0xe0c69d=_0x4fa5d4['commands']['get']('checkTodoList'),_0x9c9d5b=Array['from'](_0xe0c69d['_selectedElements']);_0x9c9d5b['filter'](_0xccbc1b=>_0xccbc1b['getAttribute']('todoListChecked')!=_0xe0c69d['value']),_0x4fa5d4['model']['change'](()=>{for(const _0x2bc691 of _0x9c9d5b)_0x19618f['markBlockFormat'](_0x2bc691,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xe0c69d['value']}]});});}),_0x19618f['descriptionFactory']['registerElementLabel']('listItem',_0x509706=>o(_0x278321,'ELEMENT_LIST_ITEM',_0x509706)),_0x19618f['descriptionFactory']['registerDescriptionCallback'](_0x82fb8f=>{if('formatBlock'!=_0x82fb8f['type']&&'formatInline'!=_0x82fb8f['type'])return;const {data:_0x30b252}=_0x82fb8f;if(_0x30b252){if('numberedList'==_0x30b252['commandName']||'bulletedList'==_0x30b252['commandName']||'todoList'==_0x30b252['commandName'])switch(_0x30b252['commandName']['replace']('List','')){case'bulleted':return _0x58da99(o(_0x278321,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58da99(o(_0x278321,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58da99(o(_0x278321,'ELEMENT_TODO_LIST'));}if('indentList'==_0x30b252['commandName'])return{'type':'format','content':o(_0x278321,'*Indent:*\x20%0',o(_0x278321,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x30b252['commandName'])return{'type':'format','content':o(_0x278321,'*Outdent:*\x20%0',o(_0x278321,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x30b252['commandName'])return _0x30b252['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x278321,'*Check\x20item*')}:{'type':'format','content':o(_0x278321,'*Uncheck\x20item*')};}function _0x58da99(_0x4caa1e){return{'type':'format','content':o(_0x278321,'*Change\x20to:*\x20%0',_0x4caa1e)};}});}}function Le(_0x405239){const _0x4f1b69=_0x405239['getAttribute']('listIndent');if(0x0==_0x4f1b69)return _0x405239;let _0x54b84b=_0x405239;for(;_0x405239['previousSibling']&&_0x405239['previousSibling']['is']('element','listItem');){const _0x10791a=_0x405239['previousSibling']['getAttribute']('listIndent');if(_0x10791a==_0x4f1b69)_0x54b84b=_0x405239['previousSibling'];else{if(_0x10791a<_0x4f1b69)break;}_0x405239=_0x405239['previousSibling'];}return _0x54b84b;}function Ee(_0x4381f2){const _0x5ddce0=[];if(_0x4381f2['is']('element','listItem')&&_0x4381f2['getAttribute']('listIndent')>0x0){let _0x139110=_0x4381f2['nextSibling'];for(;_0x139110&&'listItem'==_0x139110['name']&&_0x139110['getAttribute']('listIndent')==_0x4381f2['getAttribute']('listIndent');)_0x5ddce0['push'](_0x139110),_0x139110=_0x139110['nextSibling'];}return _0x5ddce0;}class ht extends _0x13e452{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x7dc726=this['editor']['config']['get']('list.properties'),_0x5152e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x7dc726['styles']&&_0x5152e3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x7dc726['reversed']&&_0x5152e3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x7dc726['startIndex']&&_0x5152e3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5152e3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x382ddd,_0x4a4854={}){const _0x2bf6c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45f3b1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2bf6c8['markMultiRangeBlockFormat'](_0x45f3b1,{'commandName':'listStyle','commandParams':[{'type':_0x4a4854['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5c1efb,_0x270e5e={}){const _0x3e648c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x553cdc=this['_getSuggestionBlocks'](_0xf1f494=>_0xf1f494['is']('element','listItem')&&'numbered'===_0xf1f494['getAttribute']('listType'));if(_0x553cdc['length']<0x1)return;const _0x514984=_0x553cdc['map'](_0xd1d3f2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xd1d3f2,'before'),this['editor']['model']['createPositionAt'](_0xd1d3f2,0x0)));this['editor']['model']['change'](()=>{_0x3e648c['markMultiRangeBlockFormat'](_0x514984,{'commandName':'listReversed','commandParams':[{'reversed':_0x270e5e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xcb3b7c,_0x276f65={}){const _0x29e734=this['editor']['plugins']['get']('TrackChangesEditing'),_0x269016=this['_getSuggestionBlocks'](_0x2e3da8=>_0x2e3da8['is']('element','listItem')&&'numbered'===_0x2e3da8['getAttribute']('listType'));if(_0x269016['length']<0x1)return;const _0x69d716=_0x269016['map'](_0x32a595=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32a595,'before'),this['editor']['model']['createPositionAt'](_0x32a595,0x0)));this['editor']['model']['change'](()=>{_0x29e734['markMultiRangeBlockFormat'](_0x69d716,{'commandName':'listStart','commandParams':[{'startIndex':_0x276f65['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x59f48c){if('formatBlock'!=_0x59f48c['type']&&'formatInline'!=_0x59f48c['type'])return;const _0x1b1447=this['editor']['locale'],{data:_0xaf94d0}=_0x59f48c;if(!_0xaf94d0)return;let _0x1c1aed,_0x56108;switch(_0xaf94d0['commandName']){case'listStyle':_0x1c1aed='*Change\x20to:*\x20%0',_0x56108={'type':'format','content':o(_0x1b1447,_0x1c1aed,o(_0x1b1447,this['_getTranslationKeyForListStyle'](_0xaf94d0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1c1aed=_0xaf94d0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56108={'type':'format','content':o(_0x1b1447,_0x1c1aed)};break;case'listStart':_0x1c1aed='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56108={'type':'format','content':o(_0x1b1447,_0x1c1aed,_0xaf94d0['commandParams'][0x0]['startIndex'])};}return _0x56108;}['_getSuggestionBlocksForListStyle'](){const _0xfae71f=this['editor']['plugins']['get']('LegacyListUtils');let _0x3bc004=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3bc004[0x0]?.['is']('element','listItem')&&_0x3bc004['unshift'](..._0xfae71f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3bc004[_0x3bc004['length']-0x1]?.['is']('element','listItem')&&_0x3bc004['push'](..._0xfae71f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3bc004=[...new Set(_0x3bc004)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3bc004=_0x3bc004['filter'](_0x2fd4b8=>_0x2fd4b8['is']('element','listItem'))),_0x3bc004;}['_getSuggestionBlocks'](_0x18ede8){const _0x1dd945=this['editor']['plugins']['get']('LegacyListUtils');let _0x54b4e1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x18ede8)['map'](_0x3b8cae=>{const _0x4b4ada=this['editor']['model']['createPositionAt'](_0x3b8cae,0x0);return[..._0x1dd945['getSiblingNodes'](_0x4b4ada,'backward'),..._0x1dd945['getSiblingNodes'](_0x4b4ada,'forward')];})['flat']();return _0x54b4e1=[...new Set(_0x54b4e1)],_0x54b4e1;}['_getTranslationKeyForListStyle'](_0x27773b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x27773b)||'default')['toUpperCase']()+'_LIST_'+_0x27773b['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x13e452{['afterInit'](){const _0xca1d5b=this['editor'];if(!_0xca1d5b['plugins']['has']('MediaEmbedEditing'))return;const _0x595b3a=_0xca1d5b['plugins']['get']('TrackChangesEditing'),_0x6817a0=_0xca1d5b['locale'];_0x595b3a['enableCommand']('mediaEmbed'),_0x595b3a['descriptionFactory']['registerElementLabel']('media',_0x2380dd=>o(_0x6817a0,'ELEMENT_MEDIA',_0x2380dd)),_0xca1d5b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2671f9,{writer:_0x49f69c,options:_0x5774e5})=>{if(_0x5774e5['showSuggestionHighlights'])return _0x49f69c['createEmptyElement']('div');},'converterPriority':'high'}),_0xca1d5b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1b2ad9,_0x54d9e0,_0x1e539b)=>{_0x1e539b['options']['showSuggestionHighlights']&&_0x1b2ad9['stop']();},{'priority':'high'});}}class lt extends _0x13e452{['afterInit'](){const _0x23967d=this['editor'];_0x23967d['plugins']['has']('MentionEditing')&&_0x23967d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x13e452{['afterInit'](){const _0x56b972=this['editor'];if(!_0x56b972['plugins']['has']('MergeFieldsEditing'))return;const _0x3f3286=_0x56b972['plugins']['get']('TrackChangesEditing'),_0x577af6=_0x56b972['locale'];_0x3f3286['enableCommand']('insertMergeField'),_0x3f3286['enableCommand']('insertMergeFieldBlock'),_0x3f3286['enableCommand']('insertMergeFieldImage'),_0x3f3286['descriptionFactory']['registerElementLabel']('mergeField',_0x27b878=>o(_0x577af6,'ELEMENT_MERGE_FIELD',_0x27b878)),_0x3f3286['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x11cbc7=>o(_0x577af6,'ELEMENT_MERGE_FIELD',_0x11cbc7)),_0x3f3286['descriptionFactory']['registerDescriptionCallback'](_0x1eade2=>{if('insertion'!=_0x1eade2['type']&&'deletion'!=_0x1eade2['type'])return;const _0x315524=_0x1eade2['getContainedElement']();if(null==_0x315524)return;const _0x9e29f8=_0x56b972['plugins']['get']('MergeFieldsEditing');let _0x1ffef5;switch(_0x9e29f8['getMergeFieldType'](_0x315524)){case null:return;case'image':{const _0x3b3eaf=_0x9e29f8['unwrapAffixes'](_0x315524['getAttribute']('src'));_0x1ffef5=_0x9e29f8['getLabel'](_0x3b3eaf)||_0x3b3eaf;break;}default:{const _0x4dd003=_0x315524['getAttribute']('id');_0x1ffef5=_0x9e29f8['getLabel'](_0x4dd003)||_0x4dd003;break;}}return'insertion'==_0x1eade2['type']?{'type':'insertion','content':o(_0x577af6,'*Insert:*\x20%0','\x22'+_0x1ffef5+'\x22\x20'+o(_0x577af6,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x577af6,'*Remove:*\x20%0','\x22'+_0x1ffef5+'\x22\x20'+o(_0x577af6,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x13e452{['afterInit'](){const _0xd7c830=this['editor'],_0x2e159f=_0xd7c830['plugins']['get']('TrackChangesEditing');_0xd7c830['plugins']['has']('MultiLevelList')&&(_0x2e159f['enableDefaultAttributesIntegration']('multiLevelList'),_0x2e159f['registerBlockAttribute']('listMarkerStyle'),_0x2e159f['descriptionFactory']['registerDescriptionCallback'](_0x215f2a=>this['handleDescriptions'](_0x215f2a)));}['handleDescriptions'](_0x4e3a62){const _0x28a67e=this['editor']['locale'],{data:_0x4e1a81}=_0x4e3a62,_0x37148b={'type':'format','content':''};if(_0x4e1a81&&'listMarkerStyle'==_0x4e1a81['key']){if(!_0x4e1a81['oldValue'])return{'type':'format','content':o(_0x28a67e,'*Set\x20format:*\x20%0',o(_0x28a67e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4e1a81['newValue']+')'};if(!_0x4e1a81['newValue']){let _0x289aa8=_0x4e3a62['head'];for(;_0x289aa8;){if(_0x289aa8['data']&&'listType'==_0x289aa8['data']['key']&&_0x289aa8['data']['newValue'])return _0x37148b;_0x289aa8=_0x289aa8['next'];}return{'type':'format','content':o(_0x28a67e,'*Remove\x20format:*\x20%0',o(_0x28a67e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4e1a81['oldValue']+')'};}}}}class pt extends _0x13e452{['afterInit'](){const _0x5f42e8=this['editor'];if(!_0x5f42e8['plugins']['has']('PageBreakEditing'))return;_0x5f42e8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xddc39=_0x5f42e8['plugins']['get']('TrackChangesEditing'),_0x181c2d=_0x5f42e8['locale'];_0xddc39['descriptionFactory']['registerElementLabel']('pageBreak',_0x48d951=>o(_0x181c2d,'ELEMENT_PAGE_BREAK',_0x48d951));}}class kt extends _0x13e452{['afterInit'](){const _0x1c2676=this['editor'];if(!_0x1c2676['plugins']['has']('Paragraph'))return;const _0x7fd735=_0x1c2676['locale'],_0x54c2c8=_0x1c2676['plugins']['get']('TrackChangesEditing');_0x54c2c8['descriptionFactory']['registerElementLabel']('paragraph',_0x5cb78c=>o(_0x7fd735,'ELEMENT_PARAGRAPH',_0x5cb78c)),_0x54c2c8['enableDefaultAttributesIntegration']('paragraph'),_0x54c2c8['enableCommand']('insertParagraph'),_0x1c2676['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1c2676),{'priority':'highest'}),_0x1c2676['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4b41ee,_0x34da63,_0x2be256)=>{_0x2be256['options']['showSuggestionHighlights']&&nr(_0x1c2676,{'showActiveMarker':!0x1})(_0x4b41ee,_0x34da63,_0x2be256);},{'priority':'highest'});const _0x4e6403=_0x54c2c8['descriptionFactory'];_0x4e6403['registerDescriptionCallback'](_0x280413=>{if('insertion'!==_0x280413['type'])return;const {start:_0x2b1131,end:_0x3c594a}=_0x280413['getFirstRange']();if(!_0x2b1131['isTouching'](_0x3c594a)||!_0x2b1131['nodeAfter'])return;const _0xe1193c=_0x1c2676['model']['schema'],_0x5a6e22=_0x2b1131['nodeAfter'];return _0xe1193c['isBlock'](_0x5a6e22)&&!_0xe1193c['isLimit'](_0x5a6e22)&&_0xe1193c['checkChild'](_0x5a6e22,'$text')?{'type':'insertion','content':o(_0x7fd735,'*Insert:*\x20%0',_0x4e6403['getItemLabel'](_0x5a6e22,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29dd2f=this['editor'],_0x28efbc=_0x29dd2f['locale'];_0x29dd2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xba20a=>{if('formatBlock'!=_0xba20a['type'])return;const {data:_0x314667}=_0xba20a;return _0x314667&&'paragraph'==_0x314667['commandName']?{'type':'format','content':o(_0x28efbc,'*Change\x20to:*\x20%0',o(_0x28efbc,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x530f34,{showActiveMarker:_0x3095d1=!0x0}={}){return(_0x18189d,_0x22a0ad,_0x2a35f8)=>{const _0x1f3b14=_0x530f34['plugins']['get']('TrackChangesEditing'),_0x3feb33=_0x22a0ad['markerRange']['start'],_0x316fd5=_0x22a0ad['markerRange']['end'],_0x1d93c5=_0x530f34['model']['schema'];if(!_0x3feb33['isTouching'](_0x316fd5)||!_0x3feb33['nodeAfter'])return;const _0x5bc58c=_0x3feb33['nodeAfter'];if(_0x1d93c5['isBlock'](_0x5bc58c)&&!_0x1d93c5['isLimit'](_0x5bc58c)&&_0x1d93c5['checkChild'](_0x5bc58c,'$text')){if(!_0x2a35f8['consumable']['consume'](_0x22a0ad['markerRange'],_0x18189d['name']))return;const {id:_0x4234f2,authorId:_0xbb1ed4}=_0x1f3b14['_splitMarkerName'](_0x22a0ad['markerName']),_0xd7e933=_0x2a35f8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4234f2,'data-author-id':_0xbb1ed4}),_0x532486=_0x2a35f8['mapper']['toViewPosition'](_0x316fd5);_0x3095d1&&_0x1f3b14['activeMarkers']['includes'](_0x22a0ad['markerName'])&&_0x2a35f8['writer']['addClass']('ck-suggestion-marker--active',_0xd7e933),_0x2a35f8['writer']['insert'](_0x532486,_0xd7e933),_0x2a35f8['mapper']['bindElementToMarker'](_0xd7e933,_0x22a0ad['markerName']);}};}class wt extends _0x13e452{['afterInit'](){const _0x5c03fe=this['editor'];_0x5c03fe['commands']['get']('replaceSource')&&_0x5c03fe['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x13e452{['afterInit'](){const _0x13756a=this['editor'];if(!_0x13756a['plugins']['has']('RemoveFormatEditing'))return;_0x13756a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dce21=this['editor'];_0x1dce21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c2f10=>{if('formatBlock'!=_0x4c2f10['type']&&'formatInline'!=_0x4c2f10['type'])return;const {data:_0x2a8fbb}=_0x4c2f10;return _0x2a8fbb&&'removeFormat'==_0x2a8fbb['commandName']?{'type':'format','content':o(_0x1dce21['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x13e452{['afterInit'](){const _0x12570b=this['editor'];if(!_0x12570b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x56da9e=_0x12570b['plugins']['get']('TrackChangesEditing');_0x56da9e['enableCommand']('goToPreviousRestrictedEditingException'),_0x56da9e['enableCommand']('goToNextRestrictedEditingException');const _0x2805c5=_0x12570b['plugins']['get']('RestrictedEditingModeEditing');_0x2805c5['enableCommand']('trackChanges'),_0x2805c5['enableCommand']('acceptSuggestion'),_0x2805c5['enableCommand']('discardSuggestion'),_0x2805c5['enableCommand']('acceptAllSuggestions'),_0x2805c5['enableCommand']('discardAllSuggestions'),_0x2805c5['enableCommand']('acceptSelectedSuggestions'),_0x2805c5['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x13e452{['afterInit'](){const _0x2f8990=this['editor'];if(!_0x2f8990['plugins']['has']('ShiftEnter'))return;const _0x253788=_0x2f8990['plugins']['get']('TrackChangesEditing');_0x253788['enableCommand']('shiftEnter'),_0x2f8990['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2f8990),{'priority':'high'}),_0x2f8990['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2f8990),{'priority':'high'}),_0x2f8990['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a36e3,_0x1c819c,_0x129d34)=>{_0x129d34['options']['showSuggestionHighlights']&&je(_0x2f8990,{'showActiveMarker':!0x1})(_0x5a36e3,_0x1c819c,_0x129d34);}),_0x253788['descriptionFactory']['registerElementLabel']('softBreak',_0x534ad1=>o(_0x2f8990['locale'],'ELEMENT_LINE_BREAK',_0x534ad1));}}function je(_0x31df68,{showActiveMarker:_0x26c53d=!0x0}={}){return(_0x5222df,_0x50437a,_0x106882)=>{const _0x5d3191=_0x31df68['plugins']['get']('TrackChangesEditing');if(!_0x106882['consumable']['test'](_0x50437a['markerRange'],_0x5222df['name']))return;const _0x23feeb=_0x31df68['model'];for(const _0xe4dcd6 of _0x50437a['markerRange']['getItems']()){if(!_0xe4dcd6['is']('element','softBreak'))continue;const _0x388235='deletion'==_0x50437a['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x35e3ee,authorId:_0x5ba624}=_0x5d3191['_splitMarkerName'](_0x50437a['markerName']),_0x2b62a4=_0x106882['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x388235,'data-suggestion':_0x35e3ee,'data-author-id':_0x5ba624}),_0x24422b=_0x106882['mapper']['toViewPosition'](_0x23feeb['createPositionBefore'](_0xe4dcd6));_0x26c53d&&_0x5d3191['activeMarkers']['includes'](_0x50437a['markerName'])&&_0x106882['writer']['addClass']('ck-suggestion-marker--active',_0x2b62a4),_0x106882['writer']['insert'](_0x24422b,_0x2b62a4),_0x106882['mapper']['bindElementToMarker'](_0x2b62a4,_0x50437a['markerName']);}};}class St extends _0x13e452{['afterInit'](){const _0x501163=this['editor'],_0x38ab3c=_0x501163['model'],_0x2213cc=_0x501163['locale'];if(!_0x501163['plugins']['has']('StandardEditingModeEditing'))return;const _0x175537=_0x501163['plugins']['get']('TrackChangesEditing'),_0x121227='restrictedEditingException',_0x35aacd=_0x501163['commands']['get'](_0x121227);_0x175537['enableCommand'](_0x121227,(_0x504432,_0x437ddf={})=>{const _0x1cb527=_0x38ab3c['document']['selection'];if(_0x1cb527['isCollapsed'])return void _0x504432(_0x437ddf);const _0x535c85=void 0x0!==_0x437ddf['forceValue']?_0x437ddf['forceValue']:!_0x35aacd['value'];_0x38ab3c['change'](()=>{const _0x898ace=Array['from'](_0x1cb527['getRanges']());for(const _0x179f38 of _0x898ace){const _0xf3f68c=_0x535c85?[_0x179f38]:io(_0x121227,_0x179f38,_0x38ab3c);for(const _0x411353 of _0xf3f68c)_0x175537['markInlineFormat'](_0x411353,{'commandName':_0x121227,'commandParams':[{'forceValue':_0x535c85}]});}});}),_0x175537['descriptionFactory']['registerDescriptionCallback'](_0x54eee9=>{if('formatBlock'!=_0x54eee9['type']&&'formatInline'!=_0x54eee9['type'])return;const {data:_0x139658}=_0x54eee9;return _0x139658&&_0x139658['commandName']==_0x121227?_0x139658['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2213cc,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2213cc,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x13e452{['afterInit'](){const _0x324b3a=this['editor'];if(!_0x324b3a['plugins']['has']('Style')||!_0x324b3a['plugins']['has']('DataSchema'))return;const _0x538a8b=_0x324b3a['plugins']['get']('TrackChangesEditing'),_0x4001df=_0x324b3a['locale'],_0x3a4cff=_0x324b3a['config']['get']('style')||{},_0x5b6d17=_0x324b3a['plugins']['get']('GeneralHtmlSupport'),_0x59ba46=_0x324b3a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x324b3a['plugins']['get']('DataSchema'),_0x3a4cff['definitions']);_0x538a8b['enableDefaultAttributesIntegration']('style');const _0x16f6bf=new Set();for(const _0x131c6d of _0x59ba46['block']){const _0x26c3b5=_0x5b6d17['getGhsAttributeNameForElement'](_0x131c6d['element']);_0x16f6bf['add'](_0x26c3b5);}const _0x254228=new Set();for(const _0x3b1fff of _0x59ba46['inline']){const _0x7ba5a8=_0x5b6d17['getGhsAttributeNameForElement'](_0x3b1fff['element']);_0x254228['add'](_0x7ba5a8);for(const _0xef2b3d of _0x3b1fff['ghsAttributes'])_0x254228['add'](_0xef2b3d);}for(const _0x472cc6 of _0x16f6bf)_0x538a8b['registerBlockAttribute'](_0x472cc6),_0x538a8b['descriptionFactory']['registerAttributeLabel'](_0x472cc6,o(_0x4001df,'FORMAT_STYLE'));for(const _0x1b81d9 of _0x254228)_0x538a8b['registerInlineAttribute'](_0x1b81d9),_0x538a8b['descriptionFactory']['registerAttributeLabel'](_0x1b81d9,o(_0x4001df,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c2ba9=this['editor'],_0x51eda5=_0x2c2ba9['locale'];_0x2c2ba9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f9321=>{if('formatBlock'!=_0x4f9321['type']&&'formatInline'!=_0x4f9321['type'])return;const {data:_0x477f3c}=_0x4f9321;return _0x477f3c&&'style'===_0x477f3c['commandName']?_0x477f3c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51eda5,'*Set\x20format:*\x20%0',_0x477f3c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x51eda5,'*Remove\x20format:*\x20%0',_0x477f3c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x13e452{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x54ab7e){super(_0x54ab7e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x37d68c=this['editor'],_0x5d392e=_0x37d68c['model']['document']['selection'];if(!_0x37d68c['plugins']['has']('TableEditing'))return;const _0x24a1c4=_0x37d68c['locale'],_0x3d6df4=_0x37d68c['plugins']['get']('TrackChangesEditing'),_0x48ba31=_0x37d68c['plugins']['get']('TableUtils');_0x3d6df4['descriptionFactory']['registerElementLabel']('table',_0x5a5fdb=>o(_0x24a1c4,'ELEMENT_TABLE',_0x5a5fdb)),this['_setupColumnsRowsFixing'](),_0x3d6df4['enableCommand']('insertTable'),_0x3d6df4['enableCommand']('selectTableRow'),_0x3d6df4['enableCommand']('selectTableColumn');for(const _0x222591 of['insertTableRowAbove','insertTableRowBelow']){const _0x316d19=_0x37d68c['commands']['get'](_0x222591);_0x3d6df4['enableCommand'](_0x222591,_0x31d2be=>{_0x37d68c['model']['change'](_0x2975bc=>{_0x31d2be();const _0x56524c='above'===_0x316d19['order'],_0x58fe30=_0x48ba31['getSelectionAffectedTableCells'](_0x5d392e),_0x1627cf=_0x48ba31['getRowIndexes'](_0x58fe30),_0x5a0045=_0x56524c?_0x1627cf['first']-0x1:_0x1627cf['last']+0x1,_0x2b6ff9=_0x58fe30[0x0]['findAncestor']('table'),_0x442356=_0x48ba31['createTableWalker'](_0x2b6ff9,{'startRow':_0x5a0045,'endRow':_0x5a0045}),_0x5e98a0=Array['from'](_0x442356)['map'](_0x52d8f7=>_0x2975bc['createRangeOn'](_0x52d8f7['cell']));_0x3d6df4['markMultiRangeInsertion'](_0x5e98a0,'tableRow');});});}for(const _0x1c178b of['insertTableColumnLeft','insertTableColumnRight']){const _0x5f5c3c=_0x37d68c['commands']['get'](_0x1c178b);_0x3d6df4['enableCommand'](_0x1c178b,_0x4a29cc=>{_0x37d68c['model']['change'](_0x441fb1=>{_0x4a29cc();const _0x280be0='left'===_0x5f5c3c['order'],_0x4ed390=_0x48ba31['getSelectionAffectedTableCells'](_0x5d392e),_0x53fb2c=_0x48ba31['getColumnIndexes'](_0x4ed390),_0x335bc0=_0x280be0?_0x53fb2c['first']-0x1:_0x53fb2c['last']+0x1,_0x25de65=_0x4ed390[0x0]['findAncestor']('table'),_0x50b1b6=_0x48ba31['createTableWalker'](_0x25de65,{'startRow':0x0,'column':_0x335bc0,'includeAllSlots':!0x1}),_0x21562b=Array['from'](_0x50b1b6)['map'](_0xf4980=>_0x441fb1['createRangeOn'](_0xf4980['cell']));_0x3d6df4['markMultiRangeInsertion'](_0x21562b,'tableColumn');});});}for(const _0x1bae36 of['removeTableRow','removeTableColumn']){const _0x66dfcf=_0x1bae36['substr'](0xb),_0x1e7c2f=_0x66dfcf['toLowerCase'](),_0x28967b=_0x1e7c2f['substr'](0x0,0x3)+'span',_0x2fec81='table'+_0x66dfcf,_0x311097='min'+_0x66dfcf,_0x1128c2='max'+_0x66dfcf;_0x3d6df4['enableCommand'](_0x1bae36,()=>{_0x37d68c['model']['change'](_0x565477=>{const _0x1b5c2f=_0x48ba31['getSelectionAffectedTableCells'](_0x5d392e),_0x2e56f5=_0x1b5c2f[0x0]['findAncestor']('table');let _0x75442d;if('removeTableRow'==_0x1bae36){const _0x10609b=_0x48ba31['getRowIndexes'](_0x1b5c2f);_0x75442d={'startRow':_0x10609b['first'],'endRow':_0x10609b['last'],'includeAllSlots':!0x0};}else{const _0x4143d2=_0x48ba31['getColumnIndexes'](_0x1b5c2f);_0x75442d={'startColumn':_0x4143d2['first'],'endColumn':_0x4143d2['last'],'includeAllSlots':!0x0};}const _0x2c4526=_0x48ba31['createTableWalker'](_0x2e56f5,_0x75442d),_0x1a2976=Array['from'](_0x2c4526)['map'](({cell:_0x1d4f8c})=>_0x1d4f8c),_0x549ef5=Ne(_0x1a2976['filter'](_0x4855ab=>_0x4855ab['hasAttribute'](_0x28967b))),_0x34f7fe=Ne(_0x1a2976['filter'](_0x915fe2=>!_0x915fe2['hasAttribute'](_0x28967b)))['map'](_0x431fbb=>_0x565477['createRangeOn'](_0x431fbb)),_0x48ecf5=_0x3d6df4['markMultiRangeDeletion'](_0x34f7fe,_0x2fec81);if(_0x48ecf5&&('tableRow'==_0x48ecf5['subType']||'tableColumn'==_0x48ecf5['subType'])){const _0x5a3c18=this['_getSuggestionCoords'](_0x48ecf5);for(const _0x1524d0 of _0x549ef5){const _0x49276e=_0x565477['createRangeOn'](_0x1524d0),_0x57f9cc=_0x48ba31['getCellLocation'](_0x1524d0),_0x339db0=_0x1524d0['getAttribute'](_0x28967b)-0x1,_0x389514=_0x5a3c18[_0x311097],_0x28b214=_0x5a3c18[_0x1128c2];_0x389514<=_0x57f9cc[_0x1e7c2f]&&_0x57f9cc[_0x1e7c2f]+_0x339db0<=_0x28b214&&_0x48ecf5['addRange'](_0x49276e);}}});});}function _0xb564af(_0x6906bc){const _0x1d3785=Array['from'](_0x5d392e['getRanges']())['map'](_0x497932=>_0x158d49['fromRange'](_0x497932));_0x37d68c['model']['change'](_0x5278f7=>{const _0x53bcfb=_0x5278f7['batch'];_0x6906bc=_0x6906bc['filter'](_0x35821d=>'$graveyard'!=_0x35821d['root']['rootName']),_0x5278f7['setSelection'](_0x6906bc),_0x37d68c['commands']['get']('removeTableRow')['refresh'](),_0x37d68c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x37d68c['model']['enqueueChange'](()=>{_0x37d68c['model']['enqueueChange'](_0x53bcfb,_0x1b75d6=>{const _0x313eea=_0x1d3785['filter'](_0x44f787=>'$graveyard'!=_0x44f787['root']['rootName']);_0x313eea['length']>0x0&&_0x1b75d6['setSelection'](_0x313eea);for(const _0x4e0ee9 of _0x1d3785)_0x4e0ee9['detach']();});});});}function _0x42706b(_0x4c030a){_0x37d68c['model']['change'](_0x2328c2=>{const _0xc521f8=Array['from'](_0x5d392e['getRanges']())['map'](_0x3bc61e=>_0x158d49['fromRange'](_0x3bc61e)),_0x2d0e4c=[];for(const _0x2d5da2 of _0x4c030a)for(const _0x321bb6 of _0x2d5da2['getItems']({'shallow':!0x0}))_0x2d0e4c['push'](_0x321bb6);for(const _0x275838 of _0x2d0e4c)'$graveyard'!=_0x275838['root']['rootName']&&(_0x2328c2['setSelection'](_0x2328c2['createPositionAt'](_0x275838,0x0)),_0x37d68c['commands']['get']('removeTableColumn')['refresh'](),_0x37d68c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1e14d0=_0xc521f8['filter'](_0x11a0b7=>'$graveyard'!=_0x11a0b7['root']['rootName']);_0x1e14d0['length']>0x0&&_0x2328c2['setSelection'](_0x1e14d0);for(const _0x3e7b33 of _0xc521f8)_0x3e7b33['detach']();});}function _0x5d139e(_0x3d67e7,_0x394950){return _0x394950['every'](_0x1eeb7c=>_0x3d67e7['some'](_0x229144=>_0x229144['end']['isEqual'](_0x1eeb7c['start'])||_0x1eeb7c['end']['isEqual'](_0x229144['start'])));}function _0x45e203(_0x1aabe2,_0x274504){return!_0x1aabe2['some'](_0x5d0272=>_0x274504['some'](_0x3c0f50=>_0x5d0272['isIntersecting'](_0x3c0f50)))&&_0x1aabe2['some'](_0x6a7035=>_0x274504['some'](_0x4b94b3=>_0x6a7035['end']['isTouching'](_0x4b94b3['start'])));}_0x37d68c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x113e37,_0x2b5dbc,_0x34c31a)=>{if(!_0x34c31a['options']['showSuggestionHighlights'])return;const _0x2f560c=_0x2b5dbc['item'];if(!_0x2f560c||!_0x2f560c['is']('element','tableCell'))return;const _0x29ac3b=_0x34c31a['mapper']['toViewElement'](_0x2f560c);if(_0x29ac3b){const {id:_0x35afca,authorId:_0x42e453}=_0x3d6df4['_splitMarkerName'](_0x2b5dbc['markerName']);_0x5b6e86(_0x29ac3b,_0x34c31a['writer'],(_0x43da26,_0x106c12,_0x1c2d18)=>{_0x1c2d18['addClass'](_0x2e0ed6(_0x106c12['classes']),_0x43da26),_0x1c2d18['setAttribute']('data-suggestion-id',_0x35afca,_0x43da26),_0x1c2d18['setAttribute']('data-author-id',_0x42e453,_0x43da26);},(_0x18dac0,_0x5e679a,_0x13185a)=>{_0x13185a['removeClass'](_0x2e0ed6(_0x5e679a['classes']),_0x18dac0),_0x13185a['removeAttribute']('data-suggestion-id',_0x18dac0),_0x13185a['removeAttribute']('data-author-id',_0x18dac0);});}},{'priority':'highest'}),_0x3d6df4['descriptionFactory']['registerDescriptionCallback'](_0x4fef25=>{if('insertion'!=_0x4fef25['type']&&'deletion'!=_0x4fef25['type'])return;const _0x317a1c=_0x4fef25['getContainedElement']();if(null!=_0x317a1c&&_0x317a1c['is']('element','table')){if('insertion'==_0x4fef25['type']){const _0x30df61=_0x4fef25['getItems']()['filter'](_0x3cc64f=>_0x3cc64f['is']('$textProxy'))['map'](_0x1f917e=>_0x1f917e['data']);if(_0x30df61['length'])return{'type':'insertion','content':o(_0x24a1c4,'*Insert:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x30df61['join']('\x20')+'\x22'))};}if('deletion'==_0x4fef25['type']){const _0xdd6635=_0x4fef25['getItems']()['filter'](_0x130817=>_0x130817['is']('$textProxy'))['map'](_0x9def4e=>_0x9def4e['data']);if(_0xdd6635['length'])return{'type':'deletion','content':o(_0x24a1c4,'*Remove:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xdd6635['join']('\x20')+'\x22'))};}}}),_0x3d6df4['descriptionFactory']['registerDescriptionCallback'](_0x13dc09=>{if('tableRow'==_0x13dc09['subType']){const _0x525a1f=_0x13dc09['getItems']()['filter'](_0x307b41=>_0x307b41['is']('$textProxy'))['map'](_0x9f48ce=>_0x9f48ce['data']),_0x288e18=this['_getSuggestionCoords'](_0x13dc09),_0x1f8439=_0x288e18['maxRow']-_0x288e18['minRow']+0x1;if('insertion'==_0x13dc09['type'])return _0x525a1f['length']?{'type':'insertion','content':o(_0x24a1c4,'*Insert:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f8439,'\x22'+_0x525a1f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x24a1c4,'*Insert:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_ROW',_0x1f8439))};if('deletion'==_0x13dc09['type'])return _0x525a1f['length']?{'type':'deletion','content':o(_0x24a1c4,'*Remove:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f8439,'\x22'+_0x525a1f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x24a1c4,'*Remove:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_ROW',_0x1f8439))};}if('tableColumn'==_0x13dc09['subType']){const _0x34c836=_0x13dc09['getItems']()['filter'](_0x201af4=>_0x201af4['is']('$textProxy'))['map'](_0x1f1424=>_0x1f1424['data']),_0x56898f=this['_getSuggestionCoords'](_0x13dc09),_0x3b9d5d=_0x56898f['maxColumn']-_0x56898f['minColumn']+0x1;if('insertion'==_0x13dc09['type'])return _0x34c836['length']?{'type':'insertion','content':o(_0x24a1c4,'*Insert:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b9d5d,'\x22'+_0x34c836['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x24a1c4,'*Insert:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_COLUMN',_0x3b9d5d))};if('deletion'==_0x13dc09['type'])return _0x34c836['length']?{'type':'deletion','content':o(_0x24a1c4,'*Remove:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b9d5d,'\x22'+_0x34c836['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x24a1c4,'*Remove:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_COLUMN',_0x3b9d5d))};}}),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xb564af),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xb564af),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x42706b),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x42706b),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5d139e),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5d139e),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x45e203),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x45e203);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4ce729=this['editor'],_0x3dbc1c=_0x4ce729['model']['document']['selection'];return(_0x4bfdc0,_0x54993c)=>{_0x4ce729['model']['change'](_0x3927b3=>{const {commandName:_0x35e457,commandParams:_0x4dac5a}=_0x54993c;let _0x3e31ff=_0x4bfdc0[0x0]['end']['nodeBefore'];_0x4dac5a&&_0x4dac5a[0x0]&&!0x1===_0x4dac5a[0x0]['forceValue']&&(_0x3e31ff=_0x4bfdc0[0x0]['start']['nodeAfter']);const _0x5c0542=_0x3927b3['createRangeIn'](_0x3e31ff);if('$graveyard'==_0x5c0542['root']['rootName'])return;const _0x6b1f61=Array['from'](_0x3dbc1c['getRanges']())['map'](_0x5b3661=>_0x158d49['fromRange'](_0x5b3661));_0x3927b3['setSelection'](_0x5c0542),_0x4ce729['commands']['get'](_0x35e457)['refresh'](),_0x4dac5a['push']({'forceDefaultExecution':!0x0}),_0x4ce729['execute'](_0x35e457,..._0x4dac5a);const _0x5d48e4=_0x6b1f61['filter'](_0x1ec0f1=>'$graveyard'!=_0x1ec0f1['root']['rootName']);_0x5d48e4['length']>0x0&&_0x3927b3['setSelection'](_0x5d48e4);for(const _0xd70d6f of _0x6b1f61)_0xd70d6f['detach']();});};}['_getCoordsForCells'](_0x246ce7){const _0x412c26=this['editor']['plugins']['get']('TableUtils');let _0x1a31df=Number['MAX_SAFE_INTEGER'],_0x4c83c6=Number['MIN_SAFE_INTEGER'],_0xb4f1ec=Number['MAX_SAFE_INTEGER'],_0x211434=Number['MIN_SAFE_INTEGER'];for(const _0x4692ae of _0x246ce7){if('$graveyard'==_0x4692ae['root']['rootName'])continue;const {row:_0x46eaf2,column:_0x263fba}=_0x412c26['getCellLocation'](_0x4692ae),_0x5c399c=_0x4692ae['hasAttribute']('rowspan')?_0x4692ae['getAttribute']('rowspan')-0x1:0x0,_0x456e7a=_0x4692ae['hasAttribute']('colspan')?_0x4692ae['getAttribute']('colspan')-0x1:0x0;_0x1a31df=_0x46eaf2<_0x1a31df?_0x46eaf2:_0x1a31df,_0x4c83c6=_0x46eaf2+_0x5c399c>_0x4c83c6?_0x46eaf2+_0x5c399c:_0x4c83c6,_0xb4f1ec=_0x263fba<_0xb4f1ec?_0x263fba:_0xb4f1ec,_0x211434=_0x263fba+_0x456e7a>_0x211434?_0x263fba+_0x456e7a:_0x211434;}return{'minRow':_0x1a31df,'maxRow':_0x4c83c6,'minColumn':_0xb4f1ec,'maxColumn':_0x211434};}['_setupColumnsRowsFixing'](){const _0x368158=this['editor'],_0x281a4d=_0x368158['plugins']['get']('TrackChangesEditing'),_0x59076e=_0x368158['plugins']['get']('TableUtils');_0x368158['model']['document']['on']('change:data',()=>{const _0x375ea8=Array['from'](_0x368158['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x133693,data:_0x295c6d}of _0x375ea8){const {group:_0x1397ce,id:_0x1907a3,subType:_0x47162d}=_0x281a4d['_splitMarkerName'](_0x133693);if('suggestion'!=_0x1397ce)continue;if(null!=_0x295c6d['oldRange'])continue;const _0x24dd72=_0x281a4d['getSuggestion'](_0x1907a3);this['_tablePostFixingSubtypes']['includes'](_0x47162d)&&this['_tableSuggestions']['add'](_0x24dd72);}},{'priority':'low'});const _0x35d515=(_0x14fe2b,_0x3756b3)=>{let _0x6bf67e=!0x1;const _0x4a1df5=_0x3756b3['createRangeOn'](_0x14fe2b),_0x4f2bae=_0x14fe2b['findAncestor']('table'),_0x183ed8=_0x59076e['getCellLocation'](_0x14fe2b);for(const _0x1914bb of this['_tableSuggestions']){const _0x53c9e8=_0x1914bb['subType'],_0x3a8e7f=_0x53c9e8['startsWith']('tablePaste'),_0x4dc630=_0x53c9e8['substr'](_0x3a8e7f?0xa:0x5),_0x37f494=_0x4dc630['toLowerCase'](),_0xcef3f0=_0x37f494['substr'](0x0,0x3)+'span',_0x533cb='min'+_0x4dc630,_0x578278='max'+_0x4dc630;if(!_0x1914bb['isInContent'])continue;if(_0x4f2bae!=_0x1914bb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1914bb['isIntersectingWithRange'](_0x4a1df5))continue;const _0xf56858=_0x14fe2b['hasAttribute'](_0xcef3f0)?_0x14fe2b['getAttribute'](_0xcef3f0)-0x1:0x0,_0x3339d9=this['_getSuggestionCoords'](_0x1914bb),_0x507b97=_0x3339d9[_0x533cb],_0x2bb44f=_0x3339d9[_0x578278];_0x507b97<=_0x183ed8[_0x37f494]&&_0x183ed8[_0x37f494]+_0xf56858<=_0x2bb44f&&(_0x1914bb['addRange'](_0x4a1df5),_0x6bf67e=!0x0);}return _0x6bf67e;};_0x368158['model']['document']['registerPostFixer'](_0x307900=>{let _0x10df92=!0x1;for(const _0x566ff4 of _0x368158['model']['document']['differ']['getChanges']())if('insert'==_0x566ff4['type']){if('tableRow'==_0x566ff4['name']){for(const _0x2c592e of _0x566ff4['position']['nodeAfter']['getChildren']())_0x10df92=_0x10df92||_0x35d515(_0x2c592e,_0x307900);}else'tableCell'==_0x566ff4['name']&&(_0x10df92=_0x10df92||_0x35d515(_0x566ff4['position']['nodeAfter'],_0x307900));}return _0x10df92;});}['_getSuggestionCoords'](_0x5d8829){return this['_getCoordsForCells'](_0x5d8829['getRanges']()['map'](_0x4dd1d0=>_0x4dd1d0['start']['nodeAfter']));}}function Ne(_0x5759a6){return Array['from'](new Set(_0x5759a6)['values']());}class _t extends _0x13e452{static get['requires'](){return[At];}['afterInit'](){const _0x5a7cde=this['editor'],_0x436220=_0x5a7cde['model']['document']['selection'],_0x23a718=_0x5a7cde['locale'];if(!_0x5a7cde['plugins']['has']('TableEditing'))return;const _0x4efef1=_0x5a7cde['plugins']['get']('TrackChangesEditing'),_0x18e462=_0x5a7cde['plugins']['get']('TableUtils'),_0x233aa3=_0x5a7cde['plugins']['get'](At);_0x233aa3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4efef1['enableCommand']('mergeTableCells',()=>{const _0xe21e06=_0x18e462['getSelectionAffectedTableCells'](_0x5a7cde['model']['document']['selection']);_0x5a7cde['model']['change'](()=>{_0x4efef1['markMultiRangeBlockFormat'](_0xe21e06,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5a7cde['commands']['get']('mergeTableCells')['on']('execute',(_0x4dd288,_0x31157f)=>{_0x5a7cde['commands']['get']('trackChanges')['value']&&(_0x31157f['length']>0x0&&_0x31157f[_0x31157f['length']-0x1]&&_0x31157f[_0x31157f['length']-0x1]['forceDefaultExecution']||_0x4efef1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4dd288['stop']());},{'priority':'highest'});for(const _0x52d49d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xf1b0ca=_0x5a7cde['commands']['get'](_0x52d49d);_0x4efef1['enableCommand'](_0x52d49d,()=>{const _0x393a2c=_0x5a7cde['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x40bd2a=>_0x40bd2a['is']('element','tableCell')),_0x535a25=_0xf1b0ca['value'];_0x5a7cde['model']['change'](()=>{_0x4efef1['markMultiRangeBlockFormat']([_0x393a2c,_0x535a25],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4ef742 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3318cd=_0x5a7cde['commands']['get'](_0x4ef742);_0x4efef1['enableCommand'](_0x4ef742,()=>{const _0x46b6d8=_0x18e462['getSelectionAffectedTableCells'](_0x5a7cde['model']['document']['selection'])[0x0],_0x4ab7f7=_0x46b6d8['findAncestor']('table'),{column:_0x20d427,row:_0x3ce5fe}=_0x18e462['getCellLocation'](_0x46b6d8);let _0x3a6157=[];if('horizontally'==_0x3318cd['direction']){const _0x7526b1=_0x18e462['createTableWalker'](_0x4ab7f7,{'startRow':_0x3ce5fe,'endRow':_0x3ce5fe,'includeAllSlots':!0x0});_0x3a6157=Array['from'](_0x7526b1)['map'](_0x578728=>_0x578728['cell']);}else{const _0x389fbe=_0x18e462['createTableWalker'](_0x4ab7f7,{'column':_0x20d427,'includeAllSlots':!0x0});_0x3a6157=Array['from'](_0x389fbe)['map'](_0x3de2d0=>_0x3de2d0['cell']);}_0x5a7cde['model']['change'](_0x8a0ed1=>{_0x4efef1['markBlockFormat'](_0x8a0ed1['createRangeOn'](_0x46b6d8),{'commandName':_0x4ef742,'commandParams':[]},_0x3a6157,_0x4ef742);});});}_0x4efef1['descriptionFactory']['registerDescriptionCallback'](_0xe9fd04=>{if('formatBlock'!=_0xe9fd04['type']&&'formatInline'!=_0xe9fd04['type'])return;const {data:_0x2e07bd}=_0xe9fd04;return _0x2e07bd&&'mergeTableCells'==_0x2e07bd['commandName']?{'type':'format','content':o(_0x23a718,'*Merge\x20cells*')}:void 0x0;}),_0x4efef1['descriptionFactory']['registerDescriptionCallback'](_0x40f912=>{if('formatBlock'!=_0x40f912['type']&&'formatInline'!=_0x40f912['type'])return;const {data:_0x2b09ac}=_0x40f912;return _0x2b09ac?'splitTableCellVertically'==_0x2b09ac['commandName']?{'type':'format','content':o(_0x23a718,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2b09ac['commandName']?{'type':'format','content':o(_0x23a718,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x59172f=_0x233aa3['_acceptFormatSuggestionCallbackFactory']();for(const _0x246f13 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4efef1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x246f13,'accept',_0x59172f);for(const _0x562504 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4efef1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x562504,'accept',_0x59172f);_0x4efef1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3dac1d=>{_0x5a7cde['model']['change'](_0x4b56f0=>{const _0xdd6387=Array['from'](_0x436220['getRanges']())['map'](_0x548ea5=>_0x158d49['fromRange'](_0x548ea5));_0x4b56f0['setSelection'](_0x3dac1d),_0x5a7cde['commands']['get']('mergeTableCells')['refresh'](),_0x5a7cde['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x12bb63=_0xdd6387['filter'](_0x5d7f4e=>'$graveyard'!=_0x5d7f4e['root']['rootName']);_0x12bb63['length']>0x0&&_0x4b56f0['setSelection'](_0x12bb63);for(const _0x1a817a of _0xdd6387)_0x1a817a['detach']();});});for(const _0x37c22d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x231a69=_0x5a7cde['commands']['get'](_0x37c22d);_0x231a69['on']('set:isEnabled',(_0x59dd80,_0x40a04a,_0x5d9315)=>{if(_0x5d9315){const _0x18458e=_0x5a7cde['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1580fd=>_0x1580fd['is']('element','tableCell'));this['_areMergableCells'](_0x231a69['value'],_0x18458e)||(_0x59dd80['return']=!0x1,_0x59dd80['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x33d88c=this['editor']['commands']['get']('mergeTableCells'),_0x24b0d2=this['editor']['plugins']['get']('TableUtils');if(!_0x33d88c['isEnabled'])return!0x1;const _0x4254e0=_0x24b0d2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x58958b of _0x4254e0)for(const _0x512921 of _0x4254e0)if(_0x58958b!=_0x512921&&!this['_areMergableCells'](_0x58958b,_0x512921))return!0x1;return!0x0;}['_areMergableCells'](_0x4e34ae,_0x12b827){const _0x43d691=this['editor']['plugins']['get']('TrackChangesEditing'),_0x107f38=this['editor']['model']['createRangeOn'](_0x4e34ae),_0x20c32b=this['editor']['model']['createRangeOn'](_0x12b827),_0x382156=new Set(),_0x38acf1=new Set();for(const _0x2d6ffb of _0x43d691['getSuggestions']())if(('insertion'==_0x2d6ffb['type']||'deletion'==_0x2d6ffb['type']||'mergeTableCells'==_0x2d6ffb['subType'])&&_0x2d6ffb['isInContent']){for(const _0x41c254 of _0x2d6ffb['getRanges']())_0x41c254['containsRange'](_0x107f38,!0x0)&&_0x382156['add'](_0x2d6ffb['type']+':'+_0x2d6ffb['author']['id']),_0x41c254['containsRange'](_0x20c32b,!0x0)&&_0x38acf1['add'](_0x2d6ffb['type']+':'+_0x2d6ffb['author']['id']);}if(_0x382156['size']!=_0x38acf1['size'])return!0x1;for(const _0x5dee68 of _0x382156)if(!_0x38acf1['has'](_0x5dee68))return!0x1;return!0x0;}}class Ct extends _0x13e452{static get['requires'](){return[At];}['afterInit'](){const _0x16148a=this['editor'];if(!_0x16148a['plugins']['has']('TableEditing'))return;const _0x338ad2=_0x16148a['locale'],_0x181ea7=_0x16148a['plugins']['get']('TrackChangesEditing');_0x181ea7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x181ea7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x181ea7['registerBlockAttribute']('headingRows'),_0x181ea7['registerBlockAttribute']('headingColumns'),_0x181ea7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x338ad2,'FORMAT_HEADER_ROW')),_0x181ea7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x338ad2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2f78c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20b205=this['editor']['plugins']['get']('TableUtils'),_0x33fa0e=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x58dd97({showActiveMarker:_0xcf01a1=!0x0,setDataAttribute:_0x2ff413=!0x0}={}){return(_0x581983,_0x3a8de3,_0x4ecb8e)=>{const {type:_0x50abd1,id:_0x5b19a8}=_0x2f78c6['_splitMarkerName'](_0x3a8de3['markerName']),_0x2f8477=_0x2f78c6['getSuggestion'](_0x5b19a8),_0x4ff5da=_0x2f8477['data'];if('formatBlock'!=_0x2f8477['type']||!_0x4ff5da||'setTableColumnHeader'!=_0x4ff5da['commandName'])return;if(_0x3a8de3['item'])return void _0x581983['stop']();if(!_0x4ecb8e['consumable']['consume'](_0x3a8de3['markerRange'],_0x581983['name']))return;const _0x10f784=_0x3a8de3['markerRange']['start']['nodeAfter'],_0x297f29=_0x3a8de3['markerRange']['end']['nodeBefore'],_0x33fa75=_0x10f784['parent']['parent'],{column:_0x23902f}=_0x20b205['getCellLocation'](_0x10f784),{column:_0x45e8db}=_0x20b205['getCellLocation'](_0x297f29);for(let _0x2fcc4f=_0x23902f;_0x2fcc4f<=_0x45e8db;_0x2fcc4f++){const _0x7b7ee3=_0x20b205['createTableWalker'](_0x33fa75,{'column':_0x2fcc4f,'includeAllSlots':!0x1});for(const _0x409712 of _0x7b7ee3){const _0x45c01d=_0x409712['cell'],_0x42a2f9=_0x4ecb8e['mapper']['toViewElement'](_0x45c01d);_0x4ecb8e['writer']['addClass']('ck-suggestion-marker-'+_0x50abd1,_0x42a2f9),_0x2ff413&&_0x4ecb8e['writer']['setAttribute']('data-suggestion',_0x5b19a8,_0x42a2f9),_0x4ecb8e['mapper']['bindElementToMarker'](_0x42a2f9,_0x3a8de3['markerName']),_0xcf01a1&&(_0x2f78c6['activeMarkers']['includes'](_0x3a8de3['markerName'])?_0x4ecb8e['writer']['addClass']('ck-suggestion-marker--active',_0x42a2f9):_0x4ecb8e['writer']['removeClass']('ck-suggestion-marker--active',_0x42a2f9));}}};}_0x2f78c6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x33fa0e),_0x2f78c6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x33fa0e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x58dd97(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5bb99e,_0x376a90,_0x374ef8)=>{_0x374ef8['options']['showSuggestionHighlights']&&_0x58dd97({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5bb99e,_0x376a90,_0x374ef8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x372817,_0x2fdde3,_0x4bdd12)=>{const {type:_0x913c8d,id:_0x496037}=_0x2f78c6['_splitMarkerName'](_0x2fdde3['markerName']),_0x747276=_0x2f78c6['getSuggestion'](_0x496037),_0x4af9fe=_0x747276['data'];if('formatBlock'!=_0x747276['type']||!_0x4af9fe||'setTableColumnHeader'!=_0x4af9fe['commandName'])return;const _0x1c8ad9=_0x4bdd12['mapper']['markerNameToElements'](_0x2fdde3['markerName']);if(_0x1c8ad9){for(const _0x3a11fd of _0x1c8ad9)_0x4bdd12['writer']['removeClass']('ck-suggestion-marker-'+_0x913c8d,_0x3a11fd),_0x4bdd12['writer']['removeClass']('ck-suggestion-marker--active',_0x3a11fd),_0x4bdd12['writer']['removeAttribute']('data-suggestion',_0x3a11fd),_0x4bdd12['mapper']['unbindElementFromMarkerName'](_0x3a11fd,_0x2fdde3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13a7d4=this['editor'],_0x4270be=_0x13a7d4['locale'];function _0xdece43(_0x1d3756){return{'type':'format','content':o(_0x4270be,'*Format:*\x20%0',_0x1d3756)};}_0x13a7d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d52e8=>{if('formatBlock'!=_0x1d52e8['type'])return;const {data:_0x5ac6f0}=_0x1d52e8;if(_0x5ac6f0){if('setTableRowHeader'==_0x5ac6f0['commandName']){const _0x55aae3=_0x5ac6f0['commandParams'][0x0]['forceValue'];return _0xdece43(o(_0x4270be,_0x55aae3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5ac6f0['commandName']){const _0xccd4fd=_0x5ac6f0['commandParams'][0x0]['forceValue'];return _0xdece43(o(_0x4270be,_0xccd4fd?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x13e452{['afterInit'](){const _0x111dfb=this['editor'],_0x588811=_0x111dfb['locale'],_0x2fde60=_0x111dfb['plugins']['get']('TrackChangesEditing');function _0x50d6da(_0x29e203){return{'type':'format','content':''+o(_0x588811,'*Set\x20table\x20type:*\x20%0',_0x29e203)};}_0x111dfb['plugins']['has']('TableLayout')&&(_0x2fde60['enableCommand']('insertTableLayout'),_0x2fde60['enableDefaultAttributesIntegration']('tableType'),_0x2fde60['registerBlockAttribute']('tableType'),_0x2fde60['descriptionFactory']['registerElementLabel'](_0x1ed74f=>_0x1ed74f['is']('element','table')&&'layout'===_0x1ed74f['getAttribute']('tableType'),_0x51e0fc=>o(_0x588811,'ELEMENT_LAYOUT_TABLE',_0x51e0fc)),_0x2fde60['descriptionFactory']['registerDescriptionCallback'](_0x4dc2ab=>{const {data:_0xc6305d}=_0x4dc2ab;if(_0xc6305d&&'tableType'==_0xc6305d['key'])switch(_0xc6305d['newValue']){case'layout':return _0x50d6da(o(_0x588811,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x50d6da(o(_0x588811,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x17b1b7=>[_0x17b1b7,null]));class Nt extends _0x13e452{static get['requires'](){return[At];}['afterInit'](){const _0x58017c=this['editor'];if(!_0x58017c['plugins']['has']('TableClipboard'))return;const _0x447e07=_0x58017c['plugins']['get']('TrackChangesEditing'),_0x59bb2a=_0x58017c['plugins']['get']('TableUtils'),_0x168536=_0x58017c['plugins']['get'](At),_0x2defda=_0x58017c['plugins']['get']('TableClipboard'),_0x58535d=_0x58017c['plugins']['get']('TableSelection'),_0x3e32f2=_0x58017c['plugins']['get'](_0x283213);_0x168536['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x58017c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x58017c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x496c2b=null,_0x39b665=!0x1;_0x3e32f2['on']('contentInsertion',(_0x5cbc90,_0x38e0b3)=>{_0x39b665='paste'===_0x38e0b3['method'];}),_0x58017c['model']['on']('insertContent',(_0x3c2efb,_0x5b1c46)=>{if(!_0x39b665&&null===_0x58535d['getSelectedTableCells']())return;const [_0x5eb20d,_0x5011b0]=_0x5b1c46,_0x378945=_0x5b1c46[_0x5b1c46['length']-0x1];_0x378945&&_0x378945['forceDefaultExecution']||_0x447e07['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x6048ba,_0x1d3e1b,_0x4378b2,_0x5b9de9,_0x52be0e){if(_0x1d3e1b&&!_0x1d3e1b['is']('documentSelection'))return!0x1;const _0x4d3630=_0x52be0e['getTableIfOnlyTableInContent'](_0x6048ba,_0x4378b2);if(!_0x4d3630||!Ue(_0x4d3630,void 0x0,_0x5b9de9))return!0x1;const _0x4c37d3=_0x5b9de9['getSelectionAffectedTableCells'](_0x4378b2['document']['selection']);if(!_0x4c37d3['length'])return!0x1;const _0x3c5270=_0x4c37d3[0x0]['findAncestor']('table'),_0x2f68ca=_0x5b9de9['getRowIndexes'](_0x4c37d3),_0x2b4f52=_0x5b9de9['getColumnIndexes'](_0x4c37d3),_0x3617b1={'startRow':_0x2f68ca['first'],'endRow':_0x2f68ca['last'],'startColumn':_0x2b4f52['first'],'endColumn':_0x2b4f52['last']};return 0x1==_0x4c37d3['length']&&(_0x3617b1['endRow']+=_0x5b9de9['getRows'](_0x4d3630)-0x1,_0x3617b1['endColumn']+=_0x5b9de9['getColumns'](_0x4d3630)-0x1),Ue(_0x3c5270,_0x3617b1,_0x5b9de9);}(_0x5eb20d,_0x5011b0,_0x58017c['model'],_0x59bb2a,_0x2defda)&&(_0x3c2efb['stop'](),_0x496c2b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x58017c['model']['change'](()=>{_0x58017c['model']['insertContent'](_0x5b1c46[0x0],_0x5b1c46[0x1],_0x5b1c46[0x2],{'forceDefaultExecution':!0x0});const _0x2c7162=_0x22223a(),{rowInsertionRanges:_0x18c432,columnInsertionRanges:_0x131f36,insertionRanges:_0x1f2662,deletionRanges:_0x2f70ed,cells:_0x12f8f3}=_0x496c2b;_0x18c432['length']&&_0x447e07['markMultiRangeInsertion'](_0x18c432,'tablePasteRow',{'tablePasteChainId':_0x2c7162}),_0x131f36['length']&&_0x447e07['markMultiRangeInsertion'](_0x131f36,'tablePasteColumn',{'tablePasteChainId':_0x2c7162}),_0x1f2662['length']&&(_0x447e07['markMultiRangeInsertion'](_0x1f2662,'tablePaste',{'tablePasteChainId':_0x2c7162,'skipNestingCheck':!0x0}),_0x1f2662['forEach'](_0xcec987=>_0xcec987['detach']?.())),_0x2f70ed['length']&&(_0x447e07['markMultiRangeDeletion'](_0x2f70ed,'tablePaste',{'tablePasteChainId':_0x2c7162,'skipNestingCheck':!0x0}),_0x2f70ed['forEach'](_0x3d26e0=>_0x3d26e0['detach']?.()));const _0x780e60=_0x447e07['markMultiRangeBlockFormat'](_0x12f8f3['map'](({element:_0x2b655b})=>_0x2b655b),{'formatGroupId':_0x22223a()},[],'tablePasteCell',{'tablePasteChainId':_0x2c7162});if(_0x780e60){const _0x52d285=_0x780e60['getMarkers'](),_0x44ad02=[];for(const {element:_0x53e7b2,attributes:_0x1737d2}of _0x12f8f3){if(!_0x1737d2)continue;const _0x2410a7=_0x58017c['model']['createRangeOn'](_0x53e7b2),_0x53fed6=_0x52d285['find'](_0x47c358=>_0x47c358['getRange']()['isEqual'](_0x2410a7));_0x53fed6&&_0x44ad02['push']([_0x53fed6['name'],_0x1737d2]);}_0x44ad02['length']&&_0x780e60['setAttribute']('markerAttributes',Object['fromEntries'](_0x44ad02));}_0x496c2b=null;}));},{'priority':_0x17dc3a['high']+0xa}),_0x3e32f2['on']('contentInsertion',()=>{_0x39b665=!0x1;},{'priority':'lowest'}),_0x58017c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5a24fe,_0x3bd29e)=>{const [_0x1d0ca6,_0x5a8f4c,,_0x346045]=_0x3bd29e;if(!_0x496c2b)return;_0x5a24fe['stop']();const _0x4d5763=_0x1d0ca6['cell'],_0x3b761a=_0x5a8f4c,_0x54b95d=Oe(_0x4d5763),_0x2a49b2=Oe(_0x3b761a);_0x5a24fe['return']=_0x4d5763;let _0x536345=null,_0x27e0fc=null;if(_0x2a49b2||_0x54b95d){if(_0x54b95d&&!_0x2a49b2){_0x346045['remove'](_0x4d5763['getChild'](0x0));for(const _0xb8c4e1 of Array['from'](_0x3b761a['getChildren']()))_0x346045['insert'](_0xb8c4e1,_0x4d5763,'end');const _0x5a36e1=_0x496c2b['rowInsertionIndexes']['includes'](_0x1d0ca6['row']),_0x2ef6ad=_0x496c2b['columnInsertionIndexes']['includes'](_0x1d0ca6['column']);_0x5a36e1||_0x2ef6ad||(_0x536345=_0x158d49['fromRange'](_0x346045['createRangeIn'](_0x4d5763)));}else _0x2a49b2&&!_0x54b95d&&(_0x27e0fc=_0x346045['createRangeIn'](_0x4d5763));}else{const _0x574d77=_0x346045['createElement']('tableCellSuggestion'),_0x59bc29=_0x346045['createElement']('tableCellSuggestion');_0x346045['wrap'](_0x346045['createRangeIn'](_0x4d5763),_0x59bc29),_0x346045['insert'](_0x574d77,_0x4d5763,0x0);for(const _0x59a6e1 of Array['from'](_0x3b761a['getChildren']()))_0x346045['insert'](_0x59a6e1,_0x574d77,'end');_0x536345=_0x158d49['fromRange'](_0x346045['createRangeOn'](_0x574d77)),_0x27e0fc=_0x158d49['fromRange'](_0x346045['createRangeOn'](_0x59bc29));}const _0x304c0e=Array['from'](_0x3b761a['getAttributes']())['filter'](([_0x51793b])=>Be['includes'](_0x51793b));_0x496c2b['cells']['push']({'element':_0x4d5763,'attributes':_0x304c0e['length']?Object['fromEntries'](_0x304c0e):null}),_0x536345&&_0x496c2b['insertionRanges']['push'](_0x536345),_0x27e0fc&&_0x496c2b['deletionRanges']['push'](_0x27e0fc);},{'priority':'high'}),_0x59bb2a['on']('insertColumns',(_0x237ddb,_0x491366)=>{const [_0x20dfbf,_0x3dede3={}]=_0x491366;if(!_0x496c2b)return;const _0x30cd9f=_0x3dede3['at']||0x0,_0x53a19a=_0x3dede3['columns']||0x1;_0x496c2b['columnInsertionIndexes']=new Array(_0x53a19a)['fill'](_0x30cd9f)['map']((_0x260e81,_0x5cc34a)=>_0x260e81+_0x5cc34a);for(const {cell:_0x1f1d4b}of _0x59bb2a['createTableWalker'](_0x20dfbf,{'startColumn':_0x30cd9f,'endColumn':_0x30cd9f+_0x53a19a-0x1}))_0x496c2b['columnInsertionRanges']['push'](_0x58017c['model']['createRangeOn'](_0x1f1d4b));},{'priority':'low'}),_0x59bb2a['on']('insertRows',(_0x472996,_0xb6c10a)=>{const [_0x693c2d,_0x344db5={}]=_0xb6c10a;if(!_0x496c2b)return;const _0x420a65=_0x344db5['at']||0x0,_0x4d05d5=_0x344db5['rows']||0x1;_0x496c2b['rowInsertionIndexes']=new Array(_0x4d05d5)['fill'](_0x420a65)['map']((_0x27ebbc,_0x26b793)=>_0x27ebbc+_0x26b793);for(const {cell:_0x2fb197}of _0x59bb2a['createTableWalker'](_0x693c2d,{'startRow':_0x420a65,'endRow':_0x420a65+_0x4d05d5-0x1}))_0x496c2b['rowInsertionRanges']['push'](_0x58017c['model']['createRangeOn'](_0x2fb197));},{'priority':'low'}),_0x447e07['descriptionFactory']['registerDescriptionCallback'](_0x416ca2=>{if(_0x416ca2['subType']&&_0x416ca2['subType']['startsWith']('tablePaste'))return _0x416ca2['previous']?{}:{'type':'insertion','content':o(_0x58017c['locale'],'*Replace\x20table\x20cells*')};});const _0x563dff=()=>!0x1;for(const _0x3b08d9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x447e07['_suggestionFactory']['registerCustomCallback']('insertion',_0x3b08d9,'join',_0x563dff),_0x447e07['_suggestionFactory']['registerCustomCallback']('deletion',_0x3b08d9,'join',_0x563dff),_0x447e07['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b08d9,'join',_0x563dff);_0x447e07['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x563dff),_0x447e07['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x438356,_0x971b23,_0x576cce)=>{const _0x1b41a5=_0x438356['map'](_0x30a14d=>_0x30a14d['getContainedElement']())['filter'](_0x399249=>_0x399249),_0x124a5b=new Map(_0x1b41a5['map'](_0x2e1571=>[_0x2e1571,null]));if(_0x496c2b){for(const {element:_0x4b4a81,attributes:_0x3e0e52}of _0x496c2b['cells'])_0x3e0e52&&_0x124a5b['set'](_0x4b4a81,_0x3e0e52);}else{if(_0x576cce&&_0x576cce['markerAttributes'])for(const [_0x8ce41f,_0x4ac3ea]of Object['entries'](_0x576cce['markerAttributes'])){const _0x4a3b26=_0x58017c['model']['markers']['get'](_0x8ce41f),_0x4454d7=_0x4a3b26?_0x4a3b26['getRange']()['getContainedElement']():null;_0x4454d7&&_0x124a5b['set'](_0x4454d7,_0x4ac3ea);}}_0x58017c['model']['change'](_0x5cd129=>{for(const [_0x319f12,_0x31c275]of _0x124a5b)_0x5cd129['setAttributes']({...xe,..._0x31c275},_0x319f12);});});const _0x29e944=(_0x522687,_0x9c6b07)=>{_0x447e07['_suggestionFactory']['registerCustomCallback'](_0x522687,'tablePaste',_0x9c6b07,(_0x226372,_0x2ee454,_0x17ec8a)=>{_0x58017c['model']['change'](_0x158ed0=>{const _0x363a5d=[];for(const _0x229cba of _0x226372){const _0x49e265=_0x229cba['start']['nodeAfter'];_0x49e265['is']('element','tableCellSuggestion')&&_0x363a5d['push'](_0x49e265);}_0x447e07['_suggestionFactory']['getSuggestionCallback'](_0x522687,null,_0x9c6b07)(_0x226372,_0x2ee454,_0x17ec8a);for(const _0x111b1c of _0x363a5d)'$graveyard'!=_0x111b1c['root']['rootName']&&_0x158ed0['unwrap'](_0x111b1c);});});};_0x29e944('insertion','accept'),_0x29e944('insertion','discard'),_0x29e944('deletion','accept'),_0x29e944('deletion','discard'),_0x447e07['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x22d11c=>{const _0x5e8113=_0x22d11c['map'](_0x1b2ac3=>_0x1b2ac3['getContainedElement']()),_0x2eca03=_0x5e8113[0x0]['findAncestor']('table'),{minRow:_0x3fa74d,maxRow:_0x127cff}=_0x168536['_getCoordsForCells'](_0x5e8113);_0x59bb2a['removeRows'](_0x2eca03,{'at':_0x3fa74d,'rows':_0x127cff-_0x3fa74d+0x1});}),_0x447e07['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x581607=>{const _0x563c99=_0x581607['map'](_0x38eb34=>_0x38eb34['getContainedElement']()),_0x3d1d98=_0x563c99[0x0]['findAncestor']('table'),{minColumn:_0x583299,maxColumn:_0x4a4dcb}=_0x168536['_getCoordsForCells'](_0x563c99);_0x59bb2a['removeColumns'](_0x3d1d98,{'at':_0x583299,'columns':_0x4a4dcb-_0x583299+0x1});});const _0x8d8bc7=(_0x4cfb23,_0x5c4129)=>{if(!_0x5c4129['subType']||!_0x5c4129['subType']['startsWith']('tablePaste'))return;const _0x1061f1=_0x5c4129['attributes']['tablePasteChainId'],_0x180f1a=_0x447e07['getSuggestions']()['filter'](_0x34e01b=>_0x34e01b['isInContent']&&_0x34e01b['attributes']&&_0x34e01b['attributes']['tablePasteChainId']==_0x1061f1);_0x180f1a['length']&&_0x5c4129['getAllAdjacentSuggestions']()['length']!=_0x180f1a['length']&&_0x180f1a['reduce']((_0x190d62,_0x401242)=>(_0x190d62['next']=_0x401242,_0x401242['previous']=_0x190d62,_0x401242));};function _0x5e23b8(_0xd99bc4,_0x57a4b7=!0x0){const {id:_0x4cd0cf,authorId:_0x19dbf8}=_0x447e07['_splitMarkerName'](_0xd99bc4['markerName']),_0x5b6523=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1838a6=_0x447e07['activeMarkers']['includes'](_0xd99bc4['markerName']);return _0x1838a6&&_0x5b6523['push']('ck-suggestion-marker--active'),{'classes':_0x5b6523,'attributes':{'data-suggestion':_0x4cd0cf,'data-author-id':_0x19dbf8},'priority':_0x1838a6&&_0x57a4b7?0xbc2:0xbb8};}_0x447e07['on']('suggestionLoaded',_0x8d8bc7,{'priority':'high'}),_0x447e07['on']('suggestionUnloaded',_0x8d8bc7,{'priority':'high'}),_0x58017c['model']['document']['registerPostFixer'](()=>{let _0x46de6b=!0x1;const _0x44a3cf=Array['from'](_0x58017c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x597b1b,data:_0x37b3d2}of _0x44a3cf){const {group:_0x4d8ce6,type:_0x19f898,id:_0x18a1cb}=_0x447e07['_splitMarkerName'](_0x597b1b);if('suggestion'!=_0x4d8ce6||'deletion'!=_0x19f898||_0x37b3d2['oldRange'])continue;if(!_0x447e07['hasSuggestion'](_0x18a1cb))continue;const _0x4639bc=_0x447e07['getSuggestion'](_0x18a1cb)['getRanges'](),_0x393c38=_0x58017c['plugins']['get']('Users')['me'];for(const _0x1c3f6 of _0x447e07['getSuggestions']()){if(!_0x1c3f6['isInContent']||_0x1c3f6['author']!=_0x393c38)continue;if('formatBlock'!=_0x1c3f6['type']||'tablePasteCell'!=_0x1c3f6['subType'])continue;if(_0x1c3f6['getRanges']()['every'](_0x3b64cc=>_0x4639bc['some'](_0x208f56=>_0x208f56['containsRange'](_0x3b64cc,!0x0)))){for(const _0x452bb0 of _0x1c3f6['getAllAdjacentSuggestions']())_0x452bb0['isInContent']&&(_0x452bb0['discard'](),_0x46de6b=!0x0);}}}return _0x46de6b;}),_0x58017c['model']['document']['registerPostFixer'](_0x3e7e8e=>{const _0x1521a6=_0x58017c['commands']['get']('redo');if(!_0x1521a6||!_0x1521a6['_createdBatches']['has'](_0x3e7e8e['batch']))return!0x1;let _0x2d051f=!0x1;const _0x5ced5f=_0x58017c['plugins']['get']('Users')['me'],_0x4ce15f=_0x58017c['model']['document']['differ']['getChanges'](),_0x224872=Array['from'](_0x58017c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x38efdc,data:_0x405e90})=>{const {group:_0x1e0e2b,subType:_0x27e420,authorId:_0xd2f231}=_0x447e07['_splitMarkerName'](_0x38efdc);return'suggestion'==_0x1e0e2b&&'tablePaste'==_0x27e420&&_0xd2f231==_0x5ced5f['id']&&!_0x405e90['oldRange'];});for(const _0x15f8d2 of _0x4ce15f){if('insert'!=_0x15f8d2['type']||'tableCellSuggestion'!=_0x15f8d2['name']||0x1!=_0x15f8d2['length'])continue;const _0x2571e8=_0x3e7e8e['createRange'](_0x15f8d2['position'],_0x15f8d2['position']['getShiftedBy'](0x1));if(!_0x224872['find'](({data:_0x4c7adb})=>_0x4c7adb['newRange']['isEqual'](_0x2571e8))){for(const {name:_0x2709cc,data:_0x56e3ed}of _0x224872)if(_0x2571e8['containsRange'](_0x56e3ed['newRange'])){_0x3e7e8e['updateMarker'](_0x2709cc,{'range':_0x2571e8}),_0x2d051f=!0x0;break;}}}return _0x2d051f;}),_0x58017c['model']['document']['registerPostFixer'](_0x37983f=>{let _0x4b69cb=!0x1;const _0x387f8b=_0x58017c['plugins']['get']('Users')['me'],_0x2f03f4=_0x447e07['getSuggestions']()['filter'](_0x2f2abd=>_0x2f2abd['isInContent']&&_0x2f2abd['author']==_0x387f8b),_0x15970f=new Set(),_0x2b7478=new Set();for(const _0x241739 of _0x2f03f4)if('tablePaste'==_0x241739['subType'])for(const _0x445079 of _0x241739['getMarkers']()){const _0x194a0b=_0x445079['getRange']()['getContainedElement']();if(_0x194a0b){if(_0x194a0b['is']('element','tableCellSuggestion')&&Oe(_0x194a0b)){_0x241739['removeMarker'](_0x445079['name']),_0x15970f['add'](_0x194a0b),_0x4b69cb=!0x0;const _0x45ef20=_0x194a0b['nextSibling'],_0x190313=_0x194a0b['previousSibling'],_0x27cf19=_0x45ef20&&_0x45ef20['is']('element','tableCellSuggestion'),_0x28e1f0=_0x190313&&_0x190313['is']('element','tableCellSuggestion');_0x27cf19&&!_0x15970f['has'](_0x45ef20)&&_0x2b7478['add'](_0x45ef20),_0x28e1f0&&!_0x15970f['has'](_0x190313)&&_0x2b7478['add'](_0x190313);}else _0x194a0b['is']('element','paragraph')&&_0x194a0b['isEmpty']&&(_0x241739['removeMarker'](_0x445079['name']),_0x4b69cb=!0x0);}}else{if('tablePasteCell'==_0x241739['subType']){if(!_0x241739['attributes']||!_0x241739['attributes']['tablePasteChainId'])continue;const _0x10a908=_0x241739['attributes']['markerAttributes'];if(_0x10a908&&Object['keys'](_0x10a908)['length'])continue;const _0x12566b=_0x241739['attributes']['tablePasteChainId'];let _0x110c06=!0x0,_0x579d6a=!0x0;for(const _0x20b49b of _0x2f03f4)if(_0x20b49b['subType']&&_0x20b49b['subType']['startsWith']('tablePaste')){if(!_0x20b49b['attributes']['tablePasteChainId']){_0x579d6a=!0x1;break;}if(_0x20b49b['id']!=_0x241739['id']&&_0x20b49b['attributes']['tablePasteChainId']==_0x12566b){_0x110c06=!0x1;break;}}_0x579d6a&&_0x110c06&&(_0x241739['removeMarkers'](),_0x4b69cb=!0x0);}}for(const _0x443f19 of _0x15970f)_0x37983f['remove'](_0x443f19);for(const _0x3e5c8c of _0x2b7478)_0x37983f['unwrap'](_0x3e5c8c);return _0x4b69cb;}),_0x58017c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x33d5a5=>_0x5e23b8(_0x33d5a5),'converterPriority':'high'}),_0x58017c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x331874,_0x4717e9)=>_0x4717e9['options']['showSuggestionHighlights']?_0x5e23b8(_0x331874,!0x1):null,'converterPriority':'high'});const _0x2b2c1b=_0x58017c['editing']['view'];this['listenTo'](_0x2b2c1b['document'],'clipboardOutput',(_0x38e7a5,_0x431b9a)=>{const _0x235aaa=[];for(const _0x24a30d of _0x2b2c1b['createRangeIn'](_0x431b9a['content'])['getItems']())_0x24a30d['is']('element','suggestion-td')&&_0x235aaa['push'](_0x24a30d);_0x2b2c1b['change'](_0x3f6533=>{for(const _0x244638 of _0x235aaa)_0x3f6533['move'](_0x3f6533['createRangeIn'](_0x244638),_0x3f6533['createPositionBefore'](_0x244638)),_0x3f6533['remove'](_0x244638);});});}}function Oe(_0xf42be9){if(_0xf42be9['isEmpty'])return!0x0;const _0x225e7a=_0xf42be9['getChild'](0x0);return _0x225e7a['is']('element','paragraph')&&_0x225e7a['isEmpty'];}function Ue(_0x5aa429,_0x43da73={},_0x520aab){for(const {isAnchor:_0x5df827,cellHeight:_0x4f2e69,cellWidth:_0x1b0cf3}of _0x520aab['createTableWalker'](_0x5aa429,{'includeAllSlots':!0x0,..._0x43da73}))if(!_0x5df827||0x1!=_0x4f2e69||0x1!=_0x1b0cf3)return!0x1;return!0x0;}class Dt extends _0x13e452{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1a655c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a655c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1a655c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1a655c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a655c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1a655c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1a655c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x292b75,_0x3d65d0){const _0x53601b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3217e6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x57c9f1=_0x3d65d0['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2a1b29=_0x3217e6['getColumnGroupElement'](_0x57c9f1);let _0x5d8cdb=_0x2a1b29?_0x3217e6['getTableColumnsWidths'](_0x2a1b29):null,_0x554627=_0x57c9f1['getAttribute']('tableWidth')||null;const _0x426653=_0x3d65d0['tableWidth']||_0x554627,_0x3103b3=_0x3d65d0['columnWidths']||_0x5d8cdb,_0x52a9dd=this['editor']['plugins']['get']('Users')['me'];for(const _0x146708 of _0x53601b['getSuggestions']()){const _0x48838d=_0x146708['getContainedElement']();if('resizeTable'===_0x146708['subType']&&_0x48838d===_0x57c9f1){_0x146708['author']!==_0x52a9dd&&_0x146708['discard']();const _0x45ea0a=_0x146708['data']['commandParams'];_0x554627=_0x45ea0a[0x0]['tableWidth'],_0x5d8cdb=_0x45ea0a[0x0]['columnWidths'];break;}}_0x292b75({'table':_0x57c9f1,'tableWidth':_0x426653,'columnWidths':_0x3103b3}),_0x53601b['markBlockFormat'](_0x57c9f1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x554627,'columnWidths':_0x5d8cdb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x110a92){if('formatBlock'!=_0x110a92['type']&&'formatInline'!=_0x110a92['type'])return;const {data:_0x28a662}=_0x110a92;if(_0x28a662&&'resizeTable'===_0x28a662['formatGroupId']){const _0x6cc2b6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x6cc2b6)};}}}class Mt extends _0x13e452{['afterInit'](){const _0x61a05a=this['editor'];_0x61a05a['plugins']['has']('Template')&&_0x61a05a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x13e452{['afterInit'](){const _0x5ce780=this['editor'];if(!_0x5ce780['commands']['get']('insertTableOfContents'))return;_0x5ce780['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4cbad3=_0x5ce780['plugins']['get']('TrackChangesEditing'),_0x3f20b5=_0x5ce780['locale'];_0x4cbad3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4fd963=>o(_0x3f20b5,'ELEMENT_TABLE_OF_CONTENTS',_0x4fd963));}}class Bt extends _0x13e452{['afterInit'](){const _0x2ac982=this['editor'];if(!_0x2ac982['plugins']['has']('Title'))return;const _0x2d3cb0=_0x2ac982['plugins']['get']('TrackChangesEditing');_0x2d3cb0['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2ac982['locale'],'ELEMENT_TITLE')),_0x2ac982['model']['document']['registerPostFixer'](_0x56939c=>{let _0x25ecd9=!0x1;const _0x5cd7fa=Array['from'](_0x2ac982['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24d118,data:_0x31b688}of _0x5cd7fa){const {group:_0x196b02}=_0x2d3cb0['_splitMarkerName'](_0x24d118);if('suggestion'!==_0x196b02||!_0x31b688['newRange'])continue;const _0x218f73=_0x31b688['newRange'],_0x35a498=_0x218f73['end']['nodeBefore'];if(!_0x35a498||!_0x35a498['is']('element','title-content'))continue;if(!_0x218f73['start']['isTouching'](_0x218f73['end']))continue;const _0x30833f=_0x2ac982['model']['schema']['getNearestSelectionRange'](_0x218f73['end'],'forward');if(_0x30833f&&_0x30833f['isCollapsed']){const _0x3f7340=_0x56939c['createRange'](_0x218f73['start'],_0x30833f['start']);_0x3f7340['isEqual'](_0x218f73)||(_0x56939c['updateMarker'](_0x24d118,{'range':_0x3f7340}),_0x25ecd9=!0x0);}_0x25ecd9||(_0x56939c['removeMarker'](_0x24d118),_0x25ecd9=!0x0);}return _0x25ecd9;});}}class Tt extends _0x13e452{['afterInit'](){const _0x4b800f=this['editor'],_0x5dc800=_0x4b800f['plugins']['get']('TrackChangesEditing');_0x4b800f['plugins']['has']('Uploadcare')&&(_0x5dc800['enableCommand']('uploadcare'),_0x4b800f['plugins']['has']('UploadcareImageEdit')&&(_0x5dc800['enableCommand']('uploadcareImageEdit'),_0x5dc800['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5dc800['registerBlockAttribute']('uploadcareImageId'),_0x5dc800['descriptionFactory']['registerDescriptionCallback'](_0x4f3b91=>{if('attribute'!=_0x4f3b91['type'])return;const {data:_0x1de1e9}=_0x4f3b91;return _0x1de1e9&&'uploadcareImageId'==_0x1de1e9['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x13e452{['afterInit'](){const _0x512102=this['editor'],_0x2322ef=_0x512102['plugins']['get']('TrackChangesEditing');_0x512102['plugins']['has']('UndoEditing')&&(_0x2322ef['enableCommand']('undo'),_0x2322ef['enableCommand']('redo'));}}class Ot extends _0x13e452{static get['requires'](){return[At];}['afterInit'](){const _0x1b6b92=this['editor'];if(!_0x1b6b92['plugins']['has']('TableCaptionEditing'))return;_0x1b6b92['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x13e452{['tableProperties'];['tableCellProperties'];constructor(_0x7c4ef4){super(_0x7c4ef4),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 _0x142df1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1d8d23 of this['tableProperties'])_0x142df1['enableCommand'](_0x1d8d23,(_0x1015ec,_0x3da41a)=>{const _0x534772=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1d8d23,[_0x534772],this['tableProperties'],'tableProperties',_0x1015ec,_0x3da41a);});_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x142df1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2fddf0,_0xe285d)=>this['handleDiscardAction'](this['tableProperties'],_0x2fddf0,_0xe285d)),_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5081da of this['tableCellProperties'])_0x142df1['enableCommand'](_0x5081da,(_0x14d38c,_0x5958ef)=>{const _0x23da8d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5081da,_0x23da8d,this['tableCellProperties'],'tableCellProperties',_0x14d38c,_0x5958ef);});_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x142df1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x21e084,_0x424651)=>this['handleDiscardAction'](this['tableCellProperties'],_0x21e084,_0x424651)),_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x142df1['descriptionFactory']['registerDescriptionCallback'](_0x11b4eb=>this['handleSuggestionDescription'](_0x11b4eb)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1ae053,_0x3b7b6d,_0x1f7474,_0x390e2e,_0x59e3dc,_0x3b5097){const _0x5b495c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3b5097['batch'],()=>{for(const _0x403c34 of _0x3b7b6d){if(this['_getSuggestion'](_0x403c34,_0x390e2e))_0x59e3dc(_0x3b5097);else{const _0x12b4e9={};for(const _0x56a2cf of _0x1f7474){const _0x290693=_0x403c34['getAttribute'](_0x56a2cf);void 0x0!==_0x290693&&(_0x12b4e9[_0x56a2cf]=_0x290693);}_0x59e3dc(_0x3b5097),_0x5b495c['markBlockFormat'](_0x403c34,{'commandParams':[_0x12b4e9]},[],_0x390e2e);}}});}['handleDiscardAction'](_0x56052a,_0x6c3c9f,_0x5849fa){const _0x3e6735=_0x6c3c9f[0x0]['start']['nodeAfter'],_0x141bb4=_0x5849fa['commandParams'][0x0];this['editor']['model']['change'](_0x3f582d=>{for(const _0x1c3961 of _0x56052a)void 0x0!==_0x141bb4[_0x1c3961]?_0x3f582d['setAttribute'](_0x1c3961,_0x141bb4[_0x1c3961],_0x3e6735):_0x3f582d['removeAttribute'](_0x1c3961,_0x3e6735);});}['handleSuggestionDescription'](_0x1e810f){if(_0x1e810f['data'])switch(_0x1e810f['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'](_0x316fd8,_0xf0a357){const _0x4c007f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x97133e of _0x4c007f['getSuggestions']({'skipNotAttached':!0x0})){const _0x591002=_0x97133e['getContainedElement']();if(_0x97133e['subType']===_0xf0a357&&_0x591002===_0x316fd8)return _0x97133e;}return null;}['_registerTablePropertiesAttributes'](){const _0x184332=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f749b=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5e5a84 of _0x1f749b){const _0x197c7e=_0x5e5a84['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x184332['registerBlockAttribute'](_0x5e5a84),_0x184332['descriptionFactory']['registerAttributeLabel'](_0x5e5a84,o(this['editor']['locale'],'FORMAT_'+_0x197c7e));}}}class Rt extends _0x13e452{['afterInit'](){const _0x229c07=this['editor'];if(!_0x229c07['plugins']['has']('LineHeight'))return;const _0x5e282a=_0x229c07['plugins']['get']('TrackChangesEditing'),_0x1b7e21=_0x229c07['locale'];_0x5e282a['enableDefaultAttributesIntegration']('lineHeight'),_0x5e282a['registerBlockAttribute']('lineHeight'),_0x5e282a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1b7e21,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x13e452{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x56d1a,_0x377dde,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(_0x1da6b5){super(_0x1da6b5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5897f3,_0x241e6f,_0x95e2ae,_0x79dd1b)=>{this['_model']['change'](()=>{for(const _0x5c1000 of[..._0x79dd1b,..._0x95e2ae])this['_model']['markers']['has'](_0x5c1000)&&_0x1da6b5['editing']['reconvertMarker'](_0x5c1000);});}),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']=_0x1da6b5['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(),_0x1da6b5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1da6b5['config']['get']('trackChanges.trackFormatChanges'),_0x1da6b5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1da6b5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x1da6b5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1f2920=this['editor'],_0x20246f=(_0x30a732,_0x2170dc)=>{if('attribute'!=_0x30a732)return'ck-suggestion-marker-'+_0x30a732;const _0x10acb0=_0x2170dc['split']('|')[0x0];return this['_isBlockAttribute'](_0x10acb0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1f2920['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x768154=>{const {id:_0xcc34cf,authorId:_0x4dac25,type:_0x5d58fb,subType:_0x2f2407}=this['_splitMarkerName'](_0x768154['markerName']),_0x35e0c1=['ck-suggestion-marker',_0x20246f(_0x5d58fb,_0x2f2407)];let _0x55860b=0xbb8;return this['activeMarkers']['includes'](_0x768154['markerName'])&&(_0x35e0c1['push']('ck-suggestion-marker--active'),_0x55860b=0xbc2),'deletion'==_0x5d58fb&&(_0x55860b+=0x5),{'classes':_0x35e0c1,'attributes':{'data-suggestion':_0xcc34cf,'data-author-id':_0x4dac25},'priority':_0x55860b};}}),_0x1f2920['conversion']['for']('dataDowncast')['add'](_0x220349=>{_0x220349['on']('addMarker:suggestion',(_0x34e930,_0x3c4fe4,_0x508661)=>{if(!_0x508661['options']['showSuggestionHighlights'])return;const _0x271165=_0x3c4fe4['item'];if(!_0x271165)return;const _0x4725e0=_0x508661['mapper']['toViewElement'](_0x271165);_0x1f2920['model']['schema']['isObject'](_0x271165)&&_0x4725e0&&!_0x4725e0['getCustomProperty']('widget')&&_0x4725e0['is']('containerElement')&&_0xb90220(_0x4725e0,_0x508661['writer']);},{'priority':'high'});}),_0x1f2920['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x555965,_0x43db29)=>{if(!_0x43db29['options']['showSuggestionHighlights'])return null;const {id:_0x4bac54,authorId:_0x5c6db3,type:_0xe9371c,subType:_0x2fb173}=this['_splitMarkerName'](_0x555965['markerName']);return{'classes':['ck-suggestion-marker',_0x20246f(_0xe9371c,_0x2fb173)],'priority':0xbb8,'attributes':{'data-suggestion':_0x4bac54,'data-author-id':_0x5c6db3}};}});const _0x2bbe45=({showActiveMarkers:_0x58e107=!0x0,isAttributeSuggestion:_0x49d997=!0x1}={})=>(_0x238819,_0x1873c0,_0x4f49d0)=>{if(!_0x1873c0['item'])return;const {id:_0xbe5102,authorId:_0x3fa2d3}=this['_splitMarkerName'](_0x1873c0['markerName']);if(_0x49d997){const _0xbf810e=this['_suggestions']['get'](_0xbe5102),_0x5cd3f2=this['_getAttributeKey'](_0xbf810e);if(!this['_isBlockAttribute'](_0x5cd3f2))return;}if(_0x1873c0['item']['is']('selection'))return void _0x4f49d0['consumable']['consume'](_0x1873c0['item'],_0x238819['name']);const _0x59b732=_0x4f49d0['mapper']['toViewElement'](_0x1873c0['item']);if(_0x1873c0['item']['is']('element')&&_0x1f2920['model']['schema']['isBlock'](_0x1873c0['item'])&&!_0x59b732['getCustomProperty']('addHighlight')){_0x4f49d0['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x59b732),_0x4f49d0['writer']['setAttribute']('data-suggestion',_0xbe5102,_0x59b732),_0x4f49d0['writer']['setAttribute']('data-author-id',_0x3fa2d3,_0x59b732),_0x4f49d0['mapper']['bindElementToMarker'](_0x59b732,_0x1873c0['markerName']),_0x58e107&&(this['activeMarkers']['includes'](_0x1873c0['markerName'])?_0x4f49d0['writer']['addClass']('ck-suggestion-marker--active',_0x59b732):_0x4f49d0['writer']['removeClass']('ck-suggestion-marker--active',_0x59b732));for(const _0xae9572 of _0x1f2920['model']['createRangeIn'](_0x1873c0['item'])['getItems']())_0x4f49d0['consumable']['consume'](_0xae9572,_0x238819['name']);_0x4f49d0['consumable']['consume'](_0x1873c0['item'],_0x238819['name']);}};_0x1f2920['conversion']['for']('dataDowncast')['add'](_0x128443=>{_0x128443['on']('addMarker:suggestion:formatBlock',(_0x3e5d82,_0x396e1d,_0x404d98)=>{_0x404d98['options']['showSuggestionHighlights']&&_0x2bbe45({'showActiveMarkers':!0x1})(_0x3e5d82,_0x396e1d,_0x404d98);},{'priority':'highest'});}),_0x1f2920['conversion']['for']('dataDowncast')['add'](_0x2bb098=>{_0x2bb098['on']('addMarker:suggestion:attribute',(_0x3d0902,_0x31511f,_0x5f38d6)=>{_0x5f38d6['options']['showSuggestionHighlights']&&_0x2bbe45({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3d0902,_0x31511f,_0x5f38d6);},{'priority':'highest'});}),_0x1f2920['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x508604,_0x5ac2ee)=>{if(_0x5ac2ee['options']['showSuggestionHighlights']){const {id:_0x4ded8b,authorId:_0x6440af}=this['_splitMarkerName'](_0x508604);return _0x508604['includes'](':split')||_0x508604['includes'](':merge')?{'group':'suggestion','name':_0x508604['substr'](0xb),'attributes':{'data-suggestion':_0x4ded8b,'data-author-id':_0x6440af}}:null;}return{'group':'suggestion','name':_0x508604['substr'](0xb)};}}),_0x1f2920['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2f092e,{writer:_0x18d9b1})=>{let _0x59d80c='suggestion:'+_0x2f092e['getAttribute']('suggestion-type')+':'+_0x2f092e['getAttribute']('id');return _0x2f092e['getAttribute']('marker-count')&&(_0x59d80c+=':'+_0x2f092e['getAttribute']('marker-count')),_0x18d9b1['createElement']('$marker',{'data-name':_0x59d80c});}}),_0x1f2920['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1f2920['conversion']['for']('editingDowncast')['add'](_0x4cf59a=>{_0x4cf59a['on']('addMarker:suggestion:formatBlock',_0x2bbe45(),{'priority':'high'});}),_0x1f2920['conversion']['for']('editingDowncast')['add'](_0x3c566a=>{_0x3c566a['on']('addMarker:suggestion:attribute',_0x2bbe45({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1f2920['conversion']['for']('editingDowncast')['add'](_0x50ae8e=>{_0x50ae8e['on']('removeMarker:suggestion:formatBlock',(_0x2c7408,_0xb956cd,_0x36de69)=>{const _0xf85911=_0x36de69['mapper']['markerNameToElements'](_0xb956cd['markerName']);if(_0xf85911){for(const _0x54c7e5 of _0xf85911)_0x54c7e5['getCustomProperty']('addHighlight')||(_0x36de69['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x54c7e5),_0x36de69['writer']['removeAttribute']('data-suggestion',_0x54c7e5),_0x36de69['writer']['removeAttribute']('data-author-id',_0x54c7e5),_0x36de69['mapper']['unbindElementFromMarkerName'](_0x54c7e5,_0xb956cd['markerName']));}},{'priority':'high'});}),_0x1f2920['conversion']['for']('editingDowncast')['add'](_0x3d7da7=>{_0x3d7da7['on']('removeMarker:suggestion:attribute',(_0xffc550,_0x3bcc26,_0x45391f)=>{const _0x120981=_0x45391f['mapper']['markerNameToElements'](_0x3bcc26['markerName']);if(!_0x120981)return;const {id:_0x5ec6db}=this['_splitMarkerName'](_0x3bcc26['markerName']),_0x1ab85e=this['_suggestions']['get'](_0x5ec6db),_0x5c7400=this['_getAttributeKey'](_0x1ab85e);if(this['_isBlockAttribute'](_0x5c7400)){for(const _0x239ba1 of _0x120981)_0x239ba1['getCustomProperty']('addHighlight')||(_0x45391f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x239ba1),_0x45391f['writer']['removeAttribute']('data-suggestion',_0x239ba1),_0x45391f['writer']['removeAttribute']('data-author-id',_0x239ba1),_0x45391f['mapper']['unbindElementFromMarkerName'](_0x239ba1,_0x3bcc26['markerName']));}},{'priority':'high'});}),_0x1f2920['model']['document']['registerPostFixer'](_0x1d64ba=>{let _0x5cfa88=!0x1;const _0x56d0fb=Array['from'](_0x1f2920['model']['document']['differ']['getChangedMarkers']()),_0x31147f=new Set();for(const {name:_0x32393c,data:_0x49c6e1}of _0x56d0fb){const {group:_0x5052a6,type:_0x2a934b,subType:_0x1eade9,id:_0x4ca70d}=this['_splitMarkerName'](_0x32393c);if('suggestion'!==_0x5052a6)continue;const _0x5a3c15=this['_suggestions']['get'](_0x4ca70d);if(null!=_0x49c6e1['newRange']){'formatInline'==_0x2a934b&&(_0x5cfa88=_0x5cfa88||Gt(_0x49c6e1['newRange'],_0x32393c,_0x1d64ba,_0x1f2920['model']['schema']));const _0x4a38fc='attribute'==_0x2a934b&&this['_isBlockAttribute'](_0x1eade9['split']('|')[0x0]);if(_0x49c6e1['newRange']['isCollapsed']||'$graveyard'==_0x49c6e1['newRange']['root']['rootName']||'formatBlock'==_0x2a934b&&!Jt(_0x49c6e1['newRange'])||_0x4a38fc&&!Jt(_0x49c6e1['newRange'])||'deletion'==_0x2a934b&&!Kt(_0x49c6e1['newRange']))_0x1d64ba['removeMarker'](_0x32393c),_0x5cfa88=!0x0;else{if(!_0x5a3c15||!_0x5a3c15['isInContent'])continue;if(_0x49c6e1['newRange']&&_0x49c6e1['oldRange']&&_0x49c6e1['newRange']['isEqual'](_0x49c6e1['oldRange']))continue;_0x31147f['add'](_0x5a3c15);}}}return _0x31147f['size']>0x0&&(_0x5cfa88=!!this['_joinWithAdjacentSuggestions'](_0x31147f)||_0x5cfa88),_0x5cfa88;}),_0x1f2920['model']['document']['registerPostFixer'](_0x4f56c2=>{let _0x556e89=!0x1;for(const _0xf5a6dc of _0x1f2920['model']['document']['differ']['getChanges']())if('insert'==_0xf5a6dc['type'])for(const _0x1dcca4 of this['_suggestions']['values']()){if(_0x1dcca4['isMultiRange']||!_0x1dcca4['isInContent'])continue;const _0x41581e='formatBlock'==_0x1dcca4['type'],_0x5d3af2=this['_getAttributeKey'](_0x1dcca4),_0x1c81d1=_0x5d3af2&&this['_isBlockAttribute'](_0x5d3af2);if(!_0x41581e&&!_0x1c81d1)continue;const _0x2c6958=_0x1dcca4['getFirstRange']();if(_0x2c6958['start']['parent']!=_0x2c6958['end']['parent']&&!_0x2c6958['end']['isAtEnd']){const _0x276663=_0x1f2920['model']['createPositionAt'](_0x2c6958['start']['nodeAfter'],'end'),_0x37969a=_0x1f2920['model']['createRange'](_0x2c6958['start'],_0x276663);_0x4f56c2['updateMarker'](_0x1dcca4['getFirstMarker'](),{'range':_0x37969a}),_0x556e89=!0x0;}}return _0x556e89;}),_0x1f2920['model']['document']['registerPostFixer'](_0x242dd9=>this['_processAttributeChanges'](_0x242dd9)),_0x1f2920['model']['document']['registerPostFixer'](_0x3dd0ff=>!_0x3dd0ff['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3dd0ff)),_0x1f2920['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1f2920['model']['document']['on']('change:data',(_0x2df026,_0x396974)=>{if(!_0x396974['isLocal']||_0x396974['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x289679=_0x1f2920['model']['document']['differ']['getChanges']();if(0x0==_0x289679['length'])return;const _0x41ee81=[],_0x5a7613=_0x289679['filter'](_0x7b184f=>'attribute'==_0x7b184f['type']),_0x421290=_0x289679['filter'](_0x40e399=>'insert'==_0x40e399['type']&&'$text'!=_0x40e399['name']);for(const _0x3de79d of _0x5a7613)this['_isRegisteredAttribute'](_0x3de79d['attributeKey'])&&_0x41ee81['push']({'key':_0x3de79d['attributeKey'],'newValue':_0x3de79d['attributeNewValue'],'oldValue':_0x3de79d['attributeOldValue'],'range':Ht(_0x3de79d['range'],_0x1f2920['model'])});for(const _0x1198a8 of _0x421290){if('rename'!=_0x1198a8['action']&&'refresh'!=_0x1198a8['action'])continue;const _0x544c60=qt(_0x1198a8['position']['nodeAfter'],_0x1f2920['model']),_0x3b0436=_0x1198a8['before'];'rename'==_0x1198a8['action']&&_0x41ee81['push']({'key':m,'newValue':_0x1198a8['name'],'oldValue':_0x3b0436['name'],'range':_0x544c60});for(const [_0x40e52f,_0x329098]of _0x3b0436['attributes']){if(!this['_isRegisteredAttribute'](_0x40e52f))continue;const _0x45bc89=_0x1198a8['attributes']['get'](_0x40e52f);_0x329098!==_0x45bc89&&_0x41ee81['push']({'key':_0x40e52f,'newValue':_0x45bc89,'oldValue':_0x329098,'range':_0x544c60});}for(const [_0x3bb02b,_0x1e5017]of _0x1198a8['attributes'])this['_isRegisteredAttribute'](_0x3bb02b)&&(_0x3b0436['attributes']['has'](_0x3bb02b)||_0x41ee81['push']({'key':_0x3bb02b,'newValue':_0x1e5017,'oldValue':null,'range':_0x544c60}));}0x0!=_0x41ee81['length']&&_0x1f2920['model']['enqueueChange'](_0x396974,_0x2818d3=>{const _0x140ac6=_0x22223a();for(const {range:_0x4326b0,key:_0x3245cb,oldValue:_0x40aadf,newValue:_0x3d4785}of _0x41ee81)this['markAttributeChange'](_0x4326b0,_0x3245cb,_0x40aadf,_0x3d4785,{'groupId':_0x140ac6});this['_reduceExistingSuggestions'](_0x2818d3,_0x41ee81);});},{'priority':'lowest'}),_0x1f2920['model']['markers']['on']('update:suggestion',(_0x2ec6f8,_0x350fd9,_0x261396)=>{if(null==_0x261396){const {id:_0x16f02e}=this['_splitMarkerName'](_0x350fd9['name']),_0x48e4a0=this['_suggestions']['get'](_0x16f02e);_0x48e4a0&&_0x48e4a0['addMarkerName'](_0x350fd9['name']);}}),_0x1f2920['model']['document']['on']('change:data',()=>{const _0x355a62=Array['from'](_0x1f2920['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5234d4=>'suggestion'===this['_splitMarkerName'](_0x5234d4['name'])['group']);if(0x0===_0x355a62['length'])return;_0x355a62['sort']((_0x422261,_0xf50d2c)=>{const _0x15fade=_0x422261['data']['oldRange'],_0x3447f1=_0xf50d2c['data']['oldRange'];return null===_0x15fade&&null===_0x3447f1?0x0:null===_0x15fade&&null!==_0x3447f1?-0x1:null!==_0x15fade&&null===_0x3447f1?0x1:_0x15fade['start']['isBefore'](_0x3447f1['start'])?-0x1:0x1;});const _0x2adf2a=new Set(),_0x488c6f=new Set();for(const {name:_0x416349,data:_0x47023c}of _0x355a62){const {id:_0x3141c3}=this['_splitMarkerName'](_0x416349);if(null===_0x47023c['oldRange']){const _0x937a79=this['_handleNewSuggestionMarker'](_0x416349);_0x488c6f['add'](_0x937a79);}else{const _0x1703b6=this['_suggestions']['get'](_0x3141c3);null!==_0x47023c['newRange']||_0x1703b6['isInContent']?(_0x2adf2a['add'](_0x1703b6['head']),_0x488c6f['add'](_0x1703b6)):this['_removeSuggestion'](_0x1703b6);}}_0x488c6f['size']>0x0&&this['_refreshSuggestionsChain'](_0x488c6f);for(const _0x3e345a of _0x2adf2a)this['fire']('suggestionChanged',_0x3e345a);}),_0x1f2920['model']['on']('applyOperation',(_0x147daa,_0x4636be)=>{const _0xa5d0ee=_0x4636be[0x0];if(!this['_suggestions']['size'])return;if(!_0xa5d0ee['isDocumentOperation'])return;if(_0xa5d0ee['batch']['isUndo']||!_0xa5d0ee['batch']['isLocal'])return;let _0x3d227d,_0x102ca2;switch(_0xa5d0ee['type']){case'insert':_0x3d227d=_0x1f2920['model']['createPositionAt'](_0xa5d0ee['position']),_0x102ca2=_0x3d227d['getShiftedBy'](_0xa5d0ee['howMany']);break;case'split':_0x3d227d=_0x1f2920['model']['createPositionAt'](_0xa5d0ee['splitPosition']),_0x102ca2=_0x1f2920['model']['createPositionAt'](_0xa5d0ee['moveTargetPosition']);break;case'move':_0x3d227d=_0x1f2920['model']['createPositionAt'](_0xa5d0ee['targetPosition']),_0x102ca2=_0x3d227d['getShiftedBy'](_0xa5d0ee['howMany']);break;default:return;}const _0x18a124=_0x1f2920['model']['createRange'](_0x3d227d,_0x102ca2);_0x1f2920['model']['change'](()=>{for(const {suggestion:_0x45d710,meta:_0x133412}of this['_findSuggestions'](_0x18a124)){if(_0x45d710['isMultiRange'])continue;if('formatInline'==_0x45d710['type'])continue;const _0x5d9576=this['_getAttributeKey'](_0x45d710);if(_0x5d9576&&this['_isBlockAttribute'](_0x5d9576)&&'split'!=_0xa5d0ee['type'])continue;const _0x54febb=_0x45d710['data']&&_0x45d710['data']['multipleBlocks'];('formatBlock'!=_0x45d710['type']||'split'==_0xa5d0ee['type']&&!_0x54febb)&&(_0x133412['containsRangeInObject']||'insertion'==_0x45d710['type']&&_0x133412['isOwn']||_0x45d710['getFirstRange']()['containsRange'](_0x18a124)&&this['_breakSuggestionMarker'](_0x45d710,_0x3d227d,_0x102ca2));}});},{'priority':'lowest'}),_0x1f2920['model']['on']('deleteContent',(_0x22b78b,_0x3b2847)=>{const _0x43fee1=_0x3b2847[0x0],_0x352700=_0x3b2847[0x1];if(_0x352700&&_0x352700['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x43fee1['isCollapsed'])return;const _0x2d82a9=_0x1f2920['model']['schema'],{start:_0xc2f621,end:_0x281afe}=_0x43fee1['getFirstRange'](),_0x57ae48=_0xc2f621['nodeAfter']&&_0x2d82a9['isLimit'](_0xc2f621['nodeAfter'])?null:_0x2d82a9['getNearestSelectionRange'](_0xc2f621,'forward'),_0x2111ba=_0x281afe['nodeBefore']&&_0x2d82a9['isLimit'](_0x281afe['nodeBefore'])?null:_0x2d82a9['getNearestSelectionRange'](_0x281afe,'backward'),_0x3a0ad6=_0x1f2920['model']['createRange'](_0x57ae48?_0x57ae48['start']:_0xc2f621,_0x2111ba?_0x2111ba['end']:_0x281afe);_0x1f2920['model']['change'](_0x81cdf6=>{this['markDeletion'](_0x3a0ad6);const _0xb042fe=_0x1f2920['model']['schema']['getNearestSelectionRange'](_0x3a0ad6['start']);_0x43fee1['is']('documentSelection')?_0x81cdf6['setSelection'](_0xb042fe):_0x43fee1['setTo'](_0xb042fe);}),_0x22b78b['stop']();},{'priority':_0x17dc3a['normal']+0xa}),_0x1f2920['model']['on']('insertContent',(_0x288623,_0x35edbd)=>{const _0x5a31e2=_0x35edbd[_0x35edbd['length']-0x1];_0x5a31e2&&_0x5a31e2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1f2920['model']['change'](()=>{let _0x2e2911=_0x1f2920['model']['insertContent'](_0x35edbd[0x0],_0x35edbd[0x1],_0x35edbd[0x2],{'forceDefaultExecution':!0x0});if(!_0x2e2911)return;_0x288623['return']=_0x2e2911['clone']();const _0x5898a9=_0x2e2911['end']['nodeBefore'],_0x13a2f8=_0x1f2920['model']['schema'];_0x5898a9&&_0x13a2f8['isBlock'](_0x5898a9)&&!_0x13a2f8['isObject'](_0x5898a9)&&(_0x2e2911=_0x1f2920['model']['createRange'](_0x2e2911['start'],_0x1f2920['model']['createPositionAt'](_0x5898a9,'end'))),this['markInsertion'](_0x2e2911);}),_0x288623['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x468213=new D(_0x1f2920,this['_suggestions']);_0x1f2920['commands']['add']('acceptSuggestion',_0x468213),this['enableCommand']('acceptSuggestion');const _0x36fcf3=new M(_0x1f2920,this['_suggestions']);_0x1f2920['commands']['add']('discardSuggestion',_0x36fcf3),this['enableCommand']('discardSuggestion'),_0x1f2920['commands']['add']('acceptAllSuggestions',new $(_0x1f2920,_0x468213,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1f2920['commands']['add']('discardAllSuggestions',new $(_0x1f2920,_0x36fcf3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1f2920['commands']['add']('acceptSelectedSuggestions',new B(_0x1f2920,_0x468213,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1f2920['commands']['add']('discardSelectedSuggestions',new B(_0x1f2920,_0x36fcf3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x20218f=_0x1f2920['plugins']['get']('CommentsRepository');this['listenTo'](_0x20218f,'addComment',(_0x4a16da,{threadId:_0x3cf63c})=>{const _0x413533=this['_suggestions']['get'](_0x3cf63c);_0x413533&&_0x413533['commentThread']&&0x1===_0x413533['commentThread']['length']&&this['_updateSuggestionData'](_0x3cf63c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x20218f,'removeComment',(_0x5b586a,{threadId:_0x571bb6})=>{const _0x359896=this['_suggestions']['get'](_0x571bb6);_0x359896&&_0x359896['commentThread']&&!_0x359896['commentThread']['length']&&this['_updateSuggestionData'](_0x571bb6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2d2310){const _0x2f95d9=_0x62bec7([0x39,0x54,0x6d,0x42,0x4c,0x38,0x73,0x79,0x67,0x44,0x4e,0x52,0x63,0x6a,0x65,0x64,0x62,0x36,0x51,0x72,0x69,0x66,0x32,0x35,0x70,0x41,0x6e,0x78,0x4a,0x6f,0x49,0x4f,0x48,0x71,0x61,0x75,0x31,0x30,0x5a,0x57,0x4b,0x50,0x33,0x46,0x7a,0x47,0x43,0x37,0x55,0x34,0x45,0x76,0x4d,0x58,0x59,0x74,0x68,0x77,0x53,0x56,0x6c,0x6b]),_0x4089d2=0x15677498,_0x22c734=0x15601878^_0x4089d2,_0x1b4b9d=window[_0x62bec7([0x44,0x61,0x74,0x65])][_0x62bec7([0x6e,0x6f,0x77])](),_0x136328=_0x2d2310[_0x62bec7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4cb36b=new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f984f=>{_0x136328[_0x62bec7([0x6f,0x6e,0x63,0x65])](_0x62bec7([0x72,0x65,0x61,0x64,0x79]),_0x2f984f);}),_0x381966={[_0x62bec7([0x6b,0x74,0x79])]:_0x62bec7([0x45,0x43]),[_0x62bec7([0x75,0x73,0x65])]:_0x62bec7([0x73,0x69,0x67]),[_0x62bec7([0x63,0x72,0x76])]:_0x62bec7([0x50,0x2d,0x32,0x35,0x36]),[_0x62bec7([0x78])]:_0x62bec7([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]),[_0x62bec7([0x79])]:_0x62bec7([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]),[_0x62bec7([0x61,0x6c,0x67])]:_0x62bec7([0x45,0x53,0x32,0x35,0x36])},_0x37bacb=_0x136328[_0x62bec7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x62bec7([0x67,0x65,0x74])](_0x62bec7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4bd1eb(){let _0x1e37cb,_0x5e8b43=null,_0x2e459d=null;try{if(_0x37bacb==_0x62bec7([0x47,0x50,0x4c]))return _0x62bec7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e37cb=_0x5c290e(),!_0x1e37cb)return _0x62bec7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e37cb[_0x62bec7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e459d=_0x50fbc6(_0x1e37cb[_0x62bec7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e37cb[_0x62bec7([0x6a,0x74,0x69])])),await _0x279bb2()?_0x2c8a51()?_0x1d1283()?_0x62bec7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x574467()?(_0x1e37cb[_0x62bec7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x62bec7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e8b43=_0x16af09(_0x62bec7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1e37cb[_0x62bec7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x62bec7([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e8b43=_0x16af09(_0x62bec7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a307c()):_0x62bec7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x62bec7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x62bec7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x62bec7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d1283(){const _0x4926fc=[_0x62bec7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x62bec7([0x74,0x72,0x69,0x61,0x6c])][_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e37cb[_0x62bec7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1b4b9d/0x3e8:0xe10*_0x22c734;return _0x1e37cb[_0x62bec7([0x65,0x78,0x70])]<_0x4926fc;}function _0x2c8a51(){const _0x3c05bc=_0x1e37cb[_0x62bec7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c05bc)return!0x1;if(_0x3c05bc[_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x62bec7([0x2a])))return!0x0;if(_0x3c05bc[_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x62bec7([0x54,0x43])))return!0x0;if(_0x3c05bc[_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x62bec7([0x52,0x54,0x43]))){if(_0x32f6cf())return!0x0;if(_0xcc9aab()||_0x2b22c5())return!0x0;}return!0x1;}function _0x574467(){const _0x479955=_0x1e37cb[_0x62bec7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x479955||0x0==_0x479955[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x512190}=new URL(window[_0x62bec7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x479955[_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x512190))return!0x0;const _0x1ef08b=_0x512190[_0x62bec7([0x73,0x70,0x6c,0x69,0x74])](_0x62bec7([0x2e]));return _0x479955[_0x62bec7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe22266=>_0xe22266[_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x62bec7([0x2a])))[_0x62bec7([0x6d,0x61,0x70])](_0x1a8a1e=>_0x1a8a1e[_0x62bec7([0x73,0x70,0x6c,0x69,0x74])](_0x62bec7([0x2e])))[_0x62bec7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ce3f0=>_0x2ce3f0[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ef08b[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x62bec7([0x6d,0x61,0x70])](_0x56638d=>Array(_0x1ef08b[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x56638d[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x62bec7([0x66,0x69,0x6c,0x6c])](_0x56638d[0x0]===_0x62bec7([0x2a])?_0x62bec7([0x2a]):'')[_0x62bec7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x56638d))[_0x62bec7([0x73,0x6f,0x6d,0x65])](_0x19aacd=>_0x1ef08b[_0x62bec7([0x65,0x76,0x65,0x72,0x79])]((_0x423c78,_0x375550)=>_0x19aacd[_0x375550]===_0x423c78||_0x19aacd[_0x375550]===_0x62bec7([0x2a])));}function _0x5a307c(){return _0x5e8b43&&_0x2e459d?new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5db650,_0x2e9561)=>{_0x5e8b43[_0x62bec7([0x74,0x68,0x65,0x6e])](_0x5db650,_0x2e9561),_0x2e459d[_0x62bec7([0x74,0x68,0x65,0x6e])](_0x3a5c10=>{_0x3a5c10!=_0x62bec7([0x56,0x61,0x6c,0x69,0x64])&&_0x5db650(_0x3a5c10);},_0x2e9561);}):_0x5e8b43||_0x2e459d||_0x62bec7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x50fbc6(_0x1b33cc,_0xe96407){return new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b2efb=>{if(_0x55ed5c())return _0x2b2efb(_0x62bec7([0x56,0x61,0x6c,0x69,0x64]));_0x2b1456(),_0x136328[_0x62bec7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x62bec7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2fceb0=!0x1;const _0x281ebf=_0x22223a();function _0x2f27ac(_0x3f6c28){return!!_0x3f6c28&&(typeof _0x3f6c28===_0x62bec7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f6c28===_0x62bec7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f6c28[_0x62bec7([0x74,0x68,0x65,0x6e])]===_0x62bec7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f6c28[_0x62bec7([0x63,0x61,0x74,0x63,0x68])]===_0x62bec7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3182c6(_0x31568c){_0x350c20(_0x31568c)[_0x62bec7([0x74,0x68,0x65,0x6e])](_0xe53e20=>{if(!_0xe53e20||_0xe53e20[_0x62bec7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x62bec7([0x6f,0x6b]))return _0x62bec7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19c94c(_0x3f1627(_0x281ebf+_0xe96407))!=_0xe53e20[_0x62bec7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x62bec7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x62bec7([0x56,0x61,0x6c,0x69,0x64]);})[_0x62bec7([0x74,0x68,0x65,0x6e])](_0x1482c3=>(_0x412c1d(),_0x1482c3),()=>{const _0x8f2f63=_0x276d0f();return null==_0x8f2f63?(_0x412c1d(),_0x62bec7([0x56,0x61,0x6c,0x69,0x64])):_0x62bec7(_0x1b4b9d-_0x8f2f63>(0x316bf098^_0x4089d2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x62bec7([0x74,0x68,0x65,0x6e])](_0x2b2efb)[_0x62bec7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b2efb(_0x62bec7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a21ae=0x15519a18^_0x4089d2;function _0x412c1d(){const _0x549e99=_0x62bec7([0x6c,0x6c,0x63,0x74,0x2d])+_0x19c94c(_0x3f1627(_0x1b33cc)),_0x285524=_0x58ffd5(_0x19c94c(window[_0x62bec7([0x4d,0x61,0x74,0x68])][_0x62bec7([0x63,0x65,0x69,0x6c])](_0x1b4b9d/_0x3a21ae)));window[_0x62bec7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x62bec7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x549e99,_0x285524);}function _0x276d0f(){const _0x14a42e=_0x62bec7([0x6c,0x6c,0x63,0x74,0x2d])+_0x19c94c(_0x3f1627(_0x1b33cc)),_0xd75b0c=window[_0x62bec7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x62bec7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14a42e);return _0xd75b0c?window[_0x62bec7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58ffd5(_0xd75b0c),0x10)*_0x3a21ae:null;}function _0x350c20(_0x5ed61f){return new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x183662,_0x2ae7f5)=>{_0x5ed61f[_0x62bec7([0x74,0x68,0x65,0x6e])](_0x183662,_0x2ae7f5),window[_0x62bec7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ae7f5,0x1566a058^_0x4089d2);});}}_0x136328[_0x62bec7([0x6f,0x6e])](_0x62bec7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4d890b,_0x2a12f1)=>{if(_0x2a12f1[0x0]!=_0x1b33cc)return _0x2b2efb(_0x62bec7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a12f1[0x1]={..._0x2a12f1[0x1],[_0x62bec7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x281ebf};},{[_0x62bec7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x62bec7([0x68,0x69,0x67,0x68])}),_0x136328[_0x62bec7([0x6f,0x6e])](_0x62bec7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49b1e0=>{_0x2f27ac(_0x49b1e0[_0x62bec7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2fceb0=!0x0,_0x3182c6(_0x49b1e0[_0x62bec7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x62bec7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x62bec7([0x6c,0x6f,0x77])}),_0x4cb36b[_0x62bec7([0x74,0x68,0x65,0x6e])](()=>{_0x2fceb0||_0x2b2efb(_0x62bec7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55ed5c(){return _0x136328[_0x62bec7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x62bec7([0x76,0x69,0x65,0x77])][_0x62bec7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x62bec7([0x61,0x75,0x74,0x6f]);}function _0x2b1456(){_0x136328[_0x62bec7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x62bec7([0x76,0x69,0x65,0x77])][_0x62bec7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x62bec7([0x61,0x75,0x74,0x6f]);}}function _0x16af09(_0x41882e){const _0x9cf153=[new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1022fc=>setTimeout(_0x1022fc,0x156e4a54^_0x4089d2)),_0x4cb36b[_0x62bec7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5527cc=>{let _0x5dca71=0x0;_0x136328[_0x62bec7([0x6d,0x6f,0x64,0x65,0x6c])][_0x62bec7([0x6f,0x6e])](_0x62bec7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d8c63,_0x211d2a)=>{_0x211d2a[0x0][_0x62bec7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5dca71++,_0x5dca71==(0x15677560^_0x4089d2)&&(_0x5527cc(),_0x5d8c63[_0x62bec7([0x6f,0x66,0x66])]());});}))];return window[_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x62bec7([0x72,0x61,0x63,0x65])](_0x9cf153)[_0x62bec7([0x74,0x68,0x65,0x6e])](()=>_0x41882e);}async function _0x8416ee(){await _0x4cb36b,_0x136328[_0x62bec7([0x6d,0x6f,0x64,0x65,0x6c])][_0x62bec7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4526ed,_0x136328[_0x62bec7([0x6d,0x6f,0x64,0x65,0x6c])][_0x62bec7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4526ed,_0x136328[_0x62bec7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x62bec7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32f6cf(){return _0x2ef7ad(_0x62bec7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x449fb6(_0x62bec7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x62bec7([0x73,0x74,0x61,0x74,0x65])]==_0x62bec7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xcc9aab(){return _0x2ef7ad(_0x62bec7([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 _0x2b22c5(){return _0x2ef7ad(_0x62bec7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4329d2(_0x243fdb){const _0x3f102b=_0x5be9ab();_0x136328[_0x3f102b]=_0x62bec7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x243fdb,_0x243fdb!=_0x62bec7([0x56,0x61,0x6c,0x69,0x64])&&_0x8416ee();}function _0x5be9ab(){const _0x1086d3=window[_0x62bec7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x62bec7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x62bec7([0x6e,0x6f,0x77])]())[_0x62bec7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x62bec7([0x2e]),'');let _0x2e1ba2=_0x62bec7([0x54]);for(let _0x349982=0x0;_0x349982<_0x1086d3[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x349982+=0x2){let _0x374b1b=window[_0x62bec7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1086d3[_0x62bec7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x349982,_0x349982+0x2));_0x374b1b>=_0x2f95d9[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x374b1b-=_0x2f95d9[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e1ba2+=_0x2f95d9[_0x374b1b];}return _0x2e1ba2;}function _0x5c290e(){const _0x15570a=_0x37bacb[_0x62bec7([0x73,0x70,0x6c,0x69,0x74])](_0x62bec7([0x2e]));if(0x3!=_0x15570a[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47887c(_0x15570a[0x1]);function _0x47887c(_0x44ddd7){const _0x326079=_0x151629(_0x44ddd7);return _0x326079&&_0x1c0771()?_0x326079:null;function _0x1c0771(){const _0x53c41e=_0x326079[_0x62bec7([0x6a,0x74,0x69])],_0x1cd9f9=window[_0x62bec7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53c41e[_0x62bec7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53c41e[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x171faa={..._0x326079,[_0x62bec7([0x6a,0x74,0x69])]:_0x53c41e[_0x62bec7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53c41e[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x171faa[_0x62bec7([0x76,0x63])],_0x3f1627(_0x171faa)==_0x1cd9f9;}}}async function _0x279bb2(){let _0x22aa74=!0x0;try{const _0x166a17=_0x37bacb[_0x62bec7([0x73,0x70,0x6c,0x69,0x74])](_0x62bec7([0x2e])),[_0x175e34,_0x4c0f3d,_0x540172]=_0x166a17;return _0x1eaf74(_0x175e34),await _0x386caa(_0x175e34,_0x4c0f3d,_0x540172),_0x22aa74;}catch{return!0x1;}function _0x1eaf74(_0x26d044){const _0x41d95b=_0x151629(_0x26d044);_0x41d95b&&_0x41d95b[_0x62bec7([0x61,0x6c,0x67])]==_0x62bec7([0x45,0x53,0x32,0x35,0x36])||(_0x22aa74=!0x1);}async function _0x386caa(_0x4ccf51,_0x24d5ea,_0x4f1538){const _0x2db231=window[_0x62bec7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x62bec7([0x66,0x72,0x6f,0x6d])](_0x2c76f1(_0x4f1538),_0x3747b7=>_0x3747b7[_0x62bec7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e902e=new window[(_0x62bec7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x62bec7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ccf51+_0x62bec7([0x2e])+_0x24d5ea),_0xe24c59=window[_0x62bec7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x62bec7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe24c59)return;const _0x106b37=await _0xe24c59[_0x62bec7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x62bec7([0x6a,0x77,0x6b]),_0x381966,{[_0x62bec7([0x6e,0x61,0x6d,0x65])]:_0x62bec7([0x45,0x43,0x44,0x53,0x41]),[_0x62bec7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x62bec7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x62bec7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe24c59[_0x62bec7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x62bec7([0x6e,0x61,0x6d,0x65])]:_0x62bec7([0x45,0x43,0x44,0x53,0x41]),[_0x62bec7([0x68,0x61,0x73,0x68])]:{[_0x62bec7([0x6e,0x61,0x6d,0x65])]:_0x62bec7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x106b37,_0x2db231,_0x1e902e)||(_0x22aa74=!0x1);}}function _0x151629(_0x99686a){return _0x99686a[_0x62bec7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x62bec7([0x65,0x79]))?JSON[_0x62bec7([0x70,0x61,0x72,0x73,0x65])](_0x2c76f1(_0x99686a)):null;}function _0x2c76f1(_0x2e0173){return window[_0x62bec7([0x61,0x74,0x6f,0x62])](_0x2e0173[_0x62bec7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x62bec7([0x2b]))[_0x62bec7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x62bec7([0x2f])));}function _0x3f1627(_0x8a3214){let _0x4d1d0b=0x1505;function _0x1678f(_0x3729f2){for(let _0x3bc7b1=0x0;_0x3bc7b1<_0x3729f2[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3bc7b1++){const _0x30878a=_0x3729f2[_0x62bec7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3bc7b1);_0x4d1d0b=(_0x4d1d0b<<0x5)+_0x4d1d0b+_0x30878a,_0x4d1d0b&=_0x4d1d0b;}}function _0x195e4d(_0x464d66){Array[_0x62bec7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x464d66)?_0x464d66[_0x62bec7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x195e4d):_0x464d66&&typeof _0x464d66==_0x62bec7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x62bec7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x464d66)[_0x62bec7([0x73,0x6f,0x72,0x74])]()[_0x62bec7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1dcbec,_0x379f6e])=>{_0x1678f(_0x1dcbec),_0x195e4d(_0x379f6e);}):_0x1678f(window[_0x62bec7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x464d66));}return _0x195e4d(_0x8a3214),_0x4d1d0b>>>0x0;}function _0x19c94c(_0x272010){return _0x272010[_0x62bec7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x62bec7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x62bec7([0x30]));}function _0x58ffd5(_0x578567){return _0x578567[_0x62bec7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x62bec7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x62bec7([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ef7ad(_0x2158a5){return _0x136328[_0x62bec7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x62bec7([0x68,0x61,0x73])](_0x2158a5);}function _0x449fb6(_0xcc19f8){return _0x136328[_0x62bec7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x62bec7([0x67,0x65,0x74])](_0xcc19f8);}function _0x4526ed(){}function _0x62bec7(_0xd84807){return _0xd84807['map'](_0x3f94a4=>String['fromCharCode'](_0x3f94a4))['join']('');}_0x4329d2(await _0x4bd1eb());}(this);}set['adapter'](_0x5ab25d){if(this['_adapter'])throw new _0x19b862('track-changes-adapter-already-set',this);this['_adapter']=_0x5ab25d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1d6c0d=!0x1,toJSON:_0x2769ff=!0x1}={}){const _0x4521d2=[];for(const _0x4658d0 of this['_suggestions']['values']())_0x1d6c0d&&!_0x4658d0['isInContent']||_0x4521d2['push'](_0x4658d0);return _0x2769ff?_0x4521d2['map'](_0x1df457=>_0x1df457['toJSON']()):_0x4521d2;}['getSuggestion'](_0x580b96){const _0x56b4fc=this['_suggestions']['get'](_0x580b96);if(!_0x56b4fc)throw new _0x19b862('track-changes-suggestion-not-found',this);return _0x56b4fc;}['hasSuggestion'](_0x2b16e2){return this['_suggestions']['has'](_0x2b16e2);}['addSuggestionData'](_0xf203cd){const {authorId:_0x1e2ce8,id:_0x31e0cf,originalSuggestionId:_0x387220,attributes:_0x4ecc08}=_0xf203cd,[_0x3b7cad,_0x450da3]=_0xf203cd['type']['split'](':'),_0x1708cf=this['_suggestions']['get'](_0x31e0cf)||this['_createSuggestion'](_0x3b7cad,_0x450da3,_0x31e0cf,_0x1e2ce8,_0x4ecc08,_0x387220);if(this['_addThreadToSuggestion'](_0x1708cf),this['_checkSuggestionCorrectness'](_0x1708cf,_0x3b7cad,_0x450da3||null,_0x1e2ce8),_0x1708cf['createdAt']=_0xf203cd['createdAt'],_0x1708cf['_isDataLoaded']=!0x0,_0x4ecc08&&_0x4ecc08['@external']){const _0x2ab77b=_0x4ecc08['@external'],_0x21dc2f=this['_getExternalAuthor'](_0x2ab77b['authorName']);_0x1708cf['authoredAt']=_0x2ab77b['createdAt'],_0x1708cf['author']=_0x21dc2f,_0x1708cf['isExternal']=!0x0;}else _0x1708cf['authoredAt']=_0xf203cd['createdAt'];switch(_0xf203cd['data']&&(_0x1708cf['data']=_0xf203cd['data']),_0xf203cd['attributes']&&(_0x1708cf['attributes']=_0xf203cd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1708cf['_saved']=!0x0),this['_suggestionState']['get'](_0x1708cf)){case'notReady':this['_suggestionState']['set'](_0x1708cf,'dataReady');break;case'markerReady':_0x1708cf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1708cf])),this['_refreshSuggestionsChain'](new Set([_0x1708cf])),this['_suggestionState']['set'](_0x1708cf,'ready'),this['fire']('suggestionLoaded',_0x1708cf)):this['_suggestionState']['set'](_0x1708cf,'removed');}return _0x1708cf;}['acceptSuggestion'](_0x50b1af){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa36654 of _0x50b1af['getAllAdjacentSuggestions']())_0xa36654['accept']();});});}['discardSuggestion'](_0x3da144){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4563ff of _0x3da144['getAllAdjacentSuggestions']())_0x4563ff['discard']();});});}['enableCommand'](_0x37ff6c,_0x21659d){const _0x178b72=this['editor']['commands']['get'](_0x37ff6c);if(!_0x178b72)throw new _0x19b862('track-changes-command-not-found',this,{'commandName':_0x37ff6c});if(this['_enabledCommands']['has'](_0x178b72))throw new _0x19b862('track-changes-enable-command-twice',this,{'commandName':_0x37ff6c});this['_enabledCommands']['add'](_0x178b72),_0x21659d&&_0x178b72['on']('execute',(_0x55f61e,_0x4f6488)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4f6488['length']>0x0&&_0x4f6488[_0x4f6488['length']-0x1]&&_0x4f6488[_0x4f6488['length']-0x1]['forceDefaultExecution']?_0x4f6488['pop']():(_0x55f61e['return']=_0x21659d((..._0xc48383)=>_0x178b72['execute'](..._0xc48383,{'forceDefaultExecution':!0x0}),..._0x4f6488),_0x55f61e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x13919f){let _0xc3dc1e,_0x1389c4;const _0x20ba4b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc3dc1e=_0x13919f();}catch(_0x269ccd){_0x1389c4=_0x269ccd;}return _0x20ba4b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1389c4&&_0x19b862['rethrowUnexpectedError'](_0x1389c4,this),_0xc3dc1e;}['markInsertion'](_0x60251c,_0x104b94=null,_0x1b60cb={}){if(_0x60251c['isCollapsed'])return null;const _0x522880=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1b60cb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x401992,meta:_0x2d50ef}of this['_findSuggestions'](_0x60251c,'insertion'))if(_0x2d50ef['isOwn']){if(!_0x2d50ef['isNextTo']){if(_0x2d50ef['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x401992,_0x1b60cb))continue;return _0x401992;}if(Qt(_0x401992,_0x1b60cb))return _0x401992;this['_breakSuggestionMarker'](_0x401992,_0x60251c['start'],_0x60251c['end']);break;}if(_0x104b94==_0x401992['subType']&&Qt(_0x401992,_0x1b60cb)){const _0x5e5fce=_0x401992['getFirstRange']();return _0x5e5fce['start']['isEqual'](_0x60251c['end'])?this['_setSuggestionRange'](_0x401992,this['_model']['createRange'](_0x60251c['start'],_0x5e5fce['end'])):this['_setSuggestionRange'](_0x401992,this['_model']['createRange'](_0x5e5fce['start'],_0x60251c['end'])),_0x401992;}}const _0x306331=_0x22223a(),_0x16b9f1=_0x522880['id'],_0x33b252=_0x104b94?'insertion:'+_0x104b94:'insertion',_0x4eb071=this['_setSuggestionData']({'id':_0x306331,'type':_0x33b252,'createdAt':new Date(),'authorId':_0x16b9f1,'attributes':_0x1b60cb});return this['_addSuggestionMarker'](_0x33b252,_0x306331,_0x16b9f1,_0x60251c),_0x4eb071;}['markMultiRangeInsertion'](_0x333d6c,_0x3a8717='multi',_0x382000={}){const _0x559223=this['editor']['plugins']['get']('Users')['me'],_0x5bd0ca=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3a8717,'join');this['_trackingSessionId']&&(_0x382000['trackingSessionId']=this['_trackingSessionId']);for(const _0x567c33 of this['getSuggestions']())if(_0x567c33['author']['id']==_0x559223['id']&&'insertion'==_0x567c33['type']&&_0x567c33['subType']==_0x3a8717&&Qt(_0x567c33,_0x382000)&&(_0x5bd0ca(_0x567c33['getRanges'](),_0x333d6c)||_0x5bd0ca(_0x333d6c,_0x567c33['getRanges']()))){for(const _0xfb9f31 of _0x333d6c)_0x567c33['addRange'](_0xfb9f31);return _0x567c33;}for(const {suggestion:_0x441392,meta:_0x4938c0}of this['_findSuggestions'](_0x333d6c,'insertion')){if(!_0x4938c0['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4938c0['containsRangeInObject'])continue;if(!Qt(_0x441392,_0x382000))continue;let _0xe082c3=!0x0;for(const _0x5165d8 of _0x441392['getRanges']())for(const _0x5b71b9 of _0x333d6c)if(!_0x5165d8['containsRange'](_0x5b71b9)){_0xe082c3=!0x1;break;}if(_0xe082c3)return _0x441392;}const _0x53c88b=_0x22223a(),_0x1a23f4=_0x559223['id'],_0x51bc05='insertion:'+_0x3a8717,_0x4b13fa=this['_setSuggestionData']({'id':_0x53c88b,'type':_0x51bc05,'createdAt':new Date(),'authorId':_0x1a23f4,'attributes':_0x382000});for(const _0x13934a of _0x333d6c)this['_addSuggestionMarker'](_0x51bc05,_0x53c88b,_0x1a23f4,_0x13934a,T['getMultiRangeId']());return _0x4b13fa;}['markInlineFormat'](_0x512e65,_0xf192d1,_0x19f5de=null,_0x58ba16={}){if(_0x19f5de=_0x19f5de||Lt(_0xf192d1),_0x512e65['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x58ba16['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5965b9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19f5de,'accept');return this['forceDefaultExecution'](()=>_0x5965b9([_0x512e65],_0xf192d1,_0x58ba16)),null;}const _0x4f3b88=this['editor']['plugins']['get']('Users')['me'],_0x41800a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2239b4,meta:_0x3321e3}of this['_findSuggestions'](_0x512e65,'insertion'))_0x3321e3['isOwn']&&!_0x3321e3['isInsideObject']&&_0x41800a['push'](..._0x2239b4['getRanges']());}const _0x13c6ca=function(_0x3d3626,_0x165af6){const _0x1dc12e=[];for(const _0x483109 of _0x165af6){const _0x4dc43d=_0x3d3626['getIntersection'](_0x483109);_0x4dc43d&&_0x1dc12e['push'](_0x4dc43d);}return _0x1dc12e;}(_0x512e65,_0x41800a),_0x4d9ffe=function(_0x25b0d3,_0x3b9988){const _0x191c37=[_0x25b0d3];for(const _0xa6ee1c of _0x3b9988){let _0xe9a36e=0x0;for(;_0xe9a36e<_0x191c37['length'];){const _0x5d4367=_0x191c37[_0xe9a36e]['getDifference'](_0xa6ee1c);_0x191c37['splice'](_0xe9a36e,0x1,..._0x5d4367),_0xe9a36e+=_0x5d4367['length'];}}return _0x191c37;}(_0x512e65,_0x41800a);_0x13c6ca['length']&&this['_model']['change'](()=>{for(const _0x1d1718 of _0x13c6ca){const _0x265981=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19f5de,'accept');this['forceDefaultExecution'](()=>_0x265981([_0x1d1718],_0xf192d1,_0x58ba16));}});for(const _0x2ecae8 of _0x4d9ffe){let _0x3b5c94=null,_0x39d501=_0x2ecae8['start'],_0x367ec5=_0x2ecae8['end'];for(const {suggestion:_0x5d9802,meta:_0x228329}of this['_findSuggestions'](_0x2ecae8,'formatInline')){if(!_0x228329['isOwn'])continue;if(_0x5d9802['subType']!=_0x19f5de)continue;if(!Qt(_0x5d9802,_0x58ba16))continue;const _0x20d0b9=_0x5d9802['getFirstRange']();if(_0x20d0b9['containsRange'](_0x2ecae8,!0x0))return null;_0x39d501=_0x39d501['isBefore'](_0x20d0b9['start'])?_0x39d501:_0x20d0b9['start'],_0x367ec5=_0x367ec5['isAfter'](_0x20d0b9['end'])?_0x367ec5:_0x20d0b9['end'],_0x3b5c94?_0x20d0b9['start']['isBefore'](_0x3b5c94['getFirstRange']()['start'])?(_0x3b5c94['removeMarkers'](),_0x3b5c94=_0x5d9802):_0x5d9802['removeMarkers']():_0x3b5c94=_0x5d9802;}const _0x2ebe63=this['_model']['createRange'](_0x39d501,_0x367ec5);if(_0x3b5c94)this['_setSuggestionRange'](_0x3b5c94,_0x2ebe63);else{const _0x240db1=_0x22223a(),_0x232557=_0x4f3b88['id'];this['_setSuggestionData']({'id':_0x240db1,'type':'formatInline:'+_0x19f5de,'data':_0xf192d1,'createdAt':new Date(),'authorId':_0x232557,'attributes':_0x58ba16}),this['_addSuggestionMarker']('formatInline:'+_0x19f5de,_0x240db1,_0x232557,_0x2ebe63);}}return null;}['markBlockFormat'](_0x57127b,_0x165c2d,_0x10c78d=[],_0x12edaf=null,_0x1aeb51={}){_0x165c2d['formatGroupId']||(_0x165c2d['formatGroupId']=_0x165c2d['commandName']),_0x165c2d['multipleBlocks']=_0x57127b['is']('range'),_0x12edaf=_0x12edaf||Lt(_0x165c2d);const _0x52a60d=_0x10c78d['map'](_0x5a0db0=>qt(_0x5a0db0,this['_model'])),_0x5f27d3=_0x57127b['is']('range')?_0x57127b:qt(_0x57127b,this['_model']);if(this['_trackingSessionId']&&(_0x1aeb51['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x492e1b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x12edaf,'accept');return this['forceDefaultExecution'](()=>_0x492e1b([_0x5f27d3],_0x165c2d,_0x1aeb51)),null;}_0x52a60d['push'](_0x5f27d3);let _0x449218=!0x0;for(const _0x475e99 of _0x52a60d)if(!this['_rangeIsInLocalUserInsertion'](_0x475e99)){_0x449218=!0x1;break;}if(_0x449218&&'always'!==this['_trackFormatChanges']){const _0x4eab47=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x12edaf,'accept');return this['forceDefaultExecution'](()=>_0x4eab47([_0x5f27d3],_0x165c2d,_0x1aeb51)),null;}let _0x1e5470=null,_0x5e7509=_0x5f27d3['start'],_0x6b28a3=_0x5f27d3['end'];for(const {suggestion:_0x501498,meta:_0x44b539}of this['_findSuggestions'](_0x5f27d3,'formatBlock')){if(!_0x44b539['isOwn'])continue;if(_0x44b539['isNextTo']||_0x44b539['containsRangeInObject']||_0x44b539['isInsideObject'])continue;if(_0x501498['data']['formatGroupId']!=_0x165c2d['formatGroupId'])continue;if(!Qt(_0x501498,_0x1aeb51))continue;const _0x49df76=_0x501498['getFirstRange']();if(_0x501498['subType']==_0x12edaf){if(_0x49df76['containsRange'](_0x5f27d3,!0x0))return null;_0x5e7509=_0x5e7509['isBefore'](_0x49df76['start'])?_0x5e7509:_0x49df76['start'],_0x6b28a3=_0x6b28a3['isAfter'](_0x49df76['end'])?_0x6b28a3:_0x49df76['end'],_0x1e5470?_0x49df76['start']['isBefore'](_0x1e5470['getFirstRange']()['start'])?(_0x1e5470['removeMarkers'](),_0x1e5470=_0x501498):_0x501498['removeMarkers']():_0x1e5470=_0x501498;}else{const _0x310939=_0x5f27d3['getIntersection'](_0x49df76);this['_cutOutSuggestionMarker'](_0x501498,_0x310939);}}const _0x2b841e=this['editor']['plugins']['get']('Users')['me'],_0x4a6902=_0x22223a(),_0x4fc3b3=_0x2b841e['id'];if(_0x1e5470)return this['_setSuggestionRange'](_0x1e5470,this['_model']['createRange'](_0x5e7509,_0x6b28a3)),_0x1e5470;{const _0x3f5111=this['_setSuggestionData']({'id':_0x4a6902,'type':'formatBlock:'+_0x12edaf,'data':_0x165c2d,'createdAt':new Date(),'authorId':_0x4fc3b3,'attributes':_0x1aeb51});return this['_addSuggestionMarker']('formatBlock:'+_0x12edaf,_0x4a6902,_0x4fc3b3,this['_model']['createRange'](_0x5e7509,_0x6b28a3)),_0x3f5111;}}['markMultiRangeBlockFormat'](_0x19c25b,_0x2c4a18,_0x3a618b=[],_0x4f69e6=null,_0x38be7f={}){_0x2c4a18['formatGroupId']||(_0x2c4a18['formatGroupId']=_0x2c4a18['commandName']);const _0x465c22=_0x19c25b[0x0];_0x2c4a18['multipleBlocks']=_0x465c22['is']('range'),_0x4f69e6=_0x4f69e6||Lt(_0x2c4a18);const _0x1c8aaa=_0x3a618b['map'](_0x54b152=>qt(_0x54b152,this['_model'])),_0x39fd73=_0x465c22['is']('range')?_0x19c25b:_0x19c25b['map'](_0x384a0a=>qt(_0x384a0a,this['_model']));if(this['_trackingSessionId']&&(_0x38be7f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5bef1d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f69e6,'accept');return this['forceDefaultExecution'](()=>_0x5bef1d(_0x39fd73,_0x2c4a18,_0x38be7f)),null;}_0x1c8aaa['push'](..._0x39fd73);let _0x272b93=!0x0;for(const _0xddae36 of _0x1c8aaa)if(!this['_rangeIsInLocalUserInsertion'](_0xddae36)){_0x272b93=!0x1;break;}if(_0x272b93&&'always'!==this['_trackFormatChanges']){const _0x940355=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f69e6,'accept');return this['forceDefaultExecution'](()=>_0x940355(_0x39fd73,_0x2c4a18,_0x38be7f)),null;}const _0x32509a=this['editor']['plugins']['get']('Users')['me'];for(const _0x28427e of this['getSuggestions']()){const _0x609b0d=_0x28427e['data'];if(_0x28427e['author']['id']!=_0x32509a['id'])continue;if('formatBlock'!=_0x28427e['type']||_0x609b0d['formatGroupId']!=_0x2c4a18['formatGroupId'])continue;if(!Qt(_0x28427e,_0x38be7f))continue;const _0x25361d=_0x28427e['subType']==_0x4f69e6;for(let _0x2c3c91=0x0;_0x2c3c91<_0x39fd73['length'];_0x2c3c91++){const _0x1ce26b=_0x39fd73[_0x2c3c91];for(const _0x51462c of _0x28427e['getMarkers']()){const _0x4a5d51=_0x51462c['getRange']();if(_0x1ce26b['isEqual'](_0x4a5d51)){_0x25361d?(_0x39fd73['splice'](_0x2c3c91,0x1),_0x2c3c91--):_0x28427e['removeMarker'](_0x51462c['name']);break;}}}}if(0x0==_0x39fd73['length'])return null;const _0x4b8a2d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f69e6,'join');for(const _0x353f29 of this['getSuggestions']()){const _0x2b2ef1=_0x353f29['data'];if(_0x353f29['author']['id']==_0x32509a['id']&&('formatBlock'==_0x353f29['type']&&_0x2b2ef1['formatGroupId']==_0x2c4a18['formatGroupId']&&_0x353f29['subType']==_0x4f69e6&&Qt(_0x353f29,_0x38be7f)&&(_0x4b8a2d(_0x353f29['getRanges'](),_0x39fd73)||_0x4b8a2d(_0x39fd73,_0x353f29['getRanges']())))){for(const _0x54b131 of _0x39fd73)_0x353f29['addRange'](_0x54b131);return _0x353f29;}}const _0x3f9988=_0x22223a(),_0x45abb1=_0x32509a['id'],_0x489214='formatBlock:'+_0x4f69e6,_0x1fe8c8=this['_setSuggestionData']({'id':_0x3f9988,'type':_0x489214,'data':_0x2c4a18,'createdAt':new Date(),'authorId':_0x45abb1,'attributes':_0x38be7f});for(const _0x26c26c of _0x39fd73)this['_addSuggestionMarker'](_0x489214,_0x3f9988,_0x45abb1,_0x26c26c,T['getMultiRangeId']());return _0x1fe8c8;}['markDeletion'](_0x5d1184,_0x3f1c0d=null,_0x461032={}){if(_0x5d1184['isCollapsed'])return null;const _0x146359=this['editor']['plugins']['get']('Users')['me'],_0x4e6203=new _0x158d49(_0x5d1184['start'],_0x5d1184['end']);this['_trackingSessionId']&&(_0x461032['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2ecc3f,meta:_0x16ccf0}of this['_findSuggestions'](_0x4e6203,'insertion'))if(_0x16ccf0['isOwn']&&!_0x16ccf0['isNextTo']){if(_0x2ecc3f['isMultiRange']){const _0x27e08b=_0x2ecc3f['getRanges']()['filter'](_0xd27b5=>'$graveyard'!=_0xd27b5['root']['rootName']);_0x27e08b['every'](_0x48dc34=>_0x4e6203['containsRange'](_0x48dc34,!0x0))&&_0x2ecc3f['discard']();if(_0x27e08b['some'](_0x220756=>_0x220756['containsRange'](_0x4e6203,!0x0))){const _0x302d15=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f1c0d,'accept');return this['forceDefaultExecution'](()=>_0x302d15([_0x4e6203],null,_0x461032)),null;}}else{const _0x25c9e8=_0x4e6203['getIntersection'](_0x2ecc3f['getFirstRange']());null!==_0x25c9e8&&_0x2ecc3f['_onDiscard']([_0x25c9e8],null,_0x461032);}}if(_0x4e6203['detach'](),_0x4e6203['isCollapsed']||'$graveyard'==_0x4e6203['root']['rootName'])return null;let _0xc70d7e=null,_0x503a16=_0x4e6203['start'],_0x92d540=_0x4e6203['end'];const _0x452391=this['_findSuggestions'](_0x4e6203,'deletion');for(const {suggestion:_0x44eddc,meta:_0x5c1862}of _0x452391){const _0x412234=this['_model']['createRange'](_0x503a16,_0x92d540);if(_0x5c1862['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5c1862['containsRangeInObject']&&!_0x5c1862['isInsideObject'])){if(_0x44eddc['isMultiRange']){if(!Qt(_0x44eddc,_0x461032))continue;let _0x3b3d91=!0x0;for(const _0x109654 of _0x44eddc['getRanges']()){if(_0x109654['containsRange'](_0x412234,!0x0))return _0x44eddc;_0x412234['containsRange'](_0x109654)||(_0x3b3d91=!0x1);}_0x3b3d91&&_0x44eddc['discard']();}else{const _0x38c105=_0x44eddc['getFirstRange']();if(_0x38c105['containsRange'](_0x412234,!0x0))return _0x44eddc;if(!Qt(_0x44eddc,_0x461032)){_0x412234['containsRange'](_0x38c105)?_0x44eddc['removeMarkers']():_0x38c105['containsPosition'](_0x503a16)?_0x503a16=_0x38c105['end']:_0x38c105['containsPosition'](_0x92d540)&&(_0x92d540=_0x38c105['start']);continue;}_0x503a16=_0x503a16['isBefore'](_0x38c105['start'])?_0x503a16:_0x38c105['start'],_0x92d540=_0x92d540['isAfter'](_0x38c105['end'])?_0x92d540:_0x38c105['end'],_0x461032=Object['assign']({},_0x44eddc['attributes']),_0xc70d7e?_0x38c105['start']['isBefore'](_0xc70d7e['getFirstRange']()['start'])?(_0xc70d7e['removeMarkers'](),_0xc70d7e=_0x44eddc):_0x44eddc['removeMarkers']():_0xc70d7e=_0x44eddc;}}}if(_0xc70d7e)return this['_setSuggestionRange'](_0xc70d7e,this['_model']['createRange'](_0x503a16,_0x92d540)),_0xc70d7e;{const _0x441491=_0x22223a(),_0x17feb8=this['_model']['createRange'](_0x503a16,_0x92d540),_0x1dc1ba=_0x146359['id'],_0x3894d7=_0x3f1c0d?'deletion:'+_0x3f1c0d:'deletion',_0x8c2e12=this['_setSuggestionData']({'id':_0x441491,'type':_0x3894d7,'createdAt':new Date(),'authorId':_0x1dc1ba,'attributes':_0x461032});return this['_addSuggestionMarker'](_0x3894d7,_0x441491,_0x1dc1ba,_0x17feb8),_0x8c2e12;}}['markMultiRangeDeletion'](_0x2a85a7,_0x48d45b='multi',_0x388c82={}){const _0x2cd83c=this['editor']['plugins']['get']('Users')['me'],_0x2813b3=_0x2a85a7['map'](_0x5b837f=>new _0x158d49(_0x5b837f['start'],_0x5b837f['end'])),_0x42f999=new Set();this['_trackingSessionId']&&(_0x388c82['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3a816b,meta:_0x167704}of this['_findSuggestions'](_0x2813b3,'insertion'))_0x167704['isOwn']&&!_0x167704['isNextTo']&&_0x42f999['add'](_0x3a816b);for(const _0x5dd36e of _0x42f999)if(_0x5dd36e['isMultiRange']){const _0x30a7cf=_0x5dd36e['getRanges']();(!_0x5dd36e['attributes']||!_0x5dd36e['attributes']['skipNestingCheck'])&&(_0x30a7cf['every'](_0x3c0c88=>_0x2813b3['some'](_0x19490f=>_0x19490f['containsRange'](_0x3c0c88,!0x0)))&&_0x5dd36e['discard']());if(_0x2813b3['every'](_0x2fffe0=>_0x30a7cf['some'](_0x2fed93=>_0x2fed93['containsRange'](_0x2fffe0,!0x0)))){const _0x477e6f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48d45b,'accept');return this['forceDefaultExecution'](()=>_0x477e6f(_0x2a85a7,null,_0x388c82)),null;}}else{const _0x33e5d6=_0x5dd36e['getFirstRange']();_0x2813b3['some'](_0x4cb4db=>_0x4cb4db['containsRange'](_0x33e5d6,!0x0))&&_0x5dd36e['discard']();if(_0x2813b3['every'](_0x168d2f=>_0x33e5d6['containsRange'](_0x168d2f,!0x0))){const _0x570527=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48d45b,'accept');return this['forceDefaultExecution'](()=>_0x570527(_0x2813b3,null,_0x388c82)),null;}}const _0x43ad55=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48d45b,'join');let _0x34be98=null;for(const _0x5be2b4 of this['getSuggestions']())if(_0x5be2b4['author']['id']==_0x2cd83c['id']&&_0x5be2b4['isInContent']&&'deletion'==_0x5be2b4['type']&&_0x5be2b4['subType']==_0x48d45b&&Qt(_0x5be2b4,_0x388c82)&&(_0x43ad55(_0x5be2b4['getRanges'](),_0x2813b3)||_0x43ad55(_0x2813b3,_0x5be2b4['getRanges']()))){if(_0x34be98){if(_0x5be2b4['commentThread']&&_0x5be2b4['commentThread']['length'])continue;for(const _0x15413f of _0x5be2b4['getRanges']())_0x34be98['isIntersectingWithRange'](_0x15413f)||_0x34be98['addRange'](_0x15413f);_0x5be2b4['removeMarkers']();}else{_0x34be98=_0x5be2b4;for(const _0x2e0f28 of _0x2813b3)_0x5be2b4['isIntersectingWithRange'](_0x2e0f28)||_0x5be2b4['addRange'](_0x2e0f28);}}if(_0x34be98)return _0x34be98;_0x42f999['clear']();for(const {suggestion:_0x2d0065,meta:_0x3684a6}of this['_findSuggestions'](_0x2813b3,'deletion'))_0x3684a6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3684a6['containsRangeInObject']&&!_0x3684a6['isInsideObject'])&&Qt(_0x2d0065,_0x388c82)&&_0x42f999['add'](_0x2d0065);for(const _0xda51bc of _0x42f999){const _0x54433e=_0xda51bc['getRanges']();if(!_0x388c82||!_0x388c82['skipNestingCheck']){if(_0x2813b3['every'](_0xc32b41=>_0x54433e['some'](_0x1c9954=>_0x1c9954['containsRange'](_0xc32b41,!0x0))))return _0xda51bc;}(!_0xda51bc['attributes']||!_0xda51bc['attributes']['skipNestingCheck'])&&(_0x54433e['every'](_0x50bda8=>_0x2813b3['some'](_0x529db0=>_0x529db0['containsRange'](_0x50bda8,!0x0)))&&_0xda51bc['discard']());}const _0x33375b=_0x22223a(),_0x212af1=_0x2cd83c['id'],_0x46cbf0='deletion:'+_0x48d45b,_0x598b60=this['_setSuggestionData']({'id':_0x33375b,'type':_0x46cbf0,'createdAt':new Date(),'authorId':_0x212af1,'attributes':_0x388c82});for(const _0xc10fcc of _0x2813b3)_0xc10fcc['detach'](),_0xc10fcc['isCollapsed']||'$graveyard'==_0xc10fcc['root']['rootName']||this['_addSuggestionMarker'](_0x46cbf0,_0x33375b,_0x212af1,_0xc10fcc,T['getMultiRangeId']());return _0x598b60;}['markAttributeChange'](_0x19fd08,_0x1a650c,_0x2be3b3,_0x4ff378,_0x24dc35){if(_0x19fd08['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xde8c5c=this['editor']['plugins']['get']('Users')['me']['id'],_0x53279a=Array['from'](this['_suggestions']['values']())['filter'](_0x365b05=>'attribute'==_0x365b05['type']&&_0x365b05['data']['key']==_0x1a650c&&_0x365b05['isIntersectingWithRange'](_0x19fd08));if(this['_trackingSessionId']&&(_0x24dc35['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1ad8ec=this['_findSuggestions'](_0x19fd08,'insertion')['filter'](({meta:_0x15b006})=>_0x15b006['isOwn']&&!_0x15b006['isInsideObject']&&!_0x15b006['isNextTo'])['map'](({suggestion:_0x3732cf})=>_0x3732cf);_0x53279a['unshift'](..._0x1ad8ec);}const _0x12b229=new Map([[_0x19fd08,_0x2be3b3]]);for(const _0x469152 of _0x53279a){const _0x7e9cb6='attribute'==_0x469152['type']?_0x469152['data']['oldValue']:void 0x0,_0x4d0997=_0x469152['getFirstRange'](),_0x55e126=Array['from'](_0x12b229['keys']())['find'](_0x1a3b84=>_0x1a3b84['isIntersecting'](_0x4d0997));if(!_0x55e126)continue;const _0x228dd4=_0x55e126['getDifference'](_0x4d0997);this['_isBlockAttribute'](_0x1a650c)&&'insertion'==_0x469152['type']&&0x0!=_0x228dd4['length']||(_0x12b229['delete'](_0x55e126),_0x228dd4['forEach'](_0x85f3f4=>{_0x12b229['set'](_0x85f3f4,_0x2be3b3);}),'insertion'!=_0x469152['type']&&_0x7e9cb6!=_0x4ff378&&_0x12b229['set'](_0x55e126['getIntersection'](_0x4d0997),_0x7e9cb6));}const _0x4f8ffb=[];for(const [_0x5b2997,_0x1ea200]of _0x12b229){const _0x59d139=_0x22223a(),_0x24e0d2={'key':_0x1a650c,'oldValue':_0x1ea200,'newValue':_0x4ff378};_0x1a650c['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':_0x1a650c});const _0x5bf73e=('attribute:'+(_0x1a650c+'|'+Lt({'newValue':_0x4ff378})))['substring'](0x0,0x3c),_0x2e4014=this['_setSuggestionData']({'id':_0x59d139,'type':_0x5bf73e,'data':_0x24e0d2,'createdAt':new Date(),'authorId':_0xde8c5c,'attributes':_0x24dc35});_0x4f8ffb['push'](_0x2e4014),this['_addSuggestionMarker'](_0x5bf73e,_0x59d139,_0xde8c5c,_0x5b2997);}return _0x4f8ffb;}['enableDefaultAttributesIntegration'](_0x1bb1ba){this['enableCommand'](_0x1bb1ba,(_0x3ee12e,..._0x3bbda2)=>{this['recordAttributeChanges'](()=>{_0x3ee12e(..._0x3bbda2);});});}['registerBlockAttribute'](_0x27181e){this['_blockAttributeKeys']['add'](_0x27181e);}['registerInlineAttribute'](_0x48943d){this['_inlineAttributeKeys']['add'](_0x48943d);}['startTrackingSession'](_0x4db8fe){return this['_trackingSessionId']=void 0x0!==_0x4db8fe?_0x4db8fe:_0x22223a(),this['_trackingSessionId'];}['_getAttributeKey'](_0x480646){return'attribute'==_0x480646['type']?_0x480646['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x552be2,_0x3bb23f){const _0x2529b3=_0x552be2['getFirstMarker']();this['_model']['change'](_0x174a93=>{_0x174a93['updateMarker'](_0x2529b3,{'range':_0x3bb23f});});}['_addThreadToSuggestion'](_0x49df7a){const _0xc66bfb=_0x49df7a['id'],_0x2c8e9f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xc66bfb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2c8e9f,'threadId':_0xc66bfb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x15b506=this['_commentsRepository']['getCommentThread'](_0xc66bfb);_0x15b506['unbind']('isRemovable'),_0x15b506['isRemovable']=!0x1,_0x49df7a['commentThread']=_0x15b506;}['_checkSuggestionCorrectness'](_0x15c441,_0x5d9407,_0x40636e,_0x43e34c){if(_0x15c441['type']!=_0x5d9407||_0x15c441['subType']!=_0x40636e||_0x15c441['creator']['id']!=_0x43e34c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x19b862('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1766e9,_0x215a85){const _0x2239c6=_0x1766e9['getFirstRange']();if(_0x215a85['isEqual'](_0x2239c6))_0x1766e9['removeMarkers']();else{if(_0x2239c6['containsRange'](_0x215a85)){const _0x5a6061=this['_model']['createPositionAt'](_0x215a85['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1766e9,this['_model']['createRange'](_0x2239c6['start'],_0x5a6061));const _0x96819e=_0x22223a(),_0x2fbf00=_0x1766e9['creator']['id'],_0x52c49e=_0x1766e9['type']+':'+_0x1766e9['subType'];this['_setSuggestionData']({'id':_0x96819e,'type':_0x52c49e,'createdAt':new Date(),'authorId':_0x2fbf00,'data':_0x1766e9['data'],'attributes':_0x1766e9['attributes']});const _0x48be62=this['_model']['createPositionAt'](_0x215a85['end']['parent'],'after'),_0x46d1d2=this['_model']['createRange'](_0x48be62,_0x2239c6['end']);this['_addSuggestionMarker'](_0x52c49e,_0x96819e,_0x2fbf00,_0x46d1d2);}else{if(_0x2239c6['containsPosition'](_0x215a85['start'])){const _0x286136=this['_model']['createPositionAt'](_0x215a85['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1766e9,this['_model']['createRange'](_0x2239c6['start'],_0x286136));}else{const _0xc45702=this['_model']['createPositionAt'](_0x215a85['end']['parent'],'after');this['_setSuggestionRange'](_0x1766e9,this['_model']['createRange'](_0xc45702,_0x2239c6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x11a0bd){for(const {suggestion:_0x294585,meta:_0x1c199e}of this['_findSuggestions'](_0x11a0bd,'insertion')){if(!_0x1c199e['isOwn'])continue;const _0x514fdd=_0x294585['getRanges']();for(const _0x586923 of _0x514fdd)if(!_0x11a0bd['getDifference'](_0x586923)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x53bfac){const _0x4fba67=this['editor']['plugins']['get']('Users')['getUser'](_0x53bfac);if(!_0x4fba67)throw new _0x19b862('track-changes-user-not-found',this);return _0x4fba67;}['_getExternalAuthor'](_0x323bcc){const _0x50df3b=this['editor']['plugins']['get']('Users'),_0x28a675=_0x51d884('external:'+_0x323bcc),_0x1cfe91=_0x50df3b['getUser'](_0x28a675);return _0x1cfe91||_0x50df3b['addUser']({'id':_0x28a675,'name':_0x323bcc});}['_createSuggestion'](_0x33fcf8,_0x12b5a1,_0x2565c1,_0x4c9ffa,_0x44d12a,_0x4bfba4){const _0x12ee0b=this['_getAuthorFromId'](_0x4c9ffa),_0x4b822a=this['_suggestionFactory']['buildSuggestion'](_0x33fcf8,_0x12b5a1,_0x2565c1,_0x12ee0b,_0x44d12a,_0x52c0b2=>{this['_updateSuggestionData'](_0x2565c1,{'attributes':_0x52c0b2});const _0x1e255f=this['getSuggestion'](_0x2565c1);this['_joinWithAdjacentSuggestions'](new Set([_0x1e255f])),this['_refreshSuggestionsChain'](new Set([_0x1e255f]));},_0x4bfba4);return this['listenTo'](_0x4b822a,'accept',()=>{this['_updateSuggestionData'](_0x2565c1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4b822a,'discard',()=>{this['_updateSuggestionData'](_0x2565c1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2565c1,_0x4b822a),this['_suggestionState']['set'](_0x4b822a,'notReady'),_0x4b822a;}['_splitMarkerName'](_0x3a2820){const _0x109dda=_0x3a2820['split'](':');return{'group':_0x109dda[0x0],'type':_0x109dda[0x1],'subType':_0x109dda['length']>=0x5?_0x109dda[0x2]:null,'id':_0x109dda['length']<0x5?_0x109dda[0x2]:_0x109dda[0x3],'authorId':_0x109dda['length']<0x5?_0x109dda[0x3]:_0x109dda[0x4],'markerCount':0x6==_0x109dda['length']?_0x109dda[0x5]:null};}['_breakSuggestionMarker'](_0x527620,_0x2ece5e,_0x9b090){const _0x2c3849=_0x527620['getFirstRange'](),_0x5209ad=_0x2c3849['start'],_0x1a21de=_0x2c3849['end'];this['_setSuggestionRange'](_0x527620,this['_model']['createRange'](_0x5209ad,_0x2ece5e));const _0x2aa624=_0x22223a(),_0x589f30=_0x527620['creator']['id'],_0x1316f7=_0x527620['type']+(_0x527620['subType']?':'+_0x527620['subType']:'');this['_setSuggestionData']({'id':_0x2aa624,'type':_0x1316f7,'createdAt':new Date(),'authorId':_0x589f30,'originalSuggestionId':_0x527620['_originalSuggestionId']||_0x527620['id'],'attributes':_0x527620['attributes'],'data':_0x527620['data']});const _0x47051e=this['_getAttributeKey'](_0x527620);('formatBlock'==_0x527620['type']||_0x47051e&&this['_isBlockAttribute'](_0x47051e))&&(_0x9b090=this['_model']['createPositionBefore'](_0x9b090['parent'])),this['_addSuggestionMarker'](_0x1316f7,_0x2aa624,_0x589f30,this['_model']['createRange'](_0x9b090,_0x1a21de));}['_findSuggestions'](_0x405575,_0x25a5bd=null){const _0x35a875=[],_0x426111=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x405575)||(_0x405575=[_0x405575]);for(const _0x139619 of this['getSuggestions']()){if(!_0x139619['isInContent'])continue;if(_0x25a5bd&&_0x139619['type']!=_0x25a5bd)continue;let _0x4a4388=!0x1;for(const _0x3f3289 of _0x139619['getRanges']()){for(const _0x3ed87c of _0x405575){const _0x3d293d=_0x3ed87c['start']['isEqual'](_0x3f3289['end'])||_0x3ed87c['end']['isEqual'](_0x3f3289['start']);if(_0x3d293d||_0x3ed87c['getIntersection'](_0x3f3289)){const _0x1b2db8=_0x3ed87c['containsRange'](_0x3f3289)&&Ft(this['_model']['schema'],_0x3f3289['start'],_0x3ed87c),_0x65cca=_0x3f3289['containsRange'](_0x3ed87c)&&Ft(this['_model']['schema'],_0x3ed87c['start'],_0x3f3289);_0x35a875['push']({'suggestion':_0x139619,'meta':{'isOwn':_0x426111==_0x139619['author'],'isNextTo':_0x3d293d,'isInsideObject':_0x1b2db8,'containsRangeInObject':_0x65cca}}),_0x4a4388=!0x0;break;}}if(_0x4a4388)break;}}return _0x35a875;}['_addSuggestionMarker'](_0x27c56d,_0x2aab2d,_0xe4f818,_0x46d97d,_0x38d1d2){this['_model']['change'](_0x2e0f0d=>{let _0x5c139a='suggestion:'+_0x27c56d+':'+_0x2aab2d+':'+_0xe4f818;_0x38d1d2&&(_0x5c139a=_0x5c139a+':'+_0x38d1d2),_0x2e0f0d['addMarker'](_0x5c139a,{'range':_0x46d97d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5be381){const _0x5504f1=_0x5be381['previous'],_0x2df175=_0x5be381['next'];_0x5be381['previous']=null,_0x5be381['next']=null,null!=_0x5504f1&&_0x5504f1['next']==_0x5be381&&(_0x5504f1['next']=_0x2df175),null!=_0x2df175&&_0x2df175['previous']==_0x5be381&&(_0x2df175['previous']=_0x5504f1),'ready'==this['_suggestionState']['get'](_0x5be381)&&(this['_suggestionState']['set'](_0x5be381,'removed'),this['fire']('suggestionUnloaded',_0x5be381,_0x5504f1,_0x2df175));}['_setSuggestionData'](_0x180006){const _0x4a847c=_0x180006['id'],_0x100352=this['addSuggestionData'](_0x180006);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2139ac=this['editor']['plugins']['get']('PendingActions'),_0x484b1e=_0x100352['hasComments'],_0x4139fd=_0x100352['subType']?_0x100352['type']+':'+_0x100352['subType']:_0x100352['type'],_0x23a253=this['editor']['locale'],_0xcbb2ee=_0x2139ac['add'](o(_0x23a253,'PENDING_ACTION_SUGGESTION')),_0x5731ca={'id':_0x4a847c,'type':_0x4139fd,'hasComments':_0x484b1e,'data':_0x180006['data']||null,'originalSuggestionId':_0x180006['originalSuggestionId']||null,'attributes':_0x100352['attributes']};this['_adapter']['addSuggestion'](_0x5731ca)['then'](_0x53b422=>{_0x100352['_saved']=!0x0,_0x2139ac['remove'](_0xcbb2ee),_0x53b422&&_0x53b422['createdAt']&&(this['_suggestions']['get'](_0x4a847c)['createdAt']=_0x53b422['createdAt']);})['catch'](_0x3d2010=>{throw _0x5ac787('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x100352['discard']();}),_0x100352['stopListening'](),this['_suggestions']['delete'](_0x100352['id']),this['_suggestionState']['delete'](_0x100352),_0x3d2010;});}return _0x100352;}['_isBlockAttribute'](_0x140793){return this['_blockAttributeKeys']['has'](_0x140793);}['_updateSuggestionData'](_0x37541f,_0x46f673){const _0x31bc1f=this['editor']['plugins']['get']('PendingActions'),_0x479fbe=this['getSuggestion'](_0x37541f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x479fbe['_saved']){const _0x48d560=_0x31bc1f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x37541f,_0x46f673)['then'](()=>{_0x31bc1f['remove'](_0x48d560);});}else _0x479fbe['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x37541f,_0x46f673);});}}['_getSuggestionData'](_0x241213){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x19b862('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x241213);}['_handleNewSuggestionMarker'](_0x2e8faa){const {id:_0x3fefbd,type:_0x437388,subType:_0xdbc7b8,authorId:_0xfcbf7b}=this['_splitMarkerName'](_0x2e8faa),_0x4a3d1f=this['_suggestions']['get'](_0x3fefbd)||this['_createSuggestion'](_0x437388,_0xdbc7b8,_0x3fefbd,_0xfcbf7b,{});switch(this['_checkSuggestionCorrectness'](_0x4a3d1f,_0x437388,_0xdbc7b8,_0xfcbf7b),this['_suggestionState']['get'](_0x4a3d1f)){case'notReady':this['_getSuggestionData'](_0x3fefbd)['then'](_0x3d98db=>{let _0x585f06=Promise['resolve']();_0x3d98db['hasComments']&&(_0x585f06=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3fefbd})),_0x585f06['then'](()=>{this['addSuggestionData'](_0x3d98db)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4a3d1f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3fefbd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4a3d1f,'ready'),this['fire']('suggestionLoaded',_0x4a3d1f);break;case'ready':this['fire']('suggestionChanged',_0x4a3d1f);}return _0x4a3d1f['addMarkerName'](_0x2e8faa),_0x4a3d1f;}['_refreshSuggestionsChain'](_0x27bc59){const _0x3f4f68=Array['from'](_0x27bc59),_0x305e72=_0x3f4f68['filter'](_0x3e7ed1=>'attribute'==_0x3e7ed1['type']);this['_refreshAttributeSuggestionsChain'](_0x305e72);const _0x3c01b8=_0x3f4f68['filter'](_0x5f5027=>!_0x5f5027['isMultiRange']&&'attribute'!=_0x5f5027['type']),_0x148c5a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3494bb=>!_0x3494bb['isMultiRange']&&'attribute'!=_0x3494bb['type']),_0x5cbc41=_0x148c5a['filter'](_0x22a884=>!_0x27bc59['has'](_0x22a884)),_0x396b8a=new Map(_0x148c5a['map'](_0xa513ca=>[_0xa513ca,this['_suggestionFactory']['getSuggestionCallback'](_0xa513ca['type'],_0xa513ca['subType'],'chain')])),_0x34a0bc=new Map(_0x148c5a['map'](_0x154752=>[_0x154752,_0x154752['getFirstRange']()])),_0x12731a=new Set(),_0x1f4297=new Set();for(let _0x1e833e=0x0;_0x1e833e<_0x3c01b8['length'];_0x1e833e++)_0x5b71d5(_0x3c01b8[_0x1e833e],_0x3c01b8,_0x1e833e+0x1);for(let _0x3a307d=0x0;_0x3a307d<_0x3c01b8['length'];_0x3a307d++)_0x5b71d5(_0x3c01b8[_0x3a307d],_0x5cbc41,0x0);const _0x139e1d=new Set();for(let _0xda5da2=0x0;_0xda5da2<_0x3c01b8['length'];_0xda5da2++){const _0x4c9f7d=_0x3c01b8[_0xda5da2];!_0x1f4297['has'](_0x4c9f7d)&&_0x4c9f7d['previous']&&(_0x139e1d['add'](_0x4c9f7d['previous']),_0x4c9f7d['previous']['next']===_0x4c9f7d&&(_0x4c9f7d['previous']['next']=null),_0x4c9f7d['previous']=null),!_0x12731a['has'](_0x4c9f7d)&&_0x4c9f7d['next']&&(_0x139e1d['add'](_0x4c9f7d['next']),_0x4c9f7d['next']['previous']===_0x4c9f7d&&(_0x4c9f7d['next']['previous']=null),_0x4c9f7d['next']=null);}function _0x5b71d5(_0x53cd06,_0x1ab56b,_0x21fa94){for(let _0x5af0f7=_0x21fa94;_0x5af0f7<_0x1ab56b['length'];_0x5af0f7++){const _0xfe2f0a=_0x24f1bc(_0x53cd06,_0x1ab56b[_0x5af0f7]);_0xfe2f0a&&(_0xfe2f0a[0x0]['next']=_0xfe2f0a[0x1],_0xfe2f0a[0x1]['previous']=_0xfe2f0a[0x0],_0x12731a['add'](_0xfe2f0a[0x0]),_0x1f4297['add'](_0xfe2f0a[0x1]));}}function _0x24f1bc(_0x54e41c,_0x5d631f){if(_0x54e41c['author']['id']!==_0x5d631f['author']['id'])return null;const _0x42bdd4=_0x396b8a['get'](_0x54e41c)(_0x54e41c,_0x5d631f,_0x34a0bc['get'](_0x54e41c),_0x34a0bc['get'](_0x5d631f));if(!_0x42bdd4)return null;return _0x396b8a['get'](_0x5d631f)(_0x54e41c,_0x5d631f,_0x34a0bc['get'](_0x54e41c),_0x34a0bc['get'](_0x5d631f))?_0x42bdd4[0x1]['commentThread']&&_0x42bdd4[0x1]['commentThread']['length']?null:_0x42bdd4:null;}_0x139e1d['size']&&this['_refreshSuggestionsChain'](_0x139e1d);}['_refreshAttributeSuggestionsChain'](_0x2b98c2){if(0x0==_0x2b98c2['length'])return;const _0x156a37=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1bd372=>'attribute'==_0x1bd372['type']&&_0x1bd372['_isDataLoaded']),_0x1bf377=[],_0x58cbed=new Map();for(const _0x3f3881 of _0x156a37){const _0x1485c1=_0x51d884(_0x3f3881['attributes']);_0x58cbed['has'](_0x1485c1)||(_0x58cbed['set'](_0x1485c1,_0x1bf377['length']),_0x1bf377['push']([]));const _0x374648=_0x58cbed['get'](_0x1485c1);_0x1bf377[_0x374648]['push'](_0x3f3881);}!(function(){_0x1bf377['sort']((_0x29d8fd,_0x154b8e)=>{const _0x33ea5e=_0x29d8fd[0x0]['createdAt'],_0x35eb54=_0x154b8e[0x0]['createdAt'];return _0x33ea5e==_0x35eb54?_0x29d8fd[0x0]['attributes']['groupId']<_0x154b8e[0x0]['attributes']['groupId']?-0x1:0x1:_0x33ea5e<_0x35eb54?-0x1:0x1;});for(const _0xf430e9 of _0x1bf377)_0xf430e9['sort']((_0x53c134,_0x2af6cf)=>_0x53c134['id']<_0x2af6cf['id']?-0x1:0x1);}());for(let _0x582014=0x0;_0x582014<_0x1bf377['length'];_0x582014++){if(0x0==_0x1bf377[_0x582014]['length'])continue;const _0x37860e=[];for(let _0x2439d5=_0x582014+0x1;_0x2439d5<_0x1bf377['length'];_0x2439d5++)0x0!=_0x1bf377[_0x2439d5]['length']&&_0xfc41fa(_0x1bf377[_0x582014],_0x1bf377[_0x2439d5])&&_0x37860e['push'](_0x2439d5);for(const _0xe1898d of _0x37860e)_0x1bf377[_0x582014]=_0x1bf377[_0x582014]['concat'](_0x1bf377[_0xe1898d]),_0x1bf377[_0xe1898d]=[];}for(const _0x7cd762 of _0x1bf377)for(let _0x108388=0x0;_0x108388<_0x7cd762['length'];_0x108388++){const _0xa6cde4=_0x7cd762[_0x108388+0x1]||null;_0x7cd762[_0x108388]['next']!==_0xa6cde4&&(_0x7cd762[_0x108388]['next']=_0xa6cde4);}for(const _0x308cdd of _0x1bf377)for(let _0x9dffab=0x0;_0x9dffab<_0x308cdd['length'];_0x9dffab++){const _0x119ad0=_0x308cdd[_0x9dffab-0x1]||null;_0x308cdd[_0x9dffab]['previous']!==_0x119ad0&&(_0x308cdd[_0x9dffab]['previous']=_0x119ad0);}function _0xfc41fa(_0x1fd315,_0x11df7e){if(_0x1fd315[0x0]['attributes']['groupId']!==_0x11df7e[0x0]['attributes']['groupId']&&_0x1fd315[0x0]['author']!==_0x11df7e[0x0]['author'])return!0x1;if(!function(_0x230ec0,_0xac32bd){if(!_0x230ec0['hasComments']&&!_0xac32bd['hasComments'])return!0x0;if(_0x230ec0['hasComments']&&_0xac32bd['hasComments'])return!0x1;if(_0x230ec0['hasComments']&&_0xac32bd['createdAt']<_0x230ec0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xac32bd['hasComments']&&_0x230ec0['createdAt']<_0xac32bd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1fd315[0x0],_0x11df7e[0x0]))return!0x1;const _0x1ea7c6=Ut(_0x1fd315[0x0]['attributes'],['groupId','trackingSessionId']),_0x37ddbf=Ut(_0x11df7e[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1ced7c(_0x1ea7c6,_0x37ddbf))return!0x1;if(_0x1fd315[0x0]['attributes']['groupId']==_0x11df7e[0x0]['attributes']['groupId'])return!0x0;if(_0x1fd315[0x0]['attributes']['trackingSessionId']!==_0x11df7e[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1fd315['every'](_0x16cc10=>_0x11df7e['some'](_0x4faecf=>_0x16cc10['getFirstRange']()['isEqual'](_0x4faecf['getFirstRange']())))&&_0x11df7e['every'](_0x28b3d1=>_0x1fd315['some'](_0x18045f=>_0x28b3d1['getFirstRange']()['isEqual'](_0x18045f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5b706f){const _0x2ecf9f=Array['from'](_0x5b706f),_0x2ef2d2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x38d657=_0x2ef2d2['filter'](_0xda3ab2=>!_0x5b706f['has'](_0xda3ab2)),_0x499e62=new Map(_0x2ecf9f['map'](_0x474087=>[_0x474087,this['_suggestionFactory']['getSuggestionCallback'](_0x474087['type'],_0x474087['subType'],'join')])),_0x146a5c=new Map(_0x2ef2d2['map'](_0x17a5ed=>[_0x17a5ed,_0x17a5ed['getRanges']()]));for(let _0x258105=0x0;_0x258105<_0x2ecf9f['length'];_0x258105++){if(_0x28f583(this,_0x2ecf9f[_0x258105],_0x2ecf9f,_0x258105+0x1))return!0x0;}for(let _0x737a0d=0x0;_0x737a0d<_0x2ecf9f['length'];_0x737a0d++){if(_0x28f583(this,_0x2ecf9f[_0x737a0d],_0x38d657,0x0))return!0x0;}return!0x1;function _0x28f583(_0x37352d,_0x145e3f,_0x255bb6,_0x1305a3){for(let _0x20e443=_0x1305a3;_0x20e443<_0x255bb6['length'];_0x20e443++){const _0xdb49f2=_0x255bb6[_0x20e443];if(_0xdb49f2['type']!==_0x145e3f['type']||_0xdb49f2['author']['id']!==_0x145e3f['author']['id']||_0xdb49f2['subType']!==_0x145e3f['subType'])continue;if(!Wt(_0x145e3f,_0xdb49f2))continue;if('attribute'==_0x145e3f['type']&&_0x145e3f['data']['oldValue']!=_0xdb49f2['data']['oldValue'])continue;if('attribute'==_0x145e3f['type']&&_0x37352d['_isBlockAttribute'](_0x145e3f['data']['key']))continue;if('formatBlock'==_0x145e3f['type']){const _0x2068d5=_0x37352d['editor']['model'],_0x62cd0d=_0x145e3f['getContainedElement']();if(_0x62cd0d&&(_0x2068d5['schema']['isObject'](_0x62cd0d)||_0x2068d5['schema']['isLimit'](_0x62cd0d)))continue;}const _0x45627f=_0x499e62['get'](_0x145e3f),_0x353de2=_0x146a5c['get'](_0x145e3f),_0x5e2c47=_0x146a5c['get'](_0xdb49f2),_0x5052bf=_0x145e3f['commentThread']&&_0x145e3f['commentThread']['length'],_0x45e767=_0xdb49f2['commentThread']&&_0xdb49f2['commentThread']['length'];if(!_0x5052bf&&_0x45627f(_0x5e2c47,_0x353de2))return _0x37352d['_joinSuggestions'](_0xdb49f2,_0x145e3f),_0x146a5c['delete'](_0x145e3f),!0x0;if(!_0x45e767&&_0x45627f(_0x353de2,_0x5e2c47))return _0x37352d['_joinSuggestions'](_0x145e3f,_0xdb49f2),_0x146a5c['delete'](_0xdb49f2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x511d30,_0x3c7a6b){if(_0x511d30['isMultiRange']){for(const _0x1b5b8f of _0x3c7a6b['getRanges']())_0x511d30['addRange'](_0x1b5b8f);}else{const _0x2e0ca7=_0x3c7a6b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x511d30,this['_model']['createRange'](_0x511d30['getFirstRange']()['start'],_0x2e0ca7));}_0x3c7a6b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x35a073,_0x3445c4,_0xe89e1d){const _0x36b551=_0x35a073['startsWith']('format')||_0x35a073['startsWith']('attribute')?'FORMATTING':_0x35a073['toUpperCase']();return o(this['editor']['locale'],_0x3445c4+'_'+_0x36b551+'_SUGGESTION_ANNOUNCEMENT',_0xe89e1d);}['_initAriaMarkerChangeAnnouncements'](){const _0x20755f=this['editor'];if(!_0x20755f['ui'])return;const {ariaLiveAnnouncer:_0x597011}=_0x20755f['ui'];_0x4124c9(this['_model'],({left:_0x38be8a,entered:_0x2be4f5})=>{for(const _0x50a49c of _0x38be8a){const {group:_0x4a3424,type:_0x28bf08}=this['_splitMarkerName'](_0x50a49c['name']);if('suggestion'===_0x4a3424){_0x597011['announce'](this['_getMarkerAnnouncementText'](_0x28bf08,'LEAVE'));break;}}for(const _0x58a556 of _0x2be4f5){const {group:_0xecd8f9,type:_0x42e2cc}=this['_splitMarkerName'](_0x58a556['name']);if('suggestion'===_0xecd8f9){_0x597011['announce'](this['_getMarkerAnnouncementText'](_0x42e2cc,'ENTER',_0x4b4623(_0x50d6b0)));break;}}});}['_processAttributeChanges'](_0x51eeb5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x53d241=this['editor'],_0x43d778=_0x53d241['model']['document']['differ']['getChanges']();if(0x0==_0x43d778['length'])return!0x1;const _0x156792=[],_0x2c3c1f=_0x43d778['filter'](_0x399286=>'attribute'==_0x399286['type']),_0x163a66=_0x43d778['filter'](_0x535e20=>'insert'==_0x535e20['type']&&'$text'!=_0x535e20['name']),_0x2fcfc4=_0x43d778['filter'](_0x33401e=>'remove'==_0x33401e['type']&&'$text'!=_0x33401e['name']);for(const _0x5a12c8 of _0x2c3c1f)_0x156792['push']({'key':_0x5a12c8['attributeKey'],'newValue':_0x5a12c8['attributeNewValue'],'oldValue':_0x5a12c8['attributeOldValue'],'range':Ht(_0x5a12c8['range'],_0x53d241['model'])});for(const _0x107f0b of _0x163a66){const _0x13b64a=_0x2fcfc4['find'](_0x3e843d=>_0x3e843d['position']['isEqual'](_0x107f0b['position']));_0x13b64a&&_0x156792['push']({'key':m,'newValue':_0x107f0b['name'],'oldValue':_0x13b64a['name'],'range':_0x53d241['model']['createRangeOn'](_0x107f0b['position']['nodeAfter'])});}return 0x0!=_0x156792['length']&&this['_reduceExistingSuggestions'](_0x51eeb5,_0x156792);}['_processAttributeSuggestions'](_0x2a7700){let _0x53b11a=!0x1;const _0x187d6d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x579e9=>_0x579e9['data']['newRange']&&_0x579e9['name']['startsWith']('suggestion:attribute:'));for(const _0x47b700 of _0x187d6d){const {subType:_0x37ff5c,id:_0x3f5b57}=this['_splitMarkerName'](_0x47b700['name']),_0x505ba7=_0x37ff5c['split']('|')[0x0];for(const _0x932eaa of this['getSuggestions']({'skipNotAttached':!0x0}))_0x932eaa['id']!=_0x3f5b57&&'attribute'==_0x932eaa['type']&&_0x932eaa['data']&&_0x932eaa['data']['key']==_0x505ba7&&_0x932eaa['getFirstRange']()['isIntersecting'](_0x47b700['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x932eaa,_0x47b700['data']['newRange'],_0x2a7700),_0x53b11a=!0x0);}return _0x53b11a;}['recordAttributeChanges'](_0x22276a){this['_recordAttributeSuggestions']=!0x0,_0x22276a();}['_isRegisteredAttribute'](_0x3410a4){const _0x1e028a=this['_isBlockAttribute'](_0x3410a4),_0x1e5a23=this['_inlineAttributeKeys']['has'](_0x3410a4);return _0x1e028a||_0x1e5a23;}['_reduceExistingSuggestions'](_0x20fb62,_0x4cfd14){if(0x0==_0x4cfd14['length'])return!0x1;let _0x455f78=!0x1;for(const _0x4da4f4 of _0x4cfd14){const _0x17203a=this['_findSuggestions'](_0x4da4f4['range'],'attribute')['filter'](_0x4484ff=>!_0x4484ff['meta']['isNextTo'])['map'](_0x5180e7=>_0x5180e7['suggestion']),_0xbee554=_0x51d884({'newValue':_0x4da4f4['newValue']});_0x17203a['filter'](_0x5a9a00=>{const [_0x185371,_0x2016c6]=_0x5a9a00['subType']['split']('|');return _0x185371==_0x4da4f4['key']&&_0x2016c6!=_0xbee554;})['forEach'](_0x10d01c=>{this['_reduceSuggestionAttributeRange'](_0x10d01c,_0x4da4f4['range'],_0x20fb62),_0x455f78=!0x0;});}return _0x455f78;}['_reduceSuggestionAttributeRange'](_0xc998dd,_0x5b6aa4,_0x27f99d){const _0x4b0d27=_0xc998dd['getFirstRange']()['getDifference'](_0x5b6aa4);0x0!==_0x4b0d27['length']?0x1!==_0x4b0d27['length']?this['_breakSuggestionMarker'](_0xc998dd,_0x5b6aa4['start'],_0x5b6aa4['end']):this['_setSuggestionRange'](_0xc998dd,_0x4b0d27[0x0]):_0x27f99d['removeMarker'](_0xc998dd['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3d9371){this['_editor']=_0x3d9371,this['_model']=_0x3d9371['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x35ee34,_0x3af73d,_0x525305,_0x38a0a,_0x359d00,_0x1b84eb,_0xb9cd55){return new T(this['_model'],{'type':_0x35ee34,'subType':_0x3af73d,'id':_0x525305,'originalSuggestionId':_0xb9cd55,'author':_0x38a0a,'creator':_0x38a0a,'attributes':_0x359d00,'onAttributesChange':_0x1b84eb,'onAccept':(..._0x4f3758)=>this['getSuggestionCallback'](_0x35ee34,_0x3af73d,'accept')(..._0x4f3758),'onDiscard':(..._0x4f8e37)=>this['getSuggestionCallback'](_0x35ee34,_0x3af73d,'discard')(..._0x4f8e37)});}['registerCustomCallback'](_0x391845,_0x52a3ce,_0x6f2d7b,_0x46613f){const _0x44df12=_0x391845+':'+_0x52a3ce+':'+_0x6f2d7b;this['_customCallbacks']['set'](_0x44df12,_0x46613f);}['getSuggestionCallback'](_0x26addd,_0x3fb5d1,_0x5b9541){const _0x2d1515=_0x26addd+':'+_0x3fb5d1+':'+_0x5b9541;return this['_customCallbacks']['get'](_0x2d1515)||this['_defaultCallbacks']['get'](_0x26addd+':'+_0x5b9541);}['_registerDefaultCallbacks'](){const _0xf2b55b=()=>!0x1,_0x46ef54=_0x180ad7=>{_0x180ad7['sort']((_0x49955d,_0x2979dc)=>_0x49955d['start']['isBefore'](_0x2979dc['start'])?0x1:-0x1),this['_model']['change'](_0x1bbca9=>{for(const _0x191b1f of _0x180ad7){let _0x1c5026;_0x1c5026=_0x191b1f['end']['isAtEnd']&&_0x191b1f['end']['parent']==_0x191b1f['start']['nodeAfter']?_0x1bbca9['createSelection'](_0x191b1f['start']['nodeAfter'],'on'):_0x1bbca9['createSelection'](_0x191b1f),this['_model']['deleteContent'](_0x1c5026,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3aec4b=(_0x53c6cb,_0x7be6b6)=>{_0x7be6b6&&this['_model']['change'](_0x2bb92c=>{const {commandName:_0x1658d2,commandParams:_0x5c2c05=[]}=_0x7be6b6,_0x40247e=_0x53c6cb['map'](_0x365c3a=>(Pt(_0x365c3a)&&(_0x365c3a=this['_model']['createRange'](_0x365c3a['end'])),_0x365c3a))['filter'](_0x5f45c2=>'$graveyard'!==_0x5f45c2['root']['rootName']);if(_0x40247e['length']<0x1)return;const _0x293730=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x278bc4=>_0x158d49['fromRange'](_0x278bc4));_0x2bb92c['setSelection'](_0x40247e);for(const _0x57a422 of this['_editor']['commands']['commands']())_0x57a422['refresh']();_0x5c2c05['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1658d2,..._0x5c2c05);const _0x31038e=_0x293730['filter'](_0x464327=>'$graveyard'!=_0x464327['root']['rootName']);_0x31038e['length']>0x0&&_0x2bb92c['setSelection'](_0x31038e);for(const _0x2586d6 of _0x293730)_0x2586d6['detach']();});},_0x110294=(_0x3b3e92,_0x3a81d7)=>0x1==_0x3b3e92['length']&&0x1==_0x3a81d7['length']&&_0x3b3e92[0x0]['end']['isEqual'](_0x3a81d7[0x0]['start']),_0x1ce9a1=(_0x37338a,_0x4280de,_0x48ab3b,_0x4e0fa8)=>zt(_0x37338a,_0x4280de,_0x48ab3b,_0x4e0fa8)?[_0x37338a,_0x4280de]:zt(_0x4280de,_0x37338a,_0x4e0fa8,_0x48ab3b)?[_0x4280de,_0x37338a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xf2b55b),this['_defaultCallbacks']['set']('insertion:discard',_0x46ef54),this['_defaultCallbacks']['set']('insertion:join',_0x110294),this['_defaultCallbacks']['set']('insertion:chain',_0x1ce9a1),this['_defaultCallbacks']['set']('deletion:accept',_0x46ef54),this['_defaultCallbacks']['set']('deletion:discard',_0xf2b55b),this['_defaultCallbacks']['set']('deletion:join',_0x110294),this['_defaultCallbacks']['set']('deletion:chain',_0x1ce9a1),this['_defaultCallbacks']['set']('formatInline:accept',_0x3aec4b),this['_defaultCallbacks']['set']('formatInline:discard',_0xf2b55b),this['_defaultCallbacks']['set']('formatInline:join',_0x110294),this['_defaultCallbacks']['set']('formatInline:chain',_0xf2b55b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3aec4b),this['_defaultCallbacks']['set']('formatBlock:discard',_0xf2b55b),this['_defaultCallbacks']['set']('formatBlock:join',_0x110294),this['_defaultCallbacks']['set']('formatBlock:chain',_0xf2b55b),this['_defaultCallbacks']['set']('attribute:accept',_0xf2b55b),this['_defaultCallbacks']['set']('attribute:discard',(_0x52ac6a,_0x478267)=>{if(!_0x478267)return;const _0x2ab868=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x120fbd=>{if(_0x478267['key']==m)for(const _0x147c04 of _0x52ac6a){const _0x4105b6=_0x147c04['start']['nodeAfter'],_0x13e926=_0x478267['oldValue'];_0x120fbd['rename'](_0x4105b6,_0x13e926);}else{if(_0x2ab868['_isBlockAttribute'](_0x478267['key'])){for(const _0x5f5190 of _0x52ac6a)void 0x0!==_0x478267['oldValue']?_0x120fbd['setAttribute'](_0x478267['key'],_0x478267['oldValue'],_0x5f5190['start']['nodeAfter']):_0x120fbd['removeAttribute'](_0x478267['key'],_0x5f5190['start']['nodeAfter']);}else{for(const _0x1f97d1 of _0x52ac6a)_0x478267['oldValue']?_0x120fbd['setAttribute'](_0x478267['key'],_0x478267['oldValue'],_0x1f97d1):_0x120fbd['removeAttribute'](_0x478267['key'],_0x1f97d1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x110294);}}function Ft(_0x18b09b,_0x477859,_0x46c8be){for(const _0x2f64e1 of _0x477859['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2f64e1['root']==_0x2f64e1)return!0x1;if(!_0x46c8be['containsItem'](_0x2f64e1))return!0x1;if(_0x18b09b['isObject'](_0x2f64e1)||_0x18b09b['isLimit'](_0x2f64e1))return!0x0;}return!0x1;}function Pt(_0x4df9aa){return _0x4df9aa['end']['parent']==_0x4df9aa['start']['nodeAfter']&&_0x4df9aa['end']['isAtStart'];}function Gt(_0x42f0ff,_0x216820,_0x24a38d,_0x3559cc){const _0x26fd33=_0x45914b=>!_0x45914b['item']['is']('$textProxy')&&!_0x3559cc['isObject'](_0x45914b['item']),_0x5d2100=_0x42f0ff['start']['getLastMatchingPosition'](_0x26fd33),_0x38a07c=_0x42f0ff['end']['getLastMatchingPosition'](_0x26fd33,{'direction':'backward'});return(!_0x42f0ff['start']['isEqual'](_0x5d2100)||!_0x42f0ff['end']['isEqual'](_0x38a07c))&&(_0x5d2100['isBefore'](_0x38a07c)?_0x24a38d['updateMarker'](_0x216820,{'range':_0x24a38d['createRange'](_0x5d2100,_0x38a07c)}):_0x24a38d['removeMarker'](_0x216820),!0x0);}function Lt(_0x336ad3){return _0x51d884(_0x336ad3);}function Jt(_0x1d0cf2){const _0xb3f5d1=_0x1d0cf2['start']['nodeAfter'];return _0xb3f5d1&&_0xb3f5d1['is']('element');}function Kt(_0xb8dcb5){return!Pt(_0xb8dcb5)&&!function(_0x220691){return _0x220691['start']['parent']==_0x220691['end']['nodeBefore']&&_0x220691['start']['isAtEnd'];}(_0xb8dcb5);}function Ht(_0x1f857b,_0x5dc1ac){return null==_0x1f857b['end']['nodeBefore']&&_0x1f857b['end']['parent']==_0x1f857b['start']['nodeAfter']?qt(_0x1f857b['start']['nodeAfter'],_0x5dc1ac):_0x1f857b;}function qt(_0x3484e4,_0x293f1f){const _0x37fd4e=_0x293f1f['schema']['isObject'](_0x3484e4)||_0x293f1f['schema']['isSelectable'](_0x3484e4);return _0x293f1f['createRange'](_0x293f1f['createPositionAt'](_0x3484e4,'before'),_0x37fd4e?_0x293f1f['createPositionAfter'](_0x3484e4):_0x293f1f['createPositionAt'](_0x3484e4,'end'));}function zt(_0x40b8a3,_0x4dbb80,_0x428bd1,_0x10488f){return!!Wt(_0x40b8a3,_0x4dbb80)&&_0x428bd1['end']['isEqual'](_0x10488f['start']);}function Wt(_0x38df53,_0x5dfcff){if(!_0x38df53['_isDataLoaded']||!_0x5dfcff['_isDataLoaded'])return!0x1;const _0x490d03=new Set(Object['keys'](_0x38df53['attributes'])),_0x6588a9=new Set(Object['keys'](_0x5dfcff['attributes']));if(_0x490d03['delete']('groupId'),_0x6588a9['delete']('groupId'),0x0==_0x490d03['size']&&0x0==_0x6588a9['size'])return!0x0;if(_0x490d03['size']!=_0x6588a9['size'])return!0x1;const _0x1de8c4={..._0x38df53['attributes']},_0x407d28={..._0x5dfcff['attributes']};return delete _0x1de8c4['groupId'],delete _0x407d28['groupId'],JSON['stringify'](_0x1de8c4)==JSON['stringify'](_0x407d28);}function Qt(_0x60b7f4,_0x5576f5){const _0x4805b3=Xt(_0x60b7f4['attributes']),_0x127e68=Xt(_0x5576f5);if(!_0x60b7f4['_isDataLoaded'])return!0x1;for(const _0x1277f5 of Object['keys'](_0x127e68))if(!_0x1ced7c(_0x4805b3[_0x1277f5],_0x127e68[_0x1277f5]))return!0x1;return!0x0;}function Xt(_0x4fe096){const _0x248309=Object['assign']({},_0x4fe096);return delete _0x248309['skipNestingCheck'],delete _0x248309['tablePasteChainId'],_0x248309;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x4af2b4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4b1c30,_0x1e83ef,_0x1a0522,_0x6af54e){super(),this['model']=_0x1e83ef,this['view']=_0x1a0522,this['commentThreadController']=_0x6af54e,this['_editor']=_0x4b1c30,this['_acceptCommand']=_0x4b1c30['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4b1c30['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3a5fc3,_0x4cb505)=>_0x3a5fc3||_0x4cb505),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1c19c3=>_0x1c19c3&&this['_editor']['model']['canEditAt'](_0x1e83ef['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x269443=>_0x269443&&this['_editor']['model']['canEditAt'](_0x1e83ef['getRanges']())),this['_pendingAction']=null,_0x1a0522['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1a0522,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1a0522,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1a0522,'change:isDirty',()=>{_0x1a0522['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 _0x488308=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x488308);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2d8d59{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x9087ff,_0x5d9c7,_0x30bcaa,_0x154890){super(_0x9087ff),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5e3ac9(_0x9087ff,o(_0x9087ff,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d9c7['authoredAt']),this['bind']('authoredAt')['to'](_0x5d9c7),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',_0x5d9c7,'authoredAt',this,'descriptionParts',(_0x2856c4,_0x68c236,_0x4a565f)=>{const _0x39cb0f=_0x4a565f['map'](_0x2f38ee=>ls(_0x2f38ee['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2856c4-0x1,_0x5d9c7['author']['name'],_0x68c236?_0x154890['formatDateTime'](_0x68c236):'',new DOMParser()['parseFromString'](_0x39cb0f,'text/html')['body']['textContent']]);}),this['focusables']=new _0xc8541d(),this['focusTracker']=new _0x49dfd9(),this['keystrokes']=new _0x47fd75(),this['focusCycler']=new _0x4ac438({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3ec4e5=>_0x3ec4e5['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5d9c7,this['_localUser']=_0x30bcaa,this['_config']=_0x154890,_0x154890['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x32d9f5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x8349c4}=this['_config'];this['commentsListView']=new _0x8349c4(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',_0x44fa72=>_0x44fa72+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3f1913,_0x5c5617)=>_0x3f1913||!!_0x5c5617);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x533341}=this['_config'],_0x537fc0=new _0x533341(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x41df03=_0x537fc0['commentInputView'];return _0x537fc0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x41df03,'value',(_0x26cb98,_0x2908e7,_0x3d754b)=>!!_0x3d754b||_0x26cb98&&!_0x2908e7),_0x41df03['on']('submit',(_0x211104,_0xc737b0)=>{this['fire']('addComment',_0xc737b0),_0x41df03['editor']['setData']('');}),_0x41df03['on']('cancel',()=>this['focus']()),_0x41df03['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x537fc0;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x38b5f9,_0x1c71d5,_0x336ddd,_0x1961c2){super(_0x38b5f9,_0x1c71d5,_0x336ddd,_0x1961c2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xa6580a=>_0xa6580a&&_0xa6580a[0x0]?_0xa6580a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x524d5c,_0x14149d)=>{let _0x2901cb='';for(const _0x1bf9f9 of _0x524d5c)_0x2901cb+='<p>'+ls(_0x1bf9f9['content'],_0x1bf9f9['color'])+'</p>';return _0x14149d?_0x2901cb:_0x27347b(_0x2901cb,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1961c2['SuggestionView'](_0x38b5f9,_0x1c71d5,{'formatDateTime':_0x1961c2['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 _0x5c2dc0=this['bindTemplate'],_0x20c57f=[this['suggestionView']];return this['commentsListView']&&_0x20c57f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x20c57f['push'](this['commentThreadInputView']),_0x20c57f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5c2dc0['if']('isActive','ck-suggestion-wrapper--active'),_0x5c2dc0['to']('type',_0x289147=>'ck-suggestion-'+_0x289147),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':_0x5c2dc0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x20c57f};}['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 _0x2d8d59{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3e375b,_0x167fb4,_0x4a0fe7){super(_0x3e375b),this['_model']=_0x167fb4,this['_config']=_0x4a0fe7,this['set']('description',''),this['bind']('authoredAt')['to'](_0x167fb4),this['acceptButton']=this['_createButton'](o(_0x3e375b,'Accept\x20suggestion'),_0x317a1a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3e375b,'Discard\x20suggestion'),_0x1efdbd,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x241076(_0x3e375b,_0x167fb4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xc8541d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x49dfd9(),this['keystrokes']=new _0x47fd75(),this['focusCycler']=new _0x4ac438({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x46341b=>_0x46341b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x44d1e4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x44d1e4['innerHTML']=this['description'],this['on']('change:description',(_0x1c24e7,_0x52d8ca,_0xfbe7fb)=>{_0x44d1e4['innerHTML']=_0xfbe7fb;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5bed82=this['bindTemplate'],_0x2a9fbd=[{'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':_0x5bed82['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5bed82['to']('authoredAt',_0x375f79=>this['_config']['formatDateTime'](_0x375f79))}]}]},{'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']&&_0x2a9fbd['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':_0x2a9fbd}]};}['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'](_0x1f8bcd,_0x3f00a9,_0x2e5985,_0x3a1c4b,_0x1d2400){const _0x2cf10b=new _0x55ec27(this['locale']);return _0x2cf10b['set']({'label':_0x1f8bcd,'icon':_0x3f00a9,'tooltip':!0x0,'tooltipPosition':_0x1d2400}),_0x2cf10b['extendTemplate']({'attributes':{'class':_0x2e5985}}),_0x2cf10b['on']('execute',()=>{this['fire'](_0x3a1c4b,this['_model']['id']);}),_0x2cf10b;}['_setupKeyboardNavigation'](){const _0x2c09bd=this['element'];this['keystrokes']['listenTo'](_0x2c09bd);for(const _0x4cbeda of this['focusables'])this['focusTracker']['add'](_0x4cbeda['element']),this['keystrokes']['listenTo'](_0x4cbeda['element']);this['keystrokes']['set']('enter',(_0x1422f2,_0x10f308)=>{_0x2c09bd===_0x1422f2['target']&&(this['focusCycler']['focusFirst'](),_0x10f308());}),this['keystrokes']['set']('esc',(_0x2a856d,_0x114e81)=>{_0x2c09bd!==_0x2a856d['target']&&(this['focus'](),_0x114e81());});}}class u extends _0x13e452{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x56d1a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31c125){super(_0x31c125),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x40c70d=this['editor']['config'];_0x40c70d['define']('trackChanges.SuggestionThreadView',fe),_0x40c70d['define']('trackChanges.SuggestionView',we),_0x40c70d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x40c70d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x56302a,_0xc6baef){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4379f6,_0x443273]of this['_handleControllerBuffer']){const _0x282309=this['_suggestionToController']['has'](_0x4379f6);_0x282309||_0x443273?_0x282309&&_0x443273&&this['_destroyController'](_0x4379f6):this['_initializeController'](_0x4379f6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x56302a,_0xc6baef);}['init'](){const _0x24d26d=this['editor'],_0x399454=_0x24d26d['plugins']['get']('TrackChangesEditing'),_0x2d5180=_0x24d26d['plugins']['get']('Annotations'),_0x52105e=_0x24d26d['plugins']['get']('EditorAnnotations'),_0x4bea3c=_0x24d26d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x52105e['addSourceCollector'](()=>{const _0x31db03=[];for(const [_0x547d4c,_0x10edfc]of Array['from'](this['_suggestionToController'])){const _0x446a8e=_0x547d4c['getAllAdjacentSuggestions'](),_0x1aaeec=[];for(const _0x324cf2 of _0x446a8e){if(!_0x324cf2['isInContent'])continue;if(_0x324cf2['isMultiRange']){_0x1aaeec['push'](..._0x324cf2['getRanges']());continue;}const _0x55125e=_0x324cf2['getFirstRange']();if(_0x1aaeec['length']>0x0){const _0x1fc97e=_0x1aaeec[0x0]['getJoined'](_0x55125e);if(_0x1fc97e){_0x1aaeec[0x0]=_0x1fc97e;continue;}}_0x1aaeec['push'](_0x55125e);}_0x31db03['push']([_0x10edfc['view'],_0x1aaeec]);}return _0x31db03;}),this['listenTo'](_0x399454,'suggestionLoaded',(_0x22056c,_0x3c1927)=>{this['listenTo'](_0x3c1927,'change:previous',(_0x44a560,_0x26cb00,_0x35d692,_0x1fb5ce)=>{_0x3c1927['isInContent']&&(null==_0x35d692?(this['_updateController'](_0x1fb5ce['head']),this['_handleSuggestionControllerDelayed'](_0x3c1927,!0x1)):(this['_updateController'](_0x35d692['head']),null==_0x1fb5ce&&this['_handleSuggestionControllerDelayed'](_0x3c1927,!0x0)));}),null!==_0x3c1927['previous']?this['_updateController'](_0x3c1927['head']):this['_handleSuggestionControllerDelayed'](_0x3c1927,!0x1);}),this['listenTo'](_0x399454,'suggestionUnloaded',(_0x4ee85d,_0x576a97,_0x13c1dc)=>{this['stopListening'](_0x576a97,'change:previous'),this['_handleControllerBuffer']['delete'](_0x576a97),this['_suggestionToController']['has'](_0x576a97)&&this['_destroyController'](_0x576a97),_0x13c1dc&&this['_updateController'](_0x13c1dc['head']);}),this['listenTo'](_0x399454,'suggestionChanged',(_0x453c1f,_0x3ccada)=>{this['_updateController'](_0x3ccada);}),this['listenTo'](_0x2d5180,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4bea3c,'addComment',(_0x1c9b8a,{threadId:_0xc2493a,isFromAdapter:_0x5cd984})=>{if(_0x5cd984||!_0x399454['hasSuggestion'](_0xc2493a))return;const _0x4ed353=_0x399454['getSuggestion'](_0xc2493a);this['_suggestionToController']['get'](_0x4ed353)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xcfc080=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b3f30;for(const _0x253947 in _0xcfc080){const _0x3ceec1=_0x253947,_0xc5a869=_0xcfc080[_0x3ceec1];if('trackChangesLicenseKeyValid'==_0xc5a869||'trackChangesLicenseKeyInvalid'==_0xc5a869||'trackChangesLicenseKeyExpired'==_0xc5a869||'trackChangesLicenseKeyDomainLimit'==_0xc5a869||'trackChangesLicenseKeyNotAllowed'==_0xc5a869||'trackChangesLicenseKeyEvaluationLimit'==_0xc5a869||'trackChangesLicenseKeyTrialLimit'==_0xc5a869||'trackChangesLicenseKeyUsageLimit'==_0xc5a869){delete _0xcfc080[_0x3ceec1],_0x3b3f30=_0xc5a869,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3b3f30&&_0xcfc080['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3b3f30&&_0xcfc080['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3b3f30&&_0xcfc080['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3b3f30&&_0xcfc080['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3b3f30&&_0xcfc080['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3b3f30&&_0xcfc080['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3b3f30&&_0xcfc080['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x14303c){const _0x477cd4=this['_suggestionToController']['get'](_0x14303c);if(!_0x477cd4)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x477cd4['view'])||null;}['getSuggestionForAnnotation'](_0x5cb68e){const _0xc2dda3=this['_viewToController']['get'](_0x5cb68e['innerView']);return _0xc2dda3?_0xc2dda3['model']:null;}['_refreshActiveMarkers'](){const _0x2ab3b3=this['editor']['plugins']['get']('Annotations'),_0x506e59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31a180=Array['from'](_0x2ab3b3['activeAnnotations'],_0xb23b7f=>_0xb23b7f['innerView'])['filter'](_0x52ef81=>this['_viewToController']['has'](_0x52ef81)),_0x24e990=[];for(const _0x2df2e7 of _0x31a180){const _0x3c45bf=this['_viewToController']['get'](_0x2df2e7)['model']['getAllAdjacentSuggestions']();_0x24e990['push'](..._0x3c45bf['reduce']((_0x116372,_0x377a3f)=>[..._0x116372,..._0x377a3f['getMarkerNames']()],[]));}_0x506e59['activeMarkers']=_0x24e990;}['_addUIComponentsToFactory'](){const _0xfcf04=this['editor'],_0x1839b9=_0xfcf04['locale'],_0x5af520=o(_0x1839b9,'Track\x20changes'),_0x1589b1=new _0x5bf0cc([{'type':'switchbutton','model':new _0x518378({'withText':!0x0,'isToggleable':!0x0,'label':_0x5af520,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x518378({'withText':!0x0,'label':o(_0x1839b9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x518378({'withText':!0x0,'label':o(_0x1839b9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x518378({'withText':!0x0,'label':o(_0x1839b9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x518378({'withText':!0x0,'label':o(_0x1839b9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xfcf04['plugins']['has']('TrackChangesPreview')&&_0x1589b1['addMany']([{'type':'separator'},{'type':'button','model':new _0x518378({'withText':!0x0,'label':o(_0x1839b9,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xb4d785 of _0x1589b1)if(ke(_0xb4d785)){const _0x368e8b=_0xfcf04['commands']['get'](_0xb4d785['model']['commandName']);_0xb4d785['model']['bind']('isOn','isEnabled')['to'](_0x368e8b,'value','isEnabled');}_0xfcf04['ui']['componentFactory']['add']('trackChanges',_0x3c4922=>this['_createToolbarButton'](_0x3c4922,_0x1589b1,_0x5af520)),_0xfcf04['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5b5258=>this['_createMenuBarMenu'](_0x5b5258,_0x1589b1,_0x5af520));}['_createToolbarButton'](_0x327c0c,_0x5c1fa4,_0x5d2d93){const _0x5869c5=_0x366dc0(_0x327c0c,_0x2253af),_0x1c7e1b=this['editor']['commands']['get']('trackChanges');_0x5869c5['buttonView']['set']({'tooltip':_0x5d2d93,'label':_0x5d2d93,'icon':_0x13883d}),_0x5869c5['buttonView']['bind']('isOn')['to'](_0x1c7e1b,'value'),_0x5869c5['buttonView']['on']('execute',()=>{_0x1c7e1b['execute'](),this['editor']['editing']['view']['focus']();}),_0x6d9994(_0x5869c5,_0x5c1fa4,{'role':'menu'});const _0x4ff3b0=[];for(const _0x1a2e8c of _0x5c1fa4)ke(_0x1a2e8c)&&_0x4ff3b0['push'](this['editor']['commands']['get'](_0x1a2e8c['model']['commandName']));const _0x12703a=_0x5869c5['buttonView'];return _0x12703a['actionView']['unbind']('isEnabled'),_0x12703a['arrowView']['unbind']('isEnabled'),_0x12703a['actionView']['bind']('isEnabled')['to'](_0x1c7e1b,'isEnabled'),_0x12703a['arrowView']['bind']('isEnabled')['toMany'](_0x4ff3b0,'isEnabled',(..._0x13d95f)=>_0x13d95f['some'](_0xe996e6=>_0xe996e6)),_0x5869c5['on']('execute',_0x2d29c7=>{this['editor']['execute'](_0x2d29c7['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5869c5;}['_createMenuBarMenu'](_0x4475cb,_0x1ca724,_0x17fa5e){const _0x191686=new _0x1f0be0(_0x4475cb),_0x2a89b2=this['editor']['commands']['get']('trackChanges');_0x191686['buttonView']['set']({'label':_0x17fa5e,'icon':_0x13883d});const _0x3f90fc=new _0x2849be(_0x4475cb);for(const _0x5f3690 of _0x1ca724){if('separator'==_0x5f3690['type']){_0x3f90fc['items']['add'](new _0x43929d(_0x4475cb));continue;}const _0x2279a9=new _0x1fb5d9(_0x4475cb,_0x191686),_0x5a47e0=new _0x4d739d(_0x4475cb),_0x4964a6=_0x5f3690['model'];_0x5a47e0['bind'](...Object['keys'](_0x4964a6))['to'](_0x4964a6),_0x5a47e0['delegate']('execute')['to'](_0x191686),_0x5a47e0['on']('execute',()=>{this['editor']['execute'](_0x4964a6['commandName']),this['editor']['editing']['view']['focus']();}),_0x2279a9['children']['add'](_0x5a47e0),_0x3f90fc['items']['add'](_0x2279a9);}return _0x191686['bind']('isEnabled')['to'](_0x2a89b2,'isEnabled'),_0x191686['panelView']['children']['add'](_0x3f90fc),_0x191686;}['_initializeController'](_0x58b2b4){const _0x534736=this['editor'],_0x500333=_0x534736['config'],_0x1bc4f5=_0x534736['plugins']['get']('Annotations'),_0x1f0a70=_0x534736['plugins']['get']('CommentsRepository'),_0x37bc21=_0x534736['plugins']['get']('EditorAnnotations'),_0x177507=_0x534736['plugins']['get'](_0x56d1a)['me'],_0x24b90f=_0x500333['get']('trackChanges')['SuggestionThreadView'],_0x45b015=_0x500333['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4eb930,CommentThreadInputView:_0x325c19}=_0x534736['plugins']['get']('CommentsUI');let _0x12aa3c,_0x52edf3,_0x380bdb;this['_annotationViews']['has'](_0x58b2b4['id'])?(_0x52edf3=this['_annotationViews']['get'](_0x58b2b4['id']),_0x12aa3c=_0x52edf3['mainView']):(_0x12aa3c=new _0x24b90f(_0x534736['locale'],_0x58b2b4,_0x177507,{'disableComments':this['_disableComments'],'editorConfig':{..._0x500333['get']('comments.editorConfig'),'licenseKey':_0x500333['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x500333['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x500333['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x500333['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x45f341(_0x500333['get']('locale'),_0x534736['locale']),'CommentView':_0x500333['get']('comments')['CommentView'],'CommentsListView':_0x4eb930,'CommentThreadInputView':_0x325c19,'SuggestionView':_0x45b015}),_0x12aa3c['suggestionView']['acceptButton']['on']('execute',()=>{_0x534736['editing']['view']['focus']();}),_0x12aa3c['suggestionView']['discardButton']['on']('execute',()=>{_0x534736['editing']['view']['focus']();}),_0x52edf3=_0x1bc4f5['createAnnotationView'](this['editor']['locale'],_0x12aa3c),_0x52edf3['bind']('isDirty')['to'](_0x12aa3c,'isDirty'),_0x52edf3['bind']('length')['to'](_0x12aa3c),_0x52edf3['bind']('type')['to'](_0x12aa3c,'type',_0x4d3e7b=>'suggestion-'+_0x4d3e7b),_0x12aa3c['on']('escape',()=>{_0x380bdb['fire']('escape');}),this['_annotationViews']['set'](_0x58b2b4['id'],_0x52edf3));const _0x5d47ba=_0x1f0a70['createCommentThreadController'](_0x58b2b4['commentThread'],_0x12aa3c),_0x23106b=new pe(_0x534736,_0x58b2b4,_0x12aa3c,_0x5d47ba),_0x5b7abf=_0x58b2b4['getAllAdjacentSuggestions']()['filter'](_0x3bcb44=>_0x3bcb44['isInContent']);_0x12aa3c['descriptionParts']=_0x534736['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5b7abf),this['_suggestionToController']['set'](_0x58b2b4,_0x23106b),this['_viewToController']['set'](_0x12aa3c,_0x23106b),_0x380bdb=_0x1bc4f5['createAnnotation']({'view':_0x52edf3,'target':()=>{const _0x3c65d2=[],_0x70bedd=_0x58b2b4['getAllAdjacentSuggestions']()['filter'](_0x5a91dc=>_0x5a91dc['isInContent']);for(const _0x32a929 of _0x70bedd)_0x3c65d2['push'](..._0x32a929['getMarkers']());return _0x1dfa67(_0x534736['editing'],_0x3c65d2);},'type':()=>'suggestion-'+_0x23106b['view']['type']}),_0x1f0a70['_bindAnnotationToEditors'](_0x12aa3c,_0x380bdb),_0x1bc4f5['add'](_0x380bdb),_0x37bc21['registerAnnotation'](_0x380bdb);}['_destroyController'](_0x1bdb21){const _0x195917=this['editor']['plugins']['get']('CommentsRepository'),_0x17cd3a=this['editor']['plugins']['get']('Annotations'),_0x2cb2fa=this['_suggestionToController']['get'](_0x1bdb21),_0x4a754f=_0x2cb2fa['view'],_0x5dfb0d=_0x17cd3a['getByInnerView'](_0x4a754f);_0x195917['_unbindEditors'](_0x4a754f),_0x5dfb0d&&_0x17cd3a['remove'](_0x5dfb0d),this['_suggestionToController']['delete'](_0x1bdb21),this['_viewToController']['delete'](_0x4a754f),_0x2cb2fa['destroy']();}['_updateController'](_0x8c4f77){if(!_0x8c4f77['isInContent']||!this['_suggestionToController']['has'](_0x8c4f77))return;const _0x286913=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a30c1=this['_suggestionToController']['get'](_0x8c4f77),_0x33cd43=_0x8c4f77['getAllAdjacentSuggestions']();_0x4a30c1['view']['descriptionParts']=_0x286913['descriptionFactory']['getDescriptions'](_0x33cd43);}['destroy'](){for(const _0x1e802e of this['_suggestionToController']['keys']())this['_destroyController'](_0x1e802e);for(const _0x4ebf10 of this['_annotationViews']['values']())_0x4ebf10['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xbb3fdf){return'model'in _0xbb3fdf;}class Fe extends _0x13e452{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x9050d4){this['editor']['plugins']['get'](d)['adapter']=_0x9050d4;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x291b52){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x291b52);}['getSuggestions']({skipNotAttached:_0x4876e4=!0x1,toJSON:_0x2f01bd=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4876e4,'toJSON':_0x2f01bd});}['getSuggestion'](_0x521e2c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x521e2c);}}const p=['Pagination'];class re extends _0x13e452{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x38a8c8=this['editor'];if(_0x38a8c8['config']['define']('trackChangesData.editorCreator',_0x70c7f1=>{const _0x4f8302=_0x38a8c8['model']['document']['getRootNames']()['reduce']((_0x4644cc,_0x42aad3)=>(_0x4644cc[_0x42aad3]='',_0x4644cc),{});return _0x38a8c8['constructor']['create'](_0x4f8302,_0x70c7f1);}),'function'!=typeof _0x38a8c8['config']['get']('trackChangesData')['editorCreator'])throw new _0x19b862('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x257381){return P(this['editor'],!0x0,_0x257381);}['getDataWithDiscardedSuggestions'](_0x400240){return P(this['editor'],!0x1,_0x400240);}}class Ge extends _0x13e452{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x194316){function _0x515448(_0x1771a4){return _0x1771a4['map'](_0x369b52=>String['fromCharCode'](_0x369b52))['join']('');}super(_0x194316),this['result']='end',_0x194316[_0x515448([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x515448([0x76,0x69,0x65,0x77])][_0x515448([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x515448([0x61,0x75,0x74,0x6f]),_0x194316[_0x515448([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x515448([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x515448([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x515448([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x515448([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function He(_0x57848e){return void 0x0!==_0x57848e['getRootsAttributes'];}async function P(_0x25b448,_0xa9b32e,_0x169c36){const _0x3bbd79=_0x79006e(_0x25b448,p);_0x3bbd79['plugins']['push'](d,Ge),_0x3bbd79['rootsAttributes']=He(_0x25b448)?_0x25b448['getRootsAttributes']():void 0x0;const _0x1c7792=document['createDocumentFragment'](),_0x51251b=_0x25b448['config']['get']('trackChangesData')['editorCreator'],_0x3aceeb=await _0x51251b(_0x3bbd79,()=>function(_0x223209){const _0x131556=document['createElement']('div');return _0x223209['appendChild'](_0x131556),_0x131556;}(_0x1c7792));!function(_0x4da0cf,_0x24cdae){const _0x3b06d6=_0x4da0cf['model']['document']['getRootNames']()['reduce']((_0x2b53e8,_0x454d47)=>(_0x2b53e8[_0x454d47]=_0x4da0cf['data']['get']({'rootName':_0x454d47}),_0x2b53e8),{}),_0xa64a12=_0x4da0cf['plugins']['get']('Users')['users']['map'](_0x30ce6a=>({'id':_0x30ce6a['id'],'name':_0x30ce6a['name']})),_0xe48436=_0x4da0cf['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2dc25d=_0x4da0cf['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x32cd6f=_0x24cdae['plugins']['get']('Users'),_0x4fb9b7=_0x24cdae['plugins']['get']('TrackChangesEditing'),_0x187b3d=_0x24cdae['plugins']['get']('CommentsRepository');for(const _0x3738fb of _0x187b3d['getCommentThreads']())_0x3738fb['remove']();for(const _0x553262 of _0xa64a12)_0x32cd6f['getUser'](_0x553262['id'])||_0x32cd6f['addUser'](_0x553262);_0x32cd6f['me']||_0x32cd6f['useAnonymousUser']();for(const _0x1fbf70 of _0x2dc25d)_0x187b3d['addCommentThread'](_0x1fbf70);for(const _0x896229 of _0xe48436)_0x4fb9b7['addSuggestionData'](_0x896229);_0x24cdae['data']['set'](_0x3b06d6);}(_0x25b448,_0x3aceeb),_0x3aceeb['execute'](_0xa9b32e?'acceptAllSuggestions':'discardAllSuggestions');const _0x4b7c2a=He(_0x3aceeb)?_0x3aceeb['getFullData'](_0x169c36):_0x3aceeb['data']['get'](_0x169c36);return await _0x3aceeb['destroy'](),_0x4b7c2a;}class Me extends _0x2d8d59{['options'];constructor(_0xfd5739,_0x2092cb){super(_0xfd5739),this['options']=_0x2092cb,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'](_0x5cfe59,_0x7865f8){if(!this['element'])return;const _0xb567dd=[];for(const [_0x2f5100,_0x55bbed]of _0x5cfe59){const _0x47aea2=document['createElement']('div');_0x47aea2['setAttribute']('data-ck-root-name',_0x2f5100),_0x47aea2['className']=_0x55bbed['classes']+'\x20ck-track-changes-preview__root-container',_0x47aea2['innerHTML']=_0x55bbed['content'],_0xb567dd['push'](_0x47aea2);}_0x7865f8(this['element'],_0xb567dd),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x201f08{constructor(_0x397d0d){super(_0x397d0d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x539092=this['editor'],_0x5397fb=_0x539092['locale'],_0x529a82=_0x539092['plugins']['get']('Dialog');let _0x428845;const _0x8d6657=function(_0x47eba9){const _0x1e2691={};if('editables'in _0x47eba9['ui']['view']){for(const [_0x248edb,_0x37ba8b]of Object['entries'](_0x47eba9['ui']['view']['editables']))_0x1e2691[_0x248edb]=_0x37ba8b['element'];}else _0x1e2691[_0x47eba9['model']['document']['getRootNames']()[0x0]]=_0x47eba9['ui']['view']['editable']['element'];return _0x1e2691;}(_0x539092),_0x21dfe9=function(_0x155c08){let _0x1a91ba=0x0;for(const _0x277fa8 of Object['values'](_0x155c08))_0x1a91ba=Math['max'](_0x1a91ba,_0x277fa8['getBoundingClientRect']()['width']);let _0xef1f65=0x0;for(const _0x2da4b0 of Object['values'](_0x155c08))_0xef1f65+=_0x2da4b0['getBoundingClientRect']()['height'];const _0x50d788=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x245d9a=Math['min'](_0xef1f65,_0x50d788);return{'width':_0x1a91ba,'height':_0x245d9a};}(_0x8d6657);_0x529a82['show']({'id':'finalContentPreview','title':o(_0x5397fb,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5397fb,{'dialogRects':_0x21dfe9}),'onHide':()=>{_0x428845['detachFromDom']();},'onShow':()=>{_0x539092['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4d25d9=>{const _0x179828=this['_standarizeRootsData'](_0x4d25d9,_0x539092,_0x8d6657);_0x529a82['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x179828,_0x539092['config']['get']('trackChanges.preview.renderFunction'));}),_0x428845=new _0x3bc5c1(_0x5397fb,[_0x529a82['view']]),_0x428845['attachToDom'](),_0x428845['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x539092['once']('destroy',()=>{_0x428845['detachFromDom']();});const _0xc9c1d6=_0x529a82['view']['headerView']['class'];_0x529a82['view']['headerView']['class']=_0xc9c1d6?_0xc9c1d6+'\x20ck-reset_all':'ck-reset_all',_0x529a82['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x529a82['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5bf704=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4dbbd5=_0x5bf704['previewMode'],_0x268917={};if('$labels'===_0x4dbbd5){for(const _0x24178a of _0x5bf704['getMergeFieldsIds']())_0x268917[_0x24178a]=_0x5bf704['getLabel'](_0x24178a)||_0x24178a;}else{const _0x224ee9='$defaultValues'===_0x4dbbd5?_0x5bf704['getDefaultValues']():_0x5bf704['getDataSetValues'](_0x4dbbd5,!0x0);for(const _0x19c3ff of Object['entries'](_0x224ee9)){const [_0x36a0e3,_0x1aadb3]=_0x19c3ff;_0x268917[_0x36a0e3]=null!==_0x1aadb3?_0x1aadb3:_0x5bf704['getLabel'](_0x36a0e3)||_0x36a0e3;}}return{'mergeFieldsData':_0x268917};}['_standarizeRootsData'](_0x4c4410,_0x3ae130,_0x1354f1){let _0x2689a1;if('string'==typeof _0x4c4410){const _0x3f9542=_0x3ae130['model']['document']['getRootNames']()[0x0];_0x2689a1={[_0x3f9542]:_0x4c4410};}else _0x2689a1=_0x4c4410;const _0x20b4ca=this['_fixMediaEmbeds'](_0x2689a1,_0x3ae130),_0x40246a=function(_0x31c826,_0x4ceff9){for(const [_0x2c88cc,_0x50bb6f]of _0x31c826)_0x50bb6f['classes']=_0x4ceff9[_0x2c88cc]['classList']['value']['replace']('ck-focused','');return _0x31c826;}(this['_sortRoots'](_0x3ae130)['reduce']((_0x35e9c5,_0x11ae9c)=>(_0x35e9c5['push']([_0x11ae9c,{'content':_0x20b4ca[_0x11ae9c],'classes':''}]),_0x35e9c5),[]),_0x1354f1);return _0x40246a;}['_fixMediaEmbeds'](_0x414457,_0x23f85a){if(!_0x23f85a['plugins']['has']('MediaEmbedEditing'))return _0x414457;const _0x3986fd=_0x23f85a['plugins']['get']('MediaEmbedEditing');for(const [_0x1bc9a2,_0x3b06ef]of Object['entries'](_0x414457)){const _0x49b14c=document['createElement']('div');_0x49b14c['innerHTML']=_0x3b06ef,(_0x49b14c['querySelectorAll']('figure.media')['forEach'](_0x35237a=>{const _0x28db04=_0x35237a['querySelector']('oembed');if(_0x28db04){const _0x2d7639=_0x28db04['getAttribute']('url');if(_0x2d7639){const _0x34cf8c=_0x3986fd['registry']['getMediaViewElement'](new _0x242596(_0x23f85a['editing']['view']['document']),_0x2d7639,{'elementName':'','renderForEditingView':!0x0}),_0x3f1b35=document['createElement']('div');_0x3f1b35['classList']['add']('ck-media__wrapper'),_0x34cf8c['render'](_0x3f1b35,_0x23f85a['editing']['view']['domConverter']),_0x28db04['replaceWith'](_0x3f1b35);}}}),_0x414457[_0x1bc9a2]=_0x49b14c['innerHTML']);}return _0x414457;}['_sortRoots'](_0x16efd1){if(!function(_0x3eda31){return void 0x0!==_0x3eda31['getRootsAttributes'];}(_0x16efd1))return _0x16efd1['model']['document']['getRootNames']();const _0x3fc5d0=[],_0x4377eb=new Map();for(const _0x3d5135 of _0x16efd1['model']['document']['getRootNames']()){const _0x37b107=_0x16efd1['editing']['view']['getDomRoot'](_0x3d5135)['getClientRects']()['item'](0x0);_0x3fc5d0['push'](_0x3d5135),_0x4377eb['set'](_0x3d5135,_0x37b107);}return _0x3fc5d0['sort']((_0x4de6b0,_0x4de905)=>{const _0x2bdb2d=_0x4377eb['get'](_0x4de6b0),_0x130593=_0x4377eb['get'](_0x4de905);return _0x2bdb2d['y']-_0x130593['y']||_0x2bdb2d['x']-_0x130593['x'];}),_0x3fc5d0;}}class $e extends _0x13e452{static get['requires'](){return[re,_0x5cbeab];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e2007){super(_0x5e2007),_0x5e2007['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5e2007['config']['define']('trackChanges.preview.renderFunction',(_0xc08d35,_0x4b8b5e)=>{for(const _0x4ae6c9 of _0x4b8b5e)_0xc08d35['appendChild'](_0x4ae6c9);});}}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,$e as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
23
+ import{Command as _0x4546ae,Plugin as _0x1cbbcf,PendingActions as _0x33ee2a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x547589,ObservableMixin as _0x3fc2b8,uid as _0x4250ae,priorities as _0x397d7f,insertToPriorityArray as _0x545660,toArray as _0x555184,logWarning as _0x248c38,getEnvKeystrokeText as _0x16c470,FocusTracker as _0x4de76a,KeystrokeHandler as _0x9aed25,Collection as _0x221ec0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x3f2156,IconCancel as _0x3af5d3,IconTrackChanges as _0x1cf270}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x592eaf,View as _0x35a11f,ViewCollection as _0x2aaa2e,FocusCycler as _0x551c69,UIModel as _0x218b38,createDropdown as _0x3e7def,SplitButtonView as _0xb7b940,addListToDropdown as _0x11d3e8,MenuBarMenuView as _0x2c34c0,MenuBarMenuListView as _0x353ed1,ListSeparatorView as _0x5af2ea,MenuBarMenuListItemView as _0x325861,MenuBarMenuListItemButtonView as _0x250e60,BodyCollection as _0x5c3462,Dialog as _0x1028e8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x88c9be,hashObject as _0xbc2c60,surroundingMarkersDetector as _0xec5e5f,FOCUS_ANNOTATION_KEYSTROKE as _0x5bdebf,AriaDescriptionView as _0x3c1124,setupThreadKeyboardNavigation as _0x22075b,trimHtml as _0x3a8827,UserView as _0x48dda1,LateFocusButtonView as _0x2e1e89,getDateTimeFormatter as _0x1fddba,getAllMarkersDomElementsSorted as _0x3b6af2,sanitizeEditorConfig as _0x46fd8f}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0xbf3a79,ModelLiveRange as _0x1a9bf4,ModelLivePosition as _0x1b47c6,ViewDowncastWriter as _0x545c41}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3de83d,toWidget as _0x4a6d34}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2dd738,set as _0x5e55d0,isEqual as _0xa9ae0d,unset as _0x28de31,omit as Ut}from'es-toolkit/compat';import{Delete as _0x5592b6,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x249301}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x33b343}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x4546ae{['_enabledCommands'];constructor(_0x452ca7,_0x57c232){super(_0x452ca7),this['_enabledCommands']=_0x57c232,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 _0x8fdb34 of this['editor']['commands']['commands']())_0x8fdb34['affectsData']&&!this['_enabledCommands']['has'](_0x8fdb34)&&_0x8fdb34['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2c92c0 of this['editor']['commands']['commands']())_0x2c92c0['affectsData']&&!this['_enabledCommands']['has'](_0x2c92c0)&&_0x2c92c0['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x4546ae{['_suggestions'];constructor(_0x37747c,_0x557fc6){super(_0x37747c),this['_suggestions']=_0x557fc6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3a92b9){const _0xc2356=this['_suggestions']['get'](_0x3a92b9);if(!_0xc2356)throw new _0x547589('track-changes-accept-suggestion-not-found',this);const _0x28f641=_0xc2356['getRanges']();this['editor']['model']['canEditAt'](_0x28f641)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xc2356);}}class M extends _0x4546ae{['_suggestions'];constructor(_0x3103c8,_0x53b0af){super(_0x3103c8),this['_suggestions']=_0x53b0af,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5cce53){const _0x5eb872=this['_suggestions']['get'](_0x5cce53);if(!_0x5eb872)throw new _0x547589('track-changes-discard-suggestion-not-found',this);const _0x5901cb=_0x5eb872['getRanges']();this['editor']['model']['canEditAt'](_0x5901cb)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5eb872);}}function ls(_0x39bea4,_0x465a45){let _0x3cc3af='';return _0x3cc3af+=_0x39bea4['split']('*')['map']((_0x2ed620,_0x5cd338)=>_0x5cd338%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x2ed620)+'</span>':Yt(_0x2ed620))['join'](''),_0x465a45&&(_0x3cc3af+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x465a45['value']+'\x22\x20title=\x22'+_0x465a45['title']+'\x22></span>'),_0x3cc3af;}function Yt(_0x3b31f4){const _0x870f12=document['createElement']('span');return _0x870f12['innerText']=_0x3b31f4,_0x870f12['innerHTML'];}function ts(_0x174217){return _0x174217['sort']((_0x4cc734,_0x29b7fa)=>'attribute'===_0x4cc734['type']&&'attribute'!==_0x29b7fa['type']?-0x1:'attribute'!==_0x4cc734['type']&&'attribute'===_0x29b7fa['type']?0x1:'deletion'==_0x4cc734['type']&&'deletion'!=_0x29b7fa['type']?-0x1:'deletion'!=_0x4cc734['type']&&'deletion'==_0x29b7fa['type']?0x1:0x0);}function to(_0x617556,_0x315aa4){let _0x418172,_0x3f80c4=0x0;const _0x1779c5=[],_0x1699c2=_0x315aa4['schema'];for(;_0x3f80c4<_0x617556['length'];){const _0xfd63a=_0x617556[_0x3f80c4],_0x462b91=_0x617556[_0x3f80c4+0x1];_0x418172||(_0x418172=_0x315aa4['createPositionBefore'](_0xfd63a)),Zt(_0x315aa4,_0xfd63a,_0x462b91)||(_0x1779c5['push'](_0x315aa4['createRange'](_0x418172,_0x1699c2['isObject'](_0xfd63a)?_0x315aa4['createPositionAfter'](_0xfd63a):_0x315aa4['createPositionAt'](_0xfd63a,'end'))),_0x418172=null),_0x3f80c4++;}return _0x1779c5;}function Zt(_0x300f10,_0xa50d67,_0x554f1d){if(!_0x554f1d)return!0x1;const _0x54a084=_0x300f10['createPositionAfter'](_0xa50d67),_0xa4c575=_0x300f10['createPositionBefore'](_0x554f1d);return _0x54a084['isTouching'](_0xa4c575);}function rs(_0xf07917,_0x2c5f20,_0x53200c){for(;_0x53200c['length'];){const _0x2bccc3=_0x53200c['splice'](0x0,0x64);_0xf07917['change'](()=>{for(const _0x5cae68 of _0x2bccc3)_0x5cae68['isInContent']&&_0x2c5f20['execute'](_0x5cae68['id']);});}}class $ extends _0x4546ae{['_command'];['_suggestions'];constructor(_0x196db0,_0x451ccc,_0x450035){super(_0x196db0),this['_command']=_0x451ccc,this['_suggestions']=_0x450035,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x43ae37=Array['from'](this['_suggestions']['values']())['some'](_0x496bfd=>_0x496bfd['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x43ae37;}['execute'](){const _0x1981da=ts(Array['from'](this['_suggestions']['values']()));for(const _0x105d96 of _0x1981da){const _0x289155=_0x105d96['getRanges']();if(!this['editor']['model']['canEditAt'](_0x289155))return;}rs(this['editor']['model'],this['_command'],_0x1981da);}}class B extends _0x4546ae{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd34429,_0x586092,_0x1ddf9d){super(_0xd34429),this['_command']=_0x586092,this['_suggestions']=_0x1ddf9d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x569788=this['editor']['model']['document']['selection'],_0x5e4344=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x498b63,_0x224379){const _0x305441=Array['from'](_0x498b63['getRanges']()),_0x3af341=new Set();for(const _0x155d37 of _0x224379)if(_0x155d37['isInContent']){for(const _0x24095d of _0x305441)for(const _0x11aa64 of _0x155d37['getRanges']())(_0x24095d['isIntersecting'](_0x11aa64)||_0x498b63['isCollapsed']&&!_0x155d37['isMultiRange']&&_0x155d37['next']&&_0x11aa64['end']['isTouching'](_0x24095d['start']))&&_0x3af341['add'](_0x155d37);}return _0x3af341;}(_0x569788,_0x5e4344),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x8caab7=ts(Array['from'](this['_selectedSuggestions']));for(const _0x5caca2 of _0x8caab7){const _0x152bd2=_0x5caca2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x152bd2))return;}rs(this['editor']['model'],this['_command'],_0x8caab7);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x3fc2b8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x154899,_0x5d01de){super(),this['id']=_0x5d01de['id'],this['type']=_0x5d01de['type'],this['subType']=_0x5d01de['subType']||null,this['author']=_0x5d01de['author'],this['creator']=_0x5d01de['creator']||_0x5d01de['author'],this['isExternal']=Boolean(_0x5d01de['attributes']&&_0x5d01de['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5d01de['originalSuggestionId']||null,this['_model']=_0x154899,this['_onAccept']=_0x5d01de['onAccept'],this['_onDiscard']=_0x5d01de['onDiscard'],this['_onAttributesChange']=_0x5d01de['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5d01de['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 _0x263564=this;for(;_0x263564['previous'];)_0x263564=_0x263564['previous'];return _0x263564;}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'](_0x5c7eb5){this['_markerNames']['add'](_0x5c7eb5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x498909=>this['_model']['markers']['get'](_0x498909))['filter'](_0x531719=>_0x531719);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x54e070=>{for(const _0x35fa35 of this['getMarkers']())_0x54e070['removeMarker'](_0x35fa35);}),this['_markerNames']['clear']();}['removeMarker'](_0x521782){this['_model']['change'](_0xd6aa6c=>{_0xd6aa6c['removeMarker'](_0x521782);}),this['_markerNames']['delete'](_0x521782);}['addRange'](_0x2713df){const _0x55fa97='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x55fa97),this['_model']['change'](_0x4e8f35=>{_0x4e8f35['addMarker'](_0x55fa97,{'range':_0x2713df,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x26cc6c){for(const _0x490f68 of this['getRanges']())if(_0x490f68['isIntersecting'](_0x26cc6c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x46b264=>_0x46b264['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x19cec8,_0x77c94a)=>[..._0x19cec8,..._0x77c94a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4ab66e=this['getRanges']();if(0x1!=_0x4ab66e['length'])return null;const _0x59bbaa=_0x4ab66e[0x0],_0x378c1e=_0x59bbaa['start']['nodeAfter'],_0x10de88=_0x59bbaa['end']['nodeBefore'];return _0x378c1e instanceof _0xbf3a79?_0x378c1e!=_0x10de88?null:_0x378c1e: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 _0x4acea6=[];let _0x331dd6=this['head'];for(;_0x331dd6;)_0x4acea6['push'](_0x331dd6),_0x331dd6=_0x331dd6['next'];return _0x4acea6;}['setAttribute'](_0xfef52e,_0x279d21){const _0x325c0f=_0x2dd738(this['attributes']);_0x5e55d0(_0x325c0f,_0xfef52e,_0x279d21),_0xa9ae0d(_0x325c0f,this['attributes'])||(this['attributes']=_0x325c0f,this['_onAttributesChange'](_0x325c0f));}['removeAttribute'](_0xd4fb8){const _0x9830ae=_0x2dd738(this['attributes']);_0x28de31(_0x9830ae,_0xd4fb8),_0xa9ae0d(_0x9830ae,this['attributes'])||(this['attributes']=_0x9830ae,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 _0x4250ae()['substr'](0x1,0x5);}}function o(_0xbebec1,_0x342b26,_0x2d1a4b){const _0x57af29=_0xbebec1['t'],t=_0xbebec1['t'];switch(_0x342b26){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',_0x2d1a4b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2d1a4b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2d1a4b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2d1a4b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2d1a4b);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',_0x2d1a4b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2d1a4b);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',_0x2d1a4b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2d1a4b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2d1a4b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2d1a4b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2d1a4b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2d1a4b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2d1a4b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2d1a4b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2d1a4b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2d1a4b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2d1a4b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2d1a4b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2d1a4b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2d1a4b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2d1a4b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2d1a4b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2d1a4b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2d1a4b);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'},_0x2d1a4b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2d1a4b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2d1a4b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2d1a4b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2d1a4b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2d1a4b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2d1a4b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2d1a4b);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'},_0x2d1a4b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2d1a4b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2d1a4b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2d1a4b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2d1a4b);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'},_0x2d1a4b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2d1a4b);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'},_0x2d1a4b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2d1a4b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2d1a4b);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'},_0x2d1a4b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2d1a4b);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'},_0x2d1a4b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2d1a4b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2d1a4b);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'},_0x2d1a4b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2d1a4b);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 _0x57af29({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2d1a4b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x57af29({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2d1a4b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2d1a4b);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'},_0x2d1a4b);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'},_0x2d1a4b);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'},_0x2d1a4b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x342b26;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2a64d7,_0x4bc302){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2a64d7,this['_locale']=_0x4bc302;}['getDescriptions'](_0x584bf7){const _0xff3489=[],_0x1a11ea=new Set(),_0x4fe615=new Set();for(let _0x337506=0x0;_0x337506<_0x584bf7['length'];_0x337506++){const _0x3caefa=_0x584bf7[_0x337506];if(!_0x3caefa['isInContent'])continue;const _0xe0ac22=this['_handleCustomCallbackDescription'](_0x3caefa);if(_0xe0ac22){if(null!=_0x3caefa['subType']){if(_0x1a11ea['has'](_0x3caefa['subType']))continue;_0x1a11ea['add'](_0x3caefa['subType']);}_0xff3489['push'](_0xe0ac22);}else{if('attribute'==_0x3caefa['type']){const _0x1804f2=_0x3caefa['data']['key'];if(_0x4fe615['has'](_0x1804f2))continue;_0x4fe615['add'](_0x3caefa['data']['key']),_0x1804f2==m?this['_handleRenameSuggestionDescription'](_0xff3489,_0x3caefa):this['_handleAttributeSuggestionDescription'](_0xff3489,_0x3caefa);continue;}'insertion'!=_0x3caefa['type']&&'deletion'!=_0x3caefa['type']||this['_handleInsertRemoveSuggestionDescription'](_0xff3489,_0x3caefa,_0x584bf7[_0x337506+0x1]);}}return this['_resolveDescriptionItems'](_0xff3489);}['registerDescriptionCallback'](_0x2c31d1){this['_customCallbacks']['push'](_0x2c31d1);}['registerElementLabel'](_0x59e4f4,_0x15536b,_0x3d7e67=_0x397d7f['normal']){'function'==typeof _0x59e4f4?_0x545660(this['_itemLabelsCallbacks'],{'matchingCallback':_0x59e4f4,'label':_0x15536b,'priority':_0x3d7e67}):this['_itemLabels']['set'](_0x59e4f4,_0x15536b);}['registerAttributeLabel'](_0x2dda4c,_0x36dd71){this['_attributeLabels']['set'](_0x2dda4c,_0x36dd71);}['getItemLabel'](_0x281962,_0x2acff5=0x1){let _0x7ac634;for(const _0x1fd11e of this['_itemLabelsCallbacks'])if(_0x1fd11e['matchingCallback'](_0x281962)){_0x7ac634=_0x1fd11e['label'];break;}return _0x7ac634||(_0x7ac634=this['_itemLabels']['get'](_0x281962['name'])),_0x7ac634?_0x7ac634(_0x2acff5):0x1!==_0x2acff5?_0x2acff5+'\x20'+_0x281962['name']+'s':''+_0x281962['name'];}['_addDescriptionItems'](_0x531c26,_0x2d4e2){const _0x42baf5=_0x2d4e2['getFirstRange']()['getWalker'](),_0x561553='insertion'==_0x2d4e2['type']?'add':'remove';for(const _0x408c2e of _0x42baf5){const _0x471a6e=_0x408c2e['item'],_0x41a01d=_0x531c26[_0x531c26['length']-0x1];if(_0x471a6e['is']('$textProxy'))_0x41a01d&&_0x41a01d['type']['indexOf']('Container')>-0x1&&_0x531c26['pop'](),_0x41a01d&&'text'==_0x41a01d['type']?_0x41a01d[_0x561553]+=_0x471a6e['data']:_0x531c26['push']({'type':'text','add':'add'==_0x561553?_0x471a6e['data']:'','remove':'remove'==_0x561553?_0x471a6e['data']:''});else{if(this['_schema']['isObject'](_0x471a6e)){const _0x5408b2=_0x471a6e;if(_0x41a01d&&_0x41a01d['type']['indexOf']('Container')>-0x1&&_0x531c26['pop'](),'elementEnd'==_0x408c2e['type'])continue;_0x41a01d&&_0x41a01d['type']==_0x561553+'Object'&&_0x41a01d['element']['name']==_0x5408b2['name']?_0x41a01d['quantity']++:_0x531c26['push']({'type':_0x561553+'Object','element':_0x5408b2,'quantity':0x1}),_0x42baf5['skip'](_0x139b5e=>!('elementEnd'==_0x139b5e['type']&&_0x139b5e['item']==_0x471a6e));}else{if(this['_schema']['checkChild'](_0x471a6e,'$text')||_0x471a6e['is']('element','softBreak')){const _0x4cd9de=_0x471a6e;if('add'==_0x561553&&'elementStart'==_0x408c2e['type']||'remove'==_0x561553&&'elementEnd'==_0x408c2e['type'])continue;if(_0x41a01d&&-0x1==_0x41a01d['type']['indexOf']('Container')){'text'==_0x41a01d['type']&&(_0x41a01d[_0x561553]+='\x0a');continue;}let _0x4f20ba;if(_0x4f20ba='add'==_0x561553?_0x4cd9de['nextSibling']&&!this['_schema']['isObject'](_0x4cd9de['nextSibling'])?_0x4cd9de['nextSibling']:null:_0x4cd9de['previousSibling']&&!this['_schema']['isObject'](_0x4cd9de['previousSibling'])?_0x4cd9de['previousSibling']:null,_0x4cd9de['isEmpty']||_0x4f20ba&&_0x4f20ba['isEmpty']){const _0x441b1e=_0x4f20ba&&_0x4f20ba['isEmpty']?_0x4f20ba:_0x4cd9de;_0x41a01d&&_0x41a01d['type']==_0x561553+'EmptyContainer'&&_0x41a01d['element']['name']==_0x441b1e['name']?_0x41a01d['quantity']++:_0x531c26['push']({'type':_0x561553+'EmptyContainer','element':_0x441b1e,'quantity':0x1});}else _0x531c26['push']({'type':_0x561553+'Container','element':_0x4cd9de});}}}}}['_resolveDescriptionItems'](_0x3debfc){const _0x445853=this['_locale'],_0x4ba631=[],_0x2e8b9a=[],_0x554a3d=[];for(const _0x396ef5 of _0x3debfc)switch(_0x396ef5['type']){case'text':if(_0x396ef5['add']=_0x396ef5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x396ef5['remove']=_0x396ef5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x396ef5['add']&&''!=_0x396ef5['remove']){_0x4ba631['push']({'type':'replace','content':o(_0x445853,'REPLACE_TEXT',['\x22'+_0x396ef5['remove']+'\x22','\x22'+_0x396ef5['add']+'\x22'])});continue;}if(null!=_0x396ef5['add']['match'](/^ +$/)){_0x4ba631['push']({'type':'insertion','content':o(_0x445853,'*Insert:*\x20%0',o(_0x445853,'ELEMENT_SPACE',_0x396ef5['add']['length']))});continue;}if(null!=_0x396ef5['remove']['match'](/^ +$/)){_0x4ba631['push']({'type':'deletion','content':o(_0x445853,'*Remove:*\x20%0',o(_0x445853,'ELEMENT_SPACE',_0x396ef5['remove']['length']))});continue;}if(''!=_0x396ef5['add']){_0x4ba631['push']({'type':'insertion','content':o(_0x445853,'*Insert:*\x20%0','\x22'+_0x396ef5['add']+'\x22')});continue;}_0x4ba631['push']({'type':'deletion','content':o(_0x445853,'*Remove:*\x20%0','\x22'+_0x396ef5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4ba631['push']({'type':'insertion','content':o(_0x445853,'*Insert:*\x20%0',this['getItemLabel'](_0x396ef5['element'],_0x396ef5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4ba631['push']({'type':'deletion','content':o(_0x445853,'*Remove:*\x20%0',this['getItemLabel'](_0x396ef5['element'],_0x396ef5['quantity']))});continue;case'addContainer':_0x4ba631['push']({'type':'insertion','content':o(_0x445853,'*Split:*\x20%0',this['getItemLabel'](_0x396ef5['element'],_0x396ef5['quantity']))});continue;case'removeContainer':_0x4ba631['push']({'type':'deletion','content':o(_0x445853,'*Merge:*\x20%0',this['getItemLabel'](_0x396ef5['element'],_0x396ef5['quantity']))});continue;case'addFormat':_0x2e8b9a['push'](_0x396ef5['key']);continue;case'removeFormat':_0x554a3d['push'](_0x396ef5['key']);continue;default:_0x4ba631['push'](_0x396ef5);}if(_0x2e8b9a['length']){const _0x549b43=_0x2e8b9a['map'](_0x361f90=>this['_attributeLabels']['has'](_0x361f90)?this['_attributeLabels']['get'](_0x361f90):_0x361f90)['join'](',\x20');_0x4ba631['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x549b43)});}if(_0x554a3d['length']){const _0xae2121=_0x554a3d['map'](_0x553236=>this['_attributeLabels']['has'](_0x553236)?this['_attributeLabels']['get'](_0x553236):_0x553236)['join'](',\x20');_0x4ba631['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xae2121)});}return _0x4ba631;}['_handleCustomCallbackDescription'](_0x40d521){for(const _0x17f663 of this['_customCallbacks']){const _0x554000=_0x17f663(_0x40d521);if(_0x554000&&'type'in _0x554000)return _0x554000;}}['_handleAttributeSuggestionDescription'](_0x1c37e9,_0x416fdf){const _0x48e91b=_0x416fdf['data'],_0x3051b8=void 0x0===_0x48e91b['newValue']?'removeFormat':'addFormat';_0x1c37e9['push']({'type':_0x3051b8,'key':_0x48e91b['key']});}['_handleRenameSuggestionDescription'](_0x200e47,_0x3d6849){_0x200e47['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3d6849['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xb14401,_0x40a639,_0x4fda58){if(this['_addDescriptionItems'](_0xb14401,_0x40a639),_0x4fda58&&_0x4fda58['getFirstRange']()&&!_0x40a639['getFirstRange']()['end']['isEqual'](_0x4fda58['getFirstRange']()['start'])){const _0x48ba13=_0xb14401[_0xb14401['length']-0x1],_0x571801='insertion'==_0x40a639['type']?'add':'remove';_0x48ba13&&'text'==_0x48ba13['type']&&(_0x48ba13[_0x571801]+='\x0a');}}}class O extends _0x1cbbcf{['afterInit'](){const _0x57bbcf=this['editor'],_0x4c2e0e=_0x57bbcf['plugins']['get']('TrackChangesEditing');_0x57bbcf['commands']['get']('showAIAssistant')&&_0x4c2e0e['enableCommand']('showAIAssistant');}}class E extends _0x1cbbcf{['afterInit'](){const _0x2f8dc6=this['editor'],_0x3b9a4c=_0x2f8dc6['locale'];if(!_0x2f8dc6['plugins']['has']('AlignmentEditing'))return;const _0x45fc86=_0x2f8dc6['plugins']['get']('TrackChangesEditing');_0x45fc86['enableDefaultAttributesIntegration']('alignment'),_0x45fc86['registerBlockAttribute']('alignment'),_0x45fc86['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3b9a4c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x371fae=this['editor'],_0x53422=_0x371fae['locale'];_0x371fae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x262d5c=>{if('formatBlock'!=_0x262d5c['type'])return;const {data:_0x4f28ae}=_0x262d5c;if(_0x4f28ae&&'alignment'==_0x4f28ae['commandName']){const _0x5f55e3=_0x4f28ae['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x53422,'*Format:*\x20%0',function(_0x36ff97){switch(_0x36ff97){case'left':return o(_0x53422,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x53422,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x53422,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x53422,'FORMAT_JUSTIFY_TEXT');}}(_0x5f55e3))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x1cbbcf{['afterInit'](){const _0x35f1af=this['editor'],_0x510536=_0x35f1af['plugins']['get']('TrackChangesEditing'),_0x4f45c3=_0x35f1af['locale'];for(const _0x3c1e05 of ti){if(!_0x35f1af['plugins']['has'](_0x3c1e05))continue;const _0x596917=_0x3c1e05['slice'](0x0,-0x7)['toLowerCase'](),_0x20fd90='FORMAT_'+_0x596917['toUpperCase']();_0x510536['enableDefaultAttributesIntegration'](_0x596917),_0x510536['registerInlineAttribute'](_0x596917),_0x510536['descriptionFactory']['registerAttributeLabel'](_0x596917,o(_0x4f45c3,_0x20fd90));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x386953=this['editor'],_0xfc4954=_0x386953['locale'],_0x2dc149=_0x386953['plugins']['get']('TrackChangesEditing');function _0x537936(_0x3bc176,_0x32c6c7){_0x2dc149['descriptionFactory']['registerDescriptionCallback'](_0x608a20=>{if('formatInline'!=_0x608a20['type'])return;const {data:_0x327fc2}=_0x608a20;return _0x327fc2&&_0x327fc2['commandName']===_0x3bc176?_0x327fc2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xfc4954,'*Format:*\x20%0',_0x32c6c7)}:{'type':'format','content':o(_0xfc4954,'*Remove\x20format:*\x20%0',_0x32c6c7)}:void 0x0;});}_0x537936('bold',o(_0xfc4954,'FORMAT_BOLD')),_0x537936('italic',o(_0xfc4954,'FORMAT_ITALIC')),_0x537936('underline',o(_0xfc4954,'FORMAT_UNDERLINE')),_0x537936('code',o(_0xfc4954,'FORMAT_CODE')),_0x537936('strikethrough',o(_0xfc4954,'FORMAT_STRIKETHROUGH')),_0x537936('subscript',o(_0xfc4954,'FORMAT_SUBSCRIPT')),_0x537936('superscript',o(_0xfc4954,'FORMAT_SUPERSCRIPT'));}}class U extends _0x1cbbcf{['afterInit'](){const _0x347175=this['editor'],_0x199f19=_0x347175['locale'];if(!_0x347175['plugins']['has']('BlockQuoteEditing'))return;const _0x3bfc5e=_0x347175['plugins']['get']('TrackChangesEditing'),_0x2017e7=this['editor']['commands']['get']('blockQuote');_0x3bfc5e['enableCommand']('blockQuote',(_0x58acb2,_0x5435cd={})=>{const _0x153894=this['editor']['model']['document']['selection'],_0x307bb1=_0x5435cd&&void 0x0!==_0x5435cd['forceValue']?_0x5435cd['forceValue']:!_0x2017e7['value'];let _0x41e09e=[];if(_0x307bb1){const _0x43a50d=Array['from'](_0x153894['getSelectedBlocks']())['filter'](_0x5b4661=>oo(_0x5b4661)||function(_0x23084b,_0x5afe43){const _0x4572ef=_0x5afe43['checkChild'](_0x23084b['parent'],'blockQuote'),_0x3acdc5=_0x5afe43['checkChild'](['$root','blockQuote'],_0x23084b);return _0x4572ef&&_0x3acdc5;}(_0x5b4661,this['editor']['model']['schema']));_0x41e09e=to(_0x43a50d,_0x347175['model']);}else{const _0x2412be=Array['from'](_0x153894['getSelectedBlocks']())['filter'](_0x5ed7a1=>oo(_0x5ed7a1));_0x41e09e=to(_0x2412be,_0x347175['model']);}_0x347175['model']['change'](()=>{for(const _0x4fac37 of _0x41e09e)_0x3bfc5e['markBlockFormat'](_0x4fac37,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x307bb1}]});});}),_0x3bfc5e['descriptionFactory']['registerDescriptionCallback'](_0x2d3002=>{const {data:_0x36c759}=_0x2d3002;if(_0x36c759&&'blockQuote'==_0x36c759['commandName']){const _0x2af993=o(_0x199f19,'ELEMENT_BLOCK_QUOTE');return _0x36c759['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x199f19,'*Set\x20format:*\x20%0',_0x2af993)}:{'type':'format','content':o(_0x199f19,'*Remove\x20format:*\x20%0',_0x2af993)};}});}}function oo(_0x2454a5){return'blockQuote'==_0x2454a5['parent']['name'];}class V extends _0x1cbbcf{['afterInit'](){const _0x18b10f=this['editor'],_0xc8d23f=_0x18b10f['locale'],_0x1144a3=_0x18b10f['plugins']['get']('TrackChangesEditing');_0x18b10f['plugins']['has']('BookmarkEditing')&&(_0x1144a3['enableCommand']('insertBookmark'),_0x1144a3['enableDefaultAttributesIntegration']('updateBookmark'),_0x1144a3['registerBlockAttribute']('bookmarkId'),_0x1144a3['descriptionFactory']['registerDescriptionCallback'](_0x3849a2=>{if('insertion'!=_0x3849a2['type']&&'deletion'!=_0x3849a2['type']&&'attribute'!=_0x3849a2['type'])return;const _0x215bb1=_0x3849a2['getContainedElement']();if(null==_0x215bb1)return;if(!_0x215bb1['is']('element','bookmark'))return;const _0x3ad45d=_0x215bb1['getAttribute']('bookmarkId');if('insertion'==_0x3849a2['type'])return{'type':'insertion','content':o(_0xc8d23f,'*Insert:*\x20%0','\x22'+_0x3ad45d+'\x22\x20'+o(_0xc8d23f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3849a2['type'])return{'type':'deletion','content':o(_0xc8d23f,'*Remove:*\x20%0','\x22'+_0x3ad45d+'\x22\x20'+o(_0xc8d23f,'ELEMENT_BOOKMARK'))};const {data:_0x3656a2}=_0x3849a2;if(!_0x3656a2||'bookmarkId'!=_0x3656a2['key'])return;return{'type':'format','content':o(_0xc8d23f,'*Set\x20bookmark:*\x20%0','\x22'+_0x3656a2['newValue']+'\x22')};}));}}class F extends _0x1cbbcf{['afterInit'](){const _0x43eebe=this['editor'];_0x43eebe['plugins']['has']('CaseChange')&&(_0x43eebe['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x43eebe['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x43eebe['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x1cbbcf{['afterInit'](){const _0x35bc00=this['editor'];_0x35bc00['commands']['get']('ckbox')&&_0x35bc00['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1cbbcf{['afterInit'](){const _0x1a294a=this['editor'];if(!_0x1a294a['plugins']['has']('CodeBlock'))return;const _0x160fb2=_0x1a294a['plugins']['get']('TrackChangesEditing'),_0x464e7c=_0x1a294a['locale'],_0x14e414=_0x1a294a['config']['get']('codeBlock')['languages'],_0x2cadb3=_0x1a294a['commands']['get']('codeBlock');_0x160fb2['enableCommand']('indentCodeBlock'),_0x160fb2['enableCommand']('outdentCodeBlock'),_0x160fb2['enableCommand']('codeBlock',(_0x5308af,_0x206520={})=>{const _0x498888=_0x1a294a['model'],_0x1e98e7=_0x1a294a['model']['document']['selection'],_0x25eb33=_0x206520&&void 0x0!==_0x206520['forceValue']?_0x206520['forceValue']:!_0x2cadb3['value'];let _0x452496;_0x206520['language']||(_0x206520['language']=_0x14e414[0x0]['language']),_0x452496=_0x25eb33?Array['from'](_0x1e98e7['getSelectedBlocks']())['filter'](_0x3d6491=>co(_0x3d6491)||function(_0xf5d7a0,_0x5b4d17){if(_0xf5d7a0['is']('rootElement')||_0x5b4d17['isLimit'](_0xf5d7a0))return!0x1;return _0x5b4d17['checkChild'](_0xf5d7a0['parent'],'codeBlock');}(_0x3d6491,_0x498888['schema'])):Array['from'](_0x1e98e7['getSelectedBlocks']())['filter'](_0x22d1e8=>co(_0x22d1e8));const _0x282a1a=to(_0x452496,_0x498888);_0x498888['change'](()=>{for(const _0x180b60 of _0x282a1a)_0x160fb2['markBlockFormat'](_0x180b60,{'commandName':'codeBlock','commandParams':[{..._0x206520,'forceValue':_0x25eb33}],'formatGroupId':'blockName'});});}),(_0x160fb2['descriptionFactory']['registerElementLabel']('codeBlock',_0x3a1caa=>o(_0x464e7c,'ELEMENT_CODE_BLOCK',_0x3a1caa)),_0x160fb2['descriptionFactory']['registerDescriptionCallback'](_0x514c8f=>{if('formatBlock'!=_0x514c8f['type'])return;const _0x384589=_0x464e7c['t'],{data:_0x43f74c}=_0x514c8f;if(!_0x43f74c||'codeBlock'!=_0x43f74c['commandName'])return;const _0x1b7784=_0x43f74c['commandParams'][0x0]['language'],_0x3516e9=_0x384589(_0x14e414['find'](_0x35f09c=>_0x35f09c['language']===_0x1b7784)['label'])['toLowerCase']();return _0x43f74c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x464e7c,'*Set\x20format:*\x20%0',o(_0x464e7c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3516e9+')')}:{'type':'format','content':o(_0x464e7c,'*Remove\x20format:*\x20%0',o(_0x464e7c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4700d4){return'codeBlock'==_0x4700d4['name'];}class J extends _0x1cbbcf{['afterInit'](){const _0x574dad=this['editor'];if(!_0x574dad['plugins']['has']('CommentsEditing'))return;_0x574dad['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4de44d,_0x1d9975,_0x5c6cf2){const _0x3f869c=[];for(const _0x5956e2 of _0x1d9975['getItems']())_0x5956e2['hasAttribute'](_0x4de44d)&&_0x3f869c['push'](_0x5c6cf2['createRangeOn'](_0x5956e2));return _0x3f869c;}function De(_0x21786f,_0xc38b67,{showActiveMarker:_0x35db8d=!0x0}={}){const _0x4a02f2=_0x21786f['plugins']['get']('TrackChangesEditing');return(_0xaff079,_0x268e88,_0xaf1607)=>{if(!_0xaf1607['consumable']['test'](_0x268e88['markerRange'],_0xaff079['name']))return;const _0x4f6c88=_0x268e88['markerRange']['getWalker'](),_0x4aa100=_0x268e88['markerRange']['start'],_0x177d93=_0x21786f['model']['schema'];let _0x4d831d=null,_0x5af38b=null,_0x468b8a=!0x1,_0x397943=!0x1;for(const _0x35ee5b of _0x4f6c88){const _0x31df06=_0x35ee5b['item'];_0x468b8a=_0x468b8a||_0x177d93['isContent'](_0x31df06);const _0x1190f3=_0xaf1607['mapper']['toViewElement'](_0x31df06);if(_0x1190f3&&_0x1190f3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x35ee5b['type']&&(_0x177d93['isBlock'](_0x31df06)&&!_0x177d93['isLimit'](_0x31df06)&&(_0x31df06['nextSibling']||_0x4aa100['isAtEnd']?_0x4d831d&&_0x4d831d['parent']==_0x31df06||(_0x4d831d=_0x31df06,_0x48b384(_0x35ee5b['previousPosition']),_0x397943=!0x0):_0x5af38b=_0x5af38b||_0x35ee5b['previousPosition']));}function _0x48b384(_0x4b85db){const {id:_0x275c80,authorId:_0x548b9a}=_0x4a02f2['_splitMarkerName'](_0x268e88['markerName']),_0x183bf8=_0xaf1607['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc38b67,'data-suggestion':_0x275c80,'data-author-id':_0x548b9a}),_0x174b1b=_0xaf1607['mapper']['toViewPosition'](_0x4b85db);_0x35db8d&&_0x4a02f2['activeMarkers']['includes'](_0x268e88['markerName'])&&_0xaf1607['writer']['addClass']('ck-suggestion-marker--active',_0x183bf8),_0xaf1607['writer']['insert'](_0x174b1b,_0x183bf8),_0xaf1607['mapper']['bindElementToMarker'](_0x183bf8,_0x268e88['markerName']);}_0x468b8a||_0x397943||!_0x5af38b||_0x48b384(_0x5af38b);};}class K extends _0x1cbbcf{static get['requires'](){return[_0x5592b6];}['init'](){const _0x1e7f9d=this['editor'],_0x451cc8=_0x1e7f9d['plugins']['get']('TrackChangesEditing');_0x451cc8['enableCommand']('delete');const _0xda477e=_0x1e7f9d['commands']['get']('deleteForward');_0x451cc8['enableCommand']('deleteForward',(_0x5df754,_0x16f027={})=>{const _0x1055f6=_0x1e7f9d['model']['createSelection'](_0x1e7f9d['model']['document']['selection']);_0x1055f6['isCollapsed']&&_0x1e7f9d['model']['modifySelection'](_0x1055f6,{'direction':'forward','unit':_0x16f027['unit']});const _0x1fddf1=_0x1055f6['getFirstRange'](),_0x395905=_0x1a9bf4['fromRange'](_0x1fddf1);let _0x32a1ea;_0x5df754(_0x16f027),_0x32a1ea='$graveyard'==_0x395905['root']['rootName']?_0x1e7f9d['model']['createRange'](_0x1fddf1['start']):_0x1e7f9d['model']['createRange'](_0x395905['start'],_0x395905['end']),_0x395905['detach'](),_0x1e7f9d['model']['enqueueChange'](_0xda477e['buffer']['batch'],_0x1c0df5=>{_0xda477e['buffer']['lock'](),_0x1c0df5['setSelection'](_0x1c0df5['createRange'](_0x32a1ea['end'])),_0xda477e['buffer']['unlock']();});}),_0x1e7f9d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1e7f9d,'merge'),{'priority':'high'}),_0x1e7f9d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2db391,_0x2d0f12,_0x58613f)=>{_0x58613f['options']['showSuggestionHighlights']&&De(_0x1e7f9d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2db391,_0x2d0f12,_0x58613f);},{'priority':'high'}),_0x1e7f9d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x33e889,_0x4ce29e,_0x3918e0)=>{const _0x3f2011=_0x3918e0['mapper']['markerNameToElements'](_0x4ce29e['markerName']);if(_0x3f2011){for(const _0x50c9d3 of _0x3f2011)_0x50c9d3['is']('uiElement')&&(_0x3918e0['mapper']['unbindElementFromMarkerName'](_0x50c9d3,_0x4ce29e['markerName']),_0x3918e0['writer']['remove'](_0x50c9d3));}},{'priority':'high'});}}class H extends _0x1cbbcf{['afterInit'](){const _0x2cf35f=this['editor'];if(!_0x2cf35f['plugins']['has']('ListEditing'))return;const _0x320fc4=_0x2cf35f['locale'],_0x19aba6=_0x2cf35f['plugins']['get']('TrackChangesEditing'),_0x525d79=_0x2cf35f['plugins']['has']('TodoListEditing'),_0x5335b1=!!_0x2cf35f['config']['get']('list.multiBlock');function _0x36ef9f(_0xff87f6){return{'type':'format','content':''+o(_0x320fc4,'*Set\x20format:*\x20%0',_0xff87f6)};}function _0x55be77(_0x3866f6){return{'type':'format','content':''+o(_0x320fc4,'*Remove\x20format:*\x20%0',_0x3866f6)};}_0x19aba6['enableDefaultAttributesIntegration']('numberedList'),_0x19aba6['enableDefaultAttributesIntegration']('bulletedList'),_0x19aba6['enableDefaultAttributesIntegration']('customNumberedList'),_0x19aba6['enableDefaultAttributesIntegration']('customBulletedList'),_0x19aba6['enableDefaultAttributesIntegration']('indentList'),_0x19aba6['enableDefaultAttributesIntegration']('outdentList'),_0x19aba6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x19aba6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x19aba6['registerBlockAttribute']('listItemId'),_0x19aba6['registerBlockAttribute']('listType'),_0x19aba6['registerBlockAttribute']('listIndent'),_0x5335b1&&(_0x19aba6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x19aba6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x525d79&&(_0x19aba6['enableDefaultAttributesIntegration']('todoList'),_0x19aba6['enableDefaultAttributesIntegration']('checkTodoList'),_0x19aba6['registerBlockAttribute']('todoListChecked'),_0x19aba6['descriptionFactory']['registerDescriptionCallback'](_0x555731=>{const {data:_0x14152b}=_0x555731;if(_0x14152b&&'todoListChecked'==_0x14152b['key'])return{'type':'format','content':_0x14152b['newValue']?o(_0x320fc4,'*Check\x20item*'):o(_0x320fc4,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x55dc58=>{if(_0x55dc58['batch']['isUndo'])return!0x1;let _0x4d5a41=!0x1;const _0x1d770d=_0x19aba6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e53ac=>'todoListChecked'===_0x19aba6['_getAttributeKey'](_0x4e53ac));for(const _0x3bdb9c of _0x1d770d){'todo'!=_0x3bdb9c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x19aba6['_findSuggestions'](_0x3bdb9c['getFirstRange'](),'attribute')['find'](_0x110036=>'listType'===_0x19aba6['_getAttributeKey'](_0x110036['suggestion']))||(_0x55dc58['removeMarker'](_0x3bdb9c['getFirstMarker']()),_0x4d5a41=!0x0));}return _0x4d5a41;})),_0x19aba6['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x320fc4,'FORMAT_INDENT'));const _0x1088a3={'type':'format','content':''};_0x19aba6['descriptionFactory']['registerDescriptionCallback'](_0x484fb8=>{const {data:_0x438605}=_0x484fb8;if(!_0x438605||'listType'!=_0x438605['key'])return;let _0x3f00a5=_0x484fb8['head'];for(;_0x3f00a5;){if(_0x3f00a5['data']&&(('listStyle'==_0x3f00a5['data']['key']||'listMarkerStyle'==_0x3f00a5['data']['key'])&&(_0x3f00a5['data']['newValue']&&'default'!=_0x3f00a5['data']['newValue']||'default'!=_0x3f00a5['data']['oldValue']&&!_0x438605['newValue'])||!_0x5335b1&&_0x3f00a5['data']['key']==m))return _0x1088a3;_0x3f00a5=_0x3f00a5['next'];}if(null==_0x438605['newValue'])switch(_0x438605['oldValue']){case'bulleted':return _0x55be77(o(_0x320fc4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55be77(o(_0x320fc4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55be77(o(_0x320fc4,'ELEMENT_TODO_LIST'));}switch(_0x438605['newValue']){case'bulleted':return _0x36ef9f(o(_0x320fc4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x36ef9f(o(_0x320fc4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x36ef9f(o(_0x320fc4,'ELEMENT_TODO_LIST'));}}),_0x19aba6['descriptionFactory']['registerDescriptionCallback'](_0x255e8e=>{const {data:_0x470c7a}=_0x255e8e;if(_0x470c7a&&'listIndent'==_0x470c7a['key'])return null==_0x470c7a['newValue']||null==_0x470c7a['oldValue']&&0x0==_0x470c7a['newValue']?_0x1088a3:void 0x0;}),_0x19aba6['descriptionFactory']['registerDescriptionCallback'](_0x322a4a=>{if('attribute'!=_0x322a4a['type'])return;const {data:_0x50a654}=_0x322a4a;if(!_0x50a654||'listItemId'!=_0x50a654['key'])return;const _0x2b95f1=Te(_0x322a4a);return'newValue'==_0x2b95f1?{'type':'format','content':o(_0x320fc4,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2b95f1?{'type':'format','content':o(_0x320fc4,'*Split:*\x20list\x20item')}:_0x1088a3;}),_0x2cf35f['model']['document']['registerPostFixer'](_0x91ad4a=>this['listItemIdFixer'](_0x91ad4a)),_0x2cf35f['model']['document']['registerPostFixer'](_0x433bfe=>this['noTrackChangesFixer'](_0x433bfe)),_0x2cf35f['model']['document']['on']('change:data',(_0x52e2e9,_0x2af15a)=>{if(_0x2af15a['isUndo']||!_0x2af15a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4f7d9d){if(_0x4f7d9d['batch']['isUndo']||!_0x4f7d9d['batch']['isLocal'])return!0x1;let _0x4a129a=!0x1;const _0x3213f0=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17ec91=>_0x17ec91['data']&&'listItemId'==_0x17ec91['data']['key'])['filter'](_0x51d075=>_0x51d075['data']['newValue']&&_0x51d075['data']['oldValue']);for(const _0x119b71 of _0x3213f0)Te(_0x119b71)||(_0x4f7d9d['removeMarker'](_0x119b71['getFirstMarker']()),_0x4a129a=!0x0);return _0x4a129a;}['noTrackChangesFixer'](_0xa4fd86){if(_0xa4fd86['batch']['isUndo']||!_0xa4fd86['batch']['isLocal'])return!0x1;const _0x284948=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x284948['trackChangesCommand']['value'])return!0x1;let _0x125dba=!0x1;const _0xb90301=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x190646=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4b0ea2=>'attribute'==_0x4b0ea2['type'])['filter'](_0x152ccb=>_0xb90301['includes'](_0x152ccb['attributeKey']));if(0x0==_0x190646['length'])return _0x125dba;for(const _0x3b0f45 of _0x190646){const _0xe97f8a=_0x284948['_findSuggestions'](_0x3b0f45['range'],'attribute')['filter'](_0xd188b9=>!_0xd188b9['meta']['isNextTo'])['map'](_0x5c67e5=>_0x5c67e5['suggestion'])['filter'](_0x448c05=>{const _0x4d2369=_0x284948['_getAttributeKey'](_0x448c05);return _0xb90301['includes'](_0x4d2369);});if(_0xe97f8a['length']){for(const _0x539df6 of _0xe97f8a)_0xa4fd86['removeMarker'](_0x539df6['getFirstMarker']());_0x125dba=!0x0;}}return _0x125dba;}['assureChains'](){const _0x5756e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x170263=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x37a414;const _0x42d767=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3bcda2=>{if(_0x3bcda2['data']['oldRange']||!_0x3bcda2['data']['newRange'])return null;if(!_0x3bcda2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x457dbe}=_0x5756e0['_splitMarkerName'](_0x3bcda2['name']);if(!_0x5756e0['hasSuggestion'](_0x457dbe))return null;const _0x553446=_0x5756e0['getSuggestion'](_0x457dbe);return _0x170263['includes'](_0x553446['data']['key']);})['map'](_0x555a2f=>{const {id:_0x561043}=_0x5756e0['_splitMarkerName'](_0x555a2f['name']),_0x5cb9a9=_0x5756e0['getSuggestion'](_0x561043);return _0x37a414=_0x5cb9a9['attributes']['groupId'],_0x5cb9a9['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x42d767['size'])return;const _0x17f071=_0x5756e0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10aba4=>'attribute'==_0x10aba4['type']&&_0x10aba4['data']&&_0x170263['includes'](_0x10aba4['data']['key'])&&_0x10aba4['attributes']['groupId']!=_0x37a414)['map'](_0x2fa65d=>({'listItem':_0x2fa65d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2fa65d['attributes']['groupId']})),_0x478247=new Set();for(const {groupId:_0xdfe5ef,listItem:_0x238240}of _0x17f071)_0x42d767['has'](_0x238240)&&_0x478247['add'](_0xdfe5ef);for(const _0x1c792b of _0x5756e0['getSuggestions']())_0x478247['has'](_0x1c792b['attributes']['groupId'])&&_0x1c792b['setAttribute']('groupId',_0x37a414);}['_supportLegacySuggestions'](){const _0x1505d9=this['editor'],_0x2ece0a=_0x1505d9['locale'],_0x44a8a1=_0x1505d9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x44a8a1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x335bcb,_0x59e2d6){const _0x9e93b=[];for(let _0x4fff3b of _0x335bcb)_0x4fff3b['start']['nodeAfter']===_0x4fff3b['end']['parent']&&(_0x4fff3b=_0x1505d9['model']['createRange'](_0x1505d9['model']['createPositionAt'](_0x4fff3b['start']['nodeAfter'],0x0))),_0x9e93b['push'](_0x4fff3b);_0x1505d9['model']['change'](_0x3ff7b5=>{const _0xb7feeb=_0x1505d9['model']['document']['selection'],_0x3ee2e6=Array['from'](_0xb7feeb['getRanges']())['map'](_0x43bc46=>_0x1a9bf4['fromRange'](_0x43bc46));_0x3ff7b5['setSelection'](_0x9e93b),_0x1505d9['commands']['get'](_0x59e2d6['commandName'])['refresh'](),_0x59e2d6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1505d9['execute'](_0x59e2d6['commandName'],..._0x59e2d6['commandParams']),_0x3ff7b5['setSelection'](_0x3ee2e6);for(const _0x1a547d of _0x3ee2e6)_0x1a547d['detach']();});}),_0x44a8a1['descriptionFactory']['registerElementLabel'](function(_0x36cf03){const _0x31e5ee=!_0x1505d9['model']['schema']['isObject'](_0x36cf03),_0x40f7f3=_0x36cf03['previousSibling'],_0xee863f=_0x36cf03['nextSibling'],_0x266add=_0x36cf03['getAttribute']('listItemId'),_0x4dea41=!_0x40f7f3||_0x40f7f3['getAttribute']('listItemId')!==_0x266add,_0x5cc9c0=!_0xee863f||_0xee863f['getAttribute']('listItemId')!==_0x266add;return _0x31e5ee&&Boolean(_0x266add)&&_0x4dea41&&_0x5cc9c0;},_0x2609e7=>o(_0x2ece0a,'ELEMENT_LIST_ITEM',_0x2609e7));}['_registerLegacyDescription'](){const _0x8115a5=this['editor'],_0x58bed9=_0x8115a5['locale'];function _0x52cd2e(_0x11beac){const _0x23bdc9=_0x8115a5['commands']['get']('bulletedList')['value'],_0x1ffc14=_0x8115a5['commands']['get']('numberedList')['value'];return'numberedList'===_0x11beac?_0x23bdc9:_0x1ffc14;}_0x8115a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xb0434b){if('formatBlock'!=_0xb0434b['type'])return;const {data:_0x42a858}=_0xb0434b;if(!_0x42a858)return;let _0x48eac2,_0x144cbd,_0x2f6759,_0xb767e7;switch(_0x42a858['commandName']){case'bulletedList':_0x2f6759=_0x42a858['commandParams'][0x0]['forceValue'],_0xb767e7=_0x52cd2e(_0x42a858['commandName']),_0x48eac2=_0x2f6759?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb767e7&&_0x8115a5['config']['get']('list.multiBlock')||(_0x48eac2='*Change\x20to:*\x20%0'),_0x144cbd={'type':'format','content':o(_0x58bed9,_0x48eac2,o(_0x58bed9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2f6759=_0x42a858['commandParams'][0x0]['forceValue'],_0xb767e7=_0x52cd2e(_0x42a858['commandName']),_0x48eac2=_0x2f6759?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb767e7&&_0x8115a5['config']['get']('list.multiBlock')||(_0x48eac2='*Change\x20to:*\x20%0'),_0x144cbd={'type':'format','content':o(_0x58bed9,_0x48eac2,o(_0x58bed9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x48eac2='*Indent:*\x20%0',_0x144cbd={'type':'format','content':o(_0x58bed9,_0x48eac2,o(_0x58bed9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x48eac2=function(_0xbe6d20){const _0x2a984a=_0xbe6d20['getFirstRange']();let _0x11da9c=_0x2a984a['start']['nodeAfter'];for(;_0x11da9c&&_0x2a984a['containsItem'](_0x11da9c);){if(_0x11da9c['getAttribute']('listIndent')>0x0)return!0x1;_0x11da9c=_0x11da9c['nextSibling'];}return!0x0;}(_0xb0434b)?o(_0x58bed9,'*Format:*\x20remove\x20from\x20%0',o(_0x58bed9,function(_0x24b306){return'ELEMENT_'+_0x24b306['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xb0434b))):o(_0x58bed9,'*Outdent:*\x20%0',o(_0x58bed9,'ELEMENT_LIST_ITEM')),_0x144cbd={'type':'format','content':_0x48eac2};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x42a858['multipleBlocks']&&(_0x48eac2='*Merge:*\x20%0',_0x144cbd={'type':'deletion','content':o(_0x58bed9,_0x48eac2,o(_0x58bed9,'ELEMENT_LIST_ITEM'))});}return _0x144cbd;});}}function Te(_0x51042f){let _0x30aa29=_0x51042f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x30aa29;){const _0x39dd47=_0x30aa29['getAttribute']('listItemId');if(!_0x39dd47)return!0x1;if(_0x39dd47==_0x51042f['data']['newValue'])return'newValue';if(_0x39dd47==_0x51042f['data']['oldValue'])return'oldValue';_0x30aa29=_0x30aa29['previousSibling'];}return!0x1;}class q extends _0x1cbbcf{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x879bd=this['editor']['config']['get']('list.properties'),_0x2d8ac6=this['editor']['plugins']['get']('TrackChangesEditing');_0x879bd['styles']&&(_0x2d8ac6['enableDefaultAttributesIntegration']('listStyle'),_0x2d8ac6['registerBlockAttribute']('listStyle')),_0x879bd['reversed']&&(_0x2d8ac6['enableDefaultAttributesIntegration']('listReversed'),_0x2d8ac6['registerBlockAttribute']('listReversed')),_0x879bd['startIndex']&&(_0x2d8ac6['enableDefaultAttributesIntegration']('listStart'),_0x2d8ac6['registerBlockAttribute']('listStart'));const _0x4ef0a7={'type':'format','content':''};_0x2d8ac6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x17eac2=this['editor']['locale'];_0x2d8ac6['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x17eac2,'FORMAT_LIST_REVERSED')),_0x2d8ac6['descriptionFactory']['registerDescriptionCallback'](_0x27a20f=>{const {data:_0x19c297}=_0x27a20f;if(_0x19c297&&'listReversed'==_0x19c297['key'])return null==_0x19c297['newValue']||0x0==_0x19c297['newValue']&&null==_0x19c297['oldValue']?_0x4ef0a7:void 0x0;}),_0x2d8ac6['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x17eac2,'FORMAT_LIST_START')),_0x2d8ac6['descriptionFactory']['registerDescriptionCallback'](_0x2cd600=>{const {data:_0x96575e}=_0x2cd600;if(_0x96575e&&'listStart'==_0x96575e['key'])return null==_0x96575e['newValue']||0x1==_0x96575e['newValue']&&null==_0x96575e['oldValue']?_0x4ef0a7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3cb70a=>{if(_0x3cb70a['batch']['isUndo'])return!0x1;let _0x3ff29c=!0x1;const _0x26beb2=_0x2d8ac6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x32fedf=>{const _0x2f80ef=_0x2d8ac6['_getAttributeKey'](_0x32fedf);return'listStart'==_0x2f80ef||'listReversed'==_0x2f80ef;});for(const _0xdd6b64 of _0x26beb2){const _0x17b67d=_0xdd6b64['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x17b67d||'customNumbered'==_0x17b67d)continue;_0x2d8ac6['_findSuggestions'](_0xdd6b64['getFirstRange'](),'attribute')['find'](_0x5b07a7=>'listType'==_0x2d8ac6['_getAttributeKey'](_0x5b07a7['suggestion']))||(_0x3cb70a['removeMarker'](_0xdd6b64['getFirstMarker']()),_0x3ff29c=!0x0);}return _0x3ff29c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5135a9){const _0x1d3922=this['editor']['locale'],{data:_0x468f55}=_0x5135a9,_0x44c3cd={'type':'format','content':''};if(!_0x468f55||'listStyle'!=_0x468f55['key'])return;if(!_0x468f55['oldValue'])return'default'==_0x468f55['newValue']?_0x44c3cd:{'type':'format','content':''+o(_0x1d3922,'*Set\x20format:*\x20%0',o(_0x1d3922,this['_getTranslationKeyForListStyle'](_0x468f55['newValue'])))};if(!_0x468f55['newValue']){if('default'==_0x468f55['oldValue'])return _0x44c3cd;let _0x41b356=_0x5135a9['head'];for(;_0x41b356;){if(_0x41b356['data']&&'listType'==_0x41b356['data']['key']&&_0x41b356['data']['newValue'])return _0x44c3cd;_0x41b356=_0x41b356['next'];}return{'type':'format','content':''+o(_0x1d3922,'*Remove\x20format:*\x20%0',o(_0x1d3922,this['_getTranslationKeyForListStyle'](_0x468f55['oldValue'])))};}if('default'!=_0x468f55['newValue'])return{'type':'format','content':''+o(_0x1d3922,'*Set\x20format:*\x20%0',o(_0x1d3922,this['_getTranslationKeyForListStyle'](_0x468f55['newValue'])))};let _0x31798e=_0x5135a9['head'];for(;_0x31798e;){if(_0x31798e['data']&&'listType'==_0x31798e['data']['key']&&_0x31798e['data']['newValue']&&_0x31798e['data']['oldValue'])return _0x44c3cd;_0x31798e=_0x31798e['next'];}return{'type':'format','content':o(_0x1d3922,'*Set\x20format:*\x20%0',o(_0x1d3922,'ELEMENT_'+_0x5135a9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2a4d0e=this['editor'],_0x4a31de=_0x2a4d0e['locale'];_0x2a4d0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4efbd6=>{if('formatBlock'!=_0x4efbd6['type'])return;const {data:_0x1c80fe}=_0x4efbd6;if(!_0x1c80fe)return;let _0x841a29,_0x4d226f;switch(_0x1c80fe['commandName']){case'listStyle':_0x841a29='*Change\x20to:*\x20%0',_0x4d226f={'type':'format','content':o(_0x4a31de,_0x841a29,o(_0x4a31de,this['_getTranslationKeyForListStyle'](_0x1c80fe['commandParams'][0x0]['type'])))};break;case'listReversed':_0x841a29=_0x1c80fe['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4d226f={'type':'format','content':o(_0x4a31de,_0x841a29)};break;case'listStart':_0x841a29='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4d226f={'type':'format','content':o(_0x4a31de,_0x841a29,_0x1c80fe['commandParams'][0x0]['startIndex'])};}return _0x4d226f;});}['_getTranslationKeyForListStyle'](_0x8ae105){return'ELEMENT_'+function(_0x5bc3aa){if(Se['includes'](_0x5bc3aa))return'bulleted';if(_e['includes'](_0x5bc3aa))return'numbered';return null;}(_0x8ae105)['toUpperCase']()+'_LIST_'+_0x8ae105['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x1cbbcf{['afterInit'](){const _0x25f8ff=this['editor'];_0x25f8ff['commands']['get']('emoji')&&_0x25f8ff['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x1cbbcf{static get['requires'](){return[_0x249301];}['init'](){const _0x474d1a=this['editor'],_0x183dc3=_0x474d1a['plugins']['get']('TrackChangesEditing'),_0x3f3254=_0x474d1a['commands']['get']('enter');_0x183dc3['enableCommand']('enter',()=>{_0x474d1a['model']['change'](_0x4aef96=>{const _0x4f45fa=_0x474d1a['model']['document']['selection'],_0x47c5b2=_0x4f45fa['getFirstPosition'](),_0x2d4fdb=_0x1a9bf4['fromRange'](_0x4f45fa['getFirstRange']());if(_0x3f3254['enterBlock'](_0x4aef96)){const _0x367d45=_0x474d1a['model']['createPositionAt'](_0x47c5b2['parent']['nextSibling'],0x0),_0x3a9140=_0x4aef96['createRange'](_0x47c5b2,_0x367d45);_0x183dc3['markInsertion'](_0x3a9140);}else _0x4aef96['setSelection'](_0x4aef96['createRange'](_0x2d4fdb['end']));_0x2d4fdb['detach'](),_0x3f3254['fire']('afterExecute',{'writer':_0x4aef96});});}),_0x474d1a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x474d1a,'split'),{'priority':'high'}),_0x474d1a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x18651c,_0x3e096b,_0x34fc10)=>{const _0x5f3dc8=_0x34fc10['mapper']['markerNameToElements'](_0x3e096b['markerName']);if(_0x5f3dc8){for(const _0x1d02e3 of _0x5f3dc8)_0x1d02e3['hasClass']('ck-suggestion-marker-split')&&(_0x34fc10['mapper']['unbindElementFromMarkerName'](_0x1d02e3,_0x3e096b['markerName']),_0x34fc10['writer']['remove'](_0x1d02e3));}},{'priority':'high'}),_0x474d1a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3fc5f2,_0x576823,_0x5259b8)=>{_0x5259b8['options']['showSuggestionHighlights']&&De(_0x474d1a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3fc5f2,_0x576823,_0x5259b8);},{'priority':'high'});}}class Q extends _0x1cbbcf{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5b2767=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b2767['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5b2767['enableCommand']('findNext'),_0x5b2767['enableCommand']('findPrevious'),_0x5b2767['enableCommand']('replace'),_0x5b2767['enableCommand']('replaceAll');}['handleFindCommand'](_0x219ef7,_0x123840,_0x25f04a={}){const _0x5856ee=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x219ef7(_0x19c902=>{let _0x3ecce8=('string'==typeof _0x123840?_0x5856ee['findByTextCallback'](_0x123840,_0x25f04a):_0x123840)(_0x19c902);Array['isArray'](_0x3ecce8)&&(_0x3ecce8={'results':_0x3ecce8,'searchText':'string'==typeof _0x123840?_0x123840:''});const _0x1d1050=_0x3ecce8['results']['filter'](_0x49e35c=>!0x1===this['_isInDeletionRange'](_0x49e35c,_0x19c902['item']));return{..._0x3ecce8,'results':_0x1d1050};},_0x25f04a);}['_isInDeletionRange'](_0x1bce9e,_0x736197){const _0xc33065=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x736197,_0x1bce9e['start']),this['editor']['model']['createPositionAt'](_0x736197,_0x1bce9e['end']));for(const _0x1e0815 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xc33065['getIntersection'](_0x1e0815['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 _0x1cbbcf{['afterInit'](){const _0x588069=this['editor']['locale'],_0x5a5a1d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x340fef,commandName:_0x5c07e7}of eo)this['editor']['plugins']['has'](_0x340fef)&&(_0x5a5a1d['enableDefaultAttributesIntegration'](_0x5c07e7),_0x5a5a1d['registerInlineAttribute'](_0x5c07e7));_0x5a5a1d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x588069,'FORMAT_FONT_SIZE')),_0x5a5a1d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x588069,'FORMAT_FONT_FAMILY')),_0x5a5a1d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x588069,'FORMAT_FONT_COLOR')),_0x5a5a1d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x588069,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2331f4=this['editor'],_0x3f36f5=_0x2331f4['locale'];_0x2331f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x66c476=>{const _0x3d843e=_0x3f36f5['t'];if('formatInline'!=_0x66c476['type'])return;const {data:_0x367af8}=_0x66c476;if(null!=_0x367af8){if('fontSize'==_0x367af8['commandName']){const _0xf7bd5=_0x367af8['commandParams'][0x0]['value'];if(_0xf7bd5){const _0x2b30da=_0x3d843e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x421856=>_0x421856['model']==_0xf7bd5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3f36f5,'*Set\x20font\x20size:*\x20%0',_0x2b30da)};}return{'type':'format','content':o(_0x3f36f5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x367af8['commandName']){const _0x1cffb3=_0x367af8['commandParams'][0x0]['value'];return _0x1cffb3?{'type':'format','content':o(_0x3f36f5,'*Set\x20font\x20family:*\x20%0',_0x1cffb3)}:{'type':'format','content':o(_0x3f36f5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x367af8['commandName']){const _0x479a4e=_0x367af8['commandParams'][0x0]['value'];if(_0x479a4e){const _0x48f590=_0x592eaf(this['editor']['config']['get']('fontColor.colors'))['find'](_0xe8af7d=>_0xe8af7d['model']==_0x479a4e);let _0x12588b=_0x479a4e,_0x106568='';return _0x48f590&&(_0x12588b=_0x48f590['label'],_0x106568=_0x3d843e(_0x12588b)['toLowerCase']()),{'type':'format','content':o(_0x3f36f5,'*Set\x20font\x20color:*\x20%0',_0x106568)['trim'](),'color':{'value':_0x479a4e,'title':_0x106568||_0x12588b}};}return{'type':'format','content':o(_0x3f36f5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x367af8['commandName']){const _0x2da2c1=_0x367af8['commandParams'][0x0]['value'];if(_0x2da2c1){const _0x479f58=_0x592eaf(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3bcaad=>_0x3bcaad['model']==_0x2da2c1);let _0x36cbc4=_0x2da2c1,_0x500543='';return _0x479f58&&(_0x36cbc4=_0x479f58['label'],_0x500543=_0x3d843e(_0x36cbc4)['toLowerCase']()),{'type':'format','content':o(_0x3f36f5,'*Set\x20font\x20background\x20color:*\x20%0',_0x500543)['trim'](),'color':{'value':_0x2da2c1,'title':_0x500543||_0x36cbc4}};}return{'type':'format','content':o(_0x3f36f5,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x1cbbcf{['afterInit'](){const _0x49e171=this['editor'],_0x587c25=_0x49e171['plugins']['get']('TrackChangesEditing'),_0x17a7f4=_0x49e171['commands']['get']('copyFormat'),_0x2517bd=_0x49e171['commands']['get']('pasteFormat');_0x17a7f4&&_0x2517bd&&(_0x587c25['enableDefaultAttributesIntegration']('pasteFormat'),_0x587c25['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4e71ce=this['editor'],_0x1f0d23=_0x4e71ce['locale'];_0x4e71ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x156f55=>{if('formatBlock'!=_0x156f55['type']&&'formatInline'!=_0x156f55['type'])return;const {data:_0x1bf9bd}=_0x156f55;if(_0x1bf9bd&&'pasteFormat'===_0x1bf9bd['commandName']){const _0x435824=[],_0x4f56c4=_0x1bf9bd['commandParams'][0x0];for(const [_0x498356,_0x200100]of Object['entries'](_0x4f56c4))_0x435824['push'](ro(_0x4e71ce,_0x498356,_0x200100));return _0x435824['length']?{'type':'format','content':o(_0x1f0d23,'*Set\x20format\x20to:*\x20%0',_0x435824['join'](',\x20'))}:{'type':'format','content':o(_0x1f0d23,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x340b81,_0x548022,_0x204fb9){const _0x53bffc=_0x340b81['locale']['t'],_0x2818fc=_0x548022['split'](/(?=[A-Z])/)['join']('\x20'),_0x447a8f=_0x53bffc(_0x2818fc['charAt'](0x0)['toUpperCase']()+_0x2818fc['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x204fb9)return _0x447a8f;if('fontColor'===_0x548022||'fontBackgroundColor'===_0x548022){const _0x3d7139=_0x592eaf(_0x340b81['config']['get']('fontColor.colors'))['find'](_0x2261cd=>_0x2261cd['model']==_0x204fb9);return _0x447a8f+'\x20('+(_0x3d7139?_0x53bffc(_0x3d7139['label'])['toLowerCase']():_0x204fb9)+')';}if('fontSize'===_0x548022&&isNaN(parseFloat(_0x204fb9))){const _0x1e24c0=_0x340b81['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x340b81['config']['get']('fontSize.options'))['find'](_0x1db45b=>_0x1db45b['model']==_0x204fb9);return _0x447a8f+'\x20('+(_0x1e24c0?_0x53bffc(_0x1e24c0['title'])['toLowerCase']():_0x204fb9)+')';}return _0x447a8f+'\x20('+_0x204fb9+')';}class Z extends _0x1cbbcf{['_headingOptions'];['afterInit'](){const _0x4ca3be=this['editor'];if(!_0x4ca3be['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4ca3be['config']['get']('heading.options');const _0x21e389=_0x4ca3be['locale'],_0x4d50b0=_0x4ca3be['plugins']['get']('TrackChangesEditing');_0x4d50b0['enableDefaultAttributesIntegration']('heading');for(const _0x3f09bb of this['_headingOptions'])'paragraph'!=_0x3f09bb['model']&&_0x4d50b0['descriptionFactory']['registerElementLabel'](_0x3f09bb['model'],_0x54c199=>{const _0x37b4c5=this['_getHeadingLevel'](_0x3f09bb['model']);return null!==_0x37b4c5?_0x1d2fd2(_0x54c199,_0x37b4c5):_0x18fc8b(_0x54c199,_0x3f09bb['title']);});function _0x1d2fd2(_0x89825e,_0x1511fa){return o(_0x21e389,'ELEMENT_HEADING',[_0x89825e,_0x1511fa]);}function _0x18fc8b(_0x5d195e,_0x2c7055){return o(_0x21e389,'ELEMENT_HEADING_CUSTOM',[_0x5d195e,_0x2c7055]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cd46f=this['editor'],_0x19dc78=_0x5cd46f['locale'];function _0x395b76(_0xfe8d9c,_0x2b6017){return o(_0x19dc78,'ELEMENT_HEADING_CUSTOM',[_0xfe8d9c,_0x2b6017]);}_0x5cd46f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13922a=>{if('formatBlock'!=_0x13922a['type'])return;const {data:_0x1bbe93}=_0x13922a;if(_0x1bbe93&&'heading'==_0x1bbe93['commandName']){const _0x141151=_0x1bbe93['commandParams'][0x0]['value'],_0x5300e5=this['_getHeadingLevel'](_0x141151);if(null!==_0x5300e5)return{'type':'format','content':o(_0x19dc78,'*Change\x20to:*\x20%0',(_0x33c4d8=0x1,_0x46182b=_0x5300e5,o(_0x19dc78,'ELEMENT_HEADING',[_0x33c4d8,_0x46182b])))};const _0x4600d4=this['_headingOptions']['find'](_0x50e02e=>_0x50e02e['model']===_0x141151)['title'];return{'type':'format','content':o(_0x19dc78,'*Change\x20to:*\x20%0',_0x395b76(0x1,_0x4600d4))};}var _0x33c4d8,_0x46182b;});}['_getHeadingLevel'](_0x48f81b){const _0x566737=_0x48f81b['match'](/^heading(\d+)/);if(_0x566737)return _0x566737[0x1];const _0x12ca01=this['_headingOptions']?.['find'](_0x3a7051=>_0x3a7051['model']==_0x48f81b);if(_0x12ca01&&_0x12ca01['view']){const _0x47ef89=_0x12ca01['view'],_0x260f5b=(_0x47ef89['name']??_0x47ef89)['match'](/^h(\d+)/);if(_0x260f5b)return _0x260f5b[0x1];}return null;}}class tt extends _0x1cbbcf{['afterInit'](){const _0x4af040=this['editor'];if(!_0x4af040['plugins']['has']('HighlightEditing'))return;const _0x545a29=_0x4af040['plugins']['get']('TrackChangesEditing'),_0x35e8e4=_0x4af040['locale'];_0x545a29['enableDefaultAttributesIntegration']('highlight'),_0x545a29['registerInlineAttribute']('highlight'),_0x545a29['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x35e8e4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x309988=this['editor'],_0xf97805=_0x309988['locale'];_0x309988['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e6913=>{if('formatInline'!=_0x2e6913['type'])return;const {data:_0x568db6}=_0x2e6913;if(_0x568db6&&'highlight'==_0x568db6['commandName']){const _0x27fcd3=_0xf97805['t'],_0x19e985=_0x568db6['commandParams'][0x0]['value'];if(_0x19e985){const _0x24d58d=_0x309988['config']['get']('highlight.options')['find'](_0x14ed6d=>_0x14ed6d['model']==_0x19e985),_0x159bfc=_0x27fcd3(_0x24d58d['title'])['toLowerCase']();return{'type':'format','content':o(_0xf97805,'*Set\x20highlight:*\x20%0',_0x159bfc),'color':{'value':_0x24d58d['color'],'title':_0x24d58d['title']}};}return{'type':'format','content':o(_0xf97805,'*Remove\x20highlight*',o(_0xf97805,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x1cbbcf{['afterInit'](){const _0x2fe69e=this['editor'];if(!_0x2fe69e['plugins']['has']('HorizontalLineEditing'))return;_0x2fe69e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xf59773=_0x2fe69e['plugins']['get']('TrackChangesEditing'),_0x51529c=_0x2fe69e['locale'];_0xf59773['descriptionFactory']['registerElementLabel']('horizontalLine',_0x42d4e0=>o(_0x51529c,'ELEMENT_HORIZONTAL_LINE',_0x42d4e0)),_0x2fe69e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb99e42,{writer:_0x4271b9,options:_0x3cddb9})=>{if(!_0x3cddb9['showSuggestionHighlights'])return null;const _0x1d1436=_0x4271b9['createContainerElement']('div'),_0x1b57e0=_0x4271b9['createEmptyElement']('hr');return _0x4271b9['addClass']('ck-horizontal-line',_0x1d1436),_0x4271b9['insert'](_0x4271b9['createPositionAt'](_0x1d1436,0x0),_0x1b57e0),_0x1d1436;},'converterPriority':'high'});}}class nt extends _0x1cbbcf{['afterInit'](){const _0x214450=this['editor'];if(!_0x214450['plugins']['has']('HtmlEmbed'))return;const _0x5e4cab=_0x214450['plugins']['get']('TrackChangesEditing'),_0x99c9d7=_0x214450['locale'];_0x5e4cab['descriptionFactory']['registerElementLabel']('rawHtml',_0x10a57a=>o(_0x99c9d7,'ELEMENT_HTML_EMBED',_0x10a57a)),_0x5e4cab['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5e4cab['registerBlockAttribute']('value'),_0x5e4cab['descriptionFactory']['registerDescriptionCallback'](_0x41627d=>{if('attribute'!=_0x41627d['type'])return;const {data:_0x3eca4a}=_0x41627d;if(_0x3eca4a&&'value'==_0x3eca4a['key']&&_0x41627d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5b5278=o(_0x99c9d7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x99c9d7,'*Change\x20%0\x20content*',_0x5b5278)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16035a=this['editor'],_0x807b35=_0x16035a['locale'];_0x16035a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3984ac=>{if('formatBlock'!=_0x3984ac['type'])return;const {data:_0x1ad0f0}=_0x3984ac;if(_0x1ad0f0&&'htmlEmbed'==_0x1ad0f0['commandName']){const _0x14f348=o(_0x807b35,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x807b35,'*Change\x20%0\x20content*',_0x14f348)};}});}}class et extends _0x1cbbcf{['afterInit'](){const _0x322c38=this['editor'];if(!_0x322c38['plugins']['has']('ImageEditing'))return;const _0x5d6d04=_0x322c38['plugins']['get']('TrackChangesEditing'),_0x271608=_0x322c38['plugins']['get']('ImageUtils'),_0xac4116=_0x322c38['locale'];_0x5d6d04['enableCommand']('insertImage'),_0x5d6d04['descriptionFactory']['registerElementLabel']('imageBlock',_0x450418=>o(_0xac4116,'ELEMENT_IMAGE',_0x450418)),_0x5d6d04['descriptionFactory']['registerElementLabel']('imageInline',_0xef4bc8=>o(_0xac4116,'ELEMENT_INLINE_IMAGE',_0xef4bc8)),_0x5d6d04['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xac4116,'ELEMENT_CAPTION')),_0x322c38['plugins']['has']('ImageUploadEditing')&&_0x5d6d04['enableCommand']('uploadImage'),_0x322c38['plugins']['has']('ImageBlockEditing')&&_0x322c38['plugins']['has']('ImageInlineEditing')&&(_0x5d6d04['enableCommand']('imageTypeInline',(_0xfbcfee,_0x502bcb)=>{const _0x3db9b1=_0x271608['getClosestSelectedImageElement'](_0x322c38['model']['document']['selection']);_0x322c38['model']['change'](()=>{_0x5d6d04['markBlockFormat'](_0x3db9b1,{'commandName':'imageTypeInline','commandParams':[_0x502bcb]},[],'convertBlockImageToInline');});}),_0x5d6d04['enableCommand']('imageTypeBlock',(_0xa6d424,_0x3ca121)=>{_0x322c38['model']['change'](_0x3993c0=>{let _0xc70a95=_0x271608['getClosestSelectedImageElement'](_0x322c38['model']['document']['selection']),_0x2ac4ae=_0x3993c0['createRangeOn'](_0xc70a95);const _0x2e047c=_0x1b47c6['fromPosition'](_0x2ac4ae['start'],'toPrevious'),_0x10ae11=_0x1b47c6['fromPosition'](_0x2ac4ae['end'],'toNext');_0x5d6d04['forceDefaultExecution'](()=>_0xa6d424(_0x3ca121)),_0xc70a95=_0x271608['getClosestSelectedImageElement'](_0x322c38['model']['document']['selection']),_0x2ac4ae=_0x3993c0['createRangeOn'](_0xc70a95);const _0x11a0a5=_0x3993c0['createRange'](_0x2e047c,_0x10ae11);_0x2e047c['detach'](),_0x10ae11['detach'](),_0x5d6d04['markBlockFormat'](_0xc70a95,{'commandName':'imageTypeInline','commandParams':[_0x3ca121]},[],'convertInlineImageToBlock'),_0x11a0a5['start']['isBefore'](_0x2ac4ae['start'])&&_0x5d6d04['markInsertion'](_0x3993c0['createRange'](_0x11a0a5['start'],_0x2ac4ae['start']),'convertInlineImageToBlock'),_0x2ac4ae['end']['isBefore'](_0x11a0a5['end'])&&_0x5d6d04['markInsertion'](_0x3993c0['createRange'](_0x2ac4ae['end'],_0x11a0a5['end']),'convertInlineImageToBlock');});}),_0x5d6d04['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5d6d04['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5d6d04['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5d6d04['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5d6d04['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5d6d04['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x39abb0])=>{const _0x29d416=_0x5d6d04['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5018ce=_0x39abb0['start'],_0x1fe10f=_0x39abb0['end'];const _0x34bec0=_0x322c38['model']['schema']['getNearestSelectionRange'](_0x5018ce,'backward'),_0x58ee36=_0x322c38['model']['schema']['getNearestSelectionRange'](_0x1fe10f,'forward');_0x34bec0['isCollapsed']&&(_0x5018ce=_0x34bec0['start']),_0x58ee36['isCollapsed']&&(_0x1fe10f=_0x58ee36['end']),_0x29d416([_0x322c38['model']['createRange'](_0x5018ce,_0x1fe10f)]);}),_0x5d6d04['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x395498),_0x5d6d04['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x395498)),_0x322c38['plugins']['has']('ImageCaptionEditing')&&(_0x5d6d04['enableCommand']('toggleImageCaption',(_0x4882bf,_0x3bf2b0)=>{const _0x39eaf5=_0x322c38['plugins']['get']('ImageCaptionUtils');let _0x11b359=_0x271608['getClosestSelectedImageElement'](_0x322c38['model']['document']['selection']),_0x2246db=_0x39eaf5['getCaptionFromImageModelElement'](_0x11b359);_0x322c38['model']['change'](()=>{if(_0x2246db)return void _0x5d6d04['markDeletion'](_0x322c38['model']['createRangeOn'](_0x2246db));const _0x5c4c3e=_0x271608['isBlockImage'](_0x11b359);_0x4882bf(_0x3bf2b0),_0x11b359=_0x271608['getClosestSelectedImageElement'](_0x322c38['model']['document']['selection']),_0x2246db=_0x39eaf5['getCaptionFromImageModelElement'](_0x11b359),_0x5d6d04['markInsertion'](_0x322c38['model']['createRangeOn'](_0x2246db),_0x5c4c3e?null:'imageCaption');});}),_0x5d6d04['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x395498));const _0x33123b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x18761f(_0x55da3b,_0x3e6a34){const _0x53181c=_0x33123b['findIndex'](({type:_0x102e84,subType:_0x15e2d4})=>_0x55da3b['type']==_0x102e84&&_0x55da3b['subType']==_0x15e2d4),_0x131a78=_0x33123b['findIndex'](({type:_0x1eb0e8,subType:_0x47e5c9})=>_0x3e6a34['type']==_0x1eb0e8&&_0x3e6a34['subType']==_0x47e5c9);if(_0x53181c<0x0||_0x131a78<0x0)return!0x1;const _0x9a2676=_0x55da3b['getFirstRange'](),_0x2a0626=_0x3e6a34['getFirstRange']();if((0x0==_0x53181c||0x1==_0x53181c)&&0x2==_0x131a78&&_0x9a2676['isIntersecting'](_0x2a0626))return!0x0;if(0x2==_0x53181c&&0x3==_0x131a78){const _0x17cd8b=_0x5d6d04['_findSuggestions'](_0x9a2676,'insertion')['filter'](({suggestion:_0x5373b0,meta:_0x3691a8})=>_0x3691a8['isOwn']&&'convertInlineImageToBlock'==_0x5373b0['subType']);if(_0x17cd8b['length']>0x1&&_0x2a0626['end']['isEqual'](_0x9a2676['start']))return!0x0;if(0x1==_0x17cd8b['length']&&(_0x9a2676['start']['isEqual'](_0x2a0626['end'])||_0x9a2676['end']['isEqual'](_0x2a0626['start'])))return!0x0;}if(0x3==_0x53181c&&0x3==_0x131a78&&_0x9a2676['start']['isBefore'](_0x2a0626['start'])){const _0x35edd0=_0x9a2676['end']['nodeAfter'],_0x24b828=_0x2a0626['start']['nodeBefore'];return _0x271608['isBlockImage'](_0x35edd0)&&_0x35edd0===_0x24b828;}return!0x1;}function _0x395498(_0x130025,_0x35c024){return _0x18761f(_0x130025,_0x35c024)?[_0x130025,_0x35c024]:_0x18761f(_0x35c024,_0x130025)?[_0x35c024,_0x130025]:null;}_0x322c38['plugins']['has']('ImageResize')&&(_0x5d6d04['enableDefaultAttributesIntegration']('resizeImage'),_0x5d6d04['registerBlockAttribute']('resizedWidth'),_0x5d6d04['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xac4116,'FORMAT_IMAGE_SIZE'))),_0x322c38['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5d6d04['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5d6d04['registerBlockAttribute']('alt')),_0x322c38['plugins']['has']('PictureEditing')&&(_0x5d6d04['registerBlockAttribute']('sources'),_0x5d6d04['descriptionFactory']['registerDescriptionCallback'](_0x1a18c2=>{if('attribute'!=_0x1a18c2['type'])return;const {data:_0x9087e1}=_0x1a18c2;return _0x9087e1&&'sources'==_0x9087e1['key']?{'type':'format','content':''}:void 0x0;})),_0x322c38['plugins']['has']('ImageSizeAttributes')&&(_0x5d6d04['registerBlockAttribute']('width'),_0x5d6d04['registerBlockAttribute']('height'),_0x5d6d04['descriptionFactory']['registerDescriptionCallback'](_0x768adf=>{if('attribute'!=_0x768adf['type'])return;const {data:_0x5d612d}=_0x768adf;return!_0x5d612d||'width'!=_0x5d612d['key']&&'height'!=_0x5d612d['key']?void 0x0:{'type':'format','content':''};})),_0x5d6d04['descriptionFactory']['registerDescriptionCallback'](_0x38f077=>{if(!!_0x33123b['find'](({type:_0x4318fb,subType:_0x71f174})=>_0x38f077['type']==_0x4318fb&&_0x38f077['subType']==_0x71f174))return _0x38f077['previous']?{}:void 0x0;}),_0x5d6d04['descriptionFactory']['registerDescriptionCallback'](_0x35e994=>{if('insertion'==_0x35e994['type']||'deletion'==_0x35e994['type']){const _0x29b169=_0x35e994['getContainedElement']();if(_0x29b169&&_0x29b169['is']('element','caption'))return{'type':'insertion'==_0x35e994['type']?'addObject':'removeObject','element':_0x29b169,'quantity':0x1};}}),_0x5d6d04['descriptionFactory']['registerDescriptionCallback'](_0x4164cf=>'formatBlock'==_0x4164cf['type']&&'convertInlineImageToBlock'==_0x4164cf['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4164cf['type']&&'convertBlockImageToInline'==_0x4164cf['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5d6d04['descriptionFactory']['registerDescriptionCallback'](_0x45b588=>{if('attribute'!=_0x45b588['type'])return;const {data:_0x2bf6b0}=_0x45b588;if(!_0x2bf6b0||'alt'!=_0x2bf6b0['key'])return;const _0xabdf66=_0x2bf6b0['newValue'];return _0xabdf66?{'type':'format','content':o(_0xac4116,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xabdf66+'\x22')}:{'type':'format','content':o(_0xac4116,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c27df=this['editor'],_0x34c1a3=_0x2c27df['locale'];_0x2c27df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57eb9f=>{if('formatBlock'!=_0x57eb9f['type']&&'formatInline'!=_0x57eb9f['type'])return;const {data:_0x1b9e20}=_0x57eb9f;if(_0x1b9e20){if('imageTextAlternative'==_0x1b9e20['commandName']){const _0x19fb14=_0x1b9e20['commandParams'][0x0]['newValue'];return _0x19fb14?{'type':'format','content':o(_0x34c1a3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x19fb14+'\x22')}:{'type':'format','content':o(_0x34c1a3,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1b9e20['commandName']){const _0x13a83f=_0x1b9e20['commandParams'][0x0]['width'];return _0x13a83f?{'type':'format','content':o(_0x34c1a3,'*Set\x20image\x20width:*\x20%0',_0x13a83f)}:{'type':'format','content':o(_0x34c1a3,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1cbbcf{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5d9e45=this['editor']['locale'],_0x3bd099=this['editor']['plugins']['get']('TrackChangesEditing');_0x3bd099['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3bd099['registerBlockAttribute']('src'),_0x3bd099['descriptionFactory']['registerDescriptionCallback'](_0x3e9dd9=>{if('attribute'!=_0x3e9dd9['type'])return;const {data:_0x5540c6}=_0x3e9dd9;return _0x5540c6&&'src'==_0x5540c6['key']?_0x5540c6['newValue']&&_0x5540c6['oldValue']?{'type':'format','content':o(_0x5d9e45,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3a8b99=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a8b99['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3a8b99['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a8b99['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3a8b99['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf7ed34=this['editor'],_0xca5a77=_0xf7ed34['locale'];_0xf7ed34['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f41ba=>{if('formatBlock'!=_0x3f41ba['type']&&'formatInline'!=_0x3f41ba['type'])return;const {data:_0x2f7c7e}=_0x3f41ba;if(!_0x2f7c7e||'replaceImageSource'!=_0x2f7c7e['commandName'])return;return{'type':'format','content':o(_0xca5a77,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x1cbbcf{['afterInit'](){const _0x5dd317=this['editor'];if(!_0x5dd317['plugins']['has']('ImageStyleEditing'))return;const _0x545f97=_0x5dd317['plugins']['get']('TrackChangesEditing'),_0x21fcbe=_0x5dd317['plugins']['get']('ImageUtils'),_0x1693d8={};_0x545f97['enableCommand']('imageStyle',(_0x2eded2,_0xd2cdfd)=>{const _0x4186ee=_0x5dd317['plugins']['get']('Users')['me'],_0x3445a6=_0x5dd317['commands']['get']('imageStyle');let _0x8f90ca=_0x21fcbe['getClosestSelectedImageElement'](_0x5dd317['model']['document']['selection']),_0x1d4204=_0x5dd317['model']['createRangeOn'](_0x8f90ca),_0x2c2b93=_0x3445a6['value'];if(_0x2c2b93==_0xd2cdfd['value'])return;const _0x31fd0f={'commandName':'imageStyle','commandParams':[_0xd2cdfd],'formatGroupId':_0x4250ae()};_0x5dd317['model']['change'](()=>{if(_0x545f97['getSuggestions']()['filter'](_0x78ddc7=>_0x78ddc7['isInContent']&&_0x4186ee==_0x78ddc7['author']&&('formatBlock'==_0x78ddc7['type']||'formatInline'==_0x78ddc7['type'])&&('imageStylePreApply'==_0x78ddc7['subType']||'imageStylePostApply'==_0x78ddc7['subType'])&&_0x78ddc7['getFirstRange']()['isEqual'](_0x1d4204))['forEach'](_0x13a8a8=>_0x545f97['discardSuggestion'](_0x13a8a8['head'])),_0x8f90ca=_0x21fcbe['getClosestSelectedImageElement'](_0x5dd317['model']['document']['selection']),_0x1d4204=_0x5dd317['model']['createRangeOn'](_0x8f90ca),_0x3445a6['refresh'](),_0x5dd317['commands']['get']('imageTypeInline')['refresh'](),_0x5dd317['commands']['get']('imageTypeBlock')['refresh'](),_0x2c2b93=_0x3445a6['value'],_0x2c2b93!=_0xd2cdfd['value'])return _0x21fcbe['isInlineImage'](_0x8f90ca)&&_0x3445a6['shouldConvertImageType'](_0xd2cdfd['value'],_0x8f90ca)?(_0x2eded2({..._0xd2cdfd,'setImageSizes':!0x1}),_0x8f90ca=_0x21fcbe['getClosestSelectedImageElement'](_0x5dd317['model']['document']['selection']),void _0x545f97['markBlockFormat'](_0x8f90ca,{..._0x31fd0f,'commandReversedParams':[{'value':_0x2c2b93||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x21fcbe['isBlockImage'](_0x8f90ca)?_0x545f97['markBlockFormat'](_0x8f90ca,_0x31fd0f,[],'imageStylePostApply'):_0x545f97['markInlineFormat'](_0x1d4204,_0x31fd0f,'imageStylePostApply'));});});for(const _0x2130db of _0x5dd317['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1693d8[_0x2130db['name']]=_0x2130db['title']['toLowerCase']();_0x545f97['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x545f97['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x545f97['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x545f97['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1b7843])=>{_0x21fcbe['setImageNaturalSizeAttributes'](_0x1b7843['getContainedElement']());}),_0x545f97['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xbf5d60,_0x3a54a5)=>{_0x545f97['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xbf5d60,{'commandName':_0x3a54a5['commandName'],'commandParams':_0x3a54a5['commandReversedParams']});}),_0x545f97['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5adaa3,_0x177e89){if(_0x103d75(_0x5adaa3,_0x177e89))return[_0x5adaa3,_0x177e89];if(_0x103d75(_0x177e89,_0x5adaa3))return[_0x177e89,_0x5adaa3];return null;});const _0x1fc3e2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x103d75(_0x4cd0fe,_0x325c5f){const _0x2dcf02=_0x1fc3e2['findIndex'](({type:_0x4c6dc9,subType:_0x318e5})=>_0x4cd0fe['type']==_0x4c6dc9&&_0x4cd0fe['subType']==_0x318e5),_0x4cb73c=_0x1fc3e2['findIndex'](({type:_0x5e78ed,subType:_0x457761})=>_0x325c5f['type']==_0x5e78ed&&_0x325c5f['subType']==_0x457761);if(_0x2dcf02<0x0||_0x4cb73c<0x0)return!0x1;const _0x19a87e=_0x4cd0fe['getFirstRange'](),_0x49253c=_0x325c5f['getFirstRange']();if((0x0==_0x2dcf02||0x1==_0x2dcf02)&&0x2==_0x4cb73c&&_0x19a87e['isIntersecting'](_0x49253c))return!0x0;if(0x2==_0x2dcf02&&0x3==_0x4cb73c){const _0x4539ee=_0x545f97['_findSuggestions'](_0x19a87e,'insertion')['filter'](({suggestion:_0x32b558,meta:_0x1405b1})=>_0x1405b1['isOwn']&&'convertInlineImageToBlock'==_0x32b558['subType']);if(_0x4539ee['length']>0x1&&_0x49253c['end']['isEqual'](_0x19a87e['start']))return!0x0;if(0x1==_0x4539ee['length']&&(_0x19a87e['start']['isEqual'](_0x49253c['end'])||_0x19a87e['end']['isEqual'](_0x49253c['start'])))return!0x0;}if(0x3==_0x2dcf02&&0x3==_0x4cb73c&&_0x19a87e['start']['isBefore'](_0x49253c['start'])){const _0x580df8=_0x19a87e['end']['nodeAfter'],_0x51bbcf=_0x49253c['start']['nodeBefore'];return _0x21fcbe['isBlockImage'](_0x580df8)&&_0x580df8===_0x51bbcf;}return!0x1;}_0x5dd317['model']['document']['registerPostFixer'](()=>{let _0x17557b=!0x1;const _0x4f6194=Array['from'](_0x5dd317['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x230ae9,data:_0x37ffd8}of _0x4f6194){const {group:_0x459481,type:_0x4cc926,subType:_0x56a2f4,id:_0x5c4ac8}=_0x545f97['_splitMarkerName'](_0x230ae9);if('suggestion'==_0x459481&&_0x545f97['hasSuggestion'](_0x5c4ac8)){if('formatBlock'==_0x4cc926&&('imageStylePreApply'==_0x56a2f4||'imageStylePostApply'==_0x56a2f4)){const _0x518388=_0x545f97['getSuggestion'](_0x5c4ac8);if(_0x37ffd8['newRange']){const _0x2a70a0=_0x518388['getFirstRange']()['getContainedElement']();if(_0x21fcbe['isBlockImage'](_0x2a70a0))continue;_0x545f97['discardSuggestion'](_0x518388),_0x17557b=!0x0;}}if('insertion'==_0x4cc926&&'imageCaption'==_0x56a2f4&&!_0x37ffd8['newRange']){const _0x23b07f=_0x545f97['getSuggestion'](_0x5c4ac8);_0x23b07f['next']&&_0x23b07f['next']['isInContent']&&(_0x545f97['discardSuggestion'](_0x23b07f['next']),_0x17557b=!0x0);}}}return _0x17557b;}),this['_registerLegacyDescription'](_0x1693d8);}['_registerLegacyDescription'](_0x4f54df){const _0x5bed36=this['editor'],_0x567527=_0x5bed36['locale'];_0x5bed36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41bb03=>{if('formatBlock'!=_0x41bb03['type']&&'formatInline'!=_0x41bb03['type'])return;const {data:_0x3e1bfe}=_0x41bb03;if(!_0x3e1bfe||'imageStyle'!=_0x3e1bfe['commandName'])return;const _0x323d70=_0x3e1bfe['commandParams'][0x0]['value'];return _0x4b88f4('side'===_0x323d70?o(_0x567527,'FORMAT_SIDE_IMAGE'):_0x4f54df[_0x323d70]||_0x323d70);function _0x4b88f4(_0x2474a2){return{'type':'format','content':o(_0x567527,'*Format:*\x20%0',_0x2474a2)};}});}}class rt extends _0x1cbbcf{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3cd09f){super(_0x3cd09f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3511eb=this['editor'],_0x5acde0=_0x3511eb['commands']['get']('importWord'),_0x1c5eb6=_0x3511eb['commands']['get']('trackChanges');_0x5acde0&&(_0x5acde0['on']('execute',(_0x22c4d1,[,_0x114edb])=>{this['_trackChangesValueDuringImport']=_0x1c5eb6['value'],_0x114edb['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5acde0,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5acde0,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1c5eb6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3511eb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x57b97e,_0x2871cc){const {suggestions:_0x16d9af}=_0x2871cc,_0x3312c4=this['editor']['commands']['get']('trackChanges'),_0x49d4c5=_0x3312c4['value'];this['_trackChangesValueDuringImport']!==_0x49d4c5&&(_0x3312c4['execute'](),this['_trackChangesExecuted']=!0x0),_0x16d9af&&_0x16d9af['forEach'](({id:_0x557b8e,type:_0x566977,author:_0x5e46ff,created_at:_0xa602b6})=>{const _0x3261cd={'id':_0x557b8e,'type':_0x566977,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5e46ff,'createdAt':_0xa602b6?new Date(_0xa602b6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3261cd);});}}class at extends _0x1cbbcf{['afterInit'](){const _0x4e7200=this['editor'],_0x36252e=_0x4e7200['plugins']['get']('TrackChangesEditing');if(_0x4e7200['plugins']['has']('IndentEditing')&&(_0x36252e['enableCommand']('indent'),_0x36252e['enableCommand']('outdent')),_0x4e7200['plugins']['has']('IndentBlock')){for(const _0xc10d4f of['indentBlock','outdentBlock'])_0x36252e['enableDefaultAttributesIntegration'](_0xc10d4f);}const _0x1b480b=_0x4e7200['locale'];_0x36252e['registerBlockAttribute']('blockIndent'),_0x36252e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1b480b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22ef94=this['editor'],_0x54e4d9=_0x22ef94['locale'],_0xf01ec4=_0x22ef94['plugins']['get']('TrackChangesEditing');_0xf01ec4['descriptionFactory']['registerDescriptionCallback'](_0x2085a0=>{if('formatBlock'!=_0x2085a0['type'])return;const {data:_0x2302b5}=_0x2085a0;if(!_0x2302b5)return;if('indentBlock'!=_0x2302b5['commandName']&&'outdentBlock'!=_0x2302b5['commandName'])return;const _0x14bbec=_0x2085a0['getItems']()[0x0],_0x6503c0=_0xf01ec4['descriptionFactory']['getItemLabel'](_0x14bbec);return'indentBlock'==_0x2302b5['commandName']?{'type':'format','content':o(_0x54e4d9,'*Indent:*\x20%0',_0x6503c0)}:'outdentBlock'==_0x2302b5['commandName']?{'type':'format','content':o(_0x54e4d9,'*Outdent:*\x20%0',_0x6503c0)}:void 0x0;});}}class ct extends _0x1cbbcf{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x1cbbcf{['afterInit'](){const _0xe2a88a=this['editor'];if(!_0xe2a88a['plugins']['has']('LinkEditing'))return;const _0x204027=_0xe2a88a['plugins']['get']('TrackChangesEditing'),_0x3d1005=_0xe2a88a['commands']['get']('link');_0x204027['enableDefaultAttributesIntegration']('link'),_0x204027['enableDefaultAttributesIntegration']('unlink'),_0x204027['registerInlineAttribute']('linkHref');for(const _0x195712 of _0x3d1005['manualDecorators'])_0x204027['registerInlineAttribute'](_0x195712['id']),_0x204027['descriptionFactory']['registerAttributeLabel'](_0x195712['id'],'link\x20('+_0x195712['label']['toLowerCase']()+')');_0x204027['descriptionFactory']['registerDescriptionCallback'](_0x50222f=>{if('attribute'!=_0x50222f['type'])return;const {data:_0xf06911}=_0x50222f;if(!_0xf06911||'linkHref'!=_0xf06911['key'])return;const _0x247731=_0xf06911['newValue'],_0x2a23da=_0xe2a88a['locale'];return{'type':'format','content':null==_0x247731?o(_0x2a23da,'*Remove\x20link*'):o(_0x2a23da,'*Set\x20link:*\x20%0','\x22'+_0x247731+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cff79=this['editor'],_0x17a90e=_0x5cff79['locale'];_0x5cff79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x526357=>{if('formatInline'!=_0x526357['type'])return;const {data:_0x22c15c}=_0x526357;if(_0x22c15c){if('link'==_0x22c15c['commandName']){const _0x2269ff=_0x22c15c['commandParams'][0x0];return{'type':'format','content':o(_0x17a90e,'*Set\x20link:*\x20%0','\x22'+_0x2269ff+'\x22')};}return'unlink'==_0x22c15c['commandName']?{'type':'format','content':o(_0x17a90e,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x1cbbcf{['afterInit'](){const _0x24b0fa=this['editor'],_0x1eeb06=_0x24b0fa['locale'];if(!_0x24b0fa['plugins']['has']('LegacyListEditing'))return;const _0x294109=_0x24b0fa['plugins']['get']('TrackChangesEditing'),_0x2dacb4=_0x24b0fa['plugins']['has']('LegacyTodoListEditing');function _0x17201b(_0x1ed588){return()=>{const _0x285396=_0x24b0fa['model']['document']['selection'],_0x981b99=_0x24b0fa['commands']['get'](_0x1ed588);if(_0x981b99['value'])return void _0x24b0fa['execute']('paragraph',{});const _0x190d66=_0x1ed588['slice'](0x0,-0x4),_0x422a6f=function(_0x2a3840,_0x55fbc1,_0x47337a){let _0x50f906=Array['from'](_0x2a3840)['filter'](_0x35e5da=>function(_0x2eee4a,_0x2ce43d){return _0x2ce43d['checkChild'](_0x2eee4a['parent'],'listItem')&&!_0x2ce43d['isObject'](_0x2eee4a);}(_0x35e5da,_0x47337a));_0x50f906=_0x50f906['filter'](_0x316d1e=>!_0x316d1e['is']('element','listItem')||_0x316d1e['getAttribute']('listType')!=_0x55fbc1);const _0x35f312=new Set();for(const _0x318cb6 of _0x50f906)_0x318cb6['is']('element','listItem')?_0x35f312['add'](Le(_0x318cb6)):_0x35f312['add'](_0x318cb6);return Array['from'](_0x35f312);}(_0x285396['getSelectedBlocks'](),_0x190d66,_0x24b0fa['model']['schema']);_0x24b0fa['model']['change'](()=>{for(const _0x4d738f of _0x422a6f)_0x294109['markBlockFormat'](_0x4d738f,{'commandName':_0x1ed588,'commandParams':[{'forceValue':!_0x981b99['value']}],'formatGroupId':'blockName'},Ee(_0x4d738f));});};}function _0xe71fee(_0x31bbbc){return()=>{const _0x15311c=function(_0x44b2ce){let _0x1214e5=Array['from'](_0x44b2ce);const _0x1964b4=_0x1214e5['findIndex'](_0x25d864=>'listItem'!=_0x25d864['name']);return _0x1964b4>-0x1&&(_0x1214e5=_0x1214e5['slice'](0x0,_0x1964b4)),_0x1214e5;}(_0x24b0fa['model']['document']['selection']['getSelectedBlocks']()),_0x38a795=_0x24b0fa['model']['createRange'](_0x24b0fa['model']['createPositionAt'](_0x15311c[0x0],'before'),_0x24b0fa['model']['createPositionAt'](_0x15311c[_0x15311c['length']-0x1],'end'));_0x24b0fa['model']['change'](()=>{_0x294109['markBlockFormat'](_0x38a795,{'commandName':_0x31bbbc,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2c0c53){const _0x436ffd=new Set();for(const _0x573fc3 of _0x2c0c53){let _0x529a4e=_0x573fc3['nextSibling'];for(;_0x529a4e&&_0x529a4e['getAttribute']('listIndent')>_0x573fc3['getAttribute']('listIndent');)_0x436ffd['add'](_0x529a4e),_0x529a4e=_0x529a4e['nextSibling'];}return Array['from'](_0x436ffd);}(_0x15311c));});};}_0x294109['enableCommand']('numberedList',_0x17201b('numberedList')),_0x294109['enableCommand']('bulletedList',_0x17201b('bulletedList')),_0x2dacb4&&_0x294109['enableCommand']('todoList',_0x17201b('todoList')),_0x294109['enableCommand']('indentList',_0xe71fee('indentList')),_0x294109['enableCommand']('outdentList',_0xe71fee('outdentList')),_0x2dacb4&&_0x294109['enableCommand']('checkTodoList',()=>{const _0x54a442=_0x24b0fa['commands']['get']('checkTodoList'),_0x447df9=Array['from'](_0x54a442['_selectedElements']);_0x447df9['filter'](_0x30fa21=>_0x30fa21['getAttribute']('todoListChecked')!=_0x54a442['value']),_0x24b0fa['model']['change'](()=>{for(const _0x4f68ec of _0x447df9)_0x294109['markBlockFormat'](_0x4f68ec,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x54a442['value']}]});});}),_0x294109['descriptionFactory']['registerElementLabel']('listItem',_0x3bccd4=>o(_0x1eeb06,'ELEMENT_LIST_ITEM',_0x3bccd4)),_0x294109['descriptionFactory']['registerDescriptionCallback'](_0x1154cc=>{if('formatBlock'!=_0x1154cc['type']&&'formatInline'!=_0x1154cc['type'])return;const {data:_0x1f0993}=_0x1154cc;if(_0x1f0993){if('numberedList'==_0x1f0993['commandName']||'bulletedList'==_0x1f0993['commandName']||'todoList'==_0x1f0993['commandName'])switch(_0x1f0993['commandName']['replace']('List','')){case'bulleted':return _0x3026b6(o(_0x1eeb06,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3026b6(o(_0x1eeb06,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3026b6(o(_0x1eeb06,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1f0993['commandName'])return{'type':'format','content':o(_0x1eeb06,'*Indent:*\x20%0',o(_0x1eeb06,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1f0993['commandName'])return{'type':'format','content':o(_0x1eeb06,'*Outdent:*\x20%0',o(_0x1eeb06,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1f0993['commandName'])return _0x1f0993['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1eeb06,'*Check\x20item*')}:{'type':'format','content':o(_0x1eeb06,'*Uncheck\x20item*')};}function _0x3026b6(_0x5c55f8){return{'type':'format','content':o(_0x1eeb06,'*Change\x20to:*\x20%0',_0x5c55f8)};}});}}function Le(_0x52c224){const _0x17b612=_0x52c224['getAttribute']('listIndent');if(0x0==_0x17b612)return _0x52c224;let _0x4f451b=_0x52c224;for(;_0x52c224['previousSibling']&&_0x52c224['previousSibling']['is']('element','listItem');){const _0x3ca0c0=_0x52c224['previousSibling']['getAttribute']('listIndent');if(_0x3ca0c0==_0x17b612)_0x4f451b=_0x52c224['previousSibling'];else{if(_0x3ca0c0<_0x17b612)break;}_0x52c224=_0x52c224['previousSibling'];}return _0x4f451b;}function Ee(_0x49466b){const _0x5a23bc=[];if(_0x49466b['is']('element','listItem')&&_0x49466b['getAttribute']('listIndent')>0x0){let _0x290654=_0x49466b['nextSibling'];for(;_0x290654&&'listItem'==_0x290654['name']&&_0x290654['getAttribute']('listIndent')==_0x49466b['getAttribute']('listIndent');)_0x5a23bc['push'](_0x290654),_0x290654=_0x290654['nextSibling'];}return _0x5a23bc;}class ht extends _0x1cbbcf{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5d0cb5=this['editor']['config']['get']('list.properties'),_0x1f2e47=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d0cb5['styles']&&_0x1f2e47['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5d0cb5['reversed']&&_0x1f2e47['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5d0cb5['startIndex']&&_0x1f2e47['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1f2e47['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5edeaf,_0x3d1fb8={}){const _0x860f18=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55bafc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x860f18['markMultiRangeBlockFormat'](_0x55bafc,{'commandName':'listStyle','commandParams':[{'type':_0x3d1fb8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x10305b,_0xe05e6={}){const _0x4477e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcb7d06=this['_getSuggestionBlocks'](_0x4db995=>_0x4db995['is']('element','listItem')&&'numbered'===_0x4db995['getAttribute']('listType'));if(_0xcb7d06['length']<0x1)return;const _0x41c307=_0xcb7d06['map'](_0x3da72c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3da72c,'before'),this['editor']['model']['createPositionAt'](_0x3da72c,0x0)));this['editor']['model']['change'](()=>{_0x4477e1['markMultiRangeBlockFormat'](_0x41c307,{'commandName':'listReversed','commandParams':[{'reversed':_0xe05e6['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1b6bed,_0x89137={}){const _0x244ddb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b62c6=this['_getSuggestionBlocks'](_0x233874=>_0x233874['is']('element','listItem')&&'numbered'===_0x233874['getAttribute']('listType'));if(_0x2b62c6['length']<0x1)return;const _0x7f63a0=_0x2b62c6['map'](_0x178790=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x178790,'before'),this['editor']['model']['createPositionAt'](_0x178790,0x0)));this['editor']['model']['change'](()=>{_0x244ddb['markMultiRangeBlockFormat'](_0x7f63a0,{'commandName':'listStart','commandParams':[{'startIndex':_0x89137['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x26b7b8){if('formatBlock'!=_0x26b7b8['type']&&'formatInline'!=_0x26b7b8['type'])return;const _0x3b5b22=this['editor']['locale'],{data:_0x382df6}=_0x26b7b8;if(!_0x382df6)return;let _0x4e7048,_0xe0de36;switch(_0x382df6['commandName']){case'listStyle':_0x4e7048='*Change\x20to:*\x20%0',_0xe0de36={'type':'format','content':o(_0x3b5b22,_0x4e7048,o(_0x3b5b22,this['_getTranslationKeyForListStyle'](_0x382df6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e7048=_0x382df6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xe0de36={'type':'format','content':o(_0x3b5b22,_0x4e7048)};break;case'listStart':_0x4e7048='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xe0de36={'type':'format','content':o(_0x3b5b22,_0x4e7048,_0x382df6['commandParams'][0x0]['startIndex'])};}return _0xe0de36;}['_getSuggestionBlocksForListStyle'](){const _0x2b76d9=this['editor']['plugins']['get']('LegacyListUtils');let _0xed5e26=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xed5e26[0x0]?.['is']('element','listItem')&&_0xed5e26['unshift'](..._0x2b76d9['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xed5e26[_0xed5e26['length']-0x1]?.['is']('element','listItem')&&_0xed5e26['push'](..._0x2b76d9['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xed5e26=[...new Set(_0xed5e26)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xed5e26=_0xed5e26['filter'](_0x1f7953=>_0x1f7953['is']('element','listItem'))),_0xed5e26;}['_getSuggestionBlocks'](_0x147e7f){const _0x428859=this['editor']['plugins']['get']('LegacyListUtils');let _0x375aa0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x147e7f)['map'](_0x54c010=>{const _0xfb17d5=this['editor']['model']['createPositionAt'](_0x54c010,0x0);return[..._0x428859['getSiblingNodes'](_0xfb17d5,'backward'),..._0x428859['getSiblingNodes'](_0xfb17d5,'forward')];})['flat']();return _0x375aa0=[...new Set(_0x375aa0)],_0x375aa0;}['_getTranslationKeyForListStyle'](_0x200f78){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x200f78)||'default')['toUpperCase']()+'_LIST_'+_0x200f78['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x1cbbcf{['afterInit'](){const _0x41fe89=this['editor'];if(!_0x41fe89['plugins']['has']('MediaEmbedEditing'))return;const _0x50d901=_0x41fe89['plugins']['get']('TrackChangesEditing'),_0x25c21f=_0x41fe89['locale'];_0x50d901['enableCommand']('mediaEmbed'),_0x50d901['descriptionFactory']['registerElementLabel']('media',_0x428d92=>o(_0x25c21f,'ELEMENT_MEDIA',_0x428d92)),_0x41fe89['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x101c91,{writer:_0x5be1df,options:_0x28e8ef})=>{if(_0x28e8ef['showSuggestionHighlights'])return _0x5be1df['createEmptyElement']('div');},'converterPriority':'high'}),_0x41fe89['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5c46a3,_0xd8f172,_0x21f83e)=>{_0x21f83e['options']['showSuggestionHighlights']&&_0x5c46a3['stop']();},{'priority':'high'});}}class lt extends _0x1cbbcf{['afterInit'](){const _0x226aea=this['editor'];_0x226aea['plugins']['has']('MentionEditing')&&_0x226aea['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x1cbbcf{['afterInit'](){const _0xd3af8=this['editor'];if(!_0xd3af8['plugins']['has']('MergeFieldsEditing'))return;const _0x48786a=_0xd3af8['plugins']['get']('TrackChangesEditing'),_0x3937da=_0xd3af8['locale'];_0x48786a['enableCommand']('insertMergeField'),_0x48786a['enableCommand']('insertMergeFieldBlock'),_0x48786a['enableCommand']('insertMergeFieldImage'),_0x48786a['descriptionFactory']['registerElementLabel']('mergeField',_0x47669b=>o(_0x3937da,'ELEMENT_MERGE_FIELD',_0x47669b)),_0x48786a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x9f766c=>o(_0x3937da,'ELEMENT_MERGE_FIELD',_0x9f766c)),_0x48786a['descriptionFactory']['registerDescriptionCallback'](_0x3ee3c0=>{if('insertion'!=_0x3ee3c0['type']&&'deletion'!=_0x3ee3c0['type'])return;const _0x2e02e7=_0x3ee3c0['getContainedElement']();if(null==_0x2e02e7)return;const _0x38ed69=_0xd3af8['plugins']['get']('MergeFieldsEditing');let _0x3c846a;switch(_0x38ed69['getMergeFieldType'](_0x2e02e7)){case null:return;case'image':{const _0x1d7683=_0x38ed69['unwrapAffixes'](_0x2e02e7['getAttribute']('src'));_0x3c846a=_0x38ed69['getLabel'](_0x1d7683)||_0x1d7683;break;}default:{const _0x917134=_0x2e02e7['getAttribute']('id');_0x3c846a=_0x38ed69['getLabel'](_0x917134)||_0x917134;break;}}return'insertion'==_0x3ee3c0['type']?{'type':'insertion','content':o(_0x3937da,'*Insert:*\x20%0','\x22'+_0x3c846a+'\x22\x20'+o(_0x3937da,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3937da,'*Remove:*\x20%0','\x22'+_0x3c846a+'\x22\x20'+o(_0x3937da,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x1cbbcf{['afterInit'](){const _0x43952a=this['editor'],_0xfd584d=_0x43952a['plugins']['get']('TrackChangesEditing');_0x43952a['plugins']['has']('MultiLevelList')&&(_0xfd584d['enableDefaultAttributesIntegration']('multiLevelList'),_0xfd584d['registerBlockAttribute']('listMarkerStyle'),_0xfd584d['descriptionFactory']['registerDescriptionCallback'](_0x3dcede=>this['handleDescriptions'](_0x3dcede)));}['handleDescriptions'](_0x129333){const _0x2ac4ab=this['editor']['locale'],{data:_0x5b3ba8}=_0x129333,_0x46c858={'type':'format','content':''};if(_0x5b3ba8&&'listMarkerStyle'==_0x5b3ba8['key']){if(!_0x5b3ba8['oldValue'])return{'type':'format','content':o(_0x2ac4ab,'*Set\x20format:*\x20%0',o(_0x2ac4ab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b3ba8['newValue']+')'};if(!_0x5b3ba8['newValue']){let _0x5b2a43=_0x129333['head'];for(;_0x5b2a43;){if(_0x5b2a43['data']&&'listType'==_0x5b2a43['data']['key']&&_0x5b2a43['data']['newValue'])return _0x46c858;_0x5b2a43=_0x5b2a43['next'];}return{'type':'format','content':o(_0x2ac4ab,'*Remove\x20format:*\x20%0',o(_0x2ac4ab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b3ba8['oldValue']+')'};}}}}class pt extends _0x1cbbcf{['afterInit'](){const _0x10fb38=this['editor'];if(!_0x10fb38['plugins']['has']('PageBreakEditing'))return;_0x10fb38['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4fee5a=_0x10fb38['plugins']['get']('TrackChangesEditing'),_0x130112=_0x10fb38['locale'];_0x4fee5a['descriptionFactory']['registerElementLabel']('pageBreak',_0x49945f=>o(_0x130112,'ELEMENT_PAGE_BREAK',_0x49945f));}}class kt extends _0x1cbbcf{['afterInit'](){const _0x513f02=this['editor'];if(!_0x513f02['plugins']['has']('Paragraph'))return;const _0x49a168=_0x513f02['locale'],_0x29346d=_0x513f02['plugins']['get']('TrackChangesEditing');_0x29346d['descriptionFactory']['registerElementLabel']('paragraph',_0x3f267e=>o(_0x49a168,'ELEMENT_PARAGRAPH',_0x3f267e)),_0x29346d['enableDefaultAttributesIntegration']('paragraph'),_0x29346d['enableCommand']('insertParagraph'),_0x513f02['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x513f02),{'priority':'highest'}),_0x513f02['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x30f06a,_0x51c4de,_0x271d09)=>{_0x271d09['options']['showSuggestionHighlights']&&nr(_0x513f02,{'showActiveMarker':!0x1})(_0x30f06a,_0x51c4de,_0x271d09);},{'priority':'highest'});const _0x267fd9=_0x29346d['descriptionFactory'];_0x267fd9['registerDescriptionCallback'](_0x1a8ea5=>{if('insertion'!==_0x1a8ea5['type'])return;const {start:_0xebc48d,end:_0x1f14de}=_0x1a8ea5['getFirstRange']();if(!_0xebc48d['isTouching'](_0x1f14de)||!_0xebc48d['nodeAfter'])return;const _0x54e43f=_0x513f02['model']['schema'],_0x146953=_0xebc48d['nodeAfter'];return _0x54e43f['isBlock'](_0x146953)&&!_0x54e43f['isLimit'](_0x146953)&&_0x54e43f['checkChild'](_0x146953,'$text')?{'type':'insertion','content':o(_0x49a168,'*Insert:*\x20%0',_0x267fd9['getItemLabel'](_0x146953,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e4ecc=this['editor'],_0x342b52=_0x4e4ecc['locale'];_0x4e4ecc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1196af=>{if('formatBlock'!=_0x1196af['type'])return;const {data:_0x2b04ed}=_0x1196af;return _0x2b04ed&&'paragraph'==_0x2b04ed['commandName']?{'type':'format','content':o(_0x342b52,'*Change\x20to:*\x20%0',o(_0x342b52,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x282c7f,{showActiveMarker:_0x5ed913=!0x0}={}){return(_0x5142b0,_0x386321,_0x4b4be8)=>{const _0xc565d9=_0x282c7f['plugins']['get']('TrackChangesEditing'),_0x1464a2=_0x386321['markerRange']['start'],_0x3fbe03=_0x386321['markerRange']['end'],_0xfc83bf=_0x282c7f['model']['schema'];if(!_0x1464a2['isTouching'](_0x3fbe03)||!_0x1464a2['nodeAfter'])return;const _0x3000d1=_0x1464a2['nodeAfter'];if(_0xfc83bf['isBlock'](_0x3000d1)&&!_0xfc83bf['isLimit'](_0x3000d1)&&_0xfc83bf['checkChild'](_0x3000d1,'$text')){if(!_0x4b4be8['consumable']['consume'](_0x386321['markerRange'],_0x5142b0['name']))return;const {id:_0x53dd34,authorId:_0x1d753f}=_0xc565d9['_splitMarkerName'](_0x386321['markerName']),_0x4525a9=_0x4b4be8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x53dd34,'data-author-id':_0x1d753f}),_0x2a65df=_0x4b4be8['mapper']['toViewPosition'](_0x3fbe03);_0x5ed913&&_0xc565d9['activeMarkers']['includes'](_0x386321['markerName'])&&_0x4b4be8['writer']['addClass']('ck-suggestion-marker--active',_0x4525a9),_0x4b4be8['writer']['insert'](_0x2a65df,_0x4525a9),_0x4b4be8['mapper']['bindElementToMarker'](_0x4525a9,_0x386321['markerName']);}};}class wt extends _0x1cbbcf{['afterInit'](){const _0x58484b=this['editor'];_0x58484b['commands']['get']('replaceSource')&&_0x58484b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x1cbbcf{['afterInit'](){const _0x4930bb=this['editor'];if(!_0x4930bb['plugins']['has']('RemoveFormatEditing'))return;_0x4930bb['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52131f=this['editor'];_0x52131f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x371470=>{if('formatBlock'!=_0x371470['type']&&'formatInline'!=_0x371470['type'])return;const {data:_0x5d0524}=_0x371470;return _0x5d0524&&'removeFormat'==_0x5d0524['commandName']?{'type':'format','content':o(_0x52131f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x1cbbcf{['afterInit'](){const _0x5b6d6d=this['editor'];if(!_0x5b6d6d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x28be83=_0x5b6d6d['plugins']['get']('TrackChangesEditing');_0x28be83['enableCommand']('goToPreviousRestrictedEditingException'),_0x28be83['enableCommand']('goToNextRestrictedEditingException');const _0xf3035=_0x5b6d6d['plugins']['get']('RestrictedEditingModeEditing');_0xf3035['enableCommand']('trackChanges'),_0xf3035['enableCommand']('acceptSuggestion'),_0xf3035['enableCommand']('discardSuggestion'),_0xf3035['enableCommand']('acceptAllSuggestions'),_0xf3035['enableCommand']('discardAllSuggestions'),_0xf3035['enableCommand']('acceptSelectedSuggestions'),_0xf3035['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x1cbbcf{['afterInit'](){const _0x346182=this['editor'];if(!_0x346182['plugins']['has']('ShiftEnter'))return;const _0x411798=_0x346182['plugins']['get']('TrackChangesEditing');_0x411798['enableCommand']('shiftEnter'),_0x346182['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x346182),{'priority':'high'}),_0x346182['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x346182),{'priority':'high'}),_0x346182['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4dc502,_0x39f764,_0x3b5c17)=>{_0x3b5c17['options']['showSuggestionHighlights']&&je(_0x346182,{'showActiveMarker':!0x1})(_0x4dc502,_0x39f764,_0x3b5c17);}),_0x411798['descriptionFactory']['registerElementLabel']('softBreak',_0x2fe410=>o(_0x346182['locale'],'ELEMENT_LINE_BREAK',_0x2fe410));}}function je(_0x37edc9,{showActiveMarker:_0x256bd8=!0x0}={}){return(_0x3345fd,_0x44b18b,_0x1018ad)=>{const _0xa55e5f=_0x37edc9['plugins']['get']('TrackChangesEditing');if(!_0x1018ad['consumable']['test'](_0x44b18b['markerRange'],_0x3345fd['name']))return;const _0x425b19=_0x37edc9['model'];for(const _0x437e84 of _0x44b18b['markerRange']['getItems']()){if(!_0x437e84['is']('element','softBreak'))continue;const _0x2b15ed='deletion'==_0x44b18b['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x174436,authorId:_0x1edaaa}=_0xa55e5f['_splitMarkerName'](_0x44b18b['markerName']),_0x2debd3=_0x1018ad['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b15ed,'data-suggestion':_0x174436,'data-author-id':_0x1edaaa}),_0x39cf91=_0x1018ad['mapper']['toViewPosition'](_0x425b19['createPositionBefore'](_0x437e84));_0x256bd8&&_0xa55e5f['activeMarkers']['includes'](_0x44b18b['markerName'])&&_0x1018ad['writer']['addClass']('ck-suggestion-marker--active',_0x2debd3),_0x1018ad['writer']['insert'](_0x39cf91,_0x2debd3),_0x1018ad['mapper']['bindElementToMarker'](_0x2debd3,_0x44b18b['markerName']);}};}class St extends _0x1cbbcf{['afterInit'](){const _0x92e405=this['editor'],_0x563660=_0x92e405['model'],_0x149af9=_0x92e405['locale'];if(!_0x92e405['plugins']['has']('StandardEditingModeEditing'))return;const _0x2376e1=_0x92e405['plugins']['get']('TrackChangesEditing'),_0x3f5c6c='restrictedEditingException',_0x16ae97=_0x92e405['commands']['get'](_0x3f5c6c);_0x2376e1['enableCommand'](_0x3f5c6c,(_0x5a1717,_0x3d561b={})=>{const _0x58071a=_0x563660['document']['selection'];if(_0x58071a['isCollapsed'])return void _0x5a1717(_0x3d561b);const _0x51b026=void 0x0!==_0x3d561b['forceValue']?_0x3d561b['forceValue']:!_0x16ae97['value'];_0x563660['change'](()=>{const _0xb92782=Array['from'](_0x58071a['getRanges']());for(const _0x26241b of _0xb92782){const _0x3394a2=_0x51b026?[_0x26241b]:io(_0x3f5c6c,_0x26241b,_0x563660);for(const _0x2b0e85 of _0x3394a2)_0x2376e1['markInlineFormat'](_0x2b0e85,{'commandName':_0x3f5c6c,'commandParams':[{'forceValue':_0x51b026}]});}});}),_0x2376e1['descriptionFactory']['registerDescriptionCallback'](_0x15270a=>{if('formatBlock'!=_0x15270a['type']&&'formatInline'!=_0x15270a['type'])return;const {data:_0x52c943}=_0x15270a;return _0x52c943&&_0x52c943['commandName']==_0x3f5c6c?_0x52c943['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x149af9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x149af9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x1cbbcf{['afterInit'](){const _0x3ff284=this['editor'];if(!_0x3ff284['plugins']['has']('Style')||!_0x3ff284['plugins']['has']('DataSchema'))return;const _0x435360=_0x3ff284['plugins']['get']('TrackChangesEditing'),_0xa40eba=_0x3ff284['locale'],_0x44930b=_0x3ff284['config']['get']('style')||{},_0x5c381a=_0x3ff284['plugins']['get']('GeneralHtmlSupport'),_0x3c1098=_0x3ff284['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3ff284['plugins']['get']('DataSchema'),_0x44930b['definitions']);_0x435360['enableDefaultAttributesIntegration']('style');const _0x3ff674=new Set();for(const _0x49cebb of _0x3c1098['block']){const _0x3ef395=_0x5c381a['getGhsAttributeNameForElement'](_0x49cebb['element']);_0x3ff674['add'](_0x3ef395);}const _0x56a8fd=new Set();for(const _0x566047 of _0x3c1098['inline']){const _0x405244=_0x5c381a['getGhsAttributeNameForElement'](_0x566047['element']);_0x56a8fd['add'](_0x405244);for(const _0x182ce8 of _0x566047['ghsAttributes'])_0x56a8fd['add'](_0x182ce8);}for(const _0x16d961 of _0x3ff674)_0x435360['registerBlockAttribute'](_0x16d961),_0x435360['descriptionFactory']['registerAttributeLabel'](_0x16d961,o(_0xa40eba,'FORMAT_STYLE'));for(const _0x5c492f of _0x56a8fd)_0x435360['registerInlineAttribute'](_0x5c492f),_0x435360['descriptionFactory']['registerAttributeLabel'](_0x5c492f,o(_0xa40eba,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d8cc1=this['editor'],_0x858880=_0x3d8cc1['locale'];_0x3d8cc1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x271f6f=>{if('formatBlock'!=_0x271f6f['type']&&'formatInline'!=_0x271f6f['type'])return;const {data:_0x410009}=_0x271f6f;return _0x410009&&'style'===_0x410009['commandName']?_0x410009['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x858880,'*Set\x20format:*\x20%0',_0x410009['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x858880,'*Remove\x20format:*\x20%0',_0x410009['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x1cbbcf{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4b0f9c){super(_0x4b0f9c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x12f7c=this['editor'],_0x1ff700=_0x12f7c['model']['document']['selection'];if(!_0x12f7c['plugins']['has']('TableEditing'))return;const _0x3ca5ef=_0x12f7c['locale'],_0x441723=_0x12f7c['plugins']['get']('TrackChangesEditing'),_0x2ae824=_0x12f7c['plugins']['get']('TableUtils');_0x441723['descriptionFactory']['registerElementLabel']('table',_0x34b274=>o(_0x3ca5ef,'ELEMENT_TABLE',_0x34b274)),this['_setupColumnsRowsFixing'](),_0x441723['enableCommand']('insertTable'),_0x441723['enableCommand']('selectTableRow'),_0x441723['enableCommand']('selectTableColumn');for(const _0x39defa of['insertTableRowAbove','insertTableRowBelow']){const _0x51ce7e=_0x12f7c['commands']['get'](_0x39defa);_0x441723['enableCommand'](_0x39defa,_0x242e84=>{_0x12f7c['model']['change'](_0x260d56=>{_0x242e84();const _0x3c7458='above'===_0x51ce7e['order'],_0x564ac2=_0x2ae824['getSelectionAffectedTableCells'](_0x1ff700),_0x31e698=_0x2ae824['getRowIndexes'](_0x564ac2),_0x1997d7=_0x3c7458?_0x31e698['first']-0x1:_0x31e698['last']+0x1,_0xc78771=_0x564ac2[0x0]['findAncestor']('table'),_0x3f9ab8=_0x2ae824['createTableWalker'](_0xc78771,{'startRow':_0x1997d7,'endRow':_0x1997d7}),_0x403562=Array['from'](_0x3f9ab8)['map'](_0x7594ab=>_0x260d56['createRangeOn'](_0x7594ab['cell']));_0x441723['markMultiRangeInsertion'](_0x403562,'tableRow');});});}for(const _0x44b1ea of['insertTableColumnLeft','insertTableColumnRight']){const _0x56e294=_0x12f7c['commands']['get'](_0x44b1ea);_0x441723['enableCommand'](_0x44b1ea,_0x123f1b=>{_0x12f7c['model']['change'](_0x50fc32=>{_0x123f1b();const _0x4b6d3b='left'===_0x56e294['order'],_0x47f06f=_0x2ae824['getSelectionAffectedTableCells'](_0x1ff700),_0x563d29=_0x2ae824['getColumnIndexes'](_0x47f06f),_0x42c0df=_0x4b6d3b?_0x563d29['first']-0x1:_0x563d29['last']+0x1,_0x388387=_0x47f06f[0x0]['findAncestor']('table'),_0x5d1b0a=_0x2ae824['createTableWalker'](_0x388387,{'startRow':0x0,'column':_0x42c0df,'includeAllSlots':!0x1}),_0x28354b=Array['from'](_0x5d1b0a)['map'](_0x375932=>_0x50fc32['createRangeOn'](_0x375932['cell']));_0x441723['markMultiRangeInsertion'](_0x28354b,'tableColumn');});});}for(const _0x51c1cd of['removeTableRow','removeTableColumn']){const _0x51ad97=_0x51c1cd['substr'](0xb),_0x16fd3b=_0x51ad97['toLowerCase'](),_0x53cf2e=_0x16fd3b['substr'](0x0,0x3)+'span',_0x4e579b='table'+_0x51ad97,_0x1d3eb0='min'+_0x51ad97,_0x43f1bd='max'+_0x51ad97;_0x441723['enableCommand'](_0x51c1cd,()=>{_0x12f7c['model']['change'](_0x5ccf10=>{const _0x1ccc6a=_0x2ae824['getSelectionAffectedTableCells'](_0x1ff700),_0x30adc6=_0x1ccc6a[0x0]['findAncestor']('table');let _0x2eb226;if('removeTableRow'==_0x51c1cd){const _0x521b5a=_0x2ae824['getRowIndexes'](_0x1ccc6a);_0x2eb226={'startRow':_0x521b5a['first'],'endRow':_0x521b5a['last'],'includeAllSlots':!0x0};}else{const _0x16e9bd=_0x2ae824['getColumnIndexes'](_0x1ccc6a);_0x2eb226={'startColumn':_0x16e9bd['first'],'endColumn':_0x16e9bd['last'],'includeAllSlots':!0x0};}const _0x2a96e8=_0x2ae824['createTableWalker'](_0x30adc6,_0x2eb226),_0x231082=Array['from'](_0x2a96e8)['map'](({cell:_0x5b2375})=>_0x5b2375),_0x120023=Ne(_0x231082['filter'](_0x2d8e53=>_0x2d8e53['hasAttribute'](_0x53cf2e))),_0x230d30=Ne(_0x231082['filter'](_0x1abac0=>!_0x1abac0['hasAttribute'](_0x53cf2e)))['map'](_0x1574b2=>_0x5ccf10['createRangeOn'](_0x1574b2)),_0x36194c=_0x441723['markMultiRangeDeletion'](_0x230d30,_0x4e579b);if(_0x36194c&&('tableRow'==_0x36194c['subType']||'tableColumn'==_0x36194c['subType'])){const _0x2fdb71=this['_getSuggestionCoords'](_0x36194c);for(const _0x501d25 of _0x120023){const _0x10985e=_0x5ccf10['createRangeOn'](_0x501d25),_0x173668=_0x2ae824['getCellLocation'](_0x501d25),_0x244dd1=_0x501d25['getAttribute'](_0x53cf2e)-0x1,_0x283bf3=_0x2fdb71[_0x1d3eb0],_0x2c7698=_0x2fdb71[_0x43f1bd];_0x283bf3<=_0x173668[_0x16fd3b]&&_0x173668[_0x16fd3b]+_0x244dd1<=_0x2c7698&&_0x36194c['addRange'](_0x10985e);}}});});}function _0x5b92fd(_0x94200f){const _0x16bf55=Array['from'](_0x1ff700['getRanges']())['map'](_0x32125f=>_0x1a9bf4['fromRange'](_0x32125f));_0x12f7c['model']['change'](_0x1f5db0=>{const _0x13117e=_0x1f5db0['batch'];_0x94200f=_0x94200f['filter'](_0x413504=>'$graveyard'!=_0x413504['root']['rootName']),_0x1f5db0['setSelection'](_0x94200f),_0x12f7c['commands']['get']('removeTableRow')['refresh'](),_0x12f7c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x12f7c['model']['enqueueChange'](()=>{_0x12f7c['model']['enqueueChange'](_0x13117e,_0x367910=>{const _0x3347f4=_0x16bf55['filter'](_0x323f13=>'$graveyard'!=_0x323f13['root']['rootName']);_0x3347f4['length']>0x0&&_0x367910['setSelection'](_0x3347f4);for(const _0x127e11 of _0x16bf55)_0x127e11['detach']();});});});}function _0x17949e(_0x23dc3e){_0x12f7c['model']['change'](_0x250246=>{const _0x4fa03c=Array['from'](_0x1ff700['getRanges']())['map'](_0x47d4c1=>_0x1a9bf4['fromRange'](_0x47d4c1)),_0x59ab14=[];for(const _0x4030ac of _0x23dc3e)for(const _0x3d2a22 of _0x4030ac['getItems']({'shallow':!0x0}))_0x59ab14['push'](_0x3d2a22);for(const _0x495ae1 of _0x59ab14)'$graveyard'!=_0x495ae1['root']['rootName']&&(_0x250246['setSelection'](_0x250246['createPositionAt'](_0x495ae1,0x0)),_0x12f7c['commands']['get']('removeTableColumn')['refresh'](),_0x12f7c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3f0736=_0x4fa03c['filter'](_0x35d0ce=>'$graveyard'!=_0x35d0ce['root']['rootName']);_0x3f0736['length']>0x0&&_0x250246['setSelection'](_0x3f0736);for(const _0x5783dd of _0x4fa03c)_0x5783dd['detach']();});}function _0x50c4a5(_0x117bd8,_0x54035c){return _0x54035c['every'](_0x1ace35=>_0x117bd8['some'](_0x1c4a7c=>_0x1c4a7c['end']['isEqual'](_0x1ace35['start'])||_0x1ace35['end']['isEqual'](_0x1c4a7c['start'])));}function _0x330c57(_0x5135ab,_0x57ccc0){return!_0x5135ab['some'](_0x124979=>_0x57ccc0['some'](_0x2c4143=>_0x124979['isIntersecting'](_0x2c4143)))&&_0x5135ab['some'](_0x7dc53d=>_0x57ccc0['some'](_0x77144c=>_0x7dc53d['end']['isTouching'](_0x77144c['start'])));}_0x12f7c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xf9af1,_0x2b5ade,_0x23961d)=>{if(!_0x23961d['options']['showSuggestionHighlights'])return;const _0x4c3b88=_0x2b5ade['item'];if(!_0x4c3b88||!_0x4c3b88['is']('element','tableCell'))return;const _0x29c376=_0x23961d['mapper']['toViewElement'](_0x4c3b88);if(_0x29c376){const {id:_0x359c5e,authorId:_0x2f351b}=_0x441723['_splitMarkerName'](_0x2b5ade['markerName']);_0x3de83d(_0x29c376,_0x23961d['writer'],(_0x3ed8d9,_0x185c2a,_0x40491e)=>{_0x40491e['addClass'](_0x555184(_0x185c2a['classes']),_0x3ed8d9),_0x40491e['setAttribute']('data-suggestion-id',_0x359c5e,_0x3ed8d9),_0x40491e['setAttribute']('data-author-id',_0x2f351b,_0x3ed8d9);},(_0x1d1963,_0x421a70,_0xbab75b)=>{_0xbab75b['removeClass'](_0x555184(_0x421a70['classes']),_0x1d1963),_0xbab75b['removeAttribute']('data-suggestion-id',_0x1d1963),_0xbab75b['removeAttribute']('data-author-id',_0x1d1963);});}},{'priority':'highest'}),_0x441723['descriptionFactory']['registerDescriptionCallback'](_0x259448=>{if('insertion'!=_0x259448['type']&&'deletion'!=_0x259448['type'])return;const _0x46f122=_0x259448['getContainedElement']();if(null!=_0x46f122&&_0x46f122['is']('element','table')){if('insertion'==_0x259448['type']){const _0x318bf3=_0x259448['getItems']()['filter'](_0x2ca19e=>_0x2ca19e['is']('$textProxy'))['map'](_0x4b4c12=>_0x4b4c12['data']);if(_0x318bf3['length'])return{'type':'insertion','content':o(_0x3ca5ef,'*Insert:*\x20%0',o(_0x3ca5ef,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x318bf3['join']('\x20')+'\x22'))};}if('deletion'==_0x259448['type']){const _0x4d4c48=_0x259448['getItems']()['filter'](_0x24cc9b=>_0x24cc9b['is']('$textProxy'))['map'](_0x268712=>_0x268712['data']);if(_0x4d4c48['length'])return{'type':'deletion','content':o(_0x3ca5ef,'*Remove:*\x20%0',o(_0x3ca5ef,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d4c48['join']('\x20')+'\x22'))};}}}),_0x441723['descriptionFactory']['registerDescriptionCallback'](_0x2683f6=>{if('tableRow'==_0x2683f6['subType']){const _0x51ff9d=_0x2683f6['getItems']()['filter'](_0x4cc088=>_0x4cc088['is']('$textProxy'))['map'](_0x3f46=>_0x3f46['data']),_0x28c04c=this['_getSuggestionCoords'](_0x2683f6),_0x12c833=_0x28c04c['maxRow']-_0x28c04c['minRow']+0x1;if('insertion'==_0x2683f6['type'])return _0x51ff9d['length']?{'type':'insertion','content':o(_0x3ca5ef,'*Insert:*\x20%0',o(_0x3ca5ef,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12c833,'\x22'+_0x51ff9d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3ca5ef,'*Insert:*\x20%0',o(_0x3ca5ef,'ELEMENT_TABLE_ROW',_0x12c833))};if('deletion'==_0x2683f6['type'])return _0x51ff9d['length']?{'type':'deletion','content':o(_0x3ca5ef,'*Remove:*\x20%0',o(_0x3ca5ef,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12c833,'\x22'+_0x51ff9d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3ca5ef,'*Remove:*\x20%0',o(_0x3ca5ef,'ELEMENT_TABLE_ROW',_0x12c833))};}if('tableColumn'==_0x2683f6['subType']){const _0x13656e=_0x2683f6['getItems']()['filter'](_0x4d3920=>_0x4d3920['is']('$textProxy'))['map'](_0x3ec064=>_0x3ec064['data']),_0x5794ac=this['_getSuggestionCoords'](_0x2683f6),_0x360ca6=_0x5794ac['maxColumn']-_0x5794ac['minColumn']+0x1;if('insertion'==_0x2683f6['type'])return _0x13656e['length']?{'type':'insertion','content':o(_0x3ca5ef,'*Insert:*\x20%0',o(_0x3ca5ef,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x360ca6,'\x22'+_0x13656e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3ca5ef,'*Insert:*\x20%0',o(_0x3ca5ef,'ELEMENT_TABLE_COLUMN',_0x360ca6))};if('deletion'==_0x2683f6['type'])return _0x13656e['length']?{'type':'deletion','content':o(_0x3ca5ef,'*Remove:*\x20%0',o(_0x3ca5ef,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x360ca6,'\x22'+_0x13656e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3ca5ef,'*Remove:*\x20%0',o(_0x3ca5ef,'ELEMENT_TABLE_COLUMN',_0x360ca6))};}}),_0x441723['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5b92fd),_0x441723['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5b92fd),_0x441723['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x17949e),_0x441723['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x17949e),_0x441723['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x50c4a5),_0x441723['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x50c4a5),_0x441723['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x330c57),_0x441723['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x330c57);}['_acceptFormatSuggestionCallbackFactory'](){const _0x50fcbe=this['editor'],_0x21810e=_0x50fcbe['model']['document']['selection'];return(_0x323a02,_0x2ef622)=>{_0x50fcbe['model']['change'](_0x2cc136=>{const {commandName:_0x4cd865,commandParams:_0x52246d}=_0x2ef622;let _0x188fa2=_0x323a02[0x0]['end']['nodeBefore'];_0x52246d&&_0x52246d[0x0]&&!0x1===_0x52246d[0x0]['forceValue']&&(_0x188fa2=_0x323a02[0x0]['start']['nodeAfter']);const _0x191a09=_0x2cc136['createRangeIn'](_0x188fa2);if('$graveyard'==_0x191a09['root']['rootName'])return;const _0x431a5d=Array['from'](_0x21810e['getRanges']())['map'](_0x569263=>_0x1a9bf4['fromRange'](_0x569263));_0x2cc136['setSelection'](_0x191a09),_0x50fcbe['commands']['get'](_0x4cd865)['refresh'](),_0x52246d['push']({'forceDefaultExecution':!0x0}),_0x50fcbe['execute'](_0x4cd865,..._0x52246d);const _0x2a1ad0=_0x431a5d['filter'](_0x3b945e=>'$graveyard'!=_0x3b945e['root']['rootName']);_0x2a1ad0['length']>0x0&&_0x2cc136['setSelection'](_0x2a1ad0);for(const _0x3b6c7a of _0x431a5d)_0x3b6c7a['detach']();});};}['_getCoordsForCells'](_0xe457f3){const _0xa511fe=this['editor']['plugins']['get']('TableUtils');let _0x5df4ba=Number['MAX_SAFE_INTEGER'],_0x5e182d=Number['MIN_SAFE_INTEGER'],_0x1e0c6e=Number['MAX_SAFE_INTEGER'],_0x412c2f=Number['MIN_SAFE_INTEGER'];for(const _0x2e57ec of _0xe457f3){if('$graveyard'==_0x2e57ec['root']['rootName'])continue;const {row:_0x21fd2b,column:_0x1278b5}=_0xa511fe['getCellLocation'](_0x2e57ec),_0x261766=_0x2e57ec['hasAttribute']('rowspan')?_0x2e57ec['getAttribute']('rowspan')-0x1:0x0,_0x42ba51=_0x2e57ec['hasAttribute']('colspan')?_0x2e57ec['getAttribute']('colspan')-0x1:0x0;_0x5df4ba=_0x21fd2b<_0x5df4ba?_0x21fd2b:_0x5df4ba,_0x5e182d=_0x21fd2b+_0x261766>_0x5e182d?_0x21fd2b+_0x261766:_0x5e182d,_0x1e0c6e=_0x1278b5<_0x1e0c6e?_0x1278b5:_0x1e0c6e,_0x412c2f=_0x1278b5+_0x42ba51>_0x412c2f?_0x1278b5+_0x42ba51:_0x412c2f;}return{'minRow':_0x5df4ba,'maxRow':_0x5e182d,'minColumn':_0x1e0c6e,'maxColumn':_0x412c2f};}['_setupColumnsRowsFixing'](){const _0x3722e8=this['editor'],_0x629490=_0x3722e8['plugins']['get']('TrackChangesEditing'),_0x1342c8=_0x3722e8['plugins']['get']('TableUtils');_0x3722e8['model']['document']['on']('change:data',()=>{const _0x1db62a=Array['from'](_0x3722e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41ac05,data:_0x23acbd}of _0x1db62a){const {group:_0x3c4ba5,id:_0x52f42f,subType:_0x3abc84}=_0x629490['_splitMarkerName'](_0x41ac05);if('suggestion'!=_0x3c4ba5)continue;if(null!=_0x23acbd['oldRange'])continue;const _0x566b69=_0x629490['getSuggestion'](_0x52f42f);this['_tablePostFixingSubtypes']['includes'](_0x3abc84)&&this['_tableSuggestions']['add'](_0x566b69);}},{'priority':'low'});const _0x2a9d91=(_0x91756b,_0x4fc89c)=>{let _0x13f9c9=!0x1;const _0x2853c3=_0x4fc89c['createRangeOn'](_0x91756b),_0x2ca5f9=_0x91756b['findAncestor']('table'),_0x1e2b6d=_0x1342c8['getCellLocation'](_0x91756b);for(const _0x291421 of this['_tableSuggestions']){const _0x3d695f=_0x291421['subType'],_0x42ee39=_0x3d695f['startsWith']('tablePaste'),_0x16ff40=_0x3d695f['substr'](_0x42ee39?0xa:0x5),_0x407364=_0x16ff40['toLowerCase'](),_0x35200b=_0x407364['substr'](0x0,0x3)+'span',_0x5a02d0='min'+_0x16ff40,_0x9f6452='max'+_0x16ff40;if(!_0x291421['isInContent'])continue;if(_0x2ca5f9!=_0x291421['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x291421['isIntersectingWithRange'](_0x2853c3))continue;const _0x4e8cfd=_0x91756b['hasAttribute'](_0x35200b)?_0x91756b['getAttribute'](_0x35200b)-0x1:0x0,_0x391ccb=this['_getSuggestionCoords'](_0x291421),_0x3c0279=_0x391ccb[_0x5a02d0],_0x484d41=_0x391ccb[_0x9f6452];_0x3c0279<=_0x1e2b6d[_0x407364]&&_0x1e2b6d[_0x407364]+_0x4e8cfd<=_0x484d41&&(_0x291421['addRange'](_0x2853c3),_0x13f9c9=!0x0);}return _0x13f9c9;};_0x3722e8['model']['document']['registerPostFixer'](_0x474015=>{let _0x53385a=!0x1;for(const _0xc9fbbd of _0x3722e8['model']['document']['differ']['getChanges']())if('insert'==_0xc9fbbd['type']){if('tableRow'==_0xc9fbbd['name']){for(const _0x50ed48 of _0xc9fbbd['position']['nodeAfter']['getChildren']())_0x53385a=_0x53385a||_0x2a9d91(_0x50ed48,_0x474015);}else'tableCell'==_0xc9fbbd['name']&&(_0x53385a=_0x53385a||_0x2a9d91(_0xc9fbbd['position']['nodeAfter'],_0x474015));}return _0x53385a;});}['_getSuggestionCoords'](_0x2e75ff){return this['_getCoordsForCells'](_0x2e75ff['getRanges']()['map'](_0x1cce5f=>_0x1cce5f['start']['nodeAfter']));}}function Ne(_0x24d6cf){return Array['from'](new Set(_0x24d6cf)['values']());}class _t extends _0x1cbbcf{static get['requires'](){return[At];}['afterInit'](){const _0x439330=this['editor'],_0x443af0=_0x439330['model']['document']['selection'],_0x29c817=_0x439330['locale'];if(!_0x439330['plugins']['has']('TableEditing'))return;const _0x6bc639=_0x439330['plugins']['get']('TrackChangesEditing'),_0x2a9947=_0x439330['plugins']['get']('TableUtils'),_0x316576=_0x439330['plugins']['get'](At);_0x316576['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x6bc639['enableCommand']('mergeTableCells',()=>{const _0x5a2535=_0x2a9947['getSelectionAffectedTableCells'](_0x439330['model']['document']['selection']);_0x439330['model']['change'](()=>{_0x6bc639['markMultiRangeBlockFormat'](_0x5a2535,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x439330['commands']['get']('mergeTableCells')['on']('execute',(_0x21d267,_0x21b38f)=>{_0x439330['commands']['get']('trackChanges')['value']&&(_0x21b38f['length']>0x0&&_0x21b38f[_0x21b38f['length']-0x1]&&_0x21b38f[_0x21b38f['length']-0x1]['forceDefaultExecution']||_0x6bc639['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x21d267['stop']());},{'priority':'highest'});for(const _0x16cd2e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5ee9f6=_0x439330['commands']['get'](_0x16cd2e);_0x6bc639['enableCommand'](_0x16cd2e,()=>{const _0x43ff74=_0x439330['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3f755f=>_0x3f755f['is']('element','tableCell')),_0x3bf52f=_0x5ee9f6['value'];_0x439330['model']['change'](()=>{_0x6bc639['markMultiRangeBlockFormat']([_0x43ff74,_0x3bf52f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x26ac5c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x42d9d7=_0x439330['commands']['get'](_0x26ac5c);_0x6bc639['enableCommand'](_0x26ac5c,()=>{const _0x28c9c0=_0x2a9947['getSelectionAffectedTableCells'](_0x439330['model']['document']['selection'])[0x0],_0x3ebfd7=_0x28c9c0['findAncestor']('table'),{column:_0x252117,row:_0x3cb520}=_0x2a9947['getCellLocation'](_0x28c9c0);let _0x16d858=[];if('horizontally'==_0x42d9d7['direction']){const _0x2882dc=_0x2a9947['createTableWalker'](_0x3ebfd7,{'startRow':_0x3cb520,'endRow':_0x3cb520,'includeAllSlots':!0x0});_0x16d858=Array['from'](_0x2882dc)['map'](_0x389893=>_0x389893['cell']);}else{const _0x336c86=_0x2a9947['createTableWalker'](_0x3ebfd7,{'column':_0x252117,'includeAllSlots':!0x0});_0x16d858=Array['from'](_0x336c86)['map'](_0x21967e=>_0x21967e['cell']);}_0x439330['model']['change'](_0x29e84b=>{_0x6bc639['markBlockFormat'](_0x29e84b['createRangeOn'](_0x28c9c0),{'commandName':_0x26ac5c,'commandParams':[]},_0x16d858,_0x26ac5c);});});}_0x6bc639['descriptionFactory']['registerDescriptionCallback'](_0x5ed12e=>{if('formatBlock'!=_0x5ed12e['type']&&'formatInline'!=_0x5ed12e['type'])return;const {data:_0x5c0881}=_0x5ed12e;return _0x5c0881&&'mergeTableCells'==_0x5c0881['commandName']?{'type':'format','content':o(_0x29c817,'*Merge\x20cells*')}:void 0x0;}),_0x6bc639['descriptionFactory']['registerDescriptionCallback'](_0x432e16=>{if('formatBlock'!=_0x432e16['type']&&'formatInline'!=_0x432e16['type'])return;const {data:_0x277f88}=_0x432e16;return _0x277f88?'splitTableCellVertically'==_0x277f88['commandName']?{'type':'format','content':o(_0x29c817,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x277f88['commandName']?{'type':'format','content':o(_0x29c817,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x6ba654=_0x316576['_acceptFormatSuggestionCallbackFactory']();for(const _0x2239d7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x6bc639['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2239d7,'accept',_0x6ba654);for(const _0x10ded3 of['splitTableCellVertically','splitTableCellHorizontally'])_0x6bc639['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10ded3,'accept',_0x6ba654);_0x6bc639['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1881c2=>{_0x439330['model']['change'](_0x193acb=>{const _0x340dea=Array['from'](_0x443af0['getRanges']())['map'](_0x263080=>_0x1a9bf4['fromRange'](_0x263080));_0x193acb['setSelection'](_0x1881c2),_0x439330['commands']['get']('mergeTableCells')['refresh'](),_0x439330['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1910f7=_0x340dea['filter'](_0x34cffd=>'$graveyard'!=_0x34cffd['root']['rootName']);_0x1910f7['length']>0x0&&_0x193acb['setSelection'](_0x1910f7);for(const _0x57b54b of _0x340dea)_0x57b54b['detach']();});});for(const _0x24ef6c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4870da=_0x439330['commands']['get'](_0x24ef6c);_0x4870da['on']('set:isEnabled',(_0x5c700f,_0x299226,_0x1e7d71)=>{if(_0x1e7d71){const _0x458092=_0x439330['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2e5ce5=>_0x2e5ce5['is']('element','tableCell'));this['_areMergableCells'](_0x4870da['value'],_0x458092)||(_0x5c700f['return']=!0x1,_0x5c700f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x13ffbe=this['editor']['commands']['get']('mergeTableCells'),_0x264fa9=this['editor']['plugins']['get']('TableUtils');if(!_0x13ffbe['isEnabled'])return!0x1;const _0x617937=_0x264fa9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x244ff6 of _0x617937)for(const _0x50a84d of _0x617937)if(_0x244ff6!=_0x50a84d&&!this['_areMergableCells'](_0x244ff6,_0x50a84d))return!0x1;return!0x0;}['_areMergableCells'](_0x25c016,_0x77d4b2){const _0x35ef89=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52f6c5=this['editor']['model']['createRangeOn'](_0x25c016),_0x480e68=this['editor']['model']['createRangeOn'](_0x77d4b2),_0x36bac5=new Set(),_0x2a6bc0=new Set();for(const _0x191ca6 of _0x35ef89['getSuggestions']())if(('insertion'==_0x191ca6['type']||'deletion'==_0x191ca6['type']||'mergeTableCells'==_0x191ca6['subType'])&&_0x191ca6['isInContent']){for(const _0x4f4efc of _0x191ca6['getRanges']())_0x4f4efc['containsRange'](_0x52f6c5,!0x0)&&_0x36bac5['add'](_0x191ca6['type']+':'+_0x191ca6['author']['id']),_0x4f4efc['containsRange'](_0x480e68,!0x0)&&_0x2a6bc0['add'](_0x191ca6['type']+':'+_0x191ca6['author']['id']);}if(_0x36bac5['size']!=_0x2a6bc0['size'])return!0x1;for(const _0x324db9 of _0x36bac5)if(!_0x2a6bc0['has'](_0x324db9))return!0x1;return!0x0;}}class Ct extends _0x1cbbcf{static get['requires'](){return[At];}['afterInit'](){const _0x347974=this['editor'];if(!_0x347974['plugins']['has']('TableEditing'))return;const _0x1c764c=_0x347974['locale'],_0x25e0f0=_0x347974['plugins']['get']('TrackChangesEditing');_0x25e0f0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x25e0f0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x25e0f0['registerBlockAttribute']('headingRows'),_0x25e0f0['registerBlockAttribute']('headingColumns'),_0x25e0f0['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1c764c,'FORMAT_HEADER_ROW')),_0x25e0f0['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1c764c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x11770f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c87e5=this['editor']['plugins']['get']('TableUtils'),_0x49f755=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x3e34b2({showActiveMarker:_0x5723d5=!0x0,setDataAttribute:_0x51e11d=!0x0}={}){return(_0xba6beb,_0x42462c,_0x4d94a6)=>{const {type:_0x3e0827,id:_0x54897c}=_0x11770f['_splitMarkerName'](_0x42462c['markerName']),_0x5de28a=_0x11770f['getSuggestion'](_0x54897c),_0x55fed0=_0x5de28a['data'];if('formatBlock'!=_0x5de28a['type']||!_0x55fed0||'setTableColumnHeader'!=_0x55fed0['commandName'])return;if(_0x42462c['item'])return void _0xba6beb['stop']();if(!_0x4d94a6['consumable']['consume'](_0x42462c['markerRange'],_0xba6beb['name']))return;const _0x26181f=_0x42462c['markerRange']['start']['nodeAfter'],_0x2d554a=_0x42462c['markerRange']['end']['nodeBefore'],_0x2b6223=_0x26181f['parent']['parent'],{column:_0x2aed55}=_0x4c87e5['getCellLocation'](_0x26181f),{column:_0x2ef775}=_0x4c87e5['getCellLocation'](_0x2d554a);for(let _0x579185=_0x2aed55;_0x579185<=_0x2ef775;_0x579185++){const _0x13c296=_0x4c87e5['createTableWalker'](_0x2b6223,{'column':_0x579185,'includeAllSlots':!0x1});for(const _0x18e2d7 of _0x13c296){const _0x2e9fed=_0x18e2d7['cell'],_0x1d59ca=_0x4d94a6['mapper']['toViewElement'](_0x2e9fed);_0x4d94a6['writer']['addClass']('ck-suggestion-marker-'+_0x3e0827,_0x1d59ca),_0x51e11d&&_0x4d94a6['writer']['setAttribute']('data-suggestion',_0x54897c,_0x1d59ca),_0x4d94a6['mapper']['bindElementToMarker'](_0x1d59ca,_0x42462c['markerName']),_0x5723d5&&(_0x11770f['activeMarkers']['includes'](_0x42462c['markerName'])?_0x4d94a6['writer']['addClass']('ck-suggestion-marker--active',_0x1d59ca):_0x4d94a6['writer']['removeClass']('ck-suggestion-marker--active',_0x1d59ca));}}};}_0x11770f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x49f755),_0x11770f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x49f755),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3e34b2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4e1b30,_0x1d78f1,_0x29ca52)=>{_0x29ca52['options']['showSuggestionHighlights']&&_0x3e34b2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4e1b30,_0x1d78f1,_0x29ca52);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x21c1fb,_0x166058,_0x5491fb)=>{const {type:_0x3a277a,id:_0x2a8fb0}=_0x11770f['_splitMarkerName'](_0x166058['markerName']),_0x4fc403=_0x11770f['getSuggestion'](_0x2a8fb0),_0x57a47c=_0x4fc403['data'];if('formatBlock'!=_0x4fc403['type']||!_0x57a47c||'setTableColumnHeader'!=_0x57a47c['commandName'])return;const _0x4c911e=_0x5491fb['mapper']['markerNameToElements'](_0x166058['markerName']);if(_0x4c911e){for(const _0x1aae3a of _0x4c911e)_0x5491fb['writer']['removeClass']('ck-suggestion-marker-'+_0x3a277a,_0x1aae3a),_0x5491fb['writer']['removeClass']('ck-suggestion-marker--active',_0x1aae3a),_0x5491fb['writer']['removeAttribute']('data-suggestion',_0x1aae3a),_0x5491fb['mapper']['unbindElementFromMarkerName'](_0x1aae3a,_0x166058['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbc103c=this['editor'],_0x50a986=_0xbc103c['locale'];function _0x498514(_0xa9b262){return{'type':'format','content':o(_0x50a986,'*Format:*\x20%0',_0xa9b262)};}_0xbc103c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e507e=>{if('formatBlock'!=_0x4e507e['type'])return;const {data:_0x390104}=_0x4e507e;if(_0x390104){if('setTableRowHeader'==_0x390104['commandName']){const _0x7fa39a=_0x390104['commandParams'][0x0]['forceValue'];return _0x498514(o(_0x50a986,_0x7fa39a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x390104['commandName']){const _0x2b285d=_0x390104['commandParams'][0x0]['forceValue'];return _0x498514(o(_0x50a986,_0x2b285d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x1cbbcf{['afterInit'](){const _0x2d5706=this['editor'],_0x12da82=_0x2d5706['locale'],_0x59b7f8=_0x2d5706['plugins']['get']('TrackChangesEditing');function _0x14d755(_0x48962b){return{'type':'format','content':''+o(_0x12da82,'*Set\x20table\x20type:*\x20%0',_0x48962b)};}_0x2d5706['plugins']['has']('TableLayout')&&(_0x59b7f8['enableCommand']('insertTableLayout'),_0x59b7f8['enableDefaultAttributesIntegration']('tableType'),_0x59b7f8['registerBlockAttribute']('tableType'),_0x59b7f8['descriptionFactory']['registerElementLabel'](_0x31dd30=>_0x31dd30['is']('element','table')&&'layout'===_0x31dd30['getAttribute']('tableType'),_0x5441bd=>o(_0x12da82,'ELEMENT_LAYOUT_TABLE',_0x5441bd)),_0x59b7f8['descriptionFactory']['registerDescriptionCallback'](_0x47b588=>{const {data:_0x17de49}=_0x47b588;if(_0x17de49&&'tableType'==_0x17de49['key'])switch(_0x17de49['newValue']){case'layout':return _0x14d755(o(_0x12da82,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x14d755(o(_0x12da82,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x1e3d29=>[_0x1e3d29,null]));class Nt extends _0x1cbbcf{static get['requires'](){return[At];}['afterInit'](){const _0x2e420c=this['editor'];if(!_0x2e420c['plugins']['has']('TableClipboard'))return;const _0x38cfdd=_0x2e420c['plugins']['get']('TrackChangesEditing'),_0x57b166=_0x2e420c['plugins']['get']('TableUtils'),_0x24821e=_0x2e420c['plugins']['get'](At),_0x11762b=_0x2e420c['plugins']['get']('TableClipboard'),_0x539243=_0x2e420c['plugins']['get']('TableSelection'),_0x4f4d14=_0x2e420c['plugins']['get'](_0x33b343);_0x24821e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2e420c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2e420c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x40cad3=null,_0x204bff=!0x1;_0x4f4d14['on']('contentInsertion',(_0x53fa40,_0x196506)=>{_0x204bff='paste'===_0x196506['method'];}),_0x2e420c['model']['on']('insertContent',(_0x48559a,_0x391c6c)=>{if(!_0x204bff&&null===_0x539243['getSelectedTableCells']())return;const [_0xc5f6c6,_0x3be5c9]=_0x391c6c,_0x1a16b1=_0x391c6c[_0x391c6c['length']-0x1];_0x1a16b1&&_0x1a16b1['forceDefaultExecution']||_0x38cfdd['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x467c6d,_0x468ebd,_0x4ba363,_0x395a30,_0x1fee44){if(_0x468ebd&&!_0x468ebd['is']('documentSelection'))return!0x1;const _0x405c83=_0x1fee44['getTableIfOnlyTableInContent'](_0x467c6d,_0x4ba363);if(!_0x405c83||!Ue(_0x405c83,void 0x0,_0x395a30))return!0x1;const _0x24e466=_0x395a30['getSelectionAffectedTableCells'](_0x4ba363['document']['selection']);if(!_0x24e466['length'])return!0x1;const _0x476f26=_0x24e466[0x0]['findAncestor']('table'),_0x5274f8=_0x395a30['getRowIndexes'](_0x24e466),_0x30c6ec=_0x395a30['getColumnIndexes'](_0x24e466),_0x3da327={'startRow':_0x5274f8['first'],'endRow':_0x5274f8['last'],'startColumn':_0x30c6ec['first'],'endColumn':_0x30c6ec['last']};return 0x1==_0x24e466['length']&&(_0x3da327['endRow']+=_0x395a30['getRows'](_0x405c83)-0x1,_0x3da327['endColumn']+=_0x395a30['getColumns'](_0x405c83)-0x1),Ue(_0x476f26,_0x3da327,_0x395a30);}(_0xc5f6c6,_0x3be5c9,_0x2e420c['model'],_0x57b166,_0x11762b)&&(_0x48559a['stop'](),_0x40cad3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2e420c['model']['change'](()=>{_0x2e420c['model']['insertContent'](_0x391c6c[0x0],_0x391c6c[0x1],_0x391c6c[0x2],{'forceDefaultExecution':!0x0});const _0x559410=_0x4250ae(),{rowInsertionRanges:_0x36ef3a,columnInsertionRanges:_0x5c0a97,insertionRanges:_0x4ae1f8,deletionRanges:_0x30038d,cells:_0x7c01d1}=_0x40cad3;_0x36ef3a['length']&&_0x38cfdd['markMultiRangeInsertion'](_0x36ef3a,'tablePasteRow',{'tablePasteChainId':_0x559410}),_0x5c0a97['length']&&_0x38cfdd['markMultiRangeInsertion'](_0x5c0a97,'tablePasteColumn',{'tablePasteChainId':_0x559410}),_0x4ae1f8['length']&&(_0x38cfdd['markMultiRangeInsertion'](_0x4ae1f8,'tablePaste',{'tablePasteChainId':_0x559410,'skipNestingCheck':!0x0}),_0x4ae1f8['forEach'](_0x5ed81a=>_0x5ed81a['detach']?.())),_0x30038d['length']&&(_0x38cfdd['markMultiRangeDeletion'](_0x30038d,'tablePaste',{'tablePasteChainId':_0x559410,'skipNestingCheck':!0x0}),_0x30038d['forEach'](_0x7cc0=>_0x7cc0['detach']?.()));const _0x24b73a=_0x38cfdd['markMultiRangeBlockFormat'](_0x7c01d1['map'](({element:_0x156caa})=>_0x156caa),{'formatGroupId':_0x4250ae()},[],'tablePasteCell',{'tablePasteChainId':_0x559410});if(_0x24b73a){const _0x3e7553=_0x24b73a['getMarkers'](),_0x39f3d3=[];for(const {element:_0x5c8cbe,attributes:_0x10fef5}of _0x7c01d1){if(!_0x10fef5)continue;const _0x2879e2=_0x2e420c['model']['createRangeOn'](_0x5c8cbe),_0x111a4d=_0x3e7553['find'](_0x1a4d27=>_0x1a4d27['getRange']()['isEqual'](_0x2879e2));_0x111a4d&&_0x39f3d3['push']([_0x111a4d['name'],_0x10fef5]);}_0x39f3d3['length']&&_0x24b73a['setAttribute']('markerAttributes',Object['fromEntries'](_0x39f3d3));}_0x40cad3=null;}));},{'priority':_0x397d7f['high']+0xa}),_0x4f4d14['on']('contentInsertion',()=>{_0x204bff=!0x1;},{'priority':'lowest'}),_0x2e420c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x553539,_0x384223)=>{const [_0x50ebbc,_0x13585a,,_0x696274]=_0x384223;if(!_0x40cad3)return;_0x553539['stop']();const _0x4fb27b=_0x50ebbc['cell'],_0xa3dacb=_0x13585a,_0x455408=Oe(_0x4fb27b),_0x3943d2=Oe(_0xa3dacb);_0x553539['return']=_0x4fb27b;let _0x51fe87=null,_0x16124b=null;if(_0x3943d2||_0x455408){if(_0x455408&&!_0x3943d2){_0x696274['remove'](_0x4fb27b['getChild'](0x0));for(const _0x196652 of Array['from'](_0xa3dacb['getChildren']()))_0x696274['insert'](_0x196652,_0x4fb27b,'end');const _0x37b342=_0x40cad3['rowInsertionIndexes']['includes'](_0x50ebbc['row']),_0x18cdca=_0x40cad3['columnInsertionIndexes']['includes'](_0x50ebbc['column']);_0x37b342||_0x18cdca||(_0x51fe87=_0x1a9bf4['fromRange'](_0x696274['createRangeIn'](_0x4fb27b)));}else _0x3943d2&&!_0x455408&&(_0x16124b=_0x696274['createRangeIn'](_0x4fb27b));}else{const _0xa8a4e2=_0x696274['createElement']('tableCellSuggestion'),_0x260b06=_0x696274['createElement']('tableCellSuggestion');_0x696274['wrap'](_0x696274['createRangeIn'](_0x4fb27b),_0x260b06),_0x696274['insert'](_0xa8a4e2,_0x4fb27b,0x0);for(const _0x3b45a6 of Array['from'](_0xa3dacb['getChildren']()))_0x696274['insert'](_0x3b45a6,_0xa8a4e2,'end');_0x51fe87=_0x1a9bf4['fromRange'](_0x696274['createRangeOn'](_0xa8a4e2)),_0x16124b=_0x1a9bf4['fromRange'](_0x696274['createRangeOn'](_0x260b06));}const _0x9f71d5=Array['from'](_0xa3dacb['getAttributes']())['filter'](([_0xb4a51c])=>Be['includes'](_0xb4a51c));_0x40cad3['cells']['push']({'element':_0x4fb27b,'attributes':_0x9f71d5['length']?Object['fromEntries'](_0x9f71d5):null}),_0x51fe87&&_0x40cad3['insertionRanges']['push'](_0x51fe87),_0x16124b&&_0x40cad3['deletionRanges']['push'](_0x16124b);},{'priority':'high'}),_0x57b166['on']('insertColumns',(_0x1129d9,_0x12e8f8)=>{const [_0x9cd2e9,_0x53d08d={}]=_0x12e8f8;if(!_0x40cad3)return;const _0x32f9ee=_0x53d08d['at']||0x0,_0x3ec772=_0x53d08d['columns']||0x1;_0x40cad3['columnInsertionIndexes']=new Array(_0x3ec772)['fill'](_0x32f9ee)['map']((_0x2896ac,_0x5aba8d)=>_0x2896ac+_0x5aba8d);for(const {cell:_0x5d803d}of _0x57b166['createTableWalker'](_0x9cd2e9,{'startColumn':_0x32f9ee,'endColumn':_0x32f9ee+_0x3ec772-0x1}))_0x40cad3['columnInsertionRanges']['push'](_0x2e420c['model']['createRangeOn'](_0x5d803d));},{'priority':'low'}),_0x57b166['on']('insertRows',(_0x58a2ad,_0x108a7d)=>{const [_0x1a04cd,_0x39b2a6={}]=_0x108a7d;if(!_0x40cad3)return;const _0x1654f4=_0x39b2a6['at']||0x0,_0x346138=_0x39b2a6['rows']||0x1;_0x40cad3['rowInsertionIndexes']=new Array(_0x346138)['fill'](_0x1654f4)['map']((_0x16176e,_0x33c689)=>_0x16176e+_0x33c689);for(const {cell:_0x43e007}of _0x57b166['createTableWalker'](_0x1a04cd,{'startRow':_0x1654f4,'endRow':_0x1654f4+_0x346138-0x1}))_0x40cad3['rowInsertionRanges']['push'](_0x2e420c['model']['createRangeOn'](_0x43e007));},{'priority':'low'}),_0x38cfdd['descriptionFactory']['registerDescriptionCallback'](_0x119b8a=>{if(_0x119b8a['subType']&&_0x119b8a['subType']['startsWith']('tablePaste'))return _0x119b8a['previous']?{}:{'type':'insertion','content':o(_0x2e420c['locale'],'*Replace\x20table\x20cells*')};});const _0x45dfce=()=>!0x1;for(const _0x21f872 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x38cfdd['_suggestionFactory']['registerCustomCallback']('insertion',_0x21f872,'join',_0x45dfce),_0x38cfdd['_suggestionFactory']['registerCustomCallback']('deletion',_0x21f872,'join',_0x45dfce),_0x38cfdd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21f872,'join',_0x45dfce);_0x38cfdd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x45dfce),_0x38cfdd['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2aa309,_0x550aa1,_0x3d5a7e)=>{const _0x423108=_0x2aa309['map'](_0xa04cab=>_0xa04cab['getContainedElement']())['filter'](_0x40518b=>_0x40518b),_0x1fd29e=new Map(_0x423108['map'](_0x355ed8=>[_0x355ed8,null]));if(_0x40cad3){for(const {element:_0x79f66b,attributes:_0x7b959b}of _0x40cad3['cells'])_0x7b959b&&_0x1fd29e['set'](_0x79f66b,_0x7b959b);}else{if(_0x3d5a7e&&_0x3d5a7e['markerAttributes'])for(const [_0x4d0c51,_0x451ebd]of Object['entries'](_0x3d5a7e['markerAttributes'])){const _0x1f0024=_0x2e420c['model']['markers']['get'](_0x4d0c51),_0x52134c=_0x1f0024?_0x1f0024['getRange']()['getContainedElement']():null;_0x52134c&&_0x1fd29e['set'](_0x52134c,_0x451ebd);}}_0x2e420c['model']['change'](_0x5d095c=>{for(const [_0x35bce3,_0x29e700]of _0x1fd29e)_0x5d095c['setAttributes']({...xe,..._0x29e700},_0x35bce3);});});const _0x2316aa=(_0x57008f,_0x5ab448)=>{_0x38cfdd['_suggestionFactory']['registerCustomCallback'](_0x57008f,'tablePaste',_0x5ab448,(_0x42e517,_0x43ca64,_0x1fc804)=>{_0x2e420c['model']['change'](_0x55552e=>{const _0x2df538=[];for(const _0x548c79 of _0x42e517){const _0x199de6=_0x548c79['start']['nodeAfter'];_0x199de6['is']('element','tableCellSuggestion')&&_0x2df538['push'](_0x199de6);}_0x38cfdd['_suggestionFactory']['getSuggestionCallback'](_0x57008f,null,_0x5ab448)(_0x42e517,_0x43ca64,_0x1fc804);for(const _0x39fad9 of _0x2df538)'$graveyard'!=_0x39fad9['root']['rootName']&&_0x55552e['unwrap'](_0x39fad9);});});};_0x2316aa('insertion','accept'),_0x2316aa('insertion','discard'),_0x2316aa('deletion','accept'),_0x2316aa('deletion','discard'),_0x38cfdd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f133a=>{const _0x236a51=_0x4f133a['map'](_0x5e30af=>_0x5e30af['getContainedElement']()),_0x29d535=_0x236a51[0x0]['findAncestor']('table'),{minRow:_0x21e723,maxRow:_0x402739}=_0x24821e['_getCoordsForCells'](_0x236a51);_0x57b166['removeRows'](_0x29d535,{'at':_0x21e723,'rows':_0x402739-_0x21e723+0x1});}),_0x38cfdd['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x223787=>{const _0x111f6e=_0x223787['map'](_0x9937b6=>_0x9937b6['getContainedElement']()),_0x203e31=_0x111f6e[0x0]['findAncestor']('table'),{minColumn:_0x26ea54,maxColumn:_0x3bb276}=_0x24821e['_getCoordsForCells'](_0x111f6e);_0x57b166['removeColumns'](_0x203e31,{'at':_0x26ea54,'columns':_0x3bb276-_0x26ea54+0x1});});const _0x58b2f7=(_0x3856fd,_0x1d5b66)=>{if(!_0x1d5b66['subType']||!_0x1d5b66['subType']['startsWith']('tablePaste'))return;const _0xb652c9=_0x1d5b66['attributes']['tablePasteChainId'],_0x3127c7=_0x38cfdd['getSuggestions']()['filter'](_0x3957fa=>_0x3957fa['isInContent']&&_0x3957fa['attributes']&&_0x3957fa['attributes']['tablePasteChainId']==_0xb652c9);_0x3127c7['length']&&_0x1d5b66['getAllAdjacentSuggestions']()['length']!=_0x3127c7['length']&&_0x3127c7['reduce']((_0x4b42c2,_0x54b011)=>(_0x4b42c2['next']=_0x54b011,_0x54b011['previous']=_0x4b42c2,_0x54b011));};function _0x2210cb(_0x17729d,_0x2f0ae7=!0x0){const {id:_0x316cc3,authorId:_0x4f5906}=_0x38cfdd['_splitMarkerName'](_0x17729d['markerName']),_0x39d751=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5ca716=_0x38cfdd['activeMarkers']['includes'](_0x17729d['markerName']);return _0x5ca716&&_0x39d751['push']('ck-suggestion-marker--active'),{'classes':_0x39d751,'attributes':{'data-suggestion':_0x316cc3,'data-author-id':_0x4f5906},'priority':_0x5ca716&&_0x2f0ae7?0xbc2:0xbb8};}_0x38cfdd['on']('suggestionLoaded',_0x58b2f7,{'priority':'high'}),_0x38cfdd['on']('suggestionUnloaded',_0x58b2f7,{'priority':'high'}),_0x2e420c['model']['document']['registerPostFixer'](()=>{let _0x20e3e7=!0x1;const _0x35ed3e=Array['from'](_0x2e420c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x390ae9,data:_0x3c72d2}of _0x35ed3e){const {group:_0x6ed336,type:_0x172f01,id:_0x5970b2}=_0x38cfdd['_splitMarkerName'](_0x390ae9);if('suggestion'!=_0x6ed336||'deletion'!=_0x172f01||_0x3c72d2['oldRange'])continue;if(!_0x38cfdd['hasSuggestion'](_0x5970b2))continue;const _0x4e5c72=_0x38cfdd['getSuggestion'](_0x5970b2)['getRanges'](),_0x28bde3=_0x2e420c['plugins']['get']('Users')['me'];for(const _0x51af2f of _0x38cfdd['getSuggestions']()){if(!_0x51af2f['isInContent']||_0x51af2f['author']!=_0x28bde3)continue;if('formatBlock'!=_0x51af2f['type']||'tablePasteCell'!=_0x51af2f['subType'])continue;if(_0x51af2f['getRanges']()['every'](_0x4523bd=>_0x4e5c72['some'](_0xb212b7=>_0xb212b7['containsRange'](_0x4523bd,!0x0)))){for(const _0x46ecb0 of _0x51af2f['getAllAdjacentSuggestions']())_0x46ecb0['isInContent']&&(_0x46ecb0['discard'](),_0x20e3e7=!0x0);}}}return _0x20e3e7;}),_0x2e420c['model']['document']['registerPostFixer'](_0xe9bf1f=>{const _0x5de30d=_0x2e420c['commands']['get']('redo');if(!_0x5de30d||!_0x5de30d['_createdBatches']['has'](_0xe9bf1f['batch']))return!0x1;let _0x5879c8=!0x1;const _0x111be3=_0x2e420c['plugins']['get']('Users')['me'],_0x3659f8=_0x2e420c['model']['document']['differ']['getChanges'](),_0x385aa4=Array['from'](_0x2e420c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xaeda50,data:_0x4ccfea})=>{const {group:_0x16d904,subType:_0x23b974,authorId:_0xf7fb5f}=_0x38cfdd['_splitMarkerName'](_0xaeda50);return'suggestion'==_0x16d904&&'tablePaste'==_0x23b974&&_0xf7fb5f==_0x111be3['id']&&!_0x4ccfea['oldRange'];});for(const _0x232871 of _0x3659f8){if('insert'!=_0x232871['type']||'tableCellSuggestion'!=_0x232871['name']||0x1!=_0x232871['length'])continue;const _0x142613=_0xe9bf1f['createRange'](_0x232871['position'],_0x232871['position']['getShiftedBy'](0x1));if(!_0x385aa4['find'](({data:_0x51884a})=>_0x51884a['newRange']['isEqual'](_0x142613))){for(const {name:_0xa7c499,data:_0x2f8332}of _0x385aa4)if(_0x142613['containsRange'](_0x2f8332['newRange'])){_0xe9bf1f['updateMarker'](_0xa7c499,{'range':_0x142613}),_0x5879c8=!0x0;break;}}}return _0x5879c8;}),_0x2e420c['model']['document']['registerPostFixer'](_0x2401d8=>{let _0x5b97aa=!0x1;const _0x4fc063=_0x2e420c['plugins']['get']('Users')['me'],_0x476373=_0x38cfdd['getSuggestions']()['filter'](_0x1026af=>_0x1026af['isInContent']&&_0x1026af['author']==_0x4fc063),_0xca59a8=new Set(),_0x208feb=new Set();for(const _0x450581 of _0x476373)if('tablePaste'==_0x450581['subType'])for(const _0x5c8f4c of _0x450581['getMarkers']()){const _0x3c5d24=_0x5c8f4c['getRange']()['getContainedElement']();if(_0x3c5d24){if(_0x3c5d24['is']('element','tableCellSuggestion')&&Oe(_0x3c5d24)){_0x450581['removeMarker'](_0x5c8f4c['name']),_0xca59a8['add'](_0x3c5d24),_0x5b97aa=!0x0;const _0x3e8961=_0x3c5d24['nextSibling'],_0x689b94=_0x3c5d24['previousSibling'],_0x312bf9=_0x3e8961&&_0x3e8961['is']('element','tableCellSuggestion'),_0x1e27d3=_0x689b94&&_0x689b94['is']('element','tableCellSuggestion');_0x312bf9&&!_0xca59a8['has'](_0x3e8961)&&_0x208feb['add'](_0x3e8961),_0x1e27d3&&!_0xca59a8['has'](_0x689b94)&&_0x208feb['add'](_0x689b94);}else _0x3c5d24['is']('element','paragraph')&&_0x3c5d24['isEmpty']&&(_0x450581['removeMarker'](_0x5c8f4c['name']),_0x5b97aa=!0x0);}}else{if('tablePasteCell'==_0x450581['subType']){if(!_0x450581['attributes']||!_0x450581['attributes']['tablePasteChainId'])continue;const _0x313945=_0x450581['attributes']['markerAttributes'];if(_0x313945&&Object['keys'](_0x313945)['length'])continue;const _0x4d53a4=_0x450581['attributes']['tablePasteChainId'];let _0x30bb66=!0x0,_0x480c36=!0x0;for(const _0x582a00 of _0x476373)if(_0x582a00['subType']&&_0x582a00['subType']['startsWith']('tablePaste')){if(!_0x582a00['attributes']['tablePasteChainId']){_0x480c36=!0x1;break;}if(_0x582a00['id']!=_0x450581['id']&&_0x582a00['attributes']['tablePasteChainId']==_0x4d53a4){_0x30bb66=!0x1;break;}}_0x480c36&&_0x30bb66&&(_0x450581['removeMarkers'](),_0x5b97aa=!0x0);}}for(const _0x223da4 of _0xca59a8)_0x2401d8['remove'](_0x223da4);for(const _0x539b04 of _0x208feb)_0x2401d8['unwrap'](_0x539b04);return _0x5b97aa;}),_0x2e420c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4ac42f=>_0x2210cb(_0x4ac42f),'converterPriority':'high'}),_0x2e420c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xfeb46f,_0x44a238)=>_0x44a238['options']['showSuggestionHighlights']?_0x2210cb(_0xfeb46f,!0x1):null,'converterPriority':'high'});const _0x5a1d3f=_0x2e420c['editing']['view'];this['listenTo'](_0x5a1d3f['document'],'clipboardOutput',(_0x743385,_0x358fec)=>{const _0x837224=[];for(const _0x3d3c06 of _0x5a1d3f['createRangeIn'](_0x358fec['content'])['getItems']())_0x3d3c06['is']('element','suggestion-td')&&_0x837224['push'](_0x3d3c06);_0x5a1d3f['change'](_0x1138fc=>{for(const _0x4efec5 of _0x837224)_0x1138fc['move'](_0x1138fc['createRangeIn'](_0x4efec5),_0x1138fc['createPositionBefore'](_0x4efec5)),_0x1138fc['remove'](_0x4efec5);});});}}function Oe(_0x1d5fb5){if(_0x1d5fb5['isEmpty'])return!0x0;const _0x228298=_0x1d5fb5['getChild'](0x0);return _0x228298['is']('element','paragraph')&&_0x228298['isEmpty'];}function Ue(_0x20d7d8,_0x19f6c9={},_0x33d55b){for(const {isAnchor:_0x1f458d,cellHeight:_0x58d9e3,cellWidth:_0x1971d5}of _0x33d55b['createTableWalker'](_0x20d7d8,{'includeAllSlots':!0x0,..._0x19f6c9}))if(!_0x1f458d||0x1!=_0x58d9e3||0x1!=_0x1971d5)return!0x1;return!0x0;}class Dt extends _0x1cbbcf{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x21cded=this['editor']['plugins']['get']('TrackChangesEditing');_0x21cded['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x21cded['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x21cded['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x21cded['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x21cded['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x21cded['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3f726b,_0x19d16d){const _0x48db31=this['editor']['plugins']['get']('TrackChangesEditing'),_0x443c90=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x35ac7b=_0x19d16d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1d9ab3=_0x443c90['getColumnGroupElement'](_0x35ac7b);let _0x106c54=_0x1d9ab3?_0x443c90['getTableColumnsWidths'](_0x1d9ab3):null,_0x4e6baa=_0x35ac7b['getAttribute']('tableWidth')||null;const _0x94d085=_0x19d16d['tableWidth']||_0x4e6baa,_0x173f1b=_0x19d16d['columnWidths']||_0x106c54,_0x2ee13b=this['editor']['plugins']['get']('Users')['me'];for(const _0x13f5f6 of _0x48db31['getSuggestions']()){const _0x55d342=_0x13f5f6['getContainedElement']();if('resizeTable'===_0x13f5f6['subType']&&_0x55d342===_0x35ac7b){_0x13f5f6['author']!==_0x2ee13b&&_0x13f5f6['discard']();const _0xa051f6=_0x13f5f6['data']['commandParams'];_0x4e6baa=_0xa051f6[0x0]['tableWidth'],_0x106c54=_0xa051f6[0x0]['columnWidths'];break;}}_0x3f726b({'table':_0x35ac7b,'tableWidth':_0x94d085,'columnWidths':_0x173f1b}),_0x48db31['markBlockFormat'](_0x35ac7b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4e6baa,'columnWidths':_0x106c54}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x46f300){if('formatBlock'!=_0x46f300['type']&&'formatInline'!=_0x46f300['type'])return;const {data:_0x2c9607}=_0x46f300;if(_0x2c9607&&'resizeTable'===_0x2c9607['formatGroupId']){const _0x15651d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x15651d)};}}}class Mt extends _0x1cbbcf{['afterInit'](){const _0x3d0c2f=this['editor'];_0x3d0c2f['plugins']['has']('Template')&&_0x3d0c2f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x1cbbcf{['afterInit'](){const _0x26a2b2=this['editor'];if(!_0x26a2b2['commands']['get']('insertTableOfContents'))return;_0x26a2b2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xd31ab=_0x26a2b2['plugins']['get']('TrackChangesEditing'),_0x237a52=_0x26a2b2['locale'];_0xd31ab['descriptionFactory']['registerElementLabel']('tableOfContents',_0x53791a=>o(_0x237a52,'ELEMENT_TABLE_OF_CONTENTS',_0x53791a));}}class Bt extends _0x1cbbcf{['afterInit'](){const _0x2f7182=this['editor'];if(!_0x2f7182['plugins']['has']('Title'))return;const _0x18db73=_0x2f7182['plugins']['get']('TrackChangesEditing');_0x18db73['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2f7182['locale'],'ELEMENT_TITLE')),_0x2f7182['model']['document']['registerPostFixer'](_0x258907=>{let _0x115acf=!0x1;const _0x210680=Array['from'](_0x2f7182['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12c785,data:_0x475caa}of _0x210680){const {group:_0x424c5d}=_0x18db73['_splitMarkerName'](_0x12c785);if('suggestion'!==_0x424c5d||!_0x475caa['newRange'])continue;const _0x136d0b=_0x475caa['newRange'],_0x46ae93=_0x136d0b['end']['nodeBefore'];if(!_0x46ae93||!_0x46ae93['is']('element','title-content'))continue;if(!_0x136d0b['start']['isTouching'](_0x136d0b['end']))continue;const _0x2e4745=_0x2f7182['model']['schema']['getNearestSelectionRange'](_0x136d0b['end'],'forward');if(_0x2e4745&&_0x2e4745['isCollapsed']){const _0x59371b=_0x258907['createRange'](_0x136d0b['start'],_0x2e4745['start']);_0x59371b['isEqual'](_0x136d0b)||(_0x258907['updateMarker'](_0x12c785,{'range':_0x59371b}),_0x115acf=!0x0);}_0x115acf||(_0x258907['removeMarker'](_0x12c785),_0x115acf=!0x0);}return _0x115acf;});}}class Tt extends _0x1cbbcf{['afterInit'](){const _0x2b5797=this['editor'],_0x4a9333=_0x2b5797['plugins']['get']('TrackChangesEditing');_0x2b5797['plugins']['has']('Uploadcare')&&(_0x4a9333['enableCommand']('uploadcare'),_0x2b5797['plugins']['has']('UploadcareImageEdit')&&(_0x4a9333['enableCommand']('uploadcareImageEdit'),_0x4a9333['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4a9333['registerBlockAttribute']('uploadcareImageId'),_0x4a9333['descriptionFactory']['registerDescriptionCallback'](_0x40c85e=>{if('attribute'!=_0x40c85e['type'])return;const {data:_0x115d25}=_0x40c85e;return _0x115d25&&'uploadcareImageId'==_0x115d25['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x1cbbcf{['afterInit'](){const _0x3f9699=this['editor'],_0x3caa66=_0x3f9699['plugins']['get']('TrackChangesEditing');_0x3f9699['plugins']['has']('UndoEditing')&&(_0x3caa66['enableCommand']('undo'),_0x3caa66['enableCommand']('redo'));}}class Ot extends _0x1cbbcf{static get['requires'](){return[At];}['afterInit'](){const _0x2bd2a4=this['editor'];if(!_0x2bd2a4['plugins']['has']('TableCaptionEditing'))return;_0x2bd2a4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x1cbbcf{['tableProperties'];['tableCellProperties'];constructor(_0x1a73f3){super(_0x1a73f3),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 _0x511a48=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x19041d of this['tableProperties'])_0x511a48['enableCommand'](_0x19041d,(_0x4c99d5,_0x3836be)=>{const _0x4f5077=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x19041d,[_0x4f5077],this['tableProperties'],'tableProperties',_0x4c99d5,_0x3836be);});_0x511a48['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x511a48['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x511a48['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x27f63a,_0x4ff1c)=>this['handleDiscardAction'](this['tableProperties'],_0x27f63a,_0x4ff1c)),_0x511a48['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xc76cbd of this['tableCellProperties'])_0x511a48['enableCommand'](_0xc76cbd,(_0x4b5254,_0x399dc4)=>{const _0x340744=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xc76cbd,_0x340744,this['tableCellProperties'],'tableCellProperties',_0x4b5254,_0x399dc4);});_0x511a48['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x511a48['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x511a48['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2050f3,_0x4205f0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2050f3,_0x4205f0)),_0x511a48['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x511a48['descriptionFactory']['registerDescriptionCallback'](_0x124320=>this['handleSuggestionDescription'](_0x124320)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3ce006,_0x1f286e,_0x493501,_0x34514e,_0x337969,_0x3c5238){const _0x3139de=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3c5238['batch'],()=>{for(const _0x1725cd of _0x1f286e){if(this['_getSuggestion'](_0x1725cd,_0x34514e))_0x337969(_0x3c5238);else{const _0x2138dc={};for(const _0x142527 of _0x493501){const _0x22b5de=_0x1725cd['getAttribute'](_0x142527);void 0x0!==_0x22b5de&&(_0x2138dc[_0x142527]=_0x22b5de);}_0x337969(_0x3c5238),_0x3139de['markBlockFormat'](_0x1725cd,{'commandParams':[_0x2138dc]},[],_0x34514e);}}});}['handleDiscardAction'](_0x56e2db,_0x336157,_0x4709bd){const _0x5308b9=_0x336157[0x0]['start']['nodeAfter'],_0x5d44e8=_0x4709bd['commandParams'][0x0];this['editor']['model']['change'](_0x4d1460=>{for(const _0x23fb8d of _0x56e2db)void 0x0!==_0x5d44e8[_0x23fb8d]?_0x4d1460['setAttribute'](_0x23fb8d,_0x5d44e8[_0x23fb8d],_0x5308b9):_0x4d1460['removeAttribute'](_0x23fb8d,_0x5308b9);});}['handleSuggestionDescription'](_0x52c072){if(_0x52c072['data'])switch(_0x52c072['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'](_0x4ace12,_0x4d3870){const _0x50bcda=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x41cd01 of _0x50bcda['getSuggestions']({'skipNotAttached':!0x0})){const _0xe41f7e=_0x41cd01['getContainedElement']();if(_0x41cd01['subType']===_0x4d3870&&_0xe41f7e===_0x4ace12)return _0x41cd01;}return null;}['_registerTablePropertiesAttributes'](){const _0x2ba322=this['editor']['plugins']['get']('TrackChangesEditing'),_0x163905=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1c302c of _0x163905){const _0x1e0573=_0x1c302c['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2ba322['registerBlockAttribute'](_0x1c302c),_0x2ba322['descriptionFactory']['registerAttributeLabel'](_0x1c302c,o(this['editor']['locale'],'FORMAT_'+_0x1e0573));}}}class Rt extends _0x1cbbcf{['afterInit'](){const _0x334002=this['editor'];if(!_0x334002['plugins']['has']('LineHeight'))return;const _0x17ab84=_0x334002['plugins']['get']('TrackChangesEditing'),_0x14487b=_0x334002['locale'];_0x17ab84['enableDefaultAttributesIntegration']('lineHeight'),_0x17ab84['registerBlockAttribute']('lineHeight'),_0x17ab84['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x14487b,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x1cbbcf{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x88c9be,_0x33ee2a,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(_0x56ce9c){super(_0x56ce9c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1be137,_0x21c30b,_0x2d33f4,_0x1e8be4)=>{this['_model']['change'](()=>{for(const _0x37188d of[..._0x1e8be4,..._0x2d33f4])this['_model']['markers']['has'](_0x37188d)&&_0x56ce9c['editing']['reconvertMarker'](_0x37188d);});}),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']=_0x56ce9c['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(),_0x56ce9c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x56ce9c['config']['get']('trackChanges.trackFormatChanges'),_0x56ce9c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x56ce9c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x56ce9c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x52e83c=this['editor'],_0x433159=(_0x4c04d3,_0x2402fe)=>{if('attribute'!=_0x4c04d3)return'ck-suggestion-marker-'+_0x4c04d3;const _0x2c3aee=_0x2402fe['split']('|')[0x0];return this['_isBlockAttribute'](_0x2c3aee)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x52e83c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x45255d=>{const {id:_0x521cd9,authorId:_0x1a45ef,type:_0x3a7c3a,subType:_0x456148}=this['_splitMarkerName'](_0x45255d['markerName']),_0x4321a5=['ck-suggestion-marker',_0x433159(_0x3a7c3a,_0x456148)];let _0x5af71a=0xbb8;return this['activeMarkers']['includes'](_0x45255d['markerName'])&&(_0x4321a5['push']('ck-suggestion-marker--active'),_0x5af71a=0xbc2),'deletion'==_0x3a7c3a&&(_0x5af71a+=0x5),{'classes':_0x4321a5,'attributes':{'data-suggestion':_0x521cd9,'data-author-id':_0x1a45ef},'priority':_0x5af71a};}}),_0x52e83c['conversion']['for']('dataDowncast')['add'](_0x255838=>{_0x255838['on']('addMarker:suggestion',(_0x97d1a7,_0x3dd409,_0x4445da)=>{if(!_0x4445da['options']['showSuggestionHighlights'])return;const _0x459563=_0x3dd409['item'];if(!_0x459563)return;const _0x1c6741=_0x4445da['mapper']['toViewElement'](_0x459563);_0x52e83c['model']['schema']['isObject'](_0x459563)&&_0x1c6741&&!_0x1c6741['getCustomProperty']('widget')&&_0x1c6741['is']('containerElement')&&_0x4a6d34(_0x1c6741,_0x4445da['writer']);},{'priority':'high'});}),_0x52e83c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x411012,_0x58d6f3)=>{if(!_0x58d6f3['options']['showSuggestionHighlights'])return null;const {id:_0x54fad1,authorId:_0x4e58fe,type:_0x3f3cbc,subType:_0x5adbbd}=this['_splitMarkerName'](_0x411012['markerName']);return{'classes':['ck-suggestion-marker',_0x433159(_0x3f3cbc,_0x5adbbd)],'priority':0xbb8,'attributes':{'data-suggestion':_0x54fad1,'data-author-id':_0x4e58fe}};}});const _0x313fc8=({showActiveMarkers:_0x30d9e1=!0x0,isAttributeSuggestion:_0x2ba2ab=!0x1}={})=>(_0x4358b3,_0x5ae4b7,_0x45ee06)=>{if(!_0x5ae4b7['item'])return;const {id:_0x3b9f6a,authorId:_0x13bdbd}=this['_splitMarkerName'](_0x5ae4b7['markerName']);if(_0x2ba2ab){const _0x1b202c=this['_suggestions']['get'](_0x3b9f6a),_0x13837b=this['_getAttributeKey'](_0x1b202c);if(!this['_isBlockAttribute'](_0x13837b))return;}if(_0x5ae4b7['item']['is']('selection'))return void _0x45ee06['consumable']['consume'](_0x5ae4b7['item'],_0x4358b3['name']);const _0x31db81=_0x45ee06['mapper']['toViewElement'](_0x5ae4b7['item']);if(_0x5ae4b7['item']['is']('element')&&_0x52e83c['model']['schema']['isBlock'](_0x5ae4b7['item'])&&!_0x31db81['getCustomProperty']('addHighlight')){_0x45ee06['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x31db81),_0x45ee06['writer']['setAttribute']('data-suggestion',_0x3b9f6a,_0x31db81),_0x45ee06['writer']['setAttribute']('data-author-id',_0x13bdbd,_0x31db81),_0x45ee06['mapper']['bindElementToMarker'](_0x31db81,_0x5ae4b7['markerName']),_0x30d9e1&&(this['activeMarkers']['includes'](_0x5ae4b7['markerName'])?_0x45ee06['writer']['addClass']('ck-suggestion-marker--active',_0x31db81):_0x45ee06['writer']['removeClass']('ck-suggestion-marker--active',_0x31db81));for(const _0xb49ecf of _0x52e83c['model']['createRangeIn'](_0x5ae4b7['item'])['getItems']())_0x45ee06['consumable']['consume'](_0xb49ecf,_0x4358b3['name']);_0x45ee06['consumable']['consume'](_0x5ae4b7['item'],_0x4358b3['name']);}};_0x52e83c['conversion']['for']('dataDowncast')['add'](_0x54c57c=>{_0x54c57c['on']('addMarker:suggestion:formatBlock',(_0x52d397,_0x585b1e,_0x1a91ca)=>{_0x1a91ca['options']['showSuggestionHighlights']&&_0x313fc8({'showActiveMarkers':!0x1})(_0x52d397,_0x585b1e,_0x1a91ca);},{'priority':'highest'});}),_0x52e83c['conversion']['for']('dataDowncast')['add'](_0x5e0104=>{_0x5e0104['on']('addMarker:suggestion:attribute',(_0x4f2659,_0x76bed9,_0x1c4661)=>{_0x1c4661['options']['showSuggestionHighlights']&&_0x313fc8({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4f2659,_0x76bed9,_0x1c4661);},{'priority':'highest'});}),_0x52e83c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2d2325,_0xbad5b0)=>{if(_0xbad5b0['options']['showSuggestionHighlights']){const {id:_0x1d946a,authorId:_0x42783a}=this['_splitMarkerName'](_0x2d2325);return _0x2d2325['includes'](':split')||_0x2d2325['includes'](':merge')?{'group':'suggestion','name':_0x2d2325['substr'](0xb),'attributes':{'data-suggestion':_0x1d946a,'data-author-id':_0x42783a}}:null;}return{'group':'suggestion','name':_0x2d2325['substr'](0xb)};}}),_0x52e83c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xacb9cf,{writer:_0xd0474e})=>{let _0x2a6a27='suggestion:'+_0xacb9cf['getAttribute']('suggestion-type')+':'+_0xacb9cf['getAttribute']('id');return _0xacb9cf['getAttribute']('marker-count')&&(_0x2a6a27+=':'+_0xacb9cf['getAttribute']('marker-count')),_0xd0474e['createElement']('$marker',{'data-name':_0x2a6a27});}}),_0x52e83c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x52e83c['conversion']['for']('editingDowncast')['add'](_0x467423=>{_0x467423['on']('addMarker:suggestion:formatBlock',_0x313fc8(),{'priority':'high'});}),_0x52e83c['conversion']['for']('editingDowncast')['add'](_0x2d2cb5=>{_0x2d2cb5['on']('addMarker:suggestion:attribute',_0x313fc8({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x52e83c['conversion']['for']('editingDowncast')['add'](_0x4fbcb4=>{_0x4fbcb4['on']('removeMarker:suggestion:formatBlock',(_0x24e9f2,_0x18e403,_0x3c608d)=>{const _0x5e73e8=_0x3c608d['mapper']['markerNameToElements'](_0x18e403['markerName']);if(_0x5e73e8){for(const _0x20eb91 of _0x5e73e8)_0x20eb91['getCustomProperty']('addHighlight')||(_0x3c608d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x20eb91),_0x3c608d['writer']['removeAttribute']('data-suggestion',_0x20eb91),_0x3c608d['writer']['removeAttribute']('data-author-id',_0x20eb91),_0x3c608d['mapper']['unbindElementFromMarkerName'](_0x20eb91,_0x18e403['markerName']));}},{'priority':'high'});}),_0x52e83c['conversion']['for']('editingDowncast')['add'](_0x2adc3a=>{_0x2adc3a['on']('removeMarker:suggestion:attribute',(_0x1f03d9,_0xfd84ed,_0x176b7c)=>{const _0x55874f=_0x176b7c['mapper']['markerNameToElements'](_0xfd84ed['markerName']);if(!_0x55874f)return;const {id:_0x2bb957}=this['_splitMarkerName'](_0xfd84ed['markerName']),_0x5585c6=this['_suggestions']['get'](_0x2bb957),_0xd89f1e=this['_getAttributeKey'](_0x5585c6);if(this['_isBlockAttribute'](_0xd89f1e)){for(const _0x573b88 of _0x55874f)_0x573b88['getCustomProperty']('addHighlight')||(_0x176b7c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x573b88),_0x176b7c['writer']['removeAttribute']('data-suggestion',_0x573b88),_0x176b7c['writer']['removeAttribute']('data-author-id',_0x573b88),_0x176b7c['mapper']['unbindElementFromMarkerName'](_0x573b88,_0xfd84ed['markerName']));}},{'priority':'high'});}),_0x52e83c['model']['document']['registerPostFixer'](_0x169ce7=>{let _0x2b93bd=!0x1;const _0x1ca85d=Array['from'](_0x52e83c['model']['document']['differ']['getChangedMarkers']()),_0x1148c4=new Set();for(const {name:_0x21d7bf,data:_0x57fe98}of _0x1ca85d){const {group:_0x56e03c,type:_0x1d78df,subType:_0x1ac56b,id:_0x2e9182}=this['_splitMarkerName'](_0x21d7bf);if('suggestion'!==_0x56e03c)continue;const _0x49475a=this['_suggestions']['get'](_0x2e9182);if(null!=_0x57fe98['newRange']){'formatInline'==_0x1d78df&&(_0x2b93bd=_0x2b93bd||Gt(_0x57fe98['newRange'],_0x21d7bf,_0x169ce7,_0x52e83c['model']['schema']));const _0x479004='attribute'==_0x1d78df&&this['_isBlockAttribute'](_0x1ac56b['split']('|')[0x0]);if(_0x57fe98['newRange']['isCollapsed']||'$graveyard'==_0x57fe98['newRange']['root']['rootName']||'formatBlock'==_0x1d78df&&!Jt(_0x57fe98['newRange'])||_0x479004&&!Jt(_0x57fe98['newRange'])||'deletion'==_0x1d78df&&!Kt(_0x57fe98['newRange']))_0x169ce7['removeMarker'](_0x21d7bf),_0x2b93bd=!0x0;else{if(!_0x49475a||!_0x49475a['isInContent'])continue;if(_0x57fe98['newRange']&&_0x57fe98['oldRange']&&_0x57fe98['newRange']['isEqual'](_0x57fe98['oldRange']))continue;_0x1148c4['add'](_0x49475a);}}}return _0x1148c4['size']>0x0&&(_0x2b93bd=!!this['_joinWithAdjacentSuggestions'](_0x1148c4)||_0x2b93bd),_0x2b93bd;}),_0x52e83c['model']['document']['registerPostFixer'](_0x561725=>{let _0x1651a4=!0x1;for(const _0x566fe8 of _0x52e83c['model']['document']['differ']['getChanges']())if('insert'==_0x566fe8['type'])for(const _0x337761 of this['_suggestions']['values']()){if(_0x337761['isMultiRange']||!_0x337761['isInContent'])continue;const _0x1fdc5f='formatBlock'==_0x337761['type'],_0x1af8ae=this['_getAttributeKey'](_0x337761),_0x49f4f6=_0x1af8ae&&this['_isBlockAttribute'](_0x1af8ae);if(!_0x1fdc5f&&!_0x49f4f6)continue;const _0xb2a5b5=_0x337761['getFirstRange']();if(_0xb2a5b5['start']['parent']!=_0xb2a5b5['end']['parent']&&!_0xb2a5b5['end']['isAtEnd']){const _0x4002f3=_0x52e83c['model']['createPositionAt'](_0xb2a5b5['start']['nodeAfter'],'end'),_0x5749b0=_0x52e83c['model']['createRange'](_0xb2a5b5['start'],_0x4002f3);_0x561725['updateMarker'](_0x337761['getFirstMarker'](),{'range':_0x5749b0}),_0x1651a4=!0x0;}}return _0x1651a4;}),_0x52e83c['model']['document']['registerPostFixer'](_0x39da13=>this['_processAttributeChanges'](_0x39da13)),_0x52e83c['model']['document']['registerPostFixer'](_0x5bbacf=>!_0x5bbacf['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5bbacf)),_0x52e83c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x52e83c['model']['document']['on']('change:data',(_0x1db8b5,_0x3231b4)=>{if(!_0x3231b4['isLocal']||_0x3231b4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2e5de4=_0x52e83c['model']['document']['differ']['getChanges']();if(0x0==_0x2e5de4['length'])return;const _0xb4da40=[],_0x4b4f51=_0x2e5de4['filter'](_0x9eb07f=>'attribute'==_0x9eb07f['type']),_0x26f3a2=_0x2e5de4['filter'](_0x2c1c40=>'insert'==_0x2c1c40['type']&&'$text'!=_0x2c1c40['name']);for(const _0x190c71 of _0x4b4f51)this['_isRegisteredAttribute'](_0x190c71['attributeKey'])&&_0xb4da40['push']({'key':_0x190c71['attributeKey'],'newValue':_0x190c71['attributeNewValue'],'oldValue':_0x190c71['attributeOldValue'],'range':Ht(_0x190c71['range'],_0x52e83c['model'])});for(const _0x4ef236 of _0x26f3a2){if('rename'!=_0x4ef236['action']&&'refresh'!=_0x4ef236['action'])continue;const _0x280062=qt(_0x4ef236['position']['nodeAfter'],_0x52e83c['model']),_0x56444f=_0x4ef236['before'];'rename'==_0x4ef236['action']&&_0xb4da40['push']({'key':m,'newValue':_0x4ef236['name'],'oldValue':_0x56444f['name'],'range':_0x280062});for(const [_0x37eb6d,_0x92e570]of _0x56444f['attributes']){if(!this['_isRegisteredAttribute'](_0x37eb6d))continue;const _0x20de02=_0x4ef236['attributes']['get'](_0x37eb6d);_0x92e570!==_0x20de02&&_0xb4da40['push']({'key':_0x37eb6d,'newValue':_0x20de02,'oldValue':_0x92e570,'range':_0x280062});}for(const [_0x56f69f,_0x265db4]of _0x4ef236['attributes'])this['_isRegisteredAttribute'](_0x56f69f)&&(_0x56444f['attributes']['has'](_0x56f69f)||_0xb4da40['push']({'key':_0x56f69f,'newValue':_0x265db4,'oldValue':null,'range':_0x280062}));}0x0!=_0xb4da40['length']&&_0x52e83c['model']['enqueueChange'](_0x3231b4,_0x360c41=>{const _0x54ca26=_0x4250ae();for(const {range:_0x5a608d,key:_0x8fc5b5,oldValue:_0x28bc39,newValue:_0x4ec1bb}of _0xb4da40)this['markAttributeChange'](_0x5a608d,_0x8fc5b5,_0x28bc39,_0x4ec1bb,{'groupId':_0x54ca26});this['_reduceExistingSuggestions'](_0x360c41,_0xb4da40);});},{'priority':'lowest'}),_0x52e83c['model']['markers']['on']('update:suggestion',(_0x3dc102,_0x985473,_0x48e43e)=>{if(null==_0x48e43e){const {id:_0x78d0d0}=this['_splitMarkerName'](_0x985473['name']),_0x41f069=this['_suggestions']['get'](_0x78d0d0);_0x41f069&&_0x41f069['addMarkerName'](_0x985473['name']);}}),_0x52e83c['model']['document']['on']('change:data',()=>{const _0x5cddf1=Array['from'](_0x52e83c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x38f182=>'suggestion'===this['_splitMarkerName'](_0x38f182['name'])['group']);if(0x0===_0x5cddf1['length'])return;_0x5cddf1['sort']((_0x4484aa,_0xdbfefc)=>{const _0x55f45b=_0x4484aa['data']['oldRange'],_0x5ad81b=_0xdbfefc['data']['oldRange'];return null===_0x55f45b&&null===_0x5ad81b?0x0:null===_0x55f45b&&null!==_0x5ad81b?-0x1:null!==_0x55f45b&&null===_0x5ad81b?0x1:_0x55f45b['start']['isBefore'](_0x5ad81b['start'])?-0x1:0x1;});const _0x59a52c=new Set(),_0x31e1b5=new Set();for(const {name:_0x3dec46,data:_0xb1f66b}of _0x5cddf1){const {id:_0x3c1192}=this['_splitMarkerName'](_0x3dec46);if(null===_0xb1f66b['oldRange']){const _0x2bbfdd=this['_handleNewSuggestionMarker'](_0x3dec46);_0x31e1b5['add'](_0x2bbfdd);}else{const _0x42ffb2=this['_suggestions']['get'](_0x3c1192);null!==_0xb1f66b['newRange']||_0x42ffb2['isInContent']?(_0x59a52c['add'](_0x42ffb2['head']),_0x31e1b5['add'](_0x42ffb2)):this['_removeSuggestion'](_0x42ffb2);}}_0x31e1b5['size']>0x0&&this['_refreshSuggestionsChain'](_0x31e1b5);for(const _0x281439 of _0x59a52c)this['fire']('suggestionChanged',_0x281439);}),_0x52e83c['model']['on']('applyOperation',(_0x13102a,_0x3dcb88)=>{const _0x2e04a3=_0x3dcb88[0x0];if(!this['_suggestions']['size'])return;if(!_0x2e04a3['isDocumentOperation'])return;if(_0x2e04a3['batch']['isUndo']||!_0x2e04a3['batch']['isLocal'])return;let _0x2d3331,_0x32452e;switch(_0x2e04a3['type']){case'insert':_0x2d3331=_0x52e83c['model']['createPositionAt'](_0x2e04a3['position']),_0x32452e=_0x2d3331['getShiftedBy'](_0x2e04a3['howMany']);break;case'split':_0x2d3331=_0x52e83c['model']['createPositionAt'](_0x2e04a3['splitPosition']),_0x32452e=_0x52e83c['model']['createPositionAt'](_0x2e04a3['moveTargetPosition']);break;case'move':_0x2d3331=_0x52e83c['model']['createPositionAt'](_0x2e04a3['targetPosition']),_0x32452e=_0x2d3331['getShiftedBy'](_0x2e04a3['howMany']);break;default:return;}const _0x35c6de=_0x52e83c['model']['createRange'](_0x2d3331,_0x32452e);_0x52e83c['model']['change'](()=>{for(const {suggestion:_0x5957f5,meta:_0x571844}of this['_findSuggestions'](_0x35c6de)){if(_0x5957f5['isMultiRange'])continue;if('formatInline'==_0x5957f5['type'])continue;const _0x4cd137=this['_getAttributeKey'](_0x5957f5);if(_0x4cd137&&this['_isBlockAttribute'](_0x4cd137)&&'split'!=_0x2e04a3['type'])continue;const _0x4d6e88=_0x5957f5['data']&&_0x5957f5['data']['multipleBlocks'];('formatBlock'!=_0x5957f5['type']||'split'==_0x2e04a3['type']&&!_0x4d6e88)&&(_0x571844['containsRangeInObject']||'insertion'==_0x5957f5['type']&&_0x571844['isOwn']||_0x5957f5['getFirstRange']()['containsRange'](_0x35c6de)&&this['_breakSuggestionMarker'](_0x5957f5,_0x2d3331,_0x32452e));}});},{'priority':'lowest'}),_0x52e83c['model']['on']('deleteContent',(_0x456efe,_0x435794)=>{const _0xe82120=_0x435794[0x0],_0x2b258c=_0x435794[0x1];if(_0x2b258c&&_0x2b258c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xe82120['isCollapsed'])return;const _0x301494=_0x52e83c['model']['schema'],{start:_0x311c00,end:_0x526fe4}=_0xe82120['getFirstRange'](),_0x2c4765=_0x311c00['nodeAfter']&&_0x301494['isLimit'](_0x311c00['nodeAfter'])?null:_0x301494['getNearestSelectionRange'](_0x311c00,'forward'),_0x12948f=_0x526fe4['nodeBefore']&&_0x301494['isLimit'](_0x526fe4['nodeBefore'])?null:_0x301494['getNearestSelectionRange'](_0x526fe4,'backward'),_0x307a15=_0x52e83c['model']['createRange'](_0x2c4765?_0x2c4765['start']:_0x311c00,_0x12948f?_0x12948f['end']:_0x526fe4);_0x52e83c['model']['change'](_0x562c9f=>{this['markDeletion'](_0x307a15);const _0x2b6cc3=_0x52e83c['model']['schema']['getNearestSelectionRange'](_0x307a15['start']);_0xe82120['is']('documentSelection')?_0x562c9f['setSelection'](_0x2b6cc3):_0xe82120['setTo'](_0x2b6cc3);}),_0x456efe['stop']();},{'priority':_0x397d7f['normal']+0xa}),_0x52e83c['model']['on']('insertContent',(_0x20eec4,_0x1c5731)=>{const _0x1359b7=_0x1c5731[_0x1c5731['length']-0x1];_0x1359b7&&_0x1359b7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x52e83c['model']['change'](()=>{let _0x119826=_0x52e83c['model']['insertContent'](_0x1c5731[0x0],_0x1c5731[0x1],_0x1c5731[0x2],{'forceDefaultExecution':!0x0});if(!_0x119826)return;_0x20eec4['return']=_0x119826['clone']();const _0x39765a=_0x119826['end']['nodeBefore'],_0xc24b43=_0x52e83c['model']['schema'];_0x39765a&&_0xc24b43['isBlock'](_0x39765a)&&!_0xc24b43['isObject'](_0x39765a)&&(_0x119826=_0x52e83c['model']['createRange'](_0x119826['start'],_0x52e83c['model']['createPositionAt'](_0x39765a,'end'))),this['markInsertion'](_0x119826);}),_0x20eec4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1fbc99=new D(_0x52e83c,this['_suggestions']);_0x52e83c['commands']['add']('acceptSuggestion',_0x1fbc99),this['enableCommand']('acceptSuggestion');const _0x27590b=new M(_0x52e83c,this['_suggestions']);_0x52e83c['commands']['add']('discardSuggestion',_0x27590b),this['enableCommand']('discardSuggestion'),_0x52e83c['commands']['add']('acceptAllSuggestions',new $(_0x52e83c,_0x1fbc99,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x52e83c['commands']['add']('discardAllSuggestions',new $(_0x52e83c,_0x27590b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x52e83c['commands']['add']('acceptSelectedSuggestions',new B(_0x52e83c,_0x1fbc99,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x52e83c['commands']['add']('discardSelectedSuggestions',new B(_0x52e83c,_0x27590b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1cfd99=_0x52e83c['plugins']['get']('CommentsRepository');this['listenTo'](_0x1cfd99,'addComment',(_0x1d26ad,{threadId:_0x3808c5})=>{const _0x458d10=this['_suggestions']['get'](_0x3808c5);_0x458d10&&_0x458d10['commentThread']&&0x1===_0x458d10['commentThread']['length']&&this['_updateSuggestionData'](_0x3808c5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1cfd99,'removeComment',(_0x5a1b3e,{threadId:_0x2df9d9})=>{const _0x2be89f=this['_suggestions']['get'](_0x2df9d9);_0x2be89f&&_0x2be89f['commentThread']&&!_0x2be89f['commentThread']['length']&&this['_updateSuggestionData'](_0x2df9d9,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4248d3){const _0x3dc6c4=_0x17c239([0x55,0x74,0x51,0x32,0x79,0x7a,0x43,0x44,0x62,0x78,0x5a,0x6f,0x31,0x56,0x6c,0x35,0x6b,0x6d,0x57,0x63,0x77,0x61,0x67,0x37,0x6a,0x42,0x71,0x4b,0x72,0x46,0x65,0x30,0x69,0x4d,0x4e,0x64,0x66,0x39,0x52,0x34,0x59,0x6e,0x33,0x38,0x76,0x50,0x36,0x73,0x41,0x70,0x53,0x54,0x49,0x4c,0x58,0x45,0x4a,0x47,0x68,0x4f,0x48,0x75]),_0x293a98=0x39e9c0d1,_0x53800e=0x39eeadc1^_0x293a98,_0x229dca=window[_0x17c239([0x44,0x61,0x74,0x65])][_0x17c239([0x6e,0x6f,0x77])](),_0x33c660=_0x4248d3[_0x17c239([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31c981=new window[(_0x17c239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34af70=>{_0x33c660[_0x17c239([0x6f,0x6e,0x63,0x65])](_0x17c239([0x72,0x65,0x61,0x64,0x79]),_0x34af70);}),_0x2d5854={[_0x17c239([0x6b,0x74,0x79])]:_0x17c239([0x45,0x43]),[_0x17c239([0x75,0x73,0x65])]:_0x17c239([0x73,0x69,0x67]),[_0x17c239([0x63,0x72,0x76])]:_0x17c239([0x50,0x2d,0x32,0x35,0x36]),[_0x17c239([0x78])]:_0x17c239([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]),[_0x17c239([0x79])]:_0x17c239([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]),[_0x17c239([0x61,0x6c,0x67])]:_0x17c239([0x45,0x53,0x32,0x35,0x36])},_0x342c52=_0x33c660[_0x17c239([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17c239([0x67,0x65,0x74])](_0x17c239([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x30b90f(){let _0x4bcb55,_0x1d8e74=null,_0x1e1564=null;try{if(_0x342c52==_0x17c239([0x47,0x50,0x4c]))return _0x17c239([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4bcb55=_0x1c2500(),!_0x4bcb55)return _0x17c239([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4bcb55[_0x17c239([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e1564=_0x2b8da8(_0x4bcb55[_0x17c239([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4bcb55[_0x17c239([0x6a,0x74,0x69])])),await _0x3ef1e9()?_0x367c1f()?_0x3af8d0()?_0x17c239([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5471e6()?(_0x4bcb55[_0x17c239([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17c239([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d8e74=_0x3ab406(_0x17c239([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4bcb55[_0x17c239([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17c239([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d8e74=_0x3ab406(_0x17c239([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x100090()):_0x17c239([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17c239([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17c239([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17c239([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3af8d0(){const _0x305eab=[_0x17c239([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17c239([0x74,0x72,0x69,0x61,0x6c])][_0x17c239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bcb55[_0x17c239([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x229dca/0x3e8:0xe10*_0x53800e;return _0x4bcb55[_0x17c239([0x65,0x78,0x70])]<_0x305eab;}function _0x367c1f(){const _0x566b17=_0x4bcb55[_0x17c239([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x566b17)return!0x1;if(_0x566b17[_0x17c239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17c239([0x2a])))return!0x0;if(_0x566b17[_0x17c239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17c239([0x54,0x43])))return!0x0;if(_0x566b17[_0x17c239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17c239([0x52,0x54,0x43]))){if(_0x26da95())return!0x0;if(_0x37fa22()||_0x406231())return!0x0;}return!0x1;}function _0x5471e6(){const _0x131d89=_0x4bcb55[_0x17c239([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x131d89||0x0==_0x131d89[_0x17c239([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f1684}=new URL(window[_0x17c239([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x131d89[_0x17c239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f1684))return!0x0;const _0xaeafb5=_0x3f1684[_0x17c239([0x73,0x70,0x6c,0x69,0x74])](_0x17c239([0x2e]));return _0x131d89[_0x17c239([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x96f854=>_0x96f854[_0x17c239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17c239([0x2a])))[_0x17c239([0x6d,0x61,0x70])](_0x4e83d0=>_0x4e83d0[_0x17c239([0x73,0x70,0x6c,0x69,0x74])](_0x17c239([0x2e])))[_0x17c239([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ad475=>_0x4ad475[_0x17c239([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xaeafb5[_0x17c239([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17c239([0x6d,0x61,0x70])](_0x258f94=>Array(_0xaeafb5[_0x17c239([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x258f94[_0x17c239([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17c239([0x66,0x69,0x6c,0x6c])](_0x258f94[0x0]===_0x17c239([0x2a])?_0x17c239([0x2a]):'')[_0x17c239([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x258f94))[_0x17c239([0x73,0x6f,0x6d,0x65])](_0x3200a0=>_0xaeafb5[_0x17c239([0x65,0x76,0x65,0x72,0x79])]((_0x1fc7a5,_0x3f5580)=>_0x3200a0[_0x3f5580]===_0x1fc7a5||_0x3200a0[_0x3f5580]===_0x17c239([0x2a])));}function _0x100090(){return _0x1d8e74&&_0x1e1564?new window[(_0x17c239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ef72a,_0x39fd94)=>{_0x1d8e74[_0x17c239([0x74,0x68,0x65,0x6e])](_0x2ef72a,_0x39fd94),_0x1e1564[_0x17c239([0x74,0x68,0x65,0x6e])](_0x29bc76=>{_0x29bc76!=_0x17c239([0x56,0x61,0x6c,0x69,0x64])&&_0x2ef72a(_0x29bc76);},_0x39fd94);}):_0x1d8e74||_0x1e1564||_0x17c239([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b8da8(_0x5f3b32,_0x197434){return new window[(_0x17c239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a44dd=>{if(_0x41c4b2())return _0x5a44dd(_0x17c239([0x56,0x61,0x6c,0x69,0x64]));_0x295413(),_0x33c660[_0x17c239([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17c239([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2858ee=!0x1;const _0x33efac=_0x4250ae();function _0x32acb4(_0x3544c5){return!!_0x3544c5&&(typeof _0x3544c5===_0x17c239([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3544c5===_0x17c239([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3544c5[_0x17c239([0x74,0x68,0x65,0x6e])]===_0x17c239([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3544c5[_0x17c239([0x63,0x61,0x74,0x63,0x68])]===_0x17c239([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xfabdb7(_0x72ac63){_0x397e3a(_0x72ac63)[_0x17c239([0x74,0x68,0x65,0x6e])](_0x477a6b=>{if(!_0x477a6b||_0x477a6b[_0x17c239([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17c239([0x6f,0x6b]))return _0x17c239([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ce195(_0x509587(_0x33efac+_0x197434))!=_0x477a6b[_0x17c239([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17c239([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17c239([0x56,0x61,0x6c,0x69,0x64]);})[_0x17c239([0x74,0x68,0x65,0x6e])](_0x1be14a=>(_0x5f257a(),_0x1be14a),()=>{const _0x386784=_0x3b37a7();return null==_0x386784?(_0x5f257a(),_0x17c239([0x56,0x61,0x6c,0x69,0x64])):_0x17c239(_0x229dca-_0x386784>(0x1de544d1^_0x293a98)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17c239([0x74,0x68,0x65,0x6e])](_0x5a44dd)[_0x17c239([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a44dd(_0x17c239([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x19f269=0x39df2e51^_0x293a98;function _0x5f257a(){const _0x2d5823=_0x17c239([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ce195(_0x509587(_0x5f3b32)),_0x580ddb=_0x525b44(_0x4ce195(window[_0x17c239([0x4d,0x61,0x74,0x68])][_0x17c239([0x63,0x65,0x69,0x6c])](_0x229dca/_0x19f269)));window[_0x17c239([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17c239([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d5823,_0x580ddb);}function _0x3b37a7(){const _0x3115ef=_0x17c239([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ce195(_0x509587(_0x5f3b32)),_0x3fc909=window[_0x17c239([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17c239([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3115ef);return _0x3fc909?window[_0x17c239([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x525b44(_0x3fc909),0x10)*_0x19f269:null;}function _0x397e3a(_0x227cef){return new window[(_0x17c239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x29ec65,_0x124f87)=>{_0x227cef[_0x17c239([0x74,0x68,0x65,0x6e])](_0x29ec65,_0x124f87),window[_0x17c239([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x124f87,0x39e81411^_0x293a98);});}}_0x33c660[_0x17c239([0x6f,0x6e])](_0x17c239([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3423dc,_0x2e8277)=>{if(_0x2e8277[0x0]!=_0x5f3b32)return _0x5a44dd(_0x17c239([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e8277[0x1]={..._0x2e8277[0x1],[_0x17c239([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33efac};},{[_0x17c239([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17c239([0x68,0x69,0x67,0x68])}),_0x33c660[_0x17c239([0x6f,0x6e])](_0x17c239([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x33eff4=>{_0x32acb4(_0x33eff4[_0x17c239([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2858ee=!0x0,_0xfabdb7(_0x33eff4[_0x17c239([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17c239([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17c239([0x6c,0x6f,0x77])}),_0x31c981[_0x17c239([0x74,0x68,0x65,0x6e])](()=>{_0x2858ee||_0x5a44dd(_0x17c239([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x41c4b2(){return _0x33c660[_0x17c239([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17c239([0x76,0x69,0x65,0x77])][_0x17c239([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17c239([0x61,0x75,0x74,0x6f]);}function _0x295413(){_0x33c660[_0x17c239([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17c239([0x76,0x69,0x65,0x77])][_0x17c239([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17c239([0x61,0x75,0x74,0x6f]);}}function _0x3ab406(_0x3c3ef8){const _0x49e6ed=[new window[(_0x17c239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e1932=>setTimeout(_0x5e1932,0x39e0fe1d^_0x293a98)),_0x31c981[_0x17c239([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17c239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x506067=>{let _0xd14c27=0x0;_0x33c660[_0x17c239([0x6d,0x6f,0x64,0x65,0x6c])][_0x17c239([0x6f,0x6e])](_0x17c239([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e14fd,_0x291273)=>{_0x291273[0x0][_0x17c239([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd14c27++,_0xd14c27==(0x39e9c129^_0x293a98)&&(_0x506067(),_0x1e14fd[_0x17c239([0x6f,0x66,0x66])]());});}))];return window[_0x17c239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17c239([0x72,0x61,0x63,0x65])](_0x49e6ed)[_0x17c239([0x74,0x68,0x65,0x6e])](()=>_0x3c3ef8);}async function _0x833b11(){await _0x31c981,_0x33c660[_0x17c239([0x6d,0x6f,0x64,0x65,0x6c])][_0x17c239([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53ab6e,_0x33c660[_0x17c239([0x6d,0x6f,0x64,0x65,0x6c])][_0x17c239([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53ab6e,_0x33c660[_0x17c239([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17c239([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26da95(){return _0x5b7348(_0x17c239([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2dbb6b(_0x17c239([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x17c239([0x73,0x74,0x61,0x74,0x65])]==_0x17c239([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x37fa22(){return _0x5b7348(_0x17c239([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 _0x406231(){return _0x5b7348(_0x17c239([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x456177(_0x64858){const _0x63a02d=_0x506437();_0x33c660[_0x63a02d]=_0x17c239([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x64858,_0x64858!=_0x17c239([0x56,0x61,0x6c,0x69,0x64])&&_0x833b11();}function _0x506437(){const _0x4d293f=window[_0x17c239([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17c239([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17c239([0x6e,0x6f,0x77])]())[_0x17c239([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17c239([0x2e]),'');let _0x14ae93=_0x17c239([0x55]);for(let _0x3a4b89=0x0;_0x3a4b89<_0x4d293f[_0x17c239([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a4b89+=0x2){let _0x32f9d9=window[_0x17c239([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d293f[_0x17c239([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a4b89,_0x3a4b89+0x2));_0x32f9d9>=_0x3dc6c4[_0x17c239([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32f9d9-=_0x3dc6c4[_0x17c239([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14ae93+=_0x3dc6c4[_0x32f9d9];}return _0x14ae93;}function _0x1c2500(){const _0x14a69b=_0x342c52[_0x17c239([0x73,0x70,0x6c,0x69,0x74])](_0x17c239([0x2e]));if(0x3!=_0x14a69b[_0x17c239([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d54c5(_0x14a69b[0x1]);function _0x4d54c5(_0xde1066){const _0x71e0d0=_0x441a92(_0xde1066);return _0x71e0d0&&_0xde641f()?_0x71e0d0:null;function _0xde641f(){const _0x29b4ff=_0x71e0d0[_0x17c239([0x6a,0x74,0x69])],_0x15552f=window[_0x17c239([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29b4ff[_0x17c239([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29b4ff[_0x17c239([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x535f70={..._0x71e0d0,[_0x17c239([0x6a,0x74,0x69])]:_0x29b4ff[_0x17c239([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29b4ff[_0x17c239([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x535f70[_0x17c239([0x76,0x63])],_0x509587(_0x535f70)==_0x15552f;}}}async function _0x3ef1e9(){let _0x4a29eb=!0x0;try{const _0x517fd6=_0x342c52[_0x17c239([0x73,0x70,0x6c,0x69,0x74])](_0x17c239([0x2e])),[_0x17eb0b,_0x3c3353,_0x24b93b]=_0x517fd6;return _0x3fd9e6(_0x17eb0b),await _0x4d931a(_0x17eb0b,_0x3c3353,_0x24b93b),_0x4a29eb;}catch{return!0x1;}function _0x3fd9e6(_0x45dece){const _0x3b95b4=_0x441a92(_0x45dece);_0x3b95b4&&_0x3b95b4[_0x17c239([0x61,0x6c,0x67])]==_0x17c239([0x45,0x53,0x32,0x35,0x36])||(_0x4a29eb=!0x1);}async function _0x4d931a(_0x45cca7,_0x1abf82,_0x5e16c7){const _0x3e4ec3=window[_0x17c239([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17c239([0x66,0x72,0x6f,0x6d])](_0x5a4ba9(_0x5e16c7),_0x506d83=>_0x506d83[_0x17c239([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x156175=new window[(_0x17c239([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17c239([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45cca7+_0x17c239([0x2e])+_0x1abf82),_0x31d3ad=window[_0x17c239([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17c239([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31d3ad)return;const _0x4f8e21=await _0x31d3ad[_0x17c239([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17c239([0x6a,0x77,0x6b]),_0x2d5854,{[_0x17c239([0x6e,0x61,0x6d,0x65])]:_0x17c239([0x45,0x43,0x44,0x53,0x41]),[_0x17c239([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17c239([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17c239([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31d3ad[_0x17c239([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17c239([0x6e,0x61,0x6d,0x65])]:_0x17c239([0x45,0x43,0x44,0x53,0x41]),[_0x17c239([0x68,0x61,0x73,0x68])]:{[_0x17c239([0x6e,0x61,0x6d,0x65])]:_0x17c239([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f8e21,_0x3e4ec3,_0x156175)||(_0x4a29eb=!0x1);}}function _0x441a92(_0x2a337d){return _0x2a337d[_0x17c239([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17c239([0x65,0x79]))?JSON[_0x17c239([0x70,0x61,0x72,0x73,0x65])](_0x5a4ba9(_0x2a337d)):null;}function _0x5a4ba9(_0x53f441){return window[_0x17c239([0x61,0x74,0x6f,0x62])](_0x53f441[_0x17c239([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17c239([0x2b]))[_0x17c239([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17c239([0x2f])));}function _0x509587(_0x3fe29f){let _0x838839=0x1505;function _0xe693a7(_0x2473f8){for(let _0x4d5e64=0x0;_0x4d5e64<_0x2473f8[_0x17c239([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d5e64++){const _0x42cf7b=_0x2473f8[_0x17c239([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d5e64);_0x838839=(_0x838839<<0x5)+_0x838839+_0x42cf7b,_0x838839&=_0x838839;}}function _0x32cc97(_0x4dae61){Array[_0x17c239([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4dae61)?_0x4dae61[_0x17c239([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32cc97):_0x4dae61&&typeof _0x4dae61==_0x17c239([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17c239([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4dae61)[_0x17c239([0x73,0x6f,0x72,0x74])]()[_0x17c239([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2caa48,_0x25ef37])=>{_0xe693a7(_0x2caa48),_0x32cc97(_0x25ef37);}):_0xe693a7(window[_0x17c239([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4dae61));}return _0x32cc97(_0x3fe29f),_0x838839>>>0x0;}function _0x4ce195(_0x1071e2){return _0x1071e2[_0x17c239([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17c239([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17c239([0x30]));}function _0x525b44(_0x4fed61){return _0x4fed61[_0x17c239([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17c239([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17c239([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b7348(_0x1134bc){return _0x33c660[_0x17c239([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x17c239([0x68,0x61,0x73])](_0x1134bc);}function _0x2dbb6b(_0x534143){return _0x33c660[_0x17c239([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x17c239([0x67,0x65,0x74])](_0x534143);}function _0x53ab6e(){}function _0x17c239(_0xc021e0){return _0xc021e0['map'](_0x37b145=>String['fromCharCode'](_0x37b145))['join']('');}_0x456177(await _0x30b90f());}(this);}set['adapter'](_0x3a3626){if(this['_adapter'])throw new _0x547589('track-changes-adapter-already-set',this);this['_adapter']=_0x3a3626;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3300ef=!0x1,toJSON:_0x12b592=!0x1}={}){const _0x5e0ceb=[];for(const _0x1f5cd3 of this['_suggestions']['values']())_0x3300ef&&!_0x1f5cd3['isInContent']||_0x5e0ceb['push'](_0x1f5cd3);return _0x12b592?_0x5e0ceb['map'](_0x205576=>_0x205576['toJSON']()):_0x5e0ceb;}['getSuggestion'](_0x2fae28){const _0x7d61c2=this['_suggestions']['get'](_0x2fae28);if(!_0x7d61c2)throw new _0x547589('track-changes-suggestion-not-found',this);return _0x7d61c2;}['hasSuggestion'](_0x38fe86){return this['_suggestions']['has'](_0x38fe86);}['addSuggestionData'](_0x29470e){const {authorId:_0x2e9bab,id:_0x1548d2,originalSuggestionId:_0x309634,attributes:_0x18db4e}=_0x29470e,[_0x1eec38,_0x4b9dc9]=_0x29470e['type']['split'](':'),_0x420981=this['_suggestions']['get'](_0x1548d2)||this['_createSuggestion'](_0x1eec38,_0x4b9dc9,_0x1548d2,_0x2e9bab,_0x18db4e,_0x309634);if(this['_addThreadToSuggestion'](_0x420981),this['_checkSuggestionCorrectness'](_0x420981,_0x1eec38,_0x4b9dc9||null,_0x2e9bab),_0x420981['createdAt']=_0x29470e['createdAt'],_0x420981['_isDataLoaded']=!0x0,_0x18db4e&&_0x18db4e['@external']){const _0x29c659=_0x18db4e['@external'],_0x20f7cc=this['_getExternalAuthor'](_0x29c659['authorName']);_0x420981['authoredAt']=_0x29c659['createdAt'],_0x420981['author']=_0x20f7cc,_0x420981['isExternal']=!0x0;}else _0x420981['authoredAt']=_0x29470e['createdAt'];switch(_0x29470e['data']&&(_0x420981['data']=_0x29470e['data']),_0x29470e['attributes']&&(_0x420981['attributes']=_0x29470e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x420981['_saved']=!0x0),this['_suggestionState']['get'](_0x420981)){case'notReady':this['_suggestionState']['set'](_0x420981,'dataReady');break;case'markerReady':_0x420981['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x420981])),this['_refreshSuggestionsChain'](new Set([_0x420981])),this['_suggestionState']['set'](_0x420981,'ready'),this['fire']('suggestionLoaded',_0x420981)):this['_suggestionState']['set'](_0x420981,'removed');}return _0x420981;}['acceptSuggestion'](_0x525250){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x10a3df of _0x525250['getAllAdjacentSuggestions']())_0x10a3df['accept']();});});}['discardSuggestion'](_0xc965f9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4dbd6f of _0xc965f9['getAllAdjacentSuggestions']())_0x4dbd6f['discard']();});});}['enableCommand'](_0x50999d,_0x452d2a){const _0x5a70f1=this['editor']['commands']['get'](_0x50999d);if(!_0x5a70f1)throw new _0x547589('track-changes-command-not-found',this,{'commandName':_0x50999d});if(this['_enabledCommands']['has'](_0x5a70f1))throw new _0x547589('track-changes-enable-command-twice',this,{'commandName':_0x50999d});this['_enabledCommands']['add'](_0x5a70f1),_0x452d2a&&_0x5a70f1['on']('execute',(_0x4b3ab1,_0x33f747)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x33f747['length']>0x0&&_0x33f747[_0x33f747['length']-0x1]&&_0x33f747[_0x33f747['length']-0x1]['forceDefaultExecution']?_0x33f747['pop']():(_0x4b3ab1['return']=_0x452d2a((..._0x23c00b)=>_0x5a70f1['execute'](..._0x23c00b,{'forceDefaultExecution':!0x0}),..._0x33f747),_0x4b3ab1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1f9745){let _0x41876a,_0x8f525;const _0xcc2a32=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x41876a=_0x1f9745();}catch(_0x45c8f6){_0x8f525=_0x45c8f6;}return _0xcc2a32||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x8f525&&_0x547589['rethrowUnexpectedError'](_0x8f525,this),_0x41876a;}['markInsertion'](_0x31a8c4,_0x54abed=null,_0x4cb02d={}){if(_0x31a8c4['isCollapsed'])return null;const _0x28a823=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4cb02d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x545d23,meta:_0x450bc9}of this['_findSuggestions'](_0x31a8c4,'insertion'))if(_0x450bc9['isOwn']){if(!_0x450bc9['isNextTo']){if(_0x450bc9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x545d23,_0x4cb02d))continue;return _0x545d23;}if(Qt(_0x545d23,_0x4cb02d))return _0x545d23;this['_breakSuggestionMarker'](_0x545d23,_0x31a8c4['start'],_0x31a8c4['end']);break;}if(_0x54abed==_0x545d23['subType']&&Qt(_0x545d23,_0x4cb02d)){const _0x53c4ca=_0x545d23['getFirstRange']();return _0x53c4ca['start']['isEqual'](_0x31a8c4['end'])?this['_setSuggestionRange'](_0x545d23,this['_model']['createRange'](_0x31a8c4['start'],_0x53c4ca['end'])):this['_setSuggestionRange'](_0x545d23,this['_model']['createRange'](_0x53c4ca['start'],_0x31a8c4['end'])),_0x545d23;}}const _0x1526d4=_0x4250ae(),_0x192794=_0x28a823['id'],_0x11119f=_0x54abed?'insertion:'+_0x54abed:'insertion',_0x5cae9d=this['_setSuggestionData']({'id':_0x1526d4,'type':_0x11119f,'createdAt':new Date(),'authorId':_0x192794,'attributes':_0x4cb02d});return this['_addSuggestionMarker'](_0x11119f,_0x1526d4,_0x192794,_0x31a8c4),_0x5cae9d;}['markMultiRangeInsertion'](_0x1ab5ea,_0x3b4bca='multi',_0x29e3d2={}){const _0x556c90=this['editor']['plugins']['get']('Users')['me'],_0x9e2586=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3b4bca,'join');this['_trackingSessionId']&&(_0x29e3d2['trackingSessionId']=this['_trackingSessionId']);for(const _0x453c1 of this['getSuggestions']())if(_0x453c1['author']['id']==_0x556c90['id']&&'insertion'==_0x453c1['type']&&_0x453c1['subType']==_0x3b4bca&&Qt(_0x453c1,_0x29e3d2)&&(_0x9e2586(_0x453c1['getRanges'](),_0x1ab5ea)||_0x9e2586(_0x1ab5ea,_0x453c1['getRanges']()))){for(const _0x5af23c of _0x1ab5ea)_0x453c1['addRange'](_0x5af23c);return _0x453c1;}for(const {suggestion:_0x667dd7,meta:_0x24f90d}of this['_findSuggestions'](_0x1ab5ea,'insertion')){if(!_0x24f90d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x24f90d['containsRangeInObject'])continue;if(!Qt(_0x667dd7,_0x29e3d2))continue;let _0x42b129=!0x0;for(const _0x5139e2 of _0x667dd7['getRanges']())for(const _0x455968 of _0x1ab5ea)if(!_0x5139e2['containsRange'](_0x455968)){_0x42b129=!0x1;break;}if(_0x42b129)return _0x667dd7;}const _0x7b0192=_0x4250ae(),_0xb917dc=_0x556c90['id'],_0x2d4e73='insertion:'+_0x3b4bca,_0x352234=this['_setSuggestionData']({'id':_0x7b0192,'type':_0x2d4e73,'createdAt':new Date(),'authorId':_0xb917dc,'attributes':_0x29e3d2});for(const _0x2e7d1c of _0x1ab5ea)this['_addSuggestionMarker'](_0x2d4e73,_0x7b0192,_0xb917dc,_0x2e7d1c,T['getMultiRangeId']());return _0x352234;}['markInlineFormat'](_0x4d10dc,_0xa9e4df,_0x3b2267=null,_0x55a5a4={}){if(_0x3b2267=_0x3b2267||Lt(_0xa9e4df),_0x4d10dc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x55a5a4['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x8705bd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3b2267,'accept');return this['forceDefaultExecution'](()=>_0x8705bd([_0x4d10dc],_0xa9e4df,_0x55a5a4)),null;}const _0x4c0a67=this['editor']['plugins']['get']('Users')['me'],_0x54a38c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x274452,meta:_0x45ca18}of this['_findSuggestions'](_0x4d10dc,'insertion'))_0x45ca18['isOwn']&&!_0x45ca18['isInsideObject']&&_0x54a38c['push'](..._0x274452['getRanges']());}const _0x5d1da7=function(_0x4291db,_0x2d078e){const _0x3eac52=[];for(const _0x4d5c96 of _0x2d078e){const _0xedfd7d=_0x4291db['getIntersection'](_0x4d5c96);_0xedfd7d&&_0x3eac52['push'](_0xedfd7d);}return _0x3eac52;}(_0x4d10dc,_0x54a38c),_0x27affb=function(_0x4a5496,_0x55bc42){const _0x469b80=[_0x4a5496];for(const _0x455c93 of _0x55bc42){let _0x5bbd85=0x0;for(;_0x5bbd85<_0x469b80['length'];){const _0x37b190=_0x469b80[_0x5bbd85]['getDifference'](_0x455c93);_0x469b80['splice'](_0x5bbd85,0x1,..._0x37b190),_0x5bbd85+=_0x37b190['length'];}}return _0x469b80;}(_0x4d10dc,_0x54a38c);_0x5d1da7['length']&&this['_model']['change'](()=>{for(const _0x2849e1 of _0x5d1da7){const _0x1f973c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3b2267,'accept');this['forceDefaultExecution'](()=>_0x1f973c([_0x2849e1],_0xa9e4df,_0x55a5a4));}});for(const _0x3ea8fc of _0x27affb){let _0x49b4f3=null,_0x9ddb13=_0x3ea8fc['start'],_0x1181a6=_0x3ea8fc['end'];for(const {suggestion:_0x302a86,meta:_0x119f64}of this['_findSuggestions'](_0x3ea8fc,'formatInline')){if(!_0x119f64['isOwn'])continue;if(_0x302a86['subType']!=_0x3b2267)continue;if(!Qt(_0x302a86,_0x55a5a4))continue;const _0x3e1613=_0x302a86['getFirstRange']();if(_0x3e1613['containsRange'](_0x3ea8fc,!0x0))return null;_0x9ddb13=_0x9ddb13['isBefore'](_0x3e1613['start'])?_0x9ddb13:_0x3e1613['start'],_0x1181a6=_0x1181a6['isAfter'](_0x3e1613['end'])?_0x1181a6:_0x3e1613['end'],_0x49b4f3?_0x3e1613['start']['isBefore'](_0x49b4f3['getFirstRange']()['start'])?(_0x49b4f3['removeMarkers'](),_0x49b4f3=_0x302a86):_0x302a86['removeMarkers']():_0x49b4f3=_0x302a86;}const _0x1a0085=this['_model']['createRange'](_0x9ddb13,_0x1181a6);if(_0x49b4f3)this['_setSuggestionRange'](_0x49b4f3,_0x1a0085);else{const _0x333475=_0x4250ae(),_0x3a4ace=_0x4c0a67['id'];this['_setSuggestionData']({'id':_0x333475,'type':'formatInline:'+_0x3b2267,'data':_0xa9e4df,'createdAt':new Date(),'authorId':_0x3a4ace,'attributes':_0x55a5a4}),this['_addSuggestionMarker']('formatInline:'+_0x3b2267,_0x333475,_0x3a4ace,_0x1a0085);}}return null;}['markBlockFormat'](_0x4ee2b7,_0x28a2a4,_0xf82884=[],_0x114375=null,_0x2cfb2c={}){_0x28a2a4['formatGroupId']||(_0x28a2a4['formatGroupId']=_0x28a2a4['commandName']),_0x28a2a4['multipleBlocks']=_0x4ee2b7['is']('range'),_0x114375=_0x114375||Lt(_0x28a2a4);const _0x185d87=_0xf82884['map'](_0x1cc741=>qt(_0x1cc741,this['_model'])),_0x21eb83=_0x4ee2b7['is']('range')?_0x4ee2b7:qt(_0x4ee2b7,this['_model']);if(this['_trackingSessionId']&&(_0x2cfb2c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3b72ba=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x114375,'accept');return this['forceDefaultExecution'](()=>_0x3b72ba([_0x21eb83],_0x28a2a4,_0x2cfb2c)),null;}_0x185d87['push'](_0x21eb83);let _0xeea3b8=!0x0;for(const _0xd485e9 of _0x185d87)if(!this['_rangeIsInLocalUserInsertion'](_0xd485e9)){_0xeea3b8=!0x1;break;}if(_0xeea3b8&&'always'!==this['_trackFormatChanges']){const _0x1d5be1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x114375,'accept');return this['forceDefaultExecution'](()=>_0x1d5be1([_0x21eb83],_0x28a2a4,_0x2cfb2c)),null;}let _0xb7415f=null,_0x5a15ca=_0x21eb83['start'],_0x373934=_0x21eb83['end'];for(const {suggestion:_0xbb7948,meta:_0x7e74ae}of this['_findSuggestions'](_0x21eb83,'formatBlock')){if(!_0x7e74ae['isOwn'])continue;if(_0x7e74ae['isNextTo']||_0x7e74ae['containsRangeInObject']||_0x7e74ae['isInsideObject'])continue;if(_0xbb7948['data']['formatGroupId']!=_0x28a2a4['formatGroupId'])continue;if(!Qt(_0xbb7948,_0x2cfb2c))continue;const _0x3489fc=_0xbb7948['getFirstRange']();if(_0xbb7948['subType']==_0x114375){if(_0x3489fc['containsRange'](_0x21eb83,!0x0))return null;_0x5a15ca=_0x5a15ca['isBefore'](_0x3489fc['start'])?_0x5a15ca:_0x3489fc['start'],_0x373934=_0x373934['isAfter'](_0x3489fc['end'])?_0x373934:_0x3489fc['end'],_0xb7415f?_0x3489fc['start']['isBefore'](_0xb7415f['getFirstRange']()['start'])?(_0xb7415f['removeMarkers'](),_0xb7415f=_0xbb7948):_0xbb7948['removeMarkers']():_0xb7415f=_0xbb7948;}else{const _0x49a7e8=_0x21eb83['getIntersection'](_0x3489fc);this['_cutOutSuggestionMarker'](_0xbb7948,_0x49a7e8);}}const _0x165f7c=this['editor']['plugins']['get']('Users')['me'],_0x448fd7=_0x4250ae(),_0x542e4c=_0x165f7c['id'];if(_0xb7415f)return this['_setSuggestionRange'](_0xb7415f,this['_model']['createRange'](_0x5a15ca,_0x373934)),_0xb7415f;{const _0x35ced5=this['_setSuggestionData']({'id':_0x448fd7,'type':'formatBlock:'+_0x114375,'data':_0x28a2a4,'createdAt':new Date(),'authorId':_0x542e4c,'attributes':_0x2cfb2c});return this['_addSuggestionMarker']('formatBlock:'+_0x114375,_0x448fd7,_0x542e4c,this['_model']['createRange'](_0x5a15ca,_0x373934)),_0x35ced5;}}['markMultiRangeBlockFormat'](_0x420a30,_0x121b0f,_0x4e4bf0=[],_0x873f3e=null,_0xd99578={}){_0x121b0f['formatGroupId']||(_0x121b0f['formatGroupId']=_0x121b0f['commandName']);const _0x2e5f50=_0x420a30[0x0];_0x121b0f['multipleBlocks']=_0x2e5f50['is']('range'),_0x873f3e=_0x873f3e||Lt(_0x121b0f);const _0x130c44=_0x4e4bf0['map'](_0x5022db=>qt(_0x5022db,this['_model'])),_0xca498b=_0x2e5f50['is']('range')?_0x420a30:_0x420a30['map'](_0x32fbef=>qt(_0x32fbef,this['_model']));if(this['_trackingSessionId']&&(_0xd99578['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x317b5d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x873f3e,'accept');return this['forceDefaultExecution'](()=>_0x317b5d(_0xca498b,_0x121b0f,_0xd99578)),null;}_0x130c44['push'](..._0xca498b);let _0x4d64ca=!0x0;for(const _0x3bc263 of _0x130c44)if(!this['_rangeIsInLocalUserInsertion'](_0x3bc263)){_0x4d64ca=!0x1;break;}if(_0x4d64ca&&'always'!==this['_trackFormatChanges']){const _0x4ede12=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x873f3e,'accept');return this['forceDefaultExecution'](()=>_0x4ede12(_0xca498b,_0x121b0f,_0xd99578)),null;}const _0x28f688=this['editor']['plugins']['get']('Users')['me'];for(const _0x5d3adf of this['getSuggestions']()){const _0x3cb618=_0x5d3adf['data'];if(_0x5d3adf['author']['id']!=_0x28f688['id'])continue;if('formatBlock'!=_0x5d3adf['type']||_0x3cb618['formatGroupId']!=_0x121b0f['formatGroupId'])continue;if(!Qt(_0x5d3adf,_0xd99578))continue;const _0x4c7a05=_0x5d3adf['subType']==_0x873f3e;for(let _0x54a18c=0x0;_0x54a18c<_0xca498b['length'];_0x54a18c++){const _0x8c7bba=_0xca498b[_0x54a18c];for(const _0x1b572b of _0x5d3adf['getMarkers']()){const _0x26aa14=_0x1b572b['getRange']();if(_0x8c7bba['isEqual'](_0x26aa14)){_0x4c7a05?(_0xca498b['splice'](_0x54a18c,0x1),_0x54a18c--):_0x5d3adf['removeMarker'](_0x1b572b['name']);break;}}}}if(0x0==_0xca498b['length'])return null;const _0x1b4a81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x873f3e,'join');for(const _0x208800 of this['getSuggestions']()){const _0x16d256=_0x208800['data'];if(_0x208800['author']['id']==_0x28f688['id']&&('formatBlock'==_0x208800['type']&&_0x16d256['formatGroupId']==_0x121b0f['formatGroupId']&&_0x208800['subType']==_0x873f3e&&Qt(_0x208800,_0xd99578)&&(_0x1b4a81(_0x208800['getRanges'](),_0xca498b)||_0x1b4a81(_0xca498b,_0x208800['getRanges']())))){for(const _0x2cc05d of _0xca498b)_0x208800['addRange'](_0x2cc05d);return _0x208800;}}const _0x33bfd1=_0x4250ae(),_0x34760f=_0x28f688['id'],_0x387143='formatBlock:'+_0x873f3e,_0x1fe5fa=this['_setSuggestionData']({'id':_0x33bfd1,'type':_0x387143,'data':_0x121b0f,'createdAt':new Date(),'authorId':_0x34760f,'attributes':_0xd99578});for(const _0x185c3c of _0xca498b)this['_addSuggestionMarker'](_0x387143,_0x33bfd1,_0x34760f,_0x185c3c,T['getMultiRangeId']());return _0x1fe5fa;}['markDeletion'](_0x3e84f8,_0x372974=null,_0x20d7de={}){if(_0x3e84f8['isCollapsed'])return null;const _0x4e6fae=this['editor']['plugins']['get']('Users')['me'],_0x3345b7=new _0x1a9bf4(_0x3e84f8['start'],_0x3e84f8['end']);this['_trackingSessionId']&&(_0x20d7de['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x59cca5,meta:_0x39fce9}of this['_findSuggestions'](_0x3345b7,'insertion'))if(_0x39fce9['isOwn']&&!_0x39fce9['isNextTo']){if(_0x59cca5['isMultiRange']){const _0x8cc0c3=_0x59cca5['getRanges']()['filter'](_0x968b93=>'$graveyard'!=_0x968b93['root']['rootName']);_0x8cc0c3['every'](_0x38e275=>_0x3345b7['containsRange'](_0x38e275,!0x0))&&_0x59cca5['discard']();if(_0x8cc0c3['some'](_0x1b7695=>_0x1b7695['containsRange'](_0x3345b7,!0x0))){const _0x2d64cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x372974,'accept');return this['forceDefaultExecution'](()=>_0x2d64cf([_0x3345b7],null,_0x20d7de)),null;}}else{const _0x38969e=_0x3345b7['getIntersection'](_0x59cca5['getFirstRange']());null!==_0x38969e&&_0x59cca5['_onDiscard']([_0x38969e],null,_0x20d7de);}}if(_0x3345b7['detach'](),_0x3345b7['isCollapsed']||'$graveyard'==_0x3345b7['root']['rootName'])return null;let _0x5da00f=null,_0x309d73=_0x3345b7['start'],_0xaa1a5e=_0x3345b7['end'];const _0x964ee5=this['_findSuggestions'](_0x3345b7,'deletion');for(const {suggestion:_0x47536c,meta:_0x1bb697}of _0x964ee5){const _0x3bce25=this['_model']['createRange'](_0x309d73,_0xaa1a5e);if(_0x1bb697['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1bb697['containsRangeInObject']&&!_0x1bb697['isInsideObject'])){if(_0x47536c['isMultiRange']){if(!Qt(_0x47536c,_0x20d7de))continue;let _0x156dbe=!0x0;for(const _0x33fda5 of _0x47536c['getRanges']()){if(_0x33fda5['containsRange'](_0x3bce25,!0x0))return _0x47536c;_0x3bce25['containsRange'](_0x33fda5)||(_0x156dbe=!0x1);}_0x156dbe&&_0x47536c['discard']();}else{const _0x450043=_0x47536c['getFirstRange']();if(_0x450043['containsRange'](_0x3bce25,!0x0))return _0x47536c;if(!Qt(_0x47536c,_0x20d7de)){_0x3bce25['containsRange'](_0x450043)?_0x47536c['removeMarkers']():_0x450043['containsPosition'](_0x309d73)?_0x309d73=_0x450043['end']:_0x450043['containsPosition'](_0xaa1a5e)&&(_0xaa1a5e=_0x450043['start']);continue;}_0x309d73=_0x309d73['isBefore'](_0x450043['start'])?_0x309d73:_0x450043['start'],_0xaa1a5e=_0xaa1a5e['isAfter'](_0x450043['end'])?_0xaa1a5e:_0x450043['end'],_0x20d7de=Object['assign']({},_0x47536c['attributes']),_0x5da00f?_0x450043['start']['isBefore'](_0x5da00f['getFirstRange']()['start'])?(_0x5da00f['removeMarkers'](),_0x5da00f=_0x47536c):_0x47536c['removeMarkers']():_0x5da00f=_0x47536c;}}}if(_0x5da00f)return this['_setSuggestionRange'](_0x5da00f,this['_model']['createRange'](_0x309d73,_0xaa1a5e)),_0x5da00f;{const _0x24762e=_0x4250ae(),_0x30e35c=this['_model']['createRange'](_0x309d73,_0xaa1a5e),_0x46f494=_0x4e6fae['id'],_0x178e4c=_0x372974?'deletion:'+_0x372974:'deletion',_0x16b4ad=this['_setSuggestionData']({'id':_0x24762e,'type':_0x178e4c,'createdAt':new Date(),'authorId':_0x46f494,'attributes':_0x20d7de});return this['_addSuggestionMarker'](_0x178e4c,_0x24762e,_0x46f494,_0x30e35c),_0x16b4ad;}}['markMultiRangeDeletion'](_0x4098a1,_0x2b7d26='multi',_0x171261={}){const _0x39eb4c=this['editor']['plugins']['get']('Users')['me'],_0x38ca7e=_0x4098a1['map'](_0x245184=>new _0x1a9bf4(_0x245184['start'],_0x245184['end'])),_0x534af8=new Set();this['_trackingSessionId']&&(_0x171261['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3783ea,meta:_0x346282}of this['_findSuggestions'](_0x38ca7e,'insertion'))_0x346282['isOwn']&&!_0x346282['isNextTo']&&_0x534af8['add'](_0x3783ea);for(const _0x222390 of _0x534af8)if(_0x222390['isMultiRange']){const _0xd1f6a5=_0x222390['getRanges']();(!_0x222390['attributes']||!_0x222390['attributes']['skipNestingCheck'])&&(_0xd1f6a5['every'](_0xc945d5=>_0x38ca7e['some'](_0x314a64=>_0x314a64['containsRange'](_0xc945d5,!0x0)))&&_0x222390['discard']());if(_0x38ca7e['every'](_0x1bb9bc=>_0xd1f6a5['some'](_0x55a698=>_0x55a698['containsRange'](_0x1bb9bc,!0x0)))){const _0x361bd9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b7d26,'accept');return this['forceDefaultExecution'](()=>_0x361bd9(_0x4098a1,null,_0x171261)),null;}}else{const _0x22c8ee=_0x222390['getFirstRange']();_0x38ca7e['some'](_0xac35d0=>_0xac35d0['containsRange'](_0x22c8ee,!0x0))&&_0x222390['discard']();if(_0x38ca7e['every'](_0x391fea=>_0x22c8ee['containsRange'](_0x391fea,!0x0))){const _0x5cffca=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b7d26,'accept');return this['forceDefaultExecution'](()=>_0x5cffca(_0x38ca7e,null,_0x171261)),null;}}const _0x27b3ea=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b7d26,'join');let _0x4f94b3=null;for(const _0x2e35ef of this['getSuggestions']())if(_0x2e35ef['author']['id']==_0x39eb4c['id']&&_0x2e35ef['isInContent']&&'deletion'==_0x2e35ef['type']&&_0x2e35ef['subType']==_0x2b7d26&&Qt(_0x2e35ef,_0x171261)&&(_0x27b3ea(_0x2e35ef['getRanges'](),_0x38ca7e)||_0x27b3ea(_0x38ca7e,_0x2e35ef['getRanges']()))){if(_0x4f94b3){if(_0x2e35ef['commentThread']&&_0x2e35ef['commentThread']['length'])continue;for(const _0x154c6a of _0x2e35ef['getRanges']())_0x4f94b3['isIntersectingWithRange'](_0x154c6a)||_0x4f94b3['addRange'](_0x154c6a);_0x2e35ef['removeMarkers']();}else{_0x4f94b3=_0x2e35ef;for(const _0x3818ef of _0x38ca7e)_0x2e35ef['isIntersectingWithRange'](_0x3818ef)||_0x2e35ef['addRange'](_0x3818ef);}}if(_0x4f94b3)return _0x4f94b3;_0x534af8['clear']();for(const {suggestion:_0x1ddad,meta:_0x1e765d}of this['_findSuggestions'](_0x38ca7e,'deletion'))_0x1e765d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1e765d['containsRangeInObject']&&!_0x1e765d['isInsideObject'])&&Qt(_0x1ddad,_0x171261)&&_0x534af8['add'](_0x1ddad);for(const _0x31ab96 of _0x534af8){const _0x3387b6=_0x31ab96['getRanges']();if(!_0x171261||!_0x171261['skipNestingCheck']){if(_0x38ca7e['every'](_0x3be5e4=>_0x3387b6['some'](_0x39a9c2=>_0x39a9c2['containsRange'](_0x3be5e4,!0x0))))return _0x31ab96;}(!_0x31ab96['attributes']||!_0x31ab96['attributes']['skipNestingCheck'])&&(_0x3387b6['every'](_0x271004=>_0x38ca7e['some'](_0x2eb6db=>_0x2eb6db['containsRange'](_0x271004,!0x0)))&&_0x31ab96['discard']());}const _0x14f72a=_0x4250ae(),_0x4a719b=_0x39eb4c['id'],_0x490f83='deletion:'+_0x2b7d26,_0x20231f=this['_setSuggestionData']({'id':_0x14f72a,'type':_0x490f83,'createdAt':new Date(),'authorId':_0x4a719b,'attributes':_0x171261});for(const _0x5b3586 of _0x38ca7e)_0x5b3586['detach'](),_0x5b3586['isCollapsed']||'$graveyard'==_0x5b3586['root']['rootName']||this['_addSuggestionMarker'](_0x490f83,_0x14f72a,_0x4a719b,_0x5b3586,T['getMultiRangeId']());return _0x20231f;}['markAttributeChange'](_0x312190,_0x2228ea,_0x2a49f0,_0x16b68b,_0x102b1b){if(_0x312190['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x379cea=this['editor']['plugins']['get']('Users')['me']['id'],_0x254a60=Array['from'](this['_suggestions']['values']())['filter'](_0x281f67=>'attribute'==_0x281f67['type']&&_0x281f67['data']['key']==_0x2228ea&&_0x281f67['isIntersectingWithRange'](_0x312190));if(this['_trackingSessionId']&&(_0x102b1b['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1690fa=this['_findSuggestions'](_0x312190,'insertion')['filter'](({meta:_0x79feae})=>_0x79feae['isOwn']&&!_0x79feae['isInsideObject']&&!_0x79feae['isNextTo'])['map'](({suggestion:_0xbae3f2})=>_0xbae3f2);_0x254a60['unshift'](..._0x1690fa);}const _0x8fa342=new Map([[_0x312190,_0x2a49f0]]);for(const _0x1c3282 of _0x254a60){const _0x2efaf2='attribute'==_0x1c3282['type']?_0x1c3282['data']['oldValue']:void 0x0,_0x11bfd6=_0x1c3282['getFirstRange'](),_0x51290d=Array['from'](_0x8fa342['keys']())['find'](_0x166c28=>_0x166c28['isIntersecting'](_0x11bfd6));if(!_0x51290d)continue;const _0x59c131=_0x51290d['getDifference'](_0x11bfd6);this['_isBlockAttribute'](_0x2228ea)&&'insertion'==_0x1c3282['type']&&0x0!=_0x59c131['length']||(_0x8fa342['delete'](_0x51290d),_0x59c131['forEach'](_0x2b8357=>{_0x8fa342['set'](_0x2b8357,_0x2a49f0);}),'insertion'!=_0x1c3282['type']&&_0x2efaf2!=_0x16b68b&&_0x8fa342['set'](_0x51290d['getIntersection'](_0x11bfd6),_0x2efaf2));}const _0x29cd00=[];for(const [_0x24c061,_0x541470]of _0x8fa342){const _0x11f280=_0x4250ae(),_0x10c77e={'key':_0x2228ea,'oldValue':_0x541470,'newValue':_0x16b68b};_0x2228ea['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':_0x2228ea});const _0x449d87=('attribute:'+(_0x2228ea+'|'+Lt({'newValue':_0x16b68b})))['substring'](0x0,0x3c),_0x568ddc=this['_setSuggestionData']({'id':_0x11f280,'type':_0x449d87,'data':_0x10c77e,'createdAt':new Date(),'authorId':_0x379cea,'attributes':_0x102b1b});_0x29cd00['push'](_0x568ddc),this['_addSuggestionMarker'](_0x449d87,_0x11f280,_0x379cea,_0x24c061);}return _0x29cd00;}['enableDefaultAttributesIntegration'](_0x50aed6){this['enableCommand'](_0x50aed6,(_0x2b85d1,..._0x136366)=>{this['recordAttributeChanges'](()=>{_0x2b85d1(..._0x136366);});});}['registerBlockAttribute'](_0x4a7bc3){this['_blockAttributeKeys']['add'](_0x4a7bc3);}['registerInlineAttribute'](_0xf1a20){this['_inlineAttributeKeys']['add'](_0xf1a20);}['startTrackingSession'](_0x2230a8){return this['_trackingSessionId']=void 0x0!==_0x2230a8?_0x2230a8:_0x4250ae(),this['_trackingSessionId'];}['_getAttributeKey'](_0x25f2e1){return'attribute'==_0x25f2e1['type']?_0x25f2e1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x19c34b,_0x4d0c0c){const _0x37825c=_0x19c34b['getFirstMarker']();this['_model']['change'](_0x39143d=>{_0x39143d['updateMarker'](_0x37825c,{'range':_0x4d0c0c});});}['_addThreadToSuggestion'](_0x50ce89){const _0x1dd492=_0x50ce89['id'],_0x2637b1=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1dd492)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2637b1,'threadId':_0x1dd492,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x472b74=this['_commentsRepository']['getCommentThread'](_0x1dd492);_0x472b74['unbind']('isRemovable'),_0x472b74['isRemovable']=!0x1,_0x50ce89['commentThread']=_0x472b74;}['_checkSuggestionCorrectness'](_0x1a05ec,_0x1a97d2,_0xd8010f,_0x50d99a){if(_0x1a05ec['type']!=_0x1a97d2||_0x1a05ec['subType']!=_0xd8010f||_0x1a05ec['creator']['id']!=_0x50d99a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x547589('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5403bd,_0x3b587c){const _0x20b074=_0x5403bd['getFirstRange']();if(_0x3b587c['isEqual'](_0x20b074))_0x5403bd['removeMarkers']();else{if(_0x20b074['containsRange'](_0x3b587c)){const _0x50770e=this['_model']['createPositionAt'](_0x3b587c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5403bd,this['_model']['createRange'](_0x20b074['start'],_0x50770e));const _0x106264=_0x4250ae(),_0x27ea60=_0x5403bd['creator']['id'],_0x55ae15=_0x5403bd['type']+':'+_0x5403bd['subType'];this['_setSuggestionData']({'id':_0x106264,'type':_0x55ae15,'createdAt':new Date(),'authorId':_0x27ea60,'data':_0x5403bd['data'],'attributes':_0x5403bd['attributes']});const _0x1b3e01=this['_model']['createPositionAt'](_0x3b587c['end']['parent'],'after'),_0x51337d=this['_model']['createRange'](_0x1b3e01,_0x20b074['end']);this['_addSuggestionMarker'](_0x55ae15,_0x106264,_0x27ea60,_0x51337d);}else{if(_0x20b074['containsPosition'](_0x3b587c['start'])){const _0x13ae77=this['_model']['createPositionAt'](_0x3b587c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5403bd,this['_model']['createRange'](_0x20b074['start'],_0x13ae77));}else{const _0x1deb1a=this['_model']['createPositionAt'](_0x3b587c['end']['parent'],'after');this['_setSuggestionRange'](_0x5403bd,this['_model']['createRange'](_0x1deb1a,_0x20b074['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4c6998){for(const {suggestion:_0x2c3f69,meta:_0x55fc64}of this['_findSuggestions'](_0x4c6998,'insertion')){if(!_0x55fc64['isOwn'])continue;const _0x5717eb=_0x2c3f69['getRanges']();for(const _0x2235de of _0x5717eb)if(!_0x4c6998['getDifference'](_0x2235de)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x518106){const _0x476f8c=this['editor']['plugins']['get']('Users')['getUser'](_0x518106);if(!_0x476f8c)throw new _0x547589('track-changes-user-not-found',this);return _0x476f8c;}['_getExternalAuthor'](_0x13b332){const _0x262b7a=this['editor']['plugins']['get']('Users'),_0x409542=_0xbc2c60('external:'+_0x13b332),_0x1d3639=_0x262b7a['getUser'](_0x409542);return _0x1d3639||_0x262b7a['addUser']({'id':_0x409542,'name':_0x13b332});}['_createSuggestion'](_0x18c1b4,_0x18231c,_0x524890,_0x27e081,_0x302461,_0x4c5759){const _0x526a5d=this['_getAuthorFromId'](_0x27e081),_0x444c6e=this['_suggestionFactory']['buildSuggestion'](_0x18c1b4,_0x18231c,_0x524890,_0x526a5d,_0x302461,_0x37f6f1=>{this['_updateSuggestionData'](_0x524890,{'attributes':_0x37f6f1});const _0x46a6a5=this['getSuggestion'](_0x524890);this['_joinWithAdjacentSuggestions'](new Set([_0x46a6a5])),this['_refreshSuggestionsChain'](new Set([_0x46a6a5]));},_0x4c5759);return this['listenTo'](_0x444c6e,'accept',()=>{this['_updateSuggestionData'](_0x524890,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x444c6e,'discard',()=>{this['_updateSuggestionData'](_0x524890,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x524890,_0x444c6e),this['_suggestionState']['set'](_0x444c6e,'notReady'),_0x444c6e;}['_splitMarkerName'](_0x521ad4){const _0x4ec40e=_0x521ad4['split'](':');return{'group':_0x4ec40e[0x0],'type':_0x4ec40e[0x1],'subType':_0x4ec40e['length']>=0x5?_0x4ec40e[0x2]:null,'id':_0x4ec40e['length']<0x5?_0x4ec40e[0x2]:_0x4ec40e[0x3],'authorId':_0x4ec40e['length']<0x5?_0x4ec40e[0x3]:_0x4ec40e[0x4],'markerCount':0x6==_0x4ec40e['length']?_0x4ec40e[0x5]:null};}['_breakSuggestionMarker'](_0x4661bb,_0xfe2983,_0x14d453){const _0x1673ef=_0x4661bb['getFirstRange'](),_0x58f746=_0x1673ef['start'],_0xba01b3=_0x1673ef['end'];this['_setSuggestionRange'](_0x4661bb,this['_model']['createRange'](_0x58f746,_0xfe2983));const _0x1ef9e7=_0x4250ae(),_0x1fba75=_0x4661bb['creator']['id'],_0x263e63=_0x4661bb['type']+(_0x4661bb['subType']?':'+_0x4661bb['subType']:'');this['_setSuggestionData']({'id':_0x1ef9e7,'type':_0x263e63,'createdAt':new Date(),'authorId':_0x1fba75,'originalSuggestionId':_0x4661bb['_originalSuggestionId']||_0x4661bb['id'],'attributes':_0x4661bb['attributes'],'data':_0x4661bb['data']});const _0x17ac63=this['_getAttributeKey'](_0x4661bb);('formatBlock'==_0x4661bb['type']||_0x17ac63&&this['_isBlockAttribute'](_0x17ac63))&&(_0x14d453=this['_model']['createPositionBefore'](_0x14d453['parent'])),this['_addSuggestionMarker'](_0x263e63,_0x1ef9e7,_0x1fba75,this['_model']['createRange'](_0x14d453,_0xba01b3));}['_findSuggestions'](_0x329dd6,_0x38cdcb=null){const _0x389c55=[],_0x2715cf=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x329dd6)||(_0x329dd6=[_0x329dd6]);for(const _0x232789 of this['getSuggestions']()){if(!_0x232789['isInContent'])continue;if(_0x38cdcb&&_0x232789['type']!=_0x38cdcb)continue;let _0xf2573b=!0x1;for(const _0x4fa62f of _0x232789['getRanges']()){for(const _0x5dae71 of _0x329dd6){const _0x30b2cd=_0x5dae71['start']['isEqual'](_0x4fa62f['end'])||_0x5dae71['end']['isEqual'](_0x4fa62f['start']);if(_0x30b2cd||_0x5dae71['getIntersection'](_0x4fa62f)){const _0xa691b3=_0x5dae71['containsRange'](_0x4fa62f)&&Ft(this['_model']['schema'],_0x4fa62f['start'],_0x5dae71),_0x1bfc8e=_0x4fa62f['containsRange'](_0x5dae71)&&Ft(this['_model']['schema'],_0x5dae71['start'],_0x4fa62f);_0x389c55['push']({'suggestion':_0x232789,'meta':{'isOwn':_0x2715cf==_0x232789['author'],'isNextTo':_0x30b2cd,'isInsideObject':_0xa691b3,'containsRangeInObject':_0x1bfc8e}}),_0xf2573b=!0x0;break;}}if(_0xf2573b)break;}}return _0x389c55;}['_addSuggestionMarker'](_0x15be14,_0x143983,_0x20c4f1,_0x2abac1,_0x192ad0){this['_model']['change'](_0x378364=>{let _0x1b7997='suggestion:'+_0x15be14+':'+_0x143983+':'+_0x20c4f1;_0x192ad0&&(_0x1b7997=_0x1b7997+':'+_0x192ad0),_0x378364['addMarker'](_0x1b7997,{'range':_0x2abac1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x44e1cd){const _0x4073ab=_0x44e1cd['previous'],_0x48e2f9=_0x44e1cd['next'];_0x44e1cd['previous']=null,_0x44e1cd['next']=null,null!=_0x4073ab&&_0x4073ab['next']==_0x44e1cd&&(_0x4073ab['next']=_0x48e2f9),null!=_0x48e2f9&&_0x48e2f9['previous']==_0x44e1cd&&(_0x48e2f9['previous']=_0x4073ab),'ready'==this['_suggestionState']['get'](_0x44e1cd)&&(this['_suggestionState']['set'](_0x44e1cd,'removed'),this['fire']('suggestionUnloaded',_0x44e1cd,_0x4073ab,_0x48e2f9));}['_setSuggestionData'](_0x52a457){const _0x3fad10=_0x52a457['id'],_0x3471a0=this['addSuggestionData'](_0x52a457);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x208396=this['editor']['plugins']['get']('PendingActions'),_0x4e1d4e=_0x3471a0['hasComments'],_0x1f5cdc=_0x3471a0['subType']?_0x3471a0['type']+':'+_0x3471a0['subType']:_0x3471a0['type'],_0x6c74f4=this['editor']['locale'],_0x2ad0c9=_0x208396['add'](o(_0x6c74f4,'PENDING_ACTION_SUGGESTION')),_0x3258ac={'id':_0x3fad10,'type':_0x1f5cdc,'hasComments':_0x4e1d4e,'data':_0x52a457['data']||null,'originalSuggestionId':_0x52a457['originalSuggestionId']||null,'attributes':_0x3471a0['attributes']};this['_adapter']['addSuggestion'](_0x3258ac)['then'](_0x5631dd=>{_0x3471a0['_saved']=!0x0,_0x208396['remove'](_0x2ad0c9),_0x5631dd&&_0x5631dd['createdAt']&&(this['_suggestions']['get'](_0x3fad10)['createdAt']=_0x5631dd['createdAt']);})['catch'](_0x2fe3f9=>{throw _0x248c38('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3471a0['discard']();}),_0x3471a0['stopListening'](),this['_suggestions']['delete'](_0x3471a0['id']),this['_suggestionState']['delete'](_0x3471a0),_0x2fe3f9;});}return _0x3471a0;}['_isBlockAttribute'](_0x474f0b){return this['_blockAttributeKeys']['has'](_0x474f0b);}['_updateSuggestionData'](_0x5c9573,_0x280db0){const _0x5bf906=this['editor']['plugins']['get']('PendingActions'),_0x156070=this['getSuggestion'](_0x5c9573);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x156070['_saved']){const _0x553b4a=_0x5bf906['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5c9573,_0x280db0)['then'](()=>{_0x5bf906['remove'](_0x553b4a);});}else _0x156070['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5c9573,_0x280db0);});}}['_getSuggestionData'](_0x3df70b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x547589('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3df70b);}['_handleNewSuggestionMarker'](_0x10ccb3){const {id:_0x460627,type:_0x58e363,subType:_0x5732e6,authorId:_0x2f91d7}=this['_splitMarkerName'](_0x10ccb3),_0x4a5e4f=this['_suggestions']['get'](_0x460627)||this['_createSuggestion'](_0x58e363,_0x5732e6,_0x460627,_0x2f91d7,{});switch(this['_checkSuggestionCorrectness'](_0x4a5e4f,_0x58e363,_0x5732e6,_0x2f91d7),this['_suggestionState']['get'](_0x4a5e4f)){case'notReady':this['_getSuggestionData'](_0x460627)['then'](_0x1f177a=>{let _0x1200b6=Promise['resolve']();_0x1f177a['hasComments']&&(_0x1200b6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x460627})),_0x1200b6['then'](()=>{this['addSuggestionData'](_0x1f177a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4a5e4f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x460627,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4a5e4f,'ready'),this['fire']('suggestionLoaded',_0x4a5e4f);break;case'ready':this['fire']('suggestionChanged',_0x4a5e4f);}return _0x4a5e4f['addMarkerName'](_0x10ccb3),_0x4a5e4f;}['_refreshSuggestionsChain'](_0x37ccc1){const _0x348dc2=Array['from'](_0x37ccc1),_0xa05a26=_0x348dc2['filter'](_0x2c09f3=>'attribute'==_0x2c09f3['type']);this['_refreshAttributeSuggestionsChain'](_0xa05a26);const _0x59506d=_0x348dc2['filter'](_0x97aadf=>!_0x97aadf['isMultiRange']&&'attribute'!=_0x97aadf['type']),_0x4b3163=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47be5c=>!_0x47be5c['isMultiRange']&&'attribute'!=_0x47be5c['type']),_0x4ffdd4=_0x4b3163['filter'](_0x4b7606=>!_0x37ccc1['has'](_0x4b7606)),_0x42b570=new Map(_0x4b3163['map'](_0x29220b=>[_0x29220b,this['_suggestionFactory']['getSuggestionCallback'](_0x29220b['type'],_0x29220b['subType'],'chain')])),_0x36fc9b=new Map(_0x4b3163['map'](_0xebd87d=>[_0xebd87d,_0xebd87d['getFirstRange']()])),_0x442795=new Set(),_0x5cda84=new Set();for(let _0x828bbd=0x0;_0x828bbd<_0x59506d['length'];_0x828bbd++)_0x415e1e(_0x59506d[_0x828bbd],_0x59506d,_0x828bbd+0x1);for(let _0x12f65b=0x0;_0x12f65b<_0x59506d['length'];_0x12f65b++)_0x415e1e(_0x59506d[_0x12f65b],_0x4ffdd4,0x0);const _0x248258=new Set();for(let _0x1c3877=0x0;_0x1c3877<_0x59506d['length'];_0x1c3877++){const _0x21f0ce=_0x59506d[_0x1c3877];!_0x5cda84['has'](_0x21f0ce)&&_0x21f0ce['previous']&&(_0x248258['add'](_0x21f0ce['previous']),_0x21f0ce['previous']['next']===_0x21f0ce&&(_0x21f0ce['previous']['next']=null),_0x21f0ce['previous']=null),!_0x442795['has'](_0x21f0ce)&&_0x21f0ce['next']&&(_0x248258['add'](_0x21f0ce['next']),_0x21f0ce['next']['previous']===_0x21f0ce&&(_0x21f0ce['next']['previous']=null),_0x21f0ce['next']=null);}function _0x415e1e(_0x4a5b87,_0x2bcf4f,_0x18bcdc){for(let _0x96692f=_0x18bcdc;_0x96692f<_0x2bcf4f['length'];_0x96692f++){const _0x147758=_0x130912(_0x4a5b87,_0x2bcf4f[_0x96692f]);_0x147758&&(_0x147758[0x0]['next']=_0x147758[0x1],_0x147758[0x1]['previous']=_0x147758[0x0],_0x442795['add'](_0x147758[0x0]),_0x5cda84['add'](_0x147758[0x1]));}}function _0x130912(_0x23fdb2,_0x31273a){if(_0x23fdb2['author']['id']!==_0x31273a['author']['id'])return null;const _0x2a48c2=_0x42b570['get'](_0x23fdb2)(_0x23fdb2,_0x31273a,_0x36fc9b['get'](_0x23fdb2),_0x36fc9b['get'](_0x31273a));if(!_0x2a48c2)return null;return _0x42b570['get'](_0x31273a)(_0x23fdb2,_0x31273a,_0x36fc9b['get'](_0x23fdb2),_0x36fc9b['get'](_0x31273a))?_0x2a48c2[0x1]['commentThread']&&_0x2a48c2[0x1]['commentThread']['length']?null:_0x2a48c2:null;}_0x248258['size']&&this['_refreshSuggestionsChain'](_0x248258);}['_refreshAttributeSuggestionsChain'](_0x5efeb1){if(0x0==_0x5efeb1['length'])return;const _0x306d2f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x563bae=>'attribute'==_0x563bae['type']&&_0x563bae['_isDataLoaded']),_0x2ff2ec=[],_0x4dacad=new Map();for(const _0x55468a of _0x306d2f){const _0x46c4d0=_0xbc2c60(_0x55468a['attributes']);_0x4dacad['has'](_0x46c4d0)||(_0x4dacad['set'](_0x46c4d0,_0x2ff2ec['length']),_0x2ff2ec['push']([]));const _0x83e078=_0x4dacad['get'](_0x46c4d0);_0x2ff2ec[_0x83e078]['push'](_0x55468a);}!(function(){_0x2ff2ec['sort']((_0x3a27fa,_0x1afcba)=>{const _0x49cc3e=_0x3a27fa[0x0]['createdAt'],_0x4f9375=_0x1afcba[0x0]['createdAt'];return _0x49cc3e==_0x4f9375?_0x3a27fa[0x0]['attributes']['groupId']<_0x1afcba[0x0]['attributes']['groupId']?-0x1:0x1:_0x49cc3e<_0x4f9375?-0x1:0x1;});for(const _0x565e05 of _0x2ff2ec)_0x565e05['sort']((_0x533052,_0x3f91e4)=>_0x533052['id']<_0x3f91e4['id']?-0x1:0x1);}());for(let _0x1891b1=0x0;_0x1891b1<_0x2ff2ec['length'];_0x1891b1++){if(0x0==_0x2ff2ec[_0x1891b1]['length'])continue;const _0x3a2e63=[];for(let _0x127cc1=_0x1891b1+0x1;_0x127cc1<_0x2ff2ec['length'];_0x127cc1++)0x0!=_0x2ff2ec[_0x127cc1]['length']&&_0x4f678a(_0x2ff2ec[_0x1891b1],_0x2ff2ec[_0x127cc1])&&_0x3a2e63['push'](_0x127cc1);for(const _0x5895e7 of _0x3a2e63)_0x2ff2ec[_0x1891b1]=_0x2ff2ec[_0x1891b1]['concat'](_0x2ff2ec[_0x5895e7]),_0x2ff2ec[_0x5895e7]=[];}for(const _0x407823 of _0x2ff2ec)for(let _0x5b2500=0x0;_0x5b2500<_0x407823['length'];_0x5b2500++){const _0x205bc0=_0x407823[_0x5b2500+0x1]||null;_0x407823[_0x5b2500]['next']!==_0x205bc0&&(_0x407823[_0x5b2500]['next']=_0x205bc0);}for(const _0x41ae06 of _0x2ff2ec)for(let _0xccdf32=0x0;_0xccdf32<_0x41ae06['length'];_0xccdf32++){const _0x35b85d=_0x41ae06[_0xccdf32-0x1]||null;_0x41ae06[_0xccdf32]['previous']!==_0x35b85d&&(_0x41ae06[_0xccdf32]['previous']=_0x35b85d);}function _0x4f678a(_0x5a8f12,_0x3008c4){if(_0x5a8f12[0x0]['attributes']['groupId']!==_0x3008c4[0x0]['attributes']['groupId']&&_0x5a8f12[0x0]['author']!==_0x3008c4[0x0]['author'])return!0x1;if(!function(_0x5711b5,_0x18eb22){if(!_0x5711b5['hasComments']&&!_0x18eb22['hasComments'])return!0x0;if(_0x5711b5['hasComments']&&_0x18eb22['hasComments'])return!0x1;if(_0x5711b5['hasComments']&&_0x18eb22['createdAt']<_0x5711b5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x18eb22['hasComments']&&_0x5711b5['createdAt']<_0x18eb22['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5a8f12[0x0],_0x3008c4[0x0]))return!0x1;const _0x276c35=Ut(_0x5a8f12[0x0]['attributes'],['groupId','trackingSessionId']),_0x105a1f=Ut(_0x3008c4[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xa9ae0d(_0x276c35,_0x105a1f))return!0x1;if(_0x5a8f12[0x0]['attributes']['groupId']==_0x3008c4[0x0]['attributes']['groupId'])return!0x0;if(_0x5a8f12[0x0]['attributes']['trackingSessionId']!==_0x3008c4[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5a8f12['every'](_0x200050=>_0x3008c4['some'](_0x5a9cdf=>_0x200050['getFirstRange']()['isEqual'](_0x5a9cdf['getFirstRange']())))&&_0x3008c4['every'](_0xe604ec=>_0x5a8f12['some'](_0x267905=>_0xe604ec['getFirstRange']()['isEqual'](_0x267905['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3a3b42){const _0x17031a=Array['from'](_0x3a3b42),_0x2697c5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x373f7d=_0x2697c5['filter'](_0x33c962=>!_0x3a3b42['has'](_0x33c962)),_0x522a0c=new Map(_0x17031a['map'](_0xabc532=>[_0xabc532,this['_suggestionFactory']['getSuggestionCallback'](_0xabc532['type'],_0xabc532['subType'],'join')])),_0x11a4d7=new Map(_0x2697c5['map'](_0x3d513f=>[_0x3d513f,_0x3d513f['getRanges']()]));for(let _0x515886=0x0;_0x515886<_0x17031a['length'];_0x515886++){if(_0x470f87(this,_0x17031a[_0x515886],_0x17031a,_0x515886+0x1))return!0x0;}for(let _0x580d93=0x0;_0x580d93<_0x17031a['length'];_0x580d93++){if(_0x470f87(this,_0x17031a[_0x580d93],_0x373f7d,0x0))return!0x0;}return!0x1;function _0x470f87(_0x5216e5,_0x1aa7bd,_0x325b32,_0x505249){for(let _0x5a378c=_0x505249;_0x5a378c<_0x325b32['length'];_0x5a378c++){const _0x7ba6ce=_0x325b32[_0x5a378c];if(_0x7ba6ce['type']!==_0x1aa7bd['type']||_0x7ba6ce['author']['id']!==_0x1aa7bd['author']['id']||_0x7ba6ce['subType']!==_0x1aa7bd['subType'])continue;if(!Wt(_0x1aa7bd,_0x7ba6ce))continue;if('attribute'==_0x1aa7bd['type']&&_0x1aa7bd['data']['oldValue']!=_0x7ba6ce['data']['oldValue'])continue;if('attribute'==_0x1aa7bd['type']&&_0x5216e5['_isBlockAttribute'](_0x1aa7bd['data']['key']))continue;if('formatBlock'==_0x1aa7bd['type']){const _0x404672=_0x5216e5['editor']['model'],_0x50a5e7=_0x1aa7bd['getContainedElement']();if(_0x50a5e7&&(_0x404672['schema']['isObject'](_0x50a5e7)||_0x404672['schema']['isLimit'](_0x50a5e7)))continue;}const _0x370679=_0x522a0c['get'](_0x1aa7bd),_0x24d38f=_0x11a4d7['get'](_0x1aa7bd),_0x2a6e39=_0x11a4d7['get'](_0x7ba6ce),_0x34e7a9=_0x1aa7bd['commentThread']&&_0x1aa7bd['commentThread']['length'],_0x5889ef=_0x7ba6ce['commentThread']&&_0x7ba6ce['commentThread']['length'];if(!_0x34e7a9&&_0x370679(_0x2a6e39,_0x24d38f))return _0x5216e5['_joinSuggestions'](_0x7ba6ce,_0x1aa7bd),_0x11a4d7['delete'](_0x1aa7bd),!0x0;if(!_0x5889ef&&_0x370679(_0x24d38f,_0x2a6e39))return _0x5216e5['_joinSuggestions'](_0x1aa7bd,_0x7ba6ce),_0x11a4d7['delete'](_0x7ba6ce),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5c24e8,_0x56b82b){if(_0x5c24e8['isMultiRange']){for(const _0x5d7fd0 of _0x56b82b['getRanges']())_0x5c24e8['addRange'](_0x5d7fd0);}else{const _0x13cbf6=_0x56b82b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5c24e8,this['_model']['createRange'](_0x5c24e8['getFirstRange']()['start'],_0x13cbf6));}_0x56b82b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x34d6ba,_0x16cfda,_0x5b1345){const _0x16cd01=_0x34d6ba['startsWith']('format')||_0x34d6ba['startsWith']('attribute')?'FORMATTING':_0x34d6ba['toUpperCase']();return o(this['editor']['locale'],_0x16cfda+'_'+_0x16cd01+'_SUGGESTION_ANNOUNCEMENT',_0x5b1345);}['_initAriaMarkerChangeAnnouncements'](){const _0x4ccd00=this['editor'];if(!_0x4ccd00['ui'])return;const {ariaLiveAnnouncer:_0x50e009}=_0x4ccd00['ui'];_0xec5e5f(this['_model'],({left:_0x492b46,entered:_0x6bf07b})=>{for(const _0x23f111 of _0x492b46){const {group:_0x3df3e3,type:_0x5ce2d6}=this['_splitMarkerName'](_0x23f111['name']);if('suggestion'===_0x3df3e3){_0x50e009['announce'](this['_getMarkerAnnouncementText'](_0x5ce2d6,'LEAVE'));break;}}for(const _0x4ddd23 of _0x6bf07b){const {group:_0x4534a7,type:_0x1dc0dc}=this['_splitMarkerName'](_0x4ddd23['name']);if('suggestion'===_0x4534a7){_0x50e009['announce'](this['_getMarkerAnnouncementText'](_0x1dc0dc,'ENTER',_0x16c470(_0x5bdebf)));break;}}});}['_processAttributeChanges'](_0x33e7d7){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4d54dd=this['editor'],_0x598f0b=_0x4d54dd['model']['document']['differ']['getChanges']();if(0x0==_0x598f0b['length'])return!0x1;const _0x17f5cc=[],_0x28f2d9=_0x598f0b['filter'](_0x5ceb00=>'attribute'==_0x5ceb00['type']),_0x28cbc1=_0x598f0b['filter'](_0x48c414=>'insert'==_0x48c414['type']&&'$text'!=_0x48c414['name']),_0x2b8a9f=_0x598f0b['filter'](_0x1fdcf7=>'remove'==_0x1fdcf7['type']&&'$text'!=_0x1fdcf7['name']);for(const _0x55637d of _0x28f2d9)_0x17f5cc['push']({'key':_0x55637d['attributeKey'],'newValue':_0x55637d['attributeNewValue'],'oldValue':_0x55637d['attributeOldValue'],'range':Ht(_0x55637d['range'],_0x4d54dd['model'])});for(const _0x413e1a of _0x28cbc1){const _0x18f586=_0x2b8a9f['find'](_0x27807a=>_0x27807a['position']['isEqual'](_0x413e1a['position']));_0x18f586&&_0x17f5cc['push']({'key':m,'newValue':_0x413e1a['name'],'oldValue':_0x18f586['name'],'range':_0x4d54dd['model']['createRangeOn'](_0x413e1a['position']['nodeAfter'])});}return 0x0!=_0x17f5cc['length']&&this['_reduceExistingSuggestions'](_0x33e7d7,_0x17f5cc);}['_processAttributeSuggestions'](_0x4967b6){let _0x3c5fb3=!0x1;const _0x1dc4ee=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5480e7=>_0x5480e7['data']['newRange']&&_0x5480e7['name']['startsWith']('suggestion:attribute:'));for(const _0x542e68 of _0x1dc4ee){const {subType:_0x51a53a,id:_0x77d9a}=this['_splitMarkerName'](_0x542e68['name']),_0x3fdece=_0x51a53a['split']('|')[0x0];for(const _0x42b9b4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x42b9b4['id']!=_0x77d9a&&'attribute'==_0x42b9b4['type']&&_0x42b9b4['data']&&_0x42b9b4['data']['key']==_0x3fdece&&_0x42b9b4['getFirstRange']()['isIntersecting'](_0x542e68['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x42b9b4,_0x542e68['data']['newRange'],_0x4967b6),_0x3c5fb3=!0x0);}return _0x3c5fb3;}['recordAttributeChanges'](_0x613947){this['_recordAttributeSuggestions']=!0x0,_0x613947();}['_isRegisteredAttribute'](_0x2d60b0){const _0x144388=this['_isBlockAttribute'](_0x2d60b0),_0x71050d=this['_inlineAttributeKeys']['has'](_0x2d60b0);return _0x144388||_0x71050d;}['_reduceExistingSuggestions'](_0x247cab,_0x562044){if(0x0==_0x562044['length'])return!0x1;let _0x3f3fa2=!0x1;for(const _0x1141e7 of _0x562044){const _0x129682=this['_findSuggestions'](_0x1141e7['range'],'attribute')['filter'](_0x32e824=>!_0x32e824['meta']['isNextTo'])['map'](_0x3bf6fc=>_0x3bf6fc['suggestion']),_0x4fb67f=_0xbc2c60({'newValue':_0x1141e7['newValue']});_0x129682['filter'](_0x27ac9e=>{const [_0x52b9ce,_0x1a42bb]=_0x27ac9e['subType']['split']('|');return _0x52b9ce==_0x1141e7['key']&&_0x1a42bb!=_0x4fb67f;})['forEach'](_0x55f07d=>{this['_reduceSuggestionAttributeRange'](_0x55f07d,_0x1141e7['range'],_0x247cab),_0x3f3fa2=!0x0;});}return _0x3f3fa2;}['_reduceSuggestionAttributeRange'](_0x40b0ea,_0x528c70,_0xa0ebc4){const _0x15f9c2=_0x40b0ea['getFirstRange']()['getDifference'](_0x528c70);0x0!==_0x15f9c2['length']?0x1!==_0x15f9c2['length']?this['_breakSuggestionMarker'](_0x40b0ea,_0x528c70['start'],_0x528c70['end']):this['_setSuggestionRange'](_0x40b0ea,_0x15f9c2[0x0]):_0xa0ebc4['removeMarker'](_0x40b0ea['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x454aaa){this['_editor']=_0x454aaa,this['_model']=_0x454aaa['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x22df09,_0x353468,_0x1e8327,_0x11687a,_0x44e38c,_0x43052f,_0x41ed47){return new T(this['_model'],{'type':_0x22df09,'subType':_0x353468,'id':_0x1e8327,'originalSuggestionId':_0x41ed47,'author':_0x11687a,'creator':_0x11687a,'attributes':_0x44e38c,'onAttributesChange':_0x43052f,'onAccept':(..._0x89f307)=>this['getSuggestionCallback'](_0x22df09,_0x353468,'accept')(..._0x89f307),'onDiscard':(..._0x55fbb2)=>this['getSuggestionCallback'](_0x22df09,_0x353468,'discard')(..._0x55fbb2)});}['registerCustomCallback'](_0x5c04bb,_0x1e060a,_0xf3e95,_0x5836ad){const _0x4a2e84=_0x5c04bb+':'+_0x1e060a+':'+_0xf3e95;this['_customCallbacks']['set'](_0x4a2e84,_0x5836ad);}['getSuggestionCallback'](_0x3baa8b,_0x223cba,_0x1dee7d){const _0x10e277=_0x3baa8b+':'+_0x223cba+':'+_0x1dee7d;return this['_customCallbacks']['get'](_0x10e277)||this['_defaultCallbacks']['get'](_0x3baa8b+':'+_0x1dee7d);}['_registerDefaultCallbacks'](){const _0x2f85b3=()=>!0x1,_0x5afefb=_0x20f748=>{_0x20f748['sort']((_0x198f9c,_0x398468)=>_0x198f9c['start']['isBefore'](_0x398468['start'])?0x1:-0x1),this['_model']['change'](_0xe1c786=>{for(const _0x643c32 of _0x20f748){let _0x5104df;_0x5104df=_0x643c32['end']['isAtEnd']&&_0x643c32['end']['parent']==_0x643c32['start']['nodeAfter']?_0xe1c786['createSelection'](_0x643c32['start']['nodeAfter'],'on'):_0xe1c786['createSelection'](_0x643c32),this['_model']['deleteContent'](_0x5104df,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3bf3b2=(_0xe40bcc,_0x321fd4)=>{_0x321fd4&&this['_model']['change'](_0x33ba80=>{const {commandName:_0x41ca4c,commandParams:_0x1dba7b=[]}=_0x321fd4,_0xf72567=_0xe40bcc['map'](_0x3eeff7=>(Pt(_0x3eeff7)&&(_0x3eeff7=this['_model']['createRange'](_0x3eeff7['end'])),_0x3eeff7))['filter'](_0x3ddd5b=>'$graveyard'!==_0x3ddd5b['root']['rootName']);if(_0xf72567['length']<0x1)return;const _0xd3ba2b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5162d2=>_0x1a9bf4['fromRange'](_0x5162d2));_0x33ba80['setSelection'](_0xf72567);for(const _0x5cd8d5 of this['_editor']['commands']['commands']())_0x5cd8d5['refresh']();_0x1dba7b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x41ca4c,..._0x1dba7b);const _0x5aba73=_0xd3ba2b['filter'](_0x254be8=>'$graveyard'!=_0x254be8['root']['rootName']);_0x5aba73['length']>0x0&&_0x33ba80['setSelection'](_0x5aba73);for(const _0x42eac8 of _0xd3ba2b)_0x42eac8['detach']();});},_0x51d90c=(_0x52429b,_0x11cb48)=>0x1==_0x52429b['length']&&0x1==_0x11cb48['length']&&_0x52429b[0x0]['end']['isEqual'](_0x11cb48[0x0]['start']),_0xf500f5=(_0x246912,_0xc325f,_0x504c04,_0x288af0)=>zt(_0x246912,_0xc325f,_0x504c04,_0x288af0)?[_0x246912,_0xc325f]:zt(_0xc325f,_0x246912,_0x288af0,_0x504c04)?[_0xc325f,_0x246912]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f85b3),this['_defaultCallbacks']['set']('insertion:discard',_0x5afefb),this['_defaultCallbacks']['set']('insertion:join',_0x51d90c),this['_defaultCallbacks']['set']('insertion:chain',_0xf500f5),this['_defaultCallbacks']['set']('deletion:accept',_0x5afefb),this['_defaultCallbacks']['set']('deletion:discard',_0x2f85b3),this['_defaultCallbacks']['set']('deletion:join',_0x51d90c),this['_defaultCallbacks']['set']('deletion:chain',_0xf500f5),this['_defaultCallbacks']['set']('formatInline:accept',_0x3bf3b2),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f85b3),this['_defaultCallbacks']['set']('formatInline:join',_0x51d90c),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f85b3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3bf3b2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f85b3),this['_defaultCallbacks']['set']('formatBlock:join',_0x51d90c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f85b3),this['_defaultCallbacks']['set']('attribute:accept',_0x2f85b3),this['_defaultCallbacks']['set']('attribute:discard',(_0x1a4b5c,_0x3da914)=>{if(!_0x3da914)return;const _0x56e45e=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x482f38=>{if(_0x3da914['key']==m)for(const _0x5f4ef8 of _0x1a4b5c){const _0x4bbed7=_0x5f4ef8['start']['nodeAfter'],_0x35759c=_0x3da914['oldValue'];_0x482f38['rename'](_0x4bbed7,_0x35759c);}else{if(_0x56e45e['_isBlockAttribute'](_0x3da914['key'])){for(const _0x3e3936 of _0x1a4b5c)void 0x0!==_0x3da914['oldValue']?_0x482f38['setAttribute'](_0x3da914['key'],_0x3da914['oldValue'],_0x3e3936['start']['nodeAfter']):_0x482f38['removeAttribute'](_0x3da914['key'],_0x3e3936['start']['nodeAfter']);}else{for(const _0x70855 of _0x1a4b5c)_0x3da914['oldValue']?_0x482f38['setAttribute'](_0x3da914['key'],_0x3da914['oldValue'],_0x70855):_0x482f38['removeAttribute'](_0x3da914['key'],_0x70855);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x51d90c);}}function Ft(_0x554038,_0x26e36d,_0x2c71b7){for(const _0x35a633 of _0x26e36d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x35a633['root']==_0x35a633)return!0x1;if(!_0x2c71b7['containsItem'](_0x35a633))return!0x1;if(_0x554038['isObject'](_0x35a633)||_0x554038['isLimit'](_0x35a633))return!0x0;}return!0x1;}function Pt(_0x5647e0){return _0x5647e0['end']['parent']==_0x5647e0['start']['nodeAfter']&&_0x5647e0['end']['isAtStart'];}function Gt(_0x271ebe,_0x36fdd7,_0x3b26e0,_0x580b2b){const _0x87a724=_0x1fbfa4=>!_0x1fbfa4['item']['is']('$textProxy')&&!_0x580b2b['isObject'](_0x1fbfa4['item']),_0xc16aea=_0x271ebe['start']['getLastMatchingPosition'](_0x87a724),_0x4a0e83=_0x271ebe['end']['getLastMatchingPosition'](_0x87a724,{'direction':'backward'});return(!_0x271ebe['start']['isEqual'](_0xc16aea)||!_0x271ebe['end']['isEqual'](_0x4a0e83))&&(_0xc16aea['isBefore'](_0x4a0e83)?_0x3b26e0['updateMarker'](_0x36fdd7,{'range':_0x3b26e0['createRange'](_0xc16aea,_0x4a0e83)}):_0x3b26e0['removeMarker'](_0x36fdd7),!0x0);}function Lt(_0x22ee3e){return _0xbc2c60(_0x22ee3e);}function Jt(_0x827d89){const _0x1ac8ec=_0x827d89['start']['nodeAfter'];return _0x1ac8ec&&_0x1ac8ec['is']('element');}function Kt(_0x58dfd1){return!Pt(_0x58dfd1)&&!function(_0x39bbb4){return _0x39bbb4['start']['parent']==_0x39bbb4['end']['nodeBefore']&&_0x39bbb4['start']['isAtEnd'];}(_0x58dfd1);}function Ht(_0xd8677c,_0xbb9d0d){return null==_0xd8677c['end']['nodeBefore']&&_0xd8677c['end']['parent']==_0xd8677c['start']['nodeAfter']?qt(_0xd8677c['start']['nodeAfter'],_0xbb9d0d):_0xd8677c;}function qt(_0x2debdf,_0x3121f6){const _0x42bba0=_0x3121f6['schema']['isObject'](_0x2debdf)||_0x3121f6['schema']['isSelectable'](_0x2debdf);return _0x3121f6['createRange'](_0x3121f6['createPositionAt'](_0x2debdf,'before'),_0x42bba0?_0x3121f6['createPositionAfter'](_0x2debdf):_0x3121f6['createPositionAt'](_0x2debdf,'end'));}function zt(_0x55c76f,_0x45f798,_0x16b0d4,_0x618410){return!!Wt(_0x55c76f,_0x45f798)&&_0x16b0d4['end']['isEqual'](_0x618410['start']);}function Wt(_0x18184c,_0x4c2425){if(!_0x18184c['_isDataLoaded']||!_0x4c2425['_isDataLoaded'])return!0x1;const _0x5509a4=new Set(Object['keys'](_0x18184c['attributes'])),_0x396613=new Set(Object['keys'](_0x4c2425['attributes']));if(_0x5509a4['delete']('groupId'),_0x396613['delete']('groupId'),0x0==_0x5509a4['size']&&0x0==_0x396613['size'])return!0x0;if(_0x5509a4['size']!=_0x396613['size'])return!0x1;const _0x5af0ab={..._0x18184c['attributes']},_0x55433a={..._0x4c2425['attributes']};return delete _0x5af0ab['groupId'],delete _0x55433a['groupId'],JSON['stringify'](_0x5af0ab)==JSON['stringify'](_0x55433a);}function Qt(_0x737f76,_0x840118){const _0x1c24e6=Xt(_0x737f76['attributes']),_0x411b3f=Xt(_0x840118);if(!_0x737f76['_isDataLoaded'])return!0x1;for(const _0x3f1bfa of Object['keys'](_0x411b3f))if(!_0xa9ae0d(_0x1c24e6[_0x3f1bfa],_0x411b3f[_0x3f1bfa]))return!0x1;return!0x0;}function Xt(_0x2a9438){const _0x301f68=Object['assign']({},_0x2a9438);return delete _0x301f68['skipNestingCheck'],delete _0x301f68['tablePasteChainId'],_0x301f68;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x3fc2b8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5df9e5,_0x46c86a,_0x564ae0,_0x118192){super(),this['model']=_0x46c86a,this['view']=_0x564ae0,this['commentThreadController']=_0x118192,this['_editor']=_0x5df9e5,this['_acceptCommand']=_0x5df9e5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5df9e5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x398c00,_0x1d9cc8)=>_0x398c00||_0x1d9cc8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5900d3=>_0x5900d3&&this['_editor']['model']['canEditAt'](_0x46c86a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x284aac=>_0x284aac&&this['_editor']['model']['canEditAt'](_0x46c86a['getRanges']())),this['_pendingAction']=null,_0x564ae0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x564ae0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x564ae0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x564ae0,'change:isDirty',()=>{_0x564ae0['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 _0x35030a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x35030a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x35a11f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x37f6a2,_0x310c88,_0x171972,_0x48ae01){super(_0x37f6a2),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3c1124(_0x37f6a2,o(_0x37f6a2,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x310c88['authoredAt']),this['bind']('authoredAt')['to'](_0x310c88),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',_0x310c88,'authoredAt',this,'descriptionParts',(_0x1b134,_0x57337b,_0x388a1c)=>{const _0xf14c13=_0x388a1c['map'](_0x2fd900=>ls(_0x2fd900['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1b134-0x1,_0x310c88['author']['name'],_0x57337b?_0x48ae01['formatDateTime'](_0x57337b):'',new DOMParser()['parseFromString'](_0xf14c13,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2aaa2e(),this['focusTracker']=new _0x4de76a(),this['keystrokes']=new _0x9aed25(),this['focusCycler']=new _0x551c69({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x175d35=>_0x175d35['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x310c88,this['_localUser']=_0x171972,this['_config']=_0x48ae01,_0x48ae01['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x22075b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xdf8693}=this['_config'];this['commentsListView']=new _0xdf8693(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',_0x1bbb9b=>_0x1bbb9b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x369834,_0x5516cf)=>_0x369834||!!_0x5516cf);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x148f1b}=this['_config'],_0x18be52=new _0x148f1b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x135105=_0x18be52['commentInputView'];return _0x18be52['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x135105,'value',(_0x30a2a7,_0x4887cd,_0x5b9488)=>!!_0x5b9488||_0x30a2a7&&!_0x4887cd),_0x135105['on']('submit',(_0x544256,_0x2c210c)=>{this['fire']('addComment',_0x2c210c),_0x135105['editor']['setData']('');}),_0x135105['on']('cancel',()=>this['focus']()),_0x135105['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x18be52;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x232e65,_0x264119,_0x434db2,_0x1463ca){super(_0x232e65,_0x264119,_0x434db2,_0x1463ca),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1b6e51=>_0x1b6e51&&_0x1b6e51[0x0]?_0x1b6e51[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3b9d6f,_0x528011)=>{let _0x589dc7='';for(const _0x4406a1 of _0x3b9d6f)_0x589dc7+='<p>'+ls(_0x4406a1['content'],_0x4406a1['color'])+'</p>';return _0x528011?_0x589dc7:_0x3a8827(_0x589dc7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1463ca['SuggestionView'](_0x232e65,_0x264119,{'formatDateTime':_0x1463ca['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 _0x4433ea=this['bindTemplate'],_0x56b4e4=[this['suggestionView']];return this['commentsListView']&&_0x56b4e4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x56b4e4['push'](this['commentThreadInputView']),_0x56b4e4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4433ea['if']('isActive','ck-suggestion-wrapper--active'),_0x4433ea['to']('type',_0x57c2c1=>'ck-suggestion-'+_0x57c2c1),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':_0x4433ea['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x56b4e4};}['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 _0x35a11f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x36f9d6,_0x4314a5,_0x2384f8){super(_0x36f9d6),this['_model']=_0x4314a5,this['_config']=_0x2384f8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4314a5),this['acceptButton']=this['_createButton'](o(_0x36f9d6,'Accept\x20suggestion'),_0x3f2156,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x36f9d6,'Discard\x20suggestion'),_0x3af5d3,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x48dda1(_0x36f9d6,_0x4314a5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2aaa2e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4de76a(),this['keystrokes']=new _0x9aed25(),this['focusCycler']=new _0x551c69({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x13351f=>_0x13351f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x474305=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x474305['innerHTML']=this['description'],this['on']('change:description',(_0xdad625,_0x2aa9f6,_0x5f215d)=>{_0x474305['innerHTML']=_0x5f215d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1fe711=this['bindTemplate'],_0x387ee5=[{'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':_0x1fe711['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1fe711['to']('authoredAt',_0x2b5540=>this['_config']['formatDateTime'](_0x2b5540))}]}]},{'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']&&_0x387ee5['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':_0x387ee5}]};}['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'](_0x5c1265,_0x1d47e2,_0x7e3a33,_0x1c6055,_0x57b33c){const _0x3c5671=new _0x2e1e89(this['locale']);return _0x3c5671['set']({'label':_0x5c1265,'icon':_0x1d47e2,'tooltip':!0x0,'tooltipPosition':_0x57b33c}),_0x3c5671['extendTemplate']({'attributes':{'class':_0x7e3a33}}),_0x3c5671['on']('execute',()=>{this['fire'](_0x1c6055,this['_model']['id']);}),_0x3c5671;}['_setupKeyboardNavigation'](){const _0x569316=this['element'];this['keystrokes']['listenTo'](_0x569316);for(const _0x220909 of this['focusables'])this['focusTracker']['add'](_0x220909['element']),this['keystrokes']['listenTo'](_0x220909['element']);this['keystrokes']['set']('enter',(_0x3bb402,_0x5e44c3)=>{_0x569316===_0x3bb402['target']&&(this['focusCycler']['focusFirst'](),_0x5e44c3());}),this['keystrokes']['set']('esc',(_0xc95410,_0x38c29c)=>{_0x569316!==_0xc95410['target']&&(this['focus'](),_0x38c29c());});}}class u extends _0x1cbbcf{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x88c9be,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18cdcc){super(_0x18cdcc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a38ea=this['editor']['config'];_0x4a38ea['define']('trackChanges.SuggestionThreadView',fe),_0x4a38ea['define']('trackChanges.SuggestionView',we),_0x4a38ea['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a38ea['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x44f706,_0x2a848c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1393f1,_0xd4935a]of this['_handleControllerBuffer']){const _0x17ce96=this['_suggestionToController']['has'](_0x1393f1);_0x17ce96||_0xd4935a?_0x17ce96&&_0xd4935a&&this['_destroyController'](_0x1393f1):this['_initializeController'](_0x1393f1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x44f706,_0x2a848c);}['init'](){const _0x4a09ca=this['editor'],_0x3ca180=_0x4a09ca['plugins']['get']('TrackChangesEditing'),_0x50ba09=_0x4a09ca['plugins']['get']('Annotations'),_0x4463ee=_0x4a09ca['plugins']['get']('EditorAnnotations'),_0x4b3731=_0x4a09ca['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4463ee['addSourceCollector'](()=>{const _0x332425=[];for(const [_0x2f0607,_0x4b0462]of Array['from'](this['_suggestionToController'])){const _0x4dd96d=_0x2f0607['getAllAdjacentSuggestions'](),_0x575305=[];for(const _0x31eedc of _0x4dd96d){if(!_0x31eedc['isInContent'])continue;if(_0x31eedc['isMultiRange']){_0x575305['push'](..._0x31eedc['getRanges']());continue;}const _0x464349=_0x31eedc['getFirstRange']();if(_0x575305['length']>0x0){const _0x2073ed=_0x575305[0x0]['getJoined'](_0x464349);if(_0x2073ed){_0x575305[0x0]=_0x2073ed;continue;}}_0x575305['push'](_0x464349);}_0x332425['push']([_0x4b0462['view'],_0x575305]);}return _0x332425;}),this['listenTo'](_0x3ca180,'suggestionLoaded',(_0x4ff729,_0x12dbb4)=>{this['listenTo'](_0x12dbb4,'change:previous',(_0x4c8285,_0x2083cc,_0x59035d,_0x295bc7)=>{_0x12dbb4['isInContent']&&(null==_0x59035d?(this['_updateController'](_0x295bc7['head']),this['_handleSuggestionControllerDelayed'](_0x12dbb4,!0x1)):(this['_updateController'](_0x59035d['head']),null==_0x295bc7&&this['_handleSuggestionControllerDelayed'](_0x12dbb4,!0x0)));}),null!==_0x12dbb4['previous']?this['_updateController'](_0x12dbb4['head']):this['_handleSuggestionControllerDelayed'](_0x12dbb4,!0x1);}),this['listenTo'](_0x3ca180,'suggestionUnloaded',(_0x6d28d1,_0x413a11,_0x20267b)=>{this['stopListening'](_0x413a11,'change:previous'),this['_handleControllerBuffer']['delete'](_0x413a11),this['_suggestionToController']['has'](_0x413a11)&&this['_destroyController'](_0x413a11),_0x20267b&&this['_updateController'](_0x20267b['head']);}),this['listenTo'](_0x3ca180,'suggestionChanged',(_0x1f3144,_0x3f4114)=>{this['_updateController'](_0x3f4114);}),this['listenTo'](_0x50ba09,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4b3731,'addComment',(_0x18575a,{threadId:_0x429927,isFromAdapter:_0x5e6979})=>{if(_0x5e6979||!_0x3ca180['hasSuggestion'](_0x429927))return;const _0x584b22=_0x3ca180['getSuggestion'](_0x429927);this['_suggestionToController']['get'](_0x584b22)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x516cab=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xec6ac3;for(const _0x2ca98d in _0x516cab){const _0x20a4ca=_0x2ca98d,_0x25b674=_0x516cab[_0x20a4ca];if('trackChangesLicenseKeyValid'==_0x25b674||'trackChangesLicenseKeyInvalid'==_0x25b674||'trackChangesLicenseKeyExpired'==_0x25b674||'trackChangesLicenseKeyDomainLimit'==_0x25b674||'trackChangesLicenseKeyNotAllowed'==_0x25b674||'trackChangesLicenseKeyEvaluationLimit'==_0x25b674||'trackChangesLicenseKeyTrialLimit'==_0x25b674||'trackChangesLicenseKeyUsageLimit'==_0x25b674){delete _0x516cab[_0x20a4ca],_0xec6ac3=_0x25b674,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xec6ac3&&_0x516cab['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xec6ac3&&_0x516cab['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xec6ac3&&_0x516cab['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xec6ac3&&_0x516cab['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xec6ac3&&_0x516cab['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xec6ac3&&_0x516cab['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xec6ac3&&_0x516cab['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5e62f0){const _0x68c005=this['_suggestionToController']['get'](_0x5e62f0);if(!_0x68c005)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x68c005['view'])||null;}['getSuggestionForAnnotation'](_0x1bd80c){const _0x133650=this['_viewToController']['get'](_0x1bd80c['innerView']);return _0x133650?_0x133650['model']:null;}['_refreshActiveMarkers'](){const _0x39172f=this['editor']['plugins']['get']('Annotations'),_0x37c1bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x418b45=Array['from'](_0x39172f['activeAnnotations'],_0x341ff0=>_0x341ff0['innerView'])['filter'](_0x177ae9=>this['_viewToController']['has'](_0x177ae9)),_0x511743=[];for(const _0x2eaf06 of _0x418b45){const _0x1bcbc8=this['_viewToController']['get'](_0x2eaf06)['model']['getAllAdjacentSuggestions']();_0x511743['push'](..._0x1bcbc8['reduce']((_0x585896,_0x1ab925)=>[..._0x585896,..._0x1ab925['getMarkerNames']()],[]));}_0x37c1bf['activeMarkers']=_0x511743;}['_addUIComponentsToFactory'](){const _0x5c5c16=this['editor'],_0x116e6a=_0x5c5c16['locale'],_0x4060b2=o(_0x116e6a,'Track\x20changes'),_0x1e0e65=new _0x221ec0([{'type':'switchbutton','model':new _0x218b38({'withText':!0x0,'isToggleable':!0x0,'label':_0x4060b2,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x218b38({'withText':!0x0,'label':o(_0x116e6a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x218b38({'withText':!0x0,'label':o(_0x116e6a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x218b38({'withText':!0x0,'label':o(_0x116e6a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x218b38({'withText':!0x0,'label':o(_0x116e6a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5c5c16['plugins']['has']('TrackChangesPreview')&&_0x1e0e65['addMany']([{'type':'separator'},{'type':'button','model':new _0x218b38({'withText':!0x0,'label':o(_0x116e6a,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x49915b of _0x1e0e65)if(ke(_0x49915b)){const _0x3e2e83=_0x5c5c16['commands']['get'](_0x49915b['model']['commandName']);_0x49915b['model']['bind']('isOn','isEnabled')['to'](_0x3e2e83,'value','isEnabled');}_0x5c5c16['ui']['componentFactory']['add']('trackChanges',_0x214355=>this['_createToolbarButton'](_0x214355,_0x1e0e65,_0x4060b2)),_0x5c5c16['ui']['componentFactory']['add']('menuBar:trackChanges',_0x16072c=>this['_createMenuBarMenu'](_0x16072c,_0x1e0e65,_0x4060b2));}['_createToolbarButton'](_0xce62d2,_0x372d0b,_0x44171a){const _0x1766d4=_0x3e7def(_0xce62d2,_0xb7b940),_0x1894bd=this['editor']['commands']['get']('trackChanges');_0x1766d4['buttonView']['set']({'tooltip':_0x44171a,'label':_0x44171a,'icon':_0x1cf270}),_0x1766d4['buttonView']['bind']('isOn')['to'](_0x1894bd,'value'),_0x1766d4['buttonView']['on']('execute',()=>{_0x1894bd['execute'](),this['editor']['editing']['view']['focus']();}),_0x11d3e8(_0x1766d4,_0x372d0b,{'role':'menu'});const _0x116f66=[];for(const _0x520b33 of _0x372d0b)ke(_0x520b33)&&_0x116f66['push'](this['editor']['commands']['get'](_0x520b33['model']['commandName']));const _0x264ad4=_0x1766d4['buttonView'];return _0x264ad4['actionView']['unbind']('isEnabled'),_0x264ad4['arrowView']['unbind']('isEnabled'),_0x264ad4['actionView']['bind']('isEnabled')['to'](_0x1894bd,'isEnabled'),_0x264ad4['arrowView']['bind']('isEnabled')['toMany'](_0x116f66,'isEnabled',(..._0x34e06c)=>_0x34e06c['some'](_0x22b054=>_0x22b054)),_0x1766d4['on']('execute',_0xd4caa1=>{this['editor']['execute'](_0xd4caa1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1766d4;}['_createMenuBarMenu'](_0x54db1a,_0x1e529c,_0xe8a659){const _0x311f9c=new _0x2c34c0(_0x54db1a),_0x53eed1=this['editor']['commands']['get']('trackChanges');_0x311f9c['buttonView']['set']({'label':_0xe8a659,'icon':_0x1cf270});const _0xbea56b=new _0x353ed1(_0x54db1a);for(const _0x1a5774 of _0x1e529c){if('separator'==_0x1a5774['type']){_0xbea56b['items']['add'](new _0x5af2ea(_0x54db1a));continue;}const _0x4db24b=new _0x325861(_0x54db1a,_0x311f9c),_0x56155e=new _0x250e60(_0x54db1a),_0x4b5fa9=_0x1a5774['model'];_0x56155e['bind'](...Object['keys'](_0x4b5fa9))['to'](_0x4b5fa9),_0x56155e['delegate']('execute')['to'](_0x311f9c),_0x56155e['on']('execute',()=>{this['editor']['execute'](_0x4b5fa9['commandName']),this['editor']['editing']['view']['focus']();}),_0x4db24b['children']['add'](_0x56155e),_0xbea56b['items']['add'](_0x4db24b);}return _0x311f9c['bind']('isEnabled')['to'](_0x53eed1,'isEnabled'),_0x311f9c['panelView']['children']['add'](_0xbea56b),_0x311f9c;}['_initializeController'](_0x26c4c5){const _0x3abab4=this['editor'],_0x1c8b83=_0x3abab4['config'],_0x3ede5b=_0x3abab4['plugins']['get']('Annotations'),_0x331d39=_0x3abab4['plugins']['get']('CommentsRepository'),_0x2885e6=_0x3abab4['plugins']['get']('EditorAnnotations'),_0x1ccfba=_0x3abab4['plugins']['get'](_0x88c9be)['me'],_0x38f8c9=_0x1c8b83['get']('trackChanges')['SuggestionThreadView'],_0x57f1ed=_0x1c8b83['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x42f6fd,CommentThreadInputView:_0x374387}=_0x3abab4['plugins']['get']('CommentsUI');let _0x4ea880,_0x5dc4f6,_0x140f22;this['_annotationViews']['has'](_0x26c4c5['id'])?(_0x5dc4f6=this['_annotationViews']['get'](_0x26c4c5['id']),_0x4ea880=_0x5dc4f6['mainView']):(_0x4ea880=new _0x38f8c9(_0x3abab4['locale'],_0x26c4c5,_0x1ccfba,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1c8b83['get']('comments.editorConfig'),'licenseKey':_0x1c8b83['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1c8b83['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1c8b83['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1c8b83['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1fddba(_0x1c8b83['get']('locale'),_0x3abab4['locale']),'CommentView':_0x1c8b83['get']('comments')['CommentView'],'CommentsListView':_0x42f6fd,'CommentThreadInputView':_0x374387,'SuggestionView':_0x57f1ed}),_0x4ea880['suggestionView']['acceptButton']['on']('execute',()=>{_0x3abab4['editing']['view']['focus']();}),_0x4ea880['suggestionView']['discardButton']['on']('execute',()=>{_0x3abab4['editing']['view']['focus']();}),_0x5dc4f6=_0x3ede5b['createAnnotationView'](this['editor']['locale'],_0x4ea880),_0x5dc4f6['bind']('isDirty')['to'](_0x4ea880,'isDirty'),_0x5dc4f6['bind']('length')['to'](_0x4ea880),_0x5dc4f6['bind']('type')['to'](_0x4ea880,'type',_0x386c01=>'suggestion-'+_0x386c01),_0x4ea880['on']('escape',()=>{_0x140f22['fire']('escape');}),this['_annotationViews']['set'](_0x26c4c5['id'],_0x5dc4f6));const _0xe49556=_0x331d39['createCommentThreadController'](_0x26c4c5['commentThread'],_0x4ea880),_0x206337=new pe(_0x3abab4,_0x26c4c5,_0x4ea880,_0xe49556),_0x439efe=_0x26c4c5['getAllAdjacentSuggestions']()['filter'](_0xaabcc=>_0xaabcc['isInContent']);_0x4ea880['descriptionParts']=_0x3abab4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x439efe),this['_suggestionToController']['set'](_0x26c4c5,_0x206337),this['_viewToController']['set'](_0x4ea880,_0x206337),_0x140f22=_0x3ede5b['createAnnotation']({'view':_0x5dc4f6,'target':()=>{const _0x5df07f=[],_0xb2eac9=_0x26c4c5['getAllAdjacentSuggestions']()['filter'](_0x508199=>_0x508199['isInContent']);for(const _0xdb75a0 of _0xb2eac9)_0x5df07f['push'](..._0xdb75a0['getMarkers']());return _0x3b6af2(_0x3abab4['editing'],_0x5df07f);},'type':()=>'suggestion-'+_0x206337['view']['type']}),_0x331d39['_bindAnnotationToEditors'](_0x4ea880,_0x140f22),_0x3ede5b['add'](_0x140f22),_0x2885e6['registerAnnotation'](_0x140f22);}['_destroyController'](_0x97f6b3){const _0x1e9620=this['editor']['plugins']['get']('CommentsRepository'),_0x1dce92=this['editor']['plugins']['get']('Annotations'),_0x45e163=this['_suggestionToController']['get'](_0x97f6b3),_0x8ec505=_0x45e163['view'],_0x2e55dc=_0x1dce92['getByInnerView'](_0x8ec505);_0x1e9620['_unbindEditors'](_0x8ec505),_0x2e55dc&&_0x1dce92['remove'](_0x2e55dc),this['_suggestionToController']['delete'](_0x97f6b3),this['_viewToController']['delete'](_0x8ec505),_0x45e163['destroy']();}['_updateController'](_0xcca86d){if(!_0xcca86d['isInContent']||!this['_suggestionToController']['has'](_0xcca86d))return;const _0x4b3a4c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34fa7b=this['_suggestionToController']['get'](_0xcca86d),_0x39b602=_0xcca86d['getAllAdjacentSuggestions']();_0x34fa7b['view']['descriptionParts']=_0x4b3a4c['descriptionFactory']['getDescriptions'](_0x39b602);}['destroy'](){for(const _0x1a09c3 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1a09c3);for(const _0x505b19 of this['_annotationViews']['values']())_0x505b19['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x11d106){return'model'in _0x11d106;}class Fe extends _0x1cbbcf{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3fa76f){this['editor']['plugins']['get'](d)['adapter']=_0x3fa76f;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x211870){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x211870);}['getSuggestions']({skipNotAttached:_0xe0735e=!0x1,toJSON:_0x6401ab=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0xe0735e,'toJSON':_0x6401ab});}['getSuggestion'](_0x42e880){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x42e880);}}const p=['Pagination'];class re extends _0x1cbbcf{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4bb37c=this['editor'];if(_0x4bb37c['config']['define']('trackChangesData.editorCreator',_0xb2c6b4=>{const _0x4bb9d8=_0x4bb37c['model']['document']['getRootNames']()['reduce']((_0x1ddf51,_0x5df1b2)=>(_0x1ddf51[_0x5df1b2]='',_0x1ddf51),{});return _0x4bb37c['constructor']['create'](_0x4bb9d8,_0xb2c6b4);}),'function'!=typeof _0x4bb37c['config']['get']('trackChangesData')['editorCreator'])throw new _0x547589('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x20850b){return P(this['editor'],!0x0,_0x20850b);}['getDataWithDiscardedSuggestions'](_0x4587f4){return P(this['editor'],!0x1,_0x4587f4);}}class Ge extends _0x1cbbcf{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x13eae6){function _0xd4312b(_0x9d90fd){return _0x9d90fd['map'](_0x2300ab=>String['fromCharCode'](_0x2300ab))['join']('');}super(_0x13eae6),this['result']='end',_0x13eae6[_0xd4312b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd4312b([0x76,0x69,0x65,0x77])][_0xd4312b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd4312b([0x61,0x75,0x74,0x6f]),_0x13eae6[_0xd4312b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xd4312b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd4312b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xd4312b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xd4312b([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function He(_0x125857){return void 0x0!==_0x125857['getRootsAttributes'];}async function P(_0x29d347,_0x4fea10,_0x5490b6){const _0x57244e=_0x46fd8f(_0x29d347,p);_0x57244e['plugins']['push'](d,Ge),_0x57244e['rootsAttributes']=He(_0x29d347)?_0x29d347['getRootsAttributes']():void 0x0;const _0x5ae8a6=document['createDocumentFragment'](),_0x4d8258=_0x29d347['config']['get']('trackChangesData')['editorCreator'],_0x4e48b9=await _0x4d8258(_0x57244e,()=>function(_0x18a0c9){const _0x3a35ed=document['createElement']('div');return _0x18a0c9['appendChild'](_0x3a35ed),_0x3a35ed;}(_0x5ae8a6));!function(_0x1af94b,_0x34e436){const _0x744d89=_0x1af94b['model']['document']['getRootNames']()['reduce']((_0xde298b,_0x362627)=>(_0xde298b[_0x362627]=_0x1af94b['data']['get']({'rootName':_0x362627}),_0xde298b),{}),_0x3fe454=_0x1af94b['plugins']['get']('Users')['users']['map'](_0x2deb30=>({'id':_0x2deb30['id'],'name':_0x2deb30['name']})),_0x2fc37d=_0x1af94b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x311caf=_0x1af94b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x49ed3c=_0x34e436['plugins']['get']('Users'),_0x34b5d5=_0x34e436['plugins']['get']('TrackChangesEditing'),_0x52e872=_0x34e436['plugins']['get']('CommentsRepository');for(const _0x55ed3c of _0x52e872['getCommentThreads']())_0x55ed3c['remove']();for(const _0x53ec9e of _0x3fe454)_0x49ed3c['getUser'](_0x53ec9e['id'])||_0x49ed3c['addUser'](_0x53ec9e);_0x49ed3c['me']||_0x49ed3c['useAnonymousUser']();for(const _0x37ab63 of _0x311caf)_0x52e872['addCommentThread'](_0x37ab63);for(const _0x4b0c78 of _0x2fc37d)_0x34b5d5['addSuggestionData'](_0x4b0c78);_0x34e436['data']['set'](_0x744d89);}(_0x29d347,_0x4e48b9),_0x4e48b9['execute'](_0x4fea10?'acceptAllSuggestions':'discardAllSuggestions');const _0x252d95=He(_0x4e48b9)?_0x4e48b9['getFullData'](_0x5490b6):_0x4e48b9['data']['get'](_0x5490b6);return await _0x4e48b9['destroy'](),_0x252d95;}class Me extends _0x35a11f{['options'];constructor(_0x58d5b3,_0x8aa532){super(_0x58d5b3),this['options']=_0x8aa532,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'](_0x3a9b19,_0x58ce80){if(!this['element'])return;const _0x4ee6cf=[];for(const [_0x200644,_0x3fa93e]of _0x3a9b19){const _0x67b6=document['createElement']('div');_0x67b6['setAttribute']('data-ck-root-name',_0x200644),_0x67b6['className']=_0x3fa93e['classes']+'\x20ck-track-changes-preview__root-container',_0x67b6['innerHTML']=_0x3fa93e['content'],_0x4ee6cf['push'](_0x67b6);}_0x58ce80(this['element'],_0x4ee6cf),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x4546ae{constructor(_0x24284d){super(_0x24284d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x110d5a=this['editor'],_0x6a6d5=_0x110d5a['locale'],_0x437dd6=_0x110d5a['plugins']['get']('Dialog');let _0xb1f07;const _0x45cfd6=function(_0x5ad7c0){const _0xea3c04={};if('editables'in _0x5ad7c0['ui']['view']){for(const [_0x17daa8,_0x2e7bff]of Object['entries'](_0x5ad7c0['ui']['view']['editables']))_0xea3c04[_0x17daa8]=_0x2e7bff['element'];}else _0xea3c04[_0x5ad7c0['model']['document']['getRootNames']()[0x0]]=_0x5ad7c0['ui']['view']['editable']['element'];return _0xea3c04;}(_0x110d5a),_0x5a5de1=function(_0x5e0447){let _0x34e98e=0x0;for(const _0x200239 of Object['values'](_0x5e0447))_0x34e98e=Math['max'](_0x34e98e,_0x200239['getBoundingClientRect']()['width']);let _0x30d843=0x0;for(const _0x54af2e of Object['values'](_0x5e0447))_0x30d843+=_0x54af2e['getBoundingClientRect']()['height'];const _0x1524c5=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x49698d=Math['min'](_0x30d843,_0x1524c5);return{'width':_0x34e98e,'height':_0x49698d};}(_0x45cfd6);_0x437dd6['show']({'id':'finalContentPreview','title':o(_0x6a6d5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x6a6d5,{'dialogRects':_0x5a5de1}),'onHide':()=>{_0xb1f07['detachFromDom']();},'onShow':()=>{_0x110d5a['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x27e114=>{const _0x54cb84=this['_standarizeRootsData'](_0x27e114,_0x110d5a,_0x45cfd6);_0x437dd6['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x54cb84,_0x110d5a['config']['get']('trackChanges.preview.renderFunction'));}),_0xb1f07=new _0x5c3462(_0x6a6d5,[_0x437dd6['view']]),_0xb1f07['attachToDom'](),_0xb1f07['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x110d5a['once']('destroy',()=>{_0xb1f07['detachFromDom']();});const _0x22ac54=_0x437dd6['view']['headerView']['class'];_0x437dd6['view']['headerView']['class']=_0x22ac54?_0x22ac54+'\x20ck-reset_all':'ck-reset_all',_0x437dd6['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x437dd6['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x42a7b6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x16b876=_0x42a7b6['previewMode'],_0x5a1b3f={};if('$labels'===_0x16b876){for(const _0x30f0b3 of _0x42a7b6['getMergeFieldsIds']())_0x5a1b3f[_0x30f0b3]=_0x42a7b6['getLabel'](_0x30f0b3)||_0x30f0b3;}else{const _0x4d7cf3='$defaultValues'===_0x16b876?_0x42a7b6['getDefaultValues']():_0x42a7b6['getDataSetValues'](_0x16b876,!0x0);for(const _0x156487 of Object['entries'](_0x4d7cf3)){const [_0x55b417,_0x1b5e28]=_0x156487;_0x5a1b3f[_0x55b417]=null!==_0x1b5e28?_0x1b5e28:_0x42a7b6['getLabel'](_0x55b417)||_0x55b417;}}return{'mergeFieldsData':_0x5a1b3f};}['_standarizeRootsData'](_0x5372bb,_0x49d338,_0x568f80){let _0x43dbb9;if('string'==typeof _0x5372bb){const _0x2e3486=_0x49d338['model']['document']['getRootNames']()[0x0];_0x43dbb9={[_0x2e3486]:_0x5372bb};}else _0x43dbb9=_0x5372bb;const _0x31e0ac=this['_fixMediaEmbeds'](_0x43dbb9,_0x49d338),_0x3257f1=function(_0x437a46,_0x204600){for(const [_0x49acca,_0x2ba846]of _0x437a46)_0x2ba846['classes']=_0x204600[_0x49acca]['classList']['value']['replace']('ck-focused','');return _0x437a46;}(this['_sortRoots'](_0x49d338)['reduce']((_0xaaeeca,_0x433445)=>(_0xaaeeca['push']([_0x433445,{'content':_0x31e0ac[_0x433445],'classes':''}]),_0xaaeeca),[]),_0x568f80);return _0x3257f1;}['_fixMediaEmbeds'](_0x19a615,_0x38b273){if(!_0x38b273['plugins']['has']('MediaEmbedEditing'))return _0x19a615;const _0x2fd17c=_0x38b273['plugins']['get']('MediaEmbedEditing');for(const [_0x5b883a,_0xa6cea7]of Object['entries'](_0x19a615)){const _0x3d2475=document['createElement']('div');_0x3d2475['innerHTML']=_0xa6cea7,(_0x3d2475['querySelectorAll']('figure.media')['forEach'](_0x50a69e=>{const _0x1630a3=_0x50a69e['querySelector']('oembed');if(_0x1630a3){const _0x249811=_0x1630a3['getAttribute']('url');if(_0x249811){const _0x52299c=_0x2fd17c['registry']['getMediaViewElement'](new _0x545c41(_0x38b273['editing']['view']['document']),_0x249811,{'elementName':'','renderForEditingView':!0x0}),_0x5d1671=document['createElement']('div');_0x5d1671['classList']['add']('ck-media__wrapper'),_0x52299c['render'](_0x5d1671,_0x38b273['editing']['view']['domConverter']),_0x1630a3['replaceWith'](_0x5d1671);}}}),_0x19a615[_0x5b883a]=_0x3d2475['innerHTML']);}return _0x19a615;}['_sortRoots'](_0x5e87b7){if(!function(_0x4e4420){return void 0x0!==_0x4e4420['getRootsAttributes'];}(_0x5e87b7))return _0x5e87b7['model']['document']['getRootNames']();const _0x23575b=[],_0x553daf=new Map();for(const _0x2aa447 of _0x5e87b7['model']['document']['getRootNames']()){const _0xf84e61=_0x5e87b7['editing']['view']['getDomRoot'](_0x2aa447)['getClientRects']()['item'](0x0);_0x23575b['push'](_0x2aa447),_0x553daf['set'](_0x2aa447,_0xf84e61);}return _0x23575b['sort']((_0x315976,_0x99ca82)=>{const _0x3146a7=_0x553daf['get'](_0x315976),_0x445f6b=_0x553daf['get'](_0x99ca82);return _0x3146a7['y']-_0x445f6b['y']||_0x3146a7['x']-_0x445f6b['x'];}),_0x23575b;}}class $e extends _0x1cbbcf{static get['requires'](){return[re,_0x1028e8];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49dde0){super(_0x49dde0),_0x49dde0['commands']['add']('previewFinalContent',new te(this['editor'])),_0x49dde0['config']['define']('trackChanges.preview.renderFunction',(_0x2ee944,_0x207624)=>{for(const _0x4401e7 of _0x207624)_0x2ee944['appendChild'](_0x4401e7);});}}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,$e as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};