@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250626.0 → 0.0.0-nightly-20250628.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/build/track-changes.js +2 -2
  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/lang/contexts.json +1 -0
  150. package/lang/translations/en.po +4 -0
  151. package/package.json +27 -27
  152. package/src/commands/acceptsuggestioncommand.js +1 -1
  153. package/src/commands/discardsuggestioncommand.js +1 -1
  154. package/src/commands/executeonallsuggestionscommand.js +1 -1
  155. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  156. package/src/commands/previewfinalcontentcommand.js +1 -1
  157. package/src/commands/trackchangescommand.js +1 -1
  158. package/src/index.js +1 -1
  159. package/src/integrations/aiassistant.js +1 -1
  160. package/src/integrations/alignment.js +1 -1
  161. package/src/integrations/basicstyles.js +1 -1
  162. package/src/integrations/blockquote.js +1 -1
  163. package/src/integrations/bookmark.js +1 -1
  164. package/src/integrations/casechange.js +1 -1
  165. package/src/integrations/ckbox.js +1 -1
  166. package/src/integrations/codeblock.js +1 -1
  167. package/src/integrations/comments.js +1 -1
  168. package/src/integrations/deletecommand.js +1 -1
  169. package/src/integrations/emoji.js +1 -1
  170. package/src/integrations/entercommand.js +1 -1
  171. package/src/integrations/findandreplace.js +1 -1
  172. package/src/integrations/font.js +1 -1
  173. package/src/integrations/formatpainter.js +1 -1
  174. package/src/integrations/heading.js +1 -1
  175. package/src/integrations/highlight.js +1 -1
  176. package/src/integrations/horizontalline.js +1 -1
  177. package/src/integrations/htmlembed.js +1 -1
  178. package/src/integrations/image.js +1 -1
  179. package/src/integrations/imagereplace.js +1 -1
  180. package/src/integrations/imagestyle.js +1 -1
  181. package/src/integrations/importword.js +1 -1
  182. package/src/integrations/indent.js +1 -1
  183. package/src/integrations/inputcommand.js +1 -1
  184. package/src/integrations/legacylist.js +1 -1
  185. package/src/integrations/legacylistproperties.js +1 -1
  186. package/src/integrations/lineheight.d.ts +17 -0
  187. package/src/integrations/lineheight.js +23 -0
  188. package/src/integrations/link.js +1 -1
  189. package/src/integrations/list.js +1 -1
  190. package/src/integrations/listproperties.js +1 -1
  191. package/src/integrations/mediaembed.js +1 -1
  192. package/src/integrations/mention.js +1 -1
  193. package/src/integrations/mergefields.js +1 -1
  194. package/src/integrations/multilevellist.js +1 -1
  195. package/src/integrations/pagebreak.js +1 -1
  196. package/src/integrations/paragraph.js +1 -1
  197. package/src/integrations/removeformat.js +1 -1
  198. package/src/integrations/replacesourcecommand.js +1 -1
  199. package/src/integrations/restrictededitingmode.js +1 -1
  200. package/src/integrations/shiftentercommand.js +1 -1
  201. package/src/integrations/standardeditingmode.js +1 -1
  202. package/src/integrations/style.js +1 -1
  203. package/src/integrations/table.js +1 -1
  204. package/src/integrations/tablecaption.js +1 -1
  205. package/src/integrations/tableclipboard.js +2 -2
  206. package/src/integrations/tablecolumnresize.js +1 -1
  207. package/src/integrations/tableheadings.js +1 -1
  208. package/src/integrations/tablelayout.js +1 -1
  209. package/src/integrations/tablemergesplit.js +1 -1
  210. package/src/integrations/tableofcontents.js +1 -1
  211. package/src/integrations/tableproperties.js +1 -1
  212. package/src/integrations/template.js +1 -1
  213. package/src/integrations/title.js +1 -1
  214. package/src/integrations/undo.js +1 -1
  215. package/src/integrations/uploadcare.js +1 -1
  216. package/src/integrations/utils.js +1 -1
  217. package/src/suggestion.js +2 -2
  218. package/src/suggestiondescriptionfactory.js +1 -1
  219. package/src/trackchanges.js +1 -1
  220. package/src/trackchangesdata.js +1 -1
  221. package/src/trackchangesediting.d.ts +2 -1
  222. package/src/trackchangesediting.js +1 -1
  223. package/src/trackchangespreview.js +1 -1
  224. package/src/trackchangesui.js +1 -1
  225. package/src/ui/suggestioncontroller.js +2 -2
  226. package/src/ui/view/basesuggestionthreadview.js +1 -1
  227. package/src/ui/view/suggestionthreadview.js +1 -1
  228. package/src/ui/view/suggestionview.js +1 -1
  229. package/src/ui/view/trackchangespreviewview.js +1 -1
  230. package/src/utils/common-translations.js +1 -1
  231. 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 _0x9ddc2d,Plugin as _0x2d2df5,PendingActions as _0x486ab3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2ee34d,ObservableMixin as _0x17806b,uid as _0x1e8ea4,priorities as _0x265039,insertToPriorityArray as _0x22fc59,toArray as _0x45ec1c,logWarning as _0x14733b,getEnvKeystrokeText as _0x4ca4c6,FocusTracker as _0xe850d5,KeystrokeHandler as _0x17a04f,Collection as _0x1b78ae}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xfa6fc7,IconCancel as _0x42c378,IconTrackChanges as _0x3a3e19}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x435dc5,View as _0x4ac557,ViewCollection as _0x101552,FocusCycler as _0x40d377,UIModel as _0x386c58,createDropdown as _0x3b91f4,SplitButtonView as _0x30fac6,addListToDropdown as _0x2a7020,MenuBarMenuView as _0x227fca,MenuBarMenuListView as _0x5dcff2,ListSeparatorView as _0x2b1037,MenuBarMenuListItemView as _0x48503d,MenuBarMenuListItemButtonView as _0x329407,BodyCollection as _0x4810f2,Dialog as _0x535cd2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1382a8,hashObject as _0xf57b3c,surroundingMarkersDetector as _0x47d843,FOCUS_ANNOTATION_KEYSTROKE as _0x4a9680,AriaDescriptionView as _0x8b01af,setupThreadKeyboardNavigation as _0x465d8d,trimHtml as _0x9dde2,UserView as _0x4f182a,LateFocusButtonView as _0x290e03,getDateTimeFormatter as _0x49a66c,getAllMarkersDomElementsSorted as _0x3de0c9,sanitizeEditorConfig as _0x26c5c9}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x464918,ModelLiveRange as _0x4ee832,ModelLivePosition as _0x2804e0,ViewDowncastWriter as _0x58597b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3883fa,toWidget as _0x3e4922}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x171059,set as _0x555b47,isEqual as _0x163c93,unset as _0x4009fb,omit as Rt}from'es-toolkit/compat';import{Delete as _0x5ee86e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x26ebff}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x585480}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x9ddc2d{['_enabledCommands'];constructor(_0x551081,_0x207d7f){super(_0x551081),this['_enabledCommands']=_0x207d7f,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 _0x4d8337 of this['editor']['commands']['commands']())_0x4d8337['affectsData']&&!this['_enabledCommands']['has'](_0x4d8337)&&_0x4d8337['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5ef68f of this['editor']['commands']['commands']())_0x5ef68f['affectsData']&&!this['_enabledCommands']['has'](_0x5ef68f)&&_0x5ef68f['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x9ddc2d{['_suggestions'];constructor(_0x3c4b26,_0x5d1381){super(_0x3c4b26),this['_suggestions']=_0x5d1381,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x6bdd2e){const _0x534a39=this['_suggestions']['get'](_0x6bdd2e);if(!_0x534a39)throw new _0x2ee34d('track-changes-accept-suggestion-not-found',this);const _0x672639=_0x534a39['getRanges']();this['editor']['model']['canEditAt'](_0x672639)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x534a39);}}class M extends _0x9ddc2d{['_suggestions'];constructor(_0x48f6ee,_0x1a68b3){super(_0x48f6ee),this['_suggestions']=_0x1a68b3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4bd2e6){const _0x3352c5=this['_suggestions']['get'](_0x4bd2e6);if(!_0x3352c5)throw new _0x2ee34d('track-changes-discard-suggestion-not-found',this);const _0x2afbcc=_0x3352c5['getRanges']();this['editor']['model']['canEditAt'](_0x2afbcc)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3352c5);}}function ls(_0x324d84,_0x1e2781){let _0x2bf845='';return _0x2bf845+=_0x324d84['split']('*')['map']((_0x1390c6,_0x993fba)=>_0x993fba%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Xt(_0x1390c6)+'</span>':Xt(_0x1390c6))['join'](''),_0x1e2781&&(_0x2bf845+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1e2781['value']+'\x22\x20title=\x22'+_0x1e2781['title']+'\x22></span>'),_0x2bf845;}function Xt(_0x136f45){const _0x2572e1=document['createElement']('span');return _0x2572e1['innerText']=_0x136f45,_0x2572e1['innerHTML'];}function ts(_0x737652){return _0x737652['sort']((_0x514ffe,_0x7758ba)=>'attribute'===_0x514ffe['type']&&'attribute'!==_0x7758ba['type']?-0x1:'attribute'!==_0x514ffe['type']&&'attribute'===_0x7758ba['type']?0x1:'deletion'==_0x514ffe['type']&&'deletion'!=_0x7758ba['type']?-0x1:'deletion'!=_0x514ffe['type']&&'deletion'==_0x7758ba['type']?0x1:0x0);}function to(_0x3ed1b2,_0x5ea778){let _0x539036,_0x730c44=0x0;const _0x1243d9=[],_0x30f1a2=_0x5ea778['schema'];for(;_0x730c44<_0x3ed1b2['length'];){const _0x1e03a9=_0x3ed1b2[_0x730c44],_0x305925=_0x3ed1b2[_0x730c44+0x1];_0x539036||(_0x539036=_0x5ea778['createPositionBefore'](_0x1e03a9)),Yt(_0x5ea778,_0x1e03a9,_0x305925)||(_0x1243d9['push'](_0x5ea778['createRange'](_0x539036,_0x30f1a2['isObject'](_0x1e03a9)?_0x5ea778['createPositionAfter'](_0x1e03a9):_0x5ea778['createPositionAt'](_0x1e03a9,'end'))),_0x539036=null),_0x730c44++;}return _0x1243d9;}function Yt(_0x3c42f4,_0x4d92ff,_0x1d986a){if(!_0x1d986a)return!0x1;const _0x22c5db=_0x3c42f4['createPositionAfter'](_0x4d92ff),_0x331d88=_0x3c42f4['createPositionBefore'](_0x1d986a);return _0x22c5db['isTouching'](_0x331d88);}function rs(_0x42d691,_0x320288,_0x45eb1f){for(;_0x45eb1f['length'];){const _0x13bf3a=_0x45eb1f['splice'](0x0,0x64);_0x42d691['change'](()=>{for(const _0x109c2f of _0x13bf3a)_0x109c2f['isInContent']&&_0x320288['execute'](_0x109c2f['id']);});}}class $ extends _0x9ddc2d{['_command'];['_suggestions'];constructor(_0x32fbbc,_0x2b57e8,_0x8982cc){super(_0x32fbbc),this['_command']=_0x2b57e8,this['_suggestions']=_0x8982cc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x31ba94=Array['from'](this['_suggestions']['values']())['some'](_0xc1a190=>_0xc1a190['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x31ba94;}['execute'](){const _0x5060f5=ts(Array['from'](this['_suggestions']['values']()));for(const _0x13f0fc of _0x5060f5){const _0xebb7f1=_0x13f0fc['getRanges']();if(!this['editor']['model']['canEditAt'](_0xebb7f1))return;}rs(this['editor']['model'],this['_command'],_0x5060f5);}}class B extends _0x9ddc2d{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x15b704,_0x2d57eb,_0x1b8271){super(_0x15b704),this['_command']=_0x2d57eb,this['_suggestions']=_0x1b8271,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1cb8ae=this['editor']['model']['document']['selection'],_0x20f429=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3ce933,_0xc3c601){const _0x43c857=Array['from'](_0x3ce933['getRanges']()),_0x56d10c=new Set();for(const _0x3e7235 of _0xc3c601)if(_0x3e7235['isInContent']){for(const _0x1d9a28 of _0x43c857)for(const _0x395fef of _0x3e7235['getRanges']())(_0x1d9a28['isIntersecting'](_0x395fef)||_0x3ce933['isCollapsed']&&!_0x3e7235['isMultiRange']&&_0x3e7235['next']&&_0x395fef['end']['isTouching'](_0x1d9a28['start']))&&_0x56d10c['add'](_0x3e7235);}return _0x56d10c;}(_0x1cb8ae,_0x20f429),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x32066a=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3d94c4 of _0x32066a){const _0x4a16c9=_0x3d94c4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a16c9))return;}rs(this['editor']['model'],this['_command'],_0x32066a);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x17806b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x34fc76,_0x2c3d69){super(),this['id']=_0x2c3d69['id'],this['type']=_0x2c3d69['type'],this['subType']=_0x2c3d69['subType']||null,this['author']=_0x2c3d69['author'],this['creator']=_0x2c3d69['creator']||_0x2c3d69['author'],this['isExternal']=Boolean(_0x2c3d69['attributes']&&_0x2c3d69['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2c3d69['originalSuggestionId']||null,this['_model']=_0x34fc76,this['_onAccept']=_0x2c3d69['onAccept'],this['_onDiscard']=_0x2c3d69['onDiscard'],this['_onAttributesChange']=_0x2c3d69['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2c3d69['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 _0x53a8a9=this;for(;_0x53a8a9['previous'];)_0x53a8a9=_0x53a8a9['previous'];return _0x53a8a9;}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'](_0x11b68a){this['_markerNames']['add'](_0x11b68a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x307604=>this['_model']['markers']['get'](_0x307604))['filter'](_0x3bb1d3=>_0x3bb1d3);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x49f20d=>{for(const _0x380d89 of this['getMarkers']())_0x49f20d['removeMarker'](_0x380d89);}),this['_markerNames']['clear']();}['removeMarker'](_0x376c22){this['_model']['change'](_0x52094e=>{_0x52094e['removeMarker'](_0x376c22);}),this['_markerNames']['delete'](_0x376c22);}['addRange'](_0x24260f){const _0x175690='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x175690),this['_model']['change'](_0x3eeae0=>{_0x3eeae0['addMarker'](_0x175690,{'range':_0x24260f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4195fb){for(const _0x23c736 of this['getRanges']())if(_0x23c736['isIntersecting'](_0x4195fb))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2eaed9=>_0x2eaed9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x487c10,_0x5cdf26)=>[..._0x487c10,..._0x5cdf26['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1ba8fe=this['getRanges']();if(0x1!=_0x1ba8fe['length'])return null;const _0x4cd500=_0x1ba8fe[0x0],_0x182665=_0x4cd500['start']['nodeAfter'],_0x4a26ed=_0x4cd500['end']['nodeBefore'];return _0x182665 instanceof _0x464918?_0x182665!=_0x4a26ed?null:_0x182665: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 _0x38c344=[];let _0x1d64fd=this['head'];for(;_0x1d64fd;)_0x38c344['push'](_0x1d64fd),_0x1d64fd=_0x1d64fd['next'];return _0x38c344;}['setAttribute'](_0x37751d,_0x227bc2){const _0x7117e5=_0x171059(this['attributes']);_0x555b47(_0x7117e5,_0x37751d,_0x227bc2),_0x163c93(_0x7117e5,this['attributes'])||(this['attributes']=_0x7117e5,this['_onAttributesChange'](_0x7117e5));}['removeAttribute'](_0x22d8bc){const _0x3ae194=_0x171059(this['attributes']);_0x4009fb(_0x3ae194,_0x22d8bc),_0x163c93(_0x3ae194,this['attributes'])||(this['attributes']=_0x3ae194,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 _0x1e8ea4()['substr'](0x1,0x5);}}function o(_0x80baa6,_0x3b22d1,_0x318f4f){const _0x403b08=_0x80baa6['t'],t=_0x80baa6['t'];switch(_0x3b22d1){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',_0x318f4f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x318f4f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x318f4f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x318f4f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x318f4f);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',_0x318f4f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x318f4f);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',_0x318f4f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x318f4f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x318f4f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x318f4f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x318f4f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x318f4f);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x318f4f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x318f4f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x318f4f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x318f4f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x318f4f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x318f4f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x318f4f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x318f4f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x318f4f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x318f4f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x318f4f);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x318f4f);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'},_0x318f4f);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x318f4f);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x318f4f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x318f4f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x318f4f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x318f4f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x318f4f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x318f4f);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'},_0x318f4f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x318f4f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x318f4f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x318f4f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x318f4f);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'},_0x318f4f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x318f4f);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'},_0x318f4f);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'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'},_0x318f4f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x318f4f);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'},_0x318f4f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x318f4f);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'},_0x318f4f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x318f4f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x318f4f);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'},_0x318f4f);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x318f4f);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 _0x403b08({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x318f4f);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x403b08({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x318f4f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x318f4f);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'},_0x318f4f);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'},_0x318f4f);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'},_0x318f4f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3b22d1;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xc26b5b,_0x1500d5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xc26b5b,this['_locale']=_0x1500d5;}['getDescriptions'](_0xbd9093){const _0x12fb30=[],_0x237d61=new Set(),_0x1a27c6=new Set();for(let _0x215fc4=0x0;_0x215fc4<_0xbd9093['length'];_0x215fc4++){const _0x3b68a4=_0xbd9093[_0x215fc4];if(!_0x3b68a4['isInContent'])continue;const _0x5923d7=this['_handleCustomCallbackDescription'](_0x3b68a4);if(_0x5923d7){if(null!=_0x3b68a4['subType']){if(_0x237d61['has'](_0x3b68a4['subType']))continue;_0x237d61['add'](_0x3b68a4['subType']);}_0x12fb30['push'](_0x5923d7);}else{if('attribute'==_0x3b68a4['type']){const _0x3778d6=_0x3b68a4['data']['key'];if(_0x1a27c6['has'](_0x3778d6))continue;_0x1a27c6['add'](_0x3b68a4['data']['key']),_0x3778d6==m?this['_handleRenameSuggestionDescription'](_0x12fb30,_0x3b68a4):this['_handleAttributeSuggestionDescription'](_0x12fb30,_0x3b68a4);continue;}'insertion'!=_0x3b68a4['type']&&'deletion'!=_0x3b68a4['type']||this['_handleInsertRemoveSuggestionDescription'](_0x12fb30,_0x3b68a4,_0xbd9093[_0x215fc4+0x1]);}}return this['_resolveDescriptionItems'](_0x12fb30);}['registerDescriptionCallback'](_0x1435d4){this['_customCallbacks']['push'](_0x1435d4);}['registerElementLabel'](_0x4340c8,_0x34e536,_0x5cdc9b=_0x265039['normal']){'function'==typeof _0x4340c8?_0x22fc59(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4340c8,'label':_0x34e536,'priority':_0x5cdc9b}):this['_itemLabels']['set'](_0x4340c8,_0x34e536);}['registerAttributeLabel'](_0x499185,_0x4fb437){this['_attributeLabels']['set'](_0x499185,_0x4fb437);}['getItemLabel'](_0x78ecbd,_0x43f6e8=0x1){let _0x52428b;for(const _0x5e77b7 of this['_itemLabelsCallbacks'])if(_0x5e77b7['matchingCallback'](_0x78ecbd)){_0x52428b=_0x5e77b7['label'];break;}return _0x52428b||(_0x52428b=this['_itemLabels']['get'](_0x78ecbd['name'])),_0x52428b?_0x52428b(_0x43f6e8):0x1!==_0x43f6e8?_0x43f6e8+'\x20'+_0x78ecbd['name']+'s':''+_0x78ecbd['name'];}['_addDescriptionItems'](_0x2d55f5,_0x14710e){const _0x55d3ee=_0x14710e['getFirstRange']()['getWalker'](),_0x562c51='insertion'==_0x14710e['type']?'add':'remove';for(const _0x3af79c of _0x55d3ee){const _0xfe01f8=_0x3af79c['item'],_0x24bf46=_0x2d55f5[_0x2d55f5['length']-0x1];if(_0xfe01f8['is']('$textProxy'))_0x24bf46&&_0x24bf46['type']['indexOf']('Container')>-0x1&&_0x2d55f5['pop'](),_0x24bf46&&'text'==_0x24bf46['type']?_0x24bf46[_0x562c51]+=_0xfe01f8['data']:_0x2d55f5['push']({'type':'text','add':'add'==_0x562c51?_0xfe01f8['data']:'','remove':'remove'==_0x562c51?_0xfe01f8['data']:''});else{if(this['_schema']['isObject'](_0xfe01f8)){const _0x5c7c08=_0xfe01f8;if(_0x24bf46&&_0x24bf46['type']['indexOf']('Container')>-0x1&&_0x2d55f5['pop'](),'elementEnd'==_0x3af79c['type'])continue;_0x24bf46&&_0x24bf46['type']==_0x562c51+'Object'&&_0x24bf46['element']['name']==_0x5c7c08['name']?_0x24bf46['quantity']++:_0x2d55f5['push']({'type':_0x562c51+'Object','element':_0x5c7c08,'quantity':0x1}),_0x55d3ee['skip'](_0x132d6d=>!('elementEnd'==_0x132d6d['type']&&_0x132d6d['item']==_0xfe01f8));}else{if(this['_schema']['checkChild'](_0xfe01f8,'$text')||_0xfe01f8['is']('element','softBreak')){const _0x2e99de=_0xfe01f8;if('add'==_0x562c51&&'elementStart'==_0x3af79c['type']||'remove'==_0x562c51&&'elementEnd'==_0x3af79c['type'])continue;if(_0x24bf46&&-0x1==_0x24bf46['type']['indexOf']('Container')){'text'==_0x24bf46['type']&&(_0x24bf46[_0x562c51]+='\x0a');continue;}let _0x1203fb;if(_0x1203fb='add'==_0x562c51?_0x2e99de['nextSibling']&&!this['_schema']['isObject'](_0x2e99de['nextSibling'])?_0x2e99de['nextSibling']:null:_0x2e99de['previousSibling']&&!this['_schema']['isObject'](_0x2e99de['previousSibling'])?_0x2e99de['previousSibling']:null,_0x2e99de['isEmpty']||_0x1203fb&&_0x1203fb['isEmpty']){const _0xb7f3c3=_0x1203fb&&_0x1203fb['isEmpty']?_0x1203fb:_0x2e99de;_0x24bf46&&_0x24bf46['type']==_0x562c51+'EmptyContainer'&&_0x24bf46['element']['name']==_0xb7f3c3['name']?_0x24bf46['quantity']++:_0x2d55f5['push']({'type':_0x562c51+'EmptyContainer','element':_0xb7f3c3,'quantity':0x1});}else _0x2d55f5['push']({'type':_0x562c51+'Container','element':_0x2e99de});}}}}}['_resolveDescriptionItems'](_0x360f8d){const _0x56b9e1=this['_locale'],_0x1751da=[],_0x43194d=[],_0x488ce1=[];for(const _0x18073d of _0x360f8d)switch(_0x18073d['type']){case'text':if(_0x18073d['add']=_0x18073d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x18073d['remove']=_0x18073d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x18073d['add']&&''!=_0x18073d['remove']){_0x1751da['push']({'type':'replace','content':o(_0x56b9e1,'REPLACE_TEXT',['\x22'+_0x18073d['remove']+'\x22','\x22'+_0x18073d['add']+'\x22'])});continue;}if(null!=_0x18073d['add']['match'](/^ +$/)){_0x1751da['push']({'type':'insertion','content':o(_0x56b9e1,'*Insert:*\x20%0',o(_0x56b9e1,'ELEMENT_SPACE',_0x18073d['add']['length']))});continue;}if(null!=_0x18073d['remove']['match'](/^ +$/)){_0x1751da['push']({'type':'deletion','content':o(_0x56b9e1,'*Remove:*\x20%0',o(_0x56b9e1,'ELEMENT_SPACE',_0x18073d['remove']['length']))});continue;}if(''!=_0x18073d['add']){_0x1751da['push']({'type':'insertion','content':o(_0x56b9e1,'*Insert:*\x20%0','\x22'+_0x18073d['add']+'\x22')});continue;}_0x1751da['push']({'type':'deletion','content':o(_0x56b9e1,'*Remove:*\x20%0','\x22'+_0x18073d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1751da['push']({'type':'insertion','content':o(_0x56b9e1,'*Insert:*\x20%0',this['getItemLabel'](_0x18073d['element'],_0x18073d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1751da['push']({'type':'deletion','content':o(_0x56b9e1,'*Remove:*\x20%0',this['getItemLabel'](_0x18073d['element'],_0x18073d['quantity']))});continue;case'addContainer':_0x1751da['push']({'type':'insertion','content':o(_0x56b9e1,'*Split:*\x20%0',this['getItemLabel'](_0x18073d['element'],_0x18073d['quantity']))});continue;case'removeContainer':_0x1751da['push']({'type':'deletion','content':o(_0x56b9e1,'*Merge:*\x20%0',this['getItemLabel'](_0x18073d['element'],_0x18073d['quantity']))});continue;case'addFormat':_0x43194d['push'](_0x18073d['key']);continue;case'removeFormat':_0x488ce1['push'](_0x18073d['key']);continue;default:_0x1751da['push'](_0x18073d);}if(_0x43194d['length']){const _0x4650f6=_0x43194d['map'](_0xb7c5f4=>this['_attributeLabels']['has'](_0xb7c5f4)?this['_attributeLabels']['get'](_0xb7c5f4):_0xb7c5f4)['join'](',\x20');_0x1751da['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4650f6)});}if(_0x488ce1['length']){const _0x4eb61f=_0x488ce1['map'](_0x161f0f=>this['_attributeLabels']['has'](_0x161f0f)?this['_attributeLabels']['get'](_0x161f0f):_0x161f0f)['join'](',\x20');_0x1751da['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4eb61f)});}return _0x1751da;}['_handleCustomCallbackDescription'](_0x21ef69){for(const _0x2ca118 of this['_customCallbacks']){const _0x1b0109=_0x2ca118(_0x21ef69);if(_0x1b0109&&'type'in _0x1b0109)return _0x1b0109;}}['_handleAttributeSuggestionDescription'](_0x44ec19,_0x2d4658){const _0x1d5579=_0x2d4658['data'],_0x1456fb=void 0x0===_0x1d5579['newValue']?'removeFormat':'addFormat';_0x44ec19['push']({'type':_0x1456fb,'key':_0x1d5579['key']});}['_handleRenameSuggestionDescription'](_0x222538,_0x1f5d7){_0x222538['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1f5d7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xc292b4,_0x5bc13d,_0x4d5c8a){if(this['_addDescriptionItems'](_0xc292b4,_0x5bc13d),_0x4d5c8a&&_0x4d5c8a['getFirstRange']()&&!_0x5bc13d['getFirstRange']()['end']['isEqual'](_0x4d5c8a['getFirstRange']()['start'])){const _0x15b701=_0xc292b4[_0xc292b4['length']-0x1],_0x58ed93='insertion'==_0x5bc13d['type']?'add':'remove';_0x15b701&&'text'==_0x15b701['type']&&(_0x15b701[_0x58ed93]+='\x0a');}}}class O extends _0x2d2df5{['afterInit'](){const _0x5ac7fd=this['editor'],_0x3ce28f=_0x5ac7fd['plugins']['get']('TrackChangesEditing');_0x5ac7fd['commands']['get']('showAIAssistant')&&_0x3ce28f['enableCommand']('showAIAssistant');}}class E extends _0x2d2df5{['afterInit'](){const _0x355db8=this['editor'],_0x4e40a4=_0x355db8['locale'];if(!_0x355db8['plugins']['has']('AlignmentEditing'))return;const _0x3d6991=_0x355db8['plugins']['get']('TrackChangesEditing');_0x3d6991['enableDefaultAttributesIntegration']('alignment'),_0x3d6991['registerBlockAttribute']('alignment'),_0x3d6991['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4e40a4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e7962=this['editor'],_0x23906e=_0x2e7962['locale'];_0x2e7962['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cdd50=>{if('formatBlock'!=_0x5cdd50['type'])return;const {data:_0x52b745}=_0x5cdd50;if(_0x52b745&&'alignment'==_0x52b745['commandName']){const _0x589d9b=_0x52b745['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x23906e,'*Format:*\x20%0',function(_0x441945){switch(_0x441945){case'left':return o(_0x23906e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x23906e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x23906e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x23906e,'FORMAT_JUSTIFY_TEXT');}}(_0x589d9b))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x2d2df5{['afterInit'](){const _0x142880=this['editor'],_0x305699=_0x142880['plugins']['get']('TrackChangesEditing'),_0x2602d2=_0x142880['locale'];for(const _0x1551b2 of Zt){if(!_0x142880['plugins']['has'](_0x1551b2))continue;const _0x366905=_0x1551b2['slice'](0x0,-0x7)['toLowerCase'](),_0x1d7cc0='FORMAT_'+_0x366905['toUpperCase']();_0x305699['enableDefaultAttributesIntegration'](_0x366905),_0x305699['registerInlineAttribute'](_0x366905),_0x305699['descriptionFactory']['registerAttributeLabel'](_0x366905,o(_0x2602d2,_0x1d7cc0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f6b42=this['editor'],_0x380e20=_0x3f6b42['locale'],_0x13139d=_0x3f6b42['plugins']['get']('TrackChangesEditing');function _0x4ebdd8(_0x55a1cd,_0x3d0d48){_0x13139d['descriptionFactory']['registerDescriptionCallback'](_0x3d8cc4=>{if('formatInline'!=_0x3d8cc4['type'])return;const {data:_0x265971}=_0x3d8cc4;return _0x265971&&_0x265971['commandName']===_0x55a1cd?_0x265971['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x380e20,'*Format:*\x20%0',_0x3d0d48)}:{'type':'format','content':o(_0x380e20,'*Remove\x20format:*\x20%0',_0x3d0d48)}:void 0x0;});}_0x4ebdd8('bold',o(_0x380e20,'FORMAT_BOLD')),_0x4ebdd8('italic',o(_0x380e20,'FORMAT_ITALIC')),_0x4ebdd8('underline',o(_0x380e20,'FORMAT_UNDERLINE')),_0x4ebdd8('code',o(_0x380e20,'FORMAT_CODE')),_0x4ebdd8('strikethrough',o(_0x380e20,'FORMAT_STRIKETHROUGH')),_0x4ebdd8('subscript',o(_0x380e20,'FORMAT_SUBSCRIPT')),_0x4ebdd8('superscript',o(_0x380e20,'FORMAT_SUPERSCRIPT'));}}class U extends _0x2d2df5{['afterInit'](){const _0x58ff48=this['editor'],_0x6181e3=_0x58ff48['locale'];if(!_0x58ff48['plugins']['has']('BlockQuoteEditing'))return;const _0x21679b=_0x58ff48['plugins']['get']('TrackChangesEditing'),_0x1d49f9=this['editor']['commands']['get']('blockQuote');_0x21679b['enableCommand']('blockQuote',(_0x36de42,_0x10138c={})=>{const _0x531b73=this['editor']['model']['document']['selection'],_0x4adb27=_0x10138c&&void 0x0!==_0x10138c['forceValue']?_0x10138c['forceValue']:!_0x1d49f9['value'];let _0x4858bf=[];if(_0x4adb27){const _0x146c2b=Array['from'](_0x531b73['getSelectedBlocks']())['filter'](_0x5a3075=>oo(_0x5a3075)||function(_0x437384,_0x154b2c){const _0x574505=_0x154b2c['checkChild'](_0x437384['parent'],'blockQuote'),_0x38b88e=_0x154b2c['checkChild'](['$root','blockQuote'],_0x437384);return _0x574505&&_0x38b88e;}(_0x5a3075,this['editor']['model']['schema']));_0x4858bf=to(_0x146c2b,_0x58ff48['model']);}else{const _0x8c8d58=Array['from'](_0x531b73['getSelectedBlocks']())['filter'](_0x4b4206=>oo(_0x4b4206));_0x4858bf=to(_0x8c8d58,_0x58ff48['model']);}_0x58ff48['model']['change'](()=>{for(const _0x530dae of _0x4858bf)_0x21679b['markBlockFormat'](_0x530dae,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4adb27}]});});}),_0x21679b['descriptionFactory']['registerDescriptionCallback'](_0x3fa2c1=>{const {data:_0x301035}=_0x3fa2c1;if(_0x301035&&'blockQuote'==_0x301035['commandName']){const _0x1f7088=o(_0x6181e3,'ELEMENT_BLOCK_QUOTE');return _0x301035['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6181e3,'*Set\x20format:*\x20%0',_0x1f7088)}:{'type':'format','content':o(_0x6181e3,'*Remove\x20format:*\x20%0',_0x1f7088)};}});}}function oo(_0x20da6b){return'blockQuote'==_0x20da6b['parent']['name'];}class V extends _0x2d2df5{['afterInit'](){const _0x522e76=this['editor'],_0x4b1015=_0x522e76['locale'],_0x397401=_0x522e76['plugins']['get']('TrackChangesEditing');_0x522e76['plugins']['has']('BookmarkEditing')&&(_0x397401['enableCommand']('insertBookmark'),_0x397401['enableDefaultAttributesIntegration']('updateBookmark'),_0x397401['registerBlockAttribute']('bookmarkId'),_0x397401['descriptionFactory']['registerDescriptionCallback'](_0x1f8913=>{if('insertion'!=_0x1f8913['type']&&'deletion'!=_0x1f8913['type']&&'attribute'!=_0x1f8913['type'])return;const _0x29d1ec=_0x1f8913['getContainedElement']();if(null==_0x29d1ec)return;if(!_0x29d1ec['is']('element','bookmark'))return;const _0xd42ff1=_0x29d1ec['getAttribute']('bookmarkId');if('insertion'==_0x1f8913['type'])return{'type':'insertion','content':o(_0x4b1015,'*Insert:*\x20%0','\x22'+_0xd42ff1+'\x22\x20'+o(_0x4b1015,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1f8913['type'])return{'type':'deletion','content':o(_0x4b1015,'*Remove:*\x20%0','\x22'+_0xd42ff1+'\x22\x20'+o(_0x4b1015,'ELEMENT_BOOKMARK'))};const {data:_0x2118d9}=_0x1f8913;if(!_0x2118d9||'bookmarkId'!=_0x2118d9['key'])return;return{'type':'format','content':o(_0x4b1015,'*Set\x20bookmark:*\x20%0','\x22'+_0x2118d9['newValue']+'\x22')};}));}}class F extends _0x2d2df5{['afterInit'](){const _0x3df68d=this['editor'];_0x3df68d['plugins']['has']('CaseChange')&&(_0x3df68d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3df68d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3df68d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x2d2df5{['afterInit'](){const _0x43939d=this['editor'];_0x43939d['commands']['get']('ckbox')&&_0x43939d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2d2df5{['afterInit'](){const _0x265d44=this['editor'];if(!_0x265d44['plugins']['has']('CodeBlock'))return;const _0x10a0c9=_0x265d44['plugins']['get']('TrackChangesEditing'),_0x448e02=_0x265d44['locale'],_0x4fce03=_0x265d44['config']['get']('codeBlock')['languages'],_0x507620=_0x265d44['commands']['get']('codeBlock');_0x10a0c9['enableCommand']('indentCodeBlock'),_0x10a0c9['enableCommand']('outdentCodeBlock'),_0x10a0c9['enableCommand']('codeBlock',(_0x1350bf,_0x1ed899={})=>{const _0x430f2f=_0x265d44['model'],_0x3067b5=_0x265d44['model']['document']['selection'],_0xc50123=_0x1ed899&&void 0x0!==_0x1ed899['forceValue']?_0x1ed899['forceValue']:!_0x507620['value'];let _0xdbc1e4;_0x1ed899['language']||(_0x1ed899['language']=_0x4fce03[0x0]['language']),_0xdbc1e4=_0xc50123?Array['from'](_0x3067b5['getSelectedBlocks']())['filter'](_0x41b7e3=>co(_0x41b7e3)||function(_0x4b7d67,_0x20b60d){if(_0x4b7d67['is']('rootElement')||_0x20b60d['isLimit'](_0x4b7d67))return!0x1;return _0x20b60d['checkChild'](_0x4b7d67['parent'],'codeBlock');}(_0x41b7e3,_0x430f2f['schema'])):Array['from'](_0x3067b5['getSelectedBlocks']())['filter'](_0x1c73f1=>co(_0x1c73f1));const _0x4e2f65=to(_0xdbc1e4,_0x430f2f);_0x430f2f['change'](()=>{for(const _0x412a89 of _0x4e2f65)_0x10a0c9['markBlockFormat'](_0x412a89,{'commandName':'codeBlock','commandParams':[{..._0x1ed899,'forceValue':_0xc50123}],'formatGroupId':'blockName'});});}),(_0x10a0c9['descriptionFactory']['registerElementLabel']('codeBlock',_0x33e57e=>o(_0x448e02,'ELEMENT_CODE_BLOCK',_0x33e57e)),_0x10a0c9['descriptionFactory']['registerDescriptionCallback'](_0x3fbcfe=>{if('formatBlock'!=_0x3fbcfe['type'])return;const _0x5445b2=_0x448e02['t'],{data:_0x283a0f}=_0x3fbcfe;if(!_0x283a0f||'codeBlock'!=_0x283a0f['commandName'])return;const _0x5539d8=_0x283a0f['commandParams'][0x0]['language'],_0x59add9=_0x5445b2(_0x4fce03['find'](_0x2d71a0=>_0x2d71a0['language']===_0x5539d8)['label'])['toLowerCase']();return _0x283a0f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x448e02,'*Set\x20format:*\x20%0',o(_0x448e02,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x59add9+')')}:{'type':'format','content':o(_0x448e02,'*Remove\x20format:*\x20%0',o(_0x448e02,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4fda38){return'codeBlock'==_0x4fda38['name'];}class J extends _0x2d2df5{['afterInit'](){const _0x2f835f=this['editor'];if(!_0x2f835f['plugins']['has']('CommentsEditing'))return;_0x2f835f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x336d6a,_0x2e0c32,_0x28ec00){const _0x3494bc=[];for(const _0x11f295 of _0x2e0c32['getItems']())_0x11f295['hasAttribute'](_0x336d6a)&&_0x3494bc['push'](_0x28ec00['createRangeOn'](_0x11f295));return _0x3494bc;}function De(_0x17e244,_0x27d990,{showActiveMarker:_0x3a3d63=!0x0}={}){const _0x3f9c77=_0x17e244['plugins']['get']('TrackChangesEditing');return(_0x4fe879,_0x25083f,_0x1c8a47)=>{if(!_0x1c8a47['consumable']['test'](_0x25083f['markerRange'],_0x4fe879['name']))return;const _0x25db60=_0x25083f['markerRange']['getWalker'](),_0x5d2db3=_0x25083f['markerRange']['start'],_0x190203=_0x17e244['model']['schema'];let _0x510364=null,_0x51502f=null,_0x52234e=!0x1,_0x257db3=!0x1;for(const _0x2471e4 of _0x25db60){const _0x17bc51=_0x2471e4['item'];_0x52234e=_0x52234e||_0x190203['isContent'](_0x17bc51);const _0x244809=_0x1c8a47['mapper']['toViewElement'](_0x17bc51);if(_0x244809&&_0x244809['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2471e4['type']&&(_0x190203['isBlock'](_0x17bc51)&&!_0x190203['isLimit'](_0x17bc51)&&(_0x17bc51['nextSibling']||_0x5d2db3['isAtEnd']?_0x510364&&_0x510364['parent']==_0x17bc51||(_0x510364=_0x17bc51,_0x43da08(_0x2471e4['previousPosition']),_0x257db3=!0x0):_0x51502f=_0x51502f||_0x2471e4['previousPosition']));}function _0x43da08(_0xa7945d){const {id:_0x560d56,authorId:_0x36f6a9}=_0x3f9c77['_splitMarkerName'](_0x25083f['markerName']),_0xdcdfff=_0x1c8a47['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x27d990,'data-suggestion':_0x560d56,'data-author-id':_0x36f6a9}),_0x1a0af3=_0x1c8a47['mapper']['toViewPosition'](_0xa7945d);_0x3a3d63&&_0x3f9c77['activeMarkers']['includes'](_0x25083f['markerName'])&&_0x1c8a47['writer']['addClass']('ck-suggestion-marker--active',_0xdcdfff),_0x1c8a47['writer']['insert'](_0x1a0af3,_0xdcdfff),_0x1c8a47['mapper']['bindElementToMarker'](_0xdcdfff,_0x25083f['markerName']);}_0x52234e||_0x257db3||!_0x51502f||_0x43da08(_0x51502f);};}class K extends _0x2d2df5{static get['requires'](){return[_0x5ee86e];}['init'](){const _0x284b69=this['editor'],_0x281393=_0x284b69['plugins']['get']('TrackChangesEditing');_0x281393['enableCommand']('delete');const _0xf6cad4=_0x284b69['commands']['get']('deleteForward');_0x281393['enableCommand']('deleteForward',(_0x1f2e83,_0xddac4c={})=>{const _0xe531eb=_0x284b69['model']['createSelection'](_0x284b69['model']['document']['selection']);_0xe531eb['isCollapsed']&&_0x284b69['model']['modifySelection'](_0xe531eb,{'direction':'forward','unit':_0xddac4c['unit']});const _0x23100e=_0xe531eb['getFirstRange'](),_0x3f1dea=_0x4ee832['fromRange'](_0x23100e);let _0x8a5aa7;_0x1f2e83(_0xddac4c),_0x8a5aa7='$graveyard'==_0x3f1dea['root']['rootName']?_0x284b69['model']['createRange'](_0x23100e['start']):_0x284b69['model']['createRange'](_0x3f1dea['start'],_0x3f1dea['end']),_0x3f1dea['detach'](),_0x284b69['model']['enqueueChange'](_0xf6cad4['buffer']['batch'],_0x1c6759=>{_0xf6cad4['buffer']['lock'](),_0x1c6759['setSelection'](_0x1c6759['createRange'](_0x8a5aa7['end'])),_0xf6cad4['buffer']['unlock']();});}),_0x284b69['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x284b69,'merge'),{'priority':'high'}),_0x284b69['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x191911,_0x456bb5,_0xf90470)=>{_0xf90470['options']['showSuggestionHighlights']&&De(_0x284b69,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x191911,_0x456bb5,_0xf90470);},{'priority':'high'}),_0x284b69['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x58d712,_0x54facd,_0x4bc0c6)=>{const _0x573f03=_0x4bc0c6['mapper']['markerNameToElements'](_0x54facd['markerName']);if(_0x573f03){for(const _0x3614fa of _0x573f03)_0x3614fa['is']('uiElement')&&(_0x4bc0c6['mapper']['unbindElementFromMarkerName'](_0x3614fa,_0x54facd['markerName']),_0x4bc0c6['writer']['remove'](_0x3614fa));}},{'priority':'high'});}}class H extends _0x2d2df5{['afterInit'](){const _0x4e4350=this['editor'];if(!_0x4e4350['plugins']['has']('ListEditing'))return;const _0x327342=_0x4e4350['locale'],_0x477d9f=_0x4e4350['plugins']['get']('TrackChangesEditing'),_0x43ef24=_0x4e4350['plugins']['has']('TodoListEditing'),_0x414369=!!_0x4e4350['config']['get']('list.multiBlock');function _0x4422fd(_0x13f24f){return{'type':'format','content':''+o(_0x327342,'*Set\x20format:*\x20%0',_0x13f24f)};}function _0x19a7cf(_0x13de65){return{'type':'format','content':''+o(_0x327342,'*Remove\x20format:*\x20%0',_0x13de65)};}_0x477d9f['enableDefaultAttributesIntegration']('numberedList'),_0x477d9f['enableDefaultAttributesIntegration']('bulletedList'),_0x477d9f['enableDefaultAttributesIntegration']('customNumberedList'),_0x477d9f['enableDefaultAttributesIntegration']('customBulletedList'),_0x477d9f['enableDefaultAttributesIntegration']('indentList'),_0x477d9f['enableDefaultAttributesIntegration']('outdentList'),_0x477d9f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x477d9f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x477d9f['registerBlockAttribute']('listItemId'),_0x477d9f['registerBlockAttribute']('listType'),_0x477d9f['registerBlockAttribute']('listIndent'),_0x414369&&(_0x477d9f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x477d9f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x43ef24&&(_0x477d9f['enableDefaultAttributesIntegration']('todoList'),_0x477d9f['enableDefaultAttributesIntegration']('checkTodoList'),_0x477d9f['registerBlockAttribute']('todoListChecked'),_0x477d9f['descriptionFactory']['registerDescriptionCallback'](_0x81a064=>{const {data:_0x56aa76}=_0x81a064;if(_0x56aa76&&'todoListChecked'==_0x56aa76['key'])return{'type':'format','content':_0x56aa76['newValue']?o(_0x327342,'*Check\x20item*'):o(_0x327342,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x599b90=>{if(_0x599b90['batch']['isUndo'])return!0x1;let _0x20df9a=!0x1;const _0x24b51f=_0x477d9f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b0c3d=>'todoListChecked'===_0x477d9f['_getAttributeKey'](_0x1b0c3d));for(const _0x3f1df3 of _0x24b51f){'todo'!=_0x3f1df3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x477d9f['_findSuggestions'](_0x3f1df3['getFirstRange'](),'attribute')['find'](_0x432709=>'listType'===_0x477d9f['_getAttributeKey'](_0x432709['suggestion']))||(_0x599b90['removeMarker'](_0x3f1df3['getFirstMarker']()),_0x20df9a=!0x0));}return _0x20df9a;})),_0x477d9f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x327342,'FORMAT_INDENT'));const _0x311248={'type':'format','content':''};_0x477d9f['descriptionFactory']['registerDescriptionCallback'](_0x353629=>{const {data:_0x44ab3f}=_0x353629;if(!_0x44ab3f||'listType'!=_0x44ab3f['key'])return;let _0x3d4ac2=_0x353629['head'];for(;_0x3d4ac2;){if(_0x3d4ac2['data']&&(('listStyle'==_0x3d4ac2['data']['key']||'listMarkerStyle'==_0x3d4ac2['data']['key'])&&(_0x3d4ac2['data']['newValue']&&'default'!=_0x3d4ac2['data']['newValue']||'default'!=_0x3d4ac2['data']['oldValue']&&!_0x44ab3f['newValue'])||!_0x414369&&_0x3d4ac2['data']['key']==m))return _0x311248;_0x3d4ac2=_0x3d4ac2['next'];}if(null==_0x44ab3f['newValue'])switch(_0x44ab3f['oldValue']){case'bulleted':return _0x19a7cf(o(_0x327342,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19a7cf(o(_0x327342,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19a7cf(o(_0x327342,'ELEMENT_TODO_LIST'));}switch(_0x44ab3f['newValue']){case'bulleted':return _0x4422fd(o(_0x327342,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4422fd(o(_0x327342,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4422fd(o(_0x327342,'ELEMENT_TODO_LIST'));}}),_0x477d9f['descriptionFactory']['registerDescriptionCallback'](_0x361d2c=>{const {data:_0xc3205b}=_0x361d2c;if(_0xc3205b&&'listIndent'==_0xc3205b['key'])return null==_0xc3205b['newValue']||null==_0xc3205b['oldValue']&&0x0==_0xc3205b['newValue']?_0x311248:void 0x0;}),_0x477d9f['descriptionFactory']['registerDescriptionCallback'](_0x4f5ff6=>{if('attribute'!=_0x4f5ff6['type'])return;const {data:_0x59b784}=_0x4f5ff6;if(!_0x59b784||'listItemId'!=_0x59b784['key'])return;const _0x5d0336=Te(_0x4f5ff6);return'newValue'==_0x5d0336?{'type':'format','content':o(_0x327342,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5d0336?{'type':'format','content':o(_0x327342,'*Split:*\x20list\x20item')}:_0x311248;}),_0x4e4350['model']['document']['registerPostFixer'](_0x2e8f48=>this['listItemIdFixer'](_0x2e8f48)),_0x4e4350['model']['document']['registerPostFixer'](_0x47a6cb=>this['noTrackChangesFixer'](_0x47a6cb)),_0x4e4350['model']['document']['on']('change:data',(_0x2f6c5e,_0x2ac17d)=>{if(_0x2ac17d['isUndo']||!_0x2ac17d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x97d2ce){if(_0x97d2ce['batch']['isUndo']||!_0x97d2ce['batch']['isLocal'])return!0x1;let _0x25e9f4=!0x1;const _0xfc2bf6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c9f92=>_0x5c9f92['data']&&'listItemId'==_0x5c9f92['data']['key'])['filter'](_0x552244=>_0x552244['data']['newValue']&&_0x552244['data']['oldValue']);for(const _0x1fe069 of _0xfc2bf6)Te(_0x1fe069)||(_0x97d2ce['removeMarker'](_0x1fe069['getFirstMarker']()),_0x25e9f4=!0x0);return _0x25e9f4;}['noTrackChangesFixer'](_0x188478){if(_0x188478['batch']['isUndo']||!_0x188478['batch']['isLocal'])return!0x1;const _0x192107=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x192107['trackChangesCommand']['value'])return!0x1;let _0xe274e8=!0x1;const _0x415964=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x47f3f1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2f52e2=>'attribute'==_0x2f52e2['type'])['filter'](_0x790301=>_0x415964['includes'](_0x790301['attributeKey']));if(0x0==_0x47f3f1['length'])return _0xe274e8;for(const _0x30e82f of _0x47f3f1){const _0x21fca1=_0x192107['_findSuggestions'](_0x30e82f['range'],'attribute')['filter'](_0x2bee57=>!_0x2bee57['meta']['isNextTo'])['map'](_0x4e160d=>_0x4e160d['suggestion'])['filter'](_0x4bf2f2=>{const _0x45cdd0=_0x192107['_getAttributeKey'](_0x4bf2f2);return _0x415964['includes'](_0x45cdd0);});if(_0x21fca1['length']){for(const _0x100335 of _0x21fca1)_0x188478['removeMarker'](_0x100335['getFirstMarker']());_0xe274e8=!0x0;}}return _0xe274e8;}['assureChains'](){const _0x35477b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16c597=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x49518c;const _0x3260a5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f7d6c=>{if(_0x1f7d6c['data']['oldRange']||!_0x1f7d6c['data']['newRange'])return null;if(!_0x1f7d6c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x555a0a}=_0x35477b['_splitMarkerName'](_0x1f7d6c['name']);if(!_0x35477b['hasSuggestion'](_0x555a0a))return null;const _0x39756b=_0x35477b['getSuggestion'](_0x555a0a);return _0x16c597['includes'](_0x39756b['data']['key']);})['map'](_0x2908f4=>{const {id:_0x22d952}=_0x35477b['_splitMarkerName'](_0x2908f4['name']),_0x49652f=_0x35477b['getSuggestion'](_0x22d952);return _0x49518c=_0x49652f['attributes']['groupId'],_0x49652f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3260a5['size'])return;const _0x2ac2cb=_0x35477b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4209ea=>'attribute'==_0x4209ea['type']&&_0x4209ea['data']&&_0x16c597['includes'](_0x4209ea['data']['key'])&&_0x4209ea['attributes']['groupId']!=_0x49518c)['map'](_0x31a9bd=>({'listItem':_0x31a9bd['getFirstRange']()['start']['nodeAfter'],'groupId':_0x31a9bd['attributes']['groupId']})),_0x1d9a66=new Set();for(const {groupId:_0x1b96d0,listItem:_0x2a3bf0}of _0x2ac2cb)_0x3260a5['has'](_0x2a3bf0)&&_0x1d9a66['add'](_0x1b96d0);for(const _0x2fb5aa of _0x35477b['getSuggestions']())_0x1d9a66['has'](_0x2fb5aa['attributes']['groupId'])&&_0x2fb5aa['setAttribute']('groupId',_0x49518c);}['_supportLegacySuggestions'](){const _0x53b228=this['editor'],_0x89ccd1=_0x53b228['locale'],_0x3090f4=_0x53b228['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3090f4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2d6417,_0x9b3f9e){const _0x1df776=[];for(let _0x3b4328 of _0x2d6417)_0x3b4328['start']['nodeAfter']===_0x3b4328['end']['parent']&&(_0x3b4328=_0x53b228['model']['createRange'](_0x53b228['model']['createPositionAt'](_0x3b4328['start']['nodeAfter'],0x0))),_0x1df776['push'](_0x3b4328);_0x53b228['model']['change'](_0x6f5f50=>{const _0x1cd42a=_0x53b228['model']['document']['selection'],_0x171f89=Array['from'](_0x1cd42a['getRanges']())['map'](_0x437d5c=>_0x4ee832['fromRange'](_0x437d5c));_0x6f5f50['setSelection'](_0x1df776),_0x53b228['commands']['get'](_0x9b3f9e['commandName'])['refresh'](),_0x9b3f9e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x53b228['execute'](_0x9b3f9e['commandName'],..._0x9b3f9e['commandParams']),_0x6f5f50['setSelection'](_0x171f89);for(const _0x2ced4f of _0x171f89)_0x2ced4f['detach']();});}),_0x3090f4['descriptionFactory']['registerElementLabel'](function(_0x6d7827){const _0x13df8d=!_0x53b228['model']['schema']['isObject'](_0x6d7827),_0x3af76f=_0x6d7827['previousSibling'],_0x1b63f5=_0x6d7827['nextSibling'],_0x400de0=_0x6d7827['getAttribute']('listItemId'),_0x437d86=!_0x3af76f||_0x3af76f['getAttribute']('listItemId')!==_0x400de0,_0x2d55af=!_0x1b63f5||_0x1b63f5['getAttribute']('listItemId')!==_0x400de0;return _0x13df8d&&Boolean(_0x400de0)&&_0x437d86&&_0x2d55af;},_0x250be3=>o(_0x89ccd1,'ELEMENT_LIST_ITEM',_0x250be3));}['_registerLegacyDescription'](){const _0x26e835=this['editor'],_0x239eff=_0x26e835['locale'];function _0x470716(_0x20a730){const _0x3c9513=_0x26e835['commands']['get']('bulletedList')['value'],_0x5a94fd=_0x26e835['commands']['get']('numberedList')['value'];return'numberedList'===_0x20a730?_0x3c9513:_0x5a94fd;}_0x26e835['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x53abeb){if('formatBlock'!=_0x53abeb['type'])return;const {data:_0x3d9a55}=_0x53abeb;if(!_0x3d9a55)return;let _0x1a7424,_0x159405,_0x5531ce,_0x4097e7;switch(_0x3d9a55['commandName']){case'bulletedList':_0x5531ce=_0x3d9a55['commandParams'][0x0]['forceValue'],_0x4097e7=_0x470716(_0x3d9a55['commandName']),_0x1a7424=_0x5531ce?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4097e7&&_0x26e835['config']['get']('list.multiBlock')||(_0x1a7424='*Change\x20to:*\x20%0'),_0x159405={'type':'format','content':o(_0x239eff,_0x1a7424,o(_0x239eff,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5531ce=_0x3d9a55['commandParams'][0x0]['forceValue'],_0x4097e7=_0x470716(_0x3d9a55['commandName']),_0x1a7424=_0x5531ce?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4097e7&&_0x26e835['config']['get']('list.multiBlock')||(_0x1a7424='*Change\x20to:*\x20%0'),_0x159405={'type':'format','content':o(_0x239eff,_0x1a7424,o(_0x239eff,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1a7424='*Indent:*\x20%0',_0x159405={'type':'format','content':o(_0x239eff,_0x1a7424,o(_0x239eff,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1a7424=function(_0xaf3f91){const _0x126cbf=_0xaf3f91['getFirstRange']();let _0x2d1b7e=_0x126cbf['start']['nodeAfter'];for(;_0x2d1b7e&&_0x126cbf['containsItem'](_0x2d1b7e);){if(_0x2d1b7e['getAttribute']('listIndent')>0x0)return!0x1;_0x2d1b7e=_0x2d1b7e['nextSibling'];}return!0x0;}(_0x53abeb)?o(_0x239eff,'*Format:*\x20remove\x20from\x20%0',o(_0x239eff,function(_0x2f0012){return'ELEMENT_'+_0x2f0012['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x53abeb))):o(_0x239eff,'*Outdent:*\x20%0',o(_0x239eff,'ELEMENT_LIST_ITEM')),_0x159405={'type':'format','content':_0x1a7424};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3d9a55['multipleBlocks']&&(_0x1a7424='*Merge:*\x20%0',_0x159405={'type':'deletion','content':o(_0x239eff,_0x1a7424,o(_0x239eff,'ELEMENT_LIST_ITEM'))});}return _0x159405;});}}function Te(_0x27aef6){let _0x55735b=_0x27aef6['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x55735b;){const _0x24f48d=_0x55735b['getAttribute']('listItemId');if(!_0x24f48d)return!0x1;if(_0x24f48d==_0x27aef6['data']['newValue'])return'newValue';if(_0x24f48d==_0x27aef6['data']['oldValue'])return'oldValue';_0x55735b=_0x55735b['previousSibling'];}return!0x1;}class q extends _0x2d2df5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x56250b=this['editor']['config']['get']('list.properties'),_0x4f81ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x56250b['styles']&&(_0x4f81ca['enableDefaultAttributesIntegration']('listStyle'),_0x4f81ca['registerBlockAttribute']('listStyle')),_0x56250b['reversed']&&(_0x4f81ca['enableDefaultAttributesIntegration']('listReversed'),_0x4f81ca['registerBlockAttribute']('listReversed')),_0x56250b['startIndex']&&(_0x4f81ca['enableDefaultAttributesIntegration']('listStart'),_0x4f81ca['registerBlockAttribute']('listStart'));const _0x13c4ed={'type':'format','content':''};_0x4f81ca['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x53c99f=this['editor']['locale'];_0x4f81ca['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x53c99f,'FORMAT_LIST_REVERSED')),_0x4f81ca['descriptionFactory']['registerDescriptionCallback'](_0x3df1fa=>{const {data:_0x580a21}=_0x3df1fa;if(_0x580a21&&'listReversed'==_0x580a21['key'])return null==_0x580a21['newValue']||0x0==_0x580a21['newValue']&&null==_0x580a21['oldValue']?_0x13c4ed:void 0x0;}),_0x4f81ca['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x53c99f,'FORMAT_LIST_START')),_0x4f81ca['descriptionFactory']['registerDescriptionCallback'](_0x48ffa5=>{const {data:_0x5df4d2}=_0x48ffa5;if(_0x5df4d2&&'listStart'==_0x5df4d2['key'])return null==_0x5df4d2['newValue']||0x1==_0x5df4d2['newValue']&&null==_0x5df4d2['oldValue']?_0x13c4ed:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x10da9b=>{if(_0x10da9b['batch']['isUndo'])return!0x1;let _0x3d8a31=!0x1;const _0x155beb=_0x4f81ca['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4047c2=>{const _0x2fd3f5=_0x4f81ca['_getAttributeKey'](_0x4047c2);return'listStart'==_0x2fd3f5||'listReversed'==_0x2fd3f5;});for(const _0x3e526f of _0x155beb){const _0x3d828e=_0x3e526f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3d828e||'customNumbered'==_0x3d828e)continue;_0x4f81ca['_findSuggestions'](_0x3e526f['getFirstRange'](),'attribute')['find'](_0x548cab=>'listType'==_0x4f81ca['_getAttributeKey'](_0x548cab['suggestion']))||(_0x10da9b['removeMarker'](_0x3e526f['getFirstMarker']()),_0x3d8a31=!0x0);}return _0x3d8a31;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3890b5){const _0x1b088c=this['editor']['locale'],{data:_0x4c0ab3}=_0x3890b5,_0x207f3c={'type':'format','content':''};if(!_0x4c0ab3||'listStyle'!=_0x4c0ab3['key'])return;if(!_0x4c0ab3['oldValue'])return'default'==_0x4c0ab3['newValue']?_0x207f3c:{'type':'format','content':''+o(_0x1b088c,'*Set\x20format:*\x20%0',o(_0x1b088c,this['_getTranslationKeyForListStyle'](_0x4c0ab3['newValue'])))};if(!_0x4c0ab3['newValue']){if('default'==_0x4c0ab3['oldValue'])return _0x207f3c;let _0x22a44d=_0x3890b5['head'];for(;_0x22a44d;){if(_0x22a44d['data']&&'listType'==_0x22a44d['data']['key']&&_0x22a44d['data']['newValue'])return _0x207f3c;_0x22a44d=_0x22a44d['next'];}return{'type':'format','content':''+o(_0x1b088c,'*Remove\x20format:*\x20%0',o(_0x1b088c,this['_getTranslationKeyForListStyle'](_0x4c0ab3['oldValue'])))};}if('default'!=_0x4c0ab3['newValue'])return{'type':'format','content':''+o(_0x1b088c,'*Set\x20format:*\x20%0',o(_0x1b088c,this['_getTranslationKeyForListStyle'](_0x4c0ab3['newValue'])))};let _0x4e69a2=_0x3890b5['head'];for(;_0x4e69a2;){if(_0x4e69a2['data']&&'listType'==_0x4e69a2['data']['key']&&_0x4e69a2['data']['newValue']&&_0x4e69a2['data']['oldValue'])return _0x207f3c;_0x4e69a2=_0x4e69a2['next'];}return{'type':'format','content':o(_0x1b088c,'*Set\x20format:*\x20%0',o(_0x1b088c,'ELEMENT_'+_0x3890b5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3531b0=this['editor'],_0x118e9e=_0x3531b0['locale'];_0x3531b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46b5f6=>{if('formatBlock'!=_0x46b5f6['type'])return;const {data:_0x36f807}=_0x46b5f6;if(!_0x36f807)return;let _0x484ca0,_0x4cc2ae;switch(_0x36f807['commandName']){case'listStyle':_0x484ca0='*Change\x20to:*\x20%0',_0x4cc2ae={'type':'format','content':o(_0x118e9e,_0x484ca0,o(_0x118e9e,this['_getTranslationKeyForListStyle'](_0x36f807['commandParams'][0x0]['type'])))};break;case'listReversed':_0x484ca0=_0x36f807['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4cc2ae={'type':'format','content':o(_0x118e9e,_0x484ca0)};break;case'listStart':_0x484ca0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4cc2ae={'type':'format','content':o(_0x118e9e,_0x484ca0,_0x36f807['commandParams'][0x0]['startIndex'])};}return _0x4cc2ae;});}['_getTranslationKeyForListStyle'](_0x4aeca0){return'ELEMENT_'+function(_0x1a6afb){if(Se['includes'](_0x1a6afb))return'bulleted';if(_e['includes'](_0x1a6afb))return'numbered';return null;}(_0x4aeca0)['toUpperCase']()+'_LIST_'+_0x4aeca0['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x2d2df5{['afterInit'](){const _0x102396=this['editor'];_0x102396['commands']['get']('emoji')&&_0x102396['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x2d2df5{static get['requires'](){return[_0x26ebff];}['init'](){const _0x339991=this['editor'],_0x4a3c55=_0x339991['plugins']['get']('TrackChangesEditing'),_0x58bd3a=_0x339991['commands']['get']('enter');_0x4a3c55['enableCommand']('enter',()=>{_0x339991['model']['change'](_0x5db56a=>{const _0x5ddb83=_0x339991['model']['document']['selection'],_0x3e9577=_0x5ddb83['getFirstPosition'](),_0x415ead=_0x4ee832['fromRange'](_0x5ddb83['getFirstRange']());if(_0x58bd3a['enterBlock'](_0x5db56a)){const _0x2312bb=_0x339991['model']['createPositionAt'](_0x3e9577['parent']['nextSibling'],0x0),_0x47dcab=_0x5db56a['createRange'](_0x3e9577,_0x2312bb);_0x4a3c55['markInsertion'](_0x47dcab);}else _0x5db56a['setSelection'](_0x5db56a['createRange'](_0x415ead['end']));_0x415ead['detach'](),_0x58bd3a['fire']('afterExecute',{'writer':_0x5db56a});});}),_0x339991['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x339991,'split'),{'priority':'high'}),_0x339991['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x52b932,_0x3890c3,_0x5cda20)=>{const _0x13de8b=_0x5cda20['mapper']['markerNameToElements'](_0x3890c3['markerName']);if(_0x13de8b){for(const _0x56ad3b of _0x13de8b)_0x56ad3b['hasClass']('ck-suggestion-marker-split')&&(_0x5cda20['mapper']['unbindElementFromMarkerName'](_0x56ad3b,_0x3890c3['markerName']),_0x5cda20['writer']['remove'](_0x56ad3b));}},{'priority':'high'}),_0x339991['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x17ab2d,_0x1bcce8,_0x306441)=>{_0x306441['options']['showSuggestionHighlights']&&De(_0x339991,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x17ab2d,_0x1bcce8,_0x306441);},{'priority':'high'});}}class Q extends _0x2d2df5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4e9456=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e9456['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4e9456['enableCommand']('findNext'),_0x4e9456['enableCommand']('findPrevious'),_0x4e9456['enableCommand']('replace'),_0x4e9456['enableCommand']('replaceAll');}['handleFindCommand'](_0x19f5c1,_0x3a15e9,_0x467867={}){const _0x449145=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x19f5c1(_0x15f0fd=>{let _0x42e1fc=('string'==typeof _0x3a15e9?_0x449145['findByTextCallback'](_0x3a15e9,_0x467867):_0x3a15e9)(_0x15f0fd);Array['isArray'](_0x42e1fc)&&(_0x42e1fc={'results':_0x42e1fc,'searchText':'string'==typeof _0x3a15e9?_0x3a15e9:''});const _0x3243a6=_0x42e1fc['results']['filter'](_0x29a656=>!0x1===this['_isInDeletionRange'](_0x29a656,_0x15f0fd['item']));return{..._0x42e1fc,'results':_0x3243a6};},_0x467867);}['_isInDeletionRange'](_0x1a57fb,_0x2920cb){const _0x5f0c08=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2920cb,_0x1a57fb['start']),this['editor']['model']['createPositionAt'](_0x2920cb,_0x1a57fb['end']));for(const _0x177d76 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5f0c08['getIntersection'](_0x177d76['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 _0x2d2df5{['afterInit'](){const _0x4224c7=this['editor']['locale'],_0x36ef08=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4a4229,commandName:_0x53f269}of eo)this['editor']['plugins']['has'](_0x4a4229)&&(_0x36ef08['enableDefaultAttributesIntegration'](_0x53f269),_0x36ef08['registerInlineAttribute'](_0x53f269));_0x36ef08['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4224c7,'FORMAT_FONT_SIZE')),_0x36ef08['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4224c7,'FORMAT_FONT_FAMILY')),_0x36ef08['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4224c7,'FORMAT_FONT_COLOR')),_0x36ef08['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4224c7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f79d3=this['editor'],_0x56a6cc=_0x1f79d3['locale'];_0x1f79d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x440884=>{const _0x5646e9=_0x56a6cc['t'];if('formatInline'!=_0x440884['type'])return;const {data:_0x335ba6}=_0x440884;if(null!=_0x335ba6){if('fontSize'==_0x335ba6['commandName']){const _0x4e2dea=_0x335ba6['commandParams'][0x0]['value'];if(_0x4e2dea){const _0x274e9c=_0x5646e9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5cce8a=>_0x5cce8a['model']==_0x4e2dea)['title'])['toLowerCase']();return{'type':'format','content':o(_0x56a6cc,'*Set\x20font\x20size:*\x20%0',_0x274e9c)};}return{'type':'format','content':o(_0x56a6cc,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x335ba6['commandName']){const _0x54ef9c=_0x335ba6['commandParams'][0x0]['value'];return _0x54ef9c?{'type':'format','content':o(_0x56a6cc,'*Set\x20font\x20family:*\x20%0',_0x54ef9c)}:{'type':'format','content':o(_0x56a6cc,'*Reset\x20font\x20family*')};}if('fontColor'==_0x335ba6['commandName']){const _0x20c09a=_0x335ba6['commandParams'][0x0]['value'];if(_0x20c09a){const _0x278dbf=_0x435dc5(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5b8a28=>_0x5b8a28['model']==_0x20c09a);let _0x4e2a81=_0x20c09a,_0x4afb94='';return _0x278dbf&&(_0x4e2a81=_0x278dbf['label'],_0x4afb94=_0x5646e9(_0x4e2a81)['toLowerCase']()),{'type':'format','content':o(_0x56a6cc,'*Set\x20font\x20color:*\x20%0',_0x4afb94)['trim'](),'color':{'value':_0x20c09a,'title':_0x4afb94||_0x4e2a81}};}return{'type':'format','content':o(_0x56a6cc,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x335ba6['commandName']){const _0x3eec7c=_0x335ba6['commandParams'][0x0]['value'];if(_0x3eec7c){const _0x582655=_0x435dc5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3e1186=>_0x3e1186['model']==_0x3eec7c);let _0x4c80d9=_0x3eec7c,_0x3cc39d='';return _0x582655&&(_0x4c80d9=_0x582655['label'],_0x3cc39d=_0x5646e9(_0x4c80d9)['toLowerCase']()),{'type':'format','content':o(_0x56a6cc,'*Set\x20font\x20background\x20color:*\x20%0',_0x3cc39d)['trim'](),'color':{'value':_0x3eec7c,'title':_0x3cc39d||_0x4c80d9}};}return{'type':'format','content':o(_0x56a6cc,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x2d2df5{['afterInit'](){const _0x44b852=this['editor'],_0x46bb21=_0x44b852['plugins']['get']('TrackChangesEditing'),_0x4d00b6=_0x44b852['commands']['get']('copyFormat'),_0x4138eb=_0x44b852['commands']['get']('pasteFormat');_0x4d00b6&&_0x4138eb&&(_0x46bb21['enableDefaultAttributesIntegration']('pasteFormat'),_0x46bb21['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5219b4=this['editor'],_0x3e04d4=_0x5219b4['locale'];_0x5219b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b2a50=>{if('formatBlock'!=_0x4b2a50['type']&&'formatInline'!=_0x4b2a50['type'])return;const {data:_0xe69bea}=_0x4b2a50;if(_0xe69bea&&'pasteFormat'===_0xe69bea['commandName']){const _0x2bb867=[],_0x49e1a8=_0xe69bea['commandParams'][0x0];for(const [_0x268375,_0x1d5651]of Object['entries'](_0x49e1a8))_0x2bb867['push'](ro(_0x5219b4,_0x268375,_0x1d5651));return _0x2bb867['length']?{'type':'format','content':o(_0x3e04d4,'*Set\x20format\x20to:*\x20%0',_0x2bb867['join'](',\x20'))}:{'type':'format','content':o(_0x3e04d4,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5d1611,_0x306472,_0x38314b){const _0x432a6a=_0x5d1611['locale']['t'],_0x156ba0=_0x306472['split'](/(?=[A-Z])/)['join']('\x20'),_0x53acbe=_0x432a6a(_0x156ba0['charAt'](0x0)['toUpperCase']()+_0x156ba0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x38314b)return _0x53acbe;if('fontColor'===_0x306472||'fontBackgroundColor'===_0x306472){const _0x19bc63=_0x435dc5(_0x5d1611['config']['get']('fontColor.colors'))['find'](_0x225831=>_0x225831['model']==_0x38314b);return _0x53acbe+'\x20('+(_0x19bc63?_0x432a6a(_0x19bc63['label'])['toLowerCase']():_0x38314b)+')';}if('fontSize'===_0x306472&&isNaN(parseFloat(_0x38314b))){const _0x2e4c70=_0x5d1611['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5d1611['config']['get']('fontSize.options'))['find'](_0x55b30b=>_0x55b30b['model']==_0x38314b);return _0x53acbe+'\x20('+(_0x2e4c70?_0x432a6a(_0x2e4c70['title'])['toLowerCase']():_0x38314b)+')';}return _0x53acbe+'\x20('+_0x38314b+')';}class Z extends _0x2d2df5{['_headingOptions'];['afterInit'](){const _0xf12cff=this['editor'];if(!_0xf12cff['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xf12cff['config']['get']('heading.options');const _0x330518=_0xf12cff['locale'],_0x236c7c=_0xf12cff['plugins']['get']('TrackChangesEditing');_0x236c7c['enableDefaultAttributesIntegration']('heading');for(const _0x218104 of this['_headingOptions'])'paragraph'!=_0x218104['model']&&_0x236c7c['descriptionFactory']['registerElementLabel'](_0x218104['model'],_0x2a22f5=>{const _0x59628a=this['_getHeadingLevel'](_0x218104['model']);return null!==_0x59628a?_0x2041d4(_0x2a22f5,_0x59628a):_0x48a6de(_0x2a22f5,_0x218104['title']);});function _0x2041d4(_0x38237c,_0x51b01e){return o(_0x330518,'ELEMENT_HEADING',[_0x38237c,_0x51b01e]);}function _0x48a6de(_0x1277f1,_0x4c20af){return o(_0x330518,'ELEMENT_HEADING_CUSTOM',[_0x1277f1,_0x4c20af]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e4a01=this['editor'],_0x5175f2=_0x5e4a01['locale'];function _0x189ab0(_0x300304,_0x4b1647){return o(_0x5175f2,'ELEMENT_HEADING_CUSTOM',[_0x300304,_0x4b1647]);}_0x5e4a01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5be482=>{if('formatBlock'!=_0x5be482['type'])return;const {data:_0x2b46a9}=_0x5be482;if(_0x2b46a9&&'heading'==_0x2b46a9['commandName']){const _0x44e268=_0x2b46a9['commandParams'][0x0]['value'],_0x391b16=this['_getHeadingLevel'](_0x44e268);if(null!==_0x391b16)return{'type':'format','content':o(_0x5175f2,'*Change\x20to:*\x20%0',(_0x48ef08=0x1,_0x36d108=_0x391b16,o(_0x5175f2,'ELEMENT_HEADING',[_0x48ef08,_0x36d108])))};const _0x20b3ab=this['_headingOptions']['find'](_0x42994a=>_0x42994a['model']===_0x44e268)['title'];return{'type':'format','content':o(_0x5175f2,'*Change\x20to:*\x20%0',_0x189ab0(0x1,_0x20b3ab))};}var _0x48ef08,_0x36d108;});}['_getHeadingLevel'](_0x2f2bab){const _0x5729f0=_0x2f2bab['match'](/^heading(\d+)/);if(_0x5729f0)return _0x5729f0[0x1];const _0x3699ed=this['_headingOptions']?.['find'](_0x18c573=>_0x18c573['model']==_0x2f2bab);if(_0x3699ed&&_0x3699ed['view']){const _0x279bd7=_0x3699ed['view'],_0x1bdc98=(_0x279bd7['name']??_0x279bd7)['match'](/^h(\d+)/);if(_0x1bdc98)return _0x1bdc98[0x1];}return null;}}class tt extends _0x2d2df5{['afterInit'](){const _0x24e0f1=this['editor'];if(!_0x24e0f1['plugins']['has']('HighlightEditing'))return;const _0x3b89cf=_0x24e0f1['plugins']['get']('TrackChangesEditing'),_0x253879=_0x24e0f1['locale'];_0x3b89cf['enableDefaultAttributesIntegration']('highlight'),_0x3b89cf['registerInlineAttribute']('highlight'),_0x3b89cf['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x253879,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x536245=this['editor'],_0x163924=_0x536245['locale'];_0x536245['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46db9b=>{if('formatInline'!=_0x46db9b['type'])return;const {data:_0x51eefd}=_0x46db9b;if(_0x51eefd&&'highlight'==_0x51eefd['commandName']){const _0x404d06=_0x163924['t'],_0x4bba6f=_0x51eefd['commandParams'][0x0]['value'];if(_0x4bba6f){const _0x1c57c4=_0x536245['config']['get']('highlight.options')['find'](_0xb5fd2f=>_0xb5fd2f['model']==_0x4bba6f),_0x162557=_0x404d06(_0x1c57c4['title'])['toLowerCase']();return{'type':'format','content':o(_0x163924,'*Set\x20highlight:*\x20%0',_0x162557),'color':{'value':_0x1c57c4['color'],'title':_0x1c57c4['title']}};}return{'type':'format','content':o(_0x163924,'*Remove\x20highlight*',o(_0x163924,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2d2df5{['afterInit'](){const _0x428128=this['editor'];if(!_0x428128['plugins']['has']('HorizontalLineEditing'))return;_0x428128['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x61e447=_0x428128['plugins']['get']('TrackChangesEditing'),_0x212ac3=_0x428128['locale'];_0x61e447['descriptionFactory']['registerElementLabel']('horizontalLine',_0x484be0=>o(_0x212ac3,'ELEMENT_HORIZONTAL_LINE',_0x484be0)),_0x428128['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x105e0b,{writer:_0x4301d8,options:_0x4d5d0f})=>{if(!_0x4d5d0f['showSuggestionHighlights'])return null;const _0x56860b=_0x4301d8['createContainerElement']('div'),_0x4f0c6f=_0x4301d8['createEmptyElement']('hr');return _0x4301d8['addClass']('ck-horizontal-line',_0x56860b),_0x4301d8['insert'](_0x4301d8['createPositionAt'](_0x56860b,0x0),_0x4f0c6f),_0x56860b;},'converterPriority':'high'});}}class nt extends _0x2d2df5{['afterInit'](){const _0xca69c3=this['editor'];if(!_0xca69c3['plugins']['has']('HtmlEmbed'))return;const _0xf0e462=_0xca69c3['plugins']['get']('TrackChangesEditing'),_0x12e362=_0xca69c3['locale'];_0xf0e462['descriptionFactory']['registerElementLabel']('rawHtml',_0x40c869=>o(_0x12e362,'ELEMENT_HTML_EMBED',_0x40c869)),_0xf0e462['enableDefaultAttributesIntegration']('htmlEmbed'),_0xf0e462['registerBlockAttribute']('value'),_0xf0e462['descriptionFactory']['registerDescriptionCallback'](_0x1a236a=>{if('attribute'!=_0x1a236a['type'])return;const {data:_0x77e1c6}=_0x1a236a;if(_0x77e1c6&&'value'==_0x77e1c6['key']&&_0x1a236a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1e98cd=o(_0x12e362,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x12e362,'*Change\x20%0\x20content*',_0x1e98cd)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14554c=this['editor'],_0x539eaf=_0x14554c['locale'];_0x14554c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dc7b7=>{if('formatBlock'!=_0x3dc7b7['type'])return;const {data:_0x4d3756}=_0x3dc7b7;if(_0x4d3756&&'htmlEmbed'==_0x4d3756['commandName']){const _0x4326cb=o(_0x539eaf,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x539eaf,'*Change\x20%0\x20content*',_0x4326cb)};}});}}class et extends _0x2d2df5{['afterInit'](){const _0x2b52d6=this['editor'];if(!_0x2b52d6['plugins']['has']('ImageEditing'))return;const _0x3cc0d3=_0x2b52d6['plugins']['get']('TrackChangesEditing'),_0x30a232=_0x2b52d6['plugins']['get']('ImageUtils'),_0x1f37eb=_0x2b52d6['locale'];_0x3cc0d3['enableCommand']('insertImage'),_0x3cc0d3['descriptionFactory']['registerElementLabel']('imageBlock',_0x39caa0=>o(_0x1f37eb,'ELEMENT_IMAGE',_0x39caa0)),_0x3cc0d3['descriptionFactory']['registerElementLabel']('imageInline',_0x41ad15=>o(_0x1f37eb,'ELEMENT_INLINE_IMAGE',_0x41ad15)),_0x3cc0d3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1f37eb,'ELEMENT_CAPTION')),_0x2b52d6['plugins']['has']('ImageUploadEditing')&&_0x3cc0d3['enableCommand']('uploadImage'),_0x2b52d6['plugins']['has']('ImageBlockEditing')&&_0x2b52d6['plugins']['has']('ImageInlineEditing')&&(_0x3cc0d3['enableCommand']('imageTypeInline',(_0xd49bb7,_0x20fd07)=>{const _0x9d7db8=_0x30a232['getClosestSelectedImageElement'](_0x2b52d6['model']['document']['selection']);_0x2b52d6['model']['change'](()=>{_0x3cc0d3['markBlockFormat'](_0x9d7db8,{'commandName':'imageTypeInline','commandParams':[_0x20fd07]},[],'convertBlockImageToInline');});}),_0x3cc0d3['enableCommand']('imageTypeBlock',(_0x5580c5,_0x359f0b)=>{_0x2b52d6['model']['change'](_0x28ec83=>{let _0x11b960=_0x30a232['getClosestSelectedImageElement'](_0x2b52d6['model']['document']['selection']),_0x2f2c7f=_0x28ec83['createRangeOn'](_0x11b960);const _0x2d7b5a=_0x2804e0['fromPosition'](_0x2f2c7f['start'],'toPrevious'),_0x44986d=_0x2804e0['fromPosition'](_0x2f2c7f['end'],'toNext');_0x3cc0d3['forceDefaultExecution'](()=>_0x5580c5(_0x359f0b)),_0x11b960=_0x30a232['getClosestSelectedImageElement'](_0x2b52d6['model']['document']['selection']),_0x2f2c7f=_0x28ec83['createRangeOn'](_0x11b960);const _0x1a66bc=_0x28ec83['createRange'](_0x2d7b5a,_0x44986d);_0x2d7b5a['detach'](),_0x44986d['detach'](),_0x3cc0d3['markBlockFormat'](_0x11b960,{'commandName':'imageTypeInline','commandParams':[_0x359f0b]},[],'convertInlineImageToBlock'),_0x1a66bc['start']['isBefore'](_0x2f2c7f['start'])&&_0x3cc0d3['markInsertion'](_0x28ec83['createRange'](_0x1a66bc['start'],_0x2f2c7f['start']),'convertInlineImageToBlock'),_0x2f2c7f['end']['isBefore'](_0x1a66bc['end'])&&_0x3cc0d3['markInsertion'](_0x28ec83['createRange'](_0x2f2c7f['end'],_0x1a66bc['end']),'convertInlineImageToBlock');});}),_0x3cc0d3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3cc0d3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3cc0d3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3cc0d3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3cc0d3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3cc0d3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x142a32])=>{const _0x2f9fe0=_0x3cc0d3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x35388a=_0x142a32['start'],_0xb2eb65=_0x142a32['end'];const _0x555771=_0x2b52d6['model']['schema']['getNearestSelectionRange'](_0x35388a,'backward'),_0x409955=_0x2b52d6['model']['schema']['getNearestSelectionRange'](_0xb2eb65,'forward');_0x555771['isCollapsed']&&(_0x35388a=_0x555771['start']),_0x409955['isCollapsed']&&(_0xb2eb65=_0x409955['end']),_0x2f9fe0([_0x2b52d6['model']['createRange'](_0x35388a,_0xb2eb65)]);}),_0x3cc0d3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4143d9),_0x3cc0d3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4143d9)),_0x2b52d6['plugins']['has']('ImageCaptionEditing')&&(_0x3cc0d3['enableCommand']('toggleImageCaption',(_0x2b4328,_0x6025c)=>{const _0x3cb4c2=_0x2b52d6['plugins']['get']('ImageCaptionUtils');let _0x2b6339=_0x30a232['getClosestSelectedImageElement'](_0x2b52d6['model']['document']['selection']),_0x413485=_0x3cb4c2['getCaptionFromImageModelElement'](_0x2b6339);_0x2b52d6['model']['change'](()=>{if(_0x413485)return void _0x3cc0d3['markDeletion'](_0x2b52d6['model']['createRangeOn'](_0x413485));const _0x58ffe5=_0x30a232['isBlockImage'](_0x2b6339);_0x2b4328(_0x6025c),_0x2b6339=_0x30a232['getClosestSelectedImageElement'](_0x2b52d6['model']['document']['selection']),_0x413485=_0x3cb4c2['getCaptionFromImageModelElement'](_0x2b6339),_0x3cc0d3['markInsertion'](_0x2b52d6['model']['createRangeOn'](_0x413485),_0x58ffe5?null:'imageCaption');});}),_0x3cc0d3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4143d9));const _0x2cfbe6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x360acd(_0x24cbfc,_0x200b47){const _0x76a217=_0x2cfbe6['findIndex'](({type:_0x249ba6,subType:_0x12d161})=>_0x24cbfc['type']==_0x249ba6&&_0x24cbfc['subType']==_0x12d161),_0x58b6d1=_0x2cfbe6['findIndex'](({type:_0x46d04e,subType:_0x12fa7c})=>_0x200b47['type']==_0x46d04e&&_0x200b47['subType']==_0x12fa7c);if(_0x76a217<0x0||_0x58b6d1<0x0)return!0x1;const _0x1fc039=_0x24cbfc['getFirstRange'](),_0x4c89c0=_0x200b47['getFirstRange']();if((0x0==_0x76a217||0x1==_0x76a217)&&0x2==_0x58b6d1&&_0x1fc039['isIntersecting'](_0x4c89c0))return!0x0;if(0x2==_0x76a217&&0x3==_0x58b6d1){const _0x2f289d=_0x3cc0d3['_findSuggestions'](_0x1fc039,'insertion')['filter'](({suggestion:_0x415efa,meta:_0x196a07})=>_0x196a07['isOwn']&&'convertInlineImageToBlock'==_0x415efa['subType']);if(_0x2f289d['length']>0x1&&_0x4c89c0['end']['isEqual'](_0x1fc039['start']))return!0x0;if(0x1==_0x2f289d['length']&&(_0x1fc039['start']['isEqual'](_0x4c89c0['end'])||_0x1fc039['end']['isEqual'](_0x4c89c0['start'])))return!0x0;}if(0x3==_0x76a217&&0x3==_0x58b6d1&&_0x1fc039['start']['isBefore'](_0x4c89c0['start'])){const _0x16de6b=_0x1fc039['end']['nodeAfter'],_0x5e7624=_0x4c89c0['start']['nodeBefore'];return _0x30a232['isBlockImage'](_0x16de6b)&&_0x16de6b===_0x5e7624;}return!0x1;}function _0x4143d9(_0x11387a,_0xf58b41){return _0x360acd(_0x11387a,_0xf58b41)?[_0x11387a,_0xf58b41]:_0x360acd(_0xf58b41,_0x11387a)?[_0xf58b41,_0x11387a]:null;}_0x2b52d6['plugins']['has']('ImageResize')&&(_0x3cc0d3['enableDefaultAttributesIntegration']('resizeImage'),_0x3cc0d3['registerBlockAttribute']('resizedWidth'),_0x3cc0d3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1f37eb,'FORMAT_IMAGE_SIZE'))),_0x2b52d6['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3cc0d3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3cc0d3['registerBlockAttribute']('alt')),_0x2b52d6['plugins']['has']('PictureEditing')&&(_0x3cc0d3['registerBlockAttribute']('sources'),_0x3cc0d3['descriptionFactory']['registerDescriptionCallback'](_0x48e94c=>{if('attribute'!=_0x48e94c['type'])return;const {data:_0xbc5a35}=_0x48e94c;return _0xbc5a35&&'sources'==_0xbc5a35['key']?{'type':'format','content':''}:void 0x0;})),_0x2b52d6['plugins']['has']('ImageSizeAttributes')&&(_0x3cc0d3['registerBlockAttribute']('width'),_0x3cc0d3['registerBlockAttribute']('height'),_0x3cc0d3['descriptionFactory']['registerDescriptionCallback'](_0xe8e562=>{if('attribute'!=_0xe8e562['type'])return;const {data:_0x3d0a40}=_0xe8e562;return!_0x3d0a40||'width'!=_0x3d0a40['key']&&'height'!=_0x3d0a40['key']?void 0x0:{'type':'format','content':''};})),_0x3cc0d3['descriptionFactory']['registerDescriptionCallback'](_0x3e4a27=>{if(!!_0x2cfbe6['find'](({type:_0x563c84,subType:_0x4ca9ad})=>_0x3e4a27['type']==_0x563c84&&_0x3e4a27['subType']==_0x4ca9ad))return _0x3e4a27['previous']?{}:void 0x0;}),_0x3cc0d3['descriptionFactory']['registerDescriptionCallback'](_0xb22701=>{if('insertion'==_0xb22701['type']||'deletion'==_0xb22701['type']){const _0x5d78ef=_0xb22701['getContainedElement']();if(_0x5d78ef&&_0x5d78ef['is']('element','caption'))return{'type':'insertion'==_0xb22701['type']?'addObject':'removeObject','element':_0x5d78ef,'quantity':0x1};}}),_0x3cc0d3['descriptionFactory']['registerDescriptionCallback'](_0x2f93e7=>'formatBlock'==_0x2f93e7['type']&&'convertInlineImageToBlock'==_0x2f93e7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2f93e7['type']&&'convertBlockImageToInline'==_0x2f93e7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3cc0d3['descriptionFactory']['registerDescriptionCallback'](_0x3611ed=>{if('attribute'!=_0x3611ed['type'])return;const {data:_0x49ab85}=_0x3611ed;if(!_0x49ab85||'alt'!=_0x49ab85['key'])return;const _0x510be8=_0x49ab85['newValue'];return _0x510be8?{'type':'format','content':o(_0x1f37eb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x510be8+'\x22')}:{'type':'format','content':o(_0x1f37eb,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17da53=this['editor'],_0x221c7e=_0x17da53['locale'];_0x17da53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f2158=>{if('formatBlock'!=_0x2f2158['type']&&'formatInline'!=_0x2f2158['type'])return;const {data:_0x50f40c}=_0x2f2158;if(_0x50f40c){if('imageTextAlternative'==_0x50f40c['commandName']){const _0x7f61ad=_0x50f40c['commandParams'][0x0]['newValue'];return _0x7f61ad?{'type':'format','content':o(_0x221c7e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7f61ad+'\x22')}:{'type':'format','content':o(_0x221c7e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x50f40c['commandName']){const _0x598a6e=_0x50f40c['commandParams'][0x0]['width'];return _0x598a6e?{'type':'format','content':o(_0x221c7e,'*Set\x20image\x20width:*\x20%0',_0x598a6e)}:{'type':'format','content':o(_0x221c7e,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2d2df5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3f8d2c=this['editor']['locale'],_0x159a6b=this['editor']['plugins']['get']('TrackChangesEditing');_0x159a6b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x159a6b['registerBlockAttribute']('src'),_0x159a6b['descriptionFactory']['registerDescriptionCallback'](_0x50d69d=>{if('attribute'!=_0x50d69d['type'])return;const {data:_0x5b6f8c}=_0x50d69d;return _0x5b6f8c&&'src'==_0x5b6f8c['key']?_0x5b6f8c['newValue']&&_0x5b6f8c['oldValue']?{'type':'format','content':o(_0x3f8d2c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x565bd8=this['editor']['plugins']['get']('TrackChangesEditing');_0x565bd8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x565bd8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x565bd8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x565bd8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1464db=this['editor'],_0x572d81=_0x1464db['locale'];_0x1464db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a016c=>{if('formatBlock'!=_0x1a016c['type']&&'formatInline'!=_0x1a016c['type'])return;const {data:_0x5abb7a}=_0x1a016c;if(!_0x5abb7a||'replaceImageSource'!=_0x5abb7a['commandName'])return;return{'type':'format','content':o(_0x572d81,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x2d2df5{['afterInit'](){const _0x2bef79=this['editor'];if(!_0x2bef79['plugins']['has']('ImageStyleEditing'))return;const _0x4fb734=_0x2bef79['plugins']['get']('TrackChangesEditing'),_0x31eef7=_0x2bef79['plugins']['get']('ImageUtils'),_0x28746d={};_0x4fb734['enableCommand']('imageStyle',(_0x7b8b4b,_0x3c1c2e)=>{const _0x52d1ea=_0x2bef79['plugins']['get']('Users')['me'],_0x50166e=_0x2bef79['commands']['get']('imageStyle');let _0x4bed32=_0x31eef7['getClosestSelectedImageElement'](_0x2bef79['model']['document']['selection']),_0x46c138=_0x2bef79['model']['createRangeOn'](_0x4bed32),_0x272c9b=_0x50166e['value'];if(_0x272c9b==_0x3c1c2e['value'])return;const _0x58e75b={'commandName':'imageStyle','commandParams':[_0x3c1c2e],'formatGroupId':_0x1e8ea4()};_0x2bef79['model']['change'](()=>{if(_0x4fb734['getSuggestions']()['filter'](_0x252fd8=>_0x252fd8['isInContent']&&_0x52d1ea==_0x252fd8['author']&&('formatBlock'==_0x252fd8['type']||'formatInline'==_0x252fd8['type'])&&('imageStylePreApply'==_0x252fd8['subType']||'imageStylePostApply'==_0x252fd8['subType'])&&_0x252fd8['getFirstRange']()['isEqual'](_0x46c138))['forEach'](_0x5bc206=>_0x4fb734['discardSuggestion'](_0x5bc206['head'])),_0x4bed32=_0x31eef7['getClosestSelectedImageElement'](_0x2bef79['model']['document']['selection']),_0x46c138=_0x2bef79['model']['createRangeOn'](_0x4bed32),_0x50166e['refresh'](),_0x2bef79['commands']['get']('imageTypeInline')['refresh'](),_0x2bef79['commands']['get']('imageTypeBlock')['refresh'](),_0x272c9b=_0x50166e['value'],_0x272c9b!=_0x3c1c2e['value'])return _0x31eef7['isInlineImage'](_0x4bed32)&&_0x50166e['shouldConvertImageType'](_0x3c1c2e['value'],_0x4bed32)?(_0x7b8b4b({..._0x3c1c2e,'setImageSizes':!0x1}),_0x4bed32=_0x31eef7['getClosestSelectedImageElement'](_0x2bef79['model']['document']['selection']),void _0x4fb734['markBlockFormat'](_0x4bed32,{..._0x58e75b,'commandReversedParams':[{'value':_0x272c9b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x31eef7['isBlockImage'](_0x4bed32)?_0x4fb734['markBlockFormat'](_0x4bed32,_0x58e75b,[],'imageStylePostApply'):_0x4fb734['markInlineFormat'](_0x46c138,_0x58e75b,'imageStylePostApply'));});});for(const _0x3d711d of _0x2bef79['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x28746d[_0x3d711d['name']]=_0x3d711d['title']['toLowerCase']();_0x4fb734['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4fb734['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4fb734['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4fb734['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x50b7e0])=>{_0x31eef7['setImageNaturalSizeAttributes'](_0x50b7e0['getContainedElement']());}),_0x4fb734['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x352b48,_0x131823)=>{_0x4fb734['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x352b48,{'commandName':_0x131823['commandName'],'commandParams':_0x131823['commandReversedParams']});}),_0x4fb734['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x41f623,_0x4ba0dc){if(_0x5633e1(_0x41f623,_0x4ba0dc))return[_0x41f623,_0x4ba0dc];if(_0x5633e1(_0x4ba0dc,_0x41f623))return[_0x4ba0dc,_0x41f623];return null;});const _0x13165f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5633e1(_0x4356f2,_0x18d506){const _0x375b94=_0x13165f['findIndex'](({type:_0x334bc5,subType:_0x4ebd6f})=>_0x4356f2['type']==_0x334bc5&&_0x4356f2['subType']==_0x4ebd6f),_0x2c81be=_0x13165f['findIndex'](({type:_0x20fb61,subType:_0x374659})=>_0x18d506['type']==_0x20fb61&&_0x18d506['subType']==_0x374659);if(_0x375b94<0x0||_0x2c81be<0x0)return!0x1;const _0x313cf8=_0x4356f2['getFirstRange'](),_0x19c83f=_0x18d506['getFirstRange']();if((0x0==_0x375b94||0x1==_0x375b94)&&0x2==_0x2c81be&&_0x313cf8['isIntersecting'](_0x19c83f))return!0x0;if(0x2==_0x375b94&&0x3==_0x2c81be){const _0x1b3721=_0x4fb734['_findSuggestions'](_0x313cf8,'insertion')['filter'](({suggestion:_0x5bd0f9,meta:_0x2c9588})=>_0x2c9588['isOwn']&&'convertInlineImageToBlock'==_0x5bd0f9['subType']);if(_0x1b3721['length']>0x1&&_0x19c83f['end']['isEqual'](_0x313cf8['start']))return!0x0;if(0x1==_0x1b3721['length']&&(_0x313cf8['start']['isEqual'](_0x19c83f['end'])||_0x313cf8['end']['isEqual'](_0x19c83f['start'])))return!0x0;}if(0x3==_0x375b94&&0x3==_0x2c81be&&_0x313cf8['start']['isBefore'](_0x19c83f['start'])){const _0xf1dd66=_0x313cf8['end']['nodeAfter'],_0x2b510b=_0x19c83f['start']['nodeBefore'];return _0x31eef7['isBlockImage'](_0xf1dd66)&&_0xf1dd66===_0x2b510b;}return!0x1;}_0x2bef79['model']['document']['registerPostFixer'](()=>{let _0x597a12=!0x1;const _0x527f74=Array['from'](_0x2bef79['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x291a73,data:_0x1d4d80}of _0x527f74){const {group:_0x49594b,type:_0x33d32c,subType:_0x549a26,id:_0x188abb}=_0x4fb734['_splitMarkerName'](_0x291a73);if('suggestion'==_0x49594b&&_0x4fb734['hasSuggestion'](_0x188abb)){if('formatBlock'==_0x33d32c&&('imageStylePreApply'==_0x549a26||'imageStylePostApply'==_0x549a26)){const _0x1ee09b=_0x4fb734['getSuggestion'](_0x188abb);if(_0x1d4d80['newRange']){const _0x59ce3d=_0x1ee09b['getFirstRange']()['getContainedElement']();if(_0x31eef7['isBlockImage'](_0x59ce3d))continue;_0x4fb734['discardSuggestion'](_0x1ee09b),_0x597a12=!0x0;}}if('insertion'==_0x33d32c&&'imageCaption'==_0x549a26&&!_0x1d4d80['newRange']){const _0x219ae3=_0x4fb734['getSuggestion'](_0x188abb);_0x219ae3['next']&&_0x219ae3['next']['isInContent']&&(_0x4fb734['discardSuggestion'](_0x219ae3['next']),_0x597a12=!0x0);}}}return _0x597a12;}),this['_registerLegacyDescription'](_0x28746d);}['_registerLegacyDescription'](_0x2da7a8){const _0x5ee2d2=this['editor'],_0x238726=_0x5ee2d2['locale'];_0x5ee2d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3af2c3=>{if('formatBlock'!=_0x3af2c3['type']&&'formatInline'!=_0x3af2c3['type'])return;const {data:_0x23e3d6}=_0x3af2c3;if(!_0x23e3d6||'imageStyle'!=_0x23e3d6['commandName'])return;const _0x2b4922=_0x23e3d6['commandParams'][0x0]['value'];return _0x3e74be('side'===_0x2b4922?o(_0x238726,'FORMAT_SIDE_IMAGE'):_0x2da7a8[_0x2b4922]||_0x2b4922);function _0x3e74be(_0x5b7596){return{'type':'format','content':o(_0x238726,'*Format:*\x20%0',_0x5b7596)};}});}}class rt extends _0x2d2df5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x477bb0){super(_0x477bb0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4a0f4c=this['editor'],_0x198b44=_0x4a0f4c['commands']['get']('importWord'),_0x1da395=_0x4a0f4c['commands']['get']('trackChanges');_0x198b44&&(_0x198b44['on']('execute',(_0x3b9dbb,[,_0x4c96aa])=>{this['_trackChangesValueDuringImport']=_0x1da395['value'],_0x4c96aa['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x198b44,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x198b44,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1da395['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4a0f4c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5f09c8,_0x1cdf5d){const {suggestions:_0x562e04}=_0x1cdf5d,_0x3cf494=this['editor']['commands']['get']('trackChanges'),_0x2ad299=_0x3cf494['value'];this['_trackChangesValueDuringImport']!==_0x2ad299&&(_0x3cf494['execute'](),this['_trackChangesExecuted']=!0x0),_0x562e04&&_0x562e04['forEach'](({id:_0x19e654,type:_0x21755f,author:_0x434949,created_at:_0x32bf8e})=>{const _0x468824={'id':_0x19e654,'type':_0x21755f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x434949,'createdAt':_0x32bf8e?new Date(_0x32bf8e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x468824);});}}class at extends _0x2d2df5{['afterInit'](){const _0xd91b3=this['editor'],_0x26e6d8=_0xd91b3['plugins']['get']('TrackChangesEditing');if(_0xd91b3['plugins']['has']('IndentEditing')&&(_0x26e6d8['enableCommand']('indent'),_0x26e6d8['enableCommand']('outdent')),_0xd91b3['plugins']['has']('IndentBlock')){for(const _0xb115b7 of['indentBlock','outdentBlock'])_0x26e6d8['enableDefaultAttributesIntegration'](_0xb115b7);}const _0x1bbc96=_0xd91b3['locale'];_0x26e6d8['registerBlockAttribute']('blockIndent'),_0x26e6d8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1bbc96,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b0c19=this['editor'],_0x35dfa9=_0x2b0c19['locale'],_0x1201ec=_0x2b0c19['plugins']['get']('TrackChangesEditing');_0x1201ec['descriptionFactory']['registerDescriptionCallback'](_0x4a8740=>{if('formatBlock'!=_0x4a8740['type'])return;const {data:_0x4853a6}=_0x4a8740;if(!_0x4853a6)return;if('indentBlock'!=_0x4853a6['commandName']&&'outdentBlock'!=_0x4853a6['commandName'])return;const _0x73f349=_0x4a8740['getItems']()[0x0],_0x36f21d=_0x1201ec['descriptionFactory']['getItemLabel'](_0x73f349);return'indentBlock'==_0x4853a6['commandName']?{'type':'format','content':o(_0x35dfa9,'*Indent:*\x20%0',_0x36f21d)}:'outdentBlock'==_0x4853a6['commandName']?{'type':'format','content':o(_0x35dfa9,'*Outdent:*\x20%0',_0x36f21d)}:void 0x0;});}}class ct extends _0x2d2df5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x2d2df5{['afterInit'](){const _0x3f0ef9=this['editor'];if(!_0x3f0ef9['plugins']['has']('LinkEditing'))return;const _0x42d846=_0x3f0ef9['plugins']['get']('TrackChangesEditing'),_0x7d3801=_0x3f0ef9['commands']['get']('link');_0x42d846['enableDefaultAttributesIntegration']('link'),_0x42d846['enableDefaultAttributesIntegration']('unlink'),_0x42d846['registerInlineAttribute']('linkHref');for(const _0xf1d56d of _0x7d3801['manualDecorators'])_0x42d846['registerInlineAttribute'](_0xf1d56d['id']),_0x42d846['descriptionFactory']['registerAttributeLabel'](_0xf1d56d['id'],'link\x20('+_0xf1d56d['label']['toLowerCase']()+')');_0x42d846['descriptionFactory']['registerDescriptionCallback'](_0x223e46=>{if('attribute'!=_0x223e46['type'])return;const {data:_0xa5ca34}=_0x223e46;if(!_0xa5ca34||'linkHref'!=_0xa5ca34['key'])return;const _0x557cad=_0xa5ca34['newValue'],_0x4eaad2=_0x3f0ef9['locale'];return{'type':'format','content':null==_0x557cad?o(_0x4eaad2,'*Remove\x20link*'):o(_0x4eaad2,'*Set\x20link:*\x20%0','\x22'+_0x557cad+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b4379=this['editor'],_0x393f7b=_0x5b4379['locale'];_0x5b4379['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bbadc=>{if('formatInline'!=_0x3bbadc['type'])return;const {data:_0x5c6be3}=_0x3bbadc;if(_0x5c6be3){if('link'==_0x5c6be3['commandName']){const _0x45833e=_0x5c6be3['commandParams'][0x0];return{'type':'format','content':o(_0x393f7b,'*Set\x20link:*\x20%0','\x22'+_0x45833e+'\x22')};}return'unlink'==_0x5c6be3['commandName']?{'type':'format','content':o(_0x393f7b,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2d2df5{['afterInit'](){const _0x428aaf=this['editor'],_0x15af02=_0x428aaf['locale'];if(!_0x428aaf['plugins']['has']('LegacyListEditing'))return;const _0x55ae8d=_0x428aaf['plugins']['get']('TrackChangesEditing'),_0x103602=_0x428aaf['plugins']['has']('LegacyTodoListEditing');function _0xe581df(_0x3c9492){return()=>{const _0x51b32c=_0x428aaf['model']['document']['selection'],_0x533a7a=_0x428aaf['commands']['get'](_0x3c9492);if(_0x533a7a['value'])return void _0x428aaf['execute']('paragraph',{});const _0x34654d=_0x3c9492['slice'](0x0,-0x4),_0x41f210=function(_0x190eb0,_0x1f3243,_0x1df86a){let _0x224f35=Array['from'](_0x190eb0)['filter'](_0x4eed94=>function(_0x277e42,_0x2c640f){return _0x2c640f['checkChild'](_0x277e42['parent'],'listItem')&&!_0x2c640f['isObject'](_0x277e42);}(_0x4eed94,_0x1df86a));_0x224f35=_0x224f35['filter'](_0x3e12b7=>!_0x3e12b7['is']('element','listItem')||_0x3e12b7['getAttribute']('listType')!=_0x1f3243);const _0x5a80bb=new Set();for(const _0x4fb43c of _0x224f35)_0x4fb43c['is']('element','listItem')?_0x5a80bb['add'](Le(_0x4fb43c)):_0x5a80bb['add'](_0x4fb43c);return Array['from'](_0x5a80bb);}(_0x51b32c['getSelectedBlocks'](),_0x34654d,_0x428aaf['model']['schema']);_0x428aaf['model']['change'](()=>{for(const _0x659025 of _0x41f210)_0x55ae8d['markBlockFormat'](_0x659025,{'commandName':_0x3c9492,'commandParams':[{'forceValue':!_0x533a7a['value']}],'formatGroupId':'blockName'},Ee(_0x659025));});};}function _0x1ab30b(_0x44a9ea){return()=>{const _0x50420e=function(_0x9e3a80){let _0x2bc105=Array['from'](_0x9e3a80);const _0x3df3b4=_0x2bc105['findIndex'](_0x2dd5f8=>'listItem'!=_0x2dd5f8['name']);return _0x3df3b4>-0x1&&(_0x2bc105=_0x2bc105['slice'](0x0,_0x3df3b4)),_0x2bc105;}(_0x428aaf['model']['document']['selection']['getSelectedBlocks']()),_0x39d637=_0x428aaf['model']['createRange'](_0x428aaf['model']['createPositionAt'](_0x50420e[0x0],'before'),_0x428aaf['model']['createPositionAt'](_0x50420e[_0x50420e['length']-0x1],'end'));_0x428aaf['model']['change'](()=>{_0x55ae8d['markBlockFormat'](_0x39d637,{'commandName':_0x44a9ea,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4974ee){const _0x50cc14=new Set();for(const _0x50db2e of _0x4974ee){let _0xcca687=_0x50db2e['nextSibling'];for(;_0xcca687&&_0xcca687['getAttribute']('listIndent')>_0x50db2e['getAttribute']('listIndent');)_0x50cc14['add'](_0xcca687),_0xcca687=_0xcca687['nextSibling'];}return Array['from'](_0x50cc14);}(_0x50420e));});};}_0x55ae8d['enableCommand']('numberedList',_0xe581df('numberedList')),_0x55ae8d['enableCommand']('bulletedList',_0xe581df('bulletedList')),_0x103602&&_0x55ae8d['enableCommand']('todoList',_0xe581df('todoList')),_0x55ae8d['enableCommand']('indentList',_0x1ab30b('indentList')),_0x55ae8d['enableCommand']('outdentList',_0x1ab30b('outdentList')),_0x103602&&_0x55ae8d['enableCommand']('checkTodoList',()=>{const _0x4b513d=_0x428aaf['commands']['get']('checkTodoList'),_0x2252ee=Array['from'](_0x4b513d['_selectedElements']);_0x2252ee['filter'](_0xfd2326=>_0xfd2326['getAttribute']('todoListChecked')!=_0x4b513d['value']),_0x428aaf['model']['change'](()=>{for(const _0x5668d2 of _0x2252ee)_0x55ae8d['markBlockFormat'](_0x5668d2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4b513d['value']}]});});}),_0x55ae8d['descriptionFactory']['registerElementLabel']('listItem',_0x518d9c=>o(_0x15af02,'ELEMENT_LIST_ITEM',_0x518d9c)),_0x55ae8d['descriptionFactory']['registerDescriptionCallback'](_0x5075fa=>{if('formatBlock'!=_0x5075fa['type']&&'formatInline'!=_0x5075fa['type'])return;const {data:_0x4e0a60}=_0x5075fa;if(_0x4e0a60){if('numberedList'==_0x4e0a60['commandName']||'bulletedList'==_0x4e0a60['commandName']||'todoList'==_0x4e0a60['commandName'])switch(_0x4e0a60['commandName']['replace']('List','')){case'bulleted':return _0x1ce8cf(o(_0x15af02,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1ce8cf(o(_0x15af02,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1ce8cf(o(_0x15af02,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4e0a60['commandName'])return{'type':'format','content':o(_0x15af02,'*Indent:*\x20%0',o(_0x15af02,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4e0a60['commandName'])return{'type':'format','content':o(_0x15af02,'*Outdent:*\x20%0',o(_0x15af02,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4e0a60['commandName'])return _0x4e0a60['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15af02,'*Check\x20item*')}:{'type':'format','content':o(_0x15af02,'*Uncheck\x20item*')};}function _0x1ce8cf(_0x19a8c1){return{'type':'format','content':o(_0x15af02,'*Change\x20to:*\x20%0',_0x19a8c1)};}});}}function Le(_0x122365){const _0x36ae82=_0x122365['getAttribute']('listIndent');if(0x0==_0x36ae82)return _0x122365;let _0x1a84c8=_0x122365;for(;_0x122365['previousSibling']&&_0x122365['previousSibling']['is']('element','listItem');){const _0x56de08=_0x122365['previousSibling']['getAttribute']('listIndent');if(_0x56de08==_0x36ae82)_0x1a84c8=_0x122365['previousSibling'];else{if(_0x56de08<_0x36ae82)break;}_0x122365=_0x122365['previousSibling'];}return _0x1a84c8;}function Ee(_0x3766d9){const _0x5eac39=[];if(_0x3766d9['is']('element','listItem')&&_0x3766d9['getAttribute']('listIndent')>0x0){let _0x14e283=_0x3766d9['nextSibling'];for(;_0x14e283&&'listItem'==_0x14e283['name']&&_0x14e283['getAttribute']('listIndent')==_0x3766d9['getAttribute']('listIndent');)_0x5eac39['push'](_0x14e283),_0x14e283=_0x14e283['nextSibling'];}return _0x5eac39;}class ht extends _0x2d2df5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4bb6bd=this['editor']['config']['get']('list.properties'),_0x1fb42d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4bb6bd['styles']&&_0x1fb42d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4bb6bd['reversed']&&_0x1fb42d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4bb6bd['startIndex']&&_0x1fb42d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1fb42d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x32244d,_0x19e91a={}){const _0x2d6383=this['editor']['plugins']['get']('TrackChangesEditing'),_0x125ca5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2d6383['markMultiRangeBlockFormat'](_0x125ca5,{'commandName':'listStyle','commandParams':[{'type':_0x19e91a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3a7673,_0x30de5f={}){const _0x1e2e7e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33cb5f=this['_getSuggestionBlocks'](_0x48e2c9=>_0x48e2c9['is']('element','listItem')&&'numbered'===_0x48e2c9['getAttribute']('listType'));if(_0x33cb5f['length']<0x1)return;const _0x4e83c1=_0x33cb5f['map'](_0x3bc4da=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bc4da,'before'),this['editor']['model']['createPositionAt'](_0x3bc4da,0x0)));this['editor']['model']['change'](()=>{_0x1e2e7e['markMultiRangeBlockFormat'](_0x4e83c1,{'commandName':'listReversed','commandParams':[{'reversed':_0x30de5f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x41eec4,_0x336e99={}){const _0x1eab39=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2354d0=this['_getSuggestionBlocks'](_0x5bbc3d=>_0x5bbc3d['is']('element','listItem')&&'numbered'===_0x5bbc3d['getAttribute']('listType'));if(_0x2354d0['length']<0x1)return;const _0xf1171c=_0x2354d0['map'](_0x5356af=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5356af,'before'),this['editor']['model']['createPositionAt'](_0x5356af,0x0)));this['editor']['model']['change'](()=>{_0x1eab39['markMultiRangeBlockFormat'](_0xf1171c,{'commandName':'listStart','commandParams':[{'startIndex':_0x336e99['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1d40be){if('formatBlock'!=_0x1d40be['type']&&'formatInline'!=_0x1d40be['type'])return;const _0x1caa7c=this['editor']['locale'],{data:_0x5eb0fb}=_0x1d40be;if(!_0x5eb0fb)return;let _0x4ada30,_0x4f2f8d;switch(_0x5eb0fb['commandName']){case'listStyle':_0x4ada30='*Change\x20to:*\x20%0',_0x4f2f8d={'type':'format','content':o(_0x1caa7c,_0x4ada30,o(_0x1caa7c,this['_getTranslationKeyForListStyle'](_0x5eb0fb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ada30=_0x5eb0fb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f2f8d={'type':'format','content':o(_0x1caa7c,_0x4ada30)};break;case'listStart':_0x4ada30='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f2f8d={'type':'format','content':o(_0x1caa7c,_0x4ada30,_0x5eb0fb['commandParams'][0x0]['startIndex'])};}return _0x4f2f8d;}['_getSuggestionBlocksForListStyle'](){const _0x259ada=this['editor']['plugins']['get']('LegacyListUtils');let _0x208374=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x208374[0x0]?.['is']('element','listItem')&&_0x208374['unshift'](..._0x259ada['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x208374[_0x208374['length']-0x1]?.['is']('element','listItem')&&_0x208374['push'](..._0x259ada['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x208374=[...new Set(_0x208374)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x208374=_0x208374['filter'](_0x2bac1e=>_0x2bac1e['is']('element','listItem'))),_0x208374;}['_getSuggestionBlocks'](_0x4acce9){const _0x4155c4=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b16d8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4acce9)['map'](_0x1d89c7=>{const _0x729960=this['editor']['model']['createPositionAt'](_0x1d89c7,0x0);return[..._0x4155c4['getSiblingNodes'](_0x729960,'backward'),..._0x4155c4['getSiblingNodes'](_0x729960,'forward')];})['flat']();return _0x4b16d8=[...new Set(_0x4b16d8)],_0x4b16d8;}['_getTranslationKeyForListStyle'](_0x149db6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x149db6)||'default')['toUpperCase']()+'_LIST_'+_0x149db6['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x2d2df5{['afterInit'](){const _0x5f07fd=this['editor'];if(!_0x5f07fd['plugins']['has']('MediaEmbedEditing'))return;const _0x1b028b=_0x5f07fd['plugins']['get']('TrackChangesEditing'),_0x121405=_0x5f07fd['locale'];_0x1b028b['enableCommand']('mediaEmbed'),_0x1b028b['descriptionFactory']['registerElementLabel']('media',_0x28f20a=>o(_0x121405,'ELEMENT_MEDIA',_0x28f20a)),_0x5f07fd['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x564134,{writer:_0x236d5e,options:_0x24ce7f})=>{if(_0x24ce7f['showSuggestionHighlights'])return _0x236d5e['createEmptyElement']('div');},'converterPriority':'high'}),_0x5f07fd['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1ebf6f,_0x19d2f8,_0x4a6906)=>{_0x4a6906['options']['showSuggestionHighlights']&&_0x1ebf6f['stop']();},{'priority':'high'});}}class lt extends _0x2d2df5{['afterInit'](){const _0x4719c2=this['editor'];_0x4719c2['plugins']['has']('MentionEditing')&&_0x4719c2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2d2df5{['afterInit'](){const _0x4024ee=this['editor'];if(!_0x4024ee['plugins']['has']('MergeFieldsEditing'))return;const _0x4d11a3=_0x4024ee['plugins']['get']('TrackChangesEditing'),_0xcf1ff0=_0x4024ee['locale'];_0x4d11a3['enableCommand']('insertMergeField'),_0x4d11a3['enableCommand']('insertMergeFieldBlock'),_0x4d11a3['enableCommand']('insertMergeFieldImage'),_0x4d11a3['descriptionFactory']['registerElementLabel']('mergeField',_0x2ac099=>o(_0xcf1ff0,'ELEMENT_MERGE_FIELD',_0x2ac099)),_0x4d11a3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xd975d5=>o(_0xcf1ff0,'ELEMENT_MERGE_FIELD',_0xd975d5)),_0x4d11a3['descriptionFactory']['registerDescriptionCallback'](_0x460152=>{if('insertion'!=_0x460152['type']&&'deletion'!=_0x460152['type'])return;const _0x441506=_0x460152['getContainedElement']();if(null==_0x441506)return;const _0x318abc=_0x4024ee['plugins']['get']('MergeFieldsEditing');let _0x338581;switch(_0x318abc['getMergeFieldType'](_0x441506)){case null:return;case'image':{const _0x12c8a1=_0x318abc['unwrapAffixes'](_0x441506['getAttribute']('src'));_0x338581=_0x318abc['getLabel'](_0x12c8a1)||_0x12c8a1;break;}default:{const _0x5eb6f8=_0x441506['getAttribute']('id');_0x338581=_0x318abc['getLabel'](_0x5eb6f8)||_0x5eb6f8;break;}}return'insertion'==_0x460152['type']?{'type':'insertion','content':o(_0xcf1ff0,'*Insert:*\x20%0','\x22'+_0x338581+'\x22\x20'+o(_0xcf1ff0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xcf1ff0,'*Remove:*\x20%0','\x22'+_0x338581+'\x22\x20'+o(_0xcf1ff0,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x2d2df5{['afterInit'](){const _0x3d2577=this['editor'],_0x3a549d=_0x3d2577['plugins']['get']('TrackChangesEditing');_0x3d2577['plugins']['has']('MultiLevelList')&&(_0x3a549d['enableDefaultAttributesIntegration']('multiLevelList'),_0x3a549d['registerBlockAttribute']('listMarkerStyle'),_0x3a549d['descriptionFactory']['registerDescriptionCallback'](_0x587ec0=>this['handleDescriptions'](_0x587ec0)));}['handleDescriptions'](_0x394481){const _0x436118=this['editor']['locale'],{data:_0x34a882}=_0x394481,_0x6f8775={'type':'format','content':''};if(_0x34a882&&'listMarkerStyle'==_0x34a882['key']){if(!_0x34a882['oldValue'])return{'type':'format','content':o(_0x436118,'*Set\x20format:*\x20%0',o(_0x436118,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x34a882['newValue']+')'};if(!_0x34a882['newValue']){let _0x189bf3=_0x394481['head'];for(;_0x189bf3;){if(_0x189bf3['data']&&'listType'==_0x189bf3['data']['key']&&_0x189bf3['data']['newValue'])return _0x6f8775;_0x189bf3=_0x189bf3['next'];}return{'type':'format','content':o(_0x436118,'*Remove\x20format:*\x20%0',o(_0x436118,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x34a882['oldValue']+')'};}}}}class pt extends _0x2d2df5{['afterInit'](){const _0x5e04e3=this['editor'];if(!_0x5e04e3['plugins']['has']('PageBreakEditing'))return;_0x5e04e3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x54a0a3=_0x5e04e3['plugins']['get']('TrackChangesEditing'),_0x2ef691=_0x5e04e3['locale'];_0x54a0a3['descriptionFactory']['registerElementLabel']('pageBreak',_0x39ffd5=>o(_0x2ef691,'ELEMENT_PAGE_BREAK',_0x39ffd5));}}class kt extends _0x2d2df5{['afterInit'](){const _0x306b33=this['editor'];if(!_0x306b33['plugins']['has']('Paragraph'))return;const _0x3d10a5=_0x306b33['locale'],_0x3060ce=_0x306b33['plugins']['get']('TrackChangesEditing');_0x3060ce['descriptionFactory']['registerElementLabel']('paragraph',_0x89fb83=>o(_0x3d10a5,'ELEMENT_PARAGRAPH',_0x89fb83)),_0x3060ce['enableDefaultAttributesIntegration']('paragraph'),_0x3060ce['enableCommand']('insertParagraph'),_0x306b33['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x306b33),{'priority':'highest'}),_0x306b33['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1445cd,_0x2aa32a,_0x22eeb2)=>{_0x22eeb2['options']['showSuggestionHighlights']&&nr(_0x306b33,{'showActiveMarker':!0x1})(_0x1445cd,_0x2aa32a,_0x22eeb2);},{'priority':'highest'});const _0x52d1ae=_0x3060ce['descriptionFactory'];_0x52d1ae['registerDescriptionCallback'](_0x4d4250=>{if('insertion'!==_0x4d4250['type'])return;const {start:_0x5ca723,end:_0x22abff}=_0x4d4250['getFirstRange']();if(!_0x5ca723['isTouching'](_0x22abff)||!_0x5ca723['nodeAfter'])return;const _0x1fb4d8=_0x306b33['model']['schema'],_0x3fc25e=_0x5ca723['nodeAfter'];return _0x1fb4d8['isBlock'](_0x3fc25e)&&!_0x1fb4d8['isLimit'](_0x3fc25e)&&_0x1fb4d8['checkChild'](_0x3fc25e,'$text')?{'type':'insertion','content':o(_0x3d10a5,'*Insert:*\x20%0',_0x52d1ae['getItemLabel'](_0x3fc25e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5230ca=this['editor'],_0x32bb83=_0x5230ca['locale'];_0x5230ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2056e4=>{if('formatBlock'!=_0x2056e4['type'])return;const {data:_0x3a1ec6}=_0x2056e4;return _0x3a1ec6&&'paragraph'==_0x3a1ec6['commandName']?{'type':'format','content':o(_0x32bb83,'*Change\x20to:*\x20%0',o(_0x32bb83,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2a4c66,{showActiveMarker:_0x165181=!0x0}={}){return(_0x41d712,_0x2183f9,_0x1adcb3)=>{const _0x46e1a5=_0x2a4c66['plugins']['get']('TrackChangesEditing'),_0x4221f8=_0x2183f9['markerRange']['start'],_0x4fd041=_0x2183f9['markerRange']['end'],_0x4cae28=_0x2a4c66['model']['schema'];if(!_0x4221f8['isTouching'](_0x4fd041)||!_0x4221f8['nodeAfter'])return;const _0x2b1ef0=_0x4221f8['nodeAfter'];if(_0x4cae28['isBlock'](_0x2b1ef0)&&!_0x4cae28['isLimit'](_0x2b1ef0)&&_0x4cae28['checkChild'](_0x2b1ef0,'$text')){if(!_0x1adcb3['consumable']['consume'](_0x2183f9['markerRange'],_0x41d712['name']))return;const {id:_0x4f44e2,authorId:_0x1061f2}=_0x46e1a5['_splitMarkerName'](_0x2183f9['markerName']),_0x18b0a5=_0x1adcb3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4f44e2,'data-author-id':_0x1061f2}),_0x5bb495=_0x1adcb3['mapper']['toViewPosition'](_0x4fd041);_0x165181&&_0x46e1a5['activeMarkers']['includes'](_0x2183f9['markerName'])&&_0x1adcb3['writer']['addClass']('ck-suggestion-marker--active',_0x18b0a5),_0x1adcb3['writer']['insert'](_0x5bb495,_0x18b0a5),_0x1adcb3['mapper']['bindElementToMarker'](_0x18b0a5,_0x2183f9['markerName']);}};}class wt extends _0x2d2df5{['afterInit'](){const _0x4d1349=this['editor'];_0x4d1349['commands']['get']('replaceSource')&&_0x4d1349['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x2d2df5{['afterInit'](){const _0x3a1d06=this['editor'];if(!_0x3a1d06['plugins']['has']('RemoveFormatEditing'))return;_0x3a1d06['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x95054c=this['editor'];_0x95054c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x124597=>{if('formatBlock'!=_0x124597['type']&&'formatInline'!=_0x124597['type'])return;const {data:_0x404c54}=_0x124597;return _0x404c54&&'removeFormat'==_0x404c54['commandName']?{'type':'format','content':o(_0x95054c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2d2df5{['afterInit'](){const _0x512024=this['editor'];if(!_0x512024['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2a02cc=_0x512024['plugins']['get']('TrackChangesEditing');_0x2a02cc['enableCommand']('goToPreviousRestrictedEditingException'),_0x2a02cc['enableCommand']('goToNextRestrictedEditingException');const _0x5f4586=_0x512024['plugins']['get']('RestrictedEditingModeEditing');_0x5f4586['enableCommand']('trackChanges'),_0x5f4586['enableCommand']('acceptSuggestion'),_0x5f4586['enableCommand']('discardSuggestion'),_0x5f4586['enableCommand']('acceptAllSuggestions'),_0x5f4586['enableCommand']('discardAllSuggestions'),_0x5f4586['enableCommand']('acceptSelectedSuggestions'),_0x5f4586['enableCommand']('discardSelectedSuggestions');}}class St extends _0x2d2df5{['afterInit'](){const _0x234226=this['editor'];if(!_0x234226['plugins']['has']('ShiftEnter'))return;const _0x535c46=_0x234226['plugins']['get']('TrackChangesEditing');_0x535c46['enableCommand']('shiftEnter'),_0x234226['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x234226),{'priority':'high'}),_0x234226['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x234226),{'priority':'high'}),_0x234226['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x598899,_0x53f938,_0x449a2c)=>{_0x449a2c['options']['showSuggestionHighlights']&&je(_0x234226,{'showActiveMarker':!0x1})(_0x598899,_0x53f938,_0x449a2c);}),_0x535c46['descriptionFactory']['registerElementLabel']('softBreak',_0x197db9=>o(_0x234226['locale'],'ELEMENT_LINE_BREAK',_0x197db9));}}function je(_0x1a0a3f,{showActiveMarker:_0x267e94=!0x0}={}){return(_0x11db27,_0xd1de72,_0x49bd39)=>{const _0x13512=_0x1a0a3f['plugins']['get']('TrackChangesEditing');if(!_0x49bd39['consumable']['test'](_0xd1de72['markerRange'],_0x11db27['name']))return;const _0x3d0888=_0x1a0a3f['model'];for(const _0x541b2a of _0xd1de72['markerRange']['getItems']()){if(!_0x541b2a['is']('element','softBreak'))continue;const _0x24466f='deletion'==_0xd1de72['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x4cab5f,authorId:_0x41b30a}=_0x13512['_splitMarkerName'](_0xd1de72['markerName']),_0x114e90=_0x49bd39['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x24466f,'data-suggestion':_0x4cab5f,'data-author-id':_0x41b30a}),_0x5334d4=_0x49bd39['mapper']['toViewPosition'](_0x3d0888['createPositionBefore'](_0x541b2a));_0x267e94&&_0x13512['activeMarkers']['includes'](_0xd1de72['markerName'])&&_0x49bd39['writer']['addClass']('ck-suggestion-marker--active',_0x114e90),_0x49bd39['writer']['insert'](_0x5334d4,_0x114e90),_0x49bd39['mapper']['bindElementToMarker'](_0x114e90,_0xd1de72['markerName']);}};}class jt extends _0x2d2df5{['afterInit'](){const _0x3d0405=this['editor'],_0x13ad15=_0x3d0405['model'],_0x3abc8b=_0x3d0405['locale'];if(!_0x3d0405['plugins']['has']('StandardEditingModeEditing'))return;const _0x35d79c=_0x3d0405['plugins']['get']('TrackChangesEditing'),_0x2f9f1d='restrictedEditingException',_0x54ecf6=_0x3d0405['commands']['get'](_0x2f9f1d);_0x35d79c['enableCommand'](_0x2f9f1d,(_0x41790e,_0x551268={})=>{const _0x4556c4=_0x13ad15['document']['selection'];if(_0x4556c4['isCollapsed'])return void _0x41790e(_0x551268);const _0xdc84ea=void 0x0!==_0x551268['forceValue']?_0x551268['forceValue']:!_0x54ecf6['value'];_0x13ad15['change'](()=>{const _0x196c50=Array['from'](_0x4556c4['getRanges']());for(const _0x5ad89c of _0x196c50){const _0xca2ddb=_0xdc84ea?[_0x5ad89c]:io(_0x2f9f1d,_0x5ad89c,_0x13ad15);for(const _0x31a50c of _0xca2ddb)_0x35d79c['markInlineFormat'](_0x31a50c,{'commandName':_0x2f9f1d,'commandParams':[{'forceValue':_0xdc84ea}]});}});}),_0x35d79c['descriptionFactory']['registerDescriptionCallback'](_0x2f9cc1=>{if('formatBlock'!=_0x2f9cc1['type']&&'formatInline'!=_0x2f9cc1['type'])return;const {data:_0x486bde}=_0x2f9cc1;return _0x486bde&&_0x486bde['commandName']==_0x2f9f1d?_0x486bde['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3abc8b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3abc8b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x2d2df5{['afterInit'](){const _0x1406a3=this['editor'];if(!_0x1406a3['plugins']['has']('Style')||!_0x1406a3['plugins']['has']('DataSchema'))return;const _0x5abb46=_0x1406a3['plugins']['get']('TrackChangesEditing'),_0x77b7c3=_0x1406a3['locale'],_0x3877a9=_0x1406a3['config']['get']('style')||{},_0x3bfe8e=_0x1406a3['plugins']['get']('GeneralHtmlSupport'),_0x4083ef=_0x1406a3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1406a3['plugins']['get']('DataSchema'),_0x3877a9['definitions']);_0x5abb46['enableDefaultAttributesIntegration']('style');const _0x24eb62=new Set();for(const _0x4c313a of _0x4083ef['block']){const _0x1665af=_0x3bfe8e['getGhsAttributeNameForElement'](_0x4c313a['element']);_0x24eb62['add'](_0x1665af);}const _0x246ebf=new Set();for(const _0x10b0b0 of _0x4083ef['inline']){const _0x4bd68e=_0x3bfe8e['getGhsAttributeNameForElement'](_0x10b0b0['element']);_0x246ebf['add'](_0x4bd68e);for(const _0x42ae1b of _0x10b0b0['ghsAttributes'])_0x246ebf['add'](_0x42ae1b);}for(const _0x1c772b of _0x24eb62)_0x5abb46['registerBlockAttribute'](_0x1c772b),_0x5abb46['descriptionFactory']['registerAttributeLabel'](_0x1c772b,o(_0x77b7c3,'FORMAT_STYLE'));for(const _0x35c5dc of _0x246ebf)_0x5abb46['registerInlineAttribute'](_0x35c5dc),_0x5abb46['descriptionFactory']['registerAttributeLabel'](_0x35c5dc,o(_0x77b7c3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x524569=this['editor'],_0xa464e3=_0x524569['locale'];_0x524569['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4df107=>{if('formatBlock'!=_0x4df107['type']&&'formatInline'!=_0x4df107['type'])return;const {data:_0x14d089}=_0x4df107;return _0x14d089&&'style'===_0x14d089['commandName']?_0x14d089['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa464e3,'*Set\x20format:*\x20%0',_0x14d089['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xa464e3,'*Remove\x20format:*\x20%0',_0x14d089['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x2d2df5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x57a6cd){super(_0x57a6cd),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2d85a9=this['editor'],_0x3af891=_0x2d85a9['model']['document']['selection'];if(!_0x2d85a9['plugins']['has']('TableEditing'))return;const _0x5da2ad=_0x2d85a9['locale'],_0x1546a4=_0x2d85a9['plugins']['get']('TrackChangesEditing'),_0x4560d9=_0x2d85a9['plugins']['get']('TableUtils');_0x1546a4['descriptionFactory']['registerElementLabel']('table',_0x454afc=>o(_0x5da2ad,'ELEMENT_TABLE',_0x454afc)),this['_setupColumnsRowsFixing'](),_0x1546a4['enableCommand']('insertTable'),_0x1546a4['enableCommand']('selectTableRow'),_0x1546a4['enableCommand']('selectTableColumn');for(const _0x424a31 of['insertTableRowAbove','insertTableRowBelow']){const _0x5867ea=_0x2d85a9['commands']['get'](_0x424a31);_0x1546a4['enableCommand'](_0x424a31,_0x592461=>{_0x2d85a9['model']['change'](_0xb90052=>{_0x592461();const _0x5cdaa2='above'===_0x5867ea['order'],_0x3832f6=_0x4560d9['getSelectionAffectedTableCells'](_0x3af891),_0x163aa9=_0x4560d9['getRowIndexes'](_0x3832f6),_0x5c8e0f=_0x5cdaa2?_0x163aa9['first']-0x1:_0x163aa9['last']+0x1,_0x29a32c=_0x3832f6[0x0]['findAncestor']('table'),_0x28ce79=_0x4560d9['createTableWalker'](_0x29a32c,{'startRow':_0x5c8e0f,'endRow':_0x5c8e0f}),_0x2fcb34=Array['from'](_0x28ce79)['map'](_0x517286=>_0xb90052['createRangeOn'](_0x517286['cell']));_0x1546a4['markMultiRangeInsertion'](_0x2fcb34,'tableRow');});});}for(const _0x35a2a5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1d8514=_0x2d85a9['commands']['get'](_0x35a2a5);_0x1546a4['enableCommand'](_0x35a2a5,_0x1980b8=>{_0x2d85a9['model']['change'](_0xc6afaa=>{_0x1980b8();const _0x4f4634='left'===_0x1d8514['order'],_0x52f346=_0x4560d9['getSelectionAffectedTableCells'](_0x3af891),_0x53c328=_0x4560d9['getColumnIndexes'](_0x52f346),_0x1dfd5a=_0x4f4634?_0x53c328['first']-0x1:_0x53c328['last']+0x1,_0x12874=_0x52f346[0x0]['findAncestor']('table'),_0x1d02af=_0x4560d9['createTableWalker'](_0x12874,{'startRow':0x0,'column':_0x1dfd5a,'includeAllSlots':!0x1}),_0x31de3d=Array['from'](_0x1d02af)['map'](_0x2a0849=>_0xc6afaa['createRangeOn'](_0x2a0849['cell']));_0x1546a4['markMultiRangeInsertion'](_0x31de3d,'tableColumn');});});}for(const _0x45723d of['removeTableRow','removeTableColumn']){const _0x4300e4=_0x45723d['substr'](0xb),_0x38790c=_0x4300e4['toLowerCase'](),_0x548857=_0x38790c['substr'](0x0,0x3)+'span',_0x14ab63='table'+_0x4300e4,_0x449efa='min'+_0x4300e4,_0x5a2dc9='max'+_0x4300e4;_0x1546a4['enableCommand'](_0x45723d,()=>{_0x2d85a9['model']['change'](_0x242ee2=>{const _0x5342de=_0x4560d9['getSelectionAffectedTableCells'](_0x3af891),_0x2ee4c5=_0x5342de[0x0]['findAncestor']('table');let _0x2ec937;if('removeTableRow'==_0x45723d){const _0x13f601=_0x4560d9['getRowIndexes'](_0x5342de);_0x2ec937={'startRow':_0x13f601['first'],'endRow':_0x13f601['last'],'includeAllSlots':!0x0};}else{const _0x5845e1=_0x4560d9['getColumnIndexes'](_0x5342de);_0x2ec937={'startColumn':_0x5845e1['first'],'endColumn':_0x5845e1['last'],'includeAllSlots':!0x0};}const _0x16467c=_0x4560d9['createTableWalker'](_0x2ee4c5,_0x2ec937),_0x152417=Array['from'](_0x16467c)['map'](({cell:_0x218d9a})=>_0x218d9a),_0xd56e88=Ne(_0x152417['filter'](_0x2701cb=>_0x2701cb['hasAttribute'](_0x548857))),_0x5cd9d6=Ne(_0x152417['filter'](_0x3dcbc9=>!_0x3dcbc9['hasAttribute'](_0x548857)))['map'](_0x1c07eb=>_0x242ee2['createRangeOn'](_0x1c07eb)),_0x1e05ea=_0x1546a4['markMultiRangeDeletion'](_0x5cd9d6,_0x14ab63);if(_0x1e05ea&&('tableRow'==_0x1e05ea['subType']||'tableColumn'==_0x1e05ea['subType'])){const _0x962b2d=this['_getSuggestionCoords'](_0x1e05ea);for(const _0x373f55 of _0xd56e88){const _0xb08a1c=_0x242ee2['createRangeOn'](_0x373f55),_0x202533=_0x4560d9['getCellLocation'](_0x373f55),_0x31fd0e=_0x373f55['getAttribute'](_0x548857)-0x1,_0x42dfcc=_0x962b2d[_0x449efa],_0x7bd28b=_0x962b2d[_0x5a2dc9];_0x42dfcc<=_0x202533[_0x38790c]&&_0x202533[_0x38790c]+_0x31fd0e<=_0x7bd28b&&_0x1e05ea['addRange'](_0xb08a1c);}}});});}function _0x23fafe(_0x484514){const _0x2e442f=Array['from'](_0x3af891['getRanges']())['map'](_0x17edb6=>_0x4ee832['fromRange'](_0x17edb6));_0x2d85a9['model']['change'](_0x5eb070=>{const _0x3dd6ae=_0x5eb070['batch'];_0x484514=_0x484514['filter'](_0x1f5121=>'$graveyard'!=_0x1f5121['root']['rootName']),_0x5eb070['setSelection'](_0x484514),_0x2d85a9['commands']['get']('removeTableRow')['refresh'](),_0x2d85a9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2d85a9['model']['enqueueChange'](()=>{_0x2d85a9['model']['enqueueChange'](_0x3dd6ae,_0x8f3a37=>{const _0x5c0fe7=_0x2e442f['filter'](_0x14886e=>'$graveyard'!=_0x14886e['root']['rootName']);_0x5c0fe7['length']>0x0&&_0x8f3a37['setSelection'](_0x5c0fe7);for(const _0x7edc4a of _0x2e442f)_0x7edc4a['detach']();});});});}function _0x505dc5(_0x3fe947){_0x2d85a9['model']['change'](_0x2a5524=>{const _0x192197=Array['from'](_0x3af891['getRanges']())['map'](_0x50d377=>_0x4ee832['fromRange'](_0x50d377)),_0x37ccb6=[];for(const _0x4049fd of _0x3fe947)for(const _0x470478 of _0x4049fd['getItems']({'shallow':!0x0}))_0x37ccb6['push'](_0x470478);for(const _0x466a80 of _0x37ccb6)'$graveyard'!=_0x466a80['root']['rootName']&&(_0x2a5524['setSelection'](_0x2a5524['createPositionAt'](_0x466a80,0x0)),_0x2d85a9['commands']['get']('removeTableColumn')['refresh'](),_0x2d85a9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x409454=_0x192197['filter'](_0x21dd8c=>'$graveyard'!=_0x21dd8c['root']['rootName']);_0x409454['length']>0x0&&_0x2a5524['setSelection'](_0x409454);for(const _0x494eea of _0x192197)_0x494eea['detach']();});}function _0x31c232(_0x21782f,_0x4d7d72){return _0x4d7d72['every'](_0x5ea092=>_0x21782f['some'](_0x44462a=>_0x44462a['end']['isEqual'](_0x5ea092['start'])||_0x5ea092['end']['isEqual'](_0x44462a['start'])));}function _0x531c5a(_0x30a453,_0x54cfe4){return!_0x30a453['some'](_0x424804=>_0x54cfe4['some'](_0x416dd5=>_0x424804['isIntersecting'](_0x416dd5)))&&_0x30a453['some'](_0x531596=>_0x54cfe4['some'](_0x59abe7=>_0x531596['end']['isTouching'](_0x59abe7['start'])));}_0x2d85a9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c320a,_0x336de1,_0x4d9c91)=>{if(!_0x4d9c91['options']['showSuggestionHighlights'])return;const _0x3567a0=_0x336de1['item'];if(!_0x3567a0||!_0x3567a0['is']('element','tableCell'))return;const _0x5958f7=_0x4d9c91['mapper']['toViewElement'](_0x3567a0);if(_0x5958f7){const {id:_0x46c600,authorId:_0x1ac363}=_0x1546a4['_splitMarkerName'](_0x336de1['markerName']);_0x3883fa(_0x5958f7,_0x4d9c91['writer'],(_0x40410f,_0x3e1833,_0x67dd03)=>{_0x67dd03['addClass'](_0x45ec1c(_0x3e1833['classes']),_0x40410f),_0x67dd03['setAttribute']('data-suggestion-id',_0x46c600,_0x40410f),_0x67dd03['setAttribute']('data-author-id',_0x1ac363,_0x40410f);},(_0x1a05af,_0x2ffc95,_0x4e018b)=>{_0x4e018b['removeClass'](_0x45ec1c(_0x2ffc95['classes']),_0x1a05af),_0x4e018b['removeAttribute']('data-suggestion-id',_0x1a05af),_0x4e018b['removeAttribute']('data-author-id',_0x1a05af);});}},{'priority':'highest'}),_0x1546a4['descriptionFactory']['registerDescriptionCallback'](_0xee0a11=>{if('insertion'!=_0xee0a11['type']&&'deletion'!=_0xee0a11['type'])return;const _0xda22a7=_0xee0a11['getContainedElement']();if(null!=_0xda22a7&&_0xda22a7['is']('element','table')){if('insertion'==_0xee0a11['type']){const _0x79322c=_0xee0a11['getItems']()['filter'](_0x17f1e6=>_0x17f1e6['is']('$textProxy'))['map'](_0x338d05=>_0x338d05['data']);if(_0x79322c['length'])return{'type':'insertion','content':o(_0x5da2ad,'*Insert:*\x20%0',o(_0x5da2ad,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x79322c['join']('\x20')+'\x22'))};}if('deletion'==_0xee0a11['type']){const _0x154ccb=_0xee0a11['getItems']()['filter'](_0x57be81=>_0x57be81['is']('$textProxy'))['map'](_0x3d681c=>_0x3d681c['data']);if(_0x154ccb['length'])return{'type':'deletion','content':o(_0x5da2ad,'*Remove:*\x20%0',o(_0x5da2ad,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x154ccb['join']('\x20')+'\x22'))};}}}),_0x1546a4['descriptionFactory']['registerDescriptionCallback'](_0x1b4b47=>{if('tableRow'==_0x1b4b47['subType']){const _0x1c3eb3=_0x1b4b47['getItems']()['filter'](_0x34935f=>_0x34935f['is']('$textProxy'))['map'](_0x59f549=>_0x59f549['data']),_0x55e2b0=this['_getSuggestionCoords'](_0x1b4b47),_0x1bf23a=_0x55e2b0['maxRow']-_0x55e2b0['minRow']+0x1;if('insertion'==_0x1b4b47['type'])return _0x1c3eb3['length']?{'type':'insertion','content':o(_0x5da2ad,'*Insert:*\x20%0',o(_0x5da2ad,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1bf23a,'\x22'+_0x1c3eb3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5da2ad,'*Insert:*\x20%0',o(_0x5da2ad,'ELEMENT_TABLE_ROW',_0x1bf23a))};if('deletion'==_0x1b4b47['type'])return _0x1c3eb3['length']?{'type':'deletion','content':o(_0x5da2ad,'*Remove:*\x20%0',o(_0x5da2ad,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1bf23a,'\x22'+_0x1c3eb3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5da2ad,'*Remove:*\x20%0',o(_0x5da2ad,'ELEMENT_TABLE_ROW',_0x1bf23a))};}if('tableColumn'==_0x1b4b47['subType']){const _0x5e48cc=_0x1b4b47['getItems']()['filter'](_0x580038=>_0x580038['is']('$textProxy'))['map'](_0x590f0b=>_0x590f0b['data']),_0x3380a1=this['_getSuggestionCoords'](_0x1b4b47),_0x19a764=_0x3380a1['maxColumn']-_0x3380a1['minColumn']+0x1;if('insertion'==_0x1b4b47['type'])return _0x5e48cc['length']?{'type':'insertion','content':o(_0x5da2ad,'*Insert:*\x20%0',o(_0x5da2ad,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x19a764,'\x22'+_0x5e48cc['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5da2ad,'*Insert:*\x20%0',o(_0x5da2ad,'ELEMENT_TABLE_COLUMN',_0x19a764))};if('deletion'==_0x1b4b47['type'])return _0x5e48cc['length']?{'type':'deletion','content':o(_0x5da2ad,'*Remove:*\x20%0',o(_0x5da2ad,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x19a764,'\x22'+_0x5e48cc['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5da2ad,'*Remove:*\x20%0',o(_0x5da2ad,'ELEMENT_TABLE_COLUMN',_0x19a764))};}}),_0x1546a4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x23fafe),_0x1546a4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x23fafe),_0x1546a4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x505dc5),_0x1546a4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x505dc5),_0x1546a4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x31c232),_0x1546a4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x31c232),_0x1546a4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x531c5a),_0x1546a4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x531c5a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2ca0c7=this['editor'],_0x5ccebf=_0x2ca0c7['model']['document']['selection'];return(_0x1823fc,_0x5d61e6)=>{_0x2ca0c7['model']['change'](_0x1be5f8=>{const {commandName:_0x119013,commandParams:_0x4beaf6}=_0x5d61e6;let _0x2025fc=_0x1823fc[0x0]['end']['nodeBefore'];_0x4beaf6&&_0x4beaf6[0x0]&&!0x1===_0x4beaf6[0x0]['forceValue']&&(_0x2025fc=_0x1823fc[0x0]['start']['nodeAfter']);const _0x37c8c3=_0x1be5f8['createRangeIn'](_0x2025fc);if('$graveyard'==_0x37c8c3['root']['rootName'])return;const _0x2aef8e=Array['from'](_0x5ccebf['getRanges']())['map'](_0x18c31b=>_0x4ee832['fromRange'](_0x18c31b));_0x1be5f8['setSelection'](_0x37c8c3),_0x2ca0c7['commands']['get'](_0x119013)['refresh'](),_0x4beaf6['push']({'forceDefaultExecution':!0x0}),_0x2ca0c7['execute'](_0x119013,..._0x4beaf6);const _0x1b7cdf=_0x2aef8e['filter'](_0x4aac8f=>'$graveyard'!=_0x4aac8f['root']['rootName']);_0x1b7cdf['length']>0x0&&_0x1be5f8['setSelection'](_0x1b7cdf);for(const _0xa1a11c of _0x2aef8e)_0xa1a11c['detach']();});};}['_getCoordsForCells'](_0x4097f8){const _0x537278=this['editor']['plugins']['get']('TableUtils');let _0x1648ac=Number['MAX_SAFE_INTEGER'],_0x2205e3=Number['MIN_SAFE_INTEGER'],_0xf71516=Number['MAX_SAFE_INTEGER'],_0x85217a=Number['MIN_SAFE_INTEGER'];for(const _0x5162b6 of _0x4097f8){if('$graveyard'==_0x5162b6['root']['rootName'])continue;const {row:_0x4e102b,column:_0xb6db93}=_0x537278['getCellLocation'](_0x5162b6),_0x32ec3b=_0x5162b6['hasAttribute']('rowspan')?_0x5162b6['getAttribute']('rowspan')-0x1:0x0,_0x3dc55f=_0x5162b6['hasAttribute']('colspan')?_0x5162b6['getAttribute']('colspan')-0x1:0x0;_0x1648ac=_0x4e102b<_0x1648ac?_0x4e102b:_0x1648ac,_0x2205e3=_0x4e102b+_0x32ec3b>_0x2205e3?_0x4e102b+_0x32ec3b:_0x2205e3,_0xf71516=_0xb6db93<_0xf71516?_0xb6db93:_0xf71516,_0x85217a=_0xb6db93+_0x3dc55f>_0x85217a?_0xb6db93+_0x3dc55f:_0x85217a;}return{'minRow':_0x1648ac,'maxRow':_0x2205e3,'minColumn':_0xf71516,'maxColumn':_0x85217a};}['_setupColumnsRowsFixing'](){const _0x2cc2bd=this['editor'],_0x1b6a7d=_0x2cc2bd['plugins']['get']('TrackChangesEditing'),_0x13358c=_0x2cc2bd['plugins']['get']('TableUtils');_0x2cc2bd['model']['document']['on']('change:data',()=>{const _0x5b67c7=Array['from'](_0x2cc2bd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x312477,data:_0xed5eff}of _0x5b67c7){const {group:_0x4bdab8,id:_0x551426,subType:_0x6c8a4a}=_0x1b6a7d['_splitMarkerName'](_0x312477);if('suggestion'!=_0x4bdab8)continue;if(null!=_0xed5eff['oldRange'])continue;const _0x2d5f45=_0x1b6a7d['getSuggestion'](_0x551426);this['_tablePostFixingSubtypes']['includes'](_0x6c8a4a)&&this['_tableSuggestions']['add'](_0x2d5f45);}},{'priority':'low'});const _0x9be522=(_0x493e79,_0x4775a1)=>{let _0x4df8fe=!0x1;const _0x37d6ae=_0x4775a1['createRangeOn'](_0x493e79),_0x456365=_0x493e79['findAncestor']('table'),_0x48e582=_0x13358c['getCellLocation'](_0x493e79);for(const _0x15e807 of this['_tableSuggestions']){const _0x2935f9=_0x15e807['subType'],_0x311e74=_0x2935f9['startsWith']('tablePaste'),_0x235505=_0x2935f9['substr'](_0x311e74?0xa:0x5),_0x454be5=_0x235505['toLowerCase'](),_0x222cf5=_0x454be5['substr'](0x0,0x3)+'span',_0x4bf589='min'+_0x235505,_0x51bbf4='max'+_0x235505;if(!_0x15e807['isInContent'])continue;if(_0x456365!=_0x15e807['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x15e807['isIntersectingWithRange'](_0x37d6ae))continue;const _0x3199af=_0x493e79['hasAttribute'](_0x222cf5)?_0x493e79['getAttribute'](_0x222cf5)-0x1:0x0,_0x4ef048=this['_getSuggestionCoords'](_0x15e807),_0x3ed895=_0x4ef048[_0x4bf589],_0x40afb9=_0x4ef048[_0x51bbf4];_0x3ed895<=_0x48e582[_0x454be5]&&_0x48e582[_0x454be5]+_0x3199af<=_0x40afb9&&(_0x15e807['addRange'](_0x37d6ae),_0x4df8fe=!0x0);}return _0x4df8fe;};_0x2cc2bd['model']['document']['registerPostFixer'](_0x4b4f51=>{let _0x7a6cf0=!0x1;for(const _0x30dc0d of _0x2cc2bd['model']['document']['differ']['getChanges']())if('insert'==_0x30dc0d['type']){if('tableRow'==_0x30dc0d['name']){for(const _0x1a4374 of _0x30dc0d['position']['nodeAfter']['getChildren']())_0x7a6cf0=_0x7a6cf0||_0x9be522(_0x1a4374,_0x4b4f51);}else'tableCell'==_0x30dc0d['name']&&(_0x7a6cf0=_0x7a6cf0||_0x9be522(_0x30dc0d['position']['nodeAfter'],_0x4b4f51));}return _0x7a6cf0;});}['_getSuggestionCoords'](_0x584a12){return this['_getCoordsForCells'](_0x584a12['getRanges']()['map'](_0x55d22e=>_0x55d22e['start']['nodeAfter']));}}function Ne(_0x502779){return Array['from'](new Set(_0x502779)['values']());}class _t extends _0x2d2df5{static get['requires'](){return[At];}['afterInit'](){const _0x4cfe15=this['editor'],_0xf55258=_0x4cfe15['model']['document']['selection'],_0x3ea143=_0x4cfe15['locale'];if(!_0x4cfe15['plugins']['has']('TableEditing'))return;const _0x30894a=_0x4cfe15['plugins']['get']('TrackChangesEditing'),_0x3e69e0=_0x4cfe15['plugins']['get']('TableUtils'),_0x35b597=_0x4cfe15['plugins']['get'](At);_0x35b597['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x30894a['enableCommand']('mergeTableCells',()=>{const _0x2b8998=_0x3e69e0['getSelectionAffectedTableCells'](_0x4cfe15['model']['document']['selection']);_0x4cfe15['model']['change'](()=>{_0x30894a['markMultiRangeBlockFormat'](_0x2b8998,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4cfe15['commands']['get']('mergeTableCells')['on']('execute',(_0x179fa4,_0x2fcdda)=>{_0x4cfe15['commands']['get']('trackChanges')['value']&&(_0x2fcdda['length']>0x0&&_0x2fcdda[_0x2fcdda['length']-0x1]&&_0x2fcdda[_0x2fcdda['length']-0x1]['forceDefaultExecution']||_0x30894a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x179fa4['stop']());},{'priority':'highest'});for(const _0x4b9099 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x43afca=_0x4cfe15['commands']['get'](_0x4b9099);_0x30894a['enableCommand'](_0x4b9099,()=>{const _0x1921e1=_0x4cfe15['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x299618=>_0x299618['is']('element','tableCell')),_0x2b3d23=_0x43afca['value'];_0x4cfe15['model']['change'](()=>{_0x30894a['markMultiRangeBlockFormat']([_0x1921e1,_0x2b3d23],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x217225 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5bca72=_0x4cfe15['commands']['get'](_0x217225);_0x30894a['enableCommand'](_0x217225,()=>{const _0x44b805=_0x3e69e0['getSelectionAffectedTableCells'](_0x4cfe15['model']['document']['selection'])[0x0],_0xca4186=_0x44b805['findAncestor']('table'),{column:_0x2f8e1e,row:_0x3c4deb}=_0x3e69e0['getCellLocation'](_0x44b805);let _0x21372a=[];if('horizontally'==_0x5bca72['direction']){const _0x440683=_0x3e69e0['createTableWalker'](_0xca4186,{'startRow':_0x3c4deb,'endRow':_0x3c4deb,'includeAllSlots':!0x0});_0x21372a=Array['from'](_0x440683)['map'](_0x45798c=>_0x45798c['cell']);}else{const _0x146441=_0x3e69e0['createTableWalker'](_0xca4186,{'column':_0x2f8e1e,'includeAllSlots':!0x0});_0x21372a=Array['from'](_0x146441)['map'](_0x48892f=>_0x48892f['cell']);}_0x4cfe15['model']['change'](_0x3198fb=>{_0x30894a['markBlockFormat'](_0x3198fb['createRangeOn'](_0x44b805),{'commandName':_0x217225,'commandParams':[]},_0x21372a,_0x217225);});});}_0x30894a['descriptionFactory']['registerDescriptionCallback'](_0x1831d0=>{if('formatBlock'!=_0x1831d0['type']&&'formatInline'!=_0x1831d0['type'])return;const {data:_0x133817}=_0x1831d0;return _0x133817&&'mergeTableCells'==_0x133817['commandName']?{'type':'format','content':o(_0x3ea143,'*Merge\x20cells*')}:void 0x0;}),_0x30894a['descriptionFactory']['registerDescriptionCallback'](_0x4e836a=>{if('formatBlock'!=_0x4e836a['type']&&'formatInline'!=_0x4e836a['type'])return;const {data:_0xb96ce8}=_0x4e836a;return _0xb96ce8?'splitTableCellVertically'==_0xb96ce8['commandName']?{'type':'format','content':o(_0x3ea143,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xb96ce8['commandName']?{'type':'format','content':o(_0x3ea143,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xe68e9e=_0x35b597['_acceptFormatSuggestionCallbackFactory']();for(const _0x42f9ad of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x30894a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42f9ad,'accept',_0xe68e9e);for(const _0x4b7ad0 of['splitTableCellVertically','splitTableCellHorizontally'])_0x30894a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b7ad0,'accept',_0xe68e9e);_0x30894a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5f4446=>{_0x4cfe15['model']['change'](_0x356d55=>{const _0x887f6=Array['from'](_0xf55258['getRanges']())['map'](_0x210e2e=>_0x4ee832['fromRange'](_0x210e2e));_0x356d55['setSelection'](_0x5f4446),_0x4cfe15['commands']['get']('mergeTableCells')['refresh'](),_0x4cfe15['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x560d9d=_0x887f6['filter'](_0x96ea49=>'$graveyard'!=_0x96ea49['root']['rootName']);_0x560d9d['length']>0x0&&_0x356d55['setSelection'](_0x560d9d);for(const _0x230c8d of _0x887f6)_0x230c8d['detach']();});});for(const _0x2cb66b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x6535f7=_0x4cfe15['commands']['get'](_0x2cb66b);_0x6535f7['on']('set:isEnabled',(_0x31744c,_0x336e08,_0x3f0b43)=>{if(_0x3f0b43){const _0x25483d=_0x4cfe15['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1b7a4b=>_0x1b7a4b['is']('element','tableCell'));this['_areMergableCells'](_0x6535f7['value'],_0x25483d)||(_0x31744c['return']=!0x1,_0x31744c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x57363f=this['editor']['commands']['get']('mergeTableCells'),_0x516486=this['editor']['plugins']['get']('TableUtils');if(!_0x57363f['isEnabled'])return!0x1;const _0xb970e=_0x516486['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x54ff4f of _0xb970e)for(const _0x3cb78c of _0xb970e)if(_0x54ff4f!=_0x3cb78c&&!this['_areMergableCells'](_0x54ff4f,_0x3cb78c))return!0x1;return!0x0;}['_areMergableCells'](_0x2068c9,_0x524603){const _0x2bf865=this['editor']['plugins']['get']('TrackChangesEditing'),_0x252518=this['editor']['model']['createRangeOn'](_0x2068c9),_0x2e13ab=this['editor']['model']['createRangeOn'](_0x524603),_0x4a2f67=new Set(),_0x31c89c=new Set();for(const _0x26a3af of _0x2bf865['getSuggestions']())if(('insertion'==_0x26a3af['type']||'deletion'==_0x26a3af['type']||'mergeTableCells'==_0x26a3af['subType'])&&_0x26a3af['isInContent']){for(const _0x4eca36 of _0x26a3af['getRanges']())_0x4eca36['containsRange'](_0x252518,!0x0)&&_0x4a2f67['add'](_0x26a3af['type']+':'+_0x26a3af['author']['id']),_0x4eca36['containsRange'](_0x2e13ab,!0x0)&&_0x31c89c['add'](_0x26a3af['type']+':'+_0x26a3af['author']['id']);}if(_0x4a2f67['size']!=_0x31c89c['size'])return!0x1;for(const _0x28ef97 of _0x4a2f67)if(!_0x31c89c['has'](_0x28ef97))return!0x1;return!0x0;}}class Ct extends _0x2d2df5{static get['requires'](){return[At];}['afterInit'](){const _0x3a514d=this['editor'];if(!_0x3a514d['plugins']['has']('TableEditing'))return;const _0x8eb508=_0x3a514d['locale'],_0x5e6ea5=_0x3a514d['plugins']['get']('TrackChangesEditing');_0x5e6ea5['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5e6ea5['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5e6ea5['registerBlockAttribute']('headingRows'),_0x5e6ea5['registerBlockAttribute']('headingColumns'),_0x5e6ea5['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x8eb508,'FORMAT_HEADER_ROW')),_0x5e6ea5['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x8eb508,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5392f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x344e94=this['editor']['plugins']['get']('TableUtils'),_0x454403=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x4dacd0({showActiveMarker:_0x54379a=!0x0,setDataAttribute:_0x22c1af=!0x0}={}){return(_0x3acc72,_0x379955,_0x2b83f9)=>{const {type:_0x1aaa84,id:_0x59bf97}=_0x5392f2['_splitMarkerName'](_0x379955['markerName']),_0x3022d7=_0x5392f2['getSuggestion'](_0x59bf97),_0x22b305=_0x3022d7['data'];if('formatBlock'!=_0x3022d7['type']||!_0x22b305||'setTableColumnHeader'!=_0x22b305['commandName'])return;if(_0x379955['item'])return void _0x3acc72['stop']();if(!_0x2b83f9['consumable']['consume'](_0x379955['markerRange'],_0x3acc72['name']))return;const _0x232a52=_0x379955['markerRange']['start']['nodeAfter'],_0x4289d3=_0x379955['markerRange']['end']['nodeBefore'],_0x11628d=_0x232a52['parent']['parent'],{column:_0xc7ccd4}=_0x344e94['getCellLocation'](_0x232a52),{column:_0xd8791f}=_0x344e94['getCellLocation'](_0x4289d3);for(let _0x22ed7f=_0xc7ccd4;_0x22ed7f<=_0xd8791f;_0x22ed7f++){const _0x494c32=_0x344e94['createTableWalker'](_0x11628d,{'column':_0x22ed7f,'includeAllSlots':!0x1});for(const _0x350678 of _0x494c32){const _0x340c7b=_0x350678['cell'],_0x2c7d72=_0x2b83f9['mapper']['toViewElement'](_0x340c7b);_0x2b83f9['writer']['addClass']('ck-suggestion-marker-'+_0x1aaa84,_0x2c7d72),_0x22c1af&&_0x2b83f9['writer']['setAttribute']('data-suggestion',_0x59bf97,_0x2c7d72),_0x2b83f9['mapper']['bindElementToMarker'](_0x2c7d72,_0x379955['markerName']),_0x54379a&&(_0x5392f2['activeMarkers']['includes'](_0x379955['markerName'])?_0x2b83f9['writer']['addClass']('ck-suggestion-marker--active',_0x2c7d72):_0x2b83f9['writer']['removeClass']('ck-suggestion-marker--active',_0x2c7d72));}}};}_0x5392f2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x454403),_0x5392f2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x454403),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4dacd0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1b5e5b,_0x1135f0,_0x3c43fe)=>{_0x3c43fe['options']['showSuggestionHighlights']&&_0x4dacd0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1b5e5b,_0x1135f0,_0x3c43fe);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5a645a,_0x53b192,_0x142c99)=>{const {type:_0x1556d5,id:_0x55b6d5}=_0x5392f2['_splitMarkerName'](_0x53b192['markerName']),_0x7fcc09=_0x5392f2['getSuggestion'](_0x55b6d5),_0x3afa05=_0x7fcc09['data'];if('formatBlock'!=_0x7fcc09['type']||!_0x3afa05||'setTableColumnHeader'!=_0x3afa05['commandName'])return;const _0x2756c5=_0x142c99['mapper']['markerNameToElements'](_0x53b192['markerName']);if(_0x2756c5){for(const _0xa16d5 of _0x2756c5)_0x142c99['writer']['removeClass']('ck-suggestion-marker-'+_0x1556d5,_0xa16d5),_0x142c99['writer']['removeClass']('ck-suggestion-marker--active',_0xa16d5),_0x142c99['writer']['removeAttribute']('data-suggestion',_0xa16d5),_0x142c99['mapper']['unbindElementFromMarkerName'](_0xa16d5,_0x53b192['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b4d40=this['editor'],_0x5d9a47=_0x2b4d40['locale'];function _0x80a85b(_0x39dcd6){return{'type':'format','content':o(_0x5d9a47,'*Format:*\x20%0',_0x39dcd6)};}_0x2b4d40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cc7ac=>{if('formatBlock'!=_0x2cc7ac['type'])return;const {data:_0xa49ded}=_0x2cc7ac;if(_0xa49ded){if('setTableRowHeader'==_0xa49ded['commandName']){const _0xf9943b=_0xa49ded['commandParams'][0x0]['forceValue'];return _0x80a85b(o(_0x5d9a47,_0xf9943b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xa49ded['commandName']){const _0x5bc0bf=_0xa49ded['commandParams'][0x0]['forceValue'];return _0x80a85b(o(_0x5d9a47,_0x5bc0bf?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x2d2df5{['afterInit'](){const _0x55c6cc=this['editor'],_0x1ce1a8=_0x55c6cc['locale'],_0x1b09e8=_0x55c6cc['plugins']['get']('TrackChangesEditing');function _0x2ca2d7(_0x307694){return{'type':'format','content':''+o(_0x1ce1a8,'*Set\x20table\x20type:*\x20%0',_0x307694)};}_0x55c6cc['plugins']['has']('TableLayout')&&(_0x1b09e8['enableCommand']('insertTableLayout'),_0x1b09e8['enableDefaultAttributesIntegration']('tableType'),_0x1b09e8['registerBlockAttribute']('tableType'),_0x1b09e8['descriptionFactory']['registerElementLabel'](_0x246940=>_0x246940['is']('element','table')&&'layout'===_0x246940['getAttribute']('tableType'),_0x1458fe=>o(_0x1ce1a8,'ELEMENT_LAYOUT_TABLE',_0x1458fe)),_0x1b09e8['descriptionFactory']['registerDescriptionCallback'](_0x3ac950=>{const {data:_0x380ef5}=_0x3ac950;if(_0x380ef5&&'tableType'==_0x380ef5['key'])switch(_0x380ef5['newValue']){case'layout':return _0x2ca2d7(o(_0x1ce1a8,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2ca2d7(o(_0x1ce1a8,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x2ce751=>[_0x2ce751,null]));class Nt extends _0x2d2df5{static get['requires'](){return[At];}['afterInit'](){const _0x58424f=this['editor'];if(!_0x58424f['plugins']['has']('TableClipboard'))return;const _0x414e07=_0x58424f['plugins']['get']('TrackChangesEditing'),_0x2eab28=_0x58424f['plugins']['get']('TableUtils'),_0x28f5aa=_0x58424f['plugins']['get'](At),_0x404024=_0x58424f['plugins']['get']('TableClipboard'),_0x3cc73a=_0x58424f['plugins']['get']('TableSelection'),_0x31bfd7=_0x58424f['plugins']['get'](_0x585480);_0x28f5aa['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x58424f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x58424f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2e6f7d=null,_0x52d7b3=!0x1;_0x31bfd7['on']('contentInsertion',(_0x4bebac,_0x2d56ee)=>{_0x52d7b3='paste'===_0x2d56ee['method'];}),_0x58424f['model']['on']('insertContent',(_0x535c78,_0x62599a)=>{if(!_0x52d7b3&&null===_0x3cc73a['getSelectedTableCells']())return;const [_0x451a97,_0x4531d5]=_0x62599a,_0x5da9ec=_0x62599a[_0x62599a['length']-0x1];_0x5da9ec&&_0x5da9ec['forceDefaultExecution']||_0x414e07['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x246d58,_0x9ec99b,_0x266827,_0x1b1b6a,_0x287bbb){if(_0x9ec99b&&!_0x9ec99b['is']('documentSelection'))return!0x1;const _0x462148=_0x287bbb['getTableIfOnlyTableInContent'](_0x246d58,_0x266827);if(!_0x462148||!Ue(_0x462148,void 0x0,_0x1b1b6a))return!0x1;const _0x597df7=_0x1b1b6a['getSelectionAffectedTableCells'](_0x266827['document']['selection']);if(!_0x597df7['length'])return!0x1;const _0x5a92bd=_0x597df7[0x0]['findAncestor']('table'),_0x24619a=_0x1b1b6a['getRowIndexes'](_0x597df7),_0x3aadaa=_0x1b1b6a['getColumnIndexes'](_0x597df7),_0x30856f={'startRow':_0x24619a['first'],'endRow':_0x24619a['last'],'startColumn':_0x3aadaa['first'],'endColumn':_0x3aadaa['last']};return 0x1==_0x597df7['length']&&(_0x30856f['endRow']+=_0x1b1b6a['getRows'](_0x462148)-0x1,_0x30856f['endColumn']+=_0x1b1b6a['getColumns'](_0x462148)-0x1),Ue(_0x5a92bd,_0x30856f,_0x1b1b6a);}(_0x451a97,_0x4531d5,_0x58424f['model'],_0x2eab28,_0x404024)&&(_0x535c78['stop'](),_0x2e6f7d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x58424f['model']['change'](()=>{_0x58424f['model']['insertContent'](_0x62599a[0x0],_0x62599a[0x1],_0x62599a[0x2],{'forceDefaultExecution':!0x0});const _0x373ac4=_0x1e8ea4(),{rowInsertionRanges:_0x49a93c,columnInsertionRanges:_0xf4d04a,insertionRanges:_0x523f7a,deletionRanges:_0x3d11d9,cells:_0x362332}=_0x2e6f7d;_0x49a93c['length']&&_0x414e07['markMultiRangeInsertion'](_0x49a93c,'tablePasteRow',{'tablePasteChainId':_0x373ac4}),_0xf4d04a['length']&&_0x414e07['markMultiRangeInsertion'](_0xf4d04a,'tablePasteColumn',{'tablePasteChainId':_0x373ac4}),_0x523f7a['length']&&(_0x414e07['markMultiRangeInsertion'](_0x523f7a,'tablePaste',{'tablePasteChainId':_0x373ac4,'skipNestingCheck':!0x0}),_0x523f7a['forEach'](_0xaa76ae=>_0xaa76ae['detach']?.())),_0x3d11d9['length']&&(_0x414e07['markMultiRangeDeletion'](_0x3d11d9,'tablePaste',{'tablePasteChainId':_0x373ac4,'skipNestingCheck':!0x0}),_0x3d11d9['forEach'](_0x2a490c=>_0x2a490c['detach']?.()));const _0xcedcf=_0x414e07['markMultiRangeBlockFormat'](_0x362332['map'](({element:_0x430fdc})=>_0x430fdc),{'formatGroupId':_0x1e8ea4()},[],'tablePasteCell',{'tablePasteChainId':_0x373ac4});if(_0xcedcf){const _0x40d889=_0xcedcf['getMarkers'](),_0x5f1d12=[];for(const {element:_0x118afd,attributes:_0x914d0b}of _0x362332){if(!_0x914d0b)continue;const _0x3d0556=_0x58424f['model']['createRangeOn'](_0x118afd),_0x2fcab7=_0x40d889['find'](_0x37a4c5=>_0x37a4c5['getRange']()['isEqual'](_0x3d0556));_0x2fcab7&&_0x5f1d12['push']([_0x2fcab7['name'],_0x914d0b]);}_0x5f1d12['length']&&_0xcedcf['setAttribute']('markerAttributes',Object['fromEntries'](_0x5f1d12));}_0x2e6f7d=null;}));},{'priority':_0x265039['high']+0xa}),_0x31bfd7['on']('contentInsertion',()=>{_0x52d7b3=!0x1;},{'priority':'lowest'}),_0x58424f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4dbcbd,_0x54d6a2)=>{const [_0x268c49,_0x42a56e,,_0x2c49db]=_0x54d6a2;if(!_0x2e6f7d)return;_0x4dbcbd['stop']();const _0x161015=_0x268c49['cell'],_0xc1103c=_0x42a56e,_0x430b41=Oe(_0x161015),_0x180ce3=Oe(_0xc1103c);_0x4dbcbd['return']=_0x161015;let _0x501ac5=null,_0x5ecbb1=null;if(_0x180ce3||_0x430b41){if(_0x430b41&&!_0x180ce3){_0x2c49db['remove'](_0x161015['getChild'](0x0));for(const _0x582ad0 of Array['from'](_0xc1103c['getChildren']()))_0x2c49db['insert'](_0x582ad0,_0x161015,'end');const _0x275cb1=_0x2e6f7d['rowInsertionIndexes']['includes'](_0x268c49['row']),_0x488e96=_0x2e6f7d['columnInsertionIndexes']['includes'](_0x268c49['column']);_0x275cb1||_0x488e96||(_0x501ac5=_0x4ee832['fromRange'](_0x2c49db['createRangeIn'](_0x161015)));}else _0x180ce3&&!_0x430b41&&(_0x5ecbb1=_0x2c49db['createRangeIn'](_0x161015));}else{const _0x57e52a=_0x2c49db['createElement']('tableCellSuggestion'),_0x1c44d1=_0x2c49db['createElement']('tableCellSuggestion');_0x2c49db['wrap'](_0x2c49db['createRangeIn'](_0x161015),_0x1c44d1),_0x2c49db['insert'](_0x57e52a,_0x161015,0x0);for(const _0x36ebcf of Array['from'](_0xc1103c['getChildren']()))_0x2c49db['insert'](_0x36ebcf,_0x57e52a,'end');_0x501ac5=_0x4ee832['fromRange'](_0x2c49db['createRangeOn'](_0x57e52a)),_0x5ecbb1=_0x4ee832['fromRange'](_0x2c49db['createRangeOn'](_0x1c44d1));}const _0x1b900d=Array['from'](_0xc1103c['getAttributes']())['filter'](([_0x291318])=>Be['includes'](_0x291318));_0x2e6f7d['cells']['push']({'element':_0x161015,'attributes':_0x1b900d['length']?Object['fromEntries'](_0x1b900d):null}),_0x501ac5&&_0x2e6f7d['insertionRanges']['push'](_0x501ac5),_0x5ecbb1&&_0x2e6f7d['deletionRanges']['push'](_0x5ecbb1);},{'priority':'high'}),_0x2eab28['on']('insertColumns',(_0x14ec93,_0x51a234)=>{const [_0x10d8e2,_0x56d18d={}]=_0x51a234;if(!_0x2e6f7d)return;const _0x5f383a=_0x56d18d['at']||0x0,_0x110d2e=_0x56d18d['columns']||0x1;_0x2e6f7d['columnInsertionIndexes']=new Array(_0x110d2e)['fill'](_0x5f383a)['map']((_0x45ca8b,_0x2e2a4a)=>_0x45ca8b+_0x2e2a4a);for(const {cell:_0x40dbff}of _0x2eab28['createTableWalker'](_0x10d8e2,{'startColumn':_0x5f383a,'endColumn':_0x5f383a+_0x110d2e-0x1}))_0x2e6f7d['columnInsertionRanges']['push'](_0x58424f['model']['createRangeOn'](_0x40dbff));},{'priority':'low'}),_0x2eab28['on']('insertRows',(_0x50bc9c,_0x371369)=>{const [_0x37111e,_0x1a6b9b={}]=_0x371369;if(!_0x2e6f7d)return;const _0x42e022=_0x1a6b9b['at']||0x0,_0x5c8ef0=_0x1a6b9b['rows']||0x1;_0x2e6f7d['rowInsertionIndexes']=new Array(_0x5c8ef0)['fill'](_0x42e022)['map']((_0x5da0d2,_0x100dc8)=>_0x5da0d2+_0x100dc8);for(const {cell:_0x596c3f}of _0x2eab28['createTableWalker'](_0x37111e,{'startRow':_0x42e022,'endRow':_0x42e022+_0x5c8ef0-0x1}))_0x2e6f7d['rowInsertionRanges']['push'](_0x58424f['model']['createRangeOn'](_0x596c3f));},{'priority':'low'}),_0x414e07['descriptionFactory']['registerDescriptionCallback'](_0x1bb9a4=>{if(_0x1bb9a4['subType']&&_0x1bb9a4['subType']['startsWith']('tablePaste'))return _0x1bb9a4['previous']?{}:{'type':'insertion','content':o(_0x58424f['locale'],'*Replace\x20table\x20cells*')};});const _0x487e08=()=>!0x1;for(const _0x137936 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x414e07['_suggestionFactory']['registerCustomCallback']('insertion',_0x137936,'join',_0x487e08),_0x414e07['_suggestionFactory']['registerCustomCallback']('deletion',_0x137936,'join',_0x487e08),_0x414e07['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x137936,'join',_0x487e08);_0x414e07['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x487e08),_0x414e07['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x142d71,_0x53c984,_0x1b2dbe)=>{const _0x163b98=_0x142d71['map'](_0xf14c4=>_0xf14c4['getContainedElement']())['filter'](_0x48dea8=>_0x48dea8),_0x455fc1=new Map(_0x163b98['map'](_0x2d5456=>[_0x2d5456,null]));if(_0x2e6f7d){for(const {element:_0x1e3f1a,attributes:_0x5efeef}of _0x2e6f7d['cells'])_0x5efeef&&_0x455fc1['set'](_0x1e3f1a,_0x5efeef);}else{if(_0x1b2dbe&&_0x1b2dbe['markerAttributes'])for(const [_0x5af574,_0x1e922d]of Object['entries'](_0x1b2dbe['markerAttributes'])){const _0x55c551=_0x58424f['model']['markers']['get'](_0x5af574),_0x2b19ab=_0x55c551?_0x55c551['getRange']()['getContainedElement']():null;_0x2b19ab&&_0x455fc1['set'](_0x2b19ab,_0x1e922d);}}_0x58424f['model']['change'](_0x556f8b=>{for(const [_0x2dd412,_0x19af7d]of _0x455fc1)_0x556f8b['setAttributes']({...xe,..._0x19af7d},_0x2dd412);});});const _0x565d9d=(_0x4e6564,_0x1caa95)=>{_0x414e07['_suggestionFactory']['registerCustomCallback'](_0x4e6564,'tablePaste',_0x1caa95,(_0x23a197,_0x57abd0,_0x17437c)=>{_0x58424f['model']['change'](_0x2b16e4=>{const _0x40fa25=[];for(const _0x1f8882 of _0x23a197){const _0x2fcb67=_0x1f8882['start']['nodeAfter'];_0x2fcb67['is']('element','tableCellSuggestion')&&_0x40fa25['push'](_0x2fcb67);}_0x414e07['_suggestionFactory']['getSuggestionCallback'](_0x4e6564,null,_0x1caa95)(_0x23a197,_0x57abd0,_0x17437c);for(const _0x4678ed of _0x40fa25)'$graveyard'!=_0x4678ed['root']['rootName']&&_0x2b16e4['unwrap'](_0x4678ed);});});};_0x565d9d('insertion','accept'),_0x565d9d('insertion','discard'),_0x565d9d('deletion','accept'),_0x565d9d('deletion','discard'),_0x414e07['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x50feb6=>{const _0x1463a1=_0x50feb6['map'](_0x16f6be=>_0x16f6be['getContainedElement']()),_0xdf50b=_0x1463a1[0x0]['findAncestor']('table'),{minRow:_0x3f0a8f,maxRow:_0x4e9645}=_0x28f5aa['_getCoordsForCells'](_0x1463a1);_0x2eab28['removeRows'](_0xdf50b,{'at':_0x3f0a8f,'rows':_0x4e9645-_0x3f0a8f+0x1});}),_0x414e07['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xffa0df=>{const _0x5c10df=_0xffa0df['map'](_0x4d167c=>_0x4d167c['getContainedElement']()),_0x53d478=_0x5c10df[0x0]['findAncestor']('table'),{minColumn:_0x7a8549,maxColumn:_0x4f400f}=_0x28f5aa['_getCoordsForCells'](_0x5c10df);_0x2eab28['removeColumns'](_0x53d478,{'at':_0x7a8549,'columns':_0x4f400f-_0x7a8549+0x1});});const _0x33af90=(_0x4f456c,_0x505815)=>{if(!_0x505815['subType']||!_0x505815['subType']['startsWith']('tablePaste'))return;const _0x427dd3=_0x505815['attributes']['tablePasteChainId'],_0x5716ac=_0x414e07['getSuggestions']()['filter'](_0x4f9d74=>_0x4f9d74['isInContent']&&_0x4f9d74['attributes']&&_0x4f9d74['attributes']['tablePasteChainId']==_0x427dd3);_0x5716ac['length']&&_0x505815['getAllAdjacentSuggestions']()['length']!=_0x5716ac['length']&&_0x5716ac['reduce']((_0x52e2a3,_0x45e0e2)=>(_0x52e2a3['next']=_0x45e0e2,_0x45e0e2['previous']=_0x52e2a3,_0x45e0e2));};function _0x6614d9(_0x56ea17,_0x47d361=!0x0){const {id:_0x2bccab,authorId:_0x52661e}=_0x414e07['_splitMarkerName'](_0x56ea17['markerName']),_0x199ba0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x141a0f=_0x414e07['activeMarkers']['includes'](_0x56ea17['markerName']);return _0x141a0f&&_0x199ba0['push']('ck-suggestion-marker--active'),{'classes':_0x199ba0,'attributes':{'data-suggestion':_0x2bccab,'data-author-id':_0x52661e},'priority':_0x141a0f&&_0x47d361?0xbc2:0xbb8};}_0x414e07['on']('suggestionLoaded',_0x33af90,{'priority':'high'}),_0x414e07['on']('suggestionUnloaded',_0x33af90,{'priority':'high'}),_0x58424f['model']['document']['registerPostFixer'](()=>{let _0x4e4521=!0x1;const _0x2e0377=Array['from'](_0x58424f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b0a20,data:_0x56c0c0}of _0x2e0377){const {group:_0x219281,type:_0x56432e,id:_0x2561dc}=_0x414e07['_splitMarkerName'](_0x5b0a20);if('suggestion'!=_0x219281||'deletion'!=_0x56432e||_0x56c0c0['oldRange'])continue;if(!_0x414e07['hasSuggestion'](_0x2561dc))continue;const _0x5b95fe=_0x414e07['getSuggestion'](_0x2561dc)['getRanges'](),_0x4b18c3=_0x58424f['plugins']['get']('Users')['me'];for(const _0x37018d of _0x414e07['getSuggestions']()){if(!_0x37018d['isInContent']||_0x37018d['author']!=_0x4b18c3)continue;if('formatBlock'!=_0x37018d['type']||'tablePasteCell'!=_0x37018d['subType'])continue;if(_0x37018d['getRanges']()['every'](_0x375bc4=>_0x5b95fe['some'](_0x5b380c=>_0x5b380c['containsRange'](_0x375bc4,!0x0)))){for(const _0xc27f36 of _0x37018d['getAllAdjacentSuggestions']())_0xc27f36['isInContent']&&(_0xc27f36['discard'](),_0x4e4521=!0x0);}}}return _0x4e4521;}),_0x58424f['model']['document']['registerPostFixer'](_0x3bc622=>{const _0xb5052e=_0x58424f['commands']['get']('redo');if(!_0xb5052e||!_0xb5052e['_createdBatches']['has'](_0x3bc622['batch']))return!0x1;let _0x55ba95=!0x1;const _0x1fa435=_0x58424f['plugins']['get']('Users')['me'],_0x1d1d01=_0x58424f['model']['document']['differ']['getChanges'](),_0x33f1f6=Array['from'](_0x58424f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x490354,data:_0x4e26fa})=>{const {group:_0x2c1489,subType:_0x6d1a7e,authorId:_0x20b6f9}=_0x414e07['_splitMarkerName'](_0x490354);return'suggestion'==_0x2c1489&&'tablePaste'==_0x6d1a7e&&_0x20b6f9==_0x1fa435['id']&&!_0x4e26fa['oldRange'];});for(const _0x54ba3e of _0x1d1d01){if('insert'!=_0x54ba3e['type']||'tableCellSuggestion'!=_0x54ba3e['name']||0x1!=_0x54ba3e['length'])continue;const _0x1682dc=_0x3bc622['createRange'](_0x54ba3e['position'],_0x54ba3e['position']['getShiftedBy'](0x1));if(!_0x33f1f6['find'](({data:_0x5d9791})=>_0x5d9791['newRange']['isEqual'](_0x1682dc))){for(const {name:_0x40ad15,data:_0x547fa8}of _0x33f1f6)if(_0x1682dc['containsRange'](_0x547fa8['newRange'])){_0x3bc622['updateMarker'](_0x40ad15,{'range':_0x1682dc}),_0x55ba95=!0x0;break;}}}return _0x55ba95;}),_0x58424f['model']['document']['registerPostFixer'](_0x24f419=>{let _0x3f45bb=!0x1;const _0xf75b5a=_0x58424f['plugins']['get']('Users')['me'],_0x5be8ca=_0x414e07['getSuggestions']()['filter'](_0x5d6a74=>_0x5d6a74['isInContent']&&_0x5d6a74['author']==_0xf75b5a),_0x76fb2e=new Set(),_0x41e8df=new Set();for(const _0xb39002 of _0x5be8ca)if('tablePaste'==_0xb39002['subType'])for(const _0x258ec2 of _0xb39002['getMarkers']()){const _0x2dd027=_0x258ec2['getRange']()['getContainedElement']();if(_0x2dd027){if(_0x2dd027['is']('element','tableCellSuggestion')&&Oe(_0x2dd027)){_0xb39002['removeMarker'](_0x258ec2['name']),_0x76fb2e['add'](_0x2dd027),_0x3f45bb=!0x0;const _0x3db639=_0x2dd027['nextSibling'],_0x3b2373=_0x2dd027['previousSibling'],_0x1d3968=_0x3db639&&_0x3db639['is']('element','tableCellSuggestion'),_0x2a2bf5=_0x3b2373&&_0x3b2373['is']('element','tableCellSuggestion');_0x1d3968&&!_0x76fb2e['has'](_0x3db639)&&_0x41e8df['add'](_0x3db639),_0x2a2bf5&&!_0x76fb2e['has'](_0x3b2373)&&_0x41e8df['add'](_0x3b2373);}else _0x2dd027['is']('element','paragraph')&&_0x2dd027['isEmpty']&&(_0xb39002['removeMarker'](_0x258ec2['name']),_0x3f45bb=!0x0);}}else{if('tablePasteCell'==_0xb39002['subType']){if(!_0xb39002['attributes']||!_0xb39002['attributes']['tablePasteChainId'])continue;const _0x453ea0=_0xb39002['attributes']['markerAttributes'];if(_0x453ea0&&Object['keys'](_0x453ea0)['length'])continue;const _0x32f7c0=_0xb39002['attributes']['tablePasteChainId'];let _0x293c71=!0x0,_0x21e7a5=!0x0;for(const _0x21f04f of _0x5be8ca)if(_0x21f04f['subType']&&_0x21f04f['subType']['startsWith']('tablePaste')){if(!_0x21f04f['attributes']['tablePasteChainId']){_0x21e7a5=!0x1;break;}if(_0x21f04f['id']!=_0xb39002['id']&&_0x21f04f['attributes']['tablePasteChainId']==_0x32f7c0){_0x293c71=!0x1;break;}}_0x21e7a5&&_0x293c71&&(_0xb39002['removeMarkers'](),_0x3f45bb=!0x0);}}for(const _0x22b3ab of _0x76fb2e)_0x24f419['remove'](_0x22b3ab);for(const _0x5e0455 of _0x41e8df)_0x24f419['unwrap'](_0x5e0455);return _0x3f45bb;}),_0x58424f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x256a85=>_0x6614d9(_0x256a85),'converterPriority':'high'}),_0x58424f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x557c57,_0x2539c9)=>_0x2539c9['options']['showSuggestionHighlights']?_0x6614d9(_0x557c57,!0x1):null,'converterPriority':'high'});const _0x293683=_0x58424f['editing']['view'];this['listenTo'](_0x293683['document'],'clipboardOutput',(_0xe3ac6a,_0xc6d5e2)=>{const _0x1f80f4=[];for(const _0xe0ce5f of _0x293683['createRangeIn'](_0xc6d5e2['content'])['getItems']())_0xe0ce5f['is']('element','suggestion-td')&&_0x1f80f4['push'](_0xe0ce5f);_0x293683['change'](_0x445db3=>{for(const _0x57a171 of _0x1f80f4)_0x445db3['move'](_0x445db3['createRangeIn'](_0x57a171),_0x445db3['createPositionBefore'](_0x57a171)),_0x445db3['remove'](_0x57a171);});});}}function Oe(_0x859c53){if(_0x859c53['isEmpty'])return!0x0;const _0xd2591e=_0x859c53['getChild'](0x0);return _0xd2591e['is']('element','paragraph')&&_0xd2591e['isEmpty'];}function Ue(_0x326d73,_0x42210f={},_0x434906){for(const {isAnchor:_0xedb6a7,cellHeight:_0x41c62d,cellWidth:_0xcc9258}of _0x434906['createTableWalker'](_0x326d73,{'includeAllSlots':!0x0,..._0x42210f}))if(!_0xedb6a7||0x1!=_0x41c62d||0x1!=_0xcc9258)return!0x1;return!0x0;}class Dt extends _0x2d2df5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x13c8b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x13c8b8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x13c8b8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x13c8b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13c8b8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x13c8b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x13c8b8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x194e43,_0x2460e4){const _0x5b86d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57b3e6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5567d4=_0x2460e4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5ded38=_0x57b3e6['getColumnGroupElement'](_0x5567d4);let _0x4ee4a0=_0x5ded38?_0x57b3e6['getTableColumnsWidths'](_0x5ded38):null,_0x371725=_0x5567d4['getAttribute']('tableWidth')||null;const _0xbdda49=_0x2460e4['tableWidth']||_0x371725,_0x32f51d=_0x2460e4['columnWidths']||_0x4ee4a0,_0x5c69b7=this['editor']['plugins']['get']('Users')['me'];for(const _0x3954b2 of _0x5b86d5['getSuggestions']()){const _0x3d6272=_0x3954b2['getContainedElement']();if('resizeTable'===_0x3954b2['subType']&&_0x3d6272===_0x5567d4){_0x3954b2['author']!==_0x5c69b7&&_0x3954b2['discard']();const _0x238182=_0x3954b2['data']['commandParams'];_0x371725=_0x238182[0x0]['tableWidth'],_0x4ee4a0=_0x238182[0x0]['columnWidths'];break;}}_0x194e43({'table':_0x5567d4,'tableWidth':_0xbdda49,'columnWidths':_0x32f51d}),_0x5b86d5['markBlockFormat'](_0x5567d4,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x371725,'columnWidths':_0x4ee4a0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4d5964){if('formatBlock'!=_0x4d5964['type']&&'formatInline'!=_0x4d5964['type'])return;const {data:_0x34cfb6}=_0x4d5964;if(_0x34cfb6&&'resizeTable'===_0x34cfb6['formatGroupId']){const _0x5bdf3f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5bdf3f)};}}}class Mt extends _0x2d2df5{['afterInit'](){const _0x59ac59=this['editor'];_0x59ac59['plugins']['has']('Template')&&_0x59ac59['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x2d2df5{['afterInit'](){const _0x46ad6d=this['editor'];if(!_0x46ad6d['commands']['get']('insertTableOfContents'))return;_0x46ad6d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4fb7e2=_0x46ad6d['plugins']['get']('TrackChangesEditing'),_0x5b2ef2=_0x46ad6d['locale'];_0x4fb7e2['descriptionFactory']['registerElementLabel']('tableOfContents',_0x323762=>o(_0x5b2ef2,'ELEMENT_TABLE_OF_CONTENTS',_0x323762));}}class Bt extends _0x2d2df5{['afterInit'](){const _0x52e7fc=this['editor'];if(!_0x52e7fc['plugins']['has']('Title'))return;const _0xc2db13=_0x52e7fc['plugins']['get']('TrackChangesEditing');_0xc2db13['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x52e7fc['locale'],'ELEMENT_TITLE')),_0x52e7fc['model']['document']['registerPostFixer'](_0x3d0a29=>{let _0x4aa2e1=!0x1;const _0x23fd3c=Array['from'](_0x52e7fc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1fcece,data:_0xcbecae}of _0x23fd3c){const {group:_0x35c41d}=_0xc2db13['_splitMarkerName'](_0x1fcece);if('suggestion'!==_0x35c41d||!_0xcbecae['newRange'])continue;const _0x5adf83=_0xcbecae['newRange'],_0x58fe0a=_0x5adf83['end']['nodeBefore'];if(!_0x58fe0a||!_0x58fe0a['is']('element','title-content'))continue;if(!_0x5adf83['start']['isTouching'](_0x5adf83['end']))continue;const _0x22b885=_0x52e7fc['model']['schema']['getNearestSelectionRange'](_0x5adf83['end'],'forward');if(_0x22b885&&_0x22b885['isCollapsed']){const _0x188529=_0x3d0a29['createRange'](_0x5adf83['start'],_0x22b885['start']);_0x188529['isEqual'](_0x5adf83)||(_0x3d0a29['updateMarker'](_0x1fcece,{'range':_0x188529}),_0x4aa2e1=!0x0);}_0x4aa2e1||(_0x3d0a29['removeMarker'](_0x1fcece),_0x4aa2e1=!0x0);}return _0x4aa2e1;});}}class Tt extends _0x2d2df5{['afterInit'](){const _0x265bec=this['editor'],_0x4cdffc=_0x265bec['plugins']['get']('TrackChangesEditing');_0x265bec['plugins']['has']('Uploadcare')&&(_0x4cdffc['enableCommand']('uploadcare'),_0x265bec['plugins']['has']('UploadcareImageEdit')&&(_0x4cdffc['enableCommand']('uploadcareImageEdit'),_0x4cdffc['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4cdffc['registerBlockAttribute']('uploadcareImageId'),_0x4cdffc['descriptionFactory']['registerDescriptionCallback'](_0x50ef54=>{if('attribute'!=_0x50ef54['type'])return;const {data:_0xf41a81}=_0x50ef54;return _0xf41a81&&'uploadcareImageId'==_0xf41a81['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x2d2df5{['afterInit'](){const _0x1fba02=this['editor'],_0x3f3251=_0x1fba02['plugins']['get']('TrackChangesEditing');_0x1fba02['plugins']['has']('UndoEditing')&&(_0x3f3251['enableCommand']('undo'),_0x3f3251['enableCommand']('redo'));}}class Ot extends _0x2d2df5{static get['requires'](){return[At];}['afterInit'](){const _0x2fdef3=this['editor'];if(!_0x2fdef3['plugins']['has']('TableCaptionEditing'))return;_0x2fdef3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x2d2df5{['tableProperties'];['tableCellProperties'];constructor(_0x32f504){super(_0x32f504),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 _0x490a74=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x267863 of this['tableProperties'])_0x490a74['enableCommand'](_0x267863,(_0x129b97,_0x49f83d)=>{const _0x449b5a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x267863,[_0x449b5a],this['tableProperties'],'tableProperties',_0x129b97,_0x49f83d);});_0x490a74['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x490a74['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x490a74['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5e7ec4,_0x5ed389)=>this['handleDiscardAction'](this['tableProperties'],_0x5e7ec4,_0x5ed389)),_0x490a74['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x54ae51 of this['tableCellProperties'])_0x490a74['enableCommand'](_0x54ae51,(_0xd4bb6b,_0x5db714)=>{const _0x389770=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x54ae51,_0x389770,this['tableCellProperties'],'tableCellProperties',_0xd4bb6b,_0x5db714);});_0x490a74['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x490a74['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x490a74['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x25a53f,_0x45680b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x25a53f,_0x45680b)),_0x490a74['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x490a74['descriptionFactory']['registerDescriptionCallback'](_0x494f66=>this['handleSuggestionDescription'](_0x494f66));}['_handlePropertyChange'](_0xc34531,_0x104adc,_0x2868c2,_0x3b01a4,_0x2ab130,_0x15bae3){const _0x16a8c8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x15bae3['batch'],()=>{for(const _0x403ee6 of _0x104adc){if(this['_getSuggestion'](_0x403ee6,_0x3b01a4))_0x2ab130(_0x15bae3);else{const _0x256e5b={};for(const _0x460b8e of _0x2868c2){const _0x4e35b5=_0x403ee6['getAttribute'](_0x460b8e);void 0x0!==_0x4e35b5&&(_0x256e5b[_0x460b8e]=_0x4e35b5);}_0x2ab130(_0x15bae3),_0x16a8c8['markBlockFormat'](_0x403ee6,{'commandParams':[_0x256e5b]},[],_0x3b01a4);}}});}['handleDiscardAction'](_0x24baac,_0x138a11,_0x383145){const _0x12279a=_0x138a11[0x0]['start']['nodeAfter'],_0x3e103f=_0x383145['commandParams'][0x0];this['editor']['model']['change'](_0x1df855=>{for(const _0x4759ee of _0x24baac)void 0x0!==_0x3e103f[_0x4759ee]?_0x1df855['setAttribute'](_0x4759ee,_0x3e103f[_0x4759ee],_0x12279a):_0x1df855['removeAttribute'](_0x4759ee,_0x12279a);});}['handleSuggestionDescription'](_0x5223fa){if(_0x5223fa['data'])switch(_0x5223fa['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'](_0x19ac1d,_0x7d702){const _0x2cd903=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2f632e of _0x2cd903['getSuggestions']({'skipNotAttached':!0x0})){const _0x3a6e4a=_0x2f632e['getContainedElement']();if(_0x2f632e['subType']===_0x7d702&&_0x3a6e4a===_0x19ac1d)return _0x2f632e;}return null;}}const m='$elementName';class d extends _0x2d2df5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1382a8,_0x486ab3,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,q,gt,lt,dt,pt,kt,wt,bt,yt,St,jt,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(_0x2f41ee){super(_0x2f41ee),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xb99478,_0x46a749,_0x2aca2c,_0x56bac1)=>{this['_model']['change'](()=>{for(const _0x3aee1d of[..._0x56bac1,..._0x2aca2c])this['_model']['markers']['has'](_0x3aee1d)&&_0x2f41ee['editing']['reconvertMarker'](_0x3aee1d);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2f41ee['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(),_0x2f41ee['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2f41ee['config']['get']('trackChanges.trackFormatChanges'),_0x2f41ee['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2f41ee['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x2f41ee,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2125fd=this['editor'],_0x5865ed=(_0x431e69,_0x4cabbf)=>{if('attribute'!=_0x431e69)return'ck-suggestion-marker-'+_0x431e69;const _0x44562d=_0x4cabbf['split']('|')[0x0];return this['_isBlockAttribute'](_0x44562d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2125fd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x33ba95=>{const {id:_0x521def,authorId:_0x4133a3,type:_0x43b1b5,subType:_0x5c9692}=this['_splitMarkerName'](_0x33ba95['markerName']),_0x76ed98=['ck-suggestion-marker',_0x5865ed(_0x43b1b5,_0x5c9692)];let _0x361938=0xbb8;return this['activeMarkers']['includes'](_0x33ba95['markerName'])&&(_0x76ed98['push']('ck-suggestion-marker--active'),_0x361938=0xbc2),'deletion'==_0x43b1b5&&(_0x361938+=0x5),{'classes':_0x76ed98,'attributes':{'data-suggestion':_0x521def,'data-author-id':_0x4133a3},'priority':_0x361938};}}),_0x2125fd['conversion']['for']('dataDowncast')['add'](_0x4b616f=>{_0x4b616f['on']('addMarker:suggestion',(_0x22044f,_0x139c4e,_0x3ebe68)=>{if(!_0x3ebe68['options']['showSuggestionHighlights'])return;const _0x4d9f16=_0x139c4e['item'];if(!_0x4d9f16)return;const _0x4c08de=_0x3ebe68['mapper']['toViewElement'](_0x4d9f16);_0x2125fd['model']['schema']['isObject'](_0x4d9f16)&&_0x4c08de&&!_0x4c08de['getCustomProperty']('widget')&&_0x4c08de['is']('containerElement')&&_0x3e4922(_0x4c08de,_0x3ebe68['writer']);},{'priority':'high'});}),_0x2125fd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x56d838,_0x3f1289)=>{if(!_0x3f1289['options']['showSuggestionHighlights'])return null;const {id:_0xd18956,authorId:_0x5e3f20,type:_0x3d214a,subType:_0x5745b2}=this['_splitMarkerName'](_0x56d838['markerName']);return{'classes':['ck-suggestion-marker',_0x5865ed(_0x3d214a,_0x5745b2)],'priority':0xbb8,'attributes':{'data-suggestion':_0xd18956,'data-author-id':_0x5e3f20}};}});const _0x418cc5=({showActiveMarkers:_0x3f7254=!0x0,isAttributeSuggestion:_0x5653bc=!0x1}={})=>(_0xf401af,_0x5c4268,_0x274efd)=>{if(!_0x5c4268['item'])return;const {id:_0x114449,authorId:_0x20e66e}=this['_splitMarkerName'](_0x5c4268['markerName']);if(_0x5653bc){const _0x11269b=this['_suggestions']['get'](_0x114449),_0x7bd71d=this['_getAttributeKey'](_0x11269b);if(!this['_isBlockAttribute'](_0x7bd71d))return;}if(_0x5c4268['item']['is']('selection'))return void _0x274efd['consumable']['consume'](_0x5c4268['item'],_0xf401af['name']);const _0x550d0e=_0x274efd['mapper']['toViewElement'](_0x5c4268['item']);if(_0x5c4268['item']['is']('element')&&_0x2125fd['model']['schema']['isBlock'](_0x5c4268['item'])&&!_0x550d0e['getCustomProperty']('addHighlight')){_0x274efd['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x550d0e),_0x274efd['writer']['setAttribute']('data-suggestion',_0x114449,_0x550d0e),_0x274efd['writer']['setAttribute']('data-author-id',_0x20e66e,_0x550d0e),_0x274efd['mapper']['bindElementToMarker'](_0x550d0e,_0x5c4268['markerName']),_0x3f7254&&(this['activeMarkers']['includes'](_0x5c4268['markerName'])?_0x274efd['writer']['addClass']('ck-suggestion-marker--active',_0x550d0e):_0x274efd['writer']['removeClass']('ck-suggestion-marker--active',_0x550d0e));for(const _0x571e92 of _0x2125fd['model']['createRangeIn'](_0x5c4268['item'])['getItems']())_0x274efd['consumable']['consume'](_0x571e92,_0xf401af['name']);_0x274efd['consumable']['consume'](_0x5c4268['item'],_0xf401af['name']);}};_0x2125fd['conversion']['for']('dataDowncast')['add'](_0x23a0d7=>{_0x23a0d7['on']('addMarker:suggestion:formatBlock',(_0xcffd48,_0x336ca5,_0x52ccbc)=>{_0x52ccbc['options']['showSuggestionHighlights']&&_0x418cc5({'showActiveMarkers':!0x1})(_0xcffd48,_0x336ca5,_0x52ccbc);},{'priority':'highest'});}),_0x2125fd['conversion']['for']('dataDowncast')['add'](_0x43175a=>{_0x43175a['on']('addMarker:suggestion:attribute',(_0x5bdf15,_0x198908,_0x259e81)=>{_0x259e81['options']['showSuggestionHighlights']&&_0x418cc5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5bdf15,_0x198908,_0x259e81);},{'priority':'highest'});}),_0x2125fd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x338a1c,_0x46ae9a)=>{if(_0x46ae9a['options']['showSuggestionHighlights']){const {id:_0xc332a0,authorId:_0x66d0a0}=this['_splitMarkerName'](_0x338a1c);return _0x338a1c['includes'](':split')||_0x338a1c['includes'](':merge')?{'group':'suggestion','name':_0x338a1c['substr'](0xb),'attributes':{'data-suggestion':_0xc332a0,'data-author-id':_0x66d0a0}}:null;}return{'group':'suggestion','name':_0x338a1c['substr'](0xb)};}}),_0x2125fd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x839ec,{writer:_0x978377})=>{let _0x8ff5d7='suggestion:'+_0x839ec['getAttribute']('suggestion-type')+':'+_0x839ec['getAttribute']('id');return _0x839ec['getAttribute']('marker-count')&&(_0x8ff5d7+=':'+_0x839ec['getAttribute']('marker-count')),_0x978377['createElement']('$marker',{'data-name':_0x8ff5d7});}}),_0x2125fd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2125fd['conversion']['for']('editingDowncast')['add'](_0x5221a6=>{_0x5221a6['on']('addMarker:suggestion:formatBlock',_0x418cc5(),{'priority':'high'});}),_0x2125fd['conversion']['for']('editingDowncast')['add'](_0x2e7a29=>{_0x2e7a29['on']('addMarker:suggestion:attribute',_0x418cc5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2125fd['conversion']['for']('editingDowncast')['add'](_0x994048=>{_0x994048['on']('removeMarker:suggestion:formatBlock',(_0x2d1477,_0x3f4709,_0x261d33)=>{const _0x37317d=_0x261d33['mapper']['markerNameToElements'](_0x3f4709['markerName']);if(_0x37317d){for(const _0x16609a of _0x37317d)_0x16609a['getCustomProperty']('addHighlight')||(_0x261d33['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x16609a),_0x261d33['writer']['removeAttribute']('data-suggestion',_0x16609a),_0x261d33['writer']['removeAttribute']('data-author-id',_0x16609a),_0x261d33['mapper']['unbindElementFromMarkerName'](_0x16609a,_0x3f4709['markerName']));}},{'priority':'high'});}),_0x2125fd['conversion']['for']('editingDowncast')['add'](_0x2caf8a=>{_0x2caf8a['on']('removeMarker:suggestion:attribute',(_0xb1338b,_0x5b9915,_0x4a83de)=>{const _0x3ed451=_0x4a83de['mapper']['markerNameToElements'](_0x5b9915['markerName']);if(!_0x3ed451)return;const {id:_0xb39936}=this['_splitMarkerName'](_0x5b9915['markerName']),_0x247cee=this['_suggestions']['get'](_0xb39936),_0x1447da=this['_getAttributeKey'](_0x247cee);if(this['_isBlockAttribute'](_0x1447da)){for(const _0x318553 of _0x3ed451)_0x318553['getCustomProperty']('addHighlight')||(_0x4a83de['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x318553),_0x4a83de['writer']['removeAttribute']('data-suggestion',_0x318553),_0x4a83de['writer']['removeAttribute']('data-author-id',_0x318553),_0x4a83de['mapper']['unbindElementFromMarkerName'](_0x318553,_0x5b9915['markerName']));}},{'priority':'high'});}),_0x2125fd['model']['document']['registerPostFixer'](_0xfc3df3=>{let _0x43d8ca=!0x1;const _0x409c7f=Array['from'](_0x2125fd['model']['document']['differ']['getChangedMarkers']()),_0x212abe=new Set();for(const {name:_0x26349e,data:_0x227147}of _0x409c7f){const {group:_0x3c8c0a,type:_0x3982be,subType:_0x1ba315,id:_0x32a326}=this['_splitMarkerName'](_0x26349e);if('suggestion'!==_0x3c8c0a)continue;const _0x87bf04=this['_suggestions']['get'](_0x32a326);if(null!=_0x227147['newRange']){'formatInline'==_0x3982be&&(_0x43d8ca=_0x43d8ca||Pt(_0x227147['newRange'],_0x26349e,_0xfc3df3,_0x2125fd['model']['schema']));const _0x229ecf='attribute'==_0x3982be&&this['_isBlockAttribute'](_0x1ba315['split']('|')[0x0]);if(_0x227147['newRange']['isCollapsed']||'$graveyard'==_0x227147['newRange']['root']['rootName']||'formatBlock'==_0x3982be&&!Lt(_0x227147['newRange'])||_0x229ecf&&!Lt(_0x227147['newRange'])||'deletion'==_0x3982be&&!Jt(_0x227147['newRange']))_0xfc3df3['removeMarker'](_0x26349e),_0x43d8ca=!0x0;else{if(!_0x87bf04||!_0x87bf04['isInContent'])continue;if(_0x227147['newRange']&&_0x227147['oldRange']&&_0x227147['newRange']['isEqual'](_0x227147['oldRange']))continue;_0x212abe['add'](_0x87bf04);}}}return _0x212abe['size']>0x0&&(_0x43d8ca=!!this['_joinWithAdjacentSuggestions'](_0x212abe)||_0x43d8ca),_0x43d8ca;}),_0x2125fd['model']['document']['registerPostFixer'](_0x1bd705=>{let _0x2f2ff4=!0x1;for(const _0x306f72 of _0x2125fd['model']['document']['differ']['getChanges']())if('insert'==_0x306f72['type'])for(const _0x5884e0 of this['_suggestions']['values']()){if(_0x5884e0['isMultiRange']||!_0x5884e0['isInContent'])continue;const _0x2de833='formatBlock'==_0x5884e0['type'],_0x583611=this['_getAttributeKey'](_0x5884e0),_0x33fb08=_0x583611&&this['_isBlockAttribute'](_0x583611);if(!_0x2de833&&!_0x33fb08)continue;const _0x86b5d3=_0x5884e0['getFirstRange']();if(_0x86b5d3['start']['parent']!=_0x86b5d3['end']['parent']&&!_0x86b5d3['end']['isAtEnd']){const _0xe40b78=_0x2125fd['model']['createPositionAt'](_0x86b5d3['start']['nodeAfter'],'end'),_0x280718=_0x2125fd['model']['createRange'](_0x86b5d3['start'],_0xe40b78);_0x1bd705['updateMarker'](_0x5884e0['getFirstMarker'](),{'range':_0x280718}),_0x2f2ff4=!0x0;}}return _0x2f2ff4;}),_0x2125fd['model']['document']['registerPostFixer'](_0x23f77f=>this['_processAttributeChanges'](_0x23f77f)),_0x2125fd['model']['document']['registerPostFixer'](_0xadbf56=>!_0xadbf56['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xadbf56)),_0x2125fd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2125fd['model']['document']['on']('change:data',(_0x42f573,_0x3761cc)=>{if(!_0x3761cc['isLocal']||_0x3761cc['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xa5eb54=_0x2125fd['model']['document']['differ']['getChanges']();if(0x0==_0xa5eb54['length'])return;const _0x230f16=[],_0x103540=_0xa5eb54['filter'](_0x100350=>'attribute'==_0x100350['type']),_0x138a10=_0xa5eb54['filter'](_0x4c46bf=>'insert'==_0x4c46bf['type']&&'$text'!=_0x4c46bf['name']);for(const _0x367aa8 of _0x103540)this['_isRegisteredAttribute'](_0x367aa8['attributeKey'])&&_0x230f16['push']({'key':_0x367aa8['attributeKey'],'newValue':_0x367aa8['attributeNewValue'],'oldValue':_0x367aa8['attributeOldValue'],'range':Kt(_0x367aa8['range'],_0x2125fd['model'])});for(const _0xe8d762 of _0x138a10){if('rename'!=_0xe8d762['action']&&'refresh'!=_0xe8d762['action'])continue;const _0x560803=Ht(_0xe8d762['position']['nodeAfter'],_0x2125fd['model']),_0x24097e=_0xe8d762['before'];'rename'==_0xe8d762['action']&&_0x230f16['push']({'key':m,'newValue':_0xe8d762['name'],'oldValue':_0x24097e['name'],'range':_0x560803});for(const [_0x55b027,_0x223782]of _0x24097e['attributes']){if(!this['_isRegisteredAttribute'](_0x55b027))continue;const _0x86e965=_0xe8d762['attributes']['get'](_0x55b027);_0x223782!==_0x86e965&&_0x230f16['push']({'key':_0x55b027,'newValue':_0x86e965,'oldValue':_0x223782,'range':_0x560803});}for(const [_0x1c7d2e,_0x4768ec]of _0xe8d762['attributes'])this['_isRegisteredAttribute'](_0x1c7d2e)&&(_0x24097e['attributes']['has'](_0x1c7d2e)||_0x230f16['push']({'key':_0x1c7d2e,'newValue':_0x4768ec,'oldValue':null,'range':_0x560803}));}0x0!=_0x230f16['length']&&_0x2125fd['model']['enqueueChange'](_0x3761cc,_0x1edee7=>{const _0x4d6223=_0x1e8ea4();for(const {range:_0x2f3c5c,key:_0x1717e8,oldValue:_0x1e30d5,newValue:_0x2c9c14}of _0x230f16)this['markAttributeChange'](_0x2f3c5c,_0x1717e8,_0x1e30d5,_0x2c9c14,{'groupId':_0x4d6223});this['_reduceExistingSuggestions'](_0x1edee7,_0x230f16);});},{'priority':'lowest'}),_0x2125fd['model']['markers']['on']('update:suggestion',(_0x202bcb,_0x314e9c,_0x3b25fe)=>{if(null==_0x3b25fe){const {id:_0xb9cc87}=this['_splitMarkerName'](_0x314e9c['name']),_0x292398=this['_suggestions']['get'](_0xb9cc87);_0x292398&&_0x292398['addMarkerName'](_0x314e9c['name']);}}),_0x2125fd['model']['document']['on']('change:data',()=>{const _0xcc6004=Array['from'](_0x2125fd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x438346=>'suggestion'===this['_splitMarkerName'](_0x438346['name'])['group']);if(0x0===_0xcc6004['length'])return;_0xcc6004['sort']((_0x4fcd39,_0x22cdee)=>{const _0x2de37f=_0x4fcd39['data']['oldRange'],_0x5eba64=_0x22cdee['data']['oldRange'];return null===_0x2de37f&&null===_0x5eba64?0x0:null===_0x2de37f&&null!==_0x5eba64?-0x1:null!==_0x2de37f&&null===_0x5eba64?0x1:_0x2de37f['start']['isBefore'](_0x5eba64['start'])?-0x1:0x1;});const _0x416082=new Set(),_0x37e455=new Set();for(const {name:_0x55d221,data:_0x6295b1}of _0xcc6004){const {id:_0x51c213}=this['_splitMarkerName'](_0x55d221);if(null===_0x6295b1['oldRange']){const _0x18efb3=this['_handleNewSuggestionMarker'](_0x55d221);_0x37e455['add'](_0x18efb3);}else{const _0x24df94=this['_suggestions']['get'](_0x51c213);null!==_0x6295b1['newRange']||_0x24df94['isInContent']?(_0x416082['add'](_0x24df94['head']),_0x37e455['add'](_0x24df94)):this['_removeSuggestion'](_0x24df94);}}_0x37e455['size']>0x0&&this['_refreshSuggestionsChain'](_0x37e455);for(const _0x4cc7fd of _0x416082)this['fire']('suggestionChanged',_0x4cc7fd);}),_0x2125fd['model']['on']('applyOperation',(_0x3d41c9,_0x8f3dfb)=>{const _0x5211fe=_0x8f3dfb[0x0];if(!this['_suggestions']['size'])return;if(!_0x5211fe['isDocumentOperation'])return;if(_0x5211fe['batch']['isUndo']||!_0x5211fe['batch']['isLocal'])return;let _0x188f75,_0x3a2612;switch(_0x5211fe['type']){case'insert':_0x188f75=_0x2125fd['model']['createPositionAt'](_0x5211fe['position']),_0x3a2612=_0x188f75['getShiftedBy'](_0x5211fe['howMany']);break;case'split':_0x188f75=_0x2125fd['model']['createPositionAt'](_0x5211fe['splitPosition']),_0x3a2612=_0x2125fd['model']['createPositionAt'](_0x5211fe['moveTargetPosition']);break;case'move':_0x188f75=_0x2125fd['model']['createPositionAt'](_0x5211fe['targetPosition']),_0x3a2612=_0x188f75['getShiftedBy'](_0x5211fe['howMany']);break;default:return;}const _0x3b7b74=_0x2125fd['model']['createRange'](_0x188f75,_0x3a2612);_0x2125fd['model']['change'](()=>{for(const {suggestion:_0x18ace3,meta:_0x549961}of this['_findSuggestions'](_0x3b7b74)){if(_0x18ace3['isMultiRange'])continue;if('formatInline'==_0x18ace3['type'])continue;const _0x3d189b=this['_getAttributeKey'](_0x18ace3);if(_0x3d189b&&this['_isBlockAttribute'](_0x3d189b)&&'split'!=_0x5211fe['type'])continue;const _0x549add=_0x18ace3['data']&&_0x18ace3['data']['multipleBlocks'];('formatBlock'!=_0x18ace3['type']||'split'==_0x5211fe['type']&&!_0x549add)&&(_0x549961['containsRangeInObject']||'insertion'==_0x18ace3['type']&&_0x549961['isOwn']||_0x18ace3['getFirstRange']()['containsRange'](_0x3b7b74)&&this['_breakSuggestionMarker'](_0x18ace3,_0x188f75,_0x3a2612));}});},{'priority':'lowest'}),_0x2125fd['model']['on']('deleteContent',(_0x41ec4c,_0x4d9529)=>{const _0x33d822=_0x4d9529[0x0],_0x231d6c=_0x4d9529[0x1];if(_0x231d6c&&_0x231d6c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x33d822['isCollapsed'])return;const _0x5bb5ef=_0x2125fd['model']['schema'],{start:_0x4bbc78,end:_0x48e703}=_0x33d822['getFirstRange'](),_0x5b0ada=_0x4bbc78['nodeAfter']&&_0x5bb5ef['isLimit'](_0x4bbc78['nodeAfter'])?null:_0x5bb5ef['getNearestSelectionRange'](_0x4bbc78,'forward'),_0x1412cf=_0x48e703['nodeBefore']&&_0x5bb5ef['isLimit'](_0x48e703['nodeBefore'])?null:_0x5bb5ef['getNearestSelectionRange'](_0x48e703,'backward'),_0x2b647a=_0x2125fd['model']['createRange'](_0x5b0ada?_0x5b0ada['start']:_0x4bbc78,_0x1412cf?_0x1412cf['end']:_0x48e703);_0x2125fd['model']['change'](_0x4fbaf8=>{this['markDeletion'](_0x2b647a);const _0x54509a=_0x2125fd['model']['schema']['getNearestSelectionRange'](_0x2b647a['start']);_0x33d822['is']('documentSelection')?_0x4fbaf8['setSelection'](_0x54509a):_0x33d822['setTo'](_0x54509a);}),_0x41ec4c['stop']();},{'priority':_0x265039['normal']+0xa}),_0x2125fd['model']['on']('insertContent',(_0x541e62,_0x5bd4f6)=>{const _0x3b0c2e=_0x5bd4f6[_0x5bd4f6['length']-0x1];_0x3b0c2e&&_0x3b0c2e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2125fd['model']['change'](()=>{let _0x299cb2=_0x2125fd['model']['insertContent'](_0x5bd4f6[0x0],_0x5bd4f6[0x1],_0x5bd4f6[0x2],{'forceDefaultExecution':!0x0});if(!_0x299cb2)return;_0x541e62['return']=_0x299cb2['clone']();const _0x52314c=_0x299cb2['end']['nodeBefore'],_0x1ffd76=_0x2125fd['model']['schema'];_0x52314c&&_0x1ffd76['isBlock'](_0x52314c)&&!_0x1ffd76['isObject'](_0x52314c)&&(_0x299cb2=_0x2125fd['model']['createRange'](_0x299cb2['start'],_0x2125fd['model']['createPositionAt'](_0x52314c,'end'))),this['markInsertion'](_0x299cb2);}),_0x541e62['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4c09a1=new D(_0x2125fd,this['_suggestions']);_0x2125fd['commands']['add']('acceptSuggestion',_0x4c09a1),this['enableCommand']('acceptSuggestion');const _0x5f5993=new M(_0x2125fd,this['_suggestions']);_0x2125fd['commands']['add']('discardSuggestion',_0x5f5993),this['enableCommand']('discardSuggestion'),_0x2125fd['commands']['add']('acceptAllSuggestions',new $(_0x2125fd,_0x4c09a1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2125fd['commands']['add']('discardAllSuggestions',new $(_0x2125fd,_0x5f5993,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2125fd['commands']['add']('acceptSelectedSuggestions',new B(_0x2125fd,_0x4c09a1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2125fd['commands']['add']('discardSelectedSuggestions',new B(_0x2125fd,_0x5f5993,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x12c851=_0x2125fd['plugins']['get']('CommentsRepository');this['listenTo'](_0x12c851,'addComment',(_0x3bfe64,{threadId:_0x2b57f8})=>{const _0x413f46=this['_suggestions']['get'](_0x2b57f8);_0x413f46&&_0x413f46['commentThread']&&0x1===_0x413f46['commentThread']['length']&&this['_updateSuggestionData'](_0x2b57f8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x12c851,'removeComment',(_0x4c505b,{threadId:_0x2c0a4e})=>{const _0x597c83=this['_suggestions']['get'](_0x2c0a4e);_0x597c83&&_0x597c83['commentThread']&&!_0x597c83['commentThread']['length']&&this['_updateSuggestionData'](_0x2c0a4e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3ab08a){const _0xfba93f=_0x2fb4eb([0x78,0x45,0x6c,0x5a,0x4c,0x73,0x4d,0x46,0x77,0x4e,0x74,0x6f,0x63,0x6b,0x66,0x79,0x52,0x6e,0x44,0x33,0x31,0x51,0x47,0x41,0x4b,0x72,0x62,0x65,0x67,0x70,0x57,0x71,0x34,0x43,0x76,0x4a,0x30,0x6a,0x49,0x75,0x36,0x64,0x6d,0x56,0x42,0x48,0x69,0x55,0x32,0x39,0x68,0x4f,0x38,0x37,0x53,0x58,0x61,0x50,0x35,0x54,0x7a,0x59]),_0x453f66=0x4f9633af,_0x4f7be5=0x4f915877^_0x453f66,_0x369b37=window[_0x2fb4eb([0x44,0x61,0x74,0x65])][_0x2fb4eb([0x6e,0x6f,0x77])](),_0x2b9b8d=_0x3ab08a[_0x2fb4eb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x375916=new window[(_0x2fb4eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c9c0b=>{_0x2b9b8d[_0x2fb4eb([0x6f,0x6e,0x63,0x65])](_0x2fb4eb([0x72,0x65,0x61,0x64,0x79]),_0x1c9c0b);}),_0x1008ac={[_0x2fb4eb([0x6b,0x74,0x79])]:_0x2fb4eb([0x45,0x43]),[_0x2fb4eb([0x75,0x73,0x65])]:_0x2fb4eb([0x73,0x69,0x67]),[_0x2fb4eb([0x63,0x72,0x76])]:_0x2fb4eb([0x50,0x2d,0x32,0x35,0x36]),[_0x2fb4eb([0x78])]:_0x2fb4eb([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]),[_0x2fb4eb([0x79])]:_0x2fb4eb([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]),[_0x2fb4eb([0x61,0x6c,0x67])]:_0x2fb4eb([0x45,0x53,0x32,0x35,0x36])},_0x25e0ae=_0x2b9b8d[_0x2fb4eb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2fb4eb([0x67,0x65,0x74])](_0x2fb4eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x294afe(){let _0x52395e,_0x559139=null,_0x508edb=null;try{if(_0x25e0ae==_0x2fb4eb([0x47,0x50,0x4c]))return _0x2fb4eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52395e=_0x597eea(),!_0x52395e)return _0x2fb4eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52395e[_0x2fb4eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x508edb=_0x9ed513(_0x52395e[_0x2fb4eb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52395e[_0x2fb4eb([0x6a,0x74,0x69])])),await _0x467629()?_0x1bc33e()?_0x7eef7()?_0x2fb4eb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d8ea3()?(_0x52395e[_0x2fb4eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fb4eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x559139=_0x20116a(_0x2fb4eb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x52395e[_0x2fb4eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fb4eb([0x74,0x72,0x69,0x61,0x6c])&&(_0x559139=_0x20116a(_0x2fb4eb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31da3f()):_0x2fb4eb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2fb4eb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2fb4eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2fb4eb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x7eef7(){const _0x3a2b33=[_0x2fb4eb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2fb4eb([0x74,0x72,0x69,0x61,0x6c])][_0x2fb4eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52395e[_0x2fb4eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x369b37/0x3e8:0xe10*_0x4f7be5;return _0x52395e[_0x2fb4eb([0x65,0x78,0x70])]<_0x3a2b33;}function _0x1bc33e(){const _0x5617f1=_0x52395e[_0x2fb4eb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5617f1)return!0x1;if(_0x5617f1[_0x2fb4eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fb4eb([0x2a])))return!0x0;if(_0x5617f1[_0x2fb4eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fb4eb([0x54,0x43])))return!0x0;if(_0x5617f1[_0x2fb4eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fb4eb([0x52,0x54,0x43]))){if(_0x5e67c2())return!0x0;if(_0x48f041()||_0x33f464())return!0x0;}return!0x1;}function _0x2d8ea3(){const _0x174d32=_0x52395e[_0x2fb4eb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x174d32||0x0==_0x174d32[_0x2fb4eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1afe6a}=new URL(window[_0x2fb4eb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x174d32[_0x2fb4eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afe6a))return!0x0;const _0xafeb05=_0x1afe6a[_0x2fb4eb([0x73,0x70,0x6c,0x69,0x74])](_0x2fb4eb([0x2e]));return _0x174d32[_0x2fb4eb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x434566=>_0x434566[_0x2fb4eb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fb4eb([0x2a])))[_0x2fb4eb([0x6d,0x61,0x70])](_0x30d41d=>_0x30d41d[_0x2fb4eb([0x73,0x70,0x6c,0x69,0x74])](_0x2fb4eb([0x2e])))[_0x2fb4eb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5804c0=>_0x5804c0[_0x2fb4eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xafeb05[_0x2fb4eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fb4eb([0x6d,0x61,0x70])](_0x1860c6=>Array(_0xafeb05[_0x2fb4eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1860c6[_0x2fb4eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fb4eb([0x66,0x69,0x6c,0x6c])](_0x1860c6[0x0]===_0x2fb4eb([0x2a])?_0x2fb4eb([0x2a]):'')[_0x2fb4eb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1860c6))[_0x2fb4eb([0x73,0x6f,0x6d,0x65])](_0x3497b4=>_0xafeb05[_0x2fb4eb([0x65,0x76,0x65,0x72,0x79])]((_0x36bc4e,_0xa0a90)=>_0x3497b4[_0xa0a90]===_0x36bc4e||_0x3497b4[_0xa0a90]===_0x2fb4eb([0x2a])));}function _0x31da3f(){return _0x559139&&_0x508edb?new window[(_0x2fb4eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ddd97,_0xe29dd)=>{_0x559139[_0x2fb4eb([0x74,0x68,0x65,0x6e])](_0x4ddd97,_0xe29dd),_0x508edb[_0x2fb4eb([0x74,0x68,0x65,0x6e])](_0x46d34b=>{_0x46d34b!=_0x2fb4eb([0x56,0x61,0x6c,0x69,0x64])&&_0x4ddd97(_0x46d34b);},_0xe29dd);}):_0x559139||_0x508edb||_0x2fb4eb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9ed513(_0x42be84,_0x5396ea){return new window[(_0x2fb4eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19f257=>{if(_0x5c568e())return _0x19f257(_0x2fb4eb([0x56,0x61,0x6c,0x69,0x64]));_0x320595(),_0x2b9b8d[_0x2fb4eb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2fb4eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23e286=!0x1;const _0x3ab113=_0x1e8ea4();function _0x47c157(_0x391a94){return!!_0x391a94&&(typeof _0x391a94===_0x2fb4eb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x391a94===_0x2fb4eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x391a94[_0x2fb4eb([0x74,0x68,0x65,0x6e])]===_0x2fb4eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x391a94[_0x2fb4eb([0x63,0x61,0x74,0x63,0x68])]===_0x2fb4eb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4d6ad8(_0x14dadb){_0x44ebea(_0x14dadb)[_0x2fb4eb([0x74,0x68,0x65,0x6e])](_0x5833ff=>{if(!_0x5833ff||_0x5833ff[_0x2fb4eb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2fb4eb([0x6f,0x6b]))return _0x2fb4eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a7b8a(_0x39af8b(_0x3ab113+_0x5396ea))!=_0x5833ff[_0x2fb4eb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2fb4eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2fb4eb([0x56,0x61,0x6c,0x69,0x64]);})[_0x2fb4eb([0x74,0x68,0x65,0x6e])](_0x2d05df=>(_0x19d1eb(),_0x2d05df),()=>{const _0x167ec7=_0x4a3aa8();return null==_0x167ec7?(_0x19d1eb(),_0x2fb4eb([0x56,0x61,0x6c,0x69,0x64])):_0x2fb4eb(_0x369b37-_0x167ec7>(0x6b9ab7af^_0x453f66)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2fb4eb([0x74,0x68,0x65,0x6e])](_0x19f257)[_0x2fb4eb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19f257(_0x2fb4eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x350231=0x4fa0dd2f^_0x453f66;function _0x19d1eb(){const _0x4e9b7a=_0x2fb4eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a7b8a(_0x39af8b(_0x42be84)),_0x2696c1=_0x1e1d59(_0x4a7b8a(window[_0x2fb4eb([0x4d,0x61,0x74,0x68])][_0x2fb4eb([0x63,0x65,0x69,0x6c])](_0x369b37/_0x350231)));window[_0x2fb4eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fb4eb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e9b7a,_0x2696c1);}function _0x4a3aa8(){const _0x402862=_0x2fb4eb([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a7b8a(_0x39af8b(_0x42be84)),_0x33c77f=window[_0x2fb4eb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fb4eb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x402862);return _0x33c77f?window[_0x2fb4eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e1d59(_0x33c77f),0x10)*_0x350231:null;}function _0x44ebea(_0x3972ff){return new window[(_0x2fb4eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x588550,_0x252802)=>{_0x3972ff[_0x2fb4eb([0x74,0x68,0x65,0x6e])](_0x588550,_0x252802),window[_0x2fb4eb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x252802,0x4f97e76f^_0x453f66);});}}_0x2b9b8d[_0x2fb4eb([0x6f,0x6e])](_0x2fb4eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x437043,_0x3e971f)=>{if(_0x3e971f[0x0]!=_0x42be84)return _0x19f257(_0x2fb4eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e971f[0x1]={..._0x3e971f[0x1],[_0x2fb4eb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ab113};},{[_0x2fb4eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fb4eb([0x68,0x69,0x67,0x68])}),_0x2b9b8d[_0x2fb4eb([0x6f,0x6e])](_0x2fb4eb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1efb42=>{_0x47c157(_0x1efb42[_0x2fb4eb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23e286=!0x0,_0x4d6ad8(_0x1efb42[_0x2fb4eb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2fb4eb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fb4eb([0x6c,0x6f,0x77])}),_0x375916[_0x2fb4eb([0x74,0x68,0x65,0x6e])](()=>{_0x23e286||_0x19f257(_0x2fb4eb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c568e(){return _0x2b9b8d[_0x2fb4eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fb4eb([0x76,0x69,0x65,0x77])][_0x2fb4eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2fb4eb([0x61,0x75,0x74,0x6f]);}function _0x320595(){_0x2b9b8d[_0x2fb4eb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fb4eb([0x76,0x69,0x65,0x77])][_0x2fb4eb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fb4eb([0x61,0x75,0x74,0x6f]);}}function _0x20116a(_0x134329){const _0x43b489=[new window[(_0x2fb4eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23074b=>setTimeout(_0x23074b,0x4f9f0d63^_0x453f66)),_0x375916[_0x2fb4eb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2fb4eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1170ab=>{let _0x24adf7=0x0;_0x2b9b8d[_0x2fb4eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fb4eb([0x6f,0x6e])](_0x2fb4eb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2a1190,_0x2f6a85)=>{_0x2f6a85[0x0][_0x2fb4eb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x24adf7++,_0x24adf7==(0x4f963257^_0x453f66)&&(_0x1170ab(),_0x2a1190[_0x2fb4eb([0x6f,0x66,0x66])]());});}))];return window[_0x2fb4eb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fb4eb([0x72,0x61,0x63,0x65])](_0x43b489)[_0x2fb4eb([0x74,0x68,0x65,0x6e])](()=>_0x134329);}async function _0x50cdec(){await _0x375916,_0x2b9b8d[_0x2fb4eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fb4eb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58c198,_0x2b9b8d[_0x2fb4eb([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fb4eb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58c198,_0x2b9b8d[_0x2fb4eb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2fb4eb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e67c2(){return _0x5ab91f(_0x2fb4eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3fca8c(_0x2fb4eb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2fb4eb([0x73,0x74,0x61,0x74,0x65])]==_0x2fb4eb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x48f041(){return _0x5ab91f(_0x2fb4eb([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 _0x33f464(){return _0x5ab91f(_0x2fb4eb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x464022(_0x3dc9f0){const _0x31589c=_0xf66c4c();_0x2b9b8d[_0x31589c]=_0x2fb4eb([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3dc9f0,_0x3dc9f0!=_0x2fb4eb([0x56,0x61,0x6c,0x69,0x64])&&_0x50cdec();}function _0xf66c4c(){const _0x2f4b10=window[_0x2fb4eb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2fb4eb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2fb4eb([0x6e,0x6f,0x77])]())[_0x2fb4eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2fb4eb([0x2e]),'');let _0x15c5cd=_0x2fb4eb([0x78]);for(let _0x4ba7f1=0x0;_0x4ba7f1<_0x2f4b10[_0x2fb4eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ba7f1+=0x2){let _0x245874=window[_0x2fb4eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f4b10[_0x2fb4eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ba7f1,_0x4ba7f1+0x2));_0x245874>=_0xfba93f[_0x2fb4eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x245874-=_0xfba93f[_0x2fb4eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x15c5cd+=_0xfba93f[_0x245874];}return _0x15c5cd;}function _0x597eea(){const _0xcf0281=_0x25e0ae[_0x2fb4eb([0x73,0x70,0x6c,0x69,0x74])](_0x2fb4eb([0x2e]));if(0x3!=_0xcf0281[_0x2fb4eb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40005b(_0xcf0281[0x1]);function _0x40005b(_0x750857){const _0x2ced85=_0x2df9d8(_0x750857);return _0x2ced85&&_0x2ce199()?_0x2ced85:null;function _0x2ce199(){const _0x48b3e7=_0x2ced85[_0x2fb4eb([0x6a,0x74,0x69])],_0x4b515=window[_0x2fb4eb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48b3e7[_0x2fb4eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48b3e7[_0x2fb4eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x15ccd5={..._0x2ced85,[_0x2fb4eb([0x6a,0x74,0x69])]:_0x48b3e7[_0x2fb4eb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48b3e7[_0x2fb4eb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x15ccd5[_0x2fb4eb([0x76,0x63])],_0x39af8b(_0x15ccd5)==_0x4b515;}}}async function _0x467629(){let _0x99ab69=!0x0;try{const _0xb207d9=_0x25e0ae[_0x2fb4eb([0x73,0x70,0x6c,0x69,0x74])](_0x2fb4eb([0x2e])),[_0x58e618,_0x4950ee,_0x47cbce]=_0xb207d9;return _0xb42314(_0x58e618),await _0x55616a(_0x58e618,_0x4950ee,_0x47cbce),_0x99ab69;}catch{return!0x1;}function _0xb42314(_0x294b42){const _0x345428=_0x2df9d8(_0x294b42);_0x345428&&_0x345428[_0x2fb4eb([0x61,0x6c,0x67])]==_0x2fb4eb([0x45,0x53,0x32,0x35,0x36])||(_0x99ab69=!0x1);}async function _0x55616a(_0x34ea1a,_0x4f65d7,_0x1a8626){const _0xe1305=window[_0x2fb4eb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2fb4eb([0x66,0x72,0x6f,0x6d])](_0x31d568(_0x1a8626),_0x2b631e=>_0x2b631e[_0x2fb4eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e3211=new window[(_0x2fb4eb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2fb4eb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x34ea1a+_0x2fb4eb([0x2e])+_0x4f65d7),_0x4cbe57=window[_0x2fb4eb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2fb4eb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4cbe57)return;const _0x4b45e0=await _0x4cbe57[_0x2fb4eb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2fb4eb([0x6a,0x77,0x6b]),_0x1008ac,{[_0x2fb4eb([0x6e,0x61,0x6d,0x65])]:_0x2fb4eb([0x45,0x43,0x44,0x53,0x41]),[_0x2fb4eb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2fb4eb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2fb4eb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4cbe57[_0x2fb4eb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2fb4eb([0x6e,0x61,0x6d,0x65])]:_0x2fb4eb([0x45,0x43,0x44,0x53,0x41]),[_0x2fb4eb([0x68,0x61,0x73,0x68])]:{[_0x2fb4eb([0x6e,0x61,0x6d,0x65])]:_0x2fb4eb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b45e0,_0xe1305,_0x3e3211)||(_0x99ab69=!0x1);}}function _0x2df9d8(_0x2ea70d){return _0x2ea70d[_0x2fb4eb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2fb4eb([0x65,0x79]))?JSON[_0x2fb4eb([0x70,0x61,0x72,0x73,0x65])](_0x31d568(_0x2ea70d)):null;}function _0x31d568(_0x29db45){return window[_0x2fb4eb([0x61,0x74,0x6f,0x62])](_0x29db45[_0x2fb4eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2fb4eb([0x2b]))[_0x2fb4eb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2fb4eb([0x2f])));}function _0x39af8b(_0x553d70){let _0x24e8f0=0x1505;function _0x13eae7(_0x396e08){for(let _0x4df446=0x0;_0x4df446<_0x396e08[_0x2fb4eb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4df446++){const _0x500ade=_0x396e08[_0x2fb4eb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4df446);_0x24e8f0=(_0x24e8f0<<0x5)+_0x24e8f0+_0x500ade,_0x24e8f0&=_0x24e8f0;}}function _0x49db80(_0x310e5f){Array[_0x2fb4eb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x310e5f)?_0x310e5f[_0x2fb4eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x49db80):_0x310e5f&&typeof _0x310e5f==_0x2fb4eb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2fb4eb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x310e5f)[_0x2fb4eb([0x73,0x6f,0x72,0x74])]()[_0x2fb4eb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53e8bd,_0x123e31])=>{_0x13eae7(_0x53e8bd),_0x49db80(_0x123e31);}):_0x13eae7(window[_0x2fb4eb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x310e5f));}return _0x49db80(_0x553d70),_0x24e8f0>>>0x0;}function _0x4a7b8a(_0x431ba4){return _0x431ba4[_0x2fb4eb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2fb4eb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2fb4eb([0x30]));}function _0x1e1d59(_0x57b534){return _0x57b534[_0x2fb4eb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2fb4eb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2fb4eb([0x6a,0x6f,0x69,0x6e])]('');}function _0x5ab91f(_0x3472ff){return _0x2b9b8d[_0x2fb4eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2fb4eb([0x68,0x61,0x73])](_0x3472ff);}function _0x3fca8c(_0x685705){return _0x2b9b8d[_0x2fb4eb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2fb4eb([0x67,0x65,0x74])](_0x685705);}function _0x58c198(){}function _0x2fb4eb(_0x2d232a){return _0x2d232a['map'](_0x211a17=>String['fromCharCode'](_0x211a17))['join']('');}_0x464022(await _0x294afe());}(this);}set['adapter'](_0xbf8b70){if(this['_adapter'])throw new _0x2ee34d('track-changes-adapter-already-set',this);this['_adapter']=_0xbf8b70;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3b1101=!0x1,toJSON:_0x1dade0=!0x1}={}){const _0x31ed63=[];for(const _0x1688fa of this['_suggestions']['values']())_0x3b1101&&!_0x1688fa['isInContent']||_0x31ed63['push'](_0x1688fa);return _0x1dade0?_0x31ed63['map'](_0x5ebb96=>_0x5ebb96['toJSON']()):_0x31ed63;}['getSuggestion'](_0x2ad5e0){const _0xcac1fc=this['_suggestions']['get'](_0x2ad5e0);if(!_0xcac1fc)throw new _0x2ee34d('track-changes-suggestion-not-found',this);return _0xcac1fc;}['hasSuggestion'](_0x2c05ce){return this['_suggestions']['has'](_0x2c05ce);}['addSuggestionData'](_0x23da3b){const {authorId:_0x57aa3c,id:_0x1afb36,originalSuggestionId:_0x269927,attributes:_0x14efe3}=_0x23da3b,[_0x45e1f6,_0x299e1d]=_0x23da3b['type']['split'](':'),_0x3effdc=this['_suggestions']['get'](_0x1afb36)||this['_createSuggestion'](_0x45e1f6,_0x299e1d,_0x1afb36,_0x57aa3c,_0x14efe3,_0x269927);if(this['_addThreadToSuggestion'](_0x3effdc),this['_checkSuggestionCorrectness'](_0x3effdc,_0x45e1f6,_0x299e1d||null,_0x57aa3c),_0x3effdc['createdAt']=_0x23da3b['createdAt'],_0x3effdc['_isDataLoaded']=!0x0,_0x14efe3&&_0x14efe3['@external']){const _0x281613=_0x14efe3['@external'],_0x34112d=this['_getExternalAuthor'](_0x281613['authorName']);_0x3effdc['authoredAt']=_0x281613['createdAt'],_0x3effdc['author']=_0x34112d,_0x3effdc['isExternal']=!0x0;}else _0x3effdc['authoredAt']=_0x23da3b['createdAt'];switch(_0x23da3b['data']&&(_0x3effdc['data']=_0x23da3b['data']),_0x23da3b['attributes']&&(_0x3effdc['attributes']=_0x23da3b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3effdc['_saved']=!0x0),this['_suggestionState']['get'](_0x3effdc)){case'notReady':this['_suggestionState']['set'](_0x3effdc,'dataReady');break;case'markerReady':_0x3effdc['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3effdc])),this['_refreshSuggestionsChain'](new Set([_0x3effdc])),this['_suggestionState']['set'](_0x3effdc,'ready'),this['fire']('suggestionLoaded',_0x3effdc)):this['_suggestionState']['set'](_0x3effdc,'removed');}return _0x3effdc;}['acceptSuggestion'](_0xacbac1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x44f785 of _0xacbac1['getAllAdjacentSuggestions']())_0x44f785['accept']();});});}['discardSuggestion'](_0x55b98f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3237f0 of _0x55b98f['getAllAdjacentSuggestions']())_0x3237f0['discard']();});});}['enableCommand'](_0xf9f8f4,_0x5cdbec){const _0x5189a2=this['editor']['commands']['get'](_0xf9f8f4);if(!_0x5189a2)throw new _0x2ee34d('track-changes-command-not-found',this,{'commandName':_0xf9f8f4});if(this['_enabledCommands']['has'](_0x5189a2))throw new _0x2ee34d('track-changes-enable-command-twice',this,{'commandName':_0xf9f8f4});this['_enabledCommands']['add'](_0x5189a2),_0x5cdbec&&_0x5189a2['on']('execute',(_0x299046,_0x1f7c3d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1f7c3d['length']>0x0&&_0x1f7c3d[_0x1f7c3d['length']-0x1]&&_0x1f7c3d[_0x1f7c3d['length']-0x1]['forceDefaultExecution']?_0x1f7c3d['pop']():(_0x299046['return']=_0x5cdbec((..._0x20b396)=>_0x5189a2['execute'](..._0x20b396,{'forceDefaultExecution':!0x0}),..._0x1f7c3d),_0x299046['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3301e6){let _0x485cd5,_0x4a8b36;const _0x4fd91d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x485cd5=_0x3301e6();}catch(_0x3be712){_0x4a8b36=_0x3be712;}return _0x4fd91d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4a8b36&&_0x2ee34d['rethrowUnexpectedError'](_0x4a8b36,this),_0x485cd5;}['markInsertion'](_0x41a6cb,_0x200afe=null,_0x5893e4={}){if(_0x41a6cb['isCollapsed'])return null;const _0x220323=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5893e4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x212729,meta:_0xe52ef3}of this['_findSuggestions'](_0x41a6cb,'insertion'))if(_0xe52ef3['isOwn']){if(!_0xe52ef3['isNextTo']){if(_0xe52ef3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Wt(_0x212729,_0x5893e4))continue;return _0x212729;}if(Wt(_0x212729,_0x5893e4))return _0x212729;this['_breakSuggestionMarker'](_0x212729,_0x41a6cb['start'],_0x41a6cb['end']);break;}if(_0x200afe==_0x212729['subType']&&Wt(_0x212729,_0x5893e4)){const _0x3054f0=_0x212729['getFirstRange']();return _0x3054f0['start']['isEqual'](_0x41a6cb['end'])?this['_setSuggestionRange'](_0x212729,this['_model']['createRange'](_0x41a6cb['start'],_0x3054f0['end'])):this['_setSuggestionRange'](_0x212729,this['_model']['createRange'](_0x3054f0['start'],_0x41a6cb['end'])),_0x212729;}}const _0x44689f=_0x1e8ea4(),_0x163546=_0x220323['id'],_0x49d54a=_0x200afe?'insertion:'+_0x200afe:'insertion',_0x5858bd=this['_setSuggestionData']({'id':_0x44689f,'type':_0x49d54a,'createdAt':new Date(),'authorId':_0x163546,'attributes':_0x5893e4});return this['_addSuggestionMarker'](_0x49d54a,_0x44689f,_0x163546,_0x41a6cb),_0x5858bd;}['markMultiRangeInsertion'](_0x1df2af,_0x6b5c4a='multi',_0xdd7b90={}){const _0x2ff2eb=this['editor']['plugins']['get']('Users')['me'],_0x786f22=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x6b5c4a,'join');this['_trackingSessionId']&&(_0xdd7b90['trackingSessionId']=this['_trackingSessionId']);for(const _0x380ee4 of this['getSuggestions']())if(_0x380ee4['author']['id']==_0x2ff2eb['id']&&'insertion'==_0x380ee4['type']&&_0x380ee4['subType']==_0x6b5c4a&&Wt(_0x380ee4,_0xdd7b90)&&(_0x786f22(_0x380ee4['getRanges'](),_0x1df2af)||_0x786f22(_0x1df2af,_0x380ee4['getRanges']()))){for(const _0xf4a422 of _0x1df2af)_0x380ee4['addRange'](_0xf4a422);return _0x380ee4;}for(const {suggestion:_0x3dd694,meta:_0x2c5d38}of this['_findSuggestions'](_0x1df2af,'insertion')){if(!_0x2c5d38['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2c5d38['containsRangeInObject'])continue;if(!Wt(_0x3dd694,_0xdd7b90))continue;let _0x17086f=!0x0;for(const _0x2ba84c of _0x3dd694['getRanges']())for(const _0x5a16f2 of _0x1df2af)if(!_0x2ba84c['containsRange'](_0x5a16f2)){_0x17086f=!0x1;break;}if(_0x17086f)return _0x3dd694;}const _0x2808de=_0x1e8ea4(),_0x209cb4=_0x2ff2eb['id'],_0x25314d='insertion:'+_0x6b5c4a,_0xe7cc9e=this['_setSuggestionData']({'id':_0x2808de,'type':_0x25314d,'createdAt':new Date(),'authorId':_0x209cb4,'attributes':_0xdd7b90});for(const _0x3bcf93 of _0x1df2af)this['_addSuggestionMarker'](_0x25314d,_0x2808de,_0x209cb4,_0x3bcf93,T['getMultiRangeId']());return _0xe7cc9e;}['markInlineFormat'](_0x1f8a83,_0x35de0e,_0x926465=null,_0xda6600={}){if(_0x926465=_0x926465||Gt(_0x35de0e),_0x1f8a83['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xda6600['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x8d51e0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x926465,'accept');return this['forceDefaultExecution'](()=>_0x8d51e0([_0x1f8a83],_0x35de0e,_0xda6600)),null;}const _0x2f11b7=this['editor']['plugins']['get']('Users')['me'],_0x177b62=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x391328,meta:_0x5f3d0e}of this['_findSuggestions'](_0x1f8a83,'insertion'))_0x5f3d0e['isOwn']&&!_0x5f3d0e['isInsideObject']&&_0x177b62['push'](..._0x391328['getRanges']());}const _0x48a6df=function(_0x32f325,_0x22637e){const _0x50d069=[];for(const _0x222ebf of _0x22637e){const _0x5322bb=_0x32f325['getIntersection'](_0x222ebf);_0x5322bb&&_0x50d069['push'](_0x5322bb);}return _0x50d069;}(_0x1f8a83,_0x177b62),_0x203023=function(_0x19554d,_0x428a77){const _0x3d0937=[_0x19554d];for(const _0x4f287a of _0x428a77){let _0x5961a6=0x0;for(;_0x5961a6<_0x3d0937['length'];){const _0x4dbf34=_0x3d0937[_0x5961a6]['getDifference'](_0x4f287a);_0x3d0937['splice'](_0x5961a6,0x1,..._0x4dbf34),_0x5961a6+=_0x4dbf34['length'];}}return _0x3d0937;}(_0x1f8a83,_0x177b62);_0x48a6df['length']&&this['_model']['change'](()=>{for(const _0x55f955 of _0x48a6df){const _0x500d3b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x926465,'accept');this['forceDefaultExecution'](()=>_0x500d3b([_0x55f955],_0x35de0e,_0xda6600));}});for(const _0x208d8a of _0x203023){let _0x522c5e=null,_0x3cfaa8=_0x208d8a['start'],_0x4562a1=_0x208d8a['end'];for(const {suggestion:_0x49eb47,meta:_0x3e78d7}of this['_findSuggestions'](_0x208d8a,'formatInline')){if(!_0x3e78d7['isOwn'])continue;if(_0x49eb47['subType']!=_0x926465)continue;if(!Wt(_0x49eb47,_0xda6600))continue;const _0x1ab1fa=_0x49eb47['getFirstRange']();if(_0x1ab1fa['containsRange'](_0x208d8a,!0x0))return null;_0x3cfaa8=_0x3cfaa8['isBefore'](_0x1ab1fa['start'])?_0x3cfaa8:_0x1ab1fa['start'],_0x4562a1=_0x4562a1['isAfter'](_0x1ab1fa['end'])?_0x4562a1:_0x1ab1fa['end'],_0x522c5e?_0x1ab1fa['start']['isBefore'](_0x522c5e['getFirstRange']()['start'])?(_0x522c5e['removeMarkers'](),_0x522c5e=_0x49eb47):_0x49eb47['removeMarkers']():_0x522c5e=_0x49eb47;}const _0x58b99c=this['_model']['createRange'](_0x3cfaa8,_0x4562a1);if(_0x522c5e)this['_setSuggestionRange'](_0x522c5e,_0x58b99c);else{const _0x190639=_0x1e8ea4(),_0xc16892=_0x2f11b7['id'];this['_setSuggestionData']({'id':_0x190639,'type':'formatInline:'+_0x926465,'data':_0x35de0e,'createdAt':new Date(),'authorId':_0xc16892,'attributes':_0xda6600}),this['_addSuggestionMarker']('formatInline:'+_0x926465,_0x190639,_0xc16892,_0x58b99c);}}return null;}['markBlockFormat'](_0x45ca84,_0x34305b,_0x2eb08e=[],_0x4b36ba=null,_0xd89819={}){_0x34305b['formatGroupId']||(_0x34305b['formatGroupId']=_0x34305b['commandName']),_0x34305b['multipleBlocks']=_0x45ca84['is']('range'),_0x4b36ba=_0x4b36ba||Gt(_0x34305b);const _0x8e2e41=_0x2eb08e['map'](_0x5b5371=>Ht(_0x5b5371,this['_model'])),_0x4a1a34=_0x45ca84['is']('range')?_0x45ca84:Ht(_0x45ca84,this['_model']);if(this['_trackingSessionId']&&(_0xd89819['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x38c650=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b36ba,'accept');return this['forceDefaultExecution'](()=>_0x38c650([_0x4a1a34],_0x34305b,_0xd89819)),null;}_0x8e2e41['push'](_0x4a1a34);let _0x5ae622=!0x0;for(const _0x668e81 of _0x8e2e41)if(!this['_rangeIsInLocalUserInsertion'](_0x668e81)){_0x5ae622=!0x1;break;}if(_0x5ae622&&'always'!==this['_trackFormatChanges']){const _0x3c5b59=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b36ba,'accept');return this['forceDefaultExecution'](()=>_0x3c5b59([_0x4a1a34],_0x34305b,_0xd89819)),null;}let _0x15af25=null,_0x300813=_0x4a1a34['start'],_0x3f4505=_0x4a1a34['end'];for(const {suggestion:_0x258bdd,meta:_0x51a2e7}of this['_findSuggestions'](_0x4a1a34,'formatBlock')){if(!_0x51a2e7['isOwn'])continue;if(_0x51a2e7['isNextTo']||_0x51a2e7['containsRangeInObject']||_0x51a2e7['isInsideObject'])continue;if(_0x258bdd['data']['formatGroupId']!=_0x34305b['formatGroupId'])continue;if(!Wt(_0x258bdd,_0xd89819))continue;const _0x375d2c=_0x258bdd['getFirstRange']();if(_0x258bdd['subType']==_0x4b36ba){if(_0x375d2c['containsRange'](_0x4a1a34,!0x0))return null;_0x300813=_0x300813['isBefore'](_0x375d2c['start'])?_0x300813:_0x375d2c['start'],_0x3f4505=_0x3f4505['isAfter'](_0x375d2c['end'])?_0x3f4505:_0x375d2c['end'],_0x15af25?_0x375d2c['start']['isBefore'](_0x15af25['getFirstRange']()['start'])?(_0x15af25['removeMarkers'](),_0x15af25=_0x258bdd):_0x258bdd['removeMarkers']():_0x15af25=_0x258bdd;}else{const _0x38a6a3=_0x4a1a34['getIntersection'](_0x375d2c);this['_cutOutSuggestionMarker'](_0x258bdd,_0x38a6a3);}}const _0x993109=this['editor']['plugins']['get']('Users')['me'],_0x2fa504=_0x1e8ea4(),_0x101c65=_0x993109['id'];if(_0x15af25)return this['_setSuggestionRange'](_0x15af25,this['_model']['createRange'](_0x300813,_0x3f4505)),_0x15af25;{const _0x2082ae=this['_setSuggestionData']({'id':_0x2fa504,'type':'formatBlock:'+_0x4b36ba,'data':_0x34305b,'createdAt':new Date(),'authorId':_0x101c65,'attributes':_0xd89819});return this['_addSuggestionMarker']('formatBlock:'+_0x4b36ba,_0x2fa504,_0x101c65,this['_model']['createRange'](_0x300813,_0x3f4505)),_0x2082ae;}}['markMultiRangeBlockFormat'](_0x598ba2,_0x53a1c4,_0x4960ab=[],_0x332c8a=null,_0x3d2099={}){_0x53a1c4['formatGroupId']||(_0x53a1c4['formatGroupId']=_0x53a1c4['commandName']);const _0x5202b5=_0x598ba2[0x0];_0x53a1c4['multipleBlocks']=_0x5202b5['is']('range'),_0x332c8a=_0x332c8a||Gt(_0x53a1c4);const _0x2fcedb=_0x4960ab['map'](_0x302ea5=>Ht(_0x302ea5,this['_model'])),_0x39334c=_0x5202b5['is']('range')?_0x598ba2:_0x598ba2['map'](_0x50fb62=>Ht(_0x50fb62,this['_model']));if(this['_trackingSessionId']&&(_0x3d2099['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x9f7edb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x332c8a,'accept');return this['forceDefaultExecution'](()=>_0x9f7edb(_0x39334c,_0x53a1c4,_0x3d2099)),null;}_0x2fcedb['push'](..._0x39334c);let _0x20a6ee=!0x0;for(const _0x3a1d7d of _0x2fcedb)if(!this['_rangeIsInLocalUserInsertion'](_0x3a1d7d)){_0x20a6ee=!0x1;break;}if(_0x20a6ee&&'always'!==this['_trackFormatChanges']){const _0x1420a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x332c8a,'accept');return this['forceDefaultExecution'](()=>_0x1420a8(_0x39334c,_0x53a1c4,_0x3d2099)),null;}const _0x462d3f=this['editor']['plugins']['get']('Users')['me'];for(const _0x1d509f of this['getSuggestions']()){const _0x5dd354=_0x1d509f['data'];if(_0x1d509f['author']['id']!=_0x462d3f['id'])continue;if('formatBlock'!=_0x1d509f['type']||_0x5dd354['formatGroupId']!=_0x53a1c4['formatGroupId'])continue;if(!Wt(_0x1d509f,_0x3d2099))continue;const _0x584704=_0x1d509f['subType']==_0x332c8a;for(let _0x165afa=0x0;_0x165afa<_0x39334c['length'];_0x165afa++){const _0x44d681=_0x39334c[_0x165afa];for(const _0x1250e3 of _0x1d509f['getMarkers']()){const _0x48e9e2=_0x1250e3['getRange']();if(_0x44d681['isEqual'](_0x48e9e2)){_0x584704?(_0x39334c['splice'](_0x165afa,0x1),_0x165afa--):_0x1d509f['removeMarker'](_0x1250e3['name']);break;}}}}if(0x0==_0x39334c['length'])return null;const _0x44d412=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x332c8a,'join');for(const _0x289281 of this['getSuggestions']()){const _0x5c66fb=_0x289281['data'];if(_0x289281['author']['id']==_0x462d3f['id']&&('formatBlock'==_0x289281['type']&&_0x5c66fb['formatGroupId']==_0x53a1c4['formatGroupId']&&_0x289281['subType']==_0x332c8a&&Wt(_0x289281,_0x3d2099)&&(_0x44d412(_0x289281['getRanges'](),_0x39334c)||_0x44d412(_0x39334c,_0x289281['getRanges']())))){for(const _0x170bfb of _0x39334c)_0x289281['addRange'](_0x170bfb);return _0x289281;}}const _0x429a78=_0x1e8ea4(),_0x365999=_0x462d3f['id'],_0xe5bf15='formatBlock:'+_0x332c8a,_0x1148c0=this['_setSuggestionData']({'id':_0x429a78,'type':_0xe5bf15,'data':_0x53a1c4,'createdAt':new Date(),'authorId':_0x365999,'attributes':_0x3d2099});for(const _0x52fb4c of _0x39334c)this['_addSuggestionMarker'](_0xe5bf15,_0x429a78,_0x365999,_0x52fb4c,T['getMultiRangeId']());return _0x1148c0;}['markDeletion'](_0x49b11e,_0x19d44b=null,_0x4fb192={}){if(_0x49b11e['isCollapsed'])return null;const _0x3c23c1=this['editor']['plugins']['get']('Users')['me'],_0x1b4427=new _0x4ee832(_0x49b11e['start'],_0x49b11e['end']);this['_trackingSessionId']&&(_0x4fb192['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3b275f,meta:_0x685cb6}of this['_findSuggestions'](_0x1b4427,'insertion'))if(_0x685cb6['isOwn']&&!_0x685cb6['isNextTo']){if(_0x3b275f['isMultiRange']){const _0xbb640a=_0x3b275f['getRanges']()['filter'](_0x4441dc=>'$graveyard'!=_0x4441dc['root']['rootName']);_0xbb640a['every'](_0x7b6c52=>_0x1b4427['containsRange'](_0x7b6c52,!0x0))&&_0x3b275f['discard']();if(_0xbb640a['some'](_0x1bfd34=>_0x1bfd34['containsRange'](_0x1b4427,!0x0))){const _0x45ca81=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19d44b,'accept');return this['forceDefaultExecution'](()=>_0x45ca81([_0x1b4427],null,_0x4fb192)),null;}}else{const _0xfdbc49=_0x1b4427['getIntersection'](_0x3b275f['getFirstRange']());null!==_0xfdbc49&&_0x3b275f['_onDiscard']([_0xfdbc49],null,_0x4fb192);}}if(_0x1b4427['detach'](),_0x1b4427['isCollapsed']||'$graveyard'==_0x1b4427['root']['rootName'])return null;let _0x120e72=null,_0x29cc2a=_0x1b4427['start'],_0xf52704=_0x1b4427['end'];const _0x5337e2=this['_findSuggestions'](_0x1b4427,'deletion');for(const {suggestion:_0x373789,meta:_0x4a3b4f}of _0x5337e2){const _0x1bb378=this['_model']['createRange'](_0x29cc2a,_0xf52704);if(_0x4a3b4f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a3b4f['containsRangeInObject']&&!_0x4a3b4f['isInsideObject'])){if(_0x373789['isMultiRange']){if(!Wt(_0x373789,_0x4fb192))continue;let _0x533a2b=!0x0;for(const _0x217169 of _0x373789['getRanges']()){if(_0x217169['containsRange'](_0x1bb378,!0x0))return _0x373789;_0x1bb378['containsRange'](_0x217169)||(_0x533a2b=!0x1);}_0x533a2b&&_0x373789['discard']();}else{const _0x4cf7cb=_0x373789['getFirstRange']();if(_0x4cf7cb['containsRange'](_0x1bb378,!0x0))return _0x373789;if(!Wt(_0x373789,_0x4fb192)){_0x1bb378['containsRange'](_0x4cf7cb)?_0x373789['removeMarkers']():_0x4cf7cb['containsPosition'](_0x29cc2a)?_0x29cc2a=_0x4cf7cb['end']:_0x4cf7cb['containsPosition'](_0xf52704)&&(_0xf52704=_0x4cf7cb['start']);continue;}_0x29cc2a=_0x29cc2a['isBefore'](_0x4cf7cb['start'])?_0x29cc2a:_0x4cf7cb['start'],_0xf52704=_0xf52704['isAfter'](_0x4cf7cb['end'])?_0xf52704:_0x4cf7cb['end'],_0x4fb192=Object['assign']({},_0x373789['attributes']),_0x120e72?_0x4cf7cb['start']['isBefore'](_0x120e72['getFirstRange']()['start'])?(_0x120e72['removeMarkers'](),_0x120e72=_0x373789):_0x373789['removeMarkers']():_0x120e72=_0x373789;}}}if(_0x120e72)return this['_setSuggestionRange'](_0x120e72,this['_model']['createRange'](_0x29cc2a,_0xf52704)),_0x120e72;{const _0x3ba3ed=_0x1e8ea4(),_0x4760a8=this['_model']['createRange'](_0x29cc2a,_0xf52704),_0x5e8cf6=_0x3c23c1['id'],_0x3ce59b=_0x19d44b?'deletion:'+_0x19d44b:'deletion',_0x193f55=this['_setSuggestionData']({'id':_0x3ba3ed,'type':_0x3ce59b,'createdAt':new Date(),'authorId':_0x5e8cf6,'attributes':_0x4fb192});return this['_addSuggestionMarker'](_0x3ce59b,_0x3ba3ed,_0x5e8cf6,_0x4760a8),_0x193f55;}}['markMultiRangeDeletion'](_0x5a7f41,_0x360153='multi',_0x1a3a2f={}){const _0x246911=this['editor']['plugins']['get']('Users')['me'],_0x399427=_0x5a7f41['map'](_0x23c74a=>new _0x4ee832(_0x23c74a['start'],_0x23c74a['end'])),_0x44a101=new Set();this['_trackingSessionId']&&(_0x1a3a2f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1275aa,meta:_0x5f5076}of this['_findSuggestions'](_0x399427,'insertion'))_0x5f5076['isOwn']&&!_0x5f5076['isNextTo']&&_0x44a101['add'](_0x1275aa);for(const _0xea8de4 of _0x44a101)if(_0xea8de4['isMultiRange']){const _0x47a160=_0xea8de4['getRanges']();(!_0xea8de4['attributes']||!_0xea8de4['attributes']['skipNestingCheck'])&&(_0x47a160['every'](_0x1b5cc5=>_0x399427['some'](_0x504ce1=>_0x504ce1['containsRange'](_0x1b5cc5,!0x0)))&&_0xea8de4['discard']());if(_0x399427['every'](_0x3d18d6=>_0x47a160['some'](_0x561834=>_0x561834['containsRange'](_0x3d18d6,!0x0)))){const _0x321fbd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x360153,'accept');return this['forceDefaultExecution'](()=>_0x321fbd(_0x5a7f41,null,_0x1a3a2f)),null;}}else{const _0x5ddeac=_0xea8de4['getFirstRange']();_0x399427['some'](_0xb3ab2b=>_0xb3ab2b['containsRange'](_0x5ddeac,!0x0))&&_0xea8de4['discard']();if(_0x399427['every'](_0x5a93f4=>_0x5ddeac['containsRange'](_0x5a93f4,!0x0))){const _0x5cf445=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x360153,'accept');return this['forceDefaultExecution'](()=>_0x5cf445(_0x399427,null,_0x1a3a2f)),null;}}const _0x2bee81=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x360153,'join');let _0x2f5f65=null;for(const _0x51ffb5 of this['getSuggestions']())if(_0x51ffb5['author']['id']==_0x246911['id']&&_0x51ffb5['isInContent']&&'deletion'==_0x51ffb5['type']&&_0x51ffb5['subType']==_0x360153&&Wt(_0x51ffb5,_0x1a3a2f)&&(_0x2bee81(_0x51ffb5['getRanges'](),_0x399427)||_0x2bee81(_0x399427,_0x51ffb5['getRanges']()))){if(_0x2f5f65){if(_0x51ffb5['commentThread']&&_0x51ffb5['commentThread']['length'])continue;for(const _0x579b26 of _0x51ffb5['getRanges']())_0x2f5f65['isIntersectingWithRange'](_0x579b26)||_0x2f5f65['addRange'](_0x579b26);_0x51ffb5['removeMarkers']();}else{_0x2f5f65=_0x51ffb5;for(const _0x200fe5 of _0x399427)_0x51ffb5['isIntersectingWithRange'](_0x200fe5)||_0x51ffb5['addRange'](_0x200fe5);}}if(_0x2f5f65)return _0x2f5f65;_0x44a101['clear']();for(const {suggestion:_0x3a458d,meta:_0x1a41d0}of this['_findSuggestions'](_0x399427,'deletion'))_0x1a41d0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1a41d0['containsRangeInObject']&&!_0x1a41d0['isInsideObject'])&&Wt(_0x3a458d,_0x1a3a2f)&&_0x44a101['add'](_0x3a458d);for(const _0x5ba2eb of _0x44a101){const _0x57b837=_0x5ba2eb['getRanges']();if(!_0x1a3a2f||!_0x1a3a2f['skipNestingCheck']){if(_0x399427['every'](_0x50b8cd=>_0x57b837['some'](_0x5684f6=>_0x5684f6['containsRange'](_0x50b8cd,!0x0))))return _0x5ba2eb;}(!_0x5ba2eb['attributes']||!_0x5ba2eb['attributes']['skipNestingCheck'])&&(_0x57b837['every'](_0x23803d=>_0x399427['some'](_0x1193dc=>_0x1193dc['containsRange'](_0x23803d,!0x0)))&&_0x5ba2eb['discard']());}const _0x4959ce=_0x1e8ea4(),_0x2529f3=_0x246911['id'],_0x2029e4='deletion:'+_0x360153,_0x4fac3b=this['_setSuggestionData']({'id':_0x4959ce,'type':_0x2029e4,'createdAt':new Date(),'authorId':_0x2529f3,'attributes':_0x1a3a2f});for(const _0x5dbdb8 of _0x399427)_0x5dbdb8['detach'](),_0x5dbdb8['isCollapsed']||'$graveyard'==_0x5dbdb8['root']['rootName']||this['_addSuggestionMarker'](_0x2029e4,_0x4959ce,_0x2529f3,_0x5dbdb8,T['getMultiRangeId']());return _0x4fac3b;}['markAttributeChange'](_0x1ebfb5,_0x15e3c9,_0x141375,_0xfac1bc,_0x48a20e){if(_0x1ebfb5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x63b871=this['editor']['plugins']['get']('Users')['me']['id'],_0x383174=Array['from'](this['_suggestions']['values']())['filter'](_0xd829e7=>'attribute'==_0xd829e7['type']&&_0xd829e7['data']['key']==_0x15e3c9&&_0xd829e7['isIntersectingWithRange'](_0x1ebfb5));if(this['_trackingSessionId']&&(_0x48a20e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1115da=this['_findSuggestions'](_0x1ebfb5,'insertion')['filter'](({meta:_0x59ff4f})=>_0x59ff4f['isOwn']&&!_0x59ff4f['isInsideObject']&&!_0x59ff4f['isNextTo'])['map'](({suggestion:_0x445ad5})=>_0x445ad5);_0x383174['unshift'](..._0x1115da);}const _0x46d8e9=new Map([[_0x1ebfb5,_0x141375]]);for(const _0x3d58ab of _0x383174){const _0x7ccec3='attribute'==_0x3d58ab['type']?_0x3d58ab['data']['oldValue']:void 0x0,_0x2d51a9=_0x3d58ab['getFirstRange'](),_0x5eec52=Array['from'](_0x46d8e9['keys']())['find'](_0x8e5b40=>_0x8e5b40['isIntersecting'](_0x2d51a9));if(!_0x5eec52)continue;const _0x566a40=_0x5eec52['getDifference'](_0x2d51a9);this['_isBlockAttribute'](_0x15e3c9)&&'insertion'==_0x3d58ab['type']&&0x0!=_0x566a40['length']||(_0x46d8e9['delete'](_0x5eec52),_0x566a40['forEach'](_0xba979a=>{_0x46d8e9['set'](_0xba979a,_0x141375);}),'insertion'!=_0x3d58ab['type']&&_0x7ccec3!=_0xfac1bc&&_0x46d8e9['set'](_0x5eec52['getIntersection'](_0x2d51a9),_0x7ccec3));}const _0x20838e=[];for(const [_0x2ced43,_0x3f4bbd]of _0x46d8e9){const _0xa6f91a=_0x1e8ea4(),_0x7589a3={'key':_0x15e3c9,'oldValue':_0x3f4bbd,'newValue':_0xfac1bc};_0x15e3c9['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':_0x15e3c9});const _0x1087cf=('attribute:'+(_0x15e3c9+'|'+Gt({'newValue':_0xfac1bc})))['substring'](0x0,0x3c),_0x196047=this['_setSuggestionData']({'id':_0xa6f91a,'type':_0x1087cf,'data':_0x7589a3,'createdAt':new Date(),'authorId':_0x63b871,'attributes':_0x48a20e});_0x20838e['push'](_0x196047),this['_addSuggestionMarker'](_0x1087cf,_0xa6f91a,_0x63b871,_0x2ced43);}return _0x20838e;}['enableDefaultAttributesIntegration'](_0x3c8f58){this['enableCommand'](_0x3c8f58,(_0x513677,..._0x2ece7e)=>{this['recordAttributeChanges'](()=>{_0x513677(..._0x2ece7e);});});}['registerBlockAttribute'](_0x18f956){this['_blockAttributeKeys']['add'](_0x18f956);}['registerInlineAttribute'](_0x4755d1){this['_inlineAttributeKeys']['add'](_0x4755d1);}['startTrackingSession'](_0x1fa757){return this['_trackingSessionId']=void 0x0!==_0x1fa757?_0x1fa757:_0x1e8ea4(),this['_trackingSessionId'];}['_getAttributeKey'](_0xafd54e){return'attribute'==_0xafd54e['type']?_0xafd54e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3872c9,_0x3d9b30){const _0x4906a=_0x3872c9['getFirstMarker']();this['_model']['change'](_0x14dacb=>{_0x14dacb['updateMarker'](_0x4906a,{'range':_0x3d9b30});});}['_addThreadToSuggestion'](_0x369fde){const _0x65c1fc=_0x369fde['id'],_0xd29ea0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x65c1fc)||this['_commentsRepository']['addCommentThread']({'channelId':_0xd29ea0,'threadId':_0x65c1fc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x137663=this['_commentsRepository']['getCommentThread'](_0x65c1fc);_0x137663['unbind']('isRemovable'),_0x137663['isRemovable']=!0x1,_0x369fde['commentThread']=_0x137663;}['_checkSuggestionCorrectness'](_0x134ada,_0x4f1817,_0x2f2f94,_0x22e1e9){if(_0x134ada['type']!=_0x4f1817||_0x134ada['subType']!=_0x2f2f94||_0x134ada['creator']['id']!=_0x22e1e9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2ee34d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3ee3c9,_0x1b022b){const _0x40e2e9=_0x3ee3c9['getFirstRange']();if(_0x1b022b['isEqual'](_0x40e2e9))_0x3ee3c9['removeMarkers']();else{if(_0x40e2e9['containsRange'](_0x1b022b)){const _0x1c2377=this['_model']['createPositionAt'](_0x1b022b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3ee3c9,this['_model']['createRange'](_0x40e2e9['start'],_0x1c2377));const _0x5787b9=_0x1e8ea4(),_0x4858dc=_0x3ee3c9['creator']['id'],_0x24e11c=_0x3ee3c9['type']+':'+_0x3ee3c9['subType'];this['_setSuggestionData']({'id':_0x5787b9,'type':_0x24e11c,'createdAt':new Date(),'authorId':_0x4858dc,'data':_0x3ee3c9['data'],'attributes':_0x3ee3c9['attributes']});const _0x5c8f1d=this['_model']['createPositionAt'](_0x1b022b['end']['parent'],'after'),_0x4b039c=this['_model']['createRange'](_0x5c8f1d,_0x40e2e9['end']);this['_addSuggestionMarker'](_0x24e11c,_0x5787b9,_0x4858dc,_0x4b039c);}else{if(_0x40e2e9['containsPosition'](_0x1b022b['start'])){const _0x3ddb4f=this['_model']['createPositionAt'](_0x1b022b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3ee3c9,this['_model']['createRange'](_0x40e2e9['start'],_0x3ddb4f));}else{const _0x3374fe=this['_model']['createPositionAt'](_0x1b022b['end']['parent'],'after');this['_setSuggestionRange'](_0x3ee3c9,this['_model']['createRange'](_0x3374fe,_0x40e2e9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x46f43c){for(const {suggestion:_0x107e35,meta:_0x48d7ba}of this['_findSuggestions'](_0x46f43c,'insertion')){if(!_0x48d7ba['isOwn'])continue;const _0x3b79da=_0x107e35['getRanges']();for(const _0x564bbd of _0x3b79da)if(!_0x46f43c['getDifference'](_0x564bbd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x45dff9){const _0x4af128=this['editor']['plugins']['get']('Users')['getUser'](_0x45dff9);if(!_0x4af128)throw new _0x2ee34d('track-changes-user-not-found',this);return _0x4af128;}['_getExternalAuthor'](_0x78ffb0){const _0x380cb1=this['editor']['plugins']['get']('Users'),_0x323c47=_0xf57b3c('external:'+_0x78ffb0),_0x54138e=_0x380cb1['getUser'](_0x323c47);return _0x54138e||_0x380cb1['addUser']({'id':_0x323c47,'name':_0x78ffb0});}['_createSuggestion'](_0xe908f5,_0x227bfc,_0x40161c,_0x26e678,_0x490254,_0x4d2f75){const _0x21cae5=this['_getAuthorFromId'](_0x26e678),_0x4ba5aa=this['_suggestionFactory']['buildSuggestion'](_0xe908f5,_0x227bfc,_0x40161c,_0x21cae5,_0x490254,_0x34d54e=>{this['_updateSuggestionData'](_0x40161c,{'attributes':_0x34d54e});const _0x534652=this['getSuggestion'](_0x40161c);this['_joinWithAdjacentSuggestions'](new Set([_0x534652])),this['_refreshSuggestionsChain'](new Set([_0x534652]));},_0x4d2f75);return this['listenTo'](_0x4ba5aa,'accept',()=>{this['_updateSuggestionData'](_0x40161c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4ba5aa,'discard',()=>{this['_updateSuggestionData'](_0x40161c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x40161c,_0x4ba5aa),this['_suggestionState']['set'](_0x4ba5aa,'notReady'),_0x4ba5aa;}['_splitMarkerName'](_0x2f58e0){const _0x5ab78f=_0x2f58e0['split'](':');return{'group':_0x5ab78f[0x0],'type':_0x5ab78f[0x1],'subType':_0x5ab78f['length']>=0x5?_0x5ab78f[0x2]:null,'id':_0x5ab78f['length']<0x5?_0x5ab78f[0x2]:_0x5ab78f[0x3],'authorId':_0x5ab78f['length']<0x5?_0x5ab78f[0x3]:_0x5ab78f[0x4],'markerCount':0x6==_0x5ab78f['length']?_0x5ab78f[0x5]:null};}['_breakSuggestionMarker'](_0x3d1a48,_0x40bc01,_0x53d851){const _0x4a2b09=_0x3d1a48['getFirstRange'](),_0xf6930d=_0x4a2b09['start'],_0x3f12f4=_0x4a2b09['end'];this['_setSuggestionRange'](_0x3d1a48,this['_model']['createRange'](_0xf6930d,_0x40bc01));const _0x2e9ece=_0x1e8ea4(),_0x1c5cec=_0x3d1a48['creator']['id'],_0x569f62=_0x3d1a48['type']+(_0x3d1a48['subType']?':'+_0x3d1a48['subType']:'');this['_setSuggestionData']({'id':_0x2e9ece,'type':_0x569f62,'createdAt':new Date(),'authorId':_0x1c5cec,'originalSuggestionId':_0x3d1a48['_originalSuggestionId']||_0x3d1a48['id'],'attributes':_0x3d1a48['attributes'],'data':_0x3d1a48['data']});const _0x3ea6bc=this['_getAttributeKey'](_0x3d1a48);('formatBlock'==_0x3d1a48['type']||_0x3ea6bc&&this['_isBlockAttribute'](_0x3ea6bc))&&(_0x53d851=this['_model']['createPositionBefore'](_0x53d851['parent'])),this['_addSuggestionMarker'](_0x569f62,_0x2e9ece,_0x1c5cec,this['_model']['createRange'](_0x53d851,_0x3f12f4));}['_findSuggestions'](_0x4dad45,_0x598de=null){const _0x4c59ad=[],_0x40d7e2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4dad45)||(_0x4dad45=[_0x4dad45]);for(const _0x2ffd9e of this['getSuggestions']()){if(!_0x2ffd9e['isInContent'])continue;if(_0x598de&&_0x2ffd9e['type']!=_0x598de)continue;let _0x55ccf6=!0x1;for(const _0x33aefa of _0x2ffd9e['getRanges']()){for(const _0x5da775 of _0x4dad45){const _0x139cf4=_0x5da775['start']['isEqual'](_0x33aefa['end'])||_0x5da775['end']['isEqual'](_0x33aefa['start']);if(_0x139cf4||_0x5da775['getIntersection'](_0x33aefa)){const _0xc3bcf8=_0x5da775['containsRange'](_0x33aefa)&&Vt(this['_model']['schema'],_0x33aefa['start'],_0x5da775),_0xaa3c27=_0x33aefa['containsRange'](_0x5da775)&&Vt(this['_model']['schema'],_0x5da775['start'],_0x33aefa);_0x4c59ad['push']({'suggestion':_0x2ffd9e,'meta':{'isOwn':_0x40d7e2==_0x2ffd9e['author'],'isNextTo':_0x139cf4,'isInsideObject':_0xc3bcf8,'containsRangeInObject':_0xaa3c27}}),_0x55ccf6=!0x0;break;}}if(_0x55ccf6)break;}}return _0x4c59ad;}['_addSuggestionMarker'](_0x50b281,_0x5be73a,_0x2df23e,_0x546dd4,_0x6cec4f){this['_model']['change'](_0x1acb9a=>{let _0x1a3fcf='suggestion:'+_0x50b281+':'+_0x5be73a+':'+_0x2df23e;_0x6cec4f&&(_0x1a3fcf=_0x1a3fcf+':'+_0x6cec4f),_0x1acb9a['addMarker'](_0x1a3fcf,{'range':_0x546dd4,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x348705){const _0x3c9740=_0x348705['previous'],_0x5adedd=_0x348705['next'];_0x348705['previous']=null,_0x348705['next']=null,null!=_0x3c9740&&_0x3c9740['next']==_0x348705&&(_0x3c9740['next']=_0x5adedd),null!=_0x5adedd&&_0x5adedd['previous']==_0x348705&&(_0x5adedd['previous']=_0x3c9740),'ready'==this['_suggestionState']['get'](_0x348705)&&(this['_suggestionState']['set'](_0x348705,'removed'),this['fire']('suggestionUnloaded',_0x348705,_0x3c9740,_0x5adedd));}['_setSuggestionData'](_0x2cb927){const _0x97a8e8=_0x2cb927['id'],_0x25beca=this['addSuggestionData'](_0x2cb927);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x585fe3=this['editor']['plugins']['get']('PendingActions'),_0x2f6662=_0x25beca['hasComments'],_0x12b7a3=_0x25beca['subType']?_0x25beca['type']+':'+_0x25beca['subType']:_0x25beca['type'],_0x5a2dd6=this['editor']['locale'],_0x19661a=_0x585fe3['add'](o(_0x5a2dd6,'PENDING_ACTION_SUGGESTION')),_0xf73734={'id':_0x97a8e8,'type':_0x12b7a3,'hasComments':_0x2f6662,'data':_0x2cb927['data']||null,'originalSuggestionId':_0x2cb927['originalSuggestionId']||null,'attributes':_0x25beca['attributes']};this['_adapter']['addSuggestion'](_0xf73734)['then'](_0x1aa79e=>{_0x25beca['_saved']=!0x0,_0x585fe3['remove'](_0x19661a),_0x1aa79e&&_0x1aa79e['createdAt']&&(this['_suggestions']['get'](_0x97a8e8)['createdAt']=_0x1aa79e['createdAt']);})['catch'](_0x13d354=>{throw _0x14733b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x25beca['discard']();}),_0x25beca['stopListening'](),this['_suggestions']['delete'](_0x25beca['id']),this['_suggestionState']['delete'](_0x25beca),_0x13d354;});}return _0x25beca;}['_isBlockAttribute'](_0x2ef519){return this['_blockAttributeKeys']['has'](_0x2ef519);}['_updateSuggestionData'](_0x2dc2d9,_0x51966e){const _0x4d3884=this['editor']['plugins']['get']('PendingActions'),_0x165a82=this['getSuggestion'](_0x2dc2d9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x165a82['_saved']){const _0x2b7570=_0x4d3884['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2dc2d9,_0x51966e)['then'](()=>{_0x4d3884['remove'](_0x2b7570);});}else _0x165a82['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2dc2d9,_0x51966e);});}}['_getSuggestionData'](_0x4696c8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2ee34d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4696c8);}['_handleNewSuggestionMarker'](_0x28f5b2){const {id:_0x2a62b2,type:_0x4b214a,subType:_0x11dc61,authorId:_0x1c9905}=this['_splitMarkerName'](_0x28f5b2),_0x14492a=this['_suggestions']['get'](_0x2a62b2)||this['_createSuggestion'](_0x4b214a,_0x11dc61,_0x2a62b2,_0x1c9905,{});switch(this['_checkSuggestionCorrectness'](_0x14492a,_0x4b214a,_0x11dc61,_0x1c9905),this['_suggestionState']['get'](_0x14492a)){case'notReady':this['_getSuggestionData'](_0x2a62b2)['then'](_0x11b6e0=>{let _0x132196=Promise['resolve']();_0x11b6e0['hasComments']&&(_0x132196=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2a62b2})),_0x132196['then'](()=>{this['addSuggestionData'](_0x11b6e0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x14492a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2a62b2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x14492a,'ready'),this['fire']('suggestionLoaded',_0x14492a);break;case'ready':this['fire']('suggestionChanged',_0x14492a);}return _0x14492a['addMarkerName'](_0x28f5b2),_0x14492a;}['_refreshSuggestionsChain'](_0x4eccdb){const _0x405424=Array['from'](_0x4eccdb),_0x37a652=_0x405424['filter'](_0xe49f4f=>'attribute'==_0xe49f4f['type']);this['_refreshAttributeSuggestionsChain'](_0x37a652);const _0x918f1a=_0x405424['filter'](_0x5b6171=>!_0x5b6171['isMultiRange']&&'attribute'!=_0x5b6171['type']),_0x30b723=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b2d59=>!_0x1b2d59['isMultiRange']&&'attribute'!=_0x1b2d59['type']),_0x359f1e=_0x30b723['filter'](_0x12eb5f=>!_0x4eccdb['has'](_0x12eb5f)),_0x366e62=new Map(_0x30b723['map'](_0x410c68=>[_0x410c68,this['_suggestionFactory']['getSuggestionCallback'](_0x410c68['type'],_0x410c68['subType'],'chain')])),_0x256e66=new Map(_0x30b723['map'](_0x1bd84a=>[_0x1bd84a,_0x1bd84a['getFirstRange']()])),_0x581edb=new Set(),_0x153ba8=new Set();for(let _0x3c44c8=0x0;_0x3c44c8<_0x918f1a['length'];_0x3c44c8++)_0x404db2(_0x918f1a[_0x3c44c8],_0x918f1a,_0x3c44c8+0x1);for(let _0x5eddce=0x0;_0x5eddce<_0x918f1a['length'];_0x5eddce++)_0x404db2(_0x918f1a[_0x5eddce],_0x359f1e,0x0);const _0x1d38b3=new Set();for(let _0x5cff5a=0x0;_0x5cff5a<_0x918f1a['length'];_0x5cff5a++){const _0x2051e3=_0x918f1a[_0x5cff5a];!_0x153ba8['has'](_0x2051e3)&&_0x2051e3['previous']&&(_0x1d38b3['add'](_0x2051e3['previous']),_0x2051e3['previous']['next']===_0x2051e3&&(_0x2051e3['previous']['next']=null),_0x2051e3['previous']=null),!_0x581edb['has'](_0x2051e3)&&_0x2051e3['next']&&(_0x1d38b3['add'](_0x2051e3['next']),_0x2051e3['next']['previous']===_0x2051e3&&(_0x2051e3['next']['previous']=null),_0x2051e3['next']=null);}function _0x404db2(_0x2c3218,_0x215bab,_0x4c37cc){for(let _0x2a7eee=_0x4c37cc;_0x2a7eee<_0x215bab['length'];_0x2a7eee++){const _0x2d7102=_0x5a3dc9(_0x2c3218,_0x215bab[_0x2a7eee]);_0x2d7102&&(_0x2d7102[0x0]['next']=_0x2d7102[0x1],_0x2d7102[0x1]['previous']=_0x2d7102[0x0],_0x581edb['add'](_0x2d7102[0x0]),_0x153ba8['add'](_0x2d7102[0x1]));}}function _0x5a3dc9(_0x2d1285,_0x536cb3){if(_0x2d1285['author']['id']!==_0x536cb3['author']['id'])return null;const _0x598564=_0x366e62['get'](_0x2d1285)(_0x2d1285,_0x536cb3,_0x256e66['get'](_0x2d1285),_0x256e66['get'](_0x536cb3));if(!_0x598564)return null;return _0x366e62['get'](_0x536cb3)(_0x2d1285,_0x536cb3,_0x256e66['get'](_0x2d1285),_0x256e66['get'](_0x536cb3))?_0x598564[0x1]['commentThread']&&_0x598564[0x1]['commentThread']['length']?null:_0x598564:null;}_0x1d38b3['size']&&this['_refreshSuggestionsChain'](_0x1d38b3);}['_refreshAttributeSuggestionsChain'](_0xe7956f){if(0x0==_0xe7956f['length'])return;const _0x176cbf=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51bdb3=>'attribute'==_0x51bdb3['type']&&_0x51bdb3['_isDataLoaded']),_0x1f2b34=[],_0x44b388=new Map();for(const _0x319613 of _0x176cbf){const _0x12a88a=_0xf57b3c(_0x319613['attributes']);_0x44b388['has'](_0x12a88a)||(_0x44b388['set'](_0x12a88a,_0x1f2b34['length']),_0x1f2b34['push']([]));const _0x2a8398=_0x44b388['get'](_0x12a88a);_0x1f2b34[_0x2a8398]['push'](_0x319613);}!(function(){_0x1f2b34['sort']((_0x338a4e,_0x8867db)=>{const _0x2fa00c=_0x338a4e[0x0]['createdAt'],_0x1e5249=_0x8867db[0x0]['createdAt'];return _0x2fa00c==_0x1e5249?_0x338a4e[0x0]['attributes']['groupId']<_0x8867db[0x0]['attributes']['groupId']?-0x1:0x1:_0x2fa00c<_0x1e5249?-0x1:0x1;});for(const _0x2990cd of _0x1f2b34)_0x2990cd['sort']((_0x2349cb,_0x33a21b)=>_0x2349cb['id']<_0x33a21b['id']?-0x1:0x1);}());for(let _0x306968=0x0;_0x306968<_0x1f2b34['length'];_0x306968++){if(0x0==_0x1f2b34[_0x306968]['length'])continue;const _0x29dd3f=[];for(let _0x43d5a1=_0x306968+0x1;_0x43d5a1<_0x1f2b34['length'];_0x43d5a1++)0x0!=_0x1f2b34[_0x43d5a1]['length']&&_0x2ea35e(_0x1f2b34[_0x306968],_0x1f2b34[_0x43d5a1])&&_0x29dd3f['push'](_0x43d5a1);for(const _0x41b0d4 of _0x29dd3f)_0x1f2b34[_0x306968]=_0x1f2b34[_0x306968]['concat'](_0x1f2b34[_0x41b0d4]),_0x1f2b34[_0x41b0d4]=[];}for(const _0x4e9270 of _0x1f2b34)for(let _0x2a9fca=0x0;_0x2a9fca<_0x4e9270['length'];_0x2a9fca++){const _0xd06446=_0x4e9270[_0x2a9fca+0x1]||null;_0x4e9270[_0x2a9fca]['next']!==_0xd06446&&(_0x4e9270[_0x2a9fca]['next']=_0xd06446);}for(const _0x590367 of _0x1f2b34)for(let _0x11c96c=0x0;_0x11c96c<_0x590367['length'];_0x11c96c++){const _0xc3f73e=_0x590367[_0x11c96c-0x1]||null;_0x590367[_0x11c96c]['previous']!==_0xc3f73e&&(_0x590367[_0x11c96c]['previous']=_0xc3f73e);}function _0x2ea35e(_0xdfed53,_0x9fbbce){if(_0xdfed53[0x0]['attributes']['groupId']!==_0x9fbbce[0x0]['attributes']['groupId']&&_0xdfed53[0x0]['author']!==_0x9fbbce[0x0]['author'])return!0x1;if(!function(_0x4f6ac1,_0x535b15){if(!_0x4f6ac1['hasComments']&&!_0x535b15['hasComments'])return!0x0;if(_0x4f6ac1['hasComments']&&_0x535b15['hasComments'])return!0x1;if(_0x4f6ac1['hasComments']&&_0x535b15['createdAt']<_0x4f6ac1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x535b15['hasComments']&&_0x4f6ac1['createdAt']<_0x535b15['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xdfed53[0x0],_0x9fbbce[0x0]))return!0x1;const _0x28c004=Rt(_0xdfed53[0x0]['attributes'],['groupId','trackingSessionId']),_0x537da7=Rt(_0x9fbbce[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x163c93(_0x28c004,_0x537da7))return!0x1;if(_0xdfed53[0x0]['attributes']['groupId']==_0x9fbbce[0x0]['attributes']['groupId'])return!0x0;if(_0xdfed53[0x0]['attributes']['trackingSessionId']!==_0x9fbbce[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xdfed53['every'](_0x2a42d7=>_0x9fbbce['some'](_0x56eea8=>_0x2a42d7['getFirstRange']()['isEqual'](_0x56eea8['getFirstRange']())))&&_0x9fbbce['every'](_0x1b666b=>_0xdfed53['some'](_0x254826=>_0x1b666b['getFirstRange']()['isEqual'](_0x254826['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1dbdda){const _0x3707d7=Array['from'](_0x1dbdda),_0x4fd1c5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x44479c=_0x4fd1c5['filter'](_0x26b33a=>!_0x1dbdda['has'](_0x26b33a)),_0x392834=new Map(_0x3707d7['map'](_0x3ac982=>[_0x3ac982,this['_suggestionFactory']['getSuggestionCallback'](_0x3ac982['type'],_0x3ac982['subType'],'join')])),_0x30e71a=new Map(_0x4fd1c5['map'](_0x36a696=>[_0x36a696,_0x36a696['getRanges']()]));for(let _0x481e24=0x0;_0x481e24<_0x3707d7['length'];_0x481e24++){if(_0x4af0d3(this,_0x3707d7[_0x481e24],_0x3707d7,_0x481e24+0x1))return!0x0;}for(let _0x448a8a=0x0;_0x448a8a<_0x3707d7['length'];_0x448a8a++){if(_0x4af0d3(this,_0x3707d7[_0x448a8a],_0x44479c,0x0))return!0x0;}return!0x1;function _0x4af0d3(_0x5e5468,_0x31d046,_0x1ca084,_0x528a0f){for(let _0x30b228=_0x528a0f;_0x30b228<_0x1ca084['length'];_0x30b228++){const _0x5bc9cf=_0x1ca084[_0x30b228];if(_0x5bc9cf['type']!==_0x31d046['type']||_0x5bc9cf['author']['id']!==_0x31d046['author']['id']||_0x5bc9cf['subType']!==_0x31d046['subType'])continue;if(!zt(_0x31d046,_0x5bc9cf))continue;if('attribute'==_0x31d046['type']&&_0x31d046['data']['oldValue']!=_0x5bc9cf['data']['oldValue'])continue;if('attribute'==_0x31d046['type']&&_0x5e5468['_isBlockAttribute'](_0x31d046['data']['key']))continue;if('formatBlock'==_0x31d046['type']){const _0xdcc96b=_0x5e5468['editor']['model'],_0x3fc997=_0x31d046['getContainedElement']();if(_0x3fc997&&(_0xdcc96b['schema']['isObject'](_0x3fc997)||_0xdcc96b['schema']['isLimit'](_0x3fc997)))continue;}const _0x31040b=_0x392834['get'](_0x31d046),_0x83906a=_0x30e71a['get'](_0x31d046),_0xd2436c=_0x30e71a['get'](_0x5bc9cf),_0x51a75f=_0x31d046['commentThread']&&_0x31d046['commentThread']['length'],_0x2fa852=_0x5bc9cf['commentThread']&&_0x5bc9cf['commentThread']['length'];if(!_0x51a75f&&_0x31040b(_0xd2436c,_0x83906a))return _0x5e5468['_joinSuggestions'](_0x5bc9cf,_0x31d046),_0x30e71a['delete'](_0x31d046),!0x0;if(!_0x2fa852&&_0x31040b(_0x83906a,_0xd2436c))return _0x5e5468['_joinSuggestions'](_0x31d046,_0x5bc9cf),_0x30e71a['delete'](_0x5bc9cf),!0x0;}return!0x1;}}['_joinSuggestions'](_0x7a3edc,_0x257792){if(_0x7a3edc['isMultiRange']){for(const _0x841cb of _0x257792['getRanges']())_0x7a3edc['addRange'](_0x841cb);}else{const _0x5dbc53=_0x257792['getFirstRange']()['end'];this['_setSuggestionRange'](_0x7a3edc,this['_model']['createRange'](_0x7a3edc['getFirstRange']()['start'],_0x5dbc53));}_0x257792['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5e7c26,_0x1ad196,_0x4e75fa){const _0x77112c=_0x5e7c26['startsWith']('format')||_0x5e7c26['startsWith']('attribute')?'FORMATTING':_0x5e7c26['toUpperCase']();return o(this['editor']['locale'],_0x1ad196+'_'+_0x77112c+'_SUGGESTION_ANNOUNCEMENT',_0x4e75fa);}['_initAriaMarkerChangeAnnouncements'](){const _0x50f606=this['editor'];if(!_0x50f606['ui'])return;const {ariaLiveAnnouncer:_0x27807c}=_0x50f606['ui'];_0x47d843(this['_model'],({left:_0x1f203,entered:_0x56de3f})=>{for(const _0x53fd00 of _0x1f203){const {group:_0x332ed8,type:_0x280958}=this['_splitMarkerName'](_0x53fd00['name']);if('suggestion'===_0x332ed8){_0x27807c['announce'](this['_getMarkerAnnouncementText'](_0x280958,'LEAVE'));break;}}for(const _0x4a4f2b of _0x56de3f){const {group:_0x271c8e,type:_0xdd65a}=this['_splitMarkerName'](_0x4a4f2b['name']);if('suggestion'===_0x271c8e){_0x27807c['announce'](this['_getMarkerAnnouncementText'](_0xdd65a,'ENTER',_0x4ca4c6(_0x4a9680)));break;}}});}['_processAttributeChanges'](_0x55828e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x692cb4=this['editor'],_0x41dda8=_0x692cb4['model']['document']['differ']['getChanges']();if(0x0==_0x41dda8['length'])return!0x1;const _0xef0304=[],_0x4d6e95=_0x41dda8['filter'](_0x2f526b=>'attribute'==_0x2f526b['type']),_0xf509d9=_0x41dda8['filter'](_0x4e4cbd=>'insert'==_0x4e4cbd['type']&&'$text'!=_0x4e4cbd['name']),_0x5135ea=_0x41dda8['filter'](_0x1660eb=>'remove'==_0x1660eb['type']&&'$text'!=_0x1660eb['name']);for(const _0x3e61d5 of _0x4d6e95)_0xef0304['push']({'key':_0x3e61d5['attributeKey'],'newValue':_0x3e61d5['attributeNewValue'],'oldValue':_0x3e61d5['attributeOldValue'],'range':Kt(_0x3e61d5['range'],_0x692cb4['model'])});for(const _0x5926e1 of _0xf509d9){const _0x7cf576=_0x5135ea['find'](_0x5a92e4=>_0x5a92e4['position']['isEqual'](_0x5926e1['position']));_0x7cf576&&_0xef0304['push']({'key':m,'newValue':_0x5926e1['name'],'oldValue':_0x7cf576['name'],'range':_0x692cb4['model']['createRangeOn'](_0x5926e1['position']['nodeAfter'])});}return 0x0!=_0xef0304['length']&&this['_reduceExistingSuggestions'](_0x55828e,_0xef0304);}['_processAttributeSuggestions'](_0x5d98e5){let _0x12945a=!0x1;const _0x1df001=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x22ded5=>_0x22ded5['data']['newRange']&&_0x22ded5['name']['startsWith']('suggestion:attribute:'));for(const _0x18f0bf of _0x1df001){const {subType:_0x5ac7bf,id:_0x1cfe2e}=this['_splitMarkerName'](_0x18f0bf['name']),_0x1aa73b=_0x5ac7bf['split']('|')[0x0];for(const _0x2da19a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2da19a['id']!=_0x1cfe2e&&'attribute'==_0x2da19a['type']&&_0x2da19a['data']&&_0x2da19a['data']['key']==_0x1aa73b&&_0x2da19a['getFirstRange']()['isIntersecting'](_0x18f0bf['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2da19a,_0x18f0bf['data']['newRange'],_0x5d98e5),_0x12945a=!0x0);}return _0x12945a;}['recordAttributeChanges'](_0x319b82){this['_recordAttributeSuggestions']=!0x0,_0x319b82();}['_isRegisteredAttribute'](_0x311e10){const _0x2c3f72=this['_isBlockAttribute'](_0x311e10),_0x5da79e=this['_inlineAttributeKeys']['has'](_0x311e10);return _0x2c3f72||_0x5da79e;}['_reduceExistingSuggestions'](_0x5b8852,_0x4912fd){if(0x0==_0x4912fd['length'])return!0x1;let _0x2ef5c5=!0x1;for(const _0x443ec6 of _0x4912fd){const _0x10999a=this['_findSuggestions'](_0x443ec6['range'],'attribute')['filter'](_0x6d3895=>!_0x6d3895['meta']['isNextTo'])['map'](_0x45bf1c=>_0x45bf1c['suggestion']),_0x3d204b=_0xf57b3c({'newValue':_0x443ec6['newValue']});_0x10999a['filter'](_0x1c6347=>{const [_0x1538ae,_0x3e8bcc]=_0x1c6347['subType']['split']('|');return _0x1538ae==_0x443ec6['key']&&_0x3e8bcc!=_0x3d204b;})['forEach'](_0x406c1a=>{this['_reduceSuggestionAttributeRange'](_0x406c1a,_0x443ec6['range'],_0x5b8852),_0x2ef5c5=!0x0;});}return _0x2ef5c5;}['_reduceSuggestionAttributeRange'](_0x503951,_0xba9d5c,_0x56313e){const _0x4a01c0=_0x503951['getFirstRange']()['getDifference'](_0xba9d5c);0x0!==_0x4a01c0['length']?0x1!==_0x4a01c0['length']?this['_breakSuggestionMarker'](_0x503951,_0xba9d5c['start'],_0xba9d5c['end']):this['_setSuggestionRange'](_0x503951,_0x4a01c0[0x0]):_0x56313e['removeMarker'](_0x503951['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x58fc8e){this['_editor']=_0x58fc8e,this['_model']=_0x58fc8e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x9ddd1a,_0x4f0200,_0x22150f,_0x16f3cf,_0x21a466,_0x37a3f6,_0x1d1039){return new T(this['_model'],{'type':_0x9ddd1a,'subType':_0x4f0200,'id':_0x22150f,'originalSuggestionId':_0x1d1039,'author':_0x16f3cf,'creator':_0x16f3cf,'attributes':_0x21a466,'onAttributesChange':_0x37a3f6,'onAccept':(..._0x39f7ce)=>this['getSuggestionCallback'](_0x9ddd1a,_0x4f0200,'accept')(..._0x39f7ce),'onDiscard':(..._0x37396c)=>this['getSuggestionCallback'](_0x9ddd1a,_0x4f0200,'discard')(..._0x37396c)});}['registerCustomCallback'](_0x48d6a0,_0x46ced2,_0x37eddf,_0x48c1e3){const _0x14b1e7=_0x48d6a0+':'+_0x46ced2+':'+_0x37eddf;this['_customCallbacks']['set'](_0x14b1e7,_0x48c1e3);}['getSuggestionCallback'](_0x414593,_0x50f3fe,_0x167096){const _0x5c1507=_0x414593+':'+_0x50f3fe+':'+_0x167096;return this['_customCallbacks']['get'](_0x5c1507)||this['_defaultCallbacks']['get'](_0x414593+':'+_0x167096);}['_registerDefaultCallbacks'](){const _0x4bae0b=()=>!0x1,_0x29cc89=_0x2af27e=>{_0x2af27e['sort']((_0x332b36,_0x4bce3a)=>_0x332b36['start']['isBefore'](_0x4bce3a['start'])?0x1:-0x1),this['_model']['change'](_0x22c47a=>{for(const _0x5ee542 of _0x2af27e){let _0x5ebe30;_0x5ebe30=_0x5ee542['end']['isAtEnd']&&_0x5ee542['end']['parent']==_0x5ee542['start']['nodeAfter']?_0x22c47a['createSelection'](_0x5ee542['start']['nodeAfter'],'on'):_0x22c47a['createSelection'](_0x5ee542),this['_model']['deleteContent'](_0x5ebe30,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x190b87=(_0x5b9ab0,_0x339a80)=>{_0x339a80&&this['_model']['change'](_0x43e4cc=>{const {commandName:_0x16d5a6,commandParams:_0x2b1524=[]}=_0x339a80,_0xc98f17=_0x5b9ab0['map'](_0x5db55e=>(Ft(_0x5db55e)&&(_0x5db55e=this['_model']['createRange'](_0x5db55e['end'])),_0x5db55e))['filter'](_0x5272ab=>'$graveyard'!==_0x5272ab['root']['rootName']);if(_0xc98f17['length']<0x1)return;const _0x457ef2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1cfb4c=>_0x4ee832['fromRange'](_0x1cfb4c));_0x43e4cc['setSelection'](_0xc98f17);for(const _0x251ff9 of this['_editor']['commands']['commands']())_0x251ff9['refresh']();_0x2b1524['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x16d5a6,..._0x2b1524);const _0xcb23f6=_0x457ef2['filter'](_0x55a8f2=>'$graveyard'!=_0x55a8f2['root']['rootName']);_0xcb23f6['length']>0x0&&_0x43e4cc['setSelection'](_0xcb23f6);for(const _0x5c390c of _0x457ef2)_0x5c390c['detach']();});},_0x27e091=(_0x148573,_0x2debca)=>0x1==_0x148573['length']&&0x1==_0x2debca['length']&&_0x148573[0x0]['end']['isEqual'](_0x2debca[0x0]['start']),_0x2cfac1=(_0x49d6e0,_0x2eb125,_0x4805b0,_0x3ffea6)=>qt(_0x49d6e0,_0x2eb125,_0x4805b0,_0x3ffea6)?[_0x49d6e0,_0x2eb125]:qt(_0x2eb125,_0x49d6e0,_0x3ffea6,_0x4805b0)?[_0x2eb125,_0x49d6e0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4bae0b),this['_defaultCallbacks']['set']('insertion:discard',_0x29cc89),this['_defaultCallbacks']['set']('insertion:join',_0x27e091),this['_defaultCallbacks']['set']('insertion:chain',_0x2cfac1),this['_defaultCallbacks']['set']('deletion:accept',_0x29cc89),this['_defaultCallbacks']['set']('deletion:discard',_0x4bae0b),this['_defaultCallbacks']['set']('deletion:join',_0x27e091),this['_defaultCallbacks']['set']('deletion:chain',_0x2cfac1),this['_defaultCallbacks']['set']('formatInline:accept',_0x190b87),this['_defaultCallbacks']['set']('formatInline:discard',_0x4bae0b),this['_defaultCallbacks']['set']('formatInline:join',_0x27e091),this['_defaultCallbacks']['set']('formatInline:chain',_0x4bae0b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x190b87),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4bae0b),this['_defaultCallbacks']['set']('formatBlock:join',_0x27e091),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4bae0b),this['_defaultCallbacks']['set']('attribute:accept',_0x4bae0b),this['_defaultCallbacks']['set']('attribute:discard',(_0x315606,_0x20b7b6)=>{if(!_0x20b7b6)return;const _0x4299b0=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2ba249=>{if(_0x20b7b6['key']==m)for(const _0xe06c04 of _0x315606){const _0x1fb473=_0xe06c04['start']['nodeAfter'],_0x59af71=_0x20b7b6['oldValue'];_0x2ba249['rename'](_0x1fb473,_0x59af71);}else{if(_0x4299b0['_isBlockAttribute'](_0x20b7b6['key'])){for(const _0x3adf26 of _0x315606)void 0x0!==_0x20b7b6['oldValue']?_0x2ba249['setAttribute'](_0x20b7b6['key'],_0x20b7b6['oldValue'],_0x3adf26['start']['nodeAfter']):_0x2ba249['removeAttribute'](_0x20b7b6['key'],_0x3adf26['start']['nodeAfter']);}else{for(const _0x3fe837 of _0x315606)_0x20b7b6['oldValue']?_0x2ba249['setAttribute'](_0x20b7b6['key'],_0x20b7b6['oldValue'],_0x3fe837):_0x2ba249['removeAttribute'](_0x20b7b6['key'],_0x3fe837);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x27e091);}}function Vt(_0x397524,_0x22944d,_0x267174){for(const _0x43b221 of _0x22944d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x43b221['root']==_0x43b221)return!0x1;if(!_0x267174['containsItem'](_0x43b221))return!0x1;if(_0x397524['isObject'](_0x43b221)||_0x397524['isLimit'](_0x43b221))return!0x0;}return!0x1;}function Ft(_0x5b274a){return _0x5b274a['end']['parent']==_0x5b274a['start']['nodeAfter']&&_0x5b274a['end']['isAtStart'];}function Pt(_0x257c1a,_0x4f945a,_0x1ee1c1,_0x5205fa){const _0x3f8654=_0x2f8738=>!_0x2f8738['item']['is']('$textProxy')&&!_0x5205fa['isObject'](_0x2f8738['item']),_0x3733d3=_0x257c1a['start']['getLastMatchingPosition'](_0x3f8654),_0xa12aae=_0x257c1a['end']['getLastMatchingPosition'](_0x3f8654,{'direction':'backward'});return(!_0x257c1a['start']['isEqual'](_0x3733d3)||!_0x257c1a['end']['isEqual'](_0xa12aae))&&(_0x3733d3['isBefore'](_0xa12aae)?_0x1ee1c1['updateMarker'](_0x4f945a,{'range':_0x1ee1c1['createRange'](_0x3733d3,_0xa12aae)}):_0x1ee1c1['removeMarker'](_0x4f945a),!0x0);}function Gt(_0x32caaa){return _0xf57b3c(_0x32caaa);}function Lt(_0xae4ea5){const _0xf0d367=_0xae4ea5['start']['nodeAfter'];return _0xf0d367&&_0xf0d367['is']('element');}function Jt(_0x2a0b94){return!Ft(_0x2a0b94)&&!function(_0x4e30f4){return _0x4e30f4['start']['parent']==_0x4e30f4['end']['nodeBefore']&&_0x4e30f4['start']['isAtEnd'];}(_0x2a0b94);}function Kt(_0x6237df,_0x1cd0f6){return null==_0x6237df['end']['nodeBefore']&&_0x6237df['end']['parent']==_0x6237df['start']['nodeAfter']?Ht(_0x6237df['start']['nodeAfter'],_0x1cd0f6):_0x6237df;}function Ht(_0x2a3270,_0x10c1e9){const _0x1135fc=_0x10c1e9['schema']['isObject'](_0x2a3270)||_0x10c1e9['schema']['isSelectable'](_0x2a3270);return _0x10c1e9['createRange'](_0x10c1e9['createPositionAt'](_0x2a3270,'before'),_0x1135fc?_0x10c1e9['createPositionAfter'](_0x2a3270):_0x10c1e9['createPositionAt'](_0x2a3270,'end'));}function qt(_0x50cdf4,_0x50bc65,_0x330174,_0x4096ef){return!!zt(_0x50cdf4,_0x50bc65)&&_0x330174['end']['isEqual'](_0x4096ef['start']);}function zt(_0x332349,_0x37806a){if(!_0x332349['_isDataLoaded']||!_0x37806a['_isDataLoaded'])return!0x1;const _0xa09f38=new Set(Object['keys'](_0x332349['attributes'])),_0x6bf511=new Set(Object['keys'](_0x37806a['attributes']));if(_0xa09f38['delete']('groupId'),_0x6bf511['delete']('groupId'),0x0==_0xa09f38['size']&&0x0==_0x6bf511['size'])return!0x0;if(_0xa09f38['size']!=_0x6bf511['size'])return!0x1;const _0x146857={..._0x332349['attributes']},_0x43ee55={..._0x37806a['attributes']};return delete _0x146857['groupId'],delete _0x43ee55['groupId'],JSON['stringify'](_0x146857)==JSON['stringify'](_0x43ee55);}function Wt(_0x323060,_0x2a55f8){const _0x48a3a2=Qt(_0x323060['attributes']),_0x20e7c5=Qt(_0x2a55f8);if(!_0x323060['_isDataLoaded'])return!0x1;for(const _0xf77ee9 of Object['keys'](_0x20e7c5))if(!_0x163c93(_0x48a3a2[_0xf77ee9],_0x20e7c5[_0xf77ee9]))return!0x1;return!0x0;}function Qt(_0x5d618b){const _0x145567=Object['assign']({},_0x5d618b);return delete _0x145567['skipNestingCheck'],delete _0x145567['tablePasteChainId'],_0x145567;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x17806b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x39de89,_0x143dce,_0x6be795,_0x3a224e){super(),this['model']=_0x143dce,this['view']=_0x6be795,this['commentThreadController']=_0x3a224e,this['_editor']=_0x39de89,this['_acceptCommand']=_0x39de89['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x39de89['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1266cb,_0x475e73)=>_0x1266cb||_0x475e73),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xc3bb76=>_0xc3bb76&&this['_editor']['model']['canEditAt'](_0x143dce['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x307b01=>_0x307b01&&this['_editor']['model']['canEditAt'](_0x143dce['getRanges']())),this['_pendingAction']=null,_0x6be795['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x6be795,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x6be795,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x6be795,'change:isDirty',()=>{_0x6be795['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 _0x63cc06=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x63cc06);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x4ac557{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x373790,_0x1a6077,_0x5922b4,_0x2a0368){super(_0x373790),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x8b01af(_0x373790,o(_0x373790,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1a6077['authoredAt']),this['bind']('authoredAt')['to'](_0x1a6077),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',_0x1a6077,'authoredAt',this,'descriptionParts',(_0x2aaf11,_0x492f12,_0x2f9251)=>{const _0xbffbfb=_0x2f9251['map'](_0x227391=>ls(_0x227391['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2aaf11-0x1,_0x1a6077['author']['name'],_0x492f12?_0x2a0368['formatDateTime'](_0x492f12):'',new DOMParser()['parseFromString'](_0xbffbfb,'text/html')['body']['textContent']]);}),this['focusables']=new _0x101552(),this['focusTracker']=new _0xe850d5(),this['keystrokes']=new _0x17a04f(),this['focusCycler']=new _0x40d377({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x28e6ab=>_0x28e6ab['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1a6077,this['_localUser']=_0x5922b4,this['_config']=_0x2a0368,_0x2a0368['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x465d8d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xe1e4db}=this['_config'];this['commentsListView']=new _0xe1e4db(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',_0x499c64=>_0x499c64+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1c64e2,_0x514d50)=>_0x1c64e2||!!_0x514d50);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x243da1}=this['_config'],_0xa66ea4=new _0x243da1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x14fa91=_0xa66ea4['commentInputView'];return _0xa66ea4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x14fa91,'value',(_0x2792bf,_0x1b36f6,_0x47c4b9)=>!!_0x47c4b9||_0x2792bf&&!_0x1b36f6),_0x14fa91['on']('submit',(_0x47fe95,_0x1f0c08)=>{this['fire']('addComment',_0x1f0c08),_0x14fa91['editor']['setData']('');}),_0x14fa91['on']('cancel',()=>this['focus']()),_0x14fa91['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xa66ea4;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x56ed8b,_0x883ea9,_0x3c15fd,_0x3f320e){super(_0x56ed8b,_0x883ea9,_0x3c15fd,_0x3f320e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2846ba=>_0x2846ba&&_0x2846ba[0x0]?_0x2846ba[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2f15d1,_0x4f7f69)=>{let _0x2d839b='';for(const _0x3173ac of _0x2f15d1)_0x2d839b+='<p>'+ls(_0x3173ac['content'],_0x3173ac['color'])+'</p>';return _0x4f7f69?_0x2d839b:_0x9dde2(_0x2d839b,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3f320e['SuggestionView'](_0x56ed8b,_0x883ea9,{'formatDateTime':_0x3f320e['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 _0x12dd84=this['bindTemplate'],_0x795ce5=[this['suggestionView']];return this['commentsListView']&&_0x795ce5['push'](this['commentsListView']),this['commentThreadInputView']&&_0x795ce5['push'](this['commentThreadInputView']),_0x795ce5['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x12dd84['if']('isActive','ck-suggestion-wrapper--active'),_0x12dd84['to']('type',_0x5ef0d7=>'ck-suggestion-'+_0x5ef0d7),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':_0x12dd84['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x795ce5};}['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 _0x4ac557{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2c5783,_0xda567e,_0x1657df){super(_0x2c5783),this['_model']=_0xda567e,this['_config']=_0x1657df,this['set']('description',''),this['bind']('authoredAt')['to'](_0xda567e),this['acceptButton']=this['_createButton'](o(_0x2c5783,'Accept\x20suggestion'),_0xfa6fc7,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2c5783,'Discard\x20suggestion'),_0x42c378,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4f182a(_0x2c5783,_0xda567e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x101552([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xe850d5(),this['keystrokes']=new _0x17a04f(),this['focusCycler']=new _0x40d377({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1df812=>_0x1df812['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x260882=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x260882['innerHTML']=this['description'],this['on']('change:description',(_0x1aa994,_0x41cdcf,_0x583d24)=>{_0x260882['innerHTML']=_0x583d24;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x455af1=this['bindTemplate'],_0x4341b7=[{'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':_0x455af1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x455af1['to']('authoredAt',_0x55e9f2=>this['_config']['formatDateTime'](_0x55e9f2))}]}]},{'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']&&_0x4341b7['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':_0x4341b7}]};}['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'](_0x276958,_0x5ea34c,_0x4c1a60,_0x4f4952,_0xd39d0a){const _0x472700=new _0x290e03(this['locale']);return _0x472700['set']({'label':_0x276958,'icon':_0x5ea34c,'tooltip':!0x0,'tooltipPosition':_0xd39d0a}),_0x472700['extendTemplate']({'attributes':{'class':_0x4c1a60}}),_0x472700['on']('execute',()=>{this['fire'](_0x4f4952,this['_model']['id']);}),_0x472700;}['_setupKeyboardNavigation'](){const _0x6c8fc0=this['element'];this['keystrokes']['listenTo'](_0x6c8fc0);for(const _0x2eb3bf of this['focusables'])this['focusTracker']['add'](_0x2eb3bf['element']),this['keystrokes']['listenTo'](_0x2eb3bf['element']);this['keystrokes']['set']('enter',(_0x5a6d8d,_0x8f761c)=>{_0x6c8fc0===_0x5a6d8d['target']&&(this['focusCycler']['focusFirst'](),_0x8f761c());}),this['keystrokes']['set']('esc',(_0x1e24b1,_0x223c85)=>{_0x6c8fc0!==_0x1e24b1['target']&&(this['focus'](),_0x223c85());});}}class u extends _0x2d2df5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1382a8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4901c8){super(_0x4901c8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1dbb03=this['editor']['config'];_0x1dbb03['define']('trackChanges.SuggestionThreadView',fe),_0x1dbb03['define']('trackChanges.SuggestionView',we),_0x1dbb03['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1dbb03['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2f5883,_0x180e4f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1c8980,_0x539d78]of this['_handleControllerBuffer']){const _0xd661f4=this['_suggestionToController']['has'](_0x1c8980);_0xd661f4||_0x539d78?_0xd661f4&&_0x539d78&&this['_destroyController'](_0x1c8980):this['_initializeController'](_0x1c8980);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2f5883,_0x180e4f);}['init'](){const _0x5d4926=this['editor'],_0x2d2069=_0x5d4926['plugins']['get']('TrackChangesEditing'),_0x2c1c82=_0x5d4926['plugins']['get']('Annotations'),_0x2ebc04=_0x5d4926['plugins']['get']('EditorAnnotations'),_0x3cebd2=_0x5d4926['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2ebc04['addSourceCollector'](()=>{const _0x186ccb=[];for(const [_0x3815fc,_0x4de08f]of Array['from'](this['_suggestionToController'])){const _0xd4106e=_0x3815fc['getAllAdjacentSuggestions'](),_0x2147f8=[];for(const _0x3ae65e of _0xd4106e){if(!_0x3ae65e['isInContent'])continue;if(_0x3ae65e['isMultiRange']){_0x2147f8['push'](..._0x3ae65e['getRanges']());continue;}const _0x28baa8=_0x3ae65e['getFirstRange']();if(_0x2147f8['length']>0x0){const _0x4ae94c=_0x2147f8[0x0]['getJoined'](_0x28baa8);if(_0x4ae94c){_0x2147f8[0x0]=_0x4ae94c;continue;}}_0x2147f8['push'](_0x28baa8);}_0x186ccb['push']([_0x4de08f['view'],_0x2147f8]);}return _0x186ccb;}),this['listenTo'](_0x2d2069,'suggestionLoaded',(_0x370e30,_0x124868)=>{this['listenTo'](_0x124868,'change:previous',(_0x51c9b1,_0x2297f2,_0x124889,_0x195c08)=>{_0x124868['isInContent']&&(null==_0x124889?(this['_updateController'](_0x195c08['head']),this['_handleSuggestionControllerDelayed'](_0x124868,!0x1)):(this['_updateController'](_0x124889['head']),null==_0x195c08&&this['_handleSuggestionControllerDelayed'](_0x124868,!0x0)));}),null!==_0x124868['previous']?this['_updateController'](_0x124868['head']):this['_handleSuggestionControllerDelayed'](_0x124868,!0x1);}),this['listenTo'](_0x2d2069,'suggestionUnloaded',(_0x1519a7,_0x1fd05d,_0x247de2)=>{this['stopListening'](_0x1fd05d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1fd05d),this['_suggestionToController']['has'](_0x1fd05d)&&this['_destroyController'](_0x1fd05d),_0x247de2&&this['_updateController'](_0x247de2['head']);}),this['listenTo'](_0x2d2069,'suggestionChanged',(_0x2b06ef,_0x48fafd)=>{this['_updateController'](_0x48fafd);}),this['listenTo'](_0x2c1c82,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3cebd2,'addComment',(_0x2119b8,{threadId:_0x2b154c,isFromAdapter:_0x5e4824})=>{if(_0x5e4824||!_0x2d2069['hasSuggestion'](_0x2b154c))return;const _0x31d1ca=_0x2d2069['getSuggestion'](_0x2b154c);this['_suggestionToController']['get'](_0x31d1ca)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x9862d8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x38c00f;for(const _0x16793d in _0x9862d8){const _0x43a947=_0x16793d,_0x53f43a=_0x9862d8[_0x43a947];if('trackChangesLicenseKeyValid'==_0x53f43a||'trackChangesLicenseKeyInvalid'==_0x53f43a||'trackChangesLicenseKeyExpired'==_0x53f43a||'trackChangesLicenseKeyDomainLimit'==_0x53f43a||'trackChangesLicenseKeyNotAllowed'==_0x53f43a||'trackChangesLicenseKeyEvaluationLimit'==_0x53f43a||'trackChangesLicenseKeyTrialLimit'==_0x53f43a||'trackChangesLicenseKeyUsageLimit'==_0x53f43a){delete _0x9862d8[_0x43a947],_0x38c00f=_0x53f43a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x38c00f&&_0x9862d8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x38c00f&&_0x9862d8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x38c00f&&_0x9862d8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x38c00f&&_0x9862d8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x38c00f&&_0x9862d8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x38c00f&&_0x9862d8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x38c00f&&_0x9862d8['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4c4a36){const _0x76ab76=this['_suggestionToController']['get'](_0x4c4a36);if(!_0x76ab76)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x76ab76['view'])||null;}['getSuggestionForAnnotation'](_0x18a07f){const _0x4b1bb4=this['_viewToController']['get'](_0x18a07f['innerView']);return _0x4b1bb4?_0x4b1bb4['model']:null;}['_refreshActiveMarkers'](){const _0x58530f=this['editor']['plugins']['get']('Annotations'),_0x73c43d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53b585=Array['from'](_0x58530f['activeAnnotations'],_0x2c886b=>_0x2c886b['innerView'])['filter'](_0x2d3ab1=>this['_viewToController']['has'](_0x2d3ab1)),_0xca160f=[];for(const _0x2e5684 of _0x53b585){const _0x1342bd=this['_viewToController']['get'](_0x2e5684)['model']['getAllAdjacentSuggestions']();_0xca160f['push'](..._0x1342bd['reduce']((_0x492002,_0x398083)=>[..._0x492002,..._0x398083['getMarkerNames']()],[]));}_0x73c43d['activeMarkers']=_0xca160f;}['_addUIComponentsToFactory'](){const _0x37c228=this['editor'],_0x3b8209=_0x37c228['locale'],_0x16b61a=o(_0x3b8209,'Track\x20changes'),_0x4598cf=new _0x1b78ae([{'type':'switchbutton','model':new _0x386c58({'withText':!0x0,'isToggleable':!0x0,'label':_0x16b61a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x386c58({'withText':!0x0,'label':o(_0x3b8209,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x386c58({'withText':!0x0,'label':o(_0x3b8209,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x386c58({'withText':!0x0,'label':o(_0x3b8209,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x386c58({'withText':!0x0,'label':o(_0x3b8209,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x37c228['plugins']['has']('TrackChangesPreview')&&_0x4598cf['addMany']([{'type':'separator'},{'type':'button','model':new _0x386c58({'withText':!0x0,'label':o(_0x3b8209,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x29aeee of _0x4598cf)if(ke(_0x29aeee)){const _0x2cee19=_0x37c228['commands']['get'](_0x29aeee['model']['commandName']);_0x29aeee['model']['bind']('isOn','isEnabled')['to'](_0x2cee19,'value','isEnabled');}_0x37c228['ui']['componentFactory']['add']('trackChanges',_0x15655d=>this['_createToolbarButton'](_0x15655d,_0x4598cf,_0x16b61a)),_0x37c228['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3f10df=>this['_createMenuBarMenu'](_0x3f10df,_0x4598cf,_0x16b61a));}['_createToolbarButton'](_0x54b915,_0x54f973,_0xe0a0f5){const _0x59e8d3=_0x3b91f4(_0x54b915,_0x30fac6),_0x4df681=this['editor']['commands']['get']('trackChanges');_0x59e8d3['buttonView']['set']({'tooltip':_0xe0a0f5,'label':_0xe0a0f5,'icon':_0x3a3e19}),_0x59e8d3['buttonView']['bind']('isOn')['to'](_0x4df681,'value'),_0x59e8d3['buttonView']['on']('execute',()=>{_0x4df681['execute'](),this['editor']['editing']['view']['focus']();}),_0x2a7020(_0x59e8d3,_0x54f973,{'role':'menu'});const _0x5da3cd=[];for(const _0x4f9e72 of _0x54f973)ke(_0x4f9e72)&&_0x5da3cd['push'](this['editor']['commands']['get'](_0x4f9e72['model']['commandName']));const _0x5b0614=_0x59e8d3['buttonView'];return _0x5b0614['actionView']['unbind']('isEnabled'),_0x5b0614['arrowView']['unbind']('isEnabled'),_0x5b0614['actionView']['bind']('isEnabled')['to'](_0x4df681,'isEnabled'),_0x5b0614['arrowView']['bind']('isEnabled')['toMany'](_0x5da3cd,'isEnabled',(..._0x6ffd5d)=>_0x6ffd5d['some'](_0x2effaa=>_0x2effaa)),_0x59e8d3['on']('execute',_0x3a6272=>{this['editor']['execute'](_0x3a6272['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x59e8d3;}['_createMenuBarMenu'](_0x2b6656,_0x55b8a7,_0x384681){const _0x19a089=new _0x227fca(_0x2b6656),_0x18f6a4=this['editor']['commands']['get']('trackChanges');_0x19a089['buttonView']['set']({'label':_0x384681,'icon':_0x3a3e19});const _0x5345ba=new _0x5dcff2(_0x2b6656);for(const _0x3020c5 of _0x55b8a7){if('separator'==_0x3020c5['type']){_0x5345ba['items']['add'](new _0x2b1037(_0x2b6656));continue;}const _0x18de58=new _0x48503d(_0x2b6656,_0x19a089),_0x524d8b=new _0x329407(_0x2b6656),_0x41bbfb=_0x3020c5['model'];_0x524d8b['bind'](...Object['keys'](_0x41bbfb))['to'](_0x41bbfb),_0x524d8b['delegate']('execute')['to'](_0x19a089),_0x524d8b['on']('execute',()=>{this['editor']['execute'](_0x41bbfb['commandName']),this['editor']['editing']['view']['focus']();}),_0x18de58['children']['add'](_0x524d8b),_0x5345ba['items']['add'](_0x18de58);}return _0x19a089['bind']('isEnabled')['to'](_0x18f6a4,'isEnabled'),_0x19a089['panelView']['children']['add'](_0x5345ba),_0x19a089;}['_initializeController'](_0x154ef1){const _0x73b760=this['editor'],_0x28f9ed=_0x73b760['config'],_0x5c742e=_0x73b760['plugins']['get']('Annotations'),_0x261396=_0x73b760['plugins']['get']('CommentsRepository'),_0x3324a1=_0x73b760['plugins']['get']('EditorAnnotations'),_0x750df8=_0x73b760['plugins']['get'](_0x1382a8)['me'],_0x57203f=_0x28f9ed['get']('trackChanges')['SuggestionThreadView'],_0x13d32b=_0x28f9ed['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x422ac4,CommentThreadInputView:_0x330c53}=_0x73b760['plugins']['get']('CommentsUI');let _0x1a02d6,_0x6e674d,_0x46aea0;this['_annotationViews']['has'](_0x154ef1['id'])?(_0x6e674d=this['_annotationViews']['get'](_0x154ef1['id']),_0x1a02d6=_0x6e674d['mainView']):(_0x1a02d6=new _0x57203f(_0x73b760['locale'],_0x154ef1,_0x750df8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x28f9ed['get']('comments.editorConfig'),'licenseKey':_0x28f9ed['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x28f9ed['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x28f9ed['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x28f9ed['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x49a66c(_0x28f9ed['get']('locale'),_0x73b760['locale']),'CommentView':_0x28f9ed['get']('comments')['CommentView'],'CommentsListView':_0x422ac4,'CommentThreadInputView':_0x330c53,'SuggestionView':_0x13d32b}),_0x1a02d6['suggestionView']['acceptButton']['on']('execute',()=>{_0x73b760['editing']['view']['focus']();}),_0x1a02d6['suggestionView']['discardButton']['on']('execute',()=>{_0x73b760['editing']['view']['focus']();}),_0x6e674d=_0x5c742e['createAnnotationView'](this['editor']['locale'],_0x1a02d6),_0x6e674d['bind']('isDirty')['to'](_0x1a02d6,'isDirty'),_0x6e674d['bind']('length')['to'](_0x1a02d6),_0x6e674d['bind']('type')['to'](_0x1a02d6,'type',_0x40356b=>'suggestion-'+_0x40356b),_0x1a02d6['on']('escape',()=>{_0x46aea0['fire']('escape');}),this['_annotationViews']['set'](_0x154ef1['id'],_0x6e674d));const _0x1667e2=_0x261396['createCommentThreadController'](_0x154ef1['commentThread'],_0x1a02d6),_0x331270=new pe(_0x73b760,_0x154ef1,_0x1a02d6,_0x1667e2),_0xdd3f7e=_0x154ef1['getAllAdjacentSuggestions']()['filter'](_0x1d8d2d=>_0x1d8d2d['isInContent']);_0x1a02d6['descriptionParts']=_0x73b760['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xdd3f7e),this['_suggestionToController']['set'](_0x154ef1,_0x331270),this['_viewToController']['set'](_0x1a02d6,_0x331270),_0x46aea0=_0x5c742e['createAnnotation']({'view':_0x6e674d,'target':()=>{const _0x21ce69=[],_0x29cab3=_0x154ef1['getAllAdjacentSuggestions']()['filter'](_0x494003=>_0x494003['isInContent']);for(const _0x52045b of _0x29cab3)_0x21ce69['push'](..._0x52045b['getMarkers']());return _0x3de0c9(_0x73b760['editing'],_0x21ce69);},'type':()=>'suggestion-'+_0x331270['view']['type']}),_0x261396['_bindAnnotationToEditors'](_0x1a02d6,_0x46aea0),_0x5c742e['add'](_0x46aea0),_0x3324a1['registerAnnotation'](_0x46aea0);}['_destroyController'](_0x3527d1){const _0x2faca9=this['editor']['plugins']['get']('CommentsRepository'),_0x229ca2=this['editor']['plugins']['get']('Annotations'),_0x5257e6=this['_suggestionToController']['get'](_0x3527d1),_0x4353fe=_0x5257e6['view'],_0x49c893=_0x229ca2['getByInnerView'](_0x4353fe);_0x2faca9['_unbindEditors'](_0x4353fe),_0x49c893&&_0x229ca2['remove'](_0x49c893),this['_suggestionToController']['delete'](_0x3527d1),this['_viewToController']['delete'](_0x4353fe),_0x5257e6['destroy']();}['_updateController'](_0x32a6fd){if(!_0x32a6fd['isInContent']||!this['_suggestionToController']['has'](_0x32a6fd))return;const _0x8e8746=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53ac07=this['_suggestionToController']['get'](_0x32a6fd),_0x159fb8=_0x32a6fd['getAllAdjacentSuggestions']();_0x53ac07['view']['descriptionParts']=_0x8e8746['descriptionFactory']['getDescriptions'](_0x159fb8);}['destroy'](){for(const _0xc17504 of this['_suggestionToController']['keys']())this['_destroyController'](_0xc17504);for(const _0x4c0ca8 of this['_annotationViews']['values']())_0x4c0ca8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3b34c1){return'model'in _0x3b34c1;}class Fe extends _0x2d2df5{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x428e6e){this['editor']['plugins']['get'](d)['adapter']=_0x428e6e;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x203f92){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x203f92);}['getSuggestions']({skipNotAttached:_0x3cdba0=!0x1,toJSON:_0xdd5e7c=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3cdba0,'toJSON':_0xdd5e7c});}['getSuggestion'](_0x58b87a){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x58b87a);}}const p=['Pagination'];class re extends _0x2d2df5{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x6fc324=this['editor'];if(_0x6fc324['config']['define']('trackChangesData.editorCreator',_0x559707=>{const _0x391bcc=_0x6fc324['model']['document']['getRootNames']()['reduce']((_0x2769f1,_0x18cb44)=>(_0x2769f1[_0x18cb44]='',_0x2769f1),{});return _0x6fc324['constructor']['create'](_0x391bcc,_0x559707);}),'function'!=typeof _0x6fc324['config']['get']('trackChangesData')['editorCreator'])throw new _0x2ee34d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x34e573){return P(this['editor'],!0x0,_0x34e573);}['getDataWithDiscardedSuggestions'](_0x4b8fdb){return P(this['editor'],!0x1,_0x4b8fdb);}}class Ge extends _0x2d2df5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e25ac){function _0x210f3f(_0x3b5345){return _0x3b5345['map'](_0xc70182=>String['fromCharCode'](_0xc70182))['join']('');}super(_0x3e25ac),this['result']='end',_0x3e25ac[_0x210f3f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x210f3f([0x76,0x69,0x65,0x77])][_0x210f3f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x210f3f([0x61,0x75,0x74,0x6f]),_0x3e25ac[_0x210f3f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x210f3f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x210f3f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x210f3f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x210f3f([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function $e(_0x5379d1){return void 0x0!==_0x5379d1['getRootsAttributes'];}async function P(_0xc4814e,_0x21ffeb,_0x10afc3){const _0xba095a=_0x26c5c9(_0xc4814e,p);_0xba095a['plugins']['push'](d,Ge),_0xba095a['rootsAttributes']=$e(_0xc4814e)?_0xc4814e['getRootsAttributes']():void 0x0;const _0x16786e=document['createDocumentFragment'](),_0xc24d88=_0xc4814e['config']['get']('trackChangesData')['editorCreator'],_0x4f22e4=await _0xc24d88(_0xba095a,()=>function(_0x169f27){const _0x123d61=document['createElement']('div');return _0x169f27['appendChild'](_0x123d61),_0x123d61;}(_0x16786e));!function(_0x5539db,_0x54f6e8){const _0x5aaa1b=_0x5539db['model']['document']['getRootNames']()['reduce']((_0x241876,_0x3004b)=>(_0x241876[_0x3004b]=_0x5539db['data']['get']({'rootName':_0x3004b}),_0x241876),{}),_0x432296=_0x5539db['plugins']['get']('Users')['users']['map'](_0x53d61b=>({'id':_0x53d61b['id'],'name':_0x53d61b['name']})),_0xa4f92=_0x5539db['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x11266d=_0x5539db['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5bb290=_0x54f6e8['plugins']['get']('Users'),_0x48f448=_0x54f6e8['plugins']['get']('TrackChangesEditing'),_0x19c8c9=_0x54f6e8['plugins']['get']('CommentsRepository');for(const _0x4671a3 of _0x19c8c9['getCommentThreads']())_0x4671a3['remove']();for(const _0x1a1d06 of _0x432296)_0x5bb290['getUser'](_0x1a1d06['id'])||_0x5bb290['addUser'](_0x1a1d06);_0x5bb290['me']||_0x5bb290['useAnonymousUser']();for(const _0x107bb9 of _0x11266d)_0x19c8c9['addCommentThread'](_0x107bb9);for(const _0x94435c of _0xa4f92)_0x48f448['addSuggestionData'](_0x94435c);_0x54f6e8['data']['set'](_0x5aaa1b);}(_0xc4814e,_0x4f22e4),_0x4f22e4['execute'](_0x21ffeb?'acceptAllSuggestions':'discardAllSuggestions');const _0x2966d2=$e(_0x4f22e4)?_0x4f22e4['getFullData'](_0x10afc3):_0x4f22e4['data']['get'](_0x10afc3);return await _0x4f22e4['destroy'](),_0x2966d2;}class Me extends _0x4ac557{['options'];constructor(_0x4882eb,_0x4f2c08){super(_0x4882eb),this['options']=_0x4f2c08,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'](_0xc28a2a,_0x52e5ae){if(!this['element'])return;const _0x5b92a9=[];for(const [_0x1d010c,_0x129fa4]of _0xc28a2a){const _0x2c2601=document['createElement']('div');_0x2c2601['setAttribute']('data-ck-root-name',_0x1d010c),_0x2c2601['className']=_0x129fa4['classes']+'\x20ck-track-changes-preview__root-container',_0x2c2601['innerHTML']=_0x129fa4['content'],_0x5b92a9['push'](_0x2c2601);}_0x52e5ae(this['element'],_0x5b92a9),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x9ddc2d{constructor(_0x214f6c){super(_0x214f6c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x42dbcd=this['editor'],_0x2ac214=_0x42dbcd['locale'],_0x3c15ae=_0x42dbcd['plugins']['get']('Dialog');let _0x4d93b1;const _0x4e19a5=function(_0x13629e){const _0x2e2a21={};if('editables'in _0x13629e['ui']['view']){for(const [_0x699ac1,_0x39687b]of Object['entries'](_0x13629e['ui']['view']['editables']))_0x2e2a21[_0x699ac1]=_0x39687b['element'];}else _0x2e2a21[_0x13629e['model']['document']['getRootNames']()[0x0]]=_0x13629e['ui']['view']['editable']['element'];return _0x2e2a21;}(_0x42dbcd),_0x53c8e5=function(_0x129b08){let _0x4daa74=0x0;for(const _0x58d869 of Object['values'](_0x129b08))_0x4daa74=Math['max'](_0x4daa74,_0x58d869['getBoundingClientRect']()['width']);let _0x484f80=0x0;for(const _0x4d18fb of Object['values'](_0x129b08))_0x484f80+=_0x4d18fb['getBoundingClientRect']()['height'];const _0x91ee3d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5a586d=Math['min'](_0x484f80,_0x91ee3d);return{'width':_0x4daa74,'height':_0x5a586d};}(_0x4e19a5);_0x3c15ae['show']({'id':'finalContentPreview','title':o(_0x2ac214,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2ac214,{'dialogRects':_0x53c8e5}),'onHide':()=>{_0x4d93b1['detachFromDom']();},'onShow':()=>{_0x42dbcd['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2502ab=>{const _0x199510=this['_standarizeRootsData'](_0x2502ab,_0x42dbcd,_0x4e19a5);_0x3c15ae['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x199510,_0x42dbcd['config']['get']('trackChanges.preview.renderFunction'));}),_0x4d93b1=new _0x4810f2(_0x2ac214,[_0x3c15ae['view']]),_0x4d93b1['attachToDom'](),_0x4d93b1['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x42dbcd['once']('destroy',()=>{_0x4d93b1['detachFromDom']();});const _0x5d0eb0=_0x3c15ae['view']['headerView']['class'];_0x3c15ae['view']['headerView']['class']=_0x5d0eb0?_0x5d0eb0+'\x20ck-reset_all':'ck-reset_all',_0x3c15ae['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3c15ae['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x28887f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5e2b49=_0x28887f['previewMode'],_0x9b48d8={};if('$labels'===_0x5e2b49){for(const _0x1da380 of _0x28887f['getMergeFieldsIds']())_0x9b48d8[_0x1da380]=_0x28887f['getLabel'](_0x1da380)||_0x1da380;}else{const _0x3e9d04='$defaultValues'===_0x5e2b49?_0x28887f['getDefaultValues']():_0x28887f['getDataSetValues'](_0x5e2b49,!0x0);for(const _0x6e144d of Object['entries'](_0x3e9d04)){const [_0x4a76b5,_0x4bb0ee]=_0x6e144d;_0x9b48d8[_0x4a76b5]=null!==_0x4bb0ee?_0x4bb0ee:_0x28887f['getLabel'](_0x4a76b5)||_0x4a76b5;}}return{'mergeFieldsData':_0x9b48d8};}['_standarizeRootsData'](_0x1c9306,_0x1ae644,_0x2c7f1c){let _0x5da12f;if('string'==typeof _0x1c9306){const _0x40ddfc=_0x1ae644['model']['document']['getRootNames']()[0x0];_0x5da12f={[_0x40ddfc]:_0x1c9306};}else _0x5da12f=_0x1c9306;const _0x692372=this['_fixMediaEmbeds'](_0x5da12f,_0x1ae644),_0x4faac6=function(_0x138ae9,_0x136f32){for(const [_0x322038,_0x4d0e1b]of _0x138ae9)_0x4d0e1b['classes']=_0x136f32[_0x322038]['classList']['value']['replace']('ck-focused','');return _0x138ae9;}(this['_sortRoots'](_0x1ae644)['reduce']((_0x303ccd,_0x2902b2)=>(_0x303ccd['push']([_0x2902b2,{'content':_0x692372[_0x2902b2],'classes':''}]),_0x303ccd),[]),_0x2c7f1c);return _0x4faac6;}['_fixMediaEmbeds'](_0x3163e5,_0xf665a3){if(!_0xf665a3['plugins']['has']('MediaEmbedEditing'))return _0x3163e5;const _0x16e697=_0xf665a3['plugins']['get']('MediaEmbedEditing');for(const [_0x4aa129,_0x512464]of Object['entries'](_0x3163e5)){const _0x31ddf1=document['createElement']('div');_0x31ddf1['innerHTML']=_0x512464,(_0x31ddf1['querySelectorAll']('figure.media')['forEach'](_0x35d2af=>{const _0x5241b7=_0x35d2af['querySelector']('oembed');if(_0x5241b7){const _0xa6ab6=_0x5241b7['getAttribute']('url');if(_0xa6ab6){const _0x431849=_0x16e697['registry']['getMediaViewElement'](new _0x58597b(_0xf665a3['editing']['view']['document']),_0xa6ab6,{'elementName':'','renderForEditingView':!0x0}),_0x41d77d=document['createElement']('div');_0x41d77d['classList']['add']('ck-media__wrapper'),_0x431849['render'](_0x41d77d,_0xf665a3['editing']['view']['domConverter']),_0x5241b7['replaceWith'](_0x41d77d);}}}),_0x3163e5[_0x4aa129]=_0x31ddf1['innerHTML']);}return _0x3163e5;}['_sortRoots'](_0x4b0b8b){if(!function(_0x4b13f4){return void 0x0!==_0x4b13f4['getRootsAttributes'];}(_0x4b0b8b))return _0x4b0b8b['model']['document']['getRootNames']();const _0x2d80ae=[],_0x117b2e=new Map();for(const _0x1cfab7 of _0x4b0b8b['model']['document']['getRootNames']()){const _0x59dd38=_0x4b0b8b['editing']['view']['getDomRoot'](_0x1cfab7)['getClientRects']()['item'](0x0);_0x2d80ae['push'](_0x1cfab7),_0x117b2e['set'](_0x1cfab7,_0x59dd38);}return _0x2d80ae['sort']((_0x29b3b9,_0x1d1bad)=>{const _0x20ff16=_0x117b2e['get'](_0x29b3b9),_0x4096b4=_0x117b2e['get'](_0x1d1bad);return _0x20ff16['y']-_0x4096b4['y']||_0x20ff16['x']-_0x4096b4['x'];}),_0x2d80ae;}}class He extends _0x2d2df5{static get['requires'](){return[re,_0x535cd2];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x387473){super(_0x387473),_0x387473['commands']['add']('previewFinalContent',new te(this['editor'])),_0x387473['config']['define']('trackChanges.preview.renderFunction',(_0x13a72e,_0x48f62d)=>{for(const _0x15b98e of _0x48f62d)_0x13a72e['appendChild'](_0x15b98e);});}}export{D as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
23
+ import{Command as _0x572c4e,Plugin as _0x2bddd5,PendingActions as _0x5b857b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x30e493,ObservableMixin as _0x30d850,uid as _0x4bb6e6,priorities as _0x2048ff,insertToPriorityArray as _0x1b416a,toArray as _0xbaf344,logWarning as _0x17884f,getEnvKeystrokeText as _0x33f11a,FocusTracker as _0x554881,KeystrokeHandler as _0x468202,Collection as _0x34de8a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5413dd,IconCancel as _0xf05574,IconTrackChanges as _0xbecfc5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x38fe7e,View as _0x227c41,ViewCollection as _0x3c433f,FocusCycler as _0x566dc2,UIModel as _0x595d42,createDropdown as _0x348d4d,SplitButtonView as _0x17ee4a,addListToDropdown as _0x5cbd92,MenuBarMenuView as _0xa70834,MenuBarMenuListView as _0x5d1ff9,ListSeparatorView as _0x247408,MenuBarMenuListItemView as _0x3991a7,MenuBarMenuListItemButtonView as _0x47cc69,BodyCollection as _0x2fab16,Dialog as _0x34ef5c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x27b3d9,hashObject as _0x19e181,surroundingMarkersDetector as _0x5c23cf,FOCUS_ANNOTATION_KEYSTROKE as _0x707fe4,AriaDescriptionView as _0x3b31bb,setupThreadKeyboardNavigation as _0x66196a,trimHtml as _0x28f8fc,UserView as _0x15bd94,LateFocusButtonView as _0x47319b,getDateTimeFormatter as _0x3e584c,getAllMarkersDomElementsSorted as _0x190f99,sanitizeEditorConfig as _0x52af52}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3915fe,ModelLiveRange as _0xd7f50,ModelLivePosition as _0x26c143,ViewDowncastWriter as _0x2ea7db}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x53eb21,toWidget as _0x313690}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1b0acd,set as _0x59688e,isEqual as _0x1ccc9c,unset as _0x2ddd1c,omit as Ut}from'es-toolkit/compat';import{Delete as _0x345ded,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x399c1c}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4495bb}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x572c4e{['_enabledCommands'];constructor(_0x3aebfe,_0x3347f6){super(_0x3aebfe),this['_enabledCommands']=_0x3347f6,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 _0x54556c of this['editor']['commands']['commands']())_0x54556c['affectsData']&&!this['_enabledCommands']['has'](_0x54556c)&&_0x54556c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xd617a0 of this['editor']['commands']['commands']())_0xd617a0['affectsData']&&!this['_enabledCommands']['has'](_0xd617a0)&&_0xd617a0['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x572c4e{['_suggestions'];constructor(_0x5e225c,_0x4cc79f){super(_0x5e225c),this['_suggestions']=_0x4cc79f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x154e62){const _0x2d9f5=this['_suggestions']['get'](_0x154e62);if(!_0x2d9f5)throw new _0x30e493('track-changes-accept-suggestion-not-found',this);const _0x2d01bf=_0x2d9f5['getRanges']();this['editor']['model']['canEditAt'](_0x2d01bf)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2d9f5);}}class M extends _0x572c4e{['_suggestions'];constructor(_0x805c6e,_0x16e4a5){super(_0x805c6e),this['_suggestions']=_0x16e4a5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xbd02a4){const _0x14649a=this['_suggestions']['get'](_0xbd02a4);if(!_0x14649a)throw new _0x30e493('track-changes-discard-suggestion-not-found',this);const _0x472182=_0x14649a['getRanges']();this['editor']['model']['canEditAt'](_0x472182)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x14649a);}}function ls(_0xd880f1,_0x4b51b8){let _0x125340='';return _0x125340+=_0xd880f1['split']('*')['map']((_0x7ab5ac,_0x130354)=>_0x130354%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x7ab5ac)+'</span>':Yt(_0x7ab5ac))['join'](''),_0x4b51b8&&(_0x125340+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4b51b8['value']+'\x22\x20title=\x22'+_0x4b51b8['title']+'\x22></span>'),_0x125340;}function Yt(_0x219aac){const _0x4e8679=document['createElement']('span');return _0x4e8679['innerText']=_0x219aac,_0x4e8679['innerHTML'];}function ts(_0x4bde43){return _0x4bde43['sort']((_0x5e4a37,_0x4edc47)=>'attribute'===_0x5e4a37['type']&&'attribute'!==_0x4edc47['type']?-0x1:'attribute'!==_0x5e4a37['type']&&'attribute'===_0x4edc47['type']?0x1:'deletion'==_0x5e4a37['type']&&'deletion'!=_0x4edc47['type']?-0x1:'deletion'!=_0x5e4a37['type']&&'deletion'==_0x4edc47['type']?0x1:0x0);}function to(_0x71f117,_0x38d96c){let _0xeffb33,_0x3ece85=0x0;const _0x248acd=[],_0x46a49d=_0x38d96c['schema'];for(;_0x3ece85<_0x71f117['length'];){const _0x326467=_0x71f117[_0x3ece85],_0x37afee=_0x71f117[_0x3ece85+0x1];_0xeffb33||(_0xeffb33=_0x38d96c['createPositionBefore'](_0x326467)),Zt(_0x38d96c,_0x326467,_0x37afee)||(_0x248acd['push'](_0x38d96c['createRange'](_0xeffb33,_0x46a49d['isObject'](_0x326467)?_0x38d96c['createPositionAfter'](_0x326467):_0x38d96c['createPositionAt'](_0x326467,'end'))),_0xeffb33=null),_0x3ece85++;}return _0x248acd;}function Zt(_0x543a05,_0x259a61,_0x260dfd){if(!_0x260dfd)return!0x1;const _0x4bd4a8=_0x543a05['createPositionAfter'](_0x259a61),_0x39dfab=_0x543a05['createPositionBefore'](_0x260dfd);return _0x4bd4a8['isTouching'](_0x39dfab);}function rs(_0x9d28d0,_0x1b1ad3,_0x859380){for(;_0x859380['length'];){const _0x5f0c7d=_0x859380['splice'](0x0,0x64);_0x9d28d0['change'](()=>{for(const _0x1fd15f of _0x5f0c7d)_0x1fd15f['isInContent']&&_0x1b1ad3['execute'](_0x1fd15f['id']);});}}class $ extends _0x572c4e{['_command'];['_suggestions'];constructor(_0x1c4f3e,_0x78848b,_0x2acee9){super(_0x1c4f3e),this['_command']=_0x78848b,this['_suggestions']=_0x2acee9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5879a1=Array['from'](this['_suggestions']['values']())['some'](_0x21e365=>_0x21e365['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5879a1;}['execute'](){const _0x1ead51=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3dc2d5 of _0x1ead51){const _0x1581f2=_0x3dc2d5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1581f2))return;}rs(this['editor']['model'],this['_command'],_0x1ead51);}}class B extends _0x572c4e{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5e6463,_0x5d3ebc,_0x45410b){super(_0x5e6463),this['_command']=_0x5d3ebc,this['_suggestions']=_0x45410b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x485611=this['editor']['model']['document']['selection'],_0x58d81b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4f55c3,_0x5db013){const _0x51ea5f=Array['from'](_0x4f55c3['getRanges']()),_0x434222=new Set();for(const _0x275498 of _0x5db013)if(_0x275498['isInContent']){for(const _0x3d0ef5 of _0x51ea5f)for(const _0x4841be of _0x275498['getRanges']())(_0x3d0ef5['isIntersecting'](_0x4841be)||_0x4f55c3['isCollapsed']&&!_0x275498['isMultiRange']&&_0x275498['next']&&_0x4841be['end']['isTouching'](_0x3d0ef5['start']))&&_0x434222['add'](_0x275498);}return _0x434222;}(_0x485611,_0x58d81b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x20be62=ts(Array['from'](this['_selectedSuggestions']));for(const _0xe62b34 of _0x20be62){const _0x5cb27c=_0xe62b34['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5cb27c))return;}rs(this['editor']['model'],this['_command'],_0x20be62);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x30d850(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4fd7bf,_0x5ceb8a){super(),this['id']=_0x5ceb8a['id'],this['type']=_0x5ceb8a['type'],this['subType']=_0x5ceb8a['subType']||null,this['author']=_0x5ceb8a['author'],this['creator']=_0x5ceb8a['creator']||_0x5ceb8a['author'],this['isExternal']=Boolean(_0x5ceb8a['attributes']&&_0x5ceb8a['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5ceb8a['originalSuggestionId']||null,this['_model']=_0x4fd7bf,this['_onAccept']=_0x5ceb8a['onAccept'],this['_onDiscard']=_0x5ceb8a['onDiscard'],this['_onAttributesChange']=_0x5ceb8a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5ceb8a['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 _0x11fb46=this;for(;_0x11fb46['previous'];)_0x11fb46=_0x11fb46['previous'];return _0x11fb46;}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'](_0x590366){this['_markerNames']['add'](_0x590366);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x24701e=>this['_model']['markers']['get'](_0x24701e))['filter'](_0x36be41=>_0x36be41);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x59c41b=>{for(const _0x43709e of this['getMarkers']())_0x59c41b['removeMarker'](_0x43709e);}),this['_markerNames']['clear']();}['removeMarker'](_0x46199a){this['_model']['change'](_0x4bba60=>{_0x4bba60['removeMarker'](_0x46199a);}),this['_markerNames']['delete'](_0x46199a);}['addRange'](_0x438f6f){const _0x54f751='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x54f751),this['_model']['change'](_0x510e5f=>{_0x510e5f['addMarker'](_0x54f751,{'range':_0x438f6f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4b647e){for(const _0x3b73b3 of this['getRanges']())if(_0x3b73b3['isIntersecting'](_0x4b647e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x296cd3=>_0x296cd3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3f1281,_0x1cc76b)=>[..._0x3f1281,..._0x1cc76b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1a1979=this['getRanges']();if(0x1!=_0x1a1979['length'])return null;const _0x340357=_0x1a1979[0x0],_0x4c0c1b=_0x340357['start']['nodeAfter'],_0x15b379=_0x340357['end']['nodeBefore'];return _0x4c0c1b instanceof _0x3915fe?_0x4c0c1b!=_0x15b379?null:_0x4c0c1b: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 _0x1b6e28=[];let _0x2d297c=this['head'];for(;_0x2d297c;)_0x1b6e28['push'](_0x2d297c),_0x2d297c=_0x2d297c['next'];return _0x1b6e28;}['setAttribute'](_0x2ffbf6,_0x1988e0){const _0x5b55df=_0x1b0acd(this['attributes']);_0x59688e(_0x5b55df,_0x2ffbf6,_0x1988e0),_0x1ccc9c(_0x5b55df,this['attributes'])||(this['attributes']=_0x5b55df,this['_onAttributesChange'](_0x5b55df));}['removeAttribute'](_0x4f3497){const _0x131235=_0x1b0acd(this['attributes']);_0x2ddd1c(_0x131235,_0x4f3497),_0x1ccc9c(_0x131235,this['attributes'])||(this['attributes']=_0x131235,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 _0x4bb6e6()['substr'](0x1,0x5);}}function o(_0x4a6195,_0x248af5,_0x5d4373){const _0x1be950=_0x4a6195['t'],t=_0x4a6195['t'];switch(_0x248af5){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',_0x5d4373);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d4373);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d4373);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d4373);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d4373);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',_0x5d4373);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d4373);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',_0x5d4373);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d4373);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d4373);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d4373);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d4373);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d4373);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5d4373);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d4373);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d4373);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d4373);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d4373);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d4373);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d4373);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d4373);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d4373);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d4373);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d4373);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5d4373);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'},_0x5d4373);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5d4373);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5d4373);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d4373);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d4373);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d4373);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d4373);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d4373);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'},_0x5d4373);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d4373);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d4373);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d4373);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d4373);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'},_0x5d4373);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d4373);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'},_0x5d4373);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5d4373);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d4373);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'},_0x5d4373);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d4373);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'},_0x5d4373);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d4373);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d4373);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'},_0x5d4373);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5d4373);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 _0x1be950({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5d4373);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1be950({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5d4373);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5d4373);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'},_0x5d4373);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'},_0x5d4373);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'},_0x5d4373);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x248af5;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x534582,_0x46c579){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x534582,this['_locale']=_0x46c579;}['getDescriptions'](_0x593403){const _0x4eacd9=[],_0xf8280f=new Set(),_0x20f06b=new Set();for(let _0x21e33f=0x0;_0x21e33f<_0x593403['length'];_0x21e33f++){const _0x308d02=_0x593403[_0x21e33f];if(!_0x308d02['isInContent'])continue;const _0x4eadf2=this['_handleCustomCallbackDescription'](_0x308d02);if(_0x4eadf2){if(null!=_0x308d02['subType']){if(_0xf8280f['has'](_0x308d02['subType']))continue;_0xf8280f['add'](_0x308d02['subType']);}_0x4eacd9['push'](_0x4eadf2);}else{if('attribute'==_0x308d02['type']){const _0x416949=_0x308d02['data']['key'];if(_0x20f06b['has'](_0x416949))continue;_0x20f06b['add'](_0x308d02['data']['key']),_0x416949==m?this['_handleRenameSuggestionDescription'](_0x4eacd9,_0x308d02):this['_handleAttributeSuggestionDescription'](_0x4eacd9,_0x308d02);continue;}'insertion'!=_0x308d02['type']&&'deletion'!=_0x308d02['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4eacd9,_0x308d02,_0x593403[_0x21e33f+0x1]);}}return this['_resolveDescriptionItems'](_0x4eacd9);}['registerDescriptionCallback'](_0x1137d0){this['_customCallbacks']['push'](_0x1137d0);}['registerElementLabel'](_0x1cc79e,_0x59c5dd,_0x1fbf65=_0x2048ff['normal']){'function'==typeof _0x1cc79e?_0x1b416a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1cc79e,'label':_0x59c5dd,'priority':_0x1fbf65}):this['_itemLabels']['set'](_0x1cc79e,_0x59c5dd);}['registerAttributeLabel'](_0x447a2c,_0x248c8b){this['_attributeLabels']['set'](_0x447a2c,_0x248c8b);}['getItemLabel'](_0x34dae5,_0x398958=0x1){let _0x109067;for(const _0x1eaed5 of this['_itemLabelsCallbacks'])if(_0x1eaed5['matchingCallback'](_0x34dae5)){_0x109067=_0x1eaed5['label'];break;}return _0x109067||(_0x109067=this['_itemLabels']['get'](_0x34dae5['name'])),_0x109067?_0x109067(_0x398958):0x1!==_0x398958?_0x398958+'\x20'+_0x34dae5['name']+'s':''+_0x34dae5['name'];}['_addDescriptionItems'](_0x58e95f,_0x389798){const _0x41af30=_0x389798['getFirstRange']()['getWalker'](),_0x2f995c='insertion'==_0x389798['type']?'add':'remove';for(const _0x3f9cf2 of _0x41af30){const _0xa07006=_0x3f9cf2['item'],_0xd5a091=_0x58e95f[_0x58e95f['length']-0x1];if(_0xa07006['is']('$textProxy'))_0xd5a091&&_0xd5a091['type']['indexOf']('Container')>-0x1&&_0x58e95f['pop'](),_0xd5a091&&'text'==_0xd5a091['type']?_0xd5a091[_0x2f995c]+=_0xa07006['data']:_0x58e95f['push']({'type':'text','add':'add'==_0x2f995c?_0xa07006['data']:'','remove':'remove'==_0x2f995c?_0xa07006['data']:''});else{if(this['_schema']['isObject'](_0xa07006)){const _0x424715=_0xa07006;if(_0xd5a091&&_0xd5a091['type']['indexOf']('Container')>-0x1&&_0x58e95f['pop'](),'elementEnd'==_0x3f9cf2['type'])continue;_0xd5a091&&_0xd5a091['type']==_0x2f995c+'Object'&&_0xd5a091['element']['name']==_0x424715['name']?_0xd5a091['quantity']++:_0x58e95f['push']({'type':_0x2f995c+'Object','element':_0x424715,'quantity':0x1}),_0x41af30['skip'](_0x588fa5=>!('elementEnd'==_0x588fa5['type']&&_0x588fa5['item']==_0xa07006));}else{if(this['_schema']['checkChild'](_0xa07006,'$text')||_0xa07006['is']('element','softBreak')){const _0x124213=_0xa07006;if('add'==_0x2f995c&&'elementStart'==_0x3f9cf2['type']||'remove'==_0x2f995c&&'elementEnd'==_0x3f9cf2['type'])continue;if(_0xd5a091&&-0x1==_0xd5a091['type']['indexOf']('Container')){'text'==_0xd5a091['type']&&(_0xd5a091[_0x2f995c]+='\x0a');continue;}let _0x214167;if(_0x214167='add'==_0x2f995c?_0x124213['nextSibling']&&!this['_schema']['isObject'](_0x124213['nextSibling'])?_0x124213['nextSibling']:null:_0x124213['previousSibling']&&!this['_schema']['isObject'](_0x124213['previousSibling'])?_0x124213['previousSibling']:null,_0x124213['isEmpty']||_0x214167&&_0x214167['isEmpty']){const _0x5b1183=_0x214167&&_0x214167['isEmpty']?_0x214167:_0x124213;_0xd5a091&&_0xd5a091['type']==_0x2f995c+'EmptyContainer'&&_0xd5a091['element']['name']==_0x5b1183['name']?_0xd5a091['quantity']++:_0x58e95f['push']({'type':_0x2f995c+'EmptyContainer','element':_0x5b1183,'quantity':0x1});}else _0x58e95f['push']({'type':_0x2f995c+'Container','element':_0x124213});}}}}}['_resolveDescriptionItems'](_0x3d8cb7){const _0x1f56ec=this['_locale'],_0x23ab24=[],_0x9bae65=[],_0x2b42f1=[];for(const _0x29a1c7 of _0x3d8cb7)switch(_0x29a1c7['type']){case'text':if(_0x29a1c7['add']=_0x29a1c7['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x29a1c7['remove']=_0x29a1c7['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x29a1c7['add']&&''!=_0x29a1c7['remove']){_0x23ab24['push']({'type':'replace','content':o(_0x1f56ec,'REPLACE_TEXT',['\x22'+_0x29a1c7['remove']+'\x22','\x22'+_0x29a1c7['add']+'\x22'])});continue;}if(null!=_0x29a1c7['add']['match'](/^ +$/)){_0x23ab24['push']({'type':'insertion','content':o(_0x1f56ec,'*Insert:*\x20%0',o(_0x1f56ec,'ELEMENT_SPACE',_0x29a1c7['add']['length']))});continue;}if(null!=_0x29a1c7['remove']['match'](/^ +$/)){_0x23ab24['push']({'type':'deletion','content':o(_0x1f56ec,'*Remove:*\x20%0',o(_0x1f56ec,'ELEMENT_SPACE',_0x29a1c7['remove']['length']))});continue;}if(''!=_0x29a1c7['add']){_0x23ab24['push']({'type':'insertion','content':o(_0x1f56ec,'*Insert:*\x20%0','\x22'+_0x29a1c7['add']+'\x22')});continue;}_0x23ab24['push']({'type':'deletion','content':o(_0x1f56ec,'*Remove:*\x20%0','\x22'+_0x29a1c7['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x23ab24['push']({'type':'insertion','content':o(_0x1f56ec,'*Insert:*\x20%0',this['getItemLabel'](_0x29a1c7['element'],_0x29a1c7['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x23ab24['push']({'type':'deletion','content':o(_0x1f56ec,'*Remove:*\x20%0',this['getItemLabel'](_0x29a1c7['element'],_0x29a1c7['quantity']))});continue;case'addContainer':_0x23ab24['push']({'type':'insertion','content':o(_0x1f56ec,'*Split:*\x20%0',this['getItemLabel'](_0x29a1c7['element'],_0x29a1c7['quantity']))});continue;case'removeContainer':_0x23ab24['push']({'type':'deletion','content':o(_0x1f56ec,'*Merge:*\x20%0',this['getItemLabel'](_0x29a1c7['element'],_0x29a1c7['quantity']))});continue;case'addFormat':_0x9bae65['push'](_0x29a1c7['key']);continue;case'removeFormat':_0x2b42f1['push'](_0x29a1c7['key']);continue;default:_0x23ab24['push'](_0x29a1c7);}if(_0x9bae65['length']){const _0x27b06d=_0x9bae65['map'](_0x5c787d=>this['_attributeLabels']['has'](_0x5c787d)?this['_attributeLabels']['get'](_0x5c787d):_0x5c787d)['join'](',\x20');_0x23ab24['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x27b06d)});}if(_0x2b42f1['length']){const _0x308374=_0x2b42f1['map'](_0x4d7ea6=>this['_attributeLabels']['has'](_0x4d7ea6)?this['_attributeLabels']['get'](_0x4d7ea6):_0x4d7ea6)['join'](',\x20');_0x23ab24['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x308374)});}return _0x23ab24;}['_handleCustomCallbackDescription'](_0x8b48b8){for(const _0x6057fe of this['_customCallbacks']){const _0x379180=_0x6057fe(_0x8b48b8);if(_0x379180&&'type'in _0x379180)return _0x379180;}}['_handleAttributeSuggestionDescription'](_0x21255c,_0x26c499){const _0x134e06=_0x26c499['data'],_0x4f8013=void 0x0===_0x134e06['newValue']?'removeFormat':'addFormat';_0x21255c['push']({'type':_0x4f8013,'key':_0x134e06['key']});}['_handleRenameSuggestionDescription'](_0x9fb1f1,_0x4c4646){_0x9fb1f1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4c4646['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x177a94,_0x7da3f9,_0x3afb56){if(this['_addDescriptionItems'](_0x177a94,_0x7da3f9),_0x3afb56&&_0x3afb56['getFirstRange']()&&!_0x7da3f9['getFirstRange']()['end']['isEqual'](_0x3afb56['getFirstRange']()['start'])){const _0x2fd1e7=_0x177a94[_0x177a94['length']-0x1],_0x586f08='insertion'==_0x7da3f9['type']?'add':'remove';_0x2fd1e7&&'text'==_0x2fd1e7['type']&&(_0x2fd1e7[_0x586f08]+='\x0a');}}}class O extends _0x2bddd5{['afterInit'](){const _0x21b7ad=this['editor'],_0x16ced1=_0x21b7ad['plugins']['get']('TrackChangesEditing');_0x21b7ad['commands']['get']('showAIAssistant')&&_0x16ced1['enableCommand']('showAIAssistant');}}class E extends _0x2bddd5{['afterInit'](){const _0x2c7842=this['editor'],_0x448ebc=_0x2c7842['locale'];if(!_0x2c7842['plugins']['has']('AlignmentEditing'))return;const _0x25c867=_0x2c7842['plugins']['get']('TrackChangesEditing');_0x25c867['enableDefaultAttributesIntegration']('alignment'),_0x25c867['registerBlockAttribute']('alignment'),_0x25c867['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x448ebc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x390d39=this['editor'],_0x48d314=_0x390d39['locale'];_0x390d39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45d4f5=>{if('formatBlock'!=_0x45d4f5['type'])return;const {data:_0x5e13cf}=_0x45d4f5;if(_0x5e13cf&&'alignment'==_0x5e13cf['commandName']){const _0x2300b9=_0x5e13cf['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x48d314,'*Format:*\x20%0',function(_0x2e054b){switch(_0x2e054b){case'left':return o(_0x48d314,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x48d314,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x48d314,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x48d314,'FORMAT_JUSTIFY_TEXT');}}(_0x2300b9))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x2bddd5{['afterInit'](){const _0x51b173=this['editor'],_0x2da3cb=_0x51b173['plugins']['get']('TrackChangesEditing'),_0x20f9aa=_0x51b173['locale'];for(const _0x59afa2 of ti){if(!_0x51b173['plugins']['has'](_0x59afa2))continue;const _0x218519=_0x59afa2['slice'](0x0,-0x7)['toLowerCase'](),_0x314f11='FORMAT_'+_0x218519['toUpperCase']();_0x2da3cb['enableDefaultAttributesIntegration'](_0x218519),_0x2da3cb['registerInlineAttribute'](_0x218519),_0x2da3cb['descriptionFactory']['registerAttributeLabel'](_0x218519,o(_0x20f9aa,_0x314f11));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e8af6=this['editor'],_0x1fb71c=_0x4e8af6['locale'],_0x158ee4=_0x4e8af6['plugins']['get']('TrackChangesEditing');function _0x578288(_0x5f0132,_0x28a0d4){_0x158ee4['descriptionFactory']['registerDescriptionCallback'](_0x34efcc=>{if('formatInline'!=_0x34efcc['type'])return;const {data:_0x12f95e}=_0x34efcc;return _0x12f95e&&_0x12f95e['commandName']===_0x5f0132?_0x12f95e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1fb71c,'*Format:*\x20%0',_0x28a0d4)}:{'type':'format','content':o(_0x1fb71c,'*Remove\x20format:*\x20%0',_0x28a0d4)}:void 0x0;});}_0x578288('bold',o(_0x1fb71c,'FORMAT_BOLD')),_0x578288('italic',o(_0x1fb71c,'FORMAT_ITALIC')),_0x578288('underline',o(_0x1fb71c,'FORMAT_UNDERLINE')),_0x578288('code',o(_0x1fb71c,'FORMAT_CODE')),_0x578288('strikethrough',o(_0x1fb71c,'FORMAT_STRIKETHROUGH')),_0x578288('subscript',o(_0x1fb71c,'FORMAT_SUBSCRIPT')),_0x578288('superscript',o(_0x1fb71c,'FORMAT_SUPERSCRIPT'));}}class U extends _0x2bddd5{['afterInit'](){const _0x488af8=this['editor'],_0x1c8e76=_0x488af8['locale'];if(!_0x488af8['plugins']['has']('BlockQuoteEditing'))return;const _0x3b3c56=_0x488af8['plugins']['get']('TrackChangesEditing'),_0x1c9fa6=this['editor']['commands']['get']('blockQuote');_0x3b3c56['enableCommand']('blockQuote',(_0x4936b6,_0x8ff05c={})=>{const _0x5c3112=this['editor']['model']['document']['selection'],_0x3926b5=_0x8ff05c&&void 0x0!==_0x8ff05c['forceValue']?_0x8ff05c['forceValue']:!_0x1c9fa6['value'];let _0x59c088=[];if(_0x3926b5){const _0x156310=Array['from'](_0x5c3112['getSelectedBlocks']())['filter'](_0x3d71df=>oo(_0x3d71df)||function(_0x4d0ffd,_0x142e6a){const _0x439b18=_0x142e6a['checkChild'](_0x4d0ffd['parent'],'blockQuote'),_0x4976ce=_0x142e6a['checkChild'](['$root','blockQuote'],_0x4d0ffd);return _0x439b18&&_0x4976ce;}(_0x3d71df,this['editor']['model']['schema']));_0x59c088=to(_0x156310,_0x488af8['model']);}else{const _0x256617=Array['from'](_0x5c3112['getSelectedBlocks']())['filter'](_0x2254a2=>oo(_0x2254a2));_0x59c088=to(_0x256617,_0x488af8['model']);}_0x488af8['model']['change'](()=>{for(const _0x1a2572 of _0x59c088)_0x3b3c56['markBlockFormat'](_0x1a2572,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3926b5}]});});}),_0x3b3c56['descriptionFactory']['registerDescriptionCallback'](_0x30d1e1=>{const {data:_0x48735d}=_0x30d1e1;if(_0x48735d&&'blockQuote'==_0x48735d['commandName']){const _0x564c71=o(_0x1c8e76,'ELEMENT_BLOCK_QUOTE');return _0x48735d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c8e76,'*Set\x20format:*\x20%0',_0x564c71)}:{'type':'format','content':o(_0x1c8e76,'*Remove\x20format:*\x20%0',_0x564c71)};}});}}function oo(_0x446309){return'blockQuote'==_0x446309['parent']['name'];}class V extends _0x2bddd5{['afterInit'](){const _0x3a6014=this['editor'],_0x8753a8=_0x3a6014['locale'],_0x21f2e7=_0x3a6014['plugins']['get']('TrackChangesEditing');_0x3a6014['plugins']['has']('BookmarkEditing')&&(_0x21f2e7['enableCommand']('insertBookmark'),_0x21f2e7['enableDefaultAttributesIntegration']('updateBookmark'),_0x21f2e7['registerBlockAttribute']('bookmarkId'),_0x21f2e7['descriptionFactory']['registerDescriptionCallback'](_0x20fb18=>{if('insertion'!=_0x20fb18['type']&&'deletion'!=_0x20fb18['type']&&'attribute'!=_0x20fb18['type'])return;const _0x55d11b=_0x20fb18['getContainedElement']();if(null==_0x55d11b)return;if(!_0x55d11b['is']('element','bookmark'))return;const _0x376309=_0x55d11b['getAttribute']('bookmarkId');if('insertion'==_0x20fb18['type'])return{'type':'insertion','content':o(_0x8753a8,'*Insert:*\x20%0','\x22'+_0x376309+'\x22\x20'+o(_0x8753a8,'ELEMENT_BOOKMARK'))};if('deletion'==_0x20fb18['type'])return{'type':'deletion','content':o(_0x8753a8,'*Remove:*\x20%0','\x22'+_0x376309+'\x22\x20'+o(_0x8753a8,'ELEMENT_BOOKMARK'))};const {data:_0x4ac8cc}=_0x20fb18;if(!_0x4ac8cc||'bookmarkId'!=_0x4ac8cc['key'])return;return{'type':'format','content':o(_0x8753a8,'*Set\x20bookmark:*\x20%0','\x22'+_0x4ac8cc['newValue']+'\x22')};}));}}class F extends _0x2bddd5{['afterInit'](){const _0x455c7e=this['editor'];_0x455c7e['plugins']['has']('CaseChange')&&(_0x455c7e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x455c7e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x455c7e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x2bddd5{['afterInit'](){const _0x410c9e=this['editor'];_0x410c9e['commands']['get']('ckbox')&&_0x410c9e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2bddd5{['afterInit'](){const _0x2459d3=this['editor'];if(!_0x2459d3['plugins']['has']('CodeBlock'))return;const _0x1b4406=_0x2459d3['plugins']['get']('TrackChangesEditing'),_0x26f25a=_0x2459d3['locale'],_0x63f5db=_0x2459d3['config']['get']('codeBlock')['languages'],_0x3224fb=_0x2459d3['commands']['get']('codeBlock');_0x1b4406['enableCommand']('indentCodeBlock'),_0x1b4406['enableCommand']('outdentCodeBlock'),_0x1b4406['enableCommand']('codeBlock',(_0x66f479,_0x2c6cb3={})=>{const _0x74f1ff=_0x2459d3['model'],_0x45a2df=_0x2459d3['model']['document']['selection'],_0x2280e4=_0x2c6cb3&&void 0x0!==_0x2c6cb3['forceValue']?_0x2c6cb3['forceValue']:!_0x3224fb['value'];let _0xad1dc7;_0x2c6cb3['language']||(_0x2c6cb3['language']=_0x63f5db[0x0]['language']),_0xad1dc7=_0x2280e4?Array['from'](_0x45a2df['getSelectedBlocks']())['filter'](_0x48633f=>co(_0x48633f)||function(_0x5126c7,_0x2c3b25){if(_0x5126c7['is']('rootElement')||_0x2c3b25['isLimit'](_0x5126c7))return!0x1;return _0x2c3b25['checkChild'](_0x5126c7['parent'],'codeBlock');}(_0x48633f,_0x74f1ff['schema'])):Array['from'](_0x45a2df['getSelectedBlocks']())['filter'](_0x1eb124=>co(_0x1eb124));const _0x305435=to(_0xad1dc7,_0x74f1ff);_0x74f1ff['change'](()=>{for(const _0x4e9bef of _0x305435)_0x1b4406['markBlockFormat'](_0x4e9bef,{'commandName':'codeBlock','commandParams':[{..._0x2c6cb3,'forceValue':_0x2280e4}],'formatGroupId':'blockName'});});}),(_0x1b4406['descriptionFactory']['registerElementLabel']('codeBlock',_0xbac78c=>o(_0x26f25a,'ELEMENT_CODE_BLOCK',_0xbac78c)),_0x1b4406['descriptionFactory']['registerDescriptionCallback'](_0x5377ad=>{if('formatBlock'!=_0x5377ad['type'])return;const _0x88d5a1=_0x26f25a['t'],{data:_0x3b350d}=_0x5377ad;if(!_0x3b350d||'codeBlock'!=_0x3b350d['commandName'])return;const _0x4bbebe=_0x3b350d['commandParams'][0x0]['language'],_0x524242=_0x88d5a1(_0x63f5db['find'](_0x103227=>_0x103227['language']===_0x4bbebe)['label'])['toLowerCase']();return _0x3b350d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26f25a,'*Set\x20format:*\x20%0',o(_0x26f25a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x524242+')')}:{'type':'format','content':o(_0x26f25a,'*Remove\x20format:*\x20%0',o(_0x26f25a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xa89abb){return'codeBlock'==_0xa89abb['name'];}class J extends _0x2bddd5{['afterInit'](){const _0x206cc3=this['editor'];if(!_0x206cc3['plugins']['has']('CommentsEditing'))return;_0x206cc3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2836f2,_0x5c3c09,_0x3d7cab){const _0x14848a=[];for(const _0x461311 of _0x5c3c09['getItems']())_0x461311['hasAttribute'](_0x2836f2)&&_0x14848a['push'](_0x3d7cab['createRangeOn'](_0x461311));return _0x14848a;}function De(_0x14c6ee,_0x58dbf1,{showActiveMarker:_0x4b6b8f=!0x0}={}){const _0x5dbc52=_0x14c6ee['plugins']['get']('TrackChangesEditing');return(_0x4d3821,_0x3f51b0,_0x4a9eda)=>{if(!_0x4a9eda['consumable']['test'](_0x3f51b0['markerRange'],_0x4d3821['name']))return;const _0x261093=_0x3f51b0['markerRange']['getWalker'](),_0x15d94c=_0x3f51b0['markerRange']['start'],_0x393f32=_0x14c6ee['model']['schema'];let _0x450932=null,_0x55a8a2=null,_0x5e89dd=!0x1,_0x5b3e8e=!0x1;for(const _0x50f5aa of _0x261093){const _0x2afd34=_0x50f5aa['item'];_0x5e89dd=_0x5e89dd||_0x393f32['isContent'](_0x2afd34);const _0x391fd8=_0x4a9eda['mapper']['toViewElement'](_0x2afd34);if(_0x391fd8&&_0x391fd8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x50f5aa['type']&&(_0x393f32['isBlock'](_0x2afd34)&&!_0x393f32['isLimit'](_0x2afd34)&&(_0x2afd34['nextSibling']||_0x15d94c['isAtEnd']?_0x450932&&_0x450932['parent']==_0x2afd34||(_0x450932=_0x2afd34,_0x277bda(_0x50f5aa['previousPosition']),_0x5b3e8e=!0x0):_0x55a8a2=_0x55a8a2||_0x50f5aa['previousPosition']));}function _0x277bda(_0x45972e){const {id:_0x7e48f6,authorId:_0x29abe5}=_0x5dbc52['_splitMarkerName'](_0x3f51b0['markerName']),_0x272958=_0x4a9eda['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58dbf1,'data-suggestion':_0x7e48f6,'data-author-id':_0x29abe5}),_0xacb24a=_0x4a9eda['mapper']['toViewPosition'](_0x45972e);_0x4b6b8f&&_0x5dbc52['activeMarkers']['includes'](_0x3f51b0['markerName'])&&_0x4a9eda['writer']['addClass']('ck-suggestion-marker--active',_0x272958),_0x4a9eda['writer']['insert'](_0xacb24a,_0x272958),_0x4a9eda['mapper']['bindElementToMarker'](_0x272958,_0x3f51b0['markerName']);}_0x5e89dd||_0x5b3e8e||!_0x55a8a2||_0x277bda(_0x55a8a2);};}class K extends _0x2bddd5{static get['requires'](){return[_0x345ded];}['init'](){const _0x22f387=this['editor'],_0xcec010=_0x22f387['plugins']['get']('TrackChangesEditing');_0xcec010['enableCommand']('delete');const _0x1dc19f=_0x22f387['commands']['get']('deleteForward');_0xcec010['enableCommand']('deleteForward',(_0x291dab,_0x350f43={})=>{const _0x1daaca=_0x22f387['model']['createSelection'](_0x22f387['model']['document']['selection']);_0x1daaca['isCollapsed']&&_0x22f387['model']['modifySelection'](_0x1daaca,{'direction':'forward','unit':_0x350f43['unit']});const _0x11d2f0=_0x1daaca['getFirstRange'](),_0x394e31=_0xd7f50['fromRange'](_0x11d2f0);let _0x41be95;_0x291dab(_0x350f43),_0x41be95='$graveyard'==_0x394e31['root']['rootName']?_0x22f387['model']['createRange'](_0x11d2f0['start']):_0x22f387['model']['createRange'](_0x394e31['start'],_0x394e31['end']),_0x394e31['detach'](),_0x22f387['model']['enqueueChange'](_0x1dc19f['buffer']['batch'],_0x10d3dc=>{_0x1dc19f['buffer']['lock'](),_0x10d3dc['setSelection'](_0x10d3dc['createRange'](_0x41be95['end'])),_0x1dc19f['buffer']['unlock']();});}),_0x22f387['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x22f387,'merge'),{'priority':'high'}),_0x22f387['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x12f81f,_0x257fcf,_0x370500)=>{_0x370500['options']['showSuggestionHighlights']&&De(_0x22f387,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x12f81f,_0x257fcf,_0x370500);},{'priority':'high'}),_0x22f387['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x307dc3,_0x4f3707,_0x9854b7)=>{const _0x5c754a=_0x9854b7['mapper']['markerNameToElements'](_0x4f3707['markerName']);if(_0x5c754a){for(const _0x433d76 of _0x5c754a)_0x433d76['is']('uiElement')&&(_0x9854b7['mapper']['unbindElementFromMarkerName'](_0x433d76,_0x4f3707['markerName']),_0x9854b7['writer']['remove'](_0x433d76));}},{'priority':'high'});}}class H extends _0x2bddd5{['afterInit'](){const _0x11995d=this['editor'];if(!_0x11995d['plugins']['has']('ListEditing'))return;const _0x3112ec=_0x11995d['locale'],_0x5d4a72=_0x11995d['plugins']['get']('TrackChangesEditing'),_0x5920a5=_0x11995d['plugins']['has']('TodoListEditing'),_0x177e5d=!!_0x11995d['config']['get']('list.multiBlock');function _0x4b22e0(_0x2ab2f0){return{'type':'format','content':''+o(_0x3112ec,'*Set\x20format:*\x20%0',_0x2ab2f0)};}function _0x2b89fa(_0x5e4d30){return{'type':'format','content':''+o(_0x3112ec,'*Remove\x20format:*\x20%0',_0x5e4d30)};}_0x5d4a72['enableDefaultAttributesIntegration']('numberedList'),_0x5d4a72['enableDefaultAttributesIntegration']('bulletedList'),_0x5d4a72['enableDefaultAttributesIntegration']('customNumberedList'),_0x5d4a72['enableDefaultAttributesIntegration']('customBulletedList'),_0x5d4a72['enableDefaultAttributesIntegration']('indentList'),_0x5d4a72['enableDefaultAttributesIntegration']('outdentList'),_0x5d4a72['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5d4a72['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5d4a72['registerBlockAttribute']('listItemId'),_0x5d4a72['registerBlockAttribute']('listType'),_0x5d4a72['registerBlockAttribute']('listIndent'),_0x177e5d&&(_0x5d4a72['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5d4a72['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5920a5&&(_0x5d4a72['enableDefaultAttributesIntegration']('todoList'),_0x5d4a72['enableDefaultAttributesIntegration']('checkTodoList'),_0x5d4a72['registerBlockAttribute']('todoListChecked'),_0x5d4a72['descriptionFactory']['registerDescriptionCallback'](_0x3ed958=>{const {data:_0x26268e}=_0x3ed958;if(_0x26268e&&'todoListChecked'==_0x26268e['key'])return{'type':'format','content':_0x26268e['newValue']?o(_0x3112ec,'*Check\x20item*'):o(_0x3112ec,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5d7789=>{if(_0x5d7789['batch']['isUndo'])return!0x1;let _0x4b67ce=!0x1;const _0x5567fe=_0x5d4a72['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11da88=>'todoListChecked'===_0x5d4a72['_getAttributeKey'](_0x11da88));for(const _0x5405b7 of _0x5567fe){'todo'!=_0x5405b7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5d4a72['_findSuggestions'](_0x5405b7['getFirstRange'](),'attribute')['find'](_0x5cd7dd=>'listType'===_0x5d4a72['_getAttributeKey'](_0x5cd7dd['suggestion']))||(_0x5d7789['removeMarker'](_0x5405b7['getFirstMarker']()),_0x4b67ce=!0x0));}return _0x4b67ce;})),_0x5d4a72['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3112ec,'FORMAT_INDENT'));const _0x2bf207={'type':'format','content':''};_0x5d4a72['descriptionFactory']['registerDescriptionCallback'](_0x154d96=>{const {data:_0x5e8ea2}=_0x154d96;if(!_0x5e8ea2||'listType'!=_0x5e8ea2['key'])return;let _0x2a948e=_0x154d96['head'];for(;_0x2a948e;){if(_0x2a948e['data']&&(('listStyle'==_0x2a948e['data']['key']||'listMarkerStyle'==_0x2a948e['data']['key'])&&(_0x2a948e['data']['newValue']&&'default'!=_0x2a948e['data']['newValue']||'default'!=_0x2a948e['data']['oldValue']&&!_0x5e8ea2['newValue'])||!_0x177e5d&&_0x2a948e['data']['key']==m))return _0x2bf207;_0x2a948e=_0x2a948e['next'];}if(null==_0x5e8ea2['newValue'])switch(_0x5e8ea2['oldValue']){case'bulleted':return _0x2b89fa(o(_0x3112ec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b89fa(o(_0x3112ec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b89fa(o(_0x3112ec,'ELEMENT_TODO_LIST'));}switch(_0x5e8ea2['newValue']){case'bulleted':return _0x4b22e0(o(_0x3112ec,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b22e0(o(_0x3112ec,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b22e0(o(_0x3112ec,'ELEMENT_TODO_LIST'));}}),_0x5d4a72['descriptionFactory']['registerDescriptionCallback'](_0x570a39=>{const {data:_0x1fe709}=_0x570a39;if(_0x1fe709&&'listIndent'==_0x1fe709['key'])return null==_0x1fe709['newValue']||null==_0x1fe709['oldValue']&&0x0==_0x1fe709['newValue']?_0x2bf207:void 0x0;}),_0x5d4a72['descriptionFactory']['registerDescriptionCallback'](_0x3cb267=>{if('attribute'!=_0x3cb267['type'])return;const {data:_0x173f67}=_0x3cb267;if(!_0x173f67||'listItemId'!=_0x173f67['key'])return;const _0x39ecd1=Te(_0x3cb267);return'newValue'==_0x39ecd1?{'type':'format','content':o(_0x3112ec,'*Merge:*\x20list\x20item')}:'oldValue'==_0x39ecd1?{'type':'format','content':o(_0x3112ec,'*Split:*\x20list\x20item')}:_0x2bf207;}),_0x11995d['model']['document']['registerPostFixer'](_0x3d0ba1=>this['listItemIdFixer'](_0x3d0ba1)),_0x11995d['model']['document']['registerPostFixer'](_0x24a3d5=>this['noTrackChangesFixer'](_0x24a3d5)),_0x11995d['model']['document']['on']('change:data',(_0x73e8c2,_0x259d85)=>{if(_0x259d85['isUndo']||!_0x259d85['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x388fbd){if(_0x388fbd['batch']['isUndo']||!_0x388fbd['batch']['isLocal'])return!0x1;let _0x1964df=!0x1;const _0x53f05a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48fbef=>_0x48fbef['data']&&'listItemId'==_0x48fbef['data']['key'])['filter'](_0x26aa1d=>_0x26aa1d['data']['newValue']&&_0x26aa1d['data']['oldValue']);for(const _0x29ee34 of _0x53f05a)Te(_0x29ee34)||(_0x388fbd['removeMarker'](_0x29ee34['getFirstMarker']()),_0x1964df=!0x0);return _0x1964df;}['noTrackChangesFixer'](_0x337017){if(_0x337017['batch']['isUndo']||!_0x337017['batch']['isLocal'])return!0x1;const _0x520d7b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x520d7b['trackChangesCommand']['value'])return!0x1;let _0x2c130e=!0x1;const _0x136fcf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2549a9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3214ce=>'attribute'==_0x3214ce['type'])['filter'](_0x3d56ea=>_0x136fcf['includes'](_0x3d56ea['attributeKey']));if(0x0==_0x2549a9['length'])return _0x2c130e;for(const _0x2cfac2 of _0x2549a9){const _0x7ab487=_0x520d7b['_findSuggestions'](_0x2cfac2['range'],'attribute')['filter'](_0x2c0108=>!_0x2c0108['meta']['isNextTo'])['map'](_0x212fbc=>_0x212fbc['suggestion'])['filter'](_0x3eeb68=>{const _0x5bfa5c=_0x520d7b['_getAttributeKey'](_0x3eeb68);return _0x136fcf['includes'](_0x5bfa5c);});if(_0x7ab487['length']){for(const _0x18dc36 of _0x7ab487)_0x337017['removeMarker'](_0x18dc36['getFirstMarker']());_0x2c130e=!0x0;}}return _0x2c130e;}['assureChains'](){const _0x31f099=this['editor']['plugins']['get']('TrackChangesEditing'),_0x393ecb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5051f3;const _0x55e0f3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4c6901=>{if(_0x4c6901['data']['oldRange']||!_0x4c6901['data']['newRange'])return null;if(!_0x4c6901['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x207ab9}=_0x31f099['_splitMarkerName'](_0x4c6901['name']);if(!_0x31f099['hasSuggestion'](_0x207ab9))return null;const _0x4dc647=_0x31f099['getSuggestion'](_0x207ab9);return _0x393ecb['includes'](_0x4dc647['data']['key']);})['map'](_0x5e5461=>{const {id:_0x13ff76}=_0x31f099['_splitMarkerName'](_0x5e5461['name']),_0x42bc93=_0x31f099['getSuggestion'](_0x13ff76);return _0x5051f3=_0x42bc93['attributes']['groupId'],_0x42bc93['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x55e0f3['size'])return;const _0x2d7a8f=_0x31f099['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x337192=>'attribute'==_0x337192['type']&&_0x337192['data']&&_0x393ecb['includes'](_0x337192['data']['key'])&&_0x337192['attributes']['groupId']!=_0x5051f3)['map'](_0x51ccd3=>({'listItem':_0x51ccd3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x51ccd3['attributes']['groupId']})),_0x3b0681=new Set();for(const {groupId:_0x345c78,listItem:_0x2f1749}of _0x2d7a8f)_0x55e0f3['has'](_0x2f1749)&&_0x3b0681['add'](_0x345c78);for(const _0x1f9fe0 of _0x31f099['getSuggestions']())_0x3b0681['has'](_0x1f9fe0['attributes']['groupId'])&&_0x1f9fe0['setAttribute']('groupId',_0x5051f3);}['_supportLegacySuggestions'](){const _0x4a3775=this['editor'],_0x2e783f=_0x4a3775['locale'],_0x2732eb=_0x4a3775['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2732eb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x37f1a5,_0x17b4f6){const _0x18b98f=[];for(let _0x558f74 of _0x37f1a5)_0x558f74['start']['nodeAfter']===_0x558f74['end']['parent']&&(_0x558f74=_0x4a3775['model']['createRange'](_0x4a3775['model']['createPositionAt'](_0x558f74['start']['nodeAfter'],0x0))),_0x18b98f['push'](_0x558f74);_0x4a3775['model']['change'](_0x19717c=>{const _0x460e44=_0x4a3775['model']['document']['selection'],_0x2616cc=Array['from'](_0x460e44['getRanges']())['map'](_0xf13071=>_0xd7f50['fromRange'](_0xf13071));_0x19717c['setSelection'](_0x18b98f),_0x4a3775['commands']['get'](_0x17b4f6['commandName'])['refresh'](),_0x17b4f6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a3775['execute'](_0x17b4f6['commandName'],..._0x17b4f6['commandParams']),_0x19717c['setSelection'](_0x2616cc);for(const _0x1a4bcb of _0x2616cc)_0x1a4bcb['detach']();});}),_0x2732eb['descriptionFactory']['registerElementLabel'](function(_0x8bcdc0){const _0x166611=!_0x4a3775['model']['schema']['isObject'](_0x8bcdc0),_0x36c805=_0x8bcdc0['previousSibling'],_0x4d1a70=_0x8bcdc0['nextSibling'],_0x15865d=_0x8bcdc0['getAttribute']('listItemId'),_0x161a9b=!_0x36c805||_0x36c805['getAttribute']('listItemId')!==_0x15865d,_0x142c64=!_0x4d1a70||_0x4d1a70['getAttribute']('listItemId')!==_0x15865d;return _0x166611&&Boolean(_0x15865d)&&_0x161a9b&&_0x142c64;},_0x56c3d5=>o(_0x2e783f,'ELEMENT_LIST_ITEM',_0x56c3d5));}['_registerLegacyDescription'](){const _0x2c611d=this['editor'],_0x1188bb=_0x2c611d['locale'];function _0x5653ba(_0x158520){const _0x5510e5=_0x2c611d['commands']['get']('bulletedList')['value'],_0x8759e3=_0x2c611d['commands']['get']('numberedList')['value'];return'numberedList'===_0x158520?_0x5510e5:_0x8759e3;}_0x2c611d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x93ff3e){if('formatBlock'!=_0x93ff3e['type'])return;const {data:_0xc4c88d}=_0x93ff3e;if(!_0xc4c88d)return;let _0x1c6f92,_0x24b968,_0x2027f3,_0x1320a2;switch(_0xc4c88d['commandName']){case'bulletedList':_0x2027f3=_0xc4c88d['commandParams'][0x0]['forceValue'],_0x1320a2=_0x5653ba(_0xc4c88d['commandName']),_0x1c6f92=_0x2027f3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1320a2&&_0x2c611d['config']['get']('list.multiBlock')||(_0x1c6f92='*Change\x20to:*\x20%0'),_0x24b968={'type':'format','content':o(_0x1188bb,_0x1c6f92,o(_0x1188bb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2027f3=_0xc4c88d['commandParams'][0x0]['forceValue'],_0x1320a2=_0x5653ba(_0xc4c88d['commandName']),_0x1c6f92=_0x2027f3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1320a2&&_0x2c611d['config']['get']('list.multiBlock')||(_0x1c6f92='*Change\x20to:*\x20%0'),_0x24b968={'type':'format','content':o(_0x1188bb,_0x1c6f92,o(_0x1188bb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c6f92='*Indent:*\x20%0',_0x24b968={'type':'format','content':o(_0x1188bb,_0x1c6f92,o(_0x1188bb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c6f92=function(_0x527547){const _0x1bd6f8=_0x527547['getFirstRange']();let _0xea03a3=_0x1bd6f8['start']['nodeAfter'];for(;_0xea03a3&&_0x1bd6f8['containsItem'](_0xea03a3);){if(_0xea03a3['getAttribute']('listIndent')>0x0)return!0x1;_0xea03a3=_0xea03a3['nextSibling'];}return!0x0;}(_0x93ff3e)?o(_0x1188bb,'*Format:*\x20remove\x20from\x20%0',o(_0x1188bb,function(_0x57a278){return'ELEMENT_'+_0x57a278['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x93ff3e))):o(_0x1188bb,'*Outdent:*\x20%0',o(_0x1188bb,'ELEMENT_LIST_ITEM')),_0x24b968={'type':'format','content':_0x1c6f92};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xc4c88d['multipleBlocks']&&(_0x1c6f92='*Merge:*\x20%0',_0x24b968={'type':'deletion','content':o(_0x1188bb,_0x1c6f92,o(_0x1188bb,'ELEMENT_LIST_ITEM'))});}return _0x24b968;});}}function Te(_0x3c4eae){let _0x108b02=_0x3c4eae['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x108b02;){const _0x2c8d70=_0x108b02['getAttribute']('listItemId');if(!_0x2c8d70)return!0x1;if(_0x2c8d70==_0x3c4eae['data']['newValue'])return'newValue';if(_0x2c8d70==_0x3c4eae['data']['oldValue'])return'oldValue';_0x108b02=_0x108b02['previousSibling'];}return!0x1;}class q extends _0x2bddd5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x63df33=this['editor']['config']['get']('list.properties'),_0x38bf67=this['editor']['plugins']['get']('TrackChangesEditing');_0x63df33['styles']&&(_0x38bf67['enableDefaultAttributesIntegration']('listStyle'),_0x38bf67['registerBlockAttribute']('listStyle')),_0x63df33['reversed']&&(_0x38bf67['enableDefaultAttributesIntegration']('listReversed'),_0x38bf67['registerBlockAttribute']('listReversed')),_0x63df33['startIndex']&&(_0x38bf67['enableDefaultAttributesIntegration']('listStart'),_0x38bf67['registerBlockAttribute']('listStart'));const _0x5c3ec6={'type':'format','content':''};_0x38bf67['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3fe9e8=this['editor']['locale'];_0x38bf67['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3fe9e8,'FORMAT_LIST_REVERSED')),_0x38bf67['descriptionFactory']['registerDescriptionCallback'](_0x12794e=>{const {data:_0x174f89}=_0x12794e;if(_0x174f89&&'listReversed'==_0x174f89['key'])return null==_0x174f89['newValue']||0x0==_0x174f89['newValue']&&null==_0x174f89['oldValue']?_0x5c3ec6:void 0x0;}),_0x38bf67['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3fe9e8,'FORMAT_LIST_START')),_0x38bf67['descriptionFactory']['registerDescriptionCallback'](_0x5a1954=>{const {data:_0x144e1d}=_0x5a1954;if(_0x144e1d&&'listStart'==_0x144e1d['key'])return null==_0x144e1d['newValue']||0x1==_0x144e1d['newValue']&&null==_0x144e1d['oldValue']?_0x5c3ec6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3eebd3=>{if(_0x3eebd3['batch']['isUndo'])return!0x1;let _0x3d4c81=!0x1;const _0x3e2399=_0x38bf67['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x701dd6=>{const _0x334ae5=_0x38bf67['_getAttributeKey'](_0x701dd6);return'listStart'==_0x334ae5||'listReversed'==_0x334ae5;});for(const _0x5ea815 of _0x3e2399){const _0x4d8bd5=_0x5ea815['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4d8bd5||'customNumbered'==_0x4d8bd5)continue;_0x38bf67['_findSuggestions'](_0x5ea815['getFirstRange'](),'attribute')['find'](_0x980d2f=>'listType'==_0x38bf67['_getAttributeKey'](_0x980d2f['suggestion']))||(_0x3eebd3['removeMarker'](_0x5ea815['getFirstMarker']()),_0x3d4c81=!0x0);}return _0x3d4c81;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2de852){const _0xb59b21=this['editor']['locale'],{data:_0xc6dd}=_0x2de852,_0x1b9ef4={'type':'format','content':''};if(!_0xc6dd||'listStyle'!=_0xc6dd['key'])return;if(!_0xc6dd['oldValue'])return'default'==_0xc6dd['newValue']?_0x1b9ef4:{'type':'format','content':''+o(_0xb59b21,'*Set\x20format:*\x20%0',o(_0xb59b21,this['_getTranslationKeyForListStyle'](_0xc6dd['newValue'])))};if(!_0xc6dd['newValue']){if('default'==_0xc6dd['oldValue'])return _0x1b9ef4;let _0x329698=_0x2de852['head'];for(;_0x329698;){if(_0x329698['data']&&'listType'==_0x329698['data']['key']&&_0x329698['data']['newValue'])return _0x1b9ef4;_0x329698=_0x329698['next'];}return{'type':'format','content':''+o(_0xb59b21,'*Remove\x20format:*\x20%0',o(_0xb59b21,this['_getTranslationKeyForListStyle'](_0xc6dd['oldValue'])))};}if('default'!=_0xc6dd['newValue'])return{'type':'format','content':''+o(_0xb59b21,'*Set\x20format:*\x20%0',o(_0xb59b21,this['_getTranslationKeyForListStyle'](_0xc6dd['newValue'])))};let _0x3a16bc=_0x2de852['head'];for(;_0x3a16bc;){if(_0x3a16bc['data']&&'listType'==_0x3a16bc['data']['key']&&_0x3a16bc['data']['newValue']&&_0x3a16bc['data']['oldValue'])return _0x1b9ef4;_0x3a16bc=_0x3a16bc['next'];}return{'type':'format','content':o(_0xb59b21,'*Set\x20format:*\x20%0',o(_0xb59b21,'ELEMENT_'+_0x2de852['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2ff647=this['editor'],_0x1c2a2c=_0x2ff647['locale'];_0x2ff647['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30e525=>{if('formatBlock'!=_0x30e525['type'])return;const {data:_0xd7eb21}=_0x30e525;if(!_0xd7eb21)return;let _0x31b316,_0x4840dd;switch(_0xd7eb21['commandName']){case'listStyle':_0x31b316='*Change\x20to:*\x20%0',_0x4840dd={'type':'format','content':o(_0x1c2a2c,_0x31b316,o(_0x1c2a2c,this['_getTranslationKeyForListStyle'](_0xd7eb21['commandParams'][0x0]['type'])))};break;case'listReversed':_0x31b316=_0xd7eb21['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4840dd={'type':'format','content':o(_0x1c2a2c,_0x31b316)};break;case'listStart':_0x31b316='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4840dd={'type':'format','content':o(_0x1c2a2c,_0x31b316,_0xd7eb21['commandParams'][0x0]['startIndex'])};}return _0x4840dd;});}['_getTranslationKeyForListStyle'](_0x4ac692){return'ELEMENT_'+function(_0x48460f){if(Se['includes'](_0x48460f))return'bulleted';if(_e['includes'](_0x48460f))return'numbered';return null;}(_0x4ac692)['toUpperCase']()+'_LIST_'+_0x4ac692['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x2bddd5{['afterInit'](){const _0x1ef941=this['editor'];_0x1ef941['commands']['get']('emoji')&&_0x1ef941['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x2bddd5{static get['requires'](){return[_0x399c1c];}['init'](){const _0x596cd1=this['editor'],_0x2e758f=_0x596cd1['plugins']['get']('TrackChangesEditing'),_0x2b8031=_0x596cd1['commands']['get']('enter');_0x2e758f['enableCommand']('enter',()=>{_0x596cd1['model']['change'](_0x44ceaf=>{const _0x298882=_0x596cd1['model']['document']['selection'],_0x4d9ab6=_0x298882['getFirstPosition'](),_0x5a478a=_0xd7f50['fromRange'](_0x298882['getFirstRange']());if(_0x2b8031['enterBlock'](_0x44ceaf)){const _0xb6eaed=_0x596cd1['model']['createPositionAt'](_0x4d9ab6['parent']['nextSibling'],0x0),_0x52d5e5=_0x44ceaf['createRange'](_0x4d9ab6,_0xb6eaed);_0x2e758f['markInsertion'](_0x52d5e5);}else _0x44ceaf['setSelection'](_0x44ceaf['createRange'](_0x5a478a['end']));_0x5a478a['detach'](),_0x2b8031['fire']('afterExecute',{'writer':_0x44ceaf});});}),_0x596cd1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x596cd1,'split'),{'priority':'high'}),_0x596cd1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x38157e,_0x54e4f4,_0x501db9)=>{const _0x588c7a=_0x501db9['mapper']['markerNameToElements'](_0x54e4f4['markerName']);if(_0x588c7a){for(const _0x4fdc59 of _0x588c7a)_0x4fdc59['hasClass']('ck-suggestion-marker-split')&&(_0x501db9['mapper']['unbindElementFromMarkerName'](_0x4fdc59,_0x54e4f4['markerName']),_0x501db9['writer']['remove'](_0x4fdc59));}},{'priority':'high'}),_0x596cd1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x567f9a,_0x2d486f,_0x3b6fe3)=>{_0x3b6fe3['options']['showSuggestionHighlights']&&De(_0x596cd1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x567f9a,_0x2d486f,_0x3b6fe3);},{'priority':'high'});}}class Q extends _0x2bddd5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4aa2a3=this['editor']['plugins']['get']('TrackChangesEditing');_0x4aa2a3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4aa2a3['enableCommand']('findNext'),_0x4aa2a3['enableCommand']('findPrevious'),_0x4aa2a3['enableCommand']('replace'),_0x4aa2a3['enableCommand']('replaceAll');}['handleFindCommand'](_0x575c9f,_0x2788de,_0x3ac1aa={}){const _0x53e5d9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x575c9f(_0x2ff81b=>{let _0x55fedd=('string'==typeof _0x2788de?_0x53e5d9['findByTextCallback'](_0x2788de,_0x3ac1aa):_0x2788de)(_0x2ff81b);Array['isArray'](_0x55fedd)&&(_0x55fedd={'results':_0x55fedd,'searchText':'string'==typeof _0x2788de?_0x2788de:''});const _0x4c3087=_0x55fedd['results']['filter'](_0x4be462=>!0x1===this['_isInDeletionRange'](_0x4be462,_0x2ff81b['item']));return{..._0x55fedd,'results':_0x4c3087};},_0x3ac1aa);}['_isInDeletionRange'](_0x27aaf4,_0x34c4b8){const _0x4b408e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34c4b8,_0x27aaf4['start']),this['editor']['model']['createPositionAt'](_0x34c4b8,_0x27aaf4['end']));for(const _0x4d7b01 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4b408e['getIntersection'](_0x4d7b01['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 _0x2bddd5{['afterInit'](){const _0x22c25e=this['editor']['locale'],_0x149d47=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x32d3b2,commandName:_0x5bc947}of eo)this['editor']['plugins']['has'](_0x32d3b2)&&(_0x149d47['enableDefaultAttributesIntegration'](_0x5bc947),_0x149d47['registerInlineAttribute'](_0x5bc947));_0x149d47['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x22c25e,'FORMAT_FONT_SIZE')),_0x149d47['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x22c25e,'FORMAT_FONT_FAMILY')),_0x149d47['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x22c25e,'FORMAT_FONT_COLOR')),_0x149d47['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x22c25e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5977a4=this['editor'],_0x4fb7bf=_0x5977a4['locale'];_0x5977a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b5e4a=>{const _0x59833e=_0x4fb7bf['t'];if('formatInline'!=_0x1b5e4a['type'])return;const {data:_0x53abe6}=_0x1b5e4a;if(null!=_0x53abe6){if('fontSize'==_0x53abe6['commandName']){const _0x2c6422=_0x53abe6['commandParams'][0x0]['value'];if(_0x2c6422){const _0x2f3d96=_0x59833e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3f7150=>_0x3f7150['model']==_0x2c6422)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4fb7bf,'*Set\x20font\x20size:*\x20%0',_0x2f3d96)};}return{'type':'format','content':o(_0x4fb7bf,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x53abe6['commandName']){const _0x429769=_0x53abe6['commandParams'][0x0]['value'];return _0x429769?{'type':'format','content':o(_0x4fb7bf,'*Set\x20font\x20family:*\x20%0',_0x429769)}:{'type':'format','content':o(_0x4fb7bf,'*Reset\x20font\x20family*')};}if('fontColor'==_0x53abe6['commandName']){const _0x183993=_0x53abe6['commandParams'][0x0]['value'];if(_0x183993){const _0x23f47f=_0x38fe7e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x491bde=>_0x491bde['model']==_0x183993);let _0x5e1b64=_0x183993,_0x5cf7c3='';return _0x23f47f&&(_0x5e1b64=_0x23f47f['label'],_0x5cf7c3=_0x59833e(_0x5e1b64)['toLowerCase']()),{'type':'format','content':o(_0x4fb7bf,'*Set\x20font\x20color:*\x20%0',_0x5cf7c3)['trim'](),'color':{'value':_0x183993,'title':_0x5cf7c3||_0x5e1b64}};}return{'type':'format','content':o(_0x4fb7bf,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x53abe6['commandName']){const _0x5bf341=_0x53abe6['commandParams'][0x0]['value'];if(_0x5bf341){const _0x1d807c=_0x38fe7e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x24d78d=>_0x24d78d['model']==_0x5bf341);let _0x2bf6ef=_0x5bf341,_0x1382ad='';return _0x1d807c&&(_0x2bf6ef=_0x1d807c['label'],_0x1382ad=_0x59833e(_0x2bf6ef)['toLowerCase']()),{'type':'format','content':o(_0x4fb7bf,'*Set\x20font\x20background\x20color:*\x20%0',_0x1382ad)['trim'](),'color':{'value':_0x5bf341,'title':_0x1382ad||_0x2bf6ef}};}return{'type':'format','content':o(_0x4fb7bf,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x2bddd5{['afterInit'](){const _0x5cdf55=this['editor'],_0x5aeae8=_0x5cdf55['plugins']['get']('TrackChangesEditing'),_0x227ef6=_0x5cdf55['commands']['get']('copyFormat'),_0x57a670=_0x5cdf55['commands']['get']('pasteFormat');_0x227ef6&&_0x57a670&&(_0x5aeae8['enableDefaultAttributesIntegration']('pasteFormat'),_0x5aeae8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x331631=this['editor'],_0x1e0833=_0x331631['locale'];_0x331631['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa91611=>{if('formatBlock'!=_0xa91611['type']&&'formatInline'!=_0xa91611['type'])return;const {data:_0x2eeb27}=_0xa91611;if(_0x2eeb27&&'pasteFormat'===_0x2eeb27['commandName']){const _0x4c5e7e=[],_0x483b3e=_0x2eeb27['commandParams'][0x0];for(const [_0x4302c1,_0x5bd046]of Object['entries'](_0x483b3e))_0x4c5e7e['push'](ro(_0x331631,_0x4302c1,_0x5bd046));return _0x4c5e7e['length']?{'type':'format','content':o(_0x1e0833,'*Set\x20format\x20to:*\x20%0',_0x4c5e7e['join'](',\x20'))}:{'type':'format','content':o(_0x1e0833,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x20b73f,_0xbb9f19,_0x495feb){const _0x482493=_0x20b73f['locale']['t'],_0x57e971=_0xbb9f19['split'](/(?=[A-Z])/)['join']('\x20'),_0x9c1f61=_0x482493(_0x57e971['charAt'](0x0)['toUpperCase']()+_0x57e971['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x495feb)return _0x9c1f61;if('fontColor'===_0xbb9f19||'fontBackgroundColor'===_0xbb9f19){const _0x2a1ad9=_0x38fe7e(_0x20b73f['config']['get']('fontColor.colors'))['find'](_0x53a32f=>_0x53a32f['model']==_0x495feb);return _0x9c1f61+'\x20('+(_0x2a1ad9?_0x482493(_0x2a1ad9['label'])['toLowerCase']():_0x495feb)+')';}if('fontSize'===_0xbb9f19&&isNaN(parseFloat(_0x495feb))){const _0x11680a=_0x20b73f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x20b73f['config']['get']('fontSize.options'))['find'](_0x3f09c3=>_0x3f09c3['model']==_0x495feb);return _0x9c1f61+'\x20('+(_0x11680a?_0x482493(_0x11680a['title'])['toLowerCase']():_0x495feb)+')';}return _0x9c1f61+'\x20('+_0x495feb+')';}class Z extends _0x2bddd5{['_headingOptions'];['afterInit'](){const _0x2a4451=this['editor'];if(!_0x2a4451['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2a4451['config']['get']('heading.options');const _0x5017f9=_0x2a4451['locale'],_0x2760cb=_0x2a4451['plugins']['get']('TrackChangesEditing');_0x2760cb['enableDefaultAttributesIntegration']('heading');for(const _0x38be10 of this['_headingOptions'])'paragraph'!=_0x38be10['model']&&_0x2760cb['descriptionFactory']['registerElementLabel'](_0x38be10['model'],_0x55885e=>{const _0x582e61=this['_getHeadingLevel'](_0x38be10['model']);return null!==_0x582e61?_0x442f9c(_0x55885e,_0x582e61):_0x4b17d8(_0x55885e,_0x38be10['title']);});function _0x442f9c(_0x22dd18,_0x38386a){return o(_0x5017f9,'ELEMENT_HEADING',[_0x22dd18,_0x38386a]);}function _0x4b17d8(_0x323d13,_0x253a1b){return o(_0x5017f9,'ELEMENT_HEADING_CUSTOM',[_0x323d13,_0x253a1b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45d6ce=this['editor'],_0x54bdb8=_0x45d6ce['locale'];function _0x4932eb(_0x2201b0,_0x53ea70){return o(_0x54bdb8,'ELEMENT_HEADING_CUSTOM',[_0x2201b0,_0x53ea70]);}_0x45d6ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xea2091=>{if('formatBlock'!=_0xea2091['type'])return;const {data:_0x49b0b4}=_0xea2091;if(_0x49b0b4&&'heading'==_0x49b0b4['commandName']){const _0x14ed09=_0x49b0b4['commandParams'][0x0]['value'],_0x1fb019=this['_getHeadingLevel'](_0x14ed09);if(null!==_0x1fb019)return{'type':'format','content':o(_0x54bdb8,'*Change\x20to:*\x20%0',(_0x558289=0x1,_0xfadfac=_0x1fb019,o(_0x54bdb8,'ELEMENT_HEADING',[_0x558289,_0xfadfac])))};const _0x4465f5=this['_headingOptions']['find'](_0x27788e=>_0x27788e['model']===_0x14ed09)['title'];return{'type':'format','content':o(_0x54bdb8,'*Change\x20to:*\x20%0',_0x4932eb(0x1,_0x4465f5))};}var _0x558289,_0xfadfac;});}['_getHeadingLevel'](_0x4f754d){const _0x33fd02=_0x4f754d['match'](/^heading(\d+)/);if(_0x33fd02)return _0x33fd02[0x1];const _0x276679=this['_headingOptions']?.['find'](_0x28a55c=>_0x28a55c['model']==_0x4f754d);if(_0x276679&&_0x276679['view']){const _0x216992=_0x276679['view'],_0x54d0cc=(_0x216992['name']??_0x216992)['match'](/^h(\d+)/);if(_0x54d0cc)return _0x54d0cc[0x1];}return null;}}class tt extends _0x2bddd5{['afterInit'](){const _0x171f82=this['editor'];if(!_0x171f82['plugins']['has']('HighlightEditing'))return;const _0x50b699=_0x171f82['plugins']['get']('TrackChangesEditing'),_0x189aa9=_0x171f82['locale'];_0x50b699['enableDefaultAttributesIntegration']('highlight'),_0x50b699['registerInlineAttribute']('highlight'),_0x50b699['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x189aa9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b4ade=this['editor'],_0x2e57ef=_0x5b4ade['locale'];_0x5b4ade['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5262a2=>{if('formatInline'!=_0x5262a2['type'])return;const {data:_0x3bb05f}=_0x5262a2;if(_0x3bb05f&&'highlight'==_0x3bb05f['commandName']){const _0x35a8cb=_0x2e57ef['t'],_0x1c9e2c=_0x3bb05f['commandParams'][0x0]['value'];if(_0x1c9e2c){const _0xce0a69=_0x5b4ade['config']['get']('highlight.options')['find'](_0x125c63=>_0x125c63['model']==_0x1c9e2c),_0x559227=_0x35a8cb(_0xce0a69['title'])['toLowerCase']();return{'type':'format','content':o(_0x2e57ef,'*Set\x20highlight:*\x20%0',_0x559227),'color':{'value':_0xce0a69['color'],'title':_0xce0a69['title']}};}return{'type':'format','content':o(_0x2e57ef,'*Remove\x20highlight*',o(_0x2e57ef,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2bddd5{['afterInit'](){const _0x429014=this['editor'];if(!_0x429014['plugins']['has']('HorizontalLineEditing'))return;_0x429014['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x378fb7=_0x429014['plugins']['get']('TrackChangesEditing'),_0x493927=_0x429014['locale'];_0x378fb7['descriptionFactory']['registerElementLabel']('horizontalLine',_0x50e50a=>o(_0x493927,'ELEMENT_HORIZONTAL_LINE',_0x50e50a)),_0x429014['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x56995b,{writer:_0x1d8b76,options:_0x4702f5})=>{if(!_0x4702f5['showSuggestionHighlights'])return null;const _0x17c493=_0x1d8b76['createContainerElement']('div'),_0x344d49=_0x1d8b76['createEmptyElement']('hr');return _0x1d8b76['addClass']('ck-horizontal-line',_0x17c493),_0x1d8b76['insert'](_0x1d8b76['createPositionAt'](_0x17c493,0x0),_0x344d49),_0x17c493;},'converterPriority':'high'});}}class nt extends _0x2bddd5{['afterInit'](){const _0x6ba8f9=this['editor'];if(!_0x6ba8f9['plugins']['has']('HtmlEmbed'))return;const _0x28389f=_0x6ba8f9['plugins']['get']('TrackChangesEditing'),_0x15abdb=_0x6ba8f9['locale'];_0x28389f['descriptionFactory']['registerElementLabel']('rawHtml',_0x21f5e3=>o(_0x15abdb,'ELEMENT_HTML_EMBED',_0x21f5e3)),_0x28389f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x28389f['registerBlockAttribute']('value'),_0x28389f['descriptionFactory']['registerDescriptionCallback'](_0x4cad4f=>{if('attribute'!=_0x4cad4f['type'])return;const {data:_0x4d27a1}=_0x4cad4f;if(_0x4d27a1&&'value'==_0x4d27a1['key']&&_0x4cad4f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3ed3f5=o(_0x15abdb,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x15abdb,'*Change\x20%0\x20content*',_0x3ed3f5)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x183e0a=this['editor'],_0x13ecd0=_0x183e0a['locale'];_0x183e0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34a59f=>{if('formatBlock'!=_0x34a59f['type'])return;const {data:_0x4a5d16}=_0x34a59f;if(_0x4a5d16&&'htmlEmbed'==_0x4a5d16['commandName']){const _0x5e5153=o(_0x13ecd0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x13ecd0,'*Change\x20%0\x20content*',_0x5e5153)};}});}}class et extends _0x2bddd5{['afterInit'](){const _0xe764e=this['editor'];if(!_0xe764e['plugins']['has']('ImageEditing'))return;const _0x3aba5a=_0xe764e['plugins']['get']('TrackChangesEditing'),_0x3a85b8=_0xe764e['plugins']['get']('ImageUtils'),_0x56bff7=_0xe764e['locale'];_0x3aba5a['enableCommand']('insertImage'),_0x3aba5a['descriptionFactory']['registerElementLabel']('imageBlock',_0x1e4601=>o(_0x56bff7,'ELEMENT_IMAGE',_0x1e4601)),_0x3aba5a['descriptionFactory']['registerElementLabel']('imageInline',_0x1f74c5=>o(_0x56bff7,'ELEMENT_INLINE_IMAGE',_0x1f74c5)),_0x3aba5a['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x56bff7,'ELEMENT_CAPTION')),_0xe764e['plugins']['has']('ImageUploadEditing')&&_0x3aba5a['enableCommand']('uploadImage'),_0xe764e['plugins']['has']('ImageBlockEditing')&&_0xe764e['plugins']['has']('ImageInlineEditing')&&(_0x3aba5a['enableCommand']('imageTypeInline',(_0x4f050c,_0x1e5736)=>{const _0x2da9e9=_0x3a85b8['getClosestSelectedImageElement'](_0xe764e['model']['document']['selection']);_0xe764e['model']['change'](()=>{_0x3aba5a['markBlockFormat'](_0x2da9e9,{'commandName':'imageTypeInline','commandParams':[_0x1e5736]},[],'convertBlockImageToInline');});}),_0x3aba5a['enableCommand']('imageTypeBlock',(_0xa5f33d,_0xbd0184)=>{_0xe764e['model']['change'](_0x4053d6=>{let _0x271822=_0x3a85b8['getClosestSelectedImageElement'](_0xe764e['model']['document']['selection']),_0xbd216f=_0x4053d6['createRangeOn'](_0x271822);const _0x5b528a=_0x26c143['fromPosition'](_0xbd216f['start'],'toPrevious'),_0xb11c8=_0x26c143['fromPosition'](_0xbd216f['end'],'toNext');_0x3aba5a['forceDefaultExecution'](()=>_0xa5f33d(_0xbd0184)),_0x271822=_0x3a85b8['getClosestSelectedImageElement'](_0xe764e['model']['document']['selection']),_0xbd216f=_0x4053d6['createRangeOn'](_0x271822);const _0x23a33a=_0x4053d6['createRange'](_0x5b528a,_0xb11c8);_0x5b528a['detach'](),_0xb11c8['detach'](),_0x3aba5a['markBlockFormat'](_0x271822,{'commandName':'imageTypeInline','commandParams':[_0xbd0184]},[],'convertInlineImageToBlock'),_0x23a33a['start']['isBefore'](_0xbd216f['start'])&&_0x3aba5a['markInsertion'](_0x4053d6['createRange'](_0x23a33a['start'],_0xbd216f['start']),'convertInlineImageToBlock'),_0xbd216f['end']['isBefore'](_0x23a33a['end'])&&_0x3aba5a['markInsertion'](_0x4053d6['createRange'](_0xbd216f['end'],_0x23a33a['end']),'convertInlineImageToBlock');});}),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3aba5a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3999a1])=>{const _0x2fb126=_0x3aba5a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x39e8f4=_0x3999a1['start'],_0x15e7d8=_0x3999a1['end'];const _0x2c0caa=_0xe764e['model']['schema']['getNearestSelectionRange'](_0x39e8f4,'backward'),_0x57a4d3=_0xe764e['model']['schema']['getNearestSelectionRange'](_0x15e7d8,'forward');_0x2c0caa['isCollapsed']&&(_0x39e8f4=_0x2c0caa['start']),_0x57a4d3['isCollapsed']&&(_0x15e7d8=_0x57a4d3['end']),_0x2fb126([_0xe764e['model']['createRange'](_0x39e8f4,_0x15e7d8)]);}),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4c05d0),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4c05d0)),_0xe764e['plugins']['has']('ImageCaptionEditing')&&(_0x3aba5a['enableCommand']('toggleImageCaption',(_0x4f21e2,_0x579e28)=>{const _0x4900c0=_0xe764e['plugins']['get']('ImageCaptionUtils');let _0x388463=_0x3a85b8['getClosestSelectedImageElement'](_0xe764e['model']['document']['selection']),_0x1e86c3=_0x4900c0['getCaptionFromImageModelElement'](_0x388463);_0xe764e['model']['change'](()=>{if(_0x1e86c3)return void _0x3aba5a['markDeletion'](_0xe764e['model']['createRangeOn'](_0x1e86c3));const _0x5704f9=_0x3a85b8['isBlockImage'](_0x388463);_0x4f21e2(_0x579e28),_0x388463=_0x3a85b8['getClosestSelectedImageElement'](_0xe764e['model']['document']['selection']),_0x1e86c3=_0x4900c0['getCaptionFromImageModelElement'](_0x388463),_0x3aba5a['markInsertion'](_0xe764e['model']['createRangeOn'](_0x1e86c3),_0x5704f9?null:'imageCaption');});}),_0x3aba5a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4c05d0));const _0x1a55b9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x568147(_0x2b2195,_0x2d681a){const _0x4de3d6=_0x1a55b9['findIndex'](({type:_0x299bab,subType:_0x31a27c})=>_0x2b2195['type']==_0x299bab&&_0x2b2195['subType']==_0x31a27c),_0x240d36=_0x1a55b9['findIndex'](({type:_0xfd1ab1,subType:_0x416b45})=>_0x2d681a['type']==_0xfd1ab1&&_0x2d681a['subType']==_0x416b45);if(_0x4de3d6<0x0||_0x240d36<0x0)return!0x1;const _0x59198d=_0x2b2195['getFirstRange'](),_0x565324=_0x2d681a['getFirstRange']();if((0x0==_0x4de3d6||0x1==_0x4de3d6)&&0x2==_0x240d36&&_0x59198d['isIntersecting'](_0x565324))return!0x0;if(0x2==_0x4de3d6&&0x3==_0x240d36){const _0x494078=_0x3aba5a['_findSuggestions'](_0x59198d,'insertion')['filter'](({suggestion:_0x85d563,meta:_0x19bb88})=>_0x19bb88['isOwn']&&'convertInlineImageToBlock'==_0x85d563['subType']);if(_0x494078['length']>0x1&&_0x565324['end']['isEqual'](_0x59198d['start']))return!0x0;if(0x1==_0x494078['length']&&(_0x59198d['start']['isEqual'](_0x565324['end'])||_0x59198d['end']['isEqual'](_0x565324['start'])))return!0x0;}if(0x3==_0x4de3d6&&0x3==_0x240d36&&_0x59198d['start']['isBefore'](_0x565324['start'])){const _0x25029f=_0x59198d['end']['nodeAfter'],_0x1356c2=_0x565324['start']['nodeBefore'];return _0x3a85b8['isBlockImage'](_0x25029f)&&_0x25029f===_0x1356c2;}return!0x1;}function _0x4c05d0(_0x5d63a0,_0x28e79a){return _0x568147(_0x5d63a0,_0x28e79a)?[_0x5d63a0,_0x28e79a]:_0x568147(_0x28e79a,_0x5d63a0)?[_0x28e79a,_0x5d63a0]:null;}_0xe764e['plugins']['has']('ImageResize')&&(_0x3aba5a['enableDefaultAttributesIntegration']('resizeImage'),_0x3aba5a['registerBlockAttribute']('resizedWidth'),_0x3aba5a['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x56bff7,'FORMAT_IMAGE_SIZE'))),_0xe764e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3aba5a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3aba5a['registerBlockAttribute']('alt')),_0xe764e['plugins']['has']('PictureEditing')&&(_0x3aba5a['registerBlockAttribute']('sources'),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x4b706e=>{if('attribute'!=_0x4b706e['type'])return;const {data:_0x478b0e}=_0x4b706e;return _0x478b0e&&'sources'==_0x478b0e['key']?{'type':'format','content':''}:void 0x0;})),_0xe764e['plugins']['has']('ImageSizeAttributes')&&(_0x3aba5a['registerBlockAttribute']('width'),_0x3aba5a['registerBlockAttribute']('height'),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x12015b=>{if('attribute'!=_0x12015b['type'])return;const {data:_0x429bfb}=_0x12015b;return!_0x429bfb||'width'!=_0x429bfb['key']&&'height'!=_0x429bfb['key']?void 0x0:{'type':'format','content':''};})),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x48cd38=>{if(!!_0x1a55b9['find'](({type:_0x27c2a1,subType:_0x1e55e4})=>_0x48cd38['type']==_0x27c2a1&&_0x48cd38['subType']==_0x1e55e4))return _0x48cd38['previous']?{}:void 0x0;}),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x2eb464=>{if('insertion'==_0x2eb464['type']||'deletion'==_0x2eb464['type']){const _0x2fb3d3=_0x2eb464['getContainedElement']();if(_0x2fb3d3&&_0x2fb3d3['is']('element','caption'))return{'type':'insertion'==_0x2eb464['type']?'addObject':'removeObject','element':_0x2fb3d3,'quantity':0x1};}}),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x269191=>'formatBlock'==_0x269191['type']&&'convertInlineImageToBlock'==_0x269191['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x269191['type']&&'convertBlockImageToInline'==_0x269191['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3aba5a['descriptionFactory']['registerDescriptionCallback'](_0x15c8a7=>{if('attribute'!=_0x15c8a7['type'])return;const {data:_0x196a67}=_0x15c8a7;if(!_0x196a67||'alt'!=_0x196a67['key'])return;const _0x2fa6b1=_0x196a67['newValue'];return _0x2fa6b1?{'type':'format','content':o(_0x56bff7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2fa6b1+'\x22')}:{'type':'format','content':o(_0x56bff7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46924e=this['editor'],_0x4ec167=_0x46924e['locale'];_0x46924e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a9b32=>{if('formatBlock'!=_0x5a9b32['type']&&'formatInline'!=_0x5a9b32['type'])return;const {data:_0x1eeb7f}=_0x5a9b32;if(_0x1eeb7f){if('imageTextAlternative'==_0x1eeb7f['commandName']){const _0x83537=_0x1eeb7f['commandParams'][0x0]['newValue'];return _0x83537?{'type':'format','content':o(_0x4ec167,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x83537+'\x22')}:{'type':'format','content':o(_0x4ec167,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1eeb7f['commandName']){const _0x2ce2c4=_0x1eeb7f['commandParams'][0x0]['width'];return _0x2ce2c4?{'type':'format','content':o(_0x4ec167,'*Set\x20image\x20width:*\x20%0',_0x2ce2c4)}:{'type':'format','content':o(_0x4ec167,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2bddd5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x36a05c=this['editor']['locale'],_0x4ee96e=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ee96e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4ee96e['registerBlockAttribute']('src'),_0x4ee96e['descriptionFactory']['registerDescriptionCallback'](_0x359a38=>{if('attribute'!=_0x359a38['type'])return;const {data:_0xe363da}=_0x359a38;return _0xe363da&&'src'==_0xe363da['key']?_0xe363da['newValue']&&_0xe363da['oldValue']?{'type':'format','content':o(_0x36a05c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x444ded=this['editor']['plugins']['get']('TrackChangesEditing');_0x444ded['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x444ded['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x444ded['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x444ded['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdba06c=this['editor'],_0x2e6660=_0xdba06c['locale'];_0xdba06c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x375f4f=>{if('formatBlock'!=_0x375f4f['type']&&'formatInline'!=_0x375f4f['type'])return;const {data:_0x46b87e}=_0x375f4f;if(!_0x46b87e||'replaceImageSource'!=_0x46b87e['commandName'])return;return{'type':'format','content':o(_0x2e6660,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x2bddd5{['afterInit'](){const _0x1e7bc4=this['editor'];if(!_0x1e7bc4['plugins']['has']('ImageStyleEditing'))return;const _0x5442d6=_0x1e7bc4['plugins']['get']('TrackChangesEditing'),_0x5e5fde=_0x1e7bc4['plugins']['get']('ImageUtils'),_0x1625b4={};_0x5442d6['enableCommand']('imageStyle',(_0xbc0789,_0x2827f3)=>{const _0x3eaf29=_0x1e7bc4['plugins']['get']('Users')['me'],_0x13863d=_0x1e7bc4['commands']['get']('imageStyle');let _0x5d1718=_0x5e5fde['getClosestSelectedImageElement'](_0x1e7bc4['model']['document']['selection']),_0x1859c0=_0x1e7bc4['model']['createRangeOn'](_0x5d1718),_0x4f70d5=_0x13863d['value'];if(_0x4f70d5==_0x2827f3['value'])return;const _0x410891={'commandName':'imageStyle','commandParams':[_0x2827f3],'formatGroupId':_0x4bb6e6()};_0x1e7bc4['model']['change'](()=>{if(_0x5442d6['getSuggestions']()['filter'](_0x1ee834=>_0x1ee834['isInContent']&&_0x3eaf29==_0x1ee834['author']&&('formatBlock'==_0x1ee834['type']||'formatInline'==_0x1ee834['type'])&&('imageStylePreApply'==_0x1ee834['subType']||'imageStylePostApply'==_0x1ee834['subType'])&&_0x1ee834['getFirstRange']()['isEqual'](_0x1859c0))['forEach'](_0x436470=>_0x5442d6['discardSuggestion'](_0x436470['head'])),_0x5d1718=_0x5e5fde['getClosestSelectedImageElement'](_0x1e7bc4['model']['document']['selection']),_0x1859c0=_0x1e7bc4['model']['createRangeOn'](_0x5d1718),_0x13863d['refresh'](),_0x1e7bc4['commands']['get']('imageTypeInline')['refresh'](),_0x1e7bc4['commands']['get']('imageTypeBlock')['refresh'](),_0x4f70d5=_0x13863d['value'],_0x4f70d5!=_0x2827f3['value'])return _0x5e5fde['isInlineImage'](_0x5d1718)&&_0x13863d['shouldConvertImageType'](_0x2827f3['value'],_0x5d1718)?(_0xbc0789({..._0x2827f3,'setImageSizes':!0x1}),_0x5d1718=_0x5e5fde['getClosestSelectedImageElement'](_0x1e7bc4['model']['document']['selection']),void _0x5442d6['markBlockFormat'](_0x5d1718,{..._0x410891,'commandReversedParams':[{'value':_0x4f70d5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5e5fde['isBlockImage'](_0x5d1718)?_0x5442d6['markBlockFormat'](_0x5d1718,_0x410891,[],'imageStylePostApply'):_0x5442d6['markInlineFormat'](_0x1859c0,_0x410891,'imageStylePostApply'));});});for(const _0x5f3156 of _0x1e7bc4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1625b4[_0x5f3156['name']]=_0x5f3156['title']['toLowerCase']();_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3ea094])=>{_0x5e5fde['setImageNaturalSizeAttributes'](_0x3ea094['getContainedElement']());}),_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5bfc6c,_0x2037d7)=>{_0x5442d6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5bfc6c,{'commandName':_0x2037d7['commandName'],'commandParams':_0x2037d7['commandReversedParams']});}),_0x5442d6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x51b45f,_0x54b38d){if(_0x509d1e(_0x51b45f,_0x54b38d))return[_0x51b45f,_0x54b38d];if(_0x509d1e(_0x54b38d,_0x51b45f))return[_0x54b38d,_0x51b45f];return null;});const _0x33948a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x509d1e(_0x34f5d3,_0x263f1a){const _0x5e38fb=_0x33948a['findIndex'](({type:_0x83f25f,subType:_0x3d41d2})=>_0x34f5d3['type']==_0x83f25f&&_0x34f5d3['subType']==_0x3d41d2),_0x15926b=_0x33948a['findIndex'](({type:_0x118b69,subType:_0x4fccfc})=>_0x263f1a['type']==_0x118b69&&_0x263f1a['subType']==_0x4fccfc);if(_0x5e38fb<0x0||_0x15926b<0x0)return!0x1;const _0x18e593=_0x34f5d3['getFirstRange'](),_0x3c7f32=_0x263f1a['getFirstRange']();if((0x0==_0x5e38fb||0x1==_0x5e38fb)&&0x2==_0x15926b&&_0x18e593['isIntersecting'](_0x3c7f32))return!0x0;if(0x2==_0x5e38fb&&0x3==_0x15926b){const _0x4127c6=_0x5442d6['_findSuggestions'](_0x18e593,'insertion')['filter'](({suggestion:_0x52fc2a,meta:_0x2c109b})=>_0x2c109b['isOwn']&&'convertInlineImageToBlock'==_0x52fc2a['subType']);if(_0x4127c6['length']>0x1&&_0x3c7f32['end']['isEqual'](_0x18e593['start']))return!0x0;if(0x1==_0x4127c6['length']&&(_0x18e593['start']['isEqual'](_0x3c7f32['end'])||_0x18e593['end']['isEqual'](_0x3c7f32['start'])))return!0x0;}if(0x3==_0x5e38fb&&0x3==_0x15926b&&_0x18e593['start']['isBefore'](_0x3c7f32['start'])){const _0x5b95d6=_0x18e593['end']['nodeAfter'],_0x37afec=_0x3c7f32['start']['nodeBefore'];return _0x5e5fde['isBlockImage'](_0x5b95d6)&&_0x5b95d6===_0x37afec;}return!0x1;}_0x1e7bc4['model']['document']['registerPostFixer'](()=>{let _0x38051a=!0x1;const _0x18e7e7=Array['from'](_0x1e7bc4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cf617,data:_0x5d82fb}of _0x18e7e7){const {group:_0x2d56f4,type:_0x7e1e54,subType:_0x1f5ad2,id:_0x31a10a}=_0x5442d6['_splitMarkerName'](_0x1cf617);if('suggestion'==_0x2d56f4&&_0x5442d6['hasSuggestion'](_0x31a10a)){if('formatBlock'==_0x7e1e54&&('imageStylePreApply'==_0x1f5ad2||'imageStylePostApply'==_0x1f5ad2)){const _0x238eec=_0x5442d6['getSuggestion'](_0x31a10a);if(_0x5d82fb['newRange']){const _0x3e7f8a=_0x238eec['getFirstRange']()['getContainedElement']();if(_0x5e5fde['isBlockImage'](_0x3e7f8a))continue;_0x5442d6['discardSuggestion'](_0x238eec),_0x38051a=!0x0;}}if('insertion'==_0x7e1e54&&'imageCaption'==_0x1f5ad2&&!_0x5d82fb['newRange']){const _0x1231cb=_0x5442d6['getSuggestion'](_0x31a10a);_0x1231cb['next']&&_0x1231cb['next']['isInContent']&&(_0x5442d6['discardSuggestion'](_0x1231cb['next']),_0x38051a=!0x0);}}}return _0x38051a;}),this['_registerLegacyDescription'](_0x1625b4);}['_registerLegacyDescription'](_0x3753d7){const _0x4b63a4=this['editor'],_0x323839=_0x4b63a4['locale'];_0x4b63a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f6742=>{if('formatBlock'!=_0x1f6742['type']&&'formatInline'!=_0x1f6742['type'])return;const {data:_0x1ef1b0}=_0x1f6742;if(!_0x1ef1b0||'imageStyle'!=_0x1ef1b0['commandName'])return;const _0x1b022a=_0x1ef1b0['commandParams'][0x0]['value'];return _0x19e09c('side'===_0x1b022a?o(_0x323839,'FORMAT_SIDE_IMAGE'):_0x3753d7[_0x1b022a]||_0x1b022a);function _0x19e09c(_0x3f8396){return{'type':'format','content':o(_0x323839,'*Format:*\x20%0',_0x3f8396)};}});}}class rt extends _0x2bddd5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x51763f){super(_0x51763f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x67114a=this['editor'],_0x54cf73=_0x67114a['commands']['get']('importWord'),_0x59155b=_0x67114a['commands']['get']('trackChanges');_0x54cf73&&(_0x54cf73['on']('execute',(_0x1e5532,[,_0x54a488])=>{this['_trackChangesValueDuringImport']=_0x59155b['value'],_0x54a488['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x54cf73,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x54cf73,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x59155b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x67114a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2800d8,_0x5c52ac){const {suggestions:_0x511f33}=_0x5c52ac,_0x5dd845=this['editor']['commands']['get']('trackChanges'),_0x1c9a62=_0x5dd845['value'];this['_trackChangesValueDuringImport']!==_0x1c9a62&&(_0x5dd845['execute'](),this['_trackChangesExecuted']=!0x0),_0x511f33&&_0x511f33['forEach'](({id:_0x5eb512,type:_0x14a3ec,author:_0x252e10,created_at:_0x379721})=>{const _0x5da142={'id':_0x5eb512,'type':_0x14a3ec,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x252e10,'createdAt':_0x379721?new Date(_0x379721):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5da142);});}}class at extends _0x2bddd5{['afterInit'](){const _0x17d233=this['editor'],_0x40a247=_0x17d233['plugins']['get']('TrackChangesEditing');if(_0x17d233['plugins']['has']('IndentEditing')&&(_0x40a247['enableCommand']('indent'),_0x40a247['enableCommand']('outdent')),_0x17d233['plugins']['has']('IndentBlock')){for(const _0x595d4f of['indentBlock','outdentBlock'])_0x40a247['enableDefaultAttributesIntegration'](_0x595d4f);}const _0x1659d4=_0x17d233['locale'];_0x40a247['registerBlockAttribute']('blockIndent'),_0x40a247['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1659d4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x72d514=this['editor'],_0x28a383=_0x72d514['locale'],_0x441d7e=_0x72d514['plugins']['get']('TrackChangesEditing');_0x441d7e['descriptionFactory']['registerDescriptionCallback'](_0x3ef741=>{if('formatBlock'!=_0x3ef741['type'])return;const {data:_0x49994d}=_0x3ef741;if(!_0x49994d)return;if('indentBlock'!=_0x49994d['commandName']&&'outdentBlock'!=_0x49994d['commandName'])return;const _0x188a21=_0x3ef741['getItems']()[0x0],_0x4aa3a3=_0x441d7e['descriptionFactory']['getItemLabel'](_0x188a21);return'indentBlock'==_0x49994d['commandName']?{'type':'format','content':o(_0x28a383,'*Indent:*\x20%0',_0x4aa3a3)}:'outdentBlock'==_0x49994d['commandName']?{'type':'format','content':o(_0x28a383,'*Outdent:*\x20%0',_0x4aa3a3)}:void 0x0;});}}class ct extends _0x2bddd5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x2bddd5{['afterInit'](){const _0x1f39ee=this['editor'];if(!_0x1f39ee['plugins']['has']('LinkEditing'))return;const _0x125083=_0x1f39ee['plugins']['get']('TrackChangesEditing'),_0x30ece7=_0x1f39ee['commands']['get']('link');_0x125083['enableDefaultAttributesIntegration']('link'),_0x125083['enableDefaultAttributesIntegration']('unlink'),_0x125083['registerInlineAttribute']('linkHref');for(const _0x331221 of _0x30ece7['manualDecorators'])_0x125083['registerInlineAttribute'](_0x331221['id']),_0x125083['descriptionFactory']['registerAttributeLabel'](_0x331221['id'],'link\x20('+_0x331221['label']['toLowerCase']()+')');_0x125083['descriptionFactory']['registerDescriptionCallback'](_0x4b325c=>{if('attribute'!=_0x4b325c['type'])return;const {data:_0x194bb5}=_0x4b325c;if(!_0x194bb5||'linkHref'!=_0x194bb5['key'])return;const _0x25ded3=_0x194bb5['newValue'],_0x5acca0=_0x1f39ee['locale'];return{'type':'format','content':null==_0x25ded3?o(_0x5acca0,'*Remove\x20link*'):o(_0x5acca0,'*Set\x20link:*\x20%0','\x22'+_0x25ded3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d39ee=this['editor'],_0x30d3b8=_0x5d39ee['locale'];_0x5d39ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x153ee9=>{if('formatInline'!=_0x153ee9['type'])return;const {data:_0x2d2408}=_0x153ee9;if(_0x2d2408){if('link'==_0x2d2408['commandName']){const _0x2247ef=_0x2d2408['commandParams'][0x0];return{'type':'format','content':o(_0x30d3b8,'*Set\x20link:*\x20%0','\x22'+_0x2247ef+'\x22')};}return'unlink'==_0x2d2408['commandName']?{'type':'format','content':o(_0x30d3b8,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2bddd5{['afterInit'](){const _0x29f920=this['editor'],_0x295279=_0x29f920['locale'];if(!_0x29f920['plugins']['has']('LegacyListEditing'))return;const _0x51a779=_0x29f920['plugins']['get']('TrackChangesEditing'),_0x2a75c6=_0x29f920['plugins']['has']('LegacyTodoListEditing');function _0x3f466b(_0x31bbcf){return()=>{const _0x3a54fc=_0x29f920['model']['document']['selection'],_0x3be6ea=_0x29f920['commands']['get'](_0x31bbcf);if(_0x3be6ea['value'])return void _0x29f920['execute']('paragraph',{});const _0x5340e5=_0x31bbcf['slice'](0x0,-0x4),_0x41dfe4=function(_0x5a00b0,_0x1dd686,_0x209a61){let _0x492cef=Array['from'](_0x5a00b0)['filter'](_0x3481c1=>function(_0x256f3e,_0x3f4a91){return _0x3f4a91['checkChild'](_0x256f3e['parent'],'listItem')&&!_0x3f4a91['isObject'](_0x256f3e);}(_0x3481c1,_0x209a61));_0x492cef=_0x492cef['filter'](_0x1d9c63=>!_0x1d9c63['is']('element','listItem')||_0x1d9c63['getAttribute']('listType')!=_0x1dd686);const _0x3eceab=new Set();for(const _0x463b7d of _0x492cef)_0x463b7d['is']('element','listItem')?_0x3eceab['add'](Le(_0x463b7d)):_0x3eceab['add'](_0x463b7d);return Array['from'](_0x3eceab);}(_0x3a54fc['getSelectedBlocks'](),_0x5340e5,_0x29f920['model']['schema']);_0x29f920['model']['change'](()=>{for(const _0x93bcb of _0x41dfe4)_0x51a779['markBlockFormat'](_0x93bcb,{'commandName':_0x31bbcf,'commandParams':[{'forceValue':!_0x3be6ea['value']}],'formatGroupId':'blockName'},Ee(_0x93bcb));});};}function _0xbd9cf4(_0x4621b9){return()=>{const _0x1ddac6=function(_0x1b0747){let _0x13b1d6=Array['from'](_0x1b0747);const _0x2a0977=_0x13b1d6['findIndex'](_0x241e63=>'listItem'!=_0x241e63['name']);return _0x2a0977>-0x1&&(_0x13b1d6=_0x13b1d6['slice'](0x0,_0x2a0977)),_0x13b1d6;}(_0x29f920['model']['document']['selection']['getSelectedBlocks']()),_0x56916e=_0x29f920['model']['createRange'](_0x29f920['model']['createPositionAt'](_0x1ddac6[0x0],'before'),_0x29f920['model']['createPositionAt'](_0x1ddac6[_0x1ddac6['length']-0x1],'end'));_0x29f920['model']['change'](()=>{_0x51a779['markBlockFormat'](_0x56916e,{'commandName':_0x4621b9,'commandParams':[],'formatGroupId':'listIndent'},function(_0xa3b988){const _0x11c7cb=new Set();for(const _0x54fe14 of _0xa3b988){let _0x368a4a=_0x54fe14['nextSibling'];for(;_0x368a4a&&_0x368a4a['getAttribute']('listIndent')>_0x54fe14['getAttribute']('listIndent');)_0x11c7cb['add'](_0x368a4a),_0x368a4a=_0x368a4a['nextSibling'];}return Array['from'](_0x11c7cb);}(_0x1ddac6));});};}_0x51a779['enableCommand']('numberedList',_0x3f466b('numberedList')),_0x51a779['enableCommand']('bulletedList',_0x3f466b('bulletedList')),_0x2a75c6&&_0x51a779['enableCommand']('todoList',_0x3f466b('todoList')),_0x51a779['enableCommand']('indentList',_0xbd9cf4('indentList')),_0x51a779['enableCommand']('outdentList',_0xbd9cf4('outdentList')),_0x2a75c6&&_0x51a779['enableCommand']('checkTodoList',()=>{const _0x44baa0=_0x29f920['commands']['get']('checkTodoList'),_0x12bfe2=Array['from'](_0x44baa0['_selectedElements']);_0x12bfe2['filter'](_0xcc840c=>_0xcc840c['getAttribute']('todoListChecked')!=_0x44baa0['value']),_0x29f920['model']['change'](()=>{for(const _0x5b6e13 of _0x12bfe2)_0x51a779['markBlockFormat'](_0x5b6e13,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x44baa0['value']}]});});}),_0x51a779['descriptionFactory']['registerElementLabel']('listItem',_0x179acd=>o(_0x295279,'ELEMENT_LIST_ITEM',_0x179acd)),_0x51a779['descriptionFactory']['registerDescriptionCallback'](_0xeaa239=>{if('formatBlock'!=_0xeaa239['type']&&'formatInline'!=_0xeaa239['type'])return;const {data:_0x58af86}=_0xeaa239;if(_0x58af86){if('numberedList'==_0x58af86['commandName']||'bulletedList'==_0x58af86['commandName']||'todoList'==_0x58af86['commandName'])switch(_0x58af86['commandName']['replace']('List','')){case'bulleted':return _0x39a33d(o(_0x295279,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39a33d(o(_0x295279,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39a33d(o(_0x295279,'ELEMENT_TODO_LIST'));}if('indentList'==_0x58af86['commandName'])return{'type':'format','content':o(_0x295279,'*Indent:*\x20%0',o(_0x295279,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x58af86['commandName'])return{'type':'format','content':o(_0x295279,'*Outdent:*\x20%0',o(_0x295279,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x58af86['commandName'])return _0x58af86['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x295279,'*Check\x20item*')}:{'type':'format','content':o(_0x295279,'*Uncheck\x20item*')};}function _0x39a33d(_0xd68697){return{'type':'format','content':o(_0x295279,'*Change\x20to:*\x20%0',_0xd68697)};}});}}function Le(_0x1b63c6){const _0x4a486e=_0x1b63c6['getAttribute']('listIndent');if(0x0==_0x4a486e)return _0x1b63c6;let _0x1a6b31=_0x1b63c6;for(;_0x1b63c6['previousSibling']&&_0x1b63c6['previousSibling']['is']('element','listItem');){const _0x3d9a72=_0x1b63c6['previousSibling']['getAttribute']('listIndent');if(_0x3d9a72==_0x4a486e)_0x1a6b31=_0x1b63c6['previousSibling'];else{if(_0x3d9a72<_0x4a486e)break;}_0x1b63c6=_0x1b63c6['previousSibling'];}return _0x1a6b31;}function Ee(_0x287be9){const _0x2d36f7=[];if(_0x287be9['is']('element','listItem')&&_0x287be9['getAttribute']('listIndent')>0x0){let _0x224f11=_0x287be9['nextSibling'];for(;_0x224f11&&'listItem'==_0x224f11['name']&&_0x224f11['getAttribute']('listIndent')==_0x287be9['getAttribute']('listIndent');)_0x2d36f7['push'](_0x224f11),_0x224f11=_0x224f11['nextSibling'];}return _0x2d36f7;}class ht extends _0x2bddd5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x59e271=this['editor']['config']['get']('list.properties'),_0x10e345=this['editor']['plugins']['get']('TrackChangesEditing');_0x59e271['styles']&&_0x10e345['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x59e271['reversed']&&_0x10e345['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x59e271['startIndex']&&_0x10e345['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x10e345['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1e5bc3,_0x42baf6={}){const _0xad051d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57b42d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xad051d['markMultiRangeBlockFormat'](_0x57b42d,{'commandName':'listStyle','commandParams':[{'type':_0x42baf6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xcd826c,_0x5c6e08={}){const _0x5a1d30=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bc0c9=this['_getSuggestionBlocks'](_0x1811e9=>_0x1811e9['is']('element','listItem')&&'numbered'===_0x1811e9['getAttribute']('listType'));if(_0x5bc0c9['length']<0x1)return;const _0x302608=_0x5bc0c9['map'](_0x9f1b82=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x9f1b82,'before'),this['editor']['model']['createPositionAt'](_0x9f1b82,0x0)));this['editor']['model']['change'](()=>{_0x5a1d30['markMultiRangeBlockFormat'](_0x302608,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c6e08['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x44473f,_0x580f92={}){const _0x4e64f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1357ac=this['_getSuggestionBlocks'](_0xe5e590=>_0xe5e590['is']('element','listItem')&&'numbered'===_0xe5e590['getAttribute']('listType'));if(_0x1357ac['length']<0x1)return;const _0x27d280=_0x1357ac['map'](_0x2203aa=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2203aa,'before'),this['editor']['model']['createPositionAt'](_0x2203aa,0x0)));this['editor']['model']['change'](()=>{_0x4e64f6['markMultiRangeBlockFormat'](_0x27d280,{'commandName':'listStart','commandParams':[{'startIndex':_0x580f92['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x210659){if('formatBlock'!=_0x210659['type']&&'formatInline'!=_0x210659['type'])return;const _0x1ae1b2=this['editor']['locale'],{data:_0x161a99}=_0x210659;if(!_0x161a99)return;let _0x31d52f,_0x16684f;switch(_0x161a99['commandName']){case'listStyle':_0x31d52f='*Change\x20to:*\x20%0',_0x16684f={'type':'format','content':o(_0x1ae1b2,_0x31d52f,o(_0x1ae1b2,this['_getTranslationKeyForListStyle'](_0x161a99['commandParams'][0x0]['type'])))};break;case'listReversed':_0x31d52f=_0x161a99['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x16684f={'type':'format','content':o(_0x1ae1b2,_0x31d52f)};break;case'listStart':_0x31d52f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x16684f={'type':'format','content':o(_0x1ae1b2,_0x31d52f,_0x161a99['commandParams'][0x0]['startIndex'])};}return _0x16684f;}['_getSuggestionBlocksForListStyle'](){const _0x1e4bad=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b8fb6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5b8fb6[0x0]?.['is']('element','listItem')&&_0x5b8fb6['unshift'](..._0x1e4bad['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5b8fb6[_0x5b8fb6['length']-0x1]?.['is']('element','listItem')&&_0x5b8fb6['push'](..._0x1e4bad['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5b8fb6=[...new Set(_0x5b8fb6)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5b8fb6=_0x5b8fb6['filter'](_0x3b273a=>_0x3b273a['is']('element','listItem'))),_0x5b8fb6;}['_getSuggestionBlocks'](_0x53e70b){const _0x5de439=this['editor']['plugins']['get']('LegacyListUtils');let _0x39c04b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x53e70b)['map'](_0x372bf6=>{const _0x7370f1=this['editor']['model']['createPositionAt'](_0x372bf6,0x0);return[..._0x5de439['getSiblingNodes'](_0x7370f1,'backward'),..._0x5de439['getSiblingNodes'](_0x7370f1,'forward')];})['flat']();return _0x39c04b=[...new Set(_0x39c04b)],_0x39c04b;}['_getTranslationKeyForListStyle'](_0x4982a0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4982a0)||'default')['toUpperCase']()+'_LIST_'+_0x4982a0['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x2bddd5{['afterInit'](){const _0x173faf=this['editor'];if(!_0x173faf['plugins']['has']('MediaEmbedEditing'))return;const _0x5727b1=_0x173faf['plugins']['get']('TrackChangesEditing'),_0x3948ca=_0x173faf['locale'];_0x5727b1['enableCommand']('mediaEmbed'),_0x5727b1['descriptionFactory']['registerElementLabel']('media',_0x332802=>o(_0x3948ca,'ELEMENT_MEDIA',_0x332802)),_0x173faf['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x502ebf,{writer:_0x5e6ab9,options:_0x32bb31})=>{if(_0x32bb31['showSuggestionHighlights'])return _0x5e6ab9['createEmptyElement']('div');},'converterPriority':'high'}),_0x173faf['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5cdaac,_0x10c829,_0x2374b2)=>{_0x2374b2['options']['showSuggestionHighlights']&&_0x5cdaac['stop']();},{'priority':'high'});}}class lt extends _0x2bddd5{['afterInit'](){const _0x1b8d7f=this['editor'];_0x1b8d7f['plugins']['has']('MentionEditing')&&_0x1b8d7f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2bddd5{['afterInit'](){const _0x892fca=this['editor'];if(!_0x892fca['plugins']['has']('MergeFieldsEditing'))return;const _0x5dd9d5=_0x892fca['plugins']['get']('TrackChangesEditing'),_0xe979cc=_0x892fca['locale'];_0x5dd9d5['enableCommand']('insertMergeField'),_0x5dd9d5['enableCommand']('insertMergeFieldBlock'),_0x5dd9d5['enableCommand']('insertMergeFieldImage'),_0x5dd9d5['descriptionFactory']['registerElementLabel']('mergeField',_0x1474e3=>o(_0xe979cc,'ELEMENT_MERGE_FIELD',_0x1474e3)),_0x5dd9d5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4704f0=>o(_0xe979cc,'ELEMENT_MERGE_FIELD',_0x4704f0)),_0x5dd9d5['descriptionFactory']['registerDescriptionCallback'](_0x6abc2a=>{if('insertion'!=_0x6abc2a['type']&&'deletion'!=_0x6abc2a['type'])return;const _0x394e61=_0x6abc2a['getContainedElement']();if(null==_0x394e61)return;const _0x1a35bd=_0x892fca['plugins']['get']('MergeFieldsEditing');let _0x186502;switch(_0x1a35bd['getMergeFieldType'](_0x394e61)){case null:return;case'image':{const _0x4fc9f5=_0x1a35bd['unwrapAffixes'](_0x394e61['getAttribute']('src'));_0x186502=_0x1a35bd['getLabel'](_0x4fc9f5)||_0x4fc9f5;break;}default:{const _0x250fc0=_0x394e61['getAttribute']('id');_0x186502=_0x1a35bd['getLabel'](_0x250fc0)||_0x250fc0;break;}}return'insertion'==_0x6abc2a['type']?{'type':'insertion','content':o(_0xe979cc,'*Insert:*\x20%0','\x22'+_0x186502+'\x22\x20'+o(_0xe979cc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xe979cc,'*Remove:*\x20%0','\x22'+_0x186502+'\x22\x20'+o(_0xe979cc,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x2bddd5{['afterInit'](){const _0x2b103b=this['editor'],_0x1b0c59=_0x2b103b['plugins']['get']('TrackChangesEditing');_0x2b103b['plugins']['has']('MultiLevelList')&&(_0x1b0c59['enableDefaultAttributesIntegration']('multiLevelList'),_0x1b0c59['registerBlockAttribute']('listMarkerStyle'),_0x1b0c59['descriptionFactory']['registerDescriptionCallback'](_0x327c99=>this['handleDescriptions'](_0x327c99)));}['handleDescriptions'](_0x4ade50){const _0x34460b=this['editor']['locale'],{data:_0x44e8b5}=_0x4ade50,_0x578bf8={'type':'format','content':''};if(_0x44e8b5&&'listMarkerStyle'==_0x44e8b5['key']){if(!_0x44e8b5['oldValue'])return{'type':'format','content':o(_0x34460b,'*Set\x20format:*\x20%0',o(_0x34460b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44e8b5['newValue']+')'};if(!_0x44e8b5['newValue']){let _0x145ca2=_0x4ade50['head'];for(;_0x145ca2;){if(_0x145ca2['data']&&'listType'==_0x145ca2['data']['key']&&_0x145ca2['data']['newValue'])return _0x578bf8;_0x145ca2=_0x145ca2['next'];}return{'type':'format','content':o(_0x34460b,'*Remove\x20format:*\x20%0',o(_0x34460b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44e8b5['oldValue']+')'};}}}}class pt extends _0x2bddd5{['afterInit'](){const _0x593795=this['editor'];if(!_0x593795['plugins']['has']('PageBreakEditing'))return;_0x593795['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x24bf65=_0x593795['plugins']['get']('TrackChangesEditing'),_0x2a3df2=_0x593795['locale'];_0x24bf65['descriptionFactory']['registerElementLabel']('pageBreak',_0x1cf840=>o(_0x2a3df2,'ELEMENT_PAGE_BREAK',_0x1cf840));}}class kt extends _0x2bddd5{['afterInit'](){const _0x4ea305=this['editor'];if(!_0x4ea305['plugins']['has']('Paragraph'))return;const _0x2e7ad5=_0x4ea305['locale'],_0x26f332=_0x4ea305['plugins']['get']('TrackChangesEditing');_0x26f332['descriptionFactory']['registerElementLabel']('paragraph',_0x245f2d=>o(_0x2e7ad5,'ELEMENT_PARAGRAPH',_0x245f2d)),_0x26f332['enableDefaultAttributesIntegration']('paragraph'),_0x26f332['enableCommand']('insertParagraph'),_0x4ea305['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4ea305),{'priority':'highest'}),_0x4ea305['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2c8938,_0x1aa7db,_0xc8433e)=>{_0xc8433e['options']['showSuggestionHighlights']&&nr(_0x4ea305,{'showActiveMarker':!0x1})(_0x2c8938,_0x1aa7db,_0xc8433e);},{'priority':'highest'});const _0x47797e=_0x26f332['descriptionFactory'];_0x47797e['registerDescriptionCallback'](_0xa826b4=>{if('insertion'!==_0xa826b4['type'])return;const {start:_0x4ffb5d,end:_0x1a9811}=_0xa826b4['getFirstRange']();if(!_0x4ffb5d['isTouching'](_0x1a9811)||!_0x4ffb5d['nodeAfter'])return;const _0x44d621=_0x4ea305['model']['schema'],_0x28f9cc=_0x4ffb5d['nodeAfter'];return _0x44d621['isBlock'](_0x28f9cc)&&!_0x44d621['isLimit'](_0x28f9cc)&&_0x44d621['checkChild'](_0x28f9cc,'$text')?{'type':'insertion','content':o(_0x2e7ad5,'*Insert:*\x20%0',_0x47797e['getItemLabel'](_0x28f9cc,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x319d9c=this['editor'],_0x26617b=_0x319d9c['locale'];_0x319d9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf6aa1d=>{if('formatBlock'!=_0xf6aa1d['type'])return;const {data:_0x2c960d}=_0xf6aa1d;return _0x2c960d&&'paragraph'==_0x2c960d['commandName']?{'type':'format','content':o(_0x26617b,'*Change\x20to:*\x20%0',o(_0x26617b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x573177,{showActiveMarker:_0x33d30f=!0x0}={}){return(_0x51acb3,_0x198097,_0x28b422)=>{const _0x274a2b=_0x573177['plugins']['get']('TrackChangesEditing'),_0x1d9b54=_0x198097['markerRange']['start'],_0x3e0476=_0x198097['markerRange']['end'],_0x5a84b4=_0x573177['model']['schema'];if(!_0x1d9b54['isTouching'](_0x3e0476)||!_0x1d9b54['nodeAfter'])return;const _0x3444b4=_0x1d9b54['nodeAfter'];if(_0x5a84b4['isBlock'](_0x3444b4)&&!_0x5a84b4['isLimit'](_0x3444b4)&&_0x5a84b4['checkChild'](_0x3444b4,'$text')){if(!_0x28b422['consumable']['consume'](_0x198097['markerRange'],_0x51acb3['name']))return;const {id:_0x593346,authorId:_0x265dd2}=_0x274a2b['_splitMarkerName'](_0x198097['markerName']),_0x449fa9=_0x28b422['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x593346,'data-author-id':_0x265dd2}),_0x3e1709=_0x28b422['mapper']['toViewPosition'](_0x3e0476);_0x33d30f&&_0x274a2b['activeMarkers']['includes'](_0x198097['markerName'])&&_0x28b422['writer']['addClass']('ck-suggestion-marker--active',_0x449fa9),_0x28b422['writer']['insert'](_0x3e1709,_0x449fa9),_0x28b422['mapper']['bindElementToMarker'](_0x449fa9,_0x198097['markerName']);}};}class wt extends _0x2bddd5{['afterInit'](){const _0x25867b=this['editor'];_0x25867b['commands']['get']('replaceSource')&&_0x25867b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x2bddd5{['afterInit'](){const _0x22491d=this['editor'];if(!_0x22491d['plugins']['has']('RemoveFormatEditing'))return;_0x22491d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f2b0=this['editor'];_0x3f2b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2183a8=>{if('formatBlock'!=_0x2183a8['type']&&'formatInline'!=_0x2183a8['type'])return;const {data:_0x337e25}=_0x2183a8;return _0x337e25&&'removeFormat'==_0x337e25['commandName']?{'type':'format','content':o(_0x3f2b0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2bddd5{['afterInit'](){const _0x37b178=this['editor'];if(!_0x37b178['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3b5964=_0x37b178['plugins']['get']('TrackChangesEditing');_0x3b5964['enableCommand']('goToPreviousRestrictedEditingException'),_0x3b5964['enableCommand']('goToNextRestrictedEditingException');const _0x3d67b1=_0x37b178['plugins']['get']('RestrictedEditingModeEditing');_0x3d67b1['enableCommand']('trackChanges'),_0x3d67b1['enableCommand']('acceptSuggestion'),_0x3d67b1['enableCommand']('discardSuggestion'),_0x3d67b1['enableCommand']('acceptAllSuggestions'),_0x3d67b1['enableCommand']('discardAllSuggestions'),_0x3d67b1['enableCommand']('acceptSelectedSuggestions'),_0x3d67b1['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x2bddd5{['afterInit'](){const _0x481705=this['editor'];if(!_0x481705['plugins']['has']('ShiftEnter'))return;const _0x46059c=_0x481705['plugins']['get']('TrackChangesEditing');_0x46059c['enableCommand']('shiftEnter'),_0x481705['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x481705),{'priority':'high'}),_0x481705['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x481705),{'priority':'high'}),_0x481705['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x193fa7,_0x5a6381,_0x517863)=>{_0x517863['options']['showSuggestionHighlights']&&je(_0x481705,{'showActiveMarker':!0x1})(_0x193fa7,_0x5a6381,_0x517863);}),_0x46059c['descriptionFactory']['registerElementLabel']('softBreak',_0x2af5ae=>o(_0x481705['locale'],'ELEMENT_LINE_BREAK',_0x2af5ae));}}function je(_0x27eb9e,{showActiveMarker:_0x5709ba=!0x0}={}){return(_0x134155,_0x53221a,_0x4f169c)=>{const _0x4b594f=_0x27eb9e['plugins']['get']('TrackChangesEditing');if(!_0x4f169c['consumable']['test'](_0x53221a['markerRange'],_0x134155['name']))return;const _0x39f3e8=_0x27eb9e['model'];for(const _0x9d5681 of _0x53221a['markerRange']['getItems']()){if(!_0x9d5681['is']('element','softBreak'))continue;const _0x2fd7d5='deletion'==_0x53221a['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x52a059,authorId:_0x40a078}=_0x4b594f['_splitMarkerName'](_0x53221a['markerName']),_0x535442=_0x4f169c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2fd7d5,'data-suggestion':_0x52a059,'data-author-id':_0x40a078}),_0x4e90f7=_0x4f169c['mapper']['toViewPosition'](_0x39f3e8['createPositionBefore'](_0x9d5681));_0x5709ba&&_0x4b594f['activeMarkers']['includes'](_0x53221a['markerName'])&&_0x4f169c['writer']['addClass']('ck-suggestion-marker--active',_0x535442),_0x4f169c['writer']['insert'](_0x4e90f7,_0x535442),_0x4f169c['mapper']['bindElementToMarker'](_0x535442,_0x53221a['markerName']);}};}class St extends _0x2bddd5{['afterInit'](){const _0x8e3fe9=this['editor'],_0x5aa7f2=_0x8e3fe9['model'],_0x4b1ab2=_0x8e3fe9['locale'];if(!_0x8e3fe9['plugins']['has']('StandardEditingModeEditing'))return;const _0x5987d9=_0x8e3fe9['plugins']['get']('TrackChangesEditing'),_0x25bd55='restrictedEditingException',_0x35ac48=_0x8e3fe9['commands']['get'](_0x25bd55);_0x5987d9['enableCommand'](_0x25bd55,(_0x5a83eb,_0x3fe4f2={})=>{const _0x29dca8=_0x5aa7f2['document']['selection'];if(_0x29dca8['isCollapsed'])return void _0x5a83eb(_0x3fe4f2);const _0x14ecab=void 0x0!==_0x3fe4f2['forceValue']?_0x3fe4f2['forceValue']:!_0x35ac48['value'];_0x5aa7f2['change'](()=>{const _0x39af25=Array['from'](_0x29dca8['getRanges']());for(const _0x5a1438 of _0x39af25){const _0x5d675c=_0x14ecab?[_0x5a1438]:io(_0x25bd55,_0x5a1438,_0x5aa7f2);for(const _0x178bb1 of _0x5d675c)_0x5987d9['markInlineFormat'](_0x178bb1,{'commandName':_0x25bd55,'commandParams':[{'forceValue':_0x14ecab}]});}});}),_0x5987d9['descriptionFactory']['registerDescriptionCallback'](_0x2cd981=>{if('formatBlock'!=_0x2cd981['type']&&'formatInline'!=_0x2cd981['type'])return;const {data:_0x34a5cf}=_0x2cd981;return _0x34a5cf&&_0x34a5cf['commandName']==_0x25bd55?_0x34a5cf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b1ab2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4b1ab2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x2bddd5{['afterInit'](){const _0x25fa7a=this['editor'];if(!_0x25fa7a['plugins']['has']('Style')||!_0x25fa7a['plugins']['has']('DataSchema'))return;const _0x492df8=_0x25fa7a['plugins']['get']('TrackChangesEditing'),_0x454a44=_0x25fa7a['locale'],_0x2975e9=_0x25fa7a['config']['get']('style')||{},_0x39f5be=_0x25fa7a['plugins']['get']('GeneralHtmlSupport'),_0x5aa3e5=_0x25fa7a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x25fa7a['plugins']['get']('DataSchema'),_0x2975e9['definitions']);_0x492df8['enableDefaultAttributesIntegration']('style');const _0x1868be=new Set();for(const _0x26087e of _0x5aa3e5['block']){const _0x43edd9=_0x39f5be['getGhsAttributeNameForElement'](_0x26087e['element']);_0x1868be['add'](_0x43edd9);}const _0x540b7e=new Set();for(const _0x3987dd of _0x5aa3e5['inline']){const _0x4da99c=_0x39f5be['getGhsAttributeNameForElement'](_0x3987dd['element']);_0x540b7e['add'](_0x4da99c);for(const _0x2fc481 of _0x3987dd['ghsAttributes'])_0x540b7e['add'](_0x2fc481);}for(const _0x287101 of _0x1868be)_0x492df8['registerBlockAttribute'](_0x287101),_0x492df8['descriptionFactory']['registerAttributeLabel'](_0x287101,o(_0x454a44,'FORMAT_STYLE'));for(const _0x4d0ee2 of _0x540b7e)_0x492df8['registerInlineAttribute'](_0x4d0ee2),_0x492df8['descriptionFactory']['registerAttributeLabel'](_0x4d0ee2,o(_0x454a44,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e991c=this['editor'],_0x5cb858=_0x5e991c['locale'];_0x5e991c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c8f5b=>{if('formatBlock'!=_0x4c8f5b['type']&&'formatInline'!=_0x4c8f5b['type'])return;const {data:_0x1f9305}=_0x4c8f5b;return _0x1f9305&&'style'===_0x1f9305['commandName']?_0x1f9305['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5cb858,'*Set\x20format:*\x20%0',_0x1f9305['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5cb858,'*Remove\x20format:*\x20%0',_0x1f9305['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x2bddd5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x233f21){super(_0x233f21),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4d15ae=this['editor'],_0x36d7ea=_0x4d15ae['model']['document']['selection'];if(!_0x4d15ae['plugins']['has']('TableEditing'))return;const _0x50906b=_0x4d15ae['locale'],_0x2c753e=_0x4d15ae['plugins']['get']('TrackChangesEditing'),_0xf7dad9=_0x4d15ae['plugins']['get']('TableUtils');_0x2c753e['descriptionFactory']['registerElementLabel']('table',_0x4c6037=>o(_0x50906b,'ELEMENT_TABLE',_0x4c6037)),this['_setupColumnsRowsFixing'](),_0x2c753e['enableCommand']('insertTable'),_0x2c753e['enableCommand']('selectTableRow'),_0x2c753e['enableCommand']('selectTableColumn');for(const _0x3e63b4 of['insertTableRowAbove','insertTableRowBelow']){const _0x1ebfc7=_0x4d15ae['commands']['get'](_0x3e63b4);_0x2c753e['enableCommand'](_0x3e63b4,_0x54c4d5=>{_0x4d15ae['model']['change'](_0x41099b=>{_0x54c4d5();const _0x1ce612='above'===_0x1ebfc7['order'],_0x4ff333=_0xf7dad9['getSelectionAffectedTableCells'](_0x36d7ea),_0x5aa14a=_0xf7dad9['getRowIndexes'](_0x4ff333),_0x390c5d=_0x1ce612?_0x5aa14a['first']-0x1:_0x5aa14a['last']+0x1,_0xb5ba84=_0x4ff333[0x0]['findAncestor']('table'),_0x3fe06a=_0xf7dad9['createTableWalker'](_0xb5ba84,{'startRow':_0x390c5d,'endRow':_0x390c5d}),_0xe455d2=Array['from'](_0x3fe06a)['map'](_0x4438e4=>_0x41099b['createRangeOn'](_0x4438e4['cell']));_0x2c753e['markMultiRangeInsertion'](_0xe455d2,'tableRow');});});}for(const _0x19d905 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3da91d=_0x4d15ae['commands']['get'](_0x19d905);_0x2c753e['enableCommand'](_0x19d905,_0x903ffd=>{_0x4d15ae['model']['change'](_0x2f4201=>{_0x903ffd();const _0x5b5f72='left'===_0x3da91d['order'],_0x4cc01c=_0xf7dad9['getSelectionAffectedTableCells'](_0x36d7ea),_0x1ae422=_0xf7dad9['getColumnIndexes'](_0x4cc01c),_0x506d6b=_0x5b5f72?_0x1ae422['first']-0x1:_0x1ae422['last']+0x1,_0x347090=_0x4cc01c[0x0]['findAncestor']('table'),_0x33853a=_0xf7dad9['createTableWalker'](_0x347090,{'startRow':0x0,'column':_0x506d6b,'includeAllSlots':!0x1}),_0x3244da=Array['from'](_0x33853a)['map'](_0x191a93=>_0x2f4201['createRangeOn'](_0x191a93['cell']));_0x2c753e['markMultiRangeInsertion'](_0x3244da,'tableColumn');});});}for(const _0xe4582e of['removeTableRow','removeTableColumn']){const _0x9eed1b=_0xe4582e['substr'](0xb),_0x14bdb5=_0x9eed1b['toLowerCase'](),_0x10b600=_0x14bdb5['substr'](0x0,0x3)+'span',_0x57f2d7='table'+_0x9eed1b,_0x189cd2='min'+_0x9eed1b,_0x418388='max'+_0x9eed1b;_0x2c753e['enableCommand'](_0xe4582e,()=>{_0x4d15ae['model']['change'](_0x448b1e=>{const _0x58f879=_0xf7dad9['getSelectionAffectedTableCells'](_0x36d7ea),_0x13271d=_0x58f879[0x0]['findAncestor']('table');let _0x41208f;if('removeTableRow'==_0xe4582e){const _0x2204bd=_0xf7dad9['getRowIndexes'](_0x58f879);_0x41208f={'startRow':_0x2204bd['first'],'endRow':_0x2204bd['last'],'includeAllSlots':!0x0};}else{const _0x411989=_0xf7dad9['getColumnIndexes'](_0x58f879);_0x41208f={'startColumn':_0x411989['first'],'endColumn':_0x411989['last'],'includeAllSlots':!0x0};}const _0x26c975=_0xf7dad9['createTableWalker'](_0x13271d,_0x41208f),_0x178f1b=Array['from'](_0x26c975)['map'](({cell:_0xdb9510})=>_0xdb9510),_0x121cf2=Ne(_0x178f1b['filter'](_0x7ca53a=>_0x7ca53a['hasAttribute'](_0x10b600))),_0x485be9=Ne(_0x178f1b['filter'](_0x5bc5da=>!_0x5bc5da['hasAttribute'](_0x10b600)))['map'](_0x1dc327=>_0x448b1e['createRangeOn'](_0x1dc327)),_0xd882dc=_0x2c753e['markMultiRangeDeletion'](_0x485be9,_0x57f2d7);if(_0xd882dc&&('tableRow'==_0xd882dc['subType']||'tableColumn'==_0xd882dc['subType'])){const _0x1b1c38=this['_getSuggestionCoords'](_0xd882dc);for(const _0x2ce783 of _0x121cf2){const _0x18df3d=_0x448b1e['createRangeOn'](_0x2ce783),_0x147732=_0xf7dad9['getCellLocation'](_0x2ce783),_0x4cba61=_0x2ce783['getAttribute'](_0x10b600)-0x1,_0xe71fa8=_0x1b1c38[_0x189cd2],_0x36f674=_0x1b1c38[_0x418388];_0xe71fa8<=_0x147732[_0x14bdb5]&&_0x147732[_0x14bdb5]+_0x4cba61<=_0x36f674&&_0xd882dc['addRange'](_0x18df3d);}}});});}function _0x404a63(_0x4a7291){const _0x3254e4=Array['from'](_0x36d7ea['getRanges']())['map'](_0x57d1b2=>_0xd7f50['fromRange'](_0x57d1b2));_0x4d15ae['model']['change'](_0x4bb260=>{const _0x10bbc4=_0x4bb260['batch'];_0x4a7291=_0x4a7291['filter'](_0x2a9bfe=>'$graveyard'!=_0x2a9bfe['root']['rootName']),_0x4bb260['setSelection'](_0x4a7291),_0x4d15ae['commands']['get']('removeTableRow')['refresh'](),_0x4d15ae['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4d15ae['model']['enqueueChange'](()=>{_0x4d15ae['model']['enqueueChange'](_0x10bbc4,_0x2689aa=>{const _0x5aaf47=_0x3254e4['filter'](_0x3a6c43=>'$graveyard'!=_0x3a6c43['root']['rootName']);_0x5aaf47['length']>0x0&&_0x2689aa['setSelection'](_0x5aaf47);for(const _0x37cdda of _0x3254e4)_0x37cdda['detach']();});});});}function _0x259941(_0x2790bb){_0x4d15ae['model']['change'](_0xf6cc6f=>{const _0xa1ee11=Array['from'](_0x36d7ea['getRanges']())['map'](_0x33b01d=>_0xd7f50['fromRange'](_0x33b01d)),_0x26e934=[];for(const _0x47aca9 of _0x2790bb)for(const _0x31143b of _0x47aca9['getItems']({'shallow':!0x0}))_0x26e934['push'](_0x31143b);for(const _0x5b0b99 of _0x26e934)'$graveyard'!=_0x5b0b99['root']['rootName']&&(_0xf6cc6f['setSelection'](_0xf6cc6f['createPositionAt'](_0x5b0b99,0x0)),_0x4d15ae['commands']['get']('removeTableColumn')['refresh'](),_0x4d15ae['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x6c4cfb=_0xa1ee11['filter'](_0x14d6ea=>'$graveyard'!=_0x14d6ea['root']['rootName']);_0x6c4cfb['length']>0x0&&_0xf6cc6f['setSelection'](_0x6c4cfb);for(const _0x5dc2db of _0xa1ee11)_0x5dc2db['detach']();});}function _0x1490d3(_0x5825c4,_0x273825){return _0x273825['every'](_0xdd570=>_0x5825c4['some'](_0x6c69cc=>_0x6c69cc['end']['isEqual'](_0xdd570['start'])||_0xdd570['end']['isEqual'](_0x6c69cc['start'])));}function _0x20c972(_0xba095e,_0x2c8c7f){return!_0xba095e['some'](_0x5531cd=>_0x2c8c7f['some'](_0x4f63fe=>_0x5531cd['isIntersecting'](_0x4f63fe)))&&_0xba095e['some'](_0x45e2b9=>_0x2c8c7f['some'](_0x1d608d=>_0x45e2b9['end']['isTouching'](_0x1d608d['start'])));}_0x4d15ae['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47ff0a,_0xe4e826,_0x3011d3)=>{if(!_0x3011d3['options']['showSuggestionHighlights'])return;const _0x331d91=_0xe4e826['item'];if(!_0x331d91||!_0x331d91['is']('element','tableCell'))return;const _0x5a0e5e=_0x3011d3['mapper']['toViewElement'](_0x331d91);if(_0x5a0e5e){const {id:_0x106a82,authorId:_0x1a2a21}=_0x2c753e['_splitMarkerName'](_0xe4e826['markerName']);_0x53eb21(_0x5a0e5e,_0x3011d3['writer'],(_0x3657d9,_0x4beb1d,_0x287d4e)=>{_0x287d4e['addClass'](_0xbaf344(_0x4beb1d['classes']),_0x3657d9),_0x287d4e['setAttribute']('data-suggestion-id',_0x106a82,_0x3657d9),_0x287d4e['setAttribute']('data-author-id',_0x1a2a21,_0x3657d9);},(_0x35b121,_0x408660,_0x136928)=>{_0x136928['removeClass'](_0xbaf344(_0x408660['classes']),_0x35b121),_0x136928['removeAttribute']('data-suggestion-id',_0x35b121),_0x136928['removeAttribute']('data-author-id',_0x35b121);});}},{'priority':'highest'}),_0x2c753e['descriptionFactory']['registerDescriptionCallback'](_0xbfc4f=>{if('insertion'!=_0xbfc4f['type']&&'deletion'!=_0xbfc4f['type'])return;const _0x17dda7=_0xbfc4f['getContainedElement']();if(null!=_0x17dda7&&_0x17dda7['is']('element','table')){if('insertion'==_0xbfc4f['type']){const _0x1cb4cb=_0xbfc4f['getItems']()['filter'](_0x233cf1=>_0x233cf1['is']('$textProxy'))['map'](_0x3b668c=>_0x3b668c['data']);if(_0x1cb4cb['length'])return{'type':'insertion','content':o(_0x50906b,'*Insert:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1cb4cb['join']('\x20')+'\x22'))};}if('deletion'==_0xbfc4f['type']){const _0x58df75=_0xbfc4f['getItems']()['filter'](_0x2173f5=>_0x2173f5['is']('$textProxy'))['map'](_0x47c0f5=>_0x47c0f5['data']);if(_0x58df75['length'])return{'type':'deletion','content':o(_0x50906b,'*Remove:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x58df75['join']('\x20')+'\x22'))};}}}),_0x2c753e['descriptionFactory']['registerDescriptionCallback'](_0x10de6d=>{if('tableRow'==_0x10de6d['subType']){const _0x5c9a8e=_0x10de6d['getItems']()['filter'](_0x375f32=>_0x375f32['is']('$textProxy'))['map'](_0x5287ec=>_0x5287ec['data']),_0xedecd1=this['_getSuggestionCoords'](_0x10de6d),_0x43c3dc=_0xedecd1['maxRow']-_0xedecd1['minRow']+0x1;if('insertion'==_0x10de6d['type'])return _0x5c9a8e['length']?{'type':'insertion','content':o(_0x50906b,'*Insert:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x43c3dc,'\x22'+_0x5c9a8e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50906b,'*Insert:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_ROW',_0x43c3dc))};if('deletion'==_0x10de6d['type'])return _0x5c9a8e['length']?{'type':'deletion','content':o(_0x50906b,'*Remove:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x43c3dc,'\x22'+_0x5c9a8e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50906b,'*Remove:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_ROW',_0x43c3dc))};}if('tableColumn'==_0x10de6d['subType']){const _0x420d57=_0x10de6d['getItems']()['filter'](_0x8ebe89=>_0x8ebe89['is']('$textProxy'))['map'](_0x52adb6=>_0x52adb6['data']),_0x269a49=this['_getSuggestionCoords'](_0x10de6d),_0x39d7c9=_0x269a49['maxColumn']-_0x269a49['minColumn']+0x1;if('insertion'==_0x10de6d['type'])return _0x420d57['length']?{'type':'insertion','content':o(_0x50906b,'*Insert:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x39d7c9,'\x22'+_0x420d57['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50906b,'*Insert:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_COLUMN',_0x39d7c9))};if('deletion'==_0x10de6d['type'])return _0x420d57['length']?{'type':'deletion','content':o(_0x50906b,'*Remove:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x39d7c9,'\x22'+_0x420d57['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50906b,'*Remove:*\x20%0',o(_0x50906b,'ELEMENT_TABLE_COLUMN',_0x39d7c9))};}}),_0x2c753e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x404a63),_0x2c753e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x404a63),_0x2c753e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x259941),_0x2c753e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x259941),_0x2c753e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1490d3),_0x2c753e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1490d3),_0x2c753e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x20c972),_0x2c753e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x20c972);}['_acceptFormatSuggestionCallbackFactory'](){const _0x37edf2=this['editor'],_0x24f08c=_0x37edf2['model']['document']['selection'];return(_0x44fbcd,_0x438af1)=>{_0x37edf2['model']['change'](_0x9e0d19=>{const {commandName:_0x37d894,commandParams:_0x3e2cf1}=_0x438af1;let _0x2b7f77=_0x44fbcd[0x0]['end']['nodeBefore'];_0x3e2cf1&&_0x3e2cf1[0x0]&&!0x1===_0x3e2cf1[0x0]['forceValue']&&(_0x2b7f77=_0x44fbcd[0x0]['start']['nodeAfter']);const _0x31d894=_0x9e0d19['createRangeIn'](_0x2b7f77);if('$graveyard'==_0x31d894['root']['rootName'])return;const _0x3b1f22=Array['from'](_0x24f08c['getRanges']())['map'](_0x47707d=>_0xd7f50['fromRange'](_0x47707d));_0x9e0d19['setSelection'](_0x31d894),_0x37edf2['commands']['get'](_0x37d894)['refresh'](),_0x3e2cf1['push']({'forceDefaultExecution':!0x0}),_0x37edf2['execute'](_0x37d894,..._0x3e2cf1);const _0x9736df=_0x3b1f22['filter'](_0x30be94=>'$graveyard'!=_0x30be94['root']['rootName']);_0x9736df['length']>0x0&&_0x9e0d19['setSelection'](_0x9736df);for(const _0x5de2ef of _0x3b1f22)_0x5de2ef['detach']();});};}['_getCoordsForCells'](_0x26c264){const _0x5a9fdf=this['editor']['plugins']['get']('TableUtils');let _0x493f01=Number['MAX_SAFE_INTEGER'],_0x284be3=Number['MIN_SAFE_INTEGER'],_0x2d55ab=Number['MAX_SAFE_INTEGER'],_0x5e0d29=Number['MIN_SAFE_INTEGER'];for(const _0x4c9e6b of _0x26c264){if('$graveyard'==_0x4c9e6b['root']['rootName'])continue;const {row:_0x50a514,column:_0x4aae97}=_0x5a9fdf['getCellLocation'](_0x4c9e6b),_0xfa461e=_0x4c9e6b['hasAttribute']('rowspan')?_0x4c9e6b['getAttribute']('rowspan')-0x1:0x0,_0x54b90a=_0x4c9e6b['hasAttribute']('colspan')?_0x4c9e6b['getAttribute']('colspan')-0x1:0x0;_0x493f01=_0x50a514<_0x493f01?_0x50a514:_0x493f01,_0x284be3=_0x50a514+_0xfa461e>_0x284be3?_0x50a514+_0xfa461e:_0x284be3,_0x2d55ab=_0x4aae97<_0x2d55ab?_0x4aae97:_0x2d55ab,_0x5e0d29=_0x4aae97+_0x54b90a>_0x5e0d29?_0x4aae97+_0x54b90a:_0x5e0d29;}return{'minRow':_0x493f01,'maxRow':_0x284be3,'minColumn':_0x2d55ab,'maxColumn':_0x5e0d29};}['_setupColumnsRowsFixing'](){const _0x192fb5=this['editor'],_0x5d732d=_0x192fb5['plugins']['get']('TrackChangesEditing'),_0x133393=_0x192fb5['plugins']['get']('TableUtils');_0x192fb5['model']['document']['on']('change:data',()=>{const _0x95e794=Array['from'](_0x192fb5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf7cbf9,data:_0x305344}of _0x95e794){const {group:_0x204426,id:_0x4abbcd,subType:_0x28dc8d}=_0x5d732d['_splitMarkerName'](_0xf7cbf9);if('suggestion'!=_0x204426)continue;if(null!=_0x305344['oldRange'])continue;const _0x2174bf=_0x5d732d['getSuggestion'](_0x4abbcd);this['_tablePostFixingSubtypes']['includes'](_0x28dc8d)&&this['_tableSuggestions']['add'](_0x2174bf);}},{'priority':'low'});const _0x219810=(_0x2c7649,_0x2bc9c4)=>{let _0x19d16c=!0x1;const _0x2c28c4=_0x2bc9c4['createRangeOn'](_0x2c7649),_0x7c6cc6=_0x2c7649['findAncestor']('table'),_0x22e9f5=_0x133393['getCellLocation'](_0x2c7649);for(const _0x258570 of this['_tableSuggestions']){const _0x215acd=_0x258570['subType'],_0x1d3b75=_0x215acd['startsWith']('tablePaste'),_0x2ff97a=_0x215acd['substr'](_0x1d3b75?0xa:0x5),_0x26c84c=_0x2ff97a['toLowerCase'](),_0xa42205=_0x26c84c['substr'](0x0,0x3)+'span',_0x5ad959='min'+_0x2ff97a,_0x177782='max'+_0x2ff97a;if(!_0x258570['isInContent'])continue;if(_0x7c6cc6!=_0x258570['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x258570['isIntersectingWithRange'](_0x2c28c4))continue;const _0x17f241=_0x2c7649['hasAttribute'](_0xa42205)?_0x2c7649['getAttribute'](_0xa42205)-0x1:0x0,_0xedebf5=this['_getSuggestionCoords'](_0x258570),_0x4ba5f1=_0xedebf5[_0x5ad959],_0x14f44b=_0xedebf5[_0x177782];_0x4ba5f1<=_0x22e9f5[_0x26c84c]&&_0x22e9f5[_0x26c84c]+_0x17f241<=_0x14f44b&&(_0x258570['addRange'](_0x2c28c4),_0x19d16c=!0x0);}return _0x19d16c;};_0x192fb5['model']['document']['registerPostFixer'](_0x6150a2=>{let _0x4dc809=!0x1;for(const _0x48e591 of _0x192fb5['model']['document']['differ']['getChanges']())if('insert'==_0x48e591['type']){if('tableRow'==_0x48e591['name']){for(const _0x5b2c35 of _0x48e591['position']['nodeAfter']['getChildren']())_0x4dc809=_0x4dc809||_0x219810(_0x5b2c35,_0x6150a2);}else'tableCell'==_0x48e591['name']&&(_0x4dc809=_0x4dc809||_0x219810(_0x48e591['position']['nodeAfter'],_0x6150a2));}return _0x4dc809;});}['_getSuggestionCoords'](_0x3a0c79){return this['_getCoordsForCells'](_0x3a0c79['getRanges']()['map'](_0x410e58=>_0x410e58['start']['nodeAfter']));}}function Ne(_0x1ad233){return Array['from'](new Set(_0x1ad233)['values']());}class _t extends _0x2bddd5{static get['requires'](){return[At];}['afterInit'](){const _0x4000c6=this['editor'],_0xeb9802=_0x4000c6['model']['document']['selection'],_0x144f13=_0x4000c6['locale'];if(!_0x4000c6['plugins']['has']('TableEditing'))return;const _0x2761fa=_0x4000c6['plugins']['get']('TrackChangesEditing'),_0x4d4a3e=_0x4000c6['plugins']['get']('TableUtils'),_0x1cca7d=_0x4000c6['plugins']['get'](At);_0x1cca7d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2761fa['enableCommand']('mergeTableCells',()=>{const _0x410e7c=_0x4d4a3e['getSelectionAffectedTableCells'](_0x4000c6['model']['document']['selection']);_0x4000c6['model']['change'](()=>{_0x2761fa['markMultiRangeBlockFormat'](_0x410e7c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4000c6['commands']['get']('mergeTableCells')['on']('execute',(_0x151084,_0x1fef0f)=>{_0x4000c6['commands']['get']('trackChanges')['value']&&(_0x1fef0f['length']>0x0&&_0x1fef0f[_0x1fef0f['length']-0x1]&&_0x1fef0f[_0x1fef0f['length']-0x1]['forceDefaultExecution']||_0x2761fa['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x151084['stop']());},{'priority':'highest'});for(const _0x944939 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1e372e=_0x4000c6['commands']['get'](_0x944939);_0x2761fa['enableCommand'](_0x944939,()=>{const _0x497432=_0x4000c6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xee0bd9=>_0xee0bd9['is']('element','tableCell')),_0x2465af=_0x1e372e['value'];_0x4000c6['model']['change'](()=>{_0x2761fa['markMultiRangeBlockFormat']([_0x497432,_0x2465af],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1f3557 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x463159=_0x4000c6['commands']['get'](_0x1f3557);_0x2761fa['enableCommand'](_0x1f3557,()=>{const _0x2a4cbb=_0x4d4a3e['getSelectionAffectedTableCells'](_0x4000c6['model']['document']['selection'])[0x0],_0x44b548=_0x2a4cbb['findAncestor']('table'),{column:_0x1871d2,row:_0x569dc6}=_0x4d4a3e['getCellLocation'](_0x2a4cbb);let _0x50dcef=[];if('horizontally'==_0x463159['direction']){const _0x90d2fc=_0x4d4a3e['createTableWalker'](_0x44b548,{'startRow':_0x569dc6,'endRow':_0x569dc6,'includeAllSlots':!0x0});_0x50dcef=Array['from'](_0x90d2fc)['map'](_0x4490e4=>_0x4490e4['cell']);}else{const _0x34ae27=_0x4d4a3e['createTableWalker'](_0x44b548,{'column':_0x1871d2,'includeAllSlots':!0x0});_0x50dcef=Array['from'](_0x34ae27)['map'](_0x43ba6c=>_0x43ba6c['cell']);}_0x4000c6['model']['change'](_0x5105ec=>{_0x2761fa['markBlockFormat'](_0x5105ec['createRangeOn'](_0x2a4cbb),{'commandName':_0x1f3557,'commandParams':[]},_0x50dcef,_0x1f3557);});});}_0x2761fa['descriptionFactory']['registerDescriptionCallback'](_0x166e99=>{if('formatBlock'!=_0x166e99['type']&&'formatInline'!=_0x166e99['type'])return;const {data:_0x5056e4}=_0x166e99;return _0x5056e4&&'mergeTableCells'==_0x5056e4['commandName']?{'type':'format','content':o(_0x144f13,'*Merge\x20cells*')}:void 0x0;}),_0x2761fa['descriptionFactory']['registerDescriptionCallback'](_0xbdcfc7=>{if('formatBlock'!=_0xbdcfc7['type']&&'formatInline'!=_0xbdcfc7['type'])return;const {data:_0x3b01b3}=_0xbdcfc7;return _0x3b01b3?'splitTableCellVertically'==_0x3b01b3['commandName']?{'type':'format','content':o(_0x144f13,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3b01b3['commandName']?{'type':'format','content':o(_0x144f13,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x32205f=_0x1cca7d['_acceptFormatSuggestionCallbackFactory']();for(const _0xdf7d6e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2761fa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdf7d6e,'accept',_0x32205f);for(const _0x4e731f of['splitTableCellVertically','splitTableCellHorizontally'])_0x2761fa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e731f,'accept',_0x32205f);_0x2761fa['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x554053=>{_0x4000c6['model']['change'](_0x304528=>{const _0x1f967c=Array['from'](_0xeb9802['getRanges']())['map'](_0x148da7=>_0xd7f50['fromRange'](_0x148da7));_0x304528['setSelection'](_0x554053),_0x4000c6['commands']['get']('mergeTableCells')['refresh'](),_0x4000c6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x336fcc=_0x1f967c['filter'](_0x337aba=>'$graveyard'!=_0x337aba['root']['rootName']);_0x336fcc['length']>0x0&&_0x304528['setSelection'](_0x336fcc);for(const _0x5df707 of _0x1f967c)_0x5df707['detach']();});});for(const _0x3faac2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x24463a=_0x4000c6['commands']['get'](_0x3faac2);_0x24463a['on']('set:isEnabled',(_0x6e03e1,_0x4fd96e,_0x44c363)=>{if(_0x44c363){const _0x3744a1=_0x4000c6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x513064=>_0x513064['is']('element','tableCell'));this['_areMergableCells'](_0x24463a['value'],_0x3744a1)||(_0x6e03e1['return']=!0x1,_0x6e03e1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x51ad7f=this['editor']['commands']['get']('mergeTableCells'),_0x582ab5=this['editor']['plugins']['get']('TableUtils');if(!_0x51ad7f['isEnabled'])return!0x1;const _0x1f1a9d=_0x582ab5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x277e1f of _0x1f1a9d)for(const _0x237dcd of _0x1f1a9d)if(_0x277e1f!=_0x237dcd&&!this['_areMergableCells'](_0x277e1f,_0x237dcd))return!0x1;return!0x0;}['_areMergableCells'](_0x2c0fbd,_0x361d3e){const _0x171655=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e3e8b=this['editor']['model']['createRangeOn'](_0x2c0fbd),_0x328e49=this['editor']['model']['createRangeOn'](_0x361d3e),_0x5a4a1f=new Set(),_0xa61f48=new Set();for(const _0x2448aa of _0x171655['getSuggestions']())if(('insertion'==_0x2448aa['type']||'deletion'==_0x2448aa['type']||'mergeTableCells'==_0x2448aa['subType'])&&_0x2448aa['isInContent']){for(const _0x26467d of _0x2448aa['getRanges']())_0x26467d['containsRange'](_0x3e3e8b,!0x0)&&_0x5a4a1f['add'](_0x2448aa['type']+':'+_0x2448aa['author']['id']),_0x26467d['containsRange'](_0x328e49,!0x0)&&_0xa61f48['add'](_0x2448aa['type']+':'+_0x2448aa['author']['id']);}if(_0x5a4a1f['size']!=_0xa61f48['size'])return!0x1;for(const _0x3b68d6 of _0x5a4a1f)if(!_0xa61f48['has'](_0x3b68d6))return!0x1;return!0x0;}}class Ct extends _0x2bddd5{static get['requires'](){return[At];}['afterInit'](){const _0x4adad3=this['editor'];if(!_0x4adad3['plugins']['has']('TableEditing'))return;const _0x42b17b=_0x4adad3['locale'],_0x8a4c33=_0x4adad3['plugins']['get']('TrackChangesEditing');_0x8a4c33['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x8a4c33['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x8a4c33['registerBlockAttribute']('headingRows'),_0x8a4c33['registerBlockAttribute']('headingColumns'),_0x8a4c33['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x42b17b,'FORMAT_HEADER_ROW')),_0x8a4c33['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x42b17b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1342c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31b060=this['editor']['plugins']['get']('TableUtils'),_0x53b563=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2af99f({showActiveMarker:_0x40decf=!0x0,setDataAttribute:_0x5dd2c3=!0x0}={}){return(_0x220016,_0x369a14,_0x5bf552)=>{const {type:_0x50f3ca,id:_0x30a9d1}=_0x1342c4['_splitMarkerName'](_0x369a14['markerName']),_0x2b57ea=_0x1342c4['getSuggestion'](_0x30a9d1),_0x4be606=_0x2b57ea['data'];if('formatBlock'!=_0x2b57ea['type']||!_0x4be606||'setTableColumnHeader'!=_0x4be606['commandName'])return;if(_0x369a14['item'])return void _0x220016['stop']();if(!_0x5bf552['consumable']['consume'](_0x369a14['markerRange'],_0x220016['name']))return;const _0x4c347a=_0x369a14['markerRange']['start']['nodeAfter'],_0x1844b1=_0x369a14['markerRange']['end']['nodeBefore'],_0x165b64=_0x4c347a['parent']['parent'],{column:_0x3a10a8}=_0x31b060['getCellLocation'](_0x4c347a),{column:_0x1a3835}=_0x31b060['getCellLocation'](_0x1844b1);for(let _0x4858e5=_0x3a10a8;_0x4858e5<=_0x1a3835;_0x4858e5++){const _0x3f5ca8=_0x31b060['createTableWalker'](_0x165b64,{'column':_0x4858e5,'includeAllSlots':!0x1});for(const _0x5ebd81 of _0x3f5ca8){const _0x3562ee=_0x5ebd81['cell'],_0x40fad9=_0x5bf552['mapper']['toViewElement'](_0x3562ee);_0x5bf552['writer']['addClass']('ck-suggestion-marker-'+_0x50f3ca,_0x40fad9),_0x5dd2c3&&_0x5bf552['writer']['setAttribute']('data-suggestion',_0x30a9d1,_0x40fad9),_0x5bf552['mapper']['bindElementToMarker'](_0x40fad9,_0x369a14['markerName']),_0x40decf&&(_0x1342c4['activeMarkers']['includes'](_0x369a14['markerName'])?_0x5bf552['writer']['addClass']('ck-suggestion-marker--active',_0x40fad9):_0x5bf552['writer']['removeClass']('ck-suggestion-marker--active',_0x40fad9));}}};}_0x1342c4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x53b563),_0x1342c4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x53b563),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2af99f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d64a9,_0x6d183f,_0x42b761)=>{_0x42b761['options']['showSuggestionHighlights']&&_0x2af99f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4d64a9,_0x6d183f,_0x42b761);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xe2b779,_0x142ab8,_0x9dd05)=>{const {type:_0x1aead8,id:_0x1c3e7c}=_0x1342c4['_splitMarkerName'](_0x142ab8['markerName']),_0x5b5273=_0x1342c4['getSuggestion'](_0x1c3e7c),_0x3091a0=_0x5b5273['data'];if('formatBlock'!=_0x5b5273['type']||!_0x3091a0||'setTableColumnHeader'!=_0x3091a0['commandName'])return;const _0x500f44=_0x9dd05['mapper']['markerNameToElements'](_0x142ab8['markerName']);if(_0x500f44){for(const _0x592eb7 of _0x500f44)_0x9dd05['writer']['removeClass']('ck-suggestion-marker-'+_0x1aead8,_0x592eb7),_0x9dd05['writer']['removeClass']('ck-suggestion-marker--active',_0x592eb7),_0x9dd05['writer']['removeAttribute']('data-suggestion',_0x592eb7),_0x9dd05['mapper']['unbindElementFromMarkerName'](_0x592eb7,_0x142ab8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fba4b=this['editor'],_0x2184ff=_0x3fba4b['locale'];function _0x2f849c(_0xe7527a){return{'type':'format','content':o(_0x2184ff,'*Format:*\x20%0',_0xe7527a)};}_0x3fba4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14fc79=>{if('formatBlock'!=_0x14fc79['type'])return;const {data:_0x5272d7}=_0x14fc79;if(_0x5272d7){if('setTableRowHeader'==_0x5272d7['commandName']){const _0x55bdb9=_0x5272d7['commandParams'][0x0]['forceValue'];return _0x2f849c(o(_0x2184ff,_0x55bdb9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5272d7['commandName']){const _0x20c037=_0x5272d7['commandParams'][0x0]['forceValue'];return _0x2f849c(o(_0x2184ff,_0x20c037?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x2bddd5{['afterInit'](){const _0x59ba0a=this['editor'],_0x5af96c=_0x59ba0a['locale'],_0x4c7534=_0x59ba0a['plugins']['get']('TrackChangesEditing');function _0x3da0cd(_0x204312){return{'type':'format','content':''+o(_0x5af96c,'*Set\x20table\x20type:*\x20%0',_0x204312)};}_0x59ba0a['plugins']['has']('TableLayout')&&(_0x4c7534['enableCommand']('insertTableLayout'),_0x4c7534['enableDefaultAttributesIntegration']('tableType'),_0x4c7534['registerBlockAttribute']('tableType'),_0x4c7534['descriptionFactory']['registerElementLabel'](_0x1aff96=>_0x1aff96['is']('element','table')&&'layout'===_0x1aff96['getAttribute']('tableType'),_0x143c73=>o(_0x5af96c,'ELEMENT_LAYOUT_TABLE',_0x143c73)),_0x4c7534['descriptionFactory']['registerDescriptionCallback'](_0x5826cf=>{const {data:_0x2c7a64}=_0x5826cf;if(_0x2c7a64&&'tableType'==_0x2c7a64['key'])switch(_0x2c7a64['newValue']){case'layout':return _0x3da0cd(o(_0x5af96c,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3da0cd(o(_0x5af96c,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x56e573=>[_0x56e573,null]));class Nt extends _0x2bddd5{static get['requires'](){return[At];}['afterInit'](){const _0x1e5652=this['editor'];if(!_0x1e5652['plugins']['has']('TableClipboard'))return;const _0x19a15b=_0x1e5652['plugins']['get']('TrackChangesEditing'),_0x1241a0=_0x1e5652['plugins']['get']('TableUtils'),_0x170f1d=_0x1e5652['plugins']['get'](At),_0x22a762=_0x1e5652['plugins']['get']('TableClipboard'),_0x4b3a6f=_0x1e5652['plugins']['get']('TableSelection'),_0x500bf9=_0x1e5652['plugins']['get'](_0x4495bb);_0x170f1d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1e5652['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1e5652['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3de6ea=null,_0x4211f8=!0x1;_0x500bf9['on']('contentInsertion',(_0x19fc85,_0x5b4a26)=>{_0x4211f8='paste'===_0x5b4a26['method'];}),_0x1e5652['model']['on']('insertContent',(_0xe04ea1,_0xa30978)=>{if(!_0x4211f8&&null===_0x4b3a6f['getSelectedTableCells']())return;const [_0x5a8d99,_0x618e40]=_0xa30978,_0x5ae083=_0xa30978[_0xa30978['length']-0x1];_0x5ae083&&_0x5ae083['forceDefaultExecution']||_0x19a15b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4e53bb,_0x10da3a,_0x5451be,_0x41f718,_0x4c449f){if(_0x10da3a&&!_0x10da3a['is']('documentSelection'))return!0x1;const _0x553e41=_0x4c449f['getTableIfOnlyTableInContent'](_0x4e53bb,_0x5451be);if(!_0x553e41||!Ue(_0x553e41,void 0x0,_0x41f718))return!0x1;const _0x43bafa=_0x41f718['getSelectionAffectedTableCells'](_0x5451be['document']['selection']);if(!_0x43bafa['length'])return!0x1;const _0x44ab9b=_0x43bafa[0x0]['findAncestor']('table'),_0x3ad29e=_0x41f718['getRowIndexes'](_0x43bafa),_0x25c13f=_0x41f718['getColumnIndexes'](_0x43bafa),_0x25298d={'startRow':_0x3ad29e['first'],'endRow':_0x3ad29e['last'],'startColumn':_0x25c13f['first'],'endColumn':_0x25c13f['last']};return 0x1==_0x43bafa['length']&&(_0x25298d['endRow']+=_0x41f718['getRows'](_0x553e41)-0x1,_0x25298d['endColumn']+=_0x41f718['getColumns'](_0x553e41)-0x1),Ue(_0x44ab9b,_0x25298d,_0x41f718);}(_0x5a8d99,_0x618e40,_0x1e5652['model'],_0x1241a0,_0x22a762)&&(_0xe04ea1['stop'](),_0x3de6ea={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1e5652['model']['change'](()=>{_0x1e5652['model']['insertContent'](_0xa30978[0x0],_0xa30978[0x1],_0xa30978[0x2],{'forceDefaultExecution':!0x0});const _0x43aa9d=_0x4bb6e6(),{rowInsertionRanges:_0x58bf43,columnInsertionRanges:_0x5d9740,insertionRanges:_0x19b86b,deletionRanges:_0x2a46b3,cells:_0x4c5964}=_0x3de6ea;_0x58bf43['length']&&_0x19a15b['markMultiRangeInsertion'](_0x58bf43,'tablePasteRow',{'tablePasteChainId':_0x43aa9d}),_0x5d9740['length']&&_0x19a15b['markMultiRangeInsertion'](_0x5d9740,'tablePasteColumn',{'tablePasteChainId':_0x43aa9d}),_0x19b86b['length']&&(_0x19a15b['markMultiRangeInsertion'](_0x19b86b,'tablePaste',{'tablePasteChainId':_0x43aa9d,'skipNestingCheck':!0x0}),_0x19b86b['forEach'](_0x2bcb02=>_0x2bcb02['detach']?.())),_0x2a46b3['length']&&(_0x19a15b['markMultiRangeDeletion'](_0x2a46b3,'tablePaste',{'tablePasteChainId':_0x43aa9d,'skipNestingCheck':!0x0}),_0x2a46b3['forEach'](_0x33e1ac=>_0x33e1ac['detach']?.()));const _0x576788=_0x19a15b['markMultiRangeBlockFormat'](_0x4c5964['map'](({element:_0x112cb5})=>_0x112cb5),{'formatGroupId':_0x4bb6e6()},[],'tablePasteCell',{'tablePasteChainId':_0x43aa9d});if(_0x576788){const _0x491a23=_0x576788['getMarkers'](),_0x5e9e3f=[];for(const {element:_0x5d6b67,attributes:_0x2bd7f9}of _0x4c5964){if(!_0x2bd7f9)continue;const _0x225990=_0x1e5652['model']['createRangeOn'](_0x5d6b67),_0x44c5ab=_0x491a23['find'](_0x44c357=>_0x44c357['getRange']()['isEqual'](_0x225990));_0x44c5ab&&_0x5e9e3f['push']([_0x44c5ab['name'],_0x2bd7f9]);}_0x5e9e3f['length']&&_0x576788['setAttribute']('markerAttributes',Object['fromEntries'](_0x5e9e3f));}_0x3de6ea=null;}));},{'priority':_0x2048ff['high']+0xa}),_0x500bf9['on']('contentInsertion',()=>{_0x4211f8=!0x1;},{'priority':'lowest'}),_0x1e5652['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3b4314,_0x283d63)=>{const [_0xae62b4,_0x25ed06,,_0xd3992f]=_0x283d63;if(!_0x3de6ea)return;_0x3b4314['stop']();const _0x44c45f=_0xae62b4['cell'],_0x511dcd=_0x25ed06,_0x2d2281=Oe(_0x44c45f),_0x2ba724=Oe(_0x511dcd);_0x3b4314['return']=_0x44c45f;let _0x5b3796=null,_0x379edd=null;if(_0x2ba724||_0x2d2281){if(_0x2d2281&&!_0x2ba724){_0xd3992f['remove'](_0x44c45f['getChild'](0x0));for(const _0xf64fcd of Array['from'](_0x511dcd['getChildren']()))_0xd3992f['insert'](_0xf64fcd,_0x44c45f,'end');const _0x3334a3=_0x3de6ea['rowInsertionIndexes']['includes'](_0xae62b4['row']),_0x31d64a=_0x3de6ea['columnInsertionIndexes']['includes'](_0xae62b4['column']);_0x3334a3||_0x31d64a||(_0x5b3796=_0xd7f50['fromRange'](_0xd3992f['createRangeIn'](_0x44c45f)));}else _0x2ba724&&!_0x2d2281&&(_0x379edd=_0xd3992f['createRangeIn'](_0x44c45f));}else{const _0x240907=_0xd3992f['createElement']('tableCellSuggestion'),_0x1963a3=_0xd3992f['createElement']('tableCellSuggestion');_0xd3992f['wrap'](_0xd3992f['createRangeIn'](_0x44c45f),_0x1963a3),_0xd3992f['insert'](_0x240907,_0x44c45f,0x0);for(const _0x4f1c6f of Array['from'](_0x511dcd['getChildren']()))_0xd3992f['insert'](_0x4f1c6f,_0x240907,'end');_0x5b3796=_0xd7f50['fromRange'](_0xd3992f['createRangeOn'](_0x240907)),_0x379edd=_0xd7f50['fromRange'](_0xd3992f['createRangeOn'](_0x1963a3));}const _0x12c66a=Array['from'](_0x511dcd['getAttributes']())['filter'](([_0x5ae46d])=>Be['includes'](_0x5ae46d));_0x3de6ea['cells']['push']({'element':_0x44c45f,'attributes':_0x12c66a['length']?Object['fromEntries'](_0x12c66a):null}),_0x5b3796&&_0x3de6ea['insertionRanges']['push'](_0x5b3796),_0x379edd&&_0x3de6ea['deletionRanges']['push'](_0x379edd);},{'priority':'high'}),_0x1241a0['on']('insertColumns',(_0x2f1961,_0x1bc9f3)=>{const [_0x5f1b95,_0x4bb7d2={}]=_0x1bc9f3;if(!_0x3de6ea)return;const _0x4f661a=_0x4bb7d2['at']||0x0,_0x110de2=_0x4bb7d2['columns']||0x1;_0x3de6ea['columnInsertionIndexes']=new Array(_0x110de2)['fill'](_0x4f661a)['map']((_0x371659,_0x3df38a)=>_0x371659+_0x3df38a);for(const {cell:_0x2b9011}of _0x1241a0['createTableWalker'](_0x5f1b95,{'startColumn':_0x4f661a,'endColumn':_0x4f661a+_0x110de2-0x1}))_0x3de6ea['columnInsertionRanges']['push'](_0x1e5652['model']['createRangeOn'](_0x2b9011));},{'priority':'low'}),_0x1241a0['on']('insertRows',(_0x17a3e4,_0x28e318)=>{const [_0x2a3581,_0xbc9c1d={}]=_0x28e318;if(!_0x3de6ea)return;const _0x1fc174=_0xbc9c1d['at']||0x0,_0xc53094=_0xbc9c1d['rows']||0x1;_0x3de6ea['rowInsertionIndexes']=new Array(_0xc53094)['fill'](_0x1fc174)['map']((_0x1f14fb,_0x3b4495)=>_0x1f14fb+_0x3b4495);for(const {cell:_0x46305f}of _0x1241a0['createTableWalker'](_0x2a3581,{'startRow':_0x1fc174,'endRow':_0x1fc174+_0xc53094-0x1}))_0x3de6ea['rowInsertionRanges']['push'](_0x1e5652['model']['createRangeOn'](_0x46305f));},{'priority':'low'}),_0x19a15b['descriptionFactory']['registerDescriptionCallback'](_0x33bf01=>{if(_0x33bf01['subType']&&_0x33bf01['subType']['startsWith']('tablePaste'))return _0x33bf01['previous']?{}:{'type':'insertion','content':o(_0x1e5652['locale'],'*Replace\x20table\x20cells*')};});const _0x149112=()=>!0x1;for(const _0x4f15d7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x19a15b['_suggestionFactory']['registerCustomCallback']('insertion',_0x4f15d7,'join',_0x149112),_0x19a15b['_suggestionFactory']['registerCustomCallback']('deletion',_0x4f15d7,'join',_0x149112),_0x19a15b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4f15d7,'join',_0x149112);_0x19a15b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x149112),_0x19a15b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2cbe5d,_0x478b58,_0x2c89a2)=>{const _0x450015=_0x2cbe5d['map'](_0x48bd41=>_0x48bd41['getContainedElement']())['filter'](_0x4f3f70=>_0x4f3f70),_0x2dc451=new Map(_0x450015['map'](_0x42708b=>[_0x42708b,null]));if(_0x3de6ea){for(const {element:_0x2dacef,attributes:_0x46d235}of _0x3de6ea['cells'])_0x46d235&&_0x2dc451['set'](_0x2dacef,_0x46d235);}else{if(_0x2c89a2&&_0x2c89a2['markerAttributes'])for(const [_0x5559d0,_0x284dd4]of Object['entries'](_0x2c89a2['markerAttributes'])){const _0x3c362f=_0x1e5652['model']['markers']['get'](_0x5559d0),_0x478288=_0x3c362f?_0x3c362f['getRange']()['getContainedElement']():null;_0x478288&&_0x2dc451['set'](_0x478288,_0x284dd4);}}_0x1e5652['model']['change'](_0x29be12=>{for(const [_0x45884e,_0x275847]of _0x2dc451)_0x29be12['setAttributes']({...xe,..._0x275847},_0x45884e);});});const _0x20b49d=(_0x14e0b1,_0x2987ad)=>{_0x19a15b['_suggestionFactory']['registerCustomCallback'](_0x14e0b1,'tablePaste',_0x2987ad,(_0x14d0fd,_0x56780e,_0x494317)=>{_0x1e5652['model']['change'](_0x57c492=>{const _0x41de2f=[];for(const _0x3eb364 of _0x14d0fd){const _0x590c32=_0x3eb364['start']['nodeAfter'];_0x590c32['is']('element','tableCellSuggestion')&&_0x41de2f['push'](_0x590c32);}_0x19a15b['_suggestionFactory']['getSuggestionCallback'](_0x14e0b1,null,_0x2987ad)(_0x14d0fd,_0x56780e,_0x494317);for(const _0x2ba039 of _0x41de2f)'$graveyard'!=_0x2ba039['root']['rootName']&&_0x57c492['unwrap'](_0x2ba039);});});};_0x20b49d('insertion','accept'),_0x20b49d('insertion','discard'),_0x20b49d('deletion','accept'),_0x20b49d('deletion','discard'),_0x19a15b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x33e4bb=>{const _0x3cf058=_0x33e4bb['map'](_0x55be53=>_0x55be53['getContainedElement']()),_0x2e14ec=_0x3cf058[0x0]['findAncestor']('table'),{minRow:_0xa8e1bd,maxRow:_0x401c5e}=_0x170f1d['_getCoordsForCells'](_0x3cf058);_0x1241a0['removeRows'](_0x2e14ec,{'at':_0xa8e1bd,'rows':_0x401c5e-_0xa8e1bd+0x1});}),_0x19a15b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x112439=>{const _0x3316b0=_0x112439['map'](_0x10c2a8=>_0x10c2a8['getContainedElement']()),_0x16313c=_0x3316b0[0x0]['findAncestor']('table'),{minColumn:_0x2d0ccc,maxColumn:_0x3a1743}=_0x170f1d['_getCoordsForCells'](_0x3316b0);_0x1241a0['removeColumns'](_0x16313c,{'at':_0x2d0ccc,'columns':_0x3a1743-_0x2d0ccc+0x1});});const _0x588438=(_0x235158,_0x3deb6c)=>{if(!_0x3deb6c['subType']||!_0x3deb6c['subType']['startsWith']('tablePaste'))return;const _0x20cdd6=_0x3deb6c['attributes']['tablePasteChainId'],_0x811ce1=_0x19a15b['getSuggestions']()['filter'](_0xc38b97=>_0xc38b97['isInContent']&&_0xc38b97['attributes']&&_0xc38b97['attributes']['tablePasteChainId']==_0x20cdd6);_0x811ce1['length']&&_0x3deb6c['getAllAdjacentSuggestions']()['length']!=_0x811ce1['length']&&_0x811ce1['reduce']((_0x5d782b,_0x18f54e)=>(_0x5d782b['next']=_0x18f54e,_0x18f54e['previous']=_0x5d782b,_0x18f54e));};function _0x12b457(_0x46d8de,_0x26b55f=!0x0){const {id:_0x57ac01,authorId:_0x2397b6}=_0x19a15b['_splitMarkerName'](_0x46d8de['markerName']),_0x533aec=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3be8fb=_0x19a15b['activeMarkers']['includes'](_0x46d8de['markerName']);return _0x3be8fb&&_0x533aec['push']('ck-suggestion-marker--active'),{'classes':_0x533aec,'attributes':{'data-suggestion':_0x57ac01,'data-author-id':_0x2397b6},'priority':_0x3be8fb&&_0x26b55f?0xbc2:0xbb8};}_0x19a15b['on']('suggestionLoaded',_0x588438,{'priority':'high'}),_0x19a15b['on']('suggestionUnloaded',_0x588438,{'priority':'high'}),_0x1e5652['model']['document']['registerPostFixer'](()=>{let _0x384c6d=!0x1;const _0x3954cb=Array['from'](_0x1e5652['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48f3f9,data:_0x1d9632}of _0x3954cb){const {group:_0x31a822,type:_0x4c47d5,id:_0x2c6a30}=_0x19a15b['_splitMarkerName'](_0x48f3f9);if('suggestion'!=_0x31a822||'deletion'!=_0x4c47d5||_0x1d9632['oldRange'])continue;if(!_0x19a15b['hasSuggestion'](_0x2c6a30))continue;const _0x447d94=_0x19a15b['getSuggestion'](_0x2c6a30)['getRanges'](),_0x54b0fd=_0x1e5652['plugins']['get']('Users')['me'];for(const _0x52c3dd of _0x19a15b['getSuggestions']()){if(!_0x52c3dd['isInContent']||_0x52c3dd['author']!=_0x54b0fd)continue;if('formatBlock'!=_0x52c3dd['type']||'tablePasteCell'!=_0x52c3dd['subType'])continue;if(_0x52c3dd['getRanges']()['every'](_0x6e68f0=>_0x447d94['some'](_0x1c03b5=>_0x1c03b5['containsRange'](_0x6e68f0,!0x0)))){for(const _0x5e79ec of _0x52c3dd['getAllAdjacentSuggestions']())_0x5e79ec['isInContent']&&(_0x5e79ec['discard'](),_0x384c6d=!0x0);}}}return _0x384c6d;}),_0x1e5652['model']['document']['registerPostFixer'](_0x53f287=>{const _0x48428f=_0x1e5652['commands']['get']('redo');if(!_0x48428f||!_0x48428f['_createdBatches']['has'](_0x53f287['batch']))return!0x1;let _0x490c20=!0x1;const _0x37891c=_0x1e5652['plugins']['get']('Users')['me'],_0x3e6beb=_0x1e5652['model']['document']['differ']['getChanges'](),_0x17f8a4=Array['from'](_0x1e5652['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3dc5f,data:_0x124a24})=>{const {group:_0x3860e8,subType:_0x5a5c31,authorId:_0x4e63fe}=_0x19a15b['_splitMarkerName'](_0x3dc5f);return'suggestion'==_0x3860e8&&'tablePaste'==_0x5a5c31&&_0x4e63fe==_0x37891c['id']&&!_0x124a24['oldRange'];});for(const _0x110f53 of _0x3e6beb){if('insert'!=_0x110f53['type']||'tableCellSuggestion'!=_0x110f53['name']||0x1!=_0x110f53['length'])continue;const _0xdb0254=_0x53f287['createRange'](_0x110f53['position'],_0x110f53['position']['getShiftedBy'](0x1));if(!_0x17f8a4['find'](({data:_0xbd9820})=>_0xbd9820['newRange']['isEqual'](_0xdb0254))){for(const {name:_0xc41209,data:_0x5b9d5a}of _0x17f8a4)if(_0xdb0254['containsRange'](_0x5b9d5a['newRange'])){_0x53f287['updateMarker'](_0xc41209,{'range':_0xdb0254}),_0x490c20=!0x0;break;}}}return _0x490c20;}),_0x1e5652['model']['document']['registerPostFixer'](_0x39afd9=>{let _0x464bc6=!0x1;const _0x2cfa78=_0x1e5652['plugins']['get']('Users')['me'],_0x238acf=_0x19a15b['getSuggestions']()['filter'](_0x4e080b=>_0x4e080b['isInContent']&&_0x4e080b['author']==_0x2cfa78),_0x5a65d8=new Set(),_0x136952=new Set();for(const _0x4e9968 of _0x238acf)if('tablePaste'==_0x4e9968['subType'])for(const _0x30f607 of _0x4e9968['getMarkers']()){const _0x43b6ee=_0x30f607['getRange']()['getContainedElement']();if(_0x43b6ee){if(_0x43b6ee['is']('element','tableCellSuggestion')&&Oe(_0x43b6ee)){_0x4e9968['removeMarker'](_0x30f607['name']),_0x5a65d8['add'](_0x43b6ee),_0x464bc6=!0x0;const _0x35bb50=_0x43b6ee['nextSibling'],_0x5ae37e=_0x43b6ee['previousSibling'],_0x12ae22=_0x35bb50&&_0x35bb50['is']('element','tableCellSuggestion'),_0x398545=_0x5ae37e&&_0x5ae37e['is']('element','tableCellSuggestion');_0x12ae22&&!_0x5a65d8['has'](_0x35bb50)&&_0x136952['add'](_0x35bb50),_0x398545&&!_0x5a65d8['has'](_0x5ae37e)&&_0x136952['add'](_0x5ae37e);}else _0x43b6ee['is']('element','paragraph')&&_0x43b6ee['isEmpty']&&(_0x4e9968['removeMarker'](_0x30f607['name']),_0x464bc6=!0x0);}}else{if('tablePasteCell'==_0x4e9968['subType']){if(!_0x4e9968['attributes']||!_0x4e9968['attributes']['tablePasteChainId'])continue;const _0x37ccb6=_0x4e9968['attributes']['markerAttributes'];if(_0x37ccb6&&Object['keys'](_0x37ccb6)['length'])continue;const _0x2ce1fc=_0x4e9968['attributes']['tablePasteChainId'];let _0x26a880=!0x0,_0x48d418=!0x0;for(const _0x2c84b6 of _0x238acf)if(_0x2c84b6['subType']&&_0x2c84b6['subType']['startsWith']('tablePaste')){if(!_0x2c84b6['attributes']['tablePasteChainId']){_0x48d418=!0x1;break;}if(_0x2c84b6['id']!=_0x4e9968['id']&&_0x2c84b6['attributes']['tablePasteChainId']==_0x2ce1fc){_0x26a880=!0x1;break;}}_0x48d418&&_0x26a880&&(_0x4e9968['removeMarkers'](),_0x464bc6=!0x0);}}for(const _0x4c48c9 of _0x5a65d8)_0x39afd9['remove'](_0x4c48c9);for(const _0x2c8ae8 of _0x136952)_0x39afd9['unwrap'](_0x2c8ae8);return _0x464bc6;}),_0x1e5652['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5b3998=>_0x12b457(_0x5b3998),'converterPriority':'high'}),_0x1e5652['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b7d9b,_0x135bb1)=>_0x135bb1['options']['showSuggestionHighlights']?_0x12b457(_0x3b7d9b,!0x1):null,'converterPriority':'high'});const _0x2a0d55=_0x1e5652['editing']['view'];this['listenTo'](_0x2a0d55['document'],'clipboardOutput',(_0x2cd112,_0x4396d6)=>{const _0x59764c=[];for(const _0x34201b of _0x2a0d55['createRangeIn'](_0x4396d6['content'])['getItems']())_0x34201b['is']('element','suggestion-td')&&_0x59764c['push'](_0x34201b);_0x2a0d55['change'](_0x210603=>{for(const _0x2ff3cf of _0x59764c)_0x210603['move'](_0x210603['createRangeIn'](_0x2ff3cf),_0x210603['createPositionBefore'](_0x2ff3cf)),_0x210603['remove'](_0x2ff3cf);});});}}function Oe(_0x35a1fb){if(_0x35a1fb['isEmpty'])return!0x0;const _0x36f5b7=_0x35a1fb['getChild'](0x0);return _0x36f5b7['is']('element','paragraph')&&_0x36f5b7['isEmpty'];}function Ue(_0x221825,_0x5bb234={},_0x3f0ec7){for(const {isAnchor:_0x3a1a89,cellHeight:_0xae93c8,cellWidth:_0x433bb9}of _0x3f0ec7['createTableWalker'](_0x221825,{'includeAllSlots':!0x0,..._0x5bb234}))if(!_0x3a1a89||0x1!=_0xae93c8||0x1!=_0x433bb9)return!0x1;return!0x0;}class Dt extends _0x2bddd5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xd3ca88=this['editor']['plugins']['get']('TrackChangesEditing');_0xd3ca88['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xd3ca88['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xd3ca88['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd3ca88['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xd3ca88['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xd3ca88['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1f0d13,_0x1e1da1){const _0x4ae09a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35e7a7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1f9f13=_0x1e1da1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1360e5=_0x35e7a7['getColumnGroupElement'](_0x1f9f13);let _0x20288f=_0x1360e5?_0x35e7a7['getTableColumnsWidths'](_0x1360e5):null,_0x26bc1f=_0x1f9f13['getAttribute']('tableWidth')||null;const _0xd756d2=_0x1e1da1['tableWidth']||_0x26bc1f,_0x2d1feb=_0x1e1da1['columnWidths']||_0x20288f,_0x5c5101=this['editor']['plugins']['get']('Users')['me'];for(const _0x586959 of _0x4ae09a['getSuggestions']()){const _0x39eadb=_0x586959['getContainedElement']();if('resizeTable'===_0x586959['subType']&&_0x39eadb===_0x1f9f13){_0x586959['author']!==_0x5c5101&&_0x586959['discard']();const _0x2ee0b5=_0x586959['data']['commandParams'];_0x26bc1f=_0x2ee0b5[0x0]['tableWidth'],_0x20288f=_0x2ee0b5[0x0]['columnWidths'];break;}}_0x1f0d13({'table':_0x1f9f13,'tableWidth':_0xd756d2,'columnWidths':_0x2d1feb}),_0x4ae09a['markBlockFormat'](_0x1f9f13,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x26bc1f,'columnWidths':_0x20288f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4509aa){if('formatBlock'!=_0x4509aa['type']&&'formatInline'!=_0x4509aa['type'])return;const {data:_0x2f088d}=_0x4509aa;if(_0x2f088d&&'resizeTable'===_0x2f088d['formatGroupId']){const _0x150e79='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x150e79)};}}}class Mt extends _0x2bddd5{['afterInit'](){const _0x512658=this['editor'];_0x512658['plugins']['has']('Template')&&_0x512658['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x2bddd5{['afterInit'](){const _0xa1aa94=this['editor'];if(!_0xa1aa94['commands']['get']('insertTableOfContents'))return;_0xa1aa94['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x556efc=_0xa1aa94['plugins']['get']('TrackChangesEditing'),_0x4be991=_0xa1aa94['locale'];_0x556efc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a6ea5=>o(_0x4be991,'ELEMENT_TABLE_OF_CONTENTS',_0x1a6ea5));}}class Bt extends _0x2bddd5{['afterInit'](){const _0x5999b7=this['editor'];if(!_0x5999b7['plugins']['has']('Title'))return;const _0x357fe1=_0x5999b7['plugins']['get']('TrackChangesEditing');_0x357fe1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5999b7['locale'],'ELEMENT_TITLE')),_0x5999b7['model']['document']['registerPostFixer'](_0x14cefe=>{let _0x2b984a=!0x1;const _0x220d4c=Array['from'](_0x5999b7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2cac1b,data:_0x82ad8}of _0x220d4c){const {group:_0xc8ee26}=_0x357fe1['_splitMarkerName'](_0x2cac1b);if('suggestion'!==_0xc8ee26||!_0x82ad8['newRange'])continue;const _0x2ce443=_0x82ad8['newRange'],_0x2ed016=_0x2ce443['end']['nodeBefore'];if(!_0x2ed016||!_0x2ed016['is']('element','title-content'))continue;if(!_0x2ce443['start']['isTouching'](_0x2ce443['end']))continue;const _0x51346c=_0x5999b7['model']['schema']['getNearestSelectionRange'](_0x2ce443['end'],'forward');if(_0x51346c&&_0x51346c['isCollapsed']){const _0x5475b8=_0x14cefe['createRange'](_0x2ce443['start'],_0x51346c['start']);_0x5475b8['isEqual'](_0x2ce443)||(_0x14cefe['updateMarker'](_0x2cac1b,{'range':_0x5475b8}),_0x2b984a=!0x0);}_0x2b984a||(_0x14cefe['removeMarker'](_0x2cac1b),_0x2b984a=!0x0);}return _0x2b984a;});}}class Tt extends _0x2bddd5{['afterInit'](){const _0x402705=this['editor'],_0x5eb76b=_0x402705['plugins']['get']('TrackChangesEditing');_0x402705['plugins']['has']('Uploadcare')&&(_0x5eb76b['enableCommand']('uploadcare'),_0x402705['plugins']['has']('UploadcareImageEdit')&&(_0x5eb76b['enableCommand']('uploadcareImageEdit'),_0x5eb76b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5eb76b['registerBlockAttribute']('uploadcareImageId'),_0x5eb76b['descriptionFactory']['registerDescriptionCallback'](_0x546f8d=>{if('attribute'!=_0x546f8d['type'])return;const {data:_0x481136}=_0x546f8d;return _0x481136&&'uploadcareImageId'==_0x481136['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x2bddd5{['afterInit'](){const _0x50a4ef=this['editor'],_0xfafb90=_0x50a4ef['plugins']['get']('TrackChangesEditing');_0x50a4ef['plugins']['has']('UndoEditing')&&(_0xfafb90['enableCommand']('undo'),_0xfafb90['enableCommand']('redo'));}}class Ot extends _0x2bddd5{static get['requires'](){return[At];}['afterInit'](){const _0x252bfc=this['editor'];if(!_0x252bfc['plugins']['has']('TableCaptionEditing'))return;_0x252bfc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x2bddd5{['tableProperties'];['tableCellProperties'];constructor(_0x2720d6){super(_0x2720d6),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 _0x4ec333=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5727d4 of this['tableProperties'])_0x4ec333['enableCommand'](_0x5727d4,(_0x190632,_0x5885c1)=>{const _0x3f11f4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5727d4,[_0x3f11f4],this['tableProperties'],'tableProperties',_0x190632,_0x5885c1);});_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4ec333['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3f04fd,_0x246399)=>this['handleDiscardAction'](this['tableProperties'],_0x3f04fd,_0x246399)),_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1a5d74 of this['tableCellProperties'])_0x4ec333['enableCommand'](_0x1a5d74,(_0x3764ea,_0x777e25)=>{const _0x932ef9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1a5d74,_0x932ef9,this['tableCellProperties'],'tableCellProperties',_0x3764ea,_0x777e25);});_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4ec333['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xf7bcec,_0x144c5c)=>this['handleDiscardAction'](this['tableCellProperties'],_0xf7bcec,_0x144c5c)),_0x4ec333['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4ec333['descriptionFactory']['registerDescriptionCallback'](_0x58e5d7=>this['handleSuggestionDescription'](_0x58e5d7));}['_handlePropertyChange'](_0x158fbd,_0x241c7f,_0x11364e,_0x14f4c2,_0x5298de,_0x4da503){const _0xff8a10=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4da503['batch'],()=>{for(const _0x779ac6 of _0x241c7f){if(this['_getSuggestion'](_0x779ac6,_0x14f4c2))_0x5298de(_0x4da503);else{const _0x6d5c8f={};for(const _0x31a051 of _0x11364e){const _0x36ae6d=_0x779ac6['getAttribute'](_0x31a051);void 0x0!==_0x36ae6d&&(_0x6d5c8f[_0x31a051]=_0x36ae6d);}_0x5298de(_0x4da503),_0xff8a10['markBlockFormat'](_0x779ac6,{'commandParams':[_0x6d5c8f]},[],_0x14f4c2);}}});}['handleDiscardAction'](_0x1473de,_0x23853d,_0x410b19){const _0x4d819f=_0x23853d[0x0]['start']['nodeAfter'],_0x9cadc9=_0x410b19['commandParams'][0x0];this['editor']['model']['change'](_0x3eee12=>{for(const _0x2713fc of _0x1473de)void 0x0!==_0x9cadc9[_0x2713fc]?_0x3eee12['setAttribute'](_0x2713fc,_0x9cadc9[_0x2713fc],_0x4d819f):_0x3eee12['removeAttribute'](_0x2713fc,_0x4d819f);});}['handleSuggestionDescription'](_0x1d87d2){if(_0x1d87d2['data'])switch(_0x1d87d2['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'](_0x88f0ca,_0x3d54b0){const _0x52db88=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3f8546 of _0x52db88['getSuggestions']({'skipNotAttached':!0x0})){const _0x18fb74=_0x3f8546['getContainedElement']();if(_0x3f8546['subType']===_0x3d54b0&&_0x18fb74===_0x88f0ca)return _0x3f8546;}return null;}}class Rt extends _0x2bddd5{['afterInit'](){const _0x468b2f=this['editor'];if(!_0x468b2f['plugins']['has']('LineHeight'))return;const _0x3d572c=_0x468b2f['plugins']['get']('TrackChangesEditing'),_0x34af53=_0x468b2f['locale'];_0x3d572c['enableDefaultAttributesIntegration']('lineHeight'),_0x3d572c['registerBlockAttribute']('lineHeight'),_0x3d572c['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x34af53,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2bddd5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x27b3d9,_0x5b857b,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(_0x5df943){super(_0x5df943),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x196f7c,_0x267bbf,_0x4ea7c9,_0x1a564d)=>{this['_model']['change'](()=>{for(const _0x7e9835 of[..._0x1a564d,..._0x4ea7c9])this['_model']['markers']['has'](_0x7e9835)&&_0x5df943['editing']['reconvertMarker'](_0x7e9835);});}),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']=_0x5df943['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(),_0x5df943['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5df943['config']['get']('trackChanges.trackFormatChanges'),_0x5df943['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5df943['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x5df943,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5b67ca=this['editor'],_0x28120e=(_0x50443e,_0x33713a)=>{if('attribute'!=_0x50443e)return'ck-suggestion-marker-'+_0x50443e;const _0x105f0d=_0x33713a['split']('|')[0x0];return this['_isBlockAttribute'](_0x105f0d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5b67ca['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x526a6a=>{const {id:_0x21929d,authorId:_0x4d9035,type:_0x475a99,subType:_0x307ab9}=this['_splitMarkerName'](_0x526a6a['markerName']),_0x4ed093=['ck-suggestion-marker',_0x28120e(_0x475a99,_0x307ab9)];let _0x1d2512=0xbb8;return this['activeMarkers']['includes'](_0x526a6a['markerName'])&&(_0x4ed093['push']('ck-suggestion-marker--active'),_0x1d2512=0xbc2),'deletion'==_0x475a99&&(_0x1d2512+=0x5),{'classes':_0x4ed093,'attributes':{'data-suggestion':_0x21929d,'data-author-id':_0x4d9035},'priority':_0x1d2512};}}),_0x5b67ca['conversion']['for']('dataDowncast')['add'](_0x524025=>{_0x524025['on']('addMarker:suggestion',(_0x296d3e,_0x5028cb,_0x598bf6)=>{if(!_0x598bf6['options']['showSuggestionHighlights'])return;const _0x168fd4=_0x5028cb['item'];if(!_0x168fd4)return;const _0xf93bad=_0x598bf6['mapper']['toViewElement'](_0x168fd4);_0x5b67ca['model']['schema']['isObject'](_0x168fd4)&&_0xf93bad&&!_0xf93bad['getCustomProperty']('widget')&&_0xf93bad['is']('containerElement')&&_0x313690(_0xf93bad,_0x598bf6['writer']);},{'priority':'high'});}),_0x5b67ca['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x53d9bc,_0x474d37)=>{if(!_0x474d37['options']['showSuggestionHighlights'])return null;const {id:_0x1ebb6b,authorId:_0x5d0b17,type:_0x12ca18,subType:_0x454e3f}=this['_splitMarkerName'](_0x53d9bc['markerName']);return{'classes':['ck-suggestion-marker',_0x28120e(_0x12ca18,_0x454e3f)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1ebb6b,'data-author-id':_0x5d0b17}};}});const _0xce2940=({showActiveMarkers:_0x4dba53=!0x0,isAttributeSuggestion:_0x5c9e38=!0x1}={})=>(_0x26ceca,_0x2ce09,_0x52d987)=>{if(!_0x2ce09['item'])return;const {id:_0x2925d7,authorId:_0x3e539a}=this['_splitMarkerName'](_0x2ce09['markerName']);if(_0x5c9e38){const _0x47d07a=this['_suggestions']['get'](_0x2925d7),_0x4a3337=this['_getAttributeKey'](_0x47d07a);if(!this['_isBlockAttribute'](_0x4a3337))return;}if(_0x2ce09['item']['is']('selection'))return void _0x52d987['consumable']['consume'](_0x2ce09['item'],_0x26ceca['name']);const _0xb3bd02=_0x52d987['mapper']['toViewElement'](_0x2ce09['item']);if(_0x2ce09['item']['is']('element')&&_0x5b67ca['model']['schema']['isBlock'](_0x2ce09['item'])&&!_0xb3bd02['getCustomProperty']('addHighlight')){_0x52d987['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xb3bd02),_0x52d987['writer']['setAttribute']('data-suggestion',_0x2925d7,_0xb3bd02),_0x52d987['writer']['setAttribute']('data-author-id',_0x3e539a,_0xb3bd02),_0x52d987['mapper']['bindElementToMarker'](_0xb3bd02,_0x2ce09['markerName']),_0x4dba53&&(this['activeMarkers']['includes'](_0x2ce09['markerName'])?_0x52d987['writer']['addClass']('ck-suggestion-marker--active',_0xb3bd02):_0x52d987['writer']['removeClass']('ck-suggestion-marker--active',_0xb3bd02));for(const _0x4bc199 of _0x5b67ca['model']['createRangeIn'](_0x2ce09['item'])['getItems']())_0x52d987['consumable']['consume'](_0x4bc199,_0x26ceca['name']);_0x52d987['consumable']['consume'](_0x2ce09['item'],_0x26ceca['name']);}};_0x5b67ca['conversion']['for']('dataDowncast')['add'](_0x50ff20=>{_0x50ff20['on']('addMarker:suggestion:formatBlock',(_0x382281,_0x3a4293,_0x57d217)=>{_0x57d217['options']['showSuggestionHighlights']&&_0xce2940({'showActiveMarkers':!0x1})(_0x382281,_0x3a4293,_0x57d217);},{'priority':'highest'});}),_0x5b67ca['conversion']['for']('dataDowncast')['add'](_0x47f018=>{_0x47f018['on']('addMarker:suggestion:attribute',(_0x2a5944,_0x16d7bb,_0xbf94df)=>{_0xbf94df['options']['showSuggestionHighlights']&&_0xce2940({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2a5944,_0x16d7bb,_0xbf94df);},{'priority':'highest'});}),_0x5b67ca['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x540150,_0x2b7cb9)=>{if(_0x2b7cb9['options']['showSuggestionHighlights']){const {id:_0x47d56b,authorId:_0x49d6d6}=this['_splitMarkerName'](_0x540150);return _0x540150['includes'](':split')||_0x540150['includes'](':merge')?{'group':'suggestion','name':_0x540150['substr'](0xb),'attributes':{'data-suggestion':_0x47d56b,'data-author-id':_0x49d6d6}}:null;}return{'group':'suggestion','name':_0x540150['substr'](0xb)};}}),_0x5b67ca['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x453122,{writer:_0x285933})=>{let _0x4b6590='suggestion:'+_0x453122['getAttribute']('suggestion-type')+':'+_0x453122['getAttribute']('id');return _0x453122['getAttribute']('marker-count')&&(_0x4b6590+=':'+_0x453122['getAttribute']('marker-count')),_0x285933['createElement']('$marker',{'data-name':_0x4b6590});}}),_0x5b67ca['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5b67ca['conversion']['for']('editingDowncast')['add'](_0x2c4366=>{_0x2c4366['on']('addMarker:suggestion:formatBlock',_0xce2940(),{'priority':'high'});}),_0x5b67ca['conversion']['for']('editingDowncast')['add'](_0x44966b=>{_0x44966b['on']('addMarker:suggestion:attribute',_0xce2940({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5b67ca['conversion']['for']('editingDowncast')['add'](_0x42ba4d=>{_0x42ba4d['on']('removeMarker:suggestion:formatBlock',(_0x43bbaf,_0x225904,_0x468a34)=>{const _0x185e48=_0x468a34['mapper']['markerNameToElements'](_0x225904['markerName']);if(_0x185e48){for(const _0x88ab18 of _0x185e48)_0x88ab18['getCustomProperty']('addHighlight')||(_0x468a34['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x88ab18),_0x468a34['writer']['removeAttribute']('data-suggestion',_0x88ab18),_0x468a34['writer']['removeAttribute']('data-author-id',_0x88ab18),_0x468a34['mapper']['unbindElementFromMarkerName'](_0x88ab18,_0x225904['markerName']));}},{'priority':'high'});}),_0x5b67ca['conversion']['for']('editingDowncast')['add'](_0x16fdb5=>{_0x16fdb5['on']('removeMarker:suggestion:attribute',(_0x2a78f3,_0x540c7b,_0x36a542)=>{const _0x48b465=_0x36a542['mapper']['markerNameToElements'](_0x540c7b['markerName']);if(!_0x48b465)return;const {id:_0x46cda4}=this['_splitMarkerName'](_0x540c7b['markerName']),_0x460e37=this['_suggestions']['get'](_0x46cda4),_0x41957e=this['_getAttributeKey'](_0x460e37);if(this['_isBlockAttribute'](_0x41957e)){for(const _0xdfcfd8 of _0x48b465)_0xdfcfd8['getCustomProperty']('addHighlight')||(_0x36a542['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xdfcfd8),_0x36a542['writer']['removeAttribute']('data-suggestion',_0xdfcfd8),_0x36a542['writer']['removeAttribute']('data-author-id',_0xdfcfd8),_0x36a542['mapper']['unbindElementFromMarkerName'](_0xdfcfd8,_0x540c7b['markerName']));}},{'priority':'high'});}),_0x5b67ca['model']['document']['registerPostFixer'](_0x5eccb1=>{let _0x2e9c51=!0x1;const _0x19a57b=Array['from'](_0x5b67ca['model']['document']['differ']['getChangedMarkers']()),_0x542d05=new Set();for(const {name:_0xa500a9,data:_0x2d9709}of _0x19a57b){const {group:_0x18d156,type:_0x257b6e,subType:_0x5600df,id:_0x3b94d8}=this['_splitMarkerName'](_0xa500a9);if('suggestion'!==_0x18d156)continue;const _0x4ac537=this['_suggestions']['get'](_0x3b94d8);if(null!=_0x2d9709['newRange']){'formatInline'==_0x257b6e&&(_0x2e9c51=_0x2e9c51||Gt(_0x2d9709['newRange'],_0xa500a9,_0x5eccb1,_0x5b67ca['model']['schema']));const _0x145c20='attribute'==_0x257b6e&&this['_isBlockAttribute'](_0x5600df['split']('|')[0x0]);if(_0x2d9709['newRange']['isCollapsed']||'$graveyard'==_0x2d9709['newRange']['root']['rootName']||'formatBlock'==_0x257b6e&&!Jt(_0x2d9709['newRange'])||_0x145c20&&!Jt(_0x2d9709['newRange'])||'deletion'==_0x257b6e&&!Kt(_0x2d9709['newRange']))_0x5eccb1['removeMarker'](_0xa500a9),_0x2e9c51=!0x0;else{if(!_0x4ac537||!_0x4ac537['isInContent'])continue;if(_0x2d9709['newRange']&&_0x2d9709['oldRange']&&_0x2d9709['newRange']['isEqual'](_0x2d9709['oldRange']))continue;_0x542d05['add'](_0x4ac537);}}}return _0x542d05['size']>0x0&&(_0x2e9c51=!!this['_joinWithAdjacentSuggestions'](_0x542d05)||_0x2e9c51),_0x2e9c51;}),_0x5b67ca['model']['document']['registerPostFixer'](_0x55be59=>{let _0x4aee3f=!0x1;for(const _0xaa69c8 of _0x5b67ca['model']['document']['differ']['getChanges']())if('insert'==_0xaa69c8['type'])for(const _0x3a3025 of this['_suggestions']['values']()){if(_0x3a3025['isMultiRange']||!_0x3a3025['isInContent'])continue;const _0x22d081='formatBlock'==_0x3a3025['type'],_0x57aeca=this['_getAttributeKey'](_0x3a3025),_0x47b4f9=_0x57aeca&&this['_isBlockAttribute'](_0x57aeca);if(!_0x22d081&&!_0x47b4f9)continue;const _0xe24ff7=_0x3a3025['getFirstRange']();if(_0xe24ff7['start']['parent']!=_0xe24ff7['end']['parent']&&!_0xe24ff7['end']['isAtEnd']){const _0xcc8317=_0x5b67ca['model']['createPositionAt'](_0xe24ff7['start']['nodeAfter'],'end'),_0x5e3839=_0x5b67ca['model']['createRange'](_0xe24ff7['start'],_0xcc8317);_0x55be59['updateMarker'](_0x3a3025['getFirstMarker'](),{'range':_0x5e3839}),_0x4aee3f=!0x0;}}return _0x4aee3f;}),_0x5b67ca['model']['document']['registerPostFixer'](_0x17509b=>this['_processAttributeChanges'](_0x17509b)),_0x5b67ca['model']['document']['registerPostFixer'](_0x39817f=>!_0x39817f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x39817f)),_0x5b67ca['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5b67ca['model']['document']['on']('change:data',(_0x18533b,_0x331c71)=>{if(!_0x331c71['isLocal']||_0x331c71['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x410393=_0x5b67ca['model']['document']['differ']['getChanges']();if(0x0==_0x410393['length'])return;const _0x497492=[],_0x1f4f34=_0x410393['filter'](_0x451156=>'attribute'==_0x451156['type']),_0x362718=_0x410393['filter'](_0x322b7d=>'insert'==_0x322b7d['type']&&'$text'!=_0x322b7d['name']);for(const _0x3cd685 of _0x1f4f34)this['_isRegisteredAttribute'](_0x3cd685['attributeKey'])&&_0x497492['push']({'key':_0x3cd685['attributeKey'],'newValue':_0x3cd685['attributeNewValue'],'oldValue':_0x3cd685['attributeOldValue'],'range':Ht(_0x3cd685['range'],_0x5b67ca['model'])});for(const _0x5d8b9e of _0x362718){if('rename'!=_0x5d8b9e['action']&&'refresh'!=_0x5d8b9e['action'])continue;const _0x11033c=qt(_0x5d8b9e['position']['nodeAfter'],_0x5b67ca['model']),_0x49f7e9=_0x5d8b9e['before'];'rename'==_0x5d8b9e['action']&&_0x497492['push']({'key':m,'newValue':_0x5d8b9e['name'],'oldValue':_0x49f7e9['name'],'range':_0x11033c});for(const [_0x298dea,_0x212c6d]of _0x49f7e9['attributes']){if(!this['_isRegisteredAttribute'](_0x298dea))continue;const _0xa28e88=_0x5d8b9e['attributes']['get'](_0x298dea);_0x212c6d!==_0xa28e88&&_0x497492['push']({'key':_0x298dea,'newValue':_0xa28e88,'oldValue':_0x212c6d,'range':_0x11033c});}for(const [_0x12f005,_0x26a83d]of _0x5d8b9e['attributes'])this['_isRegisteredAttribute'](_0x12f005)&&(_0x49f7e9['attributes']['has'](_0x12f005)||_0x497492['push']({'key':_0x12f005,'newValue':_0x26a83d,'oldValue':null,'range':_0x11033c}));}0x0!=_0x497492['length']&&_0x5b67ca['model']['enqueueChange'](_0x331c71,_0x3495f0=>{const _0x127247=_0x4bb6e6();for(const {range:_0x2e63bf,key:_0x362c80,oldValue:_0x34478c,newValue:_0x2248f4}of _0x497492)this['markAttributeChange'](_0x2e63bf,_0x362c80,_0x34478c,_0x2248f4,{'groupId':_0x127247});this['_reduceExistingSuggestions'](_0x3495f0,_0x497492);});},{'priority':'lowest'}),_0x5b67ca['model']['markers']['on']('update:suggestion',(_0xea2309,_0x4cd3cc,_0x13cfab)=>{if(null==_0x13cfab){const {id:_0x12002e}=this['_splitMarkerName'](_0x4cd3cc['name']),_0x11fe39=this['_suggestions']['get'](_0x12002e);_0x11fe39&&_0x11fe39['addMarkerName'](_0x4cd3cc['name']);}}),_0x5b67ca['model']['document']['on']('change:data',()=>{const _0x2345b8=Array['from'](_0x5b67ca['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2d0b40=>'suggestion'===this['_splitMarkerName'](_0x2d0b40['name'])['group']);if(0x0===_0x2345b8['length'])return;_0x2345b8['sort']((_0x1d687b,_0x189ad0)=>{const _0x37d309=_0x1d687b['data']['oldRange'],_0x441895=_0x189ad0['data']['oldRange'];return null===_0x37d309&&null===_0x441895?0x0:null===_0x37d309&&null!==_0x441895?-0x1:null!==_0x37d309&&null===_0x441895?0x1:_0x37d309['start']['isBefore'](_0x441895['start'])?-0x1:0x1;});const _0x3830f7=new Set(),_0x406ef3=new Set();for(const {name:_0x528e61,data:_0xc44100}of _0x2345b8){const {id:_0x2f3d92}=this['_splitMarkerName'](_0x528e61);if(null===_0xc44100['oldRange']){const _0x323da2=this['_handleNewSuggestionMarker'](_0x528e61);_0x406ef3['add'](_0x323da2);}else{const _0x3e9196=this['_suggestions']['get'](_0x2f3d92);null!==_0xc44100['newRange']||_0x3e9196['isInContent']?(_0x3830f7['add'](_0x3e9196['head']),_0x406ef3['add'](_0x3e9196)):this['_removeSuggestion'](_0x3e9196);}}_0x406ef3['size']>0x0&&this['_refreshSuggestionsChain'](_0x406ef3);for(const _0x4ef0d9 of _0x3830f7)this['fire']('suggestionChanged',_0x4ef0d9);}),_0x5b67ca['model']['on']('applyOperation',(_0x35e6b8,_0x444454)=>{const _0x49bb60=_0x444454[0x0];if(!this['_suggestions']['size'])return;if(!_0x49bb60['isDocumentOperation'])return;if(_0x49bb60['batch']['isUndo']||!_0x49bb60['batch']['isLocal'])return;let _0x21e932,_0x2f2561;switch(_0x49bb60['type']){case'insert':_0x21e932=_0x5b67ca['model']['createPositionAt'](_0x49bb60['position']),_0x2f2561=_0x21e932['getShiftedBy'](_0x49bb60['howMany']);break;case'split':_0x21e932=_0x5b67ca['model']['createPositionAt'](_0x49bb60['splitPosition']),_0x2f2561=_0x5b67ca['model']['createPositionAt'](_0x49bb60['moveTargetPosition']);break;case'move':_0x21e932=_0x5b67ca['model']['createPositionAt'](_0x49bb60['targetPosition']),_0x2f2561=_0x21e932['getShiftedBy'](_0x49bb60['howMany']);break;default:return;}const _0x4fda20=_0x5b67ca['model']['createRange'](_0x21e932,_0x2f2561);_0x5b67ca['model']['change'](()=>{for(const {suggestion:_0xb94d74,meta:_0x2e6ef2}of this['_findSuggestions'](_0x4fda20)){if(_0xb94d74['isMultiRange'])continue;if('formatInline'==_0xb94d74['type'])continue;const _0x4a6fcd=this['_getAttributeKey'](_0xb94d74);if(_0x4a6fcd&&this['_isBlockAttribute'](_0x4a6fcd)&&'split'!=_0x49bb60['type'])continue;const _0x186995=_0xb94d74['data']&&_0xb94d74['data']['multipleBlocks'];('formatBlock'!=_0xb94d74['type']||'split'==_0x49bb60['type']&&!_0x186995)&&(_0x2e6ef2['containsRangeInObject']||'insertion'==_0xb94d74['type']&&_0x2e6ef2['isOwn']||_0xb94d74['getFirstRange']()['containsRange'](_0x4fda20)&&this['_breakSuggestionMarker'](_0xb94d74,_0x21e932,_0x2f2561));}});},{'priority':'lowest'}),_0x5b67ca['model']['on']('deleteContent',(_0x50bf3e,_0xfb8aad)=>{const _0x66ac63=_0xfb8aad[0x0],_0x12159d=_0xfb8aad[0x1];if(_0x12159d&&_0x12159d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x66ac63['isCollapsed'])return;const _0x2cc8b7=_0x5b67ca['model']['schema'],{start:_0x384b51,end:_0x1ab562}=_0x66ac63['getFirstRange'](),_0x558e53=_0x384b51['nodeAfter']&&_0x2cc8b7['isLimit'](_0x384b51['nodeAfter'])?null:_0x2cc8b7['getNearestSelectionRange'](_0x384b51,'forward'),_0x34ebe2=_0x1ab562['nodeBefore']&&_0x2cc8b7['isLimit'](_0x1ab562['nodeBefore'])?null:_0x2cc8b7['getNearestSelectionRange'](_0x1ab562,'backward'),_0x342114=_0x5b67ca['model']['createRange'](_0x558e53?_0x558e53['start']:_0x384b51,_0x34ebe2?_0x34ebe2['end']:_0x1ab562);_0x5b67ca['model']['change'](_0x4454cf=>{this['markDeletion'](_0x342114);const _0x4c3d98=_0x5b67ca['model']['schema']['getNearestSelectionRange'](_0x342114['start']);_0x66ac63['is']('documentSelection')?_0x4454cf['setSelection'](_0x4c3d98):_0x66ac63['setTo'](_0x4c3d98);}),_0x50bf3e['stop']();},{'priority':_0x2048ff['normal']+0xa}),_0x5b67ca['model']['on']('insertContent',(_0x3dff11,_0x4a2814)=>{const _0x303c38=_0x4a2814[_0x4a2814['length']-0x1];_0x303c38&&_0x303c38['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5b67ca['model']['change'](()=>{let _0x10321b=_0x5b67ca['model']['insertContent'](_0x4a2814[0x0],_0x4a2814[0x1],_0x4a2814[0x2],{'forceDefaultExecution':!0x0});if(!_0x10321b)return;_0x3dff11['return']=_0x10321b['clone']();const _0x481b1c=_0x10321b['end']['nodeBefore'],_0x52f9d3=_0x5b67ca['model']['schema'];_0x481b1c&&_0x52f9d3['isBlock'](_0x481b1c)&&!_0x52f9d3['isObject'](_0x481b1c)&&(_0x10321b=_0x5b67ca['model']['createRange'](_0x10321b['start'],_0x5b67ca['model']['createPositionAt'](_0x481b1c,'end'))),this['markInsertion'](_0x10321b);}),_0x3dff11['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x150a43=new D(_0x5b67ca,this['_suggestions']);_0x5b67ca['commands']['add']('acceptSuggestion',_0x150a43),this['enableCommand']('acceptSuggestion');const _0xcfc5ac=new M(_0x5b67ca,this['_suggestions']);_0x5b67ca['commands']['add']('discardSuggestion',_0xcfc5ac),this['enableCommand']('discardSuggestion'),_0x5b67ca['commands']['add']('acceptAllSuggestions',new $(_0x5b67ca,_0x150a43,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5b67ca['commands']['add']('discardAllSuggestions',new $(_0x5b67ca,_0xcfc5ac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5b67ca['commands']['add']('acceptSelectedSuggestions',new B(_0x5b67ca,_0x150a43,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5b67ca['commands']['add']('discardSelectedSuggestions',new B(_0x5b67ca,_0xcfc5ac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x17c381=_0x5b67ca['plugins']['get']('CommentsRepository');this['listenTo'](_0x17c381,'addComment',(_0xac626,{threadId:_0x4627f2})=>{const _0x6c36e=this['_suggestions']['get'](_0x4627f2);_0x6c36e&&_0x6c36e['commentThread']&&0x1===_0x6c36e['commentThread']['length']&&this['_updateSuggestionData'](_0x4627f2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x17c381,'removeComment',(_0x525d7c,{threadId:_0x23c36d})=>{const _0x212e6f=this['_suggestions']['get'](_0x23c36d);_0x212e6f&&_0x212e6f['commentThread']&&!_0x212e6f['commentThread']['length']&&this['_updateSuggestionData'](_0x23c36d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2616db){const _0x2cb66a=_0x1e85de([0x69,0x6a,0x56,0x61,0x36,0x33,0x68,0x65,0x6b,0x30,0x47,0x4a,0x32,0x72,0x59,0x6d,0x6f,0x4f,0x78,0x48,0x4b,0x58,0x42,0x45,0x7a,0x38,0x76,0x49,0x6e,0x70,0x5a,0x67,0x79,0x4e,0x77,0x41,0x43,0x44,0x39,0x6c,0x53,0x31,0x46,0x57,0x74,0x50,0x34,0x63,0x51,0x52,0x62,0x64,0x4d,0x54,0x75,0x71,0x4c,0x73,0x35,0x66,0x37,0x55]),_0xf39ede=0x39fbb5b1,_0x1f1b8c=0x39fcd9b9^_0xf39ede,_0x4be78e=window[_0x1e85de([0x44,0x61,0x74,0x65])][_0x1e85de([0x6e,0x6f,0x77])](),_0x2bced8=_0x2616db[_0x1e85de([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d193c=new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54e957=>{_0x2bced8[_0x1e85de([0x6f,0x6e,0x63,0x65])](_0x1e85de([0x72,0x65,0x61,0x64,0x79]),_0x54e957);}),_0x40aae0={[_0x1e85de([0x6b,0x74,0x79])]:_0x1e85de([0x45,0x43]),[_0x1e85de([0x75,0x73,0x65])]:_0x1e85de([0x73,0x69,0x67]),[_0x1e85de([0x63,0x72,0x76])]:_0x1e85de([0x50,0x2d,0x32,0x35,0x36]),[_0x1e85de([0x78])]:_0x1e85de([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]),[_0x1e85de([0x79])]:_0x1e85de([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]),[_0x1e85de([0x61,0x6c,0x67])]:_0x1e85de([0x45,0x53,0x32,0x35,0x36])},_0x5c9041=_0x2bced8[_0x1e85de([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e85de([0x67,0x65,0x74])](_0x1e85de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x202aa9(){let _0x53b836,_0x306b3=null,_0x24d6cf=null;try{if(_0x5c9041==_0x1e85de([0x47,0x50,0x4c]))return _0x1e85de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x53b836=_0x4a6e38(),!_0x53b836)return _0x1e85de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x53b836[_0x1e85de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24d6cf=_0x2e6aee(_0x53b836[_0x1e85de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x53b836[_0x1e85de([0x6a,0x74,0x69])])),await _0x33bf8f()?_0x2dad99()?_0x583946()?_0x1e85de([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a6f11()?(_0x53b836[_0x1e85de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e85de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x306b3=_0x35096b(_0x1e85de([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x53b836[_0x1e85de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e85de([0x74,0x72,0x69,0x61,0x6c])&&(_0x306b3=_0x35096b(_0x1e85de([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x298a5a()):_0x1e85de([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e85de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e85de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e85de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x583946(){const _0x189556=[_0x1e85de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e85de([0x74,0x72,0x69,0x61,0x6c])][_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53b836[_0x1e85de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4be78e/0x3e8:0xe10*_0x1f1b8c;return _0x53b836[_0x1e85de([0x65,0x78,0x70])]<_0x189556;}function _0x2dad99(){const _0x15402=_0x53b836[_0x1e85de([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x15402)return!0x1;if(_0x15402[_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e85de([0x2a])))return!0x0;if(_0x15402[_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e85de([0x54,0x43])))return!0x0;if(_0x15402[_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e85de([0x52,0x54,0x43]))){if(_0x3d5645())return!0x0;if(_0x524d6e()||_0x25b85d())return!0x0;}return!0x1;}function _0x3a6f11(){const _0x5413d4=_0x53b836[_0x1e85de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5413d4||0x0==_0x5413d4[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9756f5}=new URL(window[_0x1e85de([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5413d4[_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9756f5))return!0x0;const _0x5503d5=_0x9756f5[_0x1e85de([0x73,0x70,0x6c,0x69,0x74])](_0x1e85de([0x2e]));return _0x5413d4[_0x1e85de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18a68b=>_0x18a68b[_0x1e85de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e85de([0x2a])))[_0x1e85de([0x6d,0x61,0x70])](_0xbecc3e=>_0xbecc3e[_0x1e85de([0x73,0x70,0x6c,0x69,0x74])](_0x1e85de([0x2e])))[_0x1e85de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x473e39=>_0x473e39[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5503d5[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e85de([0x6d,0x61,0x70])](_0xf4182b=>Array(_0x5503d5[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf4182b[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e85de([0x66,0x69,0x6c,0x6c])](_0xf4182b[0x0]===_0x1e85de([0x2a])?_0x1e85de([0x2a]):'')[_0x1e85de([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf4182b))[_0x1e85de([0x73,0x6f,0x6d,0x65])](_0x119e72=>_0x5503d5[_0x1e85de([0x65,0x76,0x65,0x72,0x79])]((_0x1ff3f8,_0x5476f8)=>_0x119e72[_0x5476f8]===_0x1ff3f8||_0x119e72[_0x5476f8]===_0x1e85de([0x2a])));}function _0x298a5a(){return _0x306b3&&_0x24d6cf?new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x185b25,_0x13679f)=>{_0x306b3[_0x1e85de([0x74,0x68,0x65,0x6e])](_0x185b25,_0x13679f),_0x24d6cf[_0x1e85de([0x74,0x68,0x65,0x6e])](_0x58b4d8=>{_0x58b4d8!=_0x1e85de([0x56,0x61,0x6c,0x69,0x64])&&_0x185b25(_0x58b4d8);},_0x13679f);}):_0x306b3||_0x24d6cf||_0x1e85de([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2e6aee(_0x4ce77b,_0x5be370){return new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19c340=>{if(_0x11364a())return _0x19c340(_0x1e85de([0x56,0x61,0x6c,0x69,0x64]));_0x3df894(),_0x2bced8[_0x1e85de([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e85de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14d648=!0x1;const _0x4d61b7=_0x4bb6e6();function _0x756464(_0x58fa83){return!!_0x58fa83&&(typeof _0x58fa83===_0x1e85de([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58fa83===_0x1e85de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58fa83[_0x1e85de([0x74,0x68,0x65,0x6e])]===_0x1e85de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58fa83[_0x1e85de([0x63,0x61,0x74,0x63,0x68])]===_0x1e85de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x110cd9(_0x23fb04){_0x1feda0(_0x23fb04)[_0x1e85de([0x74,0x68,0x65,0x6e])](_0x20302d=>{if(!_0x20302d||_0x20302d[_0x1e85de([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e85de([0x6f,0x6b]))return _0x1e85de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x32bc96(_0x49c89c(_0x4d61b7+_0x5be370))!=_0x20302d[_0x1e85de([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e85de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e85de([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e85de([0x74,0x68,0x65,0x6e])](_0x232d75=>(_0x3e3a21(),_0x232d75),()=>{const _0x3e1728=_0x38241e();return null==_0x3e1728?(_0x3e3a21(),_0x1e85de([0x56,0x61,0x6c,0x69,0x64])):_0x1e85de(_0x4be78e-_0x3e1728>(0x1df731b1^_0xf39ede)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e85de([0x74,0x68,0x65,0x6e])](_0x19c340)[_0x1e85de([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19c340(_0x1e85de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x471778=0x39cd5b31^_0xf39ede;function _0x3e3a21(){const _0xfb96f5=_0x1e85de([0x6c,0x6c,0x63,0x74,0x2d])+_0x32bc96(_0x49c89c(_0x4ce77b)),_0x2804ef=_0x2a663d(_0x32bc96(window[_0x1e85de([0x4d,0x61,0x74,0x68])][_0x1e85de([0x63,0x65,0x69,0x6c])](_0x4be78e/_0x471778)));window[_0x1e85de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e85de([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfb96f5,_0x2804ef);}function _0x38241e(){const _0x306f74=_0x1e85de([0x6c,0x6c,0x63,0x74,0x2d])+_0x32bc96(_0x49c89c(_0x4ce77b)),_0x5d8c54=window[_0x1e85de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e85de([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x306f74);return _0x5d8c54?window[_0x1e85de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a663d(_0x5d8c54),0x10)*_0x471778:null;}function _0x1feda0(_0x4c82cd){return new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb5545f,_0x14162a)=>{_0x4c82cd[_0x1e85de([0x74,0x68,0x65,0x6e])](_0xb5545f,_0x14162a),window[_0x1e85de([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14162a,0x39fa6171^_0xf39ede);});}}_0x2bced8[_0x1e85de([0x6f,0x6e])](_0x1e85de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4fae4f,_0x3d22b2)=>{if(_0x3d22b2[0x0]!=_0x4ce77b)return _0x19c340(_0x1e85de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d22b2[0x1]={..._0x3d22b2[0x1],[_0x1e85de([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d61b7};},{[_0x1e85de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e85de([0x68,0x69,0x67,0x68])}),_0x2bced8[_0x1e85de([0x6f,0x6e])](_0x1e85de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xbb1fb9=>{_0x756464(_0xbb1fb9[_0x1e85de([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14d648=!0x0,_0x110cd9(_0xbb1fb9[_0x1e85de([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e85de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e85de([0x6c,0x6f,0x77])}),_0x5d193c[_0x1e85de([0x74,0x68,0x65,0x6e])](()=>{_0x14d648||_0x19c340(_0x1e85de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x11364a(){return _0x2bced8[_0x1e85de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e85de([0x76,0x69,0x65,0x77])][_0x1e85de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e85de([0x61,0x75,0x74,0x6f]);}function _0x3df894(){_0x2bced8[_0x1e85de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e85de([0x76,0x69,0x65,0x77])][_0x1e85de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e85de([0x61,0x75,0x74,0x6f]);}}function _0x35096b(_0x39234a){const _0x205be7=[new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52c827=>setTimeout(_0x52c827,0x39f28b7d^_0xf39ede)),_0x5d193c[_0x1e85de([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x584fe1=>{let _0xdb1037=0x0;_0x2bced8[_0x1e85de([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e85de([0x6f,0x6e])](_0x1e85de([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a94f8,_0x3f0700)=>{_0x3f0700[0x0][_0x1e85de([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xdb1037++,_0xdb1037==(0x39fbb449^_0xf39ede)&&(_0x584fe1(),_0x4a94f8[_0x1e85de([0x6f,0x66,0x66])]());});}))];return window[_0x1e85de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e85de([0x72,0x61,0x63,0x65])](_0x205be7)[_0x1e85de([0x74,0x68,0x65,0x6e])](()=>_0x39234a);}async function _0x39f216(){await _0x5d193c,_0x2bced8[_0x1e85de([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e85de([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x14e444,_0x2bced8[_0x1e85de([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e85de([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x14e444,_0x2bced8[_0x1e85de([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e85de([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d5645(){return _0x5a907c(_0x1e85de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x276861(_0x1e85de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1e85de([0x73,0x74,0x61,0x74,0x65])]==_0x1e85de([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x524d6e(){return _0x5a907c(_0x1e85de([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 _0x25b85d(){return _0x5a907c(_0x1e85de([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x47c25b(_0x296d89){const _0x558fa9=_0x437a0f();_0x2bced8[_0x558fa9]=_0x1e85de([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x296d89,_0x296d89!=_0x1e85de([0x56,0x61,0x6c,0x69,0x64])&&_0x39f216();}function _0x437a0f(){const _0x1ad2da=window[_0x1e85de([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e85de([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e85de([0x6e,0x6f,0x77])]())[_0x1e85de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e85de([0x2e]),'');let _0x458cf7=_0x1e85de([0x69]);for(let _0x63e535=0x0;_0x63e535<_0x1ad2da[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x63e535+=0x2){let _0x104051=window[_0x1e85de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ad2da[_0x1e85de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x63e535,_0x63e535+0x2));_0x104051>=_0x2cb66a[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x104051-=_0x2cb66a[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x458cf7+=_0x2cb66a[_0x104051];}return _0x458cf7;}function _0x4a6e38(){const _0xbd99f7=_0x5c9041[_0x1e85de([0x73,0x70,0x6c,0x69,0x74])](_0x1e85de([0x2e]));if(0x3!=_0xbd99f7[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54d595(_0xbd99f7[0x1]);function _0x54d595(_0x294564){const _0x1b1a20=_0x310020(_0x294564);return _0x1b1a20&&_0x4ff9f9()?_0x1b1a20:null;function _0x4ff9f9(){const _0x2d14ec=_0x1b1a20[_0x1e85de([0x6a,0x74,0x69])],_0x20fc82=window[_0x1e85de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d14ec[_0x1e85de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d14ec[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c1a77={..._0x1b1a20,[_0x1e85de([0x6a,0x74,0x69])]:_0x2d14ec[_0x1e85de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d14ec[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c1a77[_0x1e85de([0x76,0x63])],_0x49c89c(_0x5c1a77)==_0x20fc82;}}}async function _0x33bf8f(){let _0x330af8=!0x0;try{const _0x4e8653=_0x5c9041[_0x1e85de([0x73,0x70,0x6c,0x69,0x74])](_0x1e85de([0x2e])),[_0x2bbc49,_0x551d24,_0x253b01]=_0x4e8653;return _0x80123f(_0x2bbc49),await _0x31c163(_0x2bbc49,_0x551d24,_0x253b01),_0x330af8;}catch{return!0x1;}function _0x80123f(_0x14581d){const _0x25ef7a=_0x310020(_0x14581d);_0x25ef7a&&_0x25ef7a[_0x1e85de([0x61,0x6c,0x67])]==_0x1e85de([0x45,0x53,0x32,0x35,0x36])||(_0x330af8=!0x1);}async function _0x31c163(_0x3f2b36,_0x2e64b2,_0x317db7){const _0x1aa4f1=window[_0x1e85de([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e85de([0x66,0x72,0x6f,0x6d])](_0x5d3ef5(_0x317db7),_0x5058b2=>_0x5058b2[_0x1e85de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x14812c=new window[(_0x1e85de([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e85de([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f2b36+_0x1e85de([0x2e])+_0x2e64b2),_0x4e5c1e=window[_0x1e85de([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e85de([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e5c1e)return;const _0x33aaa6=await _0x4e5c1e[_0x1e85de([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e85de([0x6a,0x77,0x6b]),_0x40aae0,{[_0x1e85de([0x6e,0x61,0x6d,0x65])]:_0x1e85de([0x45,0x43,0x44,0x53,0x41]),[_0x1e85de([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e85de([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e85de([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e5c1e[_0x1e85de([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e85de([0x6e,0x61,0x6d,0x65])]:_0x1e85de([0x45,0x43,0x44,0x53,0x41]),[_0x1e85de([0x68,0x61,0x73,0x68])]:{[_0x1e85de([0x6e,0x61,0x6d,0x65])]:_0x1e85de([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x33aaa6,_0x1aa4f1,_0x14812c)||(_0x330af8=!0x1);}}function _0x310020(_0x42a099){return _0x42a099[_0x1e85de([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e85de([0x65,0x79]))?JSON[_0x1e85de([0x70,0x61,0x72,0x73,0x65])](_0x5d3ef5(_0x42a099)):null;}function _0x5d3ef5(_0x3a5a84){return window[_0x1e85de([0x61,0x74,0x6f,0x62])](_0x3a5a84[_0x1e85de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e85de([0x2b]))[_0x1e85de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e85de([0x2f])));}function _0x49c89c(_0x2fefa0){let _0x8b1b1d=0x1505;function _0x1f63d8(_0x2a4064){for(let _0x5ba380=0x0;_0x5ba380<_0x2a4064[_0x1e85de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ba380++){const _0x589caa=_0x2a4064[_0x1e85de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ba380);_0x8b1b1d=(_0x8b1b1d<<0x5)+_0x8b1b1d+_0x589caa,_0x8b1b1d&=_0x8b1b1d;}}function _0x2a0af6(_0x252068){Array[_0x1e85de([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x252068)?_0x252068[_0x1e85de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a0af6):_0x252068&&typeof _0x252068==_0x1e85de([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e85de([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x252068)[_0x1e85de([0x73,0x6f,0x72,0x74])]()[_0x1e85de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59c265,_0xf3baac])=>{_0x1f63d8(_0x59c265),_0x2a0af6(_0xf3baac);}):_0x1f63d8(window[_0x1e85de([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x252068));}return _0x2a0af6(_0x2fefa0),_0x8b1b1d>>>0x0;}function _0x32bc96(_0x4f6277){return _0x4f6277[_0x1e85de([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e85de([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e85de([0x30]));}function _0x2a663d(_0x5231dc){return _0x5231dc[_0x1e85de([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e85de([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e85de([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a907c(_0x1d1f42){return _0x2bced8[_0x1e85de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e85de([0x68,0x61,0x73])](_0x1d1f42);}function _0x276861(_0x534550){return _0x2bced8[_0x1e85de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e85de([0x67,0x65,0x74])](_0x534550);}function _0x14e444(){}function _0x1e85de(_0x5d20df){return _0x5d20df['map'](_0x10b5a1=>String['fromCharCode'](_0x10b5a1))['join']('');}_0x47c25b(await _0x202aa9());}(this);}set['adapter'](_0x16123e){if(this['_adapter'])throw new _0x30e493('track-changes-adapter-already-set',this);this['_adapter']=_0x16123e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2807e5=!0x1,toJSON:_0x12faca=!0x1}={}){const _0x2f8111=[];for(const _0x1e6e70 of this['_suggestions']['values']())_0x2807e5&&!_0x1e6e70['isInContent']||_0x2f8111['push'](_0x1e6e70);return _0x12faca?_0x2f8111['map'](_0x2f6799=>_0x2f6799['toJSON']()):_0x2f8111;}['getSuggestion'](_0x193908){const _0x1794e2=this['_suggestions']['get'](_0x193908);if(!_0x1794e2)throw new _0x30e493('track-changes-suggestion-not-found',this);return _0x1794e2;}['hasSuggestion'](_0x24f566){return this['_suggestions']['has'](_0x24f566);}['addSuggestionData'](_0x243cd3){const {authorId:_0x325c3a,id:_0x440946,originalSuggestionId:_0x4c1a16,attributes:_0x423c8a}=_0x243cd3,[_0xede251,_0x319b6c]=_0x243cd3['type']['split'](':'),_0x4557d9=this['_suggestions']['get'](_0x440946)||this['_createSuggestion'](_0xede251,_0x319b6c,_0x440946,_0x325c3a,_0x423c8a,_0x4c1a16);if(this['_addThreadToSuggestion'](_0x4557d9),this['_checkSuggestionCorrectness'](_0x4557d9,_0xede251,_0x319b6c||null,_0x325c3a),_0x4557d9['createdAt']=_0x243cd3['createdAt'],_0x4557d9['_isDataLoaded']=!0x0,_0x423c8a&&_0x423c8a['@external']){const _0x241d1b=_0x423c8a['@external'],_0x371d02=this['_getExternalAuthor'](_0x241d1b['authorName']);_0x4557d9['authoredAt']=_0x241d1b['createdAt'],_0x4557d9['author']=_0x371d02,_0x4557d9['isExternal']=!0x0;}else _0x4557d9['authoredAt']=_0x243cd3['createdAt'];switch(_0x243cd3['data']&&(_0x4557d9['data']=_0x243cd3['data']),_0x243cd3['attributes']&&(_0x4557d9['attributes']=_0x243cd3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4557d9['_saved']=!0x0),this['_suggestionState']['get'](_0x4557d9)){case'notReady':this['_suggestionState']['set'](_0x4557d9,'dataReady');break;case'markerReady':_0x4557d9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4557d9])),this['_refreshSuggestionsChain'](new Set([_0x4557d9])),this['_suggestionState']['set'](_0x4557d9,'ready'),this['fire']('suggestionLoaded',_0x4557d9)):this['_suggestionState']['set'](_0x4557d9,'removed');}return _0x4557d9;}['acceptSuggestion'](_0x4e575f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2ecf47 of _0x4e575f['getAllAdjacentSuggestions']())_0x2ecf47['accept']();});});}['discardSuggestion'](_0x56cbea){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x317436 of _0x56cbea['getAllAdjacentSuggestions']())_0x317436['discard']();});});}['enableCommand'](_0xafea7b,_0x3f820f){const _0x18f815=this['editor']['commands']['get'](_0xafea7b);if(!_0x18f815)throw new _0x30e493('track-changes-command-not-found',this,{'commandName':_0xafea7b});if(this['_enabledCommands']['has'](_0x18f815))throw new _0x30e493('track-changes-enable-command-twice',this,{'commandName':_0xafea7b});this['_enabledCommands']['add'](_0x18f815),_0x3f820f&&_0x18f815['on']('execute',(_0x33db4b,_0x526ee6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x526ee6['length']>0x0&&_0x526ee6[_0x526ee6['length']-0x1]&&_0x526ee6[_0x526ee6['length']-0x1]['forceDefaultExecution']?_0x526ee6['pop']():(_0x33db4b['return']=_0x3f820f((..._0x4acf9f)=>_0x18f815['execute'](..._0x4acf9f,{'forceDefaultExecution':!0x0}),..._0x526ee6),_0x33db4b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5164f2){let _0xb7afac,_0xb96540;const _0x3d315d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xb7afac=_0x5164f2();}catch(_0x17ef17){_0xb96540=_0x17ef17;}return _0x3d315d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xb96540&&_0x30e493['rethrowUnexpectedError'](_0xb96540,this),_0xb7afac;}['markInsertion'](_0x4b8f19,_0x1b28b8=null,_0x14a91d={}){if(_0x4b8f19['isCollapsed'])return null;const _0x50be98=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x14a91d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4e1e88,meta:_0x2d1bc9}of this['_findSuggestions'](_0x4b8f19,'insertion'))if(_0x2d1bc9['isOwn']){if(!_0x2d1bc9['isNextTo']){if(_0x2d1bc9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x4e1e88,_0x14a91d))continue;return _0x4e1e88;}if(Qt(_0x4e1e88,_0x14a91d))return _0x4e1e88;this['_breakSuggestionMarker'](_0x4e1e88,_0x4b8f19['start'],_0x4b8f19['end']);break;}if(_0x1b28b8==_0x4e1e88['subType']&&Qt(_0x4e1e88,_0x14a91d)){const _0x257742=_0x4e1e88['getFirstRange']();return _0x257742['start']['isEqual'](_0x4b8f19['end'])?this['_setSuggestionRange'](_0x4e1e88,this['_model']['createRange'](_0x4b8f19['start'],_0x257742['end'])):this['_setSuggestionRange'](_0x4e1e88,this['_model']['createRange'](_0x257742['start'],_0x4b8f19['end'])),_0x4e1e88;}}const _0x5d9f70=_0x4bb6e6(),_0x14c3f4=_0x50be98['id'],_0x55ce0a=_0x1b28b8?'insertion:'+_0x1b28b8:'insertion',_0x530cbc=this['_setSuggestionData']({'id':_0x5d9f70,'type':_0x55ce0a,'createdAt':new Date(),'authorId':_0x14c3f4,'attributes':_0x14a91d});return this['_addSuggestionMarker'](_0x55ce0a,_0x5d9f70,_0x14c3f4,_0x4b8f19),_0x530cbc;}['markMultiRangeInsertion'](_0x4199a7,_0x6a07cb='multi',_0x149e9e={}){const _0x2e76ad=this['editor']['plugins']['get']('Users')['me'],_0x1dcf10=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x6a07cb,'join');this['_trackingSessionId']&&(_0x149e9e['trackingSessionId']=this['_trackingSessionId']);for(const _0x574137 of this['getSuggestions']())if(_0x574137['author']['id']==_0x2e76ad['id']&&'insertion'==_0x574137['type']&&_0x574137['subType']==_0x6a07cb&&Qt(_0x574137,_0x149e9e)&&(_0x1dcf10(_0x574137['getRanges'](),_0x4199a7)||_0x1dcf10(_0x4199a7,_0x574137['getRanges']()))){for(const _0x1c20bd of _0x4199a7)_0x574137['addRange'](_0x1c20bd);return _0x574137;}for(const {suggestion:_0x3bc96c,meta:_0x2d5dad}of this['_findSuggestions'](_0x4199a7,'insertion')){if(!_0x2d5dad['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2d5dad['containsRangeInObject'])continue;if(!Qt(_0x3bc96c,_0x149e9e))continue;let _0x21089a=!0x0;for(const _0x2a65c2 of _0x3bc96c['getRanges']())for(const _0x33b114 of _0x4199a7)if(!_0x2a65c2['containsRange'](_0x33b114)){_0x21089a=!0x1;break;}if(_0x21089a)return _0x3bc96c;}const _0x46d2ca=_0x4bb6e6(),_0x175f8c=_0x2e76ad['id'],_0x4769ba='insertion:'+_0x6a07cb,_0x27b09b=this['_setSuggestionData']({'id':_0x46d2ca,'type':_0x4769ba,'createdAt':new Date(),'authorId':_0x175f8c,'attributes':_0x149e9e});for(const _0x2c6a8d of _0x4199a7)this['_addSuggestionMarker'](_0x4769ba,_0x46d2ca,_0x175f8c,_0x2c6a8d,T['getMultiRangeId']());return _0x27b09b;}['markInlineFormat'](_0x3f0b11,_0x2bf282,_0x4b7d1c=null,_0x517c89={}){if(_0x4b7d1c=_0x4b7d1c||Lt(_0x2bf282),_0x3f0b11['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x517c89['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3bdded=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b7d1c,'accept');return this['forceDefaultExecution'](()=>_0x3bdded([_0x3f0b11],_0x2bf282,_0x517c89)),null;}const _0x4bd1e7=this['editor']['plugins']['get']('Users')['me'],_0x5e4676=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2fb6c7,meta:_0x261102}of this['_findSuggestions'](_0x3f0b11,'insertion'))_0x261102['isOwn']&&!_0x261102['isInsideObject']&&_0x5e4676['push'](..._0x2fb6c7['getRanges']());}const _0x206078=function(_0x563e0b,_0x4a7297){const _0x4c4306=[];for(const _0x5c9451 of _0x4a7297){const _0x15852d=_0x563e0b['getIntersection'](_0x5c9451);_0x15852d&&_0x4c4306['push'](_0x15852d);}return _0x4c4306;}(_0x3f0b11,_0x5e4676),_0x348ec7=function(_0x598b90,_0x5677ed){const _0x1e85fc=[_0x598b90];for(const _0xe7fdb8 of _0x5677ed){let _0x1a709f=0x0;for(;_0x1a709f<_0x1e85fc['length'];){const _0x4ed0a1=_0x1e85fc[_0x1a709f]['getDifference'](_0xe7fdb8);_0x1e85fc['splice'](_0x1a709f,0x1,..._0x4ed0a1),_0x1a709f+=_0x4ed0a1['length'];}}return _0x1e85fc;}(_0x3f0b11,_0x5e4676);_0x206078['length']&&this['_model']['change'](()=>{for(const _0x3f1dbd of _0x206078){const _0x28d113=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b7d1c,'accept');this['forceDefaultExecution'](()=>_0x28d113([_0x3f1dbd],_0x2bf282,_0x517c89));}});for(const _0x426617 of _0x348ec7){let _0x2b27c9=null,_0x33d6ff=_0x426617['start'],_0x2357ce=_0x426617['end'];for(const {suggestion:_0x2adc92,meta:_0x58e96a}of this['_findSuggestions'](_0x426617,'formatInline')){if(!_0x58e96a['isOwn'])continue;if(_0x2adc92['subType']!=_0x4b7d1c)continue;if(!Qt(_0x2adc92,_0x517c89))continue;const _0x5675db=_0x2adc92['getFirstRange']();if(_0x5675db['containsRange'](_0x426617,!0x0))return null;_0x33d6ff=_0x33d6ff['isBefore'](_0x5675db['start'])?_0x33d6ff:_0x5675db['start'],_0x2357ce=_0x2357ce['isAfter'](_0x5675db['end'])?_0x2357ce:_0x5675db['end'],_0x2b27c9?_0x5675db['start']['isBefore'](_0x2b27c9['getFirstRange']()['start'])?(_0x2b27c9['removeMarkers'](),_0x2b27c9=_0x2adc92):_0x2adc92['removeMarkers']():_0x2b27c9=_0x2adc92;}const _0x32eff5=this['_model']['createRange'](_0x33d6ff,_0x2357ce);if(_0x2b27c9)this['_setSuggestionRange'](_0x2b27c9,_0x32eff5);else{const _0x501a56=_0x4bb6e6(),_0x1d0e7c=_0x4bd1e7['id'];this['_setSuggestionData']({'id':_0x501a56,'type':'formatInline:'+_0x4b7d1c,'data':_0x2bf282,'createdAt':new Date(),'authorId':_0x1d0e7c,'attributes':_0x517c89}),this['_addSuggestionMarker']('formatInline:'+_0x4b7d1c,_0x501a56,_0x1d0e7c,_0x32eff5);}}return null;}['markBlockFormat'](_0x37da9e,_0x2efd87,_0x51ba83=[],_0x3aab0e=null,_0x58f045={}){_0x2efd87['formatGroupId']||(_0x2efd87['formatGroupId']=_0x2efd87['commandName']),_0x2efd87['multipleBlocks']=_0x37da9e['is']('range'),_0x3aab0e=_0x3aab0e||Lt(_0x2efd87);const _0x34206f=_0x51ba83['map'](_0x235dbd=>qt(_0x235dbd,this['_model'])),_0x28b853=_0x37da9e['is']('range')?_0x37da9e:qt(_0x37da9e,this['_model']);if(this['_trackingSessionId']&&(_0x58f045['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x421a87=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3aab0e,'accept');return this['forceDefaultExecution'](()=>_0x421a87([_0x28b853],_0x2efd87,_0x58f045)),null;}_0x34206f['push'](_0x28b853);let _0x3dba11=!0x0;for(const _0x3b420b of _0x34206f)if(!this['_rangeIsInLocalUserInsertion'](_0x3b420b)){_0x3dba11=!0x1;break;}if(_0x3dba11&&'always'!==this['_trackFormatChanges']){const _0x3e2a4d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3aab0e,'accept');return this['forceDefaultExecution'](()=>_0x3e2a4d([_0x28b853],_0x2efd87,_0x58f045)),null;}let _0x3675ae=null,_0x4178d7=_0x28b853['start'],_0x2970a7=_0x28b853['end'];for(const {suggestion:_0x2f4a1e,meta:_0xc6861a}of this['_findSuggestions'](_0x28b853,'formatBlock')){if(!_0xc6861a['isOwn'])continue;if(_0xc6861a['isNextTo']||_0xc6861a['containsRangeInObject']||_0xc6861a['isInsideObject'])continue;if(_0x2f4a1e['data']['formatGroupId']!=_0x2efd87['formatGroupId'])continue;if(!Qt(_0x2f4a1e,_0x58f045))continue;const _0x3144bf=_0x2f4a1e['getFirstRange']();if(_0x2f4a1e['subType']==_0x3aab0e){if(_0x3144bf['containsRange'](_0x28b853,!0x0))return null;_0x4178d7=_0x4178d7['isBefore'](_0x3144bf['start'])?_0x4178d7:_0x3144bf['start'],_0x2970a7=_0x2970a7['isAfter'](_0x3144bf['end'])?_0x2970a7:_0x3144bf['end'],_0x3675ae?_0x3144bf['start']['isBefore'](_0x3675ae['getFirstRange']()['start'])?(_0x3675ae['removeMarkers'](),_0x3675ae=_0x2f4a1e):_0x2f4a1e['removeMarkers']():_0x3675ae=_0x2f4a1e;}else{const _0x385226=_0x28b853['getIntersection'](_0x3144bf);this['_cutOutSuggestionMarker'](_0x2f4a1e,_0x385226);}}const _0x76626b=this['editor']['plugins']['get']('Users')['me'],_0x15e521=_0x4bb6e6(),_0x102c74=_0x76626b['id'];if(_0x3675ae)return this['_setSuggestionRange'](_0x3675ae,this['_model']['createRange'](_0x4178d7,_0x2970a7)),_0x3675ae;{const _0x328a26=this['_setSuggestionData']({'id':_0x15e521,'type':'formatBlock:'+_0x3aab0e,'data':_0x2efd87,'createdAt':new Date(),'authorId':_0x102c74,'attributes':_0x58f045});return this['_addSuggestionMarker']('formatBlock:'+_0x3aab0e,_0x15e521,_0x102c74,this['_model']['createRange'](_0x4178d7,_0x2970a7)),_0x328a26;}}['markMultiRangeBlockFormat'](_0x50f4ae,_0x14ccee,_0x100cc3=[],_0x4b64e5=null,_0x1391ae={}){_0x14ccee['formatGroupId']||(_0x14ccee['formatGroupId']=_0x14ccee['commandName']);const _0x578f5d=_0x50f4ae[0x0];_0x14ccee['multipleBlocks']=_0x578f5d['is']('range'),_0x4b64e5=_0x4b64e5||Lt(_0x14ccee);const _0x23c715=_0x100cc3['map'](_0x41382b=>qt(_0x41382b,this['_model'])),_0x1a88ca=_0x578f5d['is']('range')?_0x50f4ae:_0x50f4ae['map'](_0x3f584c=>qt(_0x3f584c,this['_model']));if(this['_trackingSessionId']&&(_0x1391ae['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4177de=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b64e5,'accept');return this['forceDefaultExecution'](()=>_0x4177de(_0x1a88ca,_0x14ccee,_0x1391ae)),null;}_0x23c715['push'](..._0x1a88ca);let _0x246c9a=!0x0;for(const _0x5af8d7 of _0x23c715)if(!this['_rangeIsInLocalUserInsertion'](_0x5af8d7)){_0x246c9a=!0x1;break;}if(_0x246c9a&&'always'!==this['_trackFormatChanges']){const _0x456e54=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b64e5,'accept');return this['forceDefaultExecution'](()=>_0x456e54(_0x1a88ca,_0x14ccee,_0x1391ae)),null;}const _0x58789c=this['editor']['plugins']['get']('Users')['me'];for(const _0x3089d3 of this['getSuggestions']()){const _0x5a6daf=_0x3089d3['data'];if(_0x3089d3['author']['id']!=_0x58789c['id'])continue;if('formatBlock'!=_0x3089d3['type']||_0x5a6daf['formatGroupId']!=_0x14ccee['formatGroupId'])continue;if(!Qt(_0x3089d3,_0x1391ae))continue;const _0x46ecc1=_0x3089d3['subType']==_0x4b64e5;for(let _0x59cb78=0x0;_0x59cb78<_0x1a88ca['length'];_0x59cb78++){const _0x272388=_0x1a88ca[_0x59cb78];for(const _0x204516 of _0x3089d3['getMarkers']()){const _0x1b5593=_0x204516['getRange']();if(_0x272388['isEqual'](_0x1b5593)){_0x46ecc1?(_0x1a88ca['splice'](_0x59cb78,0x1),_0x59cb78--):_0x3089d3['removeMarker'](_0x204516['name']);break;}}}}if(0x0==_0x1a88ca['length'])return null;const _0xf10d4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b64e5,'join');for(const _0x51a126 of this['getSuggestions']()){const _0x143da0=_0x51a126['data'];if(_0x51a126['author']['id']==_0x58789c['id']&&('formatBlock'==_0x51a126['type']&&_0x143da0['formatGroupId']==_0x14ccee['formatGroupId']&&_0x51a126['subType']==_0x4b64e5&&Qt(_0x51a126,_0x1391ae)&&(_0xf10d4(_0x51a126['getRanges'](),_0x1a88ca)||_0xf10d4(_0x1a88ca,_0x51a126['getRanges']())))){for(const _0x539935 of _0x1a88ca)_0x51a126['addRange'](_0x539935);return _0x51a126;}}const _0x13e2a1=_0x4bb6e6(),_0x154072=_0x58789c['id'],_0x5b56a2='formatBlock:'+_0x4b64e5,_0x222411=this['_setSuggestionData']({'id':_0x13e2a1,'type':_0x5b56a2,'data':_0x14ccee,'createdAt':new Date(),'authorId':_0x154072,'attributes':_0x1391ae});for(const _0x581f5a of _0x1a88ca)this['_addSuggestionMarker'](_0x5b56a2,_0x13e2a1,_0x154072,_0x581f5a,T['getMultiRangeId']());return _0x222411;}['markDeletion'](_0x59f721,_0x27b183=null,_0x442508={}){if(_0x59f721['isCollapsed'])return null;const _0x1a9035=this['editor']['plugins']['get']('Users')['me'],_0x442b6f=new _0xd7f50(_0x59f721['start'],_0x59f721['end']);this['_trackingSessionId']&&(_0x442508['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3ff71e,meta:_0x18ddc1}of this['_findSuggestions'](_0x442b6f,'insertion'))if(_0x18ddc1['isOwn']&&!_0x18ddc1['isNextTo']){if(_0x3ff71e['isMultiRange']){const _0x5593bf=_0x3ff71e['getRanges']()['filter'](_0x43f8b9=>'$graveyard'!=_0x43f8b9['root']['rootName']);_0x5593bf['every'](_0x2a4dd2=>_0x442b6f['containsRange'](_0x2a4dd2,!0x0))&&_0x3ff71e['discard']();if(_0x5593bf['some'](_0x38028c=>_0x38028c['containsRange'](_0x442b6f,!0x0))){const _0x2bc1f9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27b183,'accept');return this['forceDefaultExecution'](()=>_0x2bc1f9([_0x442b6f],null,_0x442508)),null;}}else{const _0x5a86f1=_0x442b6f['getIntersection'](_0x3ff71e['getFirstRange']());null!==_0x5a86f1&&_0x3ff71e['_onDiscard']([_0x5a86f1],null,_0x442508);}}if(_0x442b6f['detach'](),_0x442b6f['isCollapsed']||'$graveyard'==_0x442b6f['root']['rootName'])return null;let _0x5e3930=null,_0x4269d5=_0x442b6f['start'],_0x384ca2=_0x442b6f['end'];const _0xc619f5=this['_findSuggestions'](_0x442b6f,'deletion');for(const {suggestion:_0x5f5b2b,meta:_0x3d6286}of _0xc619f5){const _0x28f81b=this['_model']['createRange'](_0x4269d5,_0x384ca2);if(_0x3d6286['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3d6286['containsRangeInObject']&&!_0x3d6286['isInsideObject'])){if(_0x5f5b2b['isMultiRange']){if(!Qt(_0x5f5b2b,_0x442508))continue;let _0x550390=!0x0;for(const _0x30f438 of _0x5f5b2b['getRanges']()){if(_0x30f438['containsRange'](_0x28f81b,!0x0))return _0x5f5b2b;_0x28f81b['containsRange'](_0x30f438)||(_0x550390=!0x1);}_0x550390&&_0x5f5b2b['discard']();}else{const _0x3dba8b=_0x5f5b2b['getFirstRange']();if(_0x3dba8b['containsRange'](_0x28f81b,!0x0))return _0x5f5b2b;if(!Qt(_0x5f5b2b,_0x442508)){_0x28f81b['containsRange'](_0x3dba8b)?_0x5f5b2b['removeMarkers']():_0x3dba8b['containsPosition'](_0x4269d5)?_0x4269d5=_0x3dba8b['end']:_0x3dba8b['containsPosition'](_0x384ca2)&&(_0x384ca2=_0x3dba8b['start']);continue;}_0x4269d5=_0x4269d5['isBefore'](_0x3dba8b['start'])?_0x4269d5:_0x3dba8b['start'],_0x384ca2=_0x384ca2['isAfter'](_0x3dba8b['end'])?_0x384ca2:_0x3dba8b['end'],_0x442508=Object['assign']({},_0x5f5b2b['attributes']),_0x5e3930?_0x3dba8b['start']['isBefore'](_0x5e3930['getFirstRange']()['start'])?(_0x5e3930['removeMarkers'](),_0x5e3930=_0x5f5b2b):_0x5f5b2b['removeMarkers']():_0x5e3930=_0x5f5b2b;}}}if(_0x5e3930)return this['_setSuggestionRange'](_0x5e3930,this['_model']['createRange'](_0x4269d5,_0x384ca2)),_0x5e3930;{const _0x2d810f=_0x4bb6e6(),_0x542c06=this['_model']['createRange'](_0x4269d5,_0x384ca2),_0x1f4a12=_0x1a9035['id'],_0xaf84e2=_0x27b183?'deletion:'+_0x27b183:'deletion',_0x7cf854=this['_setSuggestionData']({'id':_0x2d810f,'type':_0xaf84e2,'createdAt':new Date(),'authorId':_0x1f4a12,'attributes':_0x442508});return this['_addSuggestionMarker'](_0xaf84e2,_0x2d810f,_0x1f4a12,_0x542c06),_0x7cf854;}}['markMultiRangeDeletion'](_0x299475,_0x5cfe2d='multi',_0x459383={}){const _0x4f283c=this['editor']['plugins']['get']('Users')['me'],_0xbbeff6=_0x299475['map'](_0xca7263=>new _0xd7f50(_0xca7263['start'],_0xca7263['end'])),_0x25fbda=new Set();this['_trackingSessionId']&&(_0x459383['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x276085,meta:_0x4cef}of this['_findSuggestions'](_0xbbeff6,'insertion'))_0x4cef['isOwn']&&!_0x4cef['isNextTo']&&_0x25fbda['add'](_0x276085);for(const _0x53afa1 of _0x25fbda)if(_0x53afa1['isMultiRange']){const _0x35c5ad=_0x53afa1['getRanges']();(!_0x53afa1['attributes']||!_0x53afa1['attributes']['skipNestingCheck'])&&(_0x35c5ad['every'](_0x49fbcb=>_0xbbeff6['some'](_0x45639d=>_0x45639d['containsRange'](_0x49fbcb,!0x0)))&&_0x53afa1['discard']());if(_0xbbeff6['every'](_0x46db42=>_0x35c5ad['some'](_0x26f971=>_0x26f971['containsRange'](_0x46db42,!0x0)))){const _0x42193c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5cfe2d,'accept');return this['forceDefaultExecution'](()=>_0x42193c(_0x299475,null,_0x459383)),null;}}else{const _0x36dbc8=_0x53afa1['getFirstRange']();_0xbbeff6['some'](_0x8d6add=>_0x8d6add['containsRange'](_0x36dbc8,!0x0))&&_0x53afa1['discard']();if(_0xbbeff6['every'](_0x517aa0=>_0x36dbc8['containsRange'](_0x517aa0,!0x0))){const _0x211cfa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5cfe2d,'accept');return this['forceDefaultExecution'](()=>_0x211cfa(_0xbbeff6,null,_0x459383)),null;}}const _0x2ae1fd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5cfe2d,'join');let _0x2ebf02=null;for(const _0x36884a of this['getSuggestions']())if(_0x36884a['author']['id']==_0x4f283c['id']&&_0x36884a['isInContent']&&'deletion'==_0x36884a['type']&&_0x36884a['subType']==_0x5cfe2d&&Qt(_0x36884a,_0x459383)&&(_0x2ae1fd(_0x36884a['getRanges'](),_0xbbeff6)||_0x2ae1fd(_0xbbeff6,_0x36884a['getRanges']()))){if(_0x2ebf02){if(_0x36884a['commentThread']&&_0x36884a['commentThread']['length'])continue;for(const _0x447d13 of _0x36884a['getRanges']())_0x2ebf02['isIntersectingWithRange'](_0x447d13)||_0x2ebf02['addRange'](_0x447d13);_0x36884a['removeMarkers']();}else{_0x2ebf02=_0x36884a;for(const _0x3af0c3 of _0xbbeff6)_0x36884a['isIntersectingWithRange'](_0x3af0c3)||_0x36884a['addRange'](_0x3af0c3);}}if(_0x2ebf02)return _0x2ebf02;_0x25fbda['clear']();for(const {suggestion:_0xedd641,meta:_0x2e7f4b}of this['_findSuggestions'](_0xbbeff6,'deletion'))_0x2e7f4b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2e7f4b['containsRangeInObject']&&!_0x2e7f4b['isInsideObject'])&&Qt(_0xedd641,_0x459383)&&_0x25fbda['add'](_0xedd641);for(const _0x53893c of _0x25fbda){const _0x10ff65=_0x53893c['getRanges']();if(!_0x459383||!_0x459383['skipNestingCheck']){if(_0xbbeff6['every'](_0x3412b7=>_0x10ff65['some'](_0x127581=>_0x127581['containsRange'](_0x3412b7,!0x0))))return _0x53893c;}(!_0x53893c['attributes']||!_0x53893c['attributes']['skipNestingCheck'])&&(_0x10ff65['every'](_0x44c3fa=>_0xbbeff6['some'](_0x272ad5=>_0x272ad5['containsRange'](_0x44c3fa,!0x0)))&&_0x53893c['discard']());}const _0x1ebb09=_0x4bb6e6(),_0x27f6ac=_0x4f283c['id'],_0x1de963='deletion:'+_0x5cfe2d,_0x5a096d=this['_setSuggestionData']({'id':_0x1ebb09,'type':_0x1de963,'createdAt':new Date(),'authorId':_0x27f6ac,'attributes':_0x459383});for(const _0x4e12d0 of _0xbbeff6)_0x4e12d0['detach'](),_0x4e12d0['isCollapsed']||'$graveyard'==_0x4e12d0['root']['rootName']||this['_addSuggestionMarker'](_0x1de963,_0x1ebb09,_0x27f6ac,_0x4e12d0,T['getMultiRangeId']());return _0x5a096d;}['markAttributeChange'](_0xf880ba,_0x4d1d22,_0x44a39c,_0xe73c23,_0x158961){if(_0xf880ba['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x36ebbf=this['editor']['plugins']['get']('Users')['me']['id'],_0x35968e=Array['from'](this['_suggestions']['values']())['filter'](_0x44379a=>'attribute'==_0x44379a['type']&&_0x44379a['data']['key']==_0x4d1d22&&_0x44379a['isIntersectingWithRange'](_0xf880ba));if(this['_trackingSessionId']&&(_0x158961['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4caa2e=this['_findSuggestions'](_0xf880ba,'insertion')['filter'](({meta:_0x2aa76e})=>_0x2aa76e['isOwn']&&!_0x2aa76e['isInsideObject']&&!_0x2aa76e['isNextTo'])['map'](({suggestion:_0x51da8f})=>_0x51da8f);_0x35968e['unshift'](..._0x4caa2e);}const _0x570905=new Map([[_0xf880ba,_0x44a39c]]);for(const _0x442161 of _0x35968e){const _0x3b91ad='attribute'==_0x442161['type']?_0x442161['data']['oldValue']:void 0x0,_0x368bbe=_0x442161['getFirstRange'](),_0x24fe28=Array['from'](_0x570905['keys']())['find'](_0x3538d2=>_0x3538d2['isIntersecting'](_0x368bbe));if(!_0x24fe28)continue;const _0x382863=_0x24fe28['getDifference'](_0x368bbe);this['_isBlockAttribute'](_0x4d1d22)&&'insertion'==_0x442161['type']&&0x0!=_0x382863['length']||(_0x570905['delete'](_0x24fe28),_0x382863['forEach'](_0x1176f1=>{_0x570905['set'](_0x1176f1,_0x44a39c);}),'insertion'!=_0x442161['type']&&_0x3b91ad!=_0xe73c23&&_0x570905['set'](_0x24fe28['getIntersection'](_0x368bbe),_0x3b91ad));}const _0x373c8c=[];for(const [_0x568c6f,_0x5e6dd4]of _0x570905){const _0x5b408b=_0x4bb6e6(),_0x506e95={'key':_0x4d1d22,'oldValue':_0x5e6dd4,'newValue':_0xe73c23};_0x4d1d22['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':_0x4d1d22});const _0x42ab2e=('attribute:'+(_0x4d1d22+'|'+Lt({'newValue':_0xe73c23})))['substring'](0x0,0x3c),_0xad2fdb=this['_setSuggestionData']({'id':_0x5b408b,'type':_0x42ab2e,'data':_0x506e95,'createdAt':new Date(),'authorId':_0x36ebbf,'attributes':_0x158961});_0x373c8c['push'](_0xad2fdb),this['_addSuggestionMarker'](_0x42ab2e,_0x5b408b,_0x36ebbf,_0x568c6f);}return _0x373c8c;}['enableDefaultAttributesIntegration'](_0x48e1cb){this['enableCommand'](_0x48e1cb,(_0x1e8350,..._0x18b35d)=>{this['recordAttributeChanges'](()=>{_0x1e8350(..._0x18b35d);});});}['registerBlockAttribute'](_0x370245){this['_blockAttributeKeys']['add'](_0x370245);}['registerInlineAttribute'](_0x414242){this['_inlineAttributeKeys']['add'](_0x414242);}['startTrackingSession'](_0x362128){return this['_trackingSessionId']=void 0x0!==_0x362128?_0x362128:_0x4bb6e6(),this['_trackingSessionId'];}['_getAttributeKey'](_0x542624){return'attribute'==_0x542624['type']?_0x542624['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x384feb,_0xd00ce1){const _0x44ea5d=_0x384feb['getFirstMarker']();this['_model']['change'](_0x59dfa3=>{_0x59dfa3['updateMarker'](_0x44ea5d,{'range':_0xd00ce1});});}['_addThreadToSuggestion'](_0x42fa38){const _0x20df9e=_0x42fa38['id'],_0x47828d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x20df9e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x47828d,'threadId':_0x20df9e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x285b50=this['_commentsRepository']['getCommentThread'](_0x20df9e);_0x285b50['unbind']('isRemovable'),_0x285b50['isRemovable']=!0x1,_0x42fa38['commentThread']=_0x285b50;}['_checkSuggestionCorrectness'](_0x18cd9d,_0x8cd18f,_0x35ff52,_0x3cb2ee){if(_0x18cd9d['type']!=_0x8cd18f||_0x18cd9d['subType']!=_0x35ff52||_0x18cd9d['creator']['id']!=_0x3cb2ee)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x30e493('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x35b0b5,_0x4e1bfd){const _0x5611d0=_0x35b0b5['getFirstRange']();if(_0x4e1bfd['isEqual'](_0x5611d0))_0x35b0b5['removeMarkers']();else{if(_0x5611d0['containsRange'](_0x4e1bfd)){const _0x57c2da=this['_model']['createPositionAt'](_0x4e1bfd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35b0b5,this['_model']['createRange'](_0x5611d0['start'],_0x57c2da));const _0x174e4e=_0x4bb6e6(),_0x24abe8=_0x35b0b5['creator']['id'],_0x4c6cbd=_0x35b0b5['type']+':'+_0x35b0b5['subType'];this['_setSuggestionData']({'id':_0x174e4e,'type':_0x4c6cbd,'createdAt':new Date(),'authorId':_0x24abe8,'data':_0x35b0b5['data'],'attributes':_0x35b0b5['attributes']});const _0xf56fe0=this['_model']['createPositionAt'](_0x4e1bfd['end']['parent'],'after'),_0x3c5e24=this['_model']['createRange'](_0xf56fe0,_0x5611d0['end']);this['_addSuggestionMarker'](_0x4c6cbd,_0x174e4e,_0x24abe8,_0x3c5e24);}else{if(_0x5611d0['containsPosition'](_0x4e1bfd['start'])){const _0x29737e=this['_model']['createPositionAt'](_0x4e1bfd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35b0b5,this['_model']['createRange'](_0x5611d0['start'],_0x29737e));}else{const _0x2eb963=this['_model']['createPositionAt'](_0x4e1bfd['end']['parent'],'after');this['_setSuggestionRange'](_0x35b0b5,this['_model']['createRange'](_0x2eb963,_0x5611d0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x28e40b){for(const {suggestion:_0x4ca1fb,meta:_0x344a55}of this['_findSuggestions'](_0x28e40b,'insertion')){if(!_0x344a55['isOwn'])continue;const _0x2a7ec2=_0x4ca1fb['getRanges']();for(const _0x33a998 of _0x2a7ec2)if(!_0x28e40b['getDifference'](_0x33a998)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5af254){const _0x508c60=this['editor']['plugins']['get']('Users')['getUser'](_0x5af254);if(!_0x508c60)throw new _0x30e493('track-changes-user-not-found',this);return _0x508c60;}['_getExternalAuthor'](_0x4c5ae7){const _0xf3fbc4=this['editor']['plugins']['get']('Users'),_0x585447=_0x19e181('external:'+_0x4c5ae7),_0x22fff7=_0xf3fbc4['getUser'](_0x585447);return _0x22fff7||_0xf3fbc4['addUser']({'id':_0x585447,'name':_0x4c5ae7});}['_createSuggestion'](_0x46033c,_0x5c40d5,_0x2cc9f4,_0x5a0f80,_0x53a386,_0x2fcdd1){const _0x5329bc=this['_getAuthorFromId'](_0x5a0f80),_0x5db4c2=this['_suggestionFactory']['buildSuggestion'](_0x46033c,_0x5c40d5,_0x2cc9f4,_0x5329bc,_0x53a386,_0x1bc2e5=>{this['_updateSuggestionData'](_0x2cc9f4,{'attributes':_0x1bc2e5});const _0x1da60c=this['getSuggestion'](_0x2cc9f4);this['_joinWithAdjacentSuggestions'](new Set([_0x1da60c])),this['_refreshSuggestionsChain'](new Set([_0x1da60c]));},_0x2fcdd1);return this['listenTo'](_0x5db4c2,'accept',()=>{this['_updateSuggestionData'](_0x2cc9f4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5db4c2,'discard',()=>{this['_updateSuggestionData'](_0x2cc9f4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2cc9f4,_0x5db4c2),this['_suggestionState']['set'](_0x5db4c2,'notReady'),_0x5db4c2;}['_splitMarkerName'](_0x41e903){const _0x19128a=_0x41e903['split'](':');return{'group':_0x19128a[0x0],'type':_0x19128a[0x1],'subType':_0x19128a['length']>=0x5?_0x19128a[0x2]:null,'id':_0x19128a['length']<0x5?_0x19128a[0x2]:_0x19128a[0x3],'authorId':_0x19128a['length']<0x5?_0x19128a[0x3]:_0x19128a[0x4],'markerCount':0x6==_0x19128a['length']?_0x19128a[0x5]:null};}['_breakSuggestionMarker'](_0x4898ce,_0x46d4c1,_0x7b4c5d){const _0x2d853a=_0x4898ce['getFirstRange'](),_0x5aa488=_0x2d853a['start'],_0x17ddb3=_0x2d853a['end'];this['_setSuggestionRange'](_0x4898ce,this['_model']['createRange'](_0x5aa488,_0x46d4c1));const _0x388010=_0x4bb6e6(),_0x4ed462=_0x4898ce['creator']['id'],_0x119ce8=_0x4898ce['type']+(_0x4898ce['subType']?':'+_0x4898ce['subType']:'');this['_setSuggestionData']({'id':_0x388010,'type':_0x119ce8,'createdAt':new Date(),'authorId':_0x4ed462,'originalSuggestionId':_0x4898ce['_originalSuggestionId']||_0x4898ce['id'],'attributes':_0x4898ce['attributes'],'data':_0x4898ce['data']});const _0x134777=this['_getAttributeKey'](_0x4898ce);('formatBlock'==_0x4898ce['type']||_0x134777&&this['_isBlockAttribute'](_0x134777))&&(_0x7b4c5d=this['_model']['createPositionBefore'](_0x7b4c5d['parent'])),this['_addSuggestionMarker'](_0x119ce8,_0x388010,_0x4ed462,this['_model']['createRange'](_0x7b4c5d,_0x17ddb3));}['_findSuggestions'](_0x15b44a,_0x491e13=null){const _0x198de4=[],_0x3098cc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x15b44a)||(_0x15b44a=[_0x15b44a]);for(const _0x400023 of this['getSuggestions']()){if(!_0x400023['isInContent'])continue;if(_0x491e13&&_0x400023['type']!=_0x491e13)continue;let _0x3408fa=!0x1;for(const _0x23d2a3 of _0x400023['getRanges']()){for(const _0x248d32 of _0x15b44a){const _0x5b3f37=_0x248d32['start']['isEqual'](_0x23d2a3['end'])||_0x248d32['end']['isEqual'](_0x23d2a3['start']);if(_0x5b3f37||_0x248d32['getIntersection'](_0x23d2a3)){const _0x4fe943=_0x248d32['containsRange'](_0x23d2a3)&&Ft(this['_model']['schema'],_0x23d2a3['start'],_0x248d32),_0x4c107b=_0x23d2a3['containsRange'](_0x248d32)&&Ft(this['_model']['schema'],_0x248d32['start'],_0x23d2a3);_0x198de4['push']({'suggestion':_0x400023,'meta':{'isOwn':_0x3098cc==_0x400023['author'],'isNextTo':_0x5b3f37,'isInsideObject':_0x4fe943,'containsRangeInObject':_0x4c107b}}),_0x3408fa=!0x0;break;}}if(_0x3408fa)break;}}return _0x198de4;}['_addSuggestionMarker'](_0x352abd,_0x5ae4ff,_0x2351bb,_0x264016,_0x4202bb){this['_model']['change'](_0x4adaf2=>{let _0x2e0831='suggestion:'+_0x352abd+':'+_0x5ae4ff+':'+_0x2351bb;_0x4202bb&&(_0x2e0831=_0x2e0831+':'+_0x4202bb),_0x4adaf2['addMarker'](_0x2e0831,{'range':_0x264016,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x32c7cd){const _0x227627=_0x32c7cd['previous'],_0x4a41e5=_0x32c7cd['next'];_0x32c7cd['previous']=null,_0x32c7cd['next']=null,null!=_0x227627&&_0x227627['next']==_0x32c7cd&&(_0x227627['next']=_0x4a41e5),null!=_0x4a41e5&&_0x4a41e5['previous']==_0x32c7cd&&(_0x4a41e5['previous']=_0x227627),'ready'==this['_suggestionState']['get'](_0x32c7cd)&&(this['_suggestionState']['set'](_0x32c7cd,'removed'),this['fire']('suggestionUnloaded',_0x32c7cd,_0x227627,_0x4a41e5));}['_setSuggestionData'](_0x33be4e){const _0x4dfea0=_0x33be4e['id'],_0x59bfc9=this['addSuggestionData'](_0x33be4e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5ec23f=this['editor']['plugins']['get']('PendingActions'),_0x234190=_0x59bfc9['hasComments'],_0x4846d3=_0x59bfc9['subType']?_0x59bfc9['type']+':'+_0x59bfc9['subType']:_0x59bfc9['type'],_0x417f9e=this['editor']['locale'],_0x3b8c68=_0x5ec23f['add'](o(_0x417f9e,'PENDING_ACTION_SUGGESTION')),_0x41ef64={'id':_0x4dfea0,'type':_0x4846d3,'hasComments':_0x234190,'data':_0x33be4e['data']||null,'originalSuggestionId':_0x33be4e['originalSuggestionId']||null,'attributes':_0x59bfc9['attributes']};this['_adapter']['addSuggestion'](_0x41ef64)['then'](_0x581cdc=>{_0x59bfc9['_saved']=!0x0,_0x5ec23f['remove'](_0x3b8c68),_0x581cdc&&_0x581cdc['createdAt']&&(this['_suggestions']['get'](_0x4dfea0)['createdAt']=_0x581cdc['createdAt']);})['catch'](_0x27642d=>{throw _0x17884f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x59bfc9['discard']();}),_0x59bfc9['stopListening'](),this['_suggestions']['delete'](_0x59bfc9['id']),this['_suggestionState']['delete'](_0x59bfc9),_0x27642d;});}return _0x59bfc9;}['_isBlockAttribute'](_0x3ff2fe){return this['_blockAttributeKeys']['has'](_0x3ff2fe);}['_updateSuggestionData'](_0x187a07,_0x3a53b7){const _0x25d856=this['editor']['plugins']['get']('PendingActions'),_0x23613c=this['getSuggestion'](_0x187a07);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x23613c['_saved']){const _0x4ff7eb=_0x25d856['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x187a07,_0x3a53b7)['then'](()=>{_0x25d856['remove'](_0x4ff7eb);});}else _0x23613c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x187a07,_0x3a53b7);});}}['_getSuggestionData'](_0x50546b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x30e493('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x50546b);}['_handleNewSuggestionMarker'](_0xf9ea8e){const {id:_0xff136b,type:_0x28af73,subType:_0x4e5241,authorId:_0x24ea0a}=this['_splitMarkerName'](_0xf9ea8e),_0x322a13=this['_suggestions']['get'](_0xff136b)||this['_createSuggestion'](_0x28af73,_0x4e5241,_0xff136b,_0x24ea0a,{});switch(this['_checkSuggestionCorrectness'](_0x322a13,_0x28af73,_0x4e5241,_0x24ea0a),this['_suggestionState']['get'](_0x322a13)){case'notReady':this['_getSuggestionData'](_0xff136b)['then'](_0x47035f=>{let _0x16cdd8=Promise['resolve']();_0x47035f['hasComments']&&(_0x16cdd8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xff136b})),_0x16cdd8['then'](()=>{this['addSuggestionData'](_0x47035f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x322a13,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xff136b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x322a13,'ready'),this['fire']('suggestionLoaded',_0x322a13);break;case'ready':this['fire']('suggestionChanged',_0x322a13);}return _0x322a13['addMarkerName'](_0xf9ea8e),_0x322a13;}['_refreshSuggestionsChain'](_0xdc48fe){const _0xdf46fb=Array['from'](_0xdc48fe),_0x5b31ec=_0xdf46fb['filter'](_0x164aae=>'attribute'==_0x164aae['type']);this['_refreshAttributeSuggestionsChain'](_0x5b31ec);const _0x5289ed=_0xdf46fb['filter'](_0x52b9a8=>!_0x52b9a8['isMultiRange']&&'attribute'!=_0x52b9a8['type']),_0x33530b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28e631=>!_0x28e631['isMultiRange']&&'attribute'!=_0x28e631['type']),_0x2f4d24=_0x33530b['filter'](_0x1f0ced=>!_0xdc48fe['has'](_0x1f0ced)),_0xcc416=new Map(_0x33530b['map'](_0x1a6af3=>[_0x1a6af3,this['_suggestionFactory']['getSuggestionCallback'](_0x1a6af3['type'],_0x1a6af3['subType'],'chain')])),_0x4a1f6a=new Map(_0x33530b['map'](_0x15b780=>[_0x15b780,_0x15b780['getFirstRange']()])),_0x5d2573=new Set(),_0x57a121=new Set();for(let _0x13d817=0x0;_0x13d817<_0x5289ed['length'];_0x13d817++)_0x1b6a76(_0x5289ed[_0x13d817],_0x5289ed,_0x13d817+0x1);for(let _0x45f6d2=0x0;_0x45f6d2<_0x5289ed['length'];_0x45f6d2++)_0x1b6a76(_0x5289ed[_0x45f6d2],_0x2f4d24,0x0);const _0x12e75c=new Set();for(let _0x22394b=0x0;_0x22394b<_0x5289ed['length'];_0x22394b++){const _0x26bbe9=_0x5289ed[_0x22394b];!_0x57a121['has'](_0x26bbe9)&&_0x26bbe9['previous']&&(_0x12e75c['add'](_0x26bbe9['previous']),_0x26bbe9['previous']['next']===_0x26bbe9&&(_0x26bbe9['previous']['next']=null),_0x26bbe9['previous']=null),!_0x5d2573['has'](_0x26bbe9)&&_0x26bbe9['next']&&(_0x12e75c['add'](_0x26bbe9['next']),_0x26bbe9['next']['previous']===_0x26bbe9&&(_0x26bbe9['next']['previous']=null),_0x26bbe9['next']=null);}function _0x1b6a76(_0x4d06a9,_0x5d102f,_0x40e0ef){for(let _0x2ef417=_0x40e0ef;_0x2ef417<_0x5d102f['length'];_0x2ef417++){const _0x1397e0=_0x5f0ecb(_0x4d06a9,_0x5d102f[_0x2ef417]);_0x1397e0&&(_0x1397e0[0x0]['next']=_0x1397e0[0x1],_0x1397e0[0x1]['previous']=_0x1397e0[0x0],_0x5d2573['add'](_0x1397e0[0x0]),_0x57a121['add'](_0x1397e0[0x1]));}}function _0x5f0ecb(_0x1396fa,_0x127aa1){if(_0x1396fa['author']['id']!==_0x127aa1['author']['id'])return null;const _0x1ac337=_0xcc416['get'](_0x1396fa)(_0x1396fa,_0x127aa1,_0x4a1f6a['get'](_0x1396fa),_0x4a1f6a['get'](_0x127aa1));if(!_0x1ac337)return null;return _0xcc416['get'](_0x127aa1)(_0x1396fa,_0x127aa1,_0x4a1f6a['get'](_0x1396fa),_0x4a1f6a['get'](_0x127aa1))?_0x1ac337[0x1]['commentThread']&&_0x1ac337[0x1]['commentThread']['length']?null:_0x1ac337:null;}_0x12e75c['size']&&this['_refreshSuggestionsChain'](_0x12e75c);}['_refreshAttributeSuggestionsChain'](_0x369744){if(0x0==_0x369744['length'])return;const _0x3b690b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xcc36b1=>'attribute'==_0xcc36b1['type']&&_0xcc36b1['_isDataLoaded']),_0x1f67c1=[],_0x5699e7=new Map();for(const _0x73e137 of _0x3b690b){const _0x35e364=_0x19e181(_0x73e137['attributes']);_0x5699e7['has'](_0x35e364)||(_0x5699e7['set'](_0x35e364,_0x1f67c1['length']),_0x1f67c1['push']([]));const _0x242db4=_0x5699e7['get'](_0x35e364);_0x1f67c1[_0x242db4]['push'](_0x73e137);}!(function(){_0x1f67c1['sort']((_0x5cb9db,_0x2615d9)=>{const _0x5a6ab9=_0x5cb9db[0x0]['createdAt'],_0x23947f=_0x2615d9[0x0]['createdAt'];return _0x5a6ab9==_0x23947f?_0x5cb9db[0x0]['attributes']['groupId']<_0x2615d9[0x0]['attributes']['groupId']?-0x1:0x1:_0x5a6ab9<_0x23947f?-0x1:0x1;});for(const _0x21cbdc of _0x1f67c1)_0x21cbdc['sort']((_0x4c4339,_0x5c86b0)=>_0x4c4339['id']<_0x5c86b0['id']?-0x1:0x1);}());for(let _0x361047=0x0;_0x361047<_0x1f67c1['length'];_0x361047++){if(0x0==_0x1f67c1[_0x361047]['length'])continue;const _0xbfa28d=[];for(let _0x2bfe70=_0x361047+0x1;_0x2bfe70<_0x1f67c1['length'];_0x2bfe70++)0x0!=_0x1f67c1[_0x2bfe70]['length']&&_0x11a22c(_0x1f67c1[_0x361047],_0x1f67c1[_0x2bfe70])&&_0xbfa28d['push'](_0x2bfe70);for(const _0x56aba of _0xbfa28d)_0x1f67c1[_0x361047]=_0x1f67c1[_0x361047]['concat'](_0x1f67c1[_0x56aba]),_0x1f67c1[_0x56aba]=[];}for(const _0x357d4f of _0x1f67c1)for(let _0x180a44=0x0;_0x180a44<_0x357d4f['length'];_0x180a44++){const _0x3e7b3e=_0x357d4f[_0x180a44+0x1]||null;_0x357d4f[_0x180a44]['next']!==_0x3e7b3e&&(_0x357d4f[_0x180a44]['next']=_0x3e7b3e);}for(const _0x355633 of _0x1f67c1)for(let _0x4aeb60=0x0;_0x4aeb60<_0x355633['length'];_0x4aeb60++){const _0x3cb2fd=_0x355633[_0x4aeb60-0x1]||null;_0x355633[_0x4aeb60]['previous']!==_0x3cb2fd&&(_0x355633[_0x4aeb60]['previous']=_0x3cb2fd);}function _0x11a22c(_0xb4a84,_0x24ade6){if(_0xb4a84[0x0]['attributes']['groupId']!==_0x24ade6[0x0]['attributes']['groupId']&&_0xb4a84[0x0]['author']!==_0x24ade6[0x0]['author'])return!0x1;if(!function(_0x4a1d02,_0xb72c40){if(!_0x4a1d02['hasComments']&&!_0xb72c40['hasComments'])return!0x0;if(_0x4a1d02['hasComments']&&_0xb72c40['hasComments'])return!0x1;if(_0x4a1d02['hasComments']&&_0xb72c40['createdAt']<_0x4a1d02['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xb72c40['hasComments']&&_0x4a1d02['createdAt']<_0xb72c40['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xb4a84[0x0],_0x24ade6[0x0]))return!0x1;const _0x24accf=Ut(_0xb4a84[0x0]['attributes'],['groupId','trackingSessionId']),_0x1ff312=Ut(_0x24ade6[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1ccc9c(_0x24accf,_0x1ff312))return!0x1;if(_0xb4a84[0x0]['attributes']['groupId']==_0x24ade6[0x0]['attributes']['groupId'])return!0x0;if(_0xb4a84[0x0]['attributes']['trackingSessionId']!==_0x24ade6[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xb4a84['every'](_0x340377=>_0x24ade6['some'](_0x3480ec=>_0x340377['getFirstRange']()['isEqual'](_0x3480ec['getFirstRange']())))&&_0x24ade6['every'](_0x3795f6=>_0xb4a84['some'](_0x1f45d9=>_0x3795f6['getFirstRange']()['isEqual'](_0x1f45d9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x6dc594){const _0x49e98c=Array['from'](_0x6dc594),_0x4c9cf5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x44f4bf=_0x4c9cf5['filter'](_0x66ec9=>!_0x6dc594['has'](_0x66ec9)),_0x59bca0=new Map(_0x49e98c['map'](_0x5ad209=>[_0x5ad209,this['_suggestionFactory']['getSuggestionCallback'](_0x5ad209['type'],_0x5ad209['subType'],'join')])),_0x80ad62=new Map(_0x4c9cf5['map'](_0x2af8c3=>[_0x2af8c3,_0x2af8c3['getRanges']()]));for(let _0x368ab3=0x0;_0x368ab3<_0x49e98c['length'];_0x368ab3++){if(_0x10d84d(this,_0x49e98c[_0x368ab3],_0x49e98c,_0x368ab3+0x1))return!0x0;}for(let _0x2120fe=0x0;_0x2120fe<_0x49e98c['length'];_0x2120fe++){if(_0x10d84d(this,_0x49e98c[_0x2120fe],_0x44f4bf,0x0))return!0x0;}return!0x1;function _0x10d84d(_0x16e6d2,_0x1ff151,_0x520f6c,_0x80320d){for(let _0x36db6f=_0x80320d;_0x36db6f<_0x520f6c['length'];_0x36db6f++){const _0x537ea2=_0x520f6c[_0x36db6f];if(_0x537ea2['type']!==_0x1ff151['type']||_0x537ea2['author']['id']!==_0x1ff151['author']['id']||_0x537ea2['subType']!==_0x1ff151['subType'])continue;if(!Wt(_0x1ff151,_0x537ea2))continue;if('attribute'==_0x1ff151['type']&&_0x1ff151['data']['oldValue']!=_0x537ea2['data']['oldValue'])continue;if('attribute'==_0x1ff151['type']&&_0x16e6d2['_isBlockAttribute'](_0x1ff151['data']['key']))continue;if('formatBlock'==_0x1ff151['type']){const _0x2743dd=_0x16e6d2['editor']['model'],_0xd40b5d=_0x1ff151['getContainedElement']();if(_0xd40b5d&&(_0x2743dd['schema']['isObject'](_0xd40b5d)||_0x2743dd['schema']['isLimit'](_0xd40b5d)))continue;}const _0x3a998d=_0x59bca0['get'](_0x1ff151),_0x30c5de=_0x80ad62['get'](_0x1ff151),_0x3a1fbb=_0x80ad62['get'](_0x537ea2),_0x46a095=_0x1ff151['commentThread']&&_0x1ff151['commentThread']['length'],_0x31a41f=_0x537ea2['commentThread']&&_0x537ea2['commentThread']['length'];if(!_0x46a095&&_0x3a998d(_0x3a1fbb,_0x30c5de))return _0x16e6d2['_joinSuggestions'](_0x537ea2,_0x1ff151),_0x80ad62['delete'](_0x1ff151),!0x0;if(!_0x31a41f&&_0x3a998d(_0x30c5de,_0x3a1fbb))return _0x16e6d2['_joinSuggestions'](_0x1ff151,_0x537ea2),_0x80ad62['delete'](_0x537ea2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3408c9,_0x4852ad){if(_0x3408c9['isMultiRange']){for(const _0x529383 of _0x4852ad['getRanges']())_0x3408c9['addRange'](_0x529383);}else{const _0x2b2f6d=_0x4852ad['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3408c9,this['_model']['createRange'](_0x3408c9['getFirstRange']()['start'],_0x2b2f6d));}_0x4852ad['removeMarkers']();}['_getMarkerAnnouncementText'](_0x40df4d,_0x1b18bd,_0x23d6e1){const _0x41f9e7=_0x40df4d['startsWith']('format')||_0x40df4d['startsWith']('attribute')?'FORMATTING':_0x40df4d['toUpperCase']();return o(this['editor']['locale'],_0x1b18bd+'_'+_0x41f9e7+'_SUGGESTION_ANNOUNCEMENT',_0x23d6e1);}['_initAriaMarkerChangeAnnouncements'](){const _0x316877=this['editor'];if(!_0x316877['ui'])return;const {ariaLiveAnnouncer:_0x5b87be}=_0x316877['ui'];_0x5c23cf(this['_model'],({left:_0x77e3b5,entered:_0x57f893})=>{for(const _0x1a61fb of _0x77e3b5){const {group:_0x52594f,type:_0x187acc}=this['_splitMarkerName'](_0x1a61fb['name']);if('suggestion'===_0x52594f){_0x5b87be['announce'](this['_getMarkerAnnouncementText'](_0x187acc,'LEAVE'));break;}}for(const _0x58b93e of _0x57f893){const {group:_0x2b4355,type:_0x39dac1}=this['_splitMarkerName'](_0x58b93e['name']);if('suggestion'===_0x2b4355){_0x5b87be['announce'](this['_getMarkerAnnouncementText'](_0x39dac1,'ENTER',_0x33f11a(_0x707fe4)));break;}}});}['_processAttributeChanges'](_0x1d938a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x27b78e=this['editor'],_0x35f216=_0x27b78e['model']['document']['differ']['getChanges']();if(0x0==_0x35f216['length'])return!0x1;const _0xe28b9f=[],_0x167a88=_0x35f216['filter'](_0x2cf19b=>'attribute'==_0x2cf19b['type']),_0xf0e94=_0x35f216['filter'](_0x2571f6=>'insert'==_0x2571f6['type']&&'$text'!=_0x2571f6['name']),_0x2cedbe=_0x35f216['filter'](_0x26331a=>'remove'==_0x26331a['type']&&'$text'!=_0x26331a['name']);for(const _0x2e7856 of _0x167a88)_0xe28b9f['push']({'key':_0x2e7856['attributeKey'],'newValue':_0x2e7856['attributeNewValue'],'oldValue':_0x2e7856['attributeOldValue'],'range':Ht(_0x2e7856['range'],_0x27b78e['model'])});for(const _0x5000f9 of _0xf0e94){const _0x41a19a=_0x2cedbe['find'](_0x54adb8=>_0x54adb8['position']['isEqual'](_0x5000f9['position']));_0x41a19a&&_0xe28b9f['push']({'key':m,'newValue':_0x5000f9['name'],'oldValue':_0x41a19a['name'],'range':_0x27b78e['model']['createRangeOn'](_0x5000f9['position']['nodeAfter'])});}return 0x0!=_0xe28b9f['length']&&this['_reduceExistingSuggestions'](_0x1d938a,_0xe28b9f);}['_processAttributeSuggestions'](_0x5f41c2){let _0x38a064=!0x1;const _0x5af131=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4eb301=>_0x4eb301['data']['newRange']&&_0x4eb301['name']['startsWith']('suggestion:attribute:'));for(const _0x5e6965 of _0x5af131){const {subType:_0x165a94,id:_0x1ab9e2}=this['_splitMarkerName'](_0x5e6965['name']),_0x25b192=_0x165a94['split']('|')[0x0];for(const _0x3aee66 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3aee66['id']!=_0x1ab9e2&&'attribute'==_0x3aee66['type']&&_0x3aee66['data']&&_0x3aee66['data']['key']==_0x25b192&&_0x3aee66['getFirstRange']()['isIntersecting'](_0x5e6965['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3aee66,_0x5e6965['data']['newRange'],_0x5f41c2),_0x38a064=!0x0);}return _0x38a064;}['recordAttributeChanges'](_0x328bce){this['_recordAttributeSuggestions']=!0x0,_0x328bce();}['_isRegisteredAttribute'](_0x170305){const _0x1adea1=this['_isBlockAttribute'](_0x170305),_0x1d3bb1=this['_inlineAttributeKeys']['has'](_0x170305);return _0x1adea1||_0x1d3bb1;}['_reduceExistingSuggestions'](_0x512492,_0x1a8e39){if(0x0==_0x1a8e39['length'])return!0x1;let _0x4f1e37=!0x1;for(const _0x2d86db of _0x1a8e39){const _0x51c299=this['_findSuggestions'](_0x2d86db['range'],'attribute')['filter'](_0x3aa19f=>!_0x3aa19f['meta']['isNextTo'])['map'](_0xf7a59=>_0xf7a59['suggestion']),_0x3a3ab7=_0x19e181({'newValue':_0x2d86db['newValue']});_0x51c299['filter'](_0x542095=>{const [_0x2d031f,_0x3c4ca5]=_0x542095['subType']['split']('|');return _0x2d031f==_0x2d86db['key']&&_0x3c4ca5!=_0x3a3ab7;})['forEach'](_0x1e89ce=>{this['_reduceSuggestionAttributeRange'](_0x1e89ce,_0x2d86db['range'],_0x512492),_0x4f1e37=!0x0;});}return _0x4f1e37;}['_reduceSuggestionAttributeRange'](_0x3061b3,_0x518ac2,_0xd7b7b2){const _0x274a06=_0x3061b3['getFirstRange']()['getDifference'](_0x518ac2);0x0!==_0x274a06['length']?0x1!==_0x274a06['length']?this['_breakSuggestionMarker'](_0x3061b3,_0x518ac2['start'],_0x518ac2['end']):this['_setSuggestionRange'](_0x3061b3,_0x274a06[0x0]):_0xd7b7b2['removeMarker'](_0x3061b3['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x58e633){this['_editor']=_0x58e633,this['_model']=_0x58e633['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x57ea7c,_0x347c8e,_0x290fad,_0x23d096,_0x131682,_0xa4c982,_0x10f1dc){return new T(this['_model'],{'type':_0x57ea7c,'subType':_0x347c8e,'id':_0x290fad,'originalSuggestionId':_0x10f1dc,'author':_0x23d096,'creator':_0x23d096,'attributes':_0x131682,'onAttributesChange':_0xa4c982,'onAccept':(..._0x231d08)=>this['getSuggestionCallback'](_0x57ea7c,_0x347c8e,'accept')(..._0x231d08),'onDiscard':(..._0x4096fe)=>this['getSuggestionCallback'](_0x57ea7c,_0x347c8e,'discard')(..._0x4096fe)});}['registerCustomCallback'](_0x54439a,_0x23bd30,_0x515e12,_0x595533){const _0x7bf4cb=_0x54439a+':'+_0x23bd30+':'+_0x515e12;this['_customCallbacks']['set'](_0x7bf4cb,_0x595533);}['getSuggestionCallback'](_0x5306d2,_0x1d83d6,_0x30a72e){const _0x30acba=_0x5306d2+':'+_0x1d83d6+':'+_0x30a72e;return this['_customCallbacks']['get'](_0x30acba)||this['_defaultCallbacks']['get'](_0x5306d2+':'+_0x30a72e);}['_registerDefaultCallbacks'](){const _0x2c13ae=()=>!0x1,_0x1634c7=_0x4cf82c=>{_0x4cf82c['sort']((_0xac4ada,_0x20afb1)=>_0xac4ada['start']['isBefore'](_0x20afb1['start'])?0x1:-0x1),this['_model']['change'](_0x38a2f4=>{for(const _0x18301a of _0x4cf82c){let _0x5a7ab0;_0x5a7ab0=_0x18301a['end']['isAtEnd']&&_0x18301a['end']['parent']==_0x18301a['start']['nodeAfter']?_0x38a2f4['createSelection'](_0x18301a['start']['nodeAfter'],'on'):_0x38a2f4['createSelection'](_0x18301a),this['_model']['deleteContent'](_0x5a7ab0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3a2156=(_0xa018b9,_0x34adc4)=>{_0x34adc4&&this['_model']['change'](_0x306c4e=>{const {commandName:_0xb73b93,commandParams:_0x5bb02b=[]}=_0x34adc4,_0x31e7d2=_0xa018b9['map'](_0x3b9c79=>(Pt(_0x3b9c79)&&(_0x3b9c79=this['_model']['createRange'](_0x3b9c79['end'])),_0x3b9c79))['filter'](_0x50f1e8=>'$graveyard'!==_0x50f1e8['root']['rootName']);if(_0x31e7d2['length']<0x1)return;const _0x46528c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2823fe=>_0xd7f50['fromRange'](_0x2823fe));_0x306c4e['setSelection'](_0x31e7d2);for(const _0x22d96e of this['_editor']['commands']['commands']())_0x22d96e['refresh']();_0x5bb02b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xb73b93,..._0x5bb02b);const _0x201005=_0x46528c['filter'](_0x3ab7e9=>'$graveyard'!=_0x3ab7e9['root']['rootName']);_0x201005['length']>0x0&&_0x306c4e['setSelection'](_0x201005);for(const _0x1d0262 of _0x46528c)_0x1d0262['detach']();});},_0x1f9b30=(_0x3fc34b,_0x5ce31b)=>0x1==_0x3fc34b['length']&&0x1==_0x5ce31b['length']&&_0x3fc34b[0x0]['end']['isEqual'](_0x5ce31b[0x0]['start']),_0x1d2af4=(_0x47851f,_0x319689,_0x65ca10,_0x160f5b)=>zt(_0x47851f,_0x319689,_0x65ca10,_0x160f5b)?[_0x47851f,_0x319689]:zt(_0x319689,_0x47851f,_0x160f5b,_0x65ca10)?[_0x319689,_0x47851f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2c13ae),this['_defaultCallbacks']['set']('insertion:discard',_0x1634c7),this['_defaultCallbacks']['set']('insertion:join',_0x1f9b30),this['_defaultCallbacks']['set']('insertion:chain',_0x1d2af4),this['_defaultCallbacks']['set']('deletion:accept',_0x1634c7),this['_defaultCallbacks']['set']('deletion:discard',_0x2c13ae),this['_defaultCallbacks']['set']('deletion:join',_0x1f9b30),this['_defaultCallbacks']['set']('deletion:chain',_0x1d2af4),this['_defaultCallbacks']['set']('formatInline:accept',_0x3a2156),this['_defaultCallbacks']['set']('formatInline:discard',_0x2c13ae),this['_defaultCallbacks']['set']('formatInline:join',_0x1f9b30),this['_defaultCallbacks']['set']('formatInline:chain',_0x2c13ae),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3a2156),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2c13ae),this['_defaultCallbacks']['set']('formatBlock:join',_0x1f9b30),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2c13ae),this['_defaultCallbacks']['set']('attribute:accept',_0x2c13ae),this['_defaultCallbacks']['set']('attribute:discard',(_0x1acd87,_0x3f1380)=>{if(!_0x3f1380)return;const _0x3b9a2e=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4dc8a6=>{if(_0x3f1380['key']==m)for(const _0x3c9999 of _0x1acd87){const _0x52547c=_0x3c9999['start']['nodeAfter'],_0x17c156=_0x3f1380['oldValue'];_0x4dc8a6['rename'](_0x52547c,_0x17c156);}else{if(_0x3b9a2e['_isBlockAttribute'](_0x3f1380['key'])){for(const _0x19f150 of _0x1acd87)void 0x0!==_0x3f1380['oldValue']?_0x4dc8a6['setAttribute'](_0x3f1380['key'],_0x3f1380['oldValue'],_0x19f150['start']['nodeAfter']):_0x4dc8a6['removeAttribute'](_0x3f1380['key'],_0x19f150['start']['nodeAfter']);}else{for(const _0x1d4b88 of _0x1acd87)_0x3f1380['oldValue']?_0x4dc8a6['setAttribute'](_0x3f1380['key'],_0x3f1380['oldValue'],_0x1d4b88):_0x4dc8a6['removeAttribute'](_0x3f1380['key'],_0x1d4b88);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1f9b30);}}function Ft(_0x543347,_0x2ce677,_0x26dc0f){for(const _0x576a17 of _0x2ce677['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x576a17['root']==_0x576a17)return!0x1;if(!_0x26dc0f['containsItem'](_0x576a17))return!0x1;if(_0x543347['isObject'](_0x576a17)||_0x543347['isLimit'](_0x576a17))return!0x0;}return!0x1;}function Pt(_0x5d7544){return _0x5d7544['end']['parent']==_0x5d7544['start']['nodeAfter']&&_0x5d7544['end']['isAtStart'];}function Gt(_0x1ea693,_0x7abf98,_0x3bfc1b,_0x2ff6b4){const _0x477cb9=_0x205400=>!_0x205400['item']['is']('$textProxy')&&!_0x2ff6b4['isObject'](_0x205400['item']),_0xb3aff6=_0x1ea693['start']['getLastMatchingPosition'](_0x477cb9),_0xe3f252=_0x1ea693['end']['getLastMatchingPosition'](_0x477cb9,{'direction':'backward'});return(!_0x1ea693['start']['isEqual'](_0xb3aff6)||!_0x1ea693['end']['isEqual'](_0xe3f252))&&(_0xb3aff6['isBefore'](_0xe3f252)?_0x3bfc1b['updateMarker'](_0x7abf98,{'range':_0x3bfc1b['createRange'](_0xb3aff6,_0xe3f252)}):_0x3bfc1b['removeMarker'](_0x7abf98),!0x0);}function Lt(_0x2131fb){return _0x19e181(_0x2131fb);}function Jt(_0x466e41){const _0x16a57c=_0x466e41['start']['nodeAfter'];return _0x16a57c&&_0x16a57c['is']('element');}function Kt(_0x4d51dd){return!Pt(_0x4d51dd)&&!function(_0x106959){return _0x106959['start']['parent']==_0x106959['end']['nodeBefore']&&_0x106959['start']['isAtEnd'];}(_0x4d51dd);}function Ht(_0x17b4ad,_0x140585){return null==_0x17b4ad['end']['nodeBefore']&&_0x17b4ad['end']['parent']==_0x17b4ad['start']['nodeAfter']?qt(_0x17b4ad['start']['nodeAfter'],_0x140585):_0x17b4ad;}function qt(_0x159dd1,_0x45eb19){const _0x5cddfc=_0x45eb19['schema']['isObject'](_0x159dd1)||_0x45eb19['schema']['isSelectable'](_0x159dd1);return _0x45eb19['createRange'](_0x45eb19['createPositionAt'](_0x159dd1,'before'),_0x5cddfc?_0x45eb19['createPositionAfter'](_0x159dd1):_0x45eb19['createPositionAt'](_0x159dd1,'end'));}function zt(_0x40321f,_0x4fbe7b,_0x5c4e63,_0x10948d){return!!Wt(_0x40321f,_0x4fbe7b)&&_0x5c4e63['end']['isEqual'](_0x10948d['start']);}function Wt(_0xe35f87,_0x823368){if(!_0xe35f87['_isDataLoaded']||!_0x823368['_isDataLoaded'])return!0x1;const _0x3e1a46=new Set(Object['keys'](_0xe35f87['attributes'])),_0x1eb578=new Set(Object['keys'](_0x823368['attributes']));if(_0x3e1a46['delete']('groupId'),_0x1eb578['delete']('groupId'),0x0==_0x3e1a46['size']&&0x0==_0x1eb578['size'])return!0x0;if(_0x3e1a46['size']!=_0x1eb578['size'])return!0x1;const _0x1e61ea={..._0xe35f87['attributes']},_0x38cdc6={..._0x823368['attributes']};return delete _0x1e61ea['groupId'],delete _0x38cdc6['groupId'],JSON['stringify'](_0x1e61ea)==JSON['stringify'](_0x38cdc6);}function Qt(_0x4eaa09,_0x1f7004){const _0x3a7c0c=Xt(_0x4eaa09['attributes']),_0x393ca7=Xt(_0x1f7004);if(!_0x4eaa09['_isDataLoaded'])return!0x1;for(const _0x2d4978 of Object['keys'](_0x393ca7))if(!_0x1ccc9c(_0x3a7c0c[_0x2d4978],_0x393ca7[_0x2d4978]))return!0x1;return!0x0;}function Xt(_0x1b6989){const _0x1d1d07=Object['assign']({},_0x1b6989);return delete _0x1d1d07['skipNestingCheck'],delete _0x1d1d07['tablePasteChainId'],_0x1d1d07;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x30d850(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4b8e5c,_0x1b06f6,_0x2f72f0,_0x5be155){super(),this['model']=_0x1b06f6,this['view']=_0x2f72f0,this['commentThreadController']=_0x5be155,this['_editor']=_0x4b8e5c,this['_acceptCommand']=_0x4b8e5c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4b8e5c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5a00b5,_0x2710be)=>_0x5a00b5||_0x2710be),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4b4919=>_0x4b4919&&this['_editor']['model']['canEditAt'](_0x1b06f6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5e6a93=>_0x5e6a93&&this['_editor']['model']['canEditAt'](_0x1b06f6['getRanges']())),this['_pendingAction']=null,_0x2f72f0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2f72f0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2f72f0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2f72f0,'change:isDirty',()=>{_0x2f72f0['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 _0x1374cb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1374cb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x227c41{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3c2fd3,_0x37bafc,_0x2e68e5,_0x133ec6){super(_0x3c2fd3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3b31bb(_0x3c2fd3,o(_0x3c2fd3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x37bafc['authoredAt']),this['bind']('authoredAt')['to'](_0x37bafc),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',_0x37bafc,'authoredAt',this,'descriptionParts',(_0x3914fd,_0x5bfaf8,_0x8b3c35)=>{const _0x19f6c7=_0x8b3c35['map'](_0x1e4ac8=>ls(_0x1e4ac8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3914fd-0x1,_0x37bafc['author']['name'],_0x5bfaf8?_0x133ec6['formatDateTime'](_0x5bfaf8):'',new DOMParser()['parseFromString'](_0x19f6c7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3c433f(),this['focusTracker']=new _0x554881(),this['keystrokes']=new _0x468202(),this['focusCycler']=new _0x566dc2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x110480=>_0x110480['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x37bafc,this['_localUser']=_0x2e68e5,this['_config']=_0x133ec6,_0x133ec6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x66196a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x489cc1}=this['_config'];this['commentsListView']=new _0x489cc1(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',_0x352bad=>_0x352bad+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4aacc0,_0x434777)=>_0x4aacc0||!!_0x434777);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x377ca8}=this['_config'],_0x321f50=new _0x377ca8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2cafac=_0x321f50['commentInputView'];return _0x321f50['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2cafac,'value',(_0x34b3c8,_0x25645b,_0x20e3a4)=>!!_0x20e3a4||_0x34b3c8&&!_0x25645b),_0x2cafac['on']('submit',(_0x41748f,_0x1c6ea7)=>{this['fire']('addComment',_0x1c6ea7),_0x2cafac['editor']['setData']('');}),_0x2cafac['on']('cancel',()=>this['focus']()),_0x2cafac['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x321f50;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x303016,_0x23d836,_0x1b5cac,_0x5aac9f){super(_0x303016,_0x23d836,_0x1b5cac,_0x5aac9f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x57447f=>_0x57447f&&_0x57447f[0x0]?_0x57447f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3baa32,_0x45f3be)=>{let _0x4329ba='';for(const _0x369a95 of _0x3baa32)_0x4329ba+='<p>'+ls(_0x369a95['content'],_0x369a95['color'])+'</p>';return _0x45f3be?_0x4329ba:_0x28f8fc(_0x4329ba,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5aac9f['SuggestionView'](_0x303016,_0x23d836,{'formatDateTime':_0x5aac9f['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 _0x574a84=this['bindTemplate'],_0x5e6d3a=[this['suggestionView']];return this['commentsListView']&&_0x5e6d3a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5e6d3a['push'](this['commentThreadInputView']),_0x5e6d3a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x574a84['if']('isActive','ck-suggestion-wrapper--active'),_0x574a84['to']('type',_0x3fbe8d=>'ck-suggestion-'+_0x3fbe8d),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':_0x574a84['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5e6d3a};}['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 _0x227c41{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5db7ca,_0x512c06,_0x385de1){super(_0x5db7ca),this['_model']=_0x512c06,this['_config']=_0x385de1,this['set']('description',''),this['bind']('authoredAt')['to'](_0x512c06),this['acceptButton']=this['_createButton'](o(_0x5db7ca,'Accept\x20suggestion'),_0x5413dd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5db7ca,'Discard\x20suggestion'),_0xf05574,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x15bd94(_0x5db7ca,_0x512c06['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3c433f([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x554881(),this['keystrokes']=new _0x468202(),this['focusCycler']=new _0x566dc2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x493749=>_0x493749['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x43cace=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x43cace['innerHTML']=this['description'],this['on']('change:description',(_0x51a105,_0x3c0325,_0x108e0e)=>{_0x43cace['innerHTML']=_0x108e0e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x19ba81=this['bindTemplate'],_0x609438=[{'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':_0x19ba81['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x19ba81['to']('authoredAt',_0x27a564=>this['_config']['formatDateTime'](_0x27a564))}]}]},{'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']&&_0x609438['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':_0x609438}]};}['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'](_0x1d4e4d,_0x253c9c,_0x144d8e,_0x28beb9,_0x5b7bd7){const _0x294887=new _0x47319b(this['locale']);return _0x294887['set']({'label':_0x1d4e4d,'icon':_0x253c9c,'tooltip':!0x0,'tooltipPosition':_0x5b7bd7}),_0x294887['extendTemplate']({'attributes':{'class':_0x144d8e}}),_0x294887['on']('execute',()=>{this['fire'](_0x28beb9,this['_model']['id']);}),_0x294887;}['_setupKeyboardNavigation'](){const _0x27c805=this['element'];this['keystrokes']['listenTo'](_0x27c805);for(const _0x212850 of this['focusables'])this['focusTracker']['add'](_0x212850['element']),this['keystrokes']['listenTo'](_0x212850['element']);this['keystrokes']['set']('enter',(_0x179f74,_0x18854c)=>{_0x27c805===_0x179f74['target']&&(this['focusCycler']['focusFirst'](),_0x18854c());}),this['keystrokes']['set']('esc',(_0x48c5d4,_0xfe1142)=>{_0x27c805!==_0x48c5d4['target']&&(this['focus'](),_0xfe1142());});}}class u extends _0x2bddd5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x27b3d9,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e355f){super(_0x4e355f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5cebc4=this['editor']['config'];_0x5cebc4['define']('trackChanges.SuggestionThreadView',fe),_0x5cebc4['define']('trackChanges.SuggestionView',we),_0x5cebc4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5cebc4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1b7fb1,_0x19c9d0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x248505,_0x2372a5]of this['_handleControllerBuffer']){const _0x18a0f7=this['_suggestionToController']['has'](_0x248505);_0x18a0f7||_0x2372a5?_0x18a0f7&&_0x2372a5&&this['_destroyController'](_0x248505):this['_initializeController'](_0x248505);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1b7fb1,_0x19c9d0);}['init'](){const _0x4dcd88=this['editor'],_0x4f04fe=_0x4dcd88['plugins']['get']('TrackChangesEditing'),_0x120fda=_0x4dcd88['plugins']['get']('Annotations'),_0x5d1443=_0x4dcd88['plugins']['get']('EditorAnnotations'),_0x1ce81d=_0x4dcd88['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5d1443['addSourceCollector'](()=>{const _0x316e6=[];for(const [_0x3cb5a7,_0x14eeaf]of Array['from'](this['_suggestionToController'])){const _0x4b8873=_0x3cb5a7['getAllAdjacentSuggestions'](),_0x43de75=[];for(const _0x1848ad of _0x4b8873){if(!_0x1848ad['isInContent'])continue;if(_0x1848ad['isMultiRange']){_0x43de75['push'](..._0x1848ad['getRanges']());continue;}const _0xe59825=_0x1848ad['getFirstRange']();if(_0x43de75['length']>0x0){const _0x802701=_0x43de75[0x0]['getJoined'](_0xe59825);if(_0x802701){_0x43de75[0x0]=_0x802701;continue;}}_0x43de75['push'](_0xe59825);}_0x316e6['push']([_0x14eeaf['view'],_0x43de75]);}return _0x316e6;}),this['listenTo'](_0x4f04fe,'suggestionLoaded',(_0xc53b1,_0x30a94e)=>{this['listenTo'](_0x30a94e,'change:previous',(_0x25a04b,_0x1f7ce6,_0x136fc6,_0x3fa9ee)=>{_0x30a94e['isInContent']&&(null==_0x136fc6?(this['_updateController'](_0x3fa9ee['head']),this['_handleSuggestionControllerDelayed'](_0x30a94e,!0x1)):(this['_updateController'](_0x136fc6['head']),null==_0x3fa9ee&&this['_handleSuggestionControllerDelayed'](_0x30a94e,!0x0)));}),null!==_0x30a94e['previous']?this['_updateController'](_0x30a94e['head']):this['_handleSuggestionControllerDelayed'](_0x30a94e,!0x1);}),this['listenTo'](_0x4f04fe,'suggestionUnloaded',(_0x1c3692,_0x2e5b0c,_0x5e987f)=>{this['stopListening'](_0x2e5b0c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2e5b0c),this['_suggestionToController']['has'](_0x2e5b0c)&&this['_destroyController'](_0x2e5b0c),_0x5e987f&&this['_updateController'](_0x5e987f['head']);}),this['listenTo'](_0x4f04fe,'suggestionChanged',(_0x5bd8d8,_0x54c5bd)=>{this['_updateController'](_0x54c5bd);}),this['listenTo'](_0x120fda,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1ce81d,'addComment',(_0x31feee,{threadId:_0x37f88,isFromAdapter:_0x348270})=>{if(_0x348270||!_0x4f04fe['hasSuggestion'](_0x37f88))return;const _0x5594c0=_0x4f04fe['getSuggestion'](_0x37f88);this['_suggestionToController']['get'](_0x5594c0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x25b2c0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x50d1aa;for(const _0xd9c079 in _0x25b2c0){const _0x5e92c3=_0xd9c079,_0x48a041=_0x25b2c0[_0x5e92c3];if('trackChangesLicenseKeyValid'==_0x48a041||'trackChangesLicenseKeyInvalid'==_0x48a041||'trackChangesLicenseKeyExpired'==_0x48a041||'trackChangesLicenseKeyDomainLimit'==_0x48a041||'trackChangesLicenseKeyNotAllowed'==_0x48a041||'trackChangesLicenseKeyEvaluationLimit'==_0x48a041||'trackChangesLicenseKeyTrialLimit'==_0x48a041||'trackChangesLicenseKeyUsageLimit'==_0x48a041){delete _0x25b2c0[_0x5e92c3],_0x50d1aa=_0x48a041,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x50d1aa&&_0x25b2c0['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4bd008){const _0x274e4c=this['_suggestionToController']['get'](_0x4bd008);if(!_0x274e4c)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x274e4c['view'])||null;}['getSuggestionForAnnotation'](_0x49c423){const _0x79d15a=this['_viewToController']['get'](_0x49c423['innerView']);return _0x79d15a?_0x79d15a['model']:null;}['_refreshActiveMarkers'](){const _0x237bbf=this['editor']['plugins']['get']('Annotations'),_0x7241b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21f08f=Array['from'](_0x237bbf['activeAnnotations'],_0x4185c4=>_0x4185c4['innerView'])['filter'](_0x46f263=>this['_viewToController']['has'](_0x46f263)),_0x42d2fb=[];for(const _0x1a63ab of _0x21f08f){const _0x1efb06=this['_viewToController']['get'](_0x1a63ab)['model']['getAllAdjacentSuggestions']();_0x42d2fb['push'](..._0x1efb06['reduce']((_0x1406d3,_0x23d1ea)=>[..._0x1406d3,..._0x23d1ea['getMarkerNames']()],[]));}_0x7241b4['activeMarkers']=_0x42d2fb;}['_addUIComponentsToFactory'](){const _0x40e29a=this['editor'],_0x574ff5=_0x40e29a['locale'],_0x1bb90f=o(_0x574ff5,'Track\x20changes'),_0x29e9f4=new _0x34de8a([{'type':'switchbutton','model':new _0x595d42({'withText':!0x0,'isToggleable':!0x0,'label':_0x1bb90f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x595d42({'withText':!0x0,'label':o(_0x574ff5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x595d42({'withText':!0x0,'label':o(_0x574ff5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x595d42({'withText':!0x0,'label':o(_0x574ff5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x595d42({'withText':!0x0,'label':o(_0x574ff5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x40e29a['plugins']['has']('TrackChangesPreview')&&_0x29e9f4['addMany']([{'type':'separator'},{'type':'button','model':new _0x595d42({'withText':!0x0,'label':o(_0x574ff5,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x304b60 of _0x29e9f4)if(ke(_0x304b60)){const _0x4d28fe=_0x40e29a['commands']['get'](_0x304b60['model']['commandName']);_0x304b60['model']['bind']('isOn','isEnabled')['to'](_0x4d28fe,'value','isEnabled');}_0x40e29a['ui']['componentFactory']['add']('trackChanges',_0x5cfe06=>this['_createToolbarButton'](_0x5cfe06,_0x29e9f4,_0x1bb90f)),_0x40e29a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1f5adf=>this['_createMenuBarMenu'](_0x1f5adf,_0x29e9f4,_0x1bb90f));}['_createToolbarButton'](_0x43a5ea,_0x2cdbc8,_0x36d510){const _0x16f1d7=_0x348d4d(_0x43a5ea,_0x17ee4a),_0x149117=this['editor']['commands']['get']('trackChanges');_0x16f1d7['buttonView']['set']({'tooltip':_0x36d510,'label':_0x36d510,'icon':_0xbecfc5}),_0x16f1d7['buttonView']['bind']('isOn')['to'](_0x149117,'value'),_0x16f1d7['buttonView']['on']('execute',()=>{_0x149117['execute'](),this['editor']['editing']['view']['focus']();}),_0x5cbd92(_0x16f1d7,_0x2cdbc8,{'role':'menu'});const _0x269104=[];for(const _0x22a91a of _0x2cdbc8)ke(_0x22a91a)&&_0x269104['push'](this['editor']['commands']['get'](_0x22a91a['model']['commandName']));const _0x3aae8b=_0x16f1d7['buttonView'];return _0x3aae8b['actionView']['unbind']('isEnabled'),_0x3aae8b['arrowView']['unbind']('isEnabled'),_0x3aae8b['actionView']['bind']('isEnabled')['to'](_0x149117,'isEnabled'),_0x3aae8b['arrowView']['bind']('isEnabled')['toMany'](_0x269104,'isEnabled',(..._0x2a2f87)=>_0x2a2f87['some'](_0x454c2d=>_0x454c2d)),_0x16f1d7['on']('execute',_0x53cc8a=>{this['editor']['execute'](_0x53cc8a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x16f1d7;}['_createMenuBarMenu'](_0x775531,_0x1b853b,_0x4e78ba){const _0x39fcc9=new _0xa70834(_0x775531),_0x2c14ea=this['editor']['commands']['get']('trackChanges');_0x39fcc9['buttonView']['set']({'label':_0x4e78ba,'icon':_0xbecfc5});const _0x15ffbf=new _0x5d1ff9(_0x775531);for(const _0x4601bd of _0x1b853b){if('separator'==_0x4601bd['type']){_0x15ffbf['items']['add'](new _0x247408(_0x775531));continue;}const _0x1395ea=new _0x3991a7(_0x775531,_0x39fcc9),_0x401a65=new _0x47cc69(_0x775531),_0x10554b=_0x4601bd['model'];_0x401a65['bind'](...Object['keys'](_0x10554b))['to'](_0x10554b),_0x401a65['delegate']('execute')['to'](_0x39fcc9),_0x401a65['on']('execute',()=>{this['editor']['execute'](_0x10554b['commandName']),this['editor']['editing']['view']['focus']();}),_0x1395ea['children']['add'](_0x401a65),_0x15ffbf['items']['add'](_0x1395ea);}return _0x39fcc9['bind']('isEnabled')['to'](_0x2c14ea,'isEnabled'),_0x39fcc9['panelView']['children']['add'](_0x15ffbf),_0x39fcc9;}['_initializeController'](_0x1333aa){const _0x21edf5=this['editor'],_0x75d078=_0x21edf5['config'],_0x4f5ab6=_0x21edf5['plugins']['get']('Annotations'),_0x14b80c=_0x21edf5['plugins']['get']('CommentsRepository'),_0x235840=_0x21edf5['plugins']['get']('EditorAnnotations'),_0x8a6382=_0x21edf5['plugins']['get'](_0x27b3d9)['me'],_0xd49654=_0x75d078['get']('trackChanges')['SuggestionThreadView'],_0x50d65d=_0x75d078['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2f672c,CommentThreadInputView:_0x5f1d67}=_0x21edf5['plugins']['get']('CommentsUI');let _0x2776fb,_0x117da2,_0x10dbbf;this['_annotationViews']['has'](_0x1333aa['id'])?(_0x117da2=this['_annotationViews']['get'](_0x1333aa['id']),_0x2776fb=_0x117da2['mainView']):(_0x2776fb=new _0xd49654(_0x21edf5['locale'],_0x1333aa,_0x8a6382,{'disableComments':this['_disableComments'],'editorConfig':{..._0x75d078['get']('comments.editorConfig'),'licenseKey':_0x75d078['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x75d078['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x75d078['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x75d078['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3e584c(_0x75d078['get']('locale'),_0x21edf5['locale']),'CommentView':_0x75d078['get']('comments')['CommentView'],'CommentsListView':_0x2f672c,'CommentThreadInputView':_0x5f1d67,'SuggestionView':_0x50d65d}),_0x2776fb['suggestionView']['acceptButton']['on']('execute',()=>{_0x21edf5['editing']['view']['focus']();}),_0x2776fb['suggestionView']['discardButton']['on']('execute',()=>{_0x21edf5['editing']['view']['focus']();}),_0x117da2=_0x4f5ab6['createAnnotationView'](this['editor']['locale'],_0x2776fb),_0x117da2['bind']('isDirty')['to'](_0x2776fb,'isDirty'),_0x117da2['bind']('length')['to'](_0x2776fb),_0x117da2['bind']('type')['to'](_0x2776fb,'type',_0xe1a43b=>'suggestion-'+_0xe1a43b),_0x2776fb['on']('escape',()=>{_0x10dbbf['fire']('escape');}),this['_annotationViews']['set'](_0x1333aa['id'],_0x117da2));const _0x1e66f7=_0x14b80c['createCommentThreadController'](_0x1333aa['commentThread'],_0x2776fb),_0x3c2713=new pe(_0x21edf5,_0x1333aa,_0x2776fb,_0x1e66f7),_0x234e5e=_0x1333aa['getAllAdjacentSuggestions']()['filter'](_0x1f2051=>_0x1f2051['isInContent']);_0x2776fb['descriptionParts']=_0x21edf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x234e5e),this['_suggestionToController']['set'](_0x1333aa,_0x3c2713),this['_viewToController']['set'](_0x2776fb,_0x3c2713),_0x10dbbf=_0x4f5ab6['createAnnotation']({'view':_0x117da2,'target':()=>{const _0x1cd6bc=[],_0x488b73=_0x1333aa['getAllAdjacentSuggestions']()['filter'](_0x121520=>_0x121520['isInContent']);for(const _0x452af9 of _0x488b73)_0x1cd6bc['push'](..._0x452af9['getMarkers']());return _0x190f99(_0x21edf5['editing'],_0x1cd6bc);},'type':()=>'suggestion-'+_0x3c2713['view']['type']}),_0x14b80c['_bindAnnotationToEditors'](_0x2776fb,_0x10dbbf),_0x4f5ab6['add'](_0x10dbbf),_0x235840['registerAnnotation'](_0x10dbbf);}['_destroyController'](_0x379365){const _0x20262f=this['editor']['plugins']['get']('CommentsRepository'),_0x204ec2=this['editor']['plugins']['get']('Annotations'),_0x3b9545=this['_suggestionToController']['get'](_0x379365),_0x13afa8=_0x3b9545['view'],_0xfe766b=_0x204ec2['getByInnerView'](_0x13afa8);_0x20262f['_unbindEditors'](_0x13afa8),_0xfe766b&&_0x204ec2['remove'](_0xfe766b),this['_suggestionToController']['delete'](_0x379365),this['_viewToController']['delete'](_0x13afa8),_0x3b9545['destroy']();}['_updateController'](_0x3a4ad2){if(!_0x3a4ad2['isInContent']||!this['_suggestionToController']['has'](_0x3a4ad2))return;const _0x307d4b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14fdae=this['_suggestionToController']['get'](_0x3a4ad2),_0x3d909f=_0x3a4ad2['getAllAdjacentSuggestions']();_0x14fdae['view']['descriptionParts']=_0x307d4b['descriptionFactory']['getDescriptions'](_0x3d909f);}['destroy'](){for(const _0x2d2933 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2d2933);for(const _0x33065b of this['_annotationViews']['values']())_0x33065b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x43ae89){return'model'in _0x43ae89;}class Fe extends _0x2bddd5{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x52672c){this['editor']['plugins']['get'](d)['adapter']=_0x52672c;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2412c9){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2412c9);}['getSuggestions']({skipNotAttached:_0x2e507c=!0x1,toJSON:_0x3730a3=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2e507c,'toJSON':_0x3730a3});}['getSuggestion'](_0x5f2f10){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x5f2f10);}}const p=['Pagination'];class re extends _0x2bddd5{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5e6b2a=this['editor'];if(_0x5e6b2a['config']['define']('trackChangesData.editorCreator',_0xc92674=>{const _0x1c202b=_0x5e6b2a['model']['document']['getRootNames']()['reduce']((_0x28a4b1,_0x58e54c)=>(_0x28a4b1[_0x58e54c]='',_0x28a4b1),{});return _0x5e6b2a['constructor']['create'](_0x1c202b,_0xc92674);}),'function'!=typeof _0x5e6b2a['config']['get']('trackChangesData')['editorCreator'])throw new _0x30e493('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x319210){return P(this['editor'],!0x0,_0x319210);}['getDataWithDiscardedSuggestions'](_0x3f9c96){return P(this['editor'],!0x1,_0x3f9c96);}}class Ge extends _0x2bddd5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x407f99){function _0x14738f(_0x4e53d6){return _0x4e53d6['map'](_0x1d7c13=>String['fromCharCode'](_0x1d7c13))['join']('');}super(_0x407f99),this['result']='end',_0x407f99[_0x14738f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14738f([0x76,0x69,0x65,0x77])][_0x14738f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14738f([0x61,0x75,0x74,0x6f]),_0x407f99[_0x14738f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x14738f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14738f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x14738f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x14738f([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function $e(_0x1da857){return void 0x0!==_0x1da857['getRootsAttributes'];}async function P(_0x56cff9,_0x2d7166,_0x5c6a2b){const _0x222dba=_0x52af52(_0x56cff9,p);_0x222dba['plugins']['push'](d,Ge),_0x222dba['rootsAttributes']=$e(_0x56cff9)?_0x56cff9['getRootsAttributes']():void 0x0;const _0x5cb655=document['createDocumentFragment'](),_0x39be89=_0x56cff9['config']['get']('trackChangesData')['editorCreator'],_0x528ab5=await _0x39be89(_0x222dba,()=>function(_0x24f77e){const _0x102c9a=document['createElement']('div');return _0x24f77e['appendChild'](_0x102c9a),_0x102c9a;}(_0x5cb655));!function(_0x4aa566,_0x130737){const _0x2decd9=_0x4aa566['model']['document']['getRootNames']()['reduce']((_0x9c0fac,_0x497ec2)=>(_0x9c0fac[_0x497ec2]=_0x4aa566['data']['get']({'rootName':_0x497ec2}),_0x9c0fac),{}),_0x4f4398=_0x4aa566['plugins']['get']('Users')['users']['map'](_0xbcba97=>({'id':_0xbcba97['id'],'name':_0xbcba97['name']})),_0x2e9b1f=_0x4aa566['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2d244a=_0x4aa566['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x223949=_0x130737['plugins']['get']('Users'),_0x1c763d=_0x130737['plugins']['get']('TrackChangesEditing'),_0x51e124=_0x130737['plugins']['get']('CommentsRepository');for(const _0x98e164 of _0x51e124['getCommentThreads']())_0x98e164['remove']();for(const _0xe5de66 of _0x4f4398)_0x223949['getUser'](_0xe5de66['id'])||_0x223949['addUser'](_0xe5de66);_0x223949['me']||_0x223949['useAnonymousUser']();for(const _0x968d40 of _0x2d244a)_0x51e124['addCommentThread'](_0x968d40);for(const _0x26deeb of _0x2e9b1f)_0x1c763d['addSuggestionData'](_0x26deeb);_0x130737['data']['set'](_0x2decd9);}(_0x56cff9,_0x528ab5),_0x528ab5['execute'](_0x2d7166?'acceptAllSuggestions':'discardAllSuggestions');const _0x30c33f=$e(_0x528ab5)?_0x528ab5['getFullData'](_0x5c6a2b):_0x528ab5['data']['get'](_0x5c6a2b);return await _0x528ab5['destroy'](),_0x30c33f;}class Me extends _0x227c41{['options'];constructor(_0x22441e,_0x5ef4bf){super(_0x22441e),this['options']=_0x5ef4bf,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'](_0x13c539,_0x5b8fc3){if(!this['element'])return;const _0x385c9f=[];for(const [_0x34eba7,_0x4bee2e]of _0x13c539){const _0x469558=document['createElement']('div');_0x469558['setAttribute']('data-ck-root-name',_0x34eba7),_0x469558['className']=_0x4bee2e['classes']+'\x20ck-track-changes-preview__root-container',_0x469558['innerHTML']=_0x4bee2e['content'],_0x385c9f['push'](_0x469558);}_0x5b8fc3(this['element'],_0x385c9f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x572c4e{constructor(_0x1ac1ad){super(_0x1ac1ad),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5158fa=this['editor'],_0x44350e=_0x5158fa['locale'],_0x4f2ce8=_0x5158fa['plugins']['get']('Dialog');let _0x1eac86;const _0xd869d2=function(_0xdb0857){const _0x21b848={};if('editables'in _0xdb0857['ui']['view']){for(const [_0x1d3522,_0x5c4fdf]of Object['entries'](_0xdb0857['ui']['view']['editables']))_0x21b848[_0x1d3522]=_0x5c4fdf['element'];}else _0x21b848[_0xdb0857['model']['document']['getRootNames']()[0x0]]=_0xdb0857['ui']['view']['editable']['element'];return _0x21b848;}(_0x5158fa),_0x3d3945=function(_0x1cbb83){let _0x605806=0x0;for(const _0x2b22b8 of Object['values'](_0x1cbb83))_0x605806=Math['max'](_0x605806,_0x2b22b8['getBoundingClientRect']()['width']);let _0x493b3f=0x0;for(const _0x8604fa of Object['values'](_0x1cbb83))_0x493b3f+=_0x8604fa['getBoundingClientRect']()['height'];const _0x5d4145=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x224f5c=Math['min'](_0x493b3f,_0x5d4145);return{'width':_0x605806,'height':_0x224f5c};}(_0xd869d2);_0x4f2ce8['show']({'id':'finalContentPreview','title':o(_0x44350e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x44350e,{'dialogRects':_0x3d3945}),'onHide':()=>{_0x1eac86['detachFromDom']();},'onShow':()=>{_0x5158fa['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x44ce70=>{const _0x3de66a=this['_standarizeRootsData'](_0x44ce70,_0x5158fa,_0xd869d2);_0x4f2ce8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3de66a,_0x5158fa['config']['get']('trackChanges.preview.renderFunction'));}),_0x1eac86=new _0x2fab16(_0x44350e,[_0x4f2ce8['view']]),_0x1eac86['attachToDom'](),_0x1eac86['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5158fa['once']('destroy',()=>{_0x1eac86['detachFromDom']();});const _0x9ab894=_0x4f2ce8['view']['headerView']['class'];_0x4f2ce8['view']['headerView']['class']=_0x9ab894?_0x9ab894+'\x20ck-reset_all':'ck-reset_all',_0x4f2ce8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4f2ce8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2fe9be=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x26f555=_0x2fe9be['previewMode'],_0x1d045f={};if('$labels'===_0x26f555){for(const _0x5afdea of _0x2fe9be['getMergeFieldsIds']())_0x1d045f[_0x5afdea]=_0x2fe9be['getLabel'](_0x5afdea)||_0x5afdea;}else{const _0x4a4eee='$defaultValues'===_0x26f555?_0x2fe9be['getDefaultValues']():_0x2fe9be['getDataSetValues'](_0x26f555,!0x0);for(const _0x3f503a of Object['entries'](_0x4a4eee)){const [_0x14b8b0,_0x49c44e]=_0x3f503a;_0x1d045f[_0x14b8b0]=null!==_0x49c44e?_0x49c44e:_0x2fe9be['getLabel'](_0x14b8b0)||_0x14b8b0;}}return{'mergeFieldsData':_0x1d045f};}['_standarizeRootsData'](_0x4f05c5,_0x4a34a8,_0x573065){let _0x26a395;if('string'==typeof _0x4f05c5){const _0x48c2b5=_0x4a34a8['model']['document']['getRootNames']()[0x0];_0x26a395={[_0x48c2b5]:_0x4f05c5};}else _0x26a395=_0x4f05c5;const _0x5b9c24=this['_fixMediaEmbeds'](_0x26a395,_0x4a34a8),_0x12d9d9=function(_0x57a3f7,_0x490f1e){for(const [_0x234401,_0x47cb17]of _0x57a3f7)_0x47cb17['classes']=_0x490f1e[_0x234401]['classList']['value']['replace']('ck-focused','');return _0x57a3f7;}(this['_sortRoots'](_0x4a34a8)['reduce']((_0x5cdda5,_0x3282b9)=>(_0x5cdda5['push']([_0x3282b9,{'content':_0x5b9c24[_0x3282b9],'classes':''}]),_0x5cdda5),[]),_0x573065);return _0x12d9d9;}['_fixMediaEmbeds'](_0x1b4156,_0x5f0b86){if(!_0x5f0b86['plugins']['has']('MediaEmbedEditing'))return _0x1b4156;const _0x5affcb=_0x5f0b86['plugins']['get']('MediaEmbedEditing');for(const [_0x484e3b,_0x6a00c3]of Object['entries'](_0x1b4156)){const _0xb24746=document['createElement']('div');_0xb24746['innerHTML']=_0x6a00c3,(_0xb24746['querySelectorAll']('figure.media')['forEach'](_0x315a3a=>{const _0x43701b=_0x315a3a['querySelector']('oembed');if(_0x43701b){const _0x11cc04=_0x43701b['getAttribute']('url');if(_0x11cc04){const _0x17c979=_0x5affcb['registry']['getMediaViewElement'](new _0x2ea7db(_0x5f0b86['editing']['view']['document']),_0x11cc04,{'elementName':'','renderForEditingView':!0x0}),_0x558b4a=document['createElement']('div');_0x558b4a['classList']['add']('ck-media__wrapper'),_0x17c979['render'](_0x558b4a,_0x5f0b86['editing']['view']['domConverter']),_0x43701b['replaceWith'](_0x558b4a);}}}),_0x1b4156[_0x484e3b]=_0xb24746['innerHTML']);}return _0x1b4156;}['_sortRoots'](_0x328d2d){if(!function(_0x57de5b){return void 0x0!==_0x57de5b['getRootsAttributes'];}(_0x328d2d))return _0x328d2d['model']['document']['getRootNames']();const _0x3ddc01=[],_0x1de9c9=new Map();for(const _0x2a210e of _0x328d2d['model']['document']['getRootNames']()){const _0x28f2b7=_0x328d2d['editing']['view']['getDomRoot'](_0x2a210e)['getClientRects']()['item'](0x0);_0x3ddc01['push'](_0x2a210e),_0x1de9c9['set'](_0x2a210e,_0x28f2b7);}return _0x3ddc01['sort']((_0x12d507,_0x4c6ae5)=>{const _0x2b62d5=_0x1de9c9['get'](_0x12d507),_0x41590e=_0x1de9c9['get'](_0x4c6ae5);return _0x2b62d5['y']-_0x41590e['y']||_0x2b62d5['x']-_0x41590e['x'];}),_0x3ddc01;}}class He extends _0x2bddd5{static get['requires'](){return[re,_0x34ef5c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38d5fa){super(_0x38d5fa),_0x38d5fa['commands']['add']('previewFinalContent',new te(this['editor'])),_0x38d5fa['config']['define']('trackChanges.preview.renderFunction',(_0xe814f,_0x4634ae)=>{for(const _0x2a8799 of _0x4634ae)_0xe814f['appendChild'](_0x2a8799);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};