@ckeditor/ckeditor5-track-changes 44.3.0-alpha.0 → 44.3.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  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/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +25 -25
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/emoji.js +1 -1
  166. package/src/integrations/entercommand.js +1 -1
  167. package/src/integrations/findandreplace.js +1 -1
  168. package/src/integrations/font.js +1 -1
  169. package/src/integrations/formatpainter.js +1 -1
  170. package/src/integrations/heading.js +1 -1
  171. package/src/integrations/highlight.js +1 -1
  172. package/src/integrations/horizontalline.js +1 -1
  173. package/src/integrations/htmlembed.js +1 -1
  174. package/src/integrations/image.js +1 -1
  175. package/src/integrations/imagereplace.js +1 -1
  176. package/src/integrations/imagestyle.js +1 -1
  177. package/src/integrations/importword.js +1 -1
  178. package/src/integrations/indent.js +1 -1
  179. package/src/integrations/inputcommand.js +1 -1
  180. package/src/integrations/legacylist.js +1 -1
  181. package/src/integrations/legacylistproperties.js +1 -1
  182. package/src/integrations/link.js +1 -1
  183. package/src/integrations/list.js +1 -1
  184. package/src/integrations/listproperties.js +1 -1
  185. package/src/integrations/mediaembed.js +1 -1
  186. package/src/integrations/mention.js +1 -1
  187. package/src/integrations/mergefields.js +1 -1
  188. package/src/integrations/multilevellist.js +1 -1
  189. package/src/integrations/pagebreak.js +1 -1
  190. package/src/integrations/paragraph.js +1 -1
  191. package/src/integrations/removeformat.js +1 -1
  192. package/src/integrations/replacesourcecommand.js +1 -1
  193. package/src/integrations/restrictededitingmode.js +1 -1
  194. package/src/integrations/shiftentercommand.js +1 -1
  195. package/src/integrations/standardeditingmode.js +1 -1
  196. package/src/integrations/style.js +1 -1
  197. package/src/integrations/table.js +1 -1
  198. package/src/integrations/tablecaption.js +1 -1
  199. package/src/integrations/tableclipboard.js +1 -1
  200. package/src/integrations/tablecolumnresize.js +1 -1
  201. package/src/integrations/tableheadings.js +1 -1
  202. package/src/integrations/tablemergesplit.js +1 -1
  203. package/src/integrations/tableofcontents.js +1 -1
  204. package/src/integrations/tableproperties.js +1 -1
  205. package/src/integrations/template.js +1 -1
  206. package/src/integrations/title.js +1 -1
  207. package/src/integrations/undo.js +1 -1
  208. package/src/integrations/uploadcare.js +1 -1
  209. package/src/integrations/utils.js +1 -1
  210. package/src/suggestion.js +2 -2
  211. package/src/suggestiondescriptionfactory.js +1 -1
  212. package/src/trackchanges.js +1 -1
  213. package/src/trackchangesdata.js +1 -1
  214. package/src/trackchangesediting.js +1 -1
  215. package/src/trackchangespreview.js +1 -1
  216. package/src/trackchangesui.js +1 -1
  217. package/src/ui/suggestioncontroller.js +2 -2
  218. package/src/ui/view/basesuggestionthreadview.js +1 -1
  219. package/src/ui/view/suggestionthreadview.js +1 -1
  220. package/src/ui/view/suggestionview.js +1 -1
  221. package/src/ui/view/trackchangespreviewview.js +1 -1
  222. package/src/utils/common-translations.js +1 -1
  223. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Yt,Plugin as _0x42796e,PendingActions as _0x1d58f4,icons as _0x5239f1}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4aa60d,ObservableMixin as _0x2b64b8,uid as _0x55f348,priorities as _0x56db26,insertToPriorityArray as _0x1d87c2,logWarning as _0x49f2b4,getEnvKeystrokeText as _0x26f516,FocusTracker as _0x3116b8,KeystrokeHandler as _0x10787e,Collection as _0xaa39ea}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3eb2fa,View as _0x1fab17,ViewCollection as _0x239dc0,FocusCycler as _0x1bc5b1,ViewModel as _0x5f0129,createDropdown as _0x2f0e3e,SplitButtonView as _0x5d9ae3,addListToDropdown as _0x1ba791,MenuBarMenuView as _0x50b1ff,MenuBarMenuListView as _0x3c067f,ListSeparatorView as _0xc0ad48,MenuBarMenuListItemView as _0x223a74,MenuBarMenuListItemButtonView as _0x2727ec,BodyCollection as _0xd48db6,Dialog as _0x291061}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x555351,hashObject as _0x17cf62,surroundingMarkersDetector as _0x13200b,FOCUS_ANNOTATION_KEYSTROKE as _0x3abdc1,AriaDescriptionView as _0x48a1fe,setupThreadKeyboardNavigation as _0xc052c4,trimHtml as _0x18f17d,UserView as _0x3b0a9c,LateFocusButtonView as _0x107628,getDateTimeFormatter as _0x3c0031,getAllMarkersDomElementsSorted as _0x598c9d,sanitizeEditorConfig as _0x1a4acd}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x42c82f,LiveRange as _0x2eb8ca,LivePosition as _0x56f03e,DowncastWriter as _0x5619c4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x516f0c,toWidget as _0x2881fe}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x10109f,set as _0x48f79b,isEqual as _0x28ebbc,unset as _0x315694,omit as Vt}from'lodash-es';import{Delete as _0x3ed1e7,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x443da6,ShiftEnter as _0x50f491}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x255b4c,_0x314fbb){super(_0x255b4c),this['_enabledCommands']=_0x314fbb,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 _0x53a436 of this['editor']['commands']['commands']())_0x53a436['affectsData']&&!this['_enabledCommands']['has'](_0x53a436)&&_0x53a436['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4fc190 of this['editor']['commands']['commands']())_0x4fc190['affectsData']&&!this['_enabledCommands']['has'](_0x4fc190)&&_0x4fc190['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x484c45,_0xcce708){super(_0x484c45),this['_suggestions']=_0xcce708,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x44684f){const _0x17bc29=this['_suggestions']['get'](_0x44684f);if(!_0x17bc29)throw new _0x4aa60d('track-changes-accept-suggestion-not-found',this);const _0x34c851=_0x17bc29['getRanges']();this['editor']['model']['canEditAt'](_0x34c851)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x17bc29);}}class R extends Yt{['_suggestions'];constructor(_0x10cb82,_0x1a79c1){super(_0x10cb82),this['_suggestions']=_0x1a79c1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x199ce0){const _0x2afe70=this['_suggestions']['get'](_0x199ce0);if(!_0x2afe70)throw new _0x4aa60d('track-changes-discard-suggestion-not-found',this);const _0x5ada58=_0x2afe70['getRanges']();this['editor']['model']['canEditAt'](_0x5ada58)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2afe70);}}function cs(_0x529169,_0x301e36){let _0x51a2cb='';return _0x51a2cb+=_0x529169['split']('*')['map']((_0x20fbe0,_0x38d4fc)=>_0x38d4fc%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x20fbe0)+'</span>':nn(_0x20fbe0))['join'](''),_0x301e36&&(_0x51a2cb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x301e36['value']+'\x22\x20title=\x22'+_0x301e36['title']+'\x22></span>'),_0x51a2cb;}function nn(_0x43c714){const _0xf2ca03=document['createElement']('span');return _0xf2ca03['innerText']=_0x43c714,_0xf2ca03['innerHTML'];}function Zt(_0x200938){return _0x200938['sort']((_0x258b87,_0x106676)=>'deletion'==_0x258b87['type']&&'deletion'!=_0x106676['type']?-0x1:'deletion'!=_0x258b87['type']&&'deletion'==_0x106676['type']?0x1:0x0);}function to(_0x28833c,_0x321668){let _0x50e9f2,_0x3197e8=0x0;const _0x408c2f=[],_0x2e18ec=_0x321668['schema'];for(;_0x3197e8<_0x28833c['length'];){const _0x2b5506=_0x28833c[_0x3197e8],_0x39018b=_0x28833c[_0x3197e8+0x1];_0x50e9f2||(_0x50e9f2=_0x321668['createPositionBefore'](_0x2b5506)),on(_0x321668,_0x2b5506,_0x39018b)||(_0x408c2f['push'](_0x321668['createRange'](_0x50e9f2,_0x2e18ec['isObject'](_0x2b5506)?_0x321668['createPositionAfter'](_0x2b5506):_0x321668['createPositionAt'](_0x2b5506,'end'))),_0x50e9f2=null),_0x3197e8++;}return _0x408c2f;}function on(_0x111d5c,_0x591c24,_0x48ed6d){if(!_0x48ed6d)return!0x1;const _0x1a7572=_0x111d5c['createPositionAfter'](_0x591c24),_0x27a060=_0x111d5c['createPositionBefore'](_0x48ed6d);return _0x1a7572['isTouching'](_0x27a060);}function ts(_0x3e5f91,_0xed1ffe,_0x26d313){for(;_0x26d313['length'];){const _0x308249=_0x26d313['splice'](0x0,0x64);_0x3e5f91['change'](()=>{for(const _0x126263 of _0x308249)_0x126263['isInContent']&&_0xed1ffe['execute'](_0x126263['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x3050bc,_0x5f105b,_0x18f46b){super(_0x3050bc),this['_command']=_0x5f105b,this['_suggestions']=_0x18f46b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3d6f0a=Array['from'](this['_suggestions']['values']())['some'](_0x230b57=>_0x230b57['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3d6f0a;}['execute'](){const _0x32ba6a=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x4c841f of _0x32ba6a){const _0x13ac27=_0x4c841f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x13ac27))return;}ts(this['editor']['model'],this['_command'],_0x32ba6a);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x9baa9c,_0x51771f,_0x40dd6d){super(_0x9baa9c),this['_command']=_0x51771f,this['_suggestions']=_0x40dd6d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1046ea=this['editor']['model']['document']['selection'],_0x55383d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x24b7fc,_0x573236){const _0x425de1=Array['from'](_0x24b7fc['getRanges']()),_0x823350=new Set();for(const _0x2d77fe of _0x573236)if(_0x2d77fe['isInContent']){for(const _0x4837a2 of _0x425de1)for(const _0x3e7eae of _0x2d77fe['getRanges']())(_0x4837a2['isIntersecting'](_0x3e7eae)||_0x24b7fc['isCollapsed']&&!_0x2d77fe['isMultiRange']&&_0x2d77fe['next']&&_0x3e7eae['end']['isTouching'](_0x4837a2['start']))&&_0x823350['add'](_0x2d77fe);}return _0x823350;}(_0x1046ea,_0x55383d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xd18769=Zt(Array['from'](this['_selectedSuggestions']));for(const _0xad8982 of _0xd18769){const _0x3a4e0b=_0xad8982['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3a4e0b))return;}ts(this['editor']['model'],this['_command'],_0xd18769);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x2b64b8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x186143,_0x365588){super(),this['id']=_0x365588['id'],this['type']=_0x365588['type'],this['subType']=_0x365588['subType']||null,this['author']=_0x365588['author'],this['creator']=_0x365588['creator']||_0x365588['author'],this['isExternal']=Boolean(_0x365588['attributes']&&_0x365588['attributes']['@external']),this['data']=null,this['_model']=_0x186143,this['_onAccept']=_0x365588['onAccept'],this['_onDiscard']=_0x365588['onDiscard'],this['_onAttributesChange']=_0x365588['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x365588['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 _0x546970=this;for(;_0x546970['previous'];)_0x546970=_0x546970['previous'];return _0x546970;}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'](_0x19891a){this['_markerNames']['add'](_0x19891a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x16771b=>this['_model']['markers']['get'](_0x16771b))['filter'](_0x47a574=>_0x47a574);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x36ff88=>{for(const _0x129af4 of this['getMarkers']())_0x36ff88['removeMarker'](_0x129af4);}),this['_markerNames']['clear']();}['removeMarker'](_0x482b96){this['_model']['change'](_0x542209=>{_0x542209['removeMarker'](_0x482b96);}),this['_markerNames']['delete'](_0x482b96);}['addRange'](_0x1513ee){const _0x43dd5b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x43dd5b),this['_model']['change'](_0x4427a4=>{_0x4427a4['addMarker'](_0x43dd5b,{'range':_0x1513ee,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1dfdda){for(const _0x364746 of this['getRanges']())if(_0x364746['isIntersecting'](_0x1dfdda))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3d4c7b=>_0x3d4c7b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3d5b47,_0x4e7c9e)=>[..._0x3d5b47,..._0x4e7c9e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5832a8=this['getRanges']();if(0x1!=_0x5832a8['length'])return null;const _0x1502a1=_0x5832a8[0x0],_0xde0158=_0x1502a1['start']['nodeAfter'],_0xd2b8b7=_0x1502a1['end']['nodeBefore'];return _0xde0158 instanceof _0x42c82f?_0xde0158!=_0xd2b8b7?null:_0xde0158: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 _0x1a198c=[];let _0x44d762=this['head'];for(;_0x44d762;)_0x1a198c['push'](_0x44d762),_0x44d762=_0x44d762['next'];return _0x1a198c;}['setAttribute'](_0x3a16fa,_0x2eb2de){const _0x1efa36=_0x10109f(this['attributes']);_0x48f79b(_0x1efa36,_0x3a16fa,_0x2eb2de),_0x28ebbc(_0x1efa36,this['attributes'])||(this['attributes']=_0x1efa36,this['_onAttributesChange'](_0x1efa36));}['removeAttribute'](_0x484868){const _0x3c2483=_0x10109f(this['attributes']);_0x315694(_0x3c2483,_0x484868),_0x28ebbc(_0x3c2483,this['attributes'])||(this['attributes']=_0x3c2483,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 _0x55f348()['substr'](0x1,0x5);}}function o(_0xe17e41,_0x700b1b,_0x2e4510){const _0x38cdce=_0xe17e41['t'],t=_0xe17e41['t'];switch(_0x700b1b){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',_0x2e4510);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2e4510);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2e4510);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2e4510);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2e4510);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',_0x2e4510);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2e4510);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',_0x2e4510);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2e4510);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2e4510);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2e4510);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2e4510);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2e4510);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2e4510);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2e4510);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2e4510);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2e4510);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2e4510);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2e4510);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2e4510);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2e4510);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2e4510);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2e4510);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2e4510);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'},_0x2e4510);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2e4510);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2e4510);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2e4510);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2e4510);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2e4510);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'},_0x2e4510);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2e4510);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2e4510);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2e4510);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2e4510);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'},_0x2e4510);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2e4510);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'},_0x2e4510);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'},_0x2e4510);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2e4510);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'},_0x2e4510);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2e4510);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'},_0x2e4510);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2e4510);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2e4510);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'},_0x2e4510);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2e4510);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 _0x38cdce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2e4510);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x38cdce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2e4510);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2e4510);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'},_0x2e4510);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'},_0x2e4510);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'},_0x2e4510);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x700b1b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3b7ab3,_0x226bf6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3b7ab3,this['_locale']=_0x226bf6;}['getDescriptions'](_0x276400){const _0x3cec17=[],_0x4f2018=new Set(),_0xbf7f24=new Set();for(let _0xb87ac0=0x0;_0xb87ac0<_0x276400['length'];_0xb87ac0++){const _0x2ca402=_0x276400[_0xb87ac0];if(!_0x2ca402['isInContent'])continue;const _0xf9f32d=this['_handleCustomCallbackDescription'](_0x2ca402);if(_0xf9f32d){if(null!=_0x2ca402['subType']){if(_0x4f2018['has'](_0x2ca402['subType']))continue;_0x4f2018['add'](_0x2ca402['subType']);}_0x3cec17['push'](_0xf9f32d);}else{if('attribute'!=_0x2ca402['type'])'insertion'!=_0x2ca402['type']&&'deletion'!=_0x2ca402['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3cec17,_0x2ca402,_0x276400[_0xb87ac0+0x1]);else{const _0x3a99e5=_0x2ca402['data']['key'];if(_0xbf7f24['has'](_0x3a99e5))continue;_0xbf7f24['add'](_0x2ca402['data']['key']),_0x3a99e5==m?this['_handleRenameSuggestionDescription'](_0x3cec17,_0x2ca402):this['_handleAttributeSuggestionDescription'](_0x3cec17,_0x2ca402);}}}return this['_resolveDescriptionItems'](_0x3cec17);}['registerDescriptionCallback'](_0x25c238){this['_customCallbacks']['push'](_0x25c238);}['registerElementLabel'](_0x316381,_0x28367e,_0x54a74c=_0x56db26['normal']){'function'==typeof _0x316381?_0x1d87c2(this['_itemLabelsCallbacks'],{'matchingCallback':_0x316381,'label':_0x28367e,'priority':_0x54a74c}):this['_itemLabels']['set'](_0x316381,_0x28367e);}['registerAttributeLabel'](_0x7dbb03,_0xc6c838){this['_attributeLabels']['set'](_0x7dbb03,_0xc6c838);}['getItemLabel'](_0x10e5c5,_0x570c13=0x1){let _0x18c6cf;for(const _0x39e9dc of this['_itemLabelsCallbacks'])if(_0x39e9dc['matchingCallback'](_0x10e5c5)){_0x18c6cf=_0x39e9dc['label'];break;}return _0x18c6cf||(_0x18c6cf=this['_itemLabels']['get'](_0x10e5c5['name'])),_0x18c6cf?_0x18c6cf(_0x570c13):0x1!==_0x570c13?_0x570c13+'\x20'+_0x10e5c5['name']+'s':''+_0x10e5c5['name'];}['_addDescriptionItems'](_0x71971f,_0x327b42){const _0x385614=_0x327b42['getFirstRange']()['getWalker'](),_0x496066='insertion'==_0x327b42['type']?'add':'remove';for(const _0x1812ed of _0x385614){const _0x28ee84=_0x1812ed['item'],_0x5b1d5f=_0x71971f[_0x71971f['length']-0x1];if(_0x28ee84['is']('$textProxy'))_0x5b1d5f&&_0x5b1d5f['type']['indexOf']('Container')>-0x1&&_0x71971f['pop'](),_0x5b1d5f&&'text'==_0x5b1d5f['type']?_0x5b1d5f[_0x496066]+=_0x28ee84['data']:_0x71971f['push']({'type':'text','add':'add'==_0x496066?_0x28ee84['data']:'','remove':'remove'==_0x496066?_0x28ee84['data']:''});else{if(this['_schema']['isObject'](_0x28ee84)){const _0x14105c=_0x28ee84;if(_0x5b1d5f&&_0x5b1d5f['type']['indexOf']('Container')>-0x1&&_0x71971f['pop'](),'elementEnd'==_0x1812ed['type'])continue;_0x5b1d5f&&_0x5b1d5f['type']==_0x496066+'Object'&&_0x5b1d5f['element']['name']==_0x14105c['name']?_0x5b1d5f['quantity']++:_0x71971f['push']({'type':_0x496066+'Object','element':_0x14105c,'quantity':0x1}),_0x385614['skip'](_0x423b1d=>!('elementEnd'==_0x423b1d['type']&&_0x423b1d['item']==_0x28ee84));}else{if(this['_schema']['checkChild'](_0x28ee84,'$text')||_0x28ee84['is']('element','softBreak')){const _0x592fed=_0x28ee84;if('add'==_0x496066&&'elementStart'==_0x1812ed['type']||'remove'==_0x496066&&'elementEnd'==_0x1812ed['type'])continue;if(_0x5b1d5f&&-0x1==_0x5b1d5f['type']['indexOf']('Container')){'text'==_0x5b1d5f['type']&&(_0x5b1d5f[_0x496066]+='\x0a');continue;}let _0x2e5766;if(_0x2e5766='add'==_0x496066?_0x592fed['nextSibling']&&!this['_schema']['isObject'](_0x592fed['nextSibling'])?_0x592fed['nextSibling']:null:_0x592fed['previousSibling']&&!this['_schema']['isObject'](_0x592fed['previousSibling'])?_0x592fed['previousSibling']:null,_0x592fed['isEmpty']||_0x2e5766&&_0x2e5766['isEmpty']){const _0x3003e7=_0x2e5766&&_0x2e5766['isEmpty']?_0x2e5766:_0x592fed;_0x5b1d5f&&_0x5b1d5f['type']==_0x496066+'EmptyContainer'&&_0x5b1d5f['element']['name']==_0x3003e7['name']?_0x5b1d5f['quantity']++:_0x71971f['push']({'type':_0x496066+'EmptyContainer','element':_0x3003e7,'quantity':0x1});}else _0x71971f['push']({'type':_0x496066+'Container','element':_0x592fed});}}}}}['_resolveDescriptionItems'](_0x57d229){const _0x272e99=this['_locale'],_0x4546c7=[],_0x13f304=[],_0x5f032e=[];for(const _0xc8ebda of _0x57d229)switch(_0xc8ebda['type']){case'text':if(_0xc8ebda['add']=_0xc8ebda['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xc8ebda['remove']=_0xc8ebda['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xc8ebda['add']&&''!=_0xc8ebda['remove']){_0x4546c7['push']({'type':'replace','content':o(_0x272e99,'REPLACE_TEXT',['\x22'+_0xc8ebda['remove']+'\x22','\x22'+_0xc8ebda['add']+'\x22'])});continue;}if(null!=_0xc8ebda['add']['match'](/^ +$/)){_0x4546c7['push']({'type':'insertion','content':o(_0x272e99,'*Insert:*\x20%0',o(_0x272e99,'ELEMENT_SPACE',_0xc8ebda['add']['length']))});continue;}if(null!=_0xc8ebda['remove']['match'](/^ +$/)){_0x4546c7['push']({'type':'deletion','content':o(_0x272e99,'*Remove:*\x20%0',o(_0x272e99,'ELEMENT_SPACE',_0xc8ebda['remove']['length']))});continue;}if(''!=_0xc8ebda['add']){_0x4546c7['push']({'type':'insertion','content':o(_0x272e99,'*Insert:*\x20%0','\x22'+_0xc8ebda['add']+'\x22')});continue;}_0x4546c7['push']({'type':'deletion','content':o(_0x272e99,'*Remove:*\x20%0','\x22'+_0xc8ebda['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4546c7['push']({'type':'insertion','content':o(_0x272e99,'*Insert:*\x20%0',this['getItemLabel'](_0xc8ebda['element'],_0xc8ebda['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4546c7['push']({'type':'deletion','content':o(_0x272e99,'*Remove:*\x20%0',this['getItemLabel'](_0xc8ebda['element'],_0xc8ebda['quantity']))});continue;case'addContainer':_0x4546c7['push']({'type':'insertion','content':o(_0x272e99,'*Split:*\x20%0',this['getItemLabel'](_0xc8ebda['element'],_0xc8ebda['quantity']))});continue;case'removeContainer':_0x4546c7['push']({'type':'deletion','content':o(_0x272e99,'*Merge:*\x20%0',this['getItemLabel'](_0xc8ebda['element'],_0xc8ebda['quantity']))});continue;case'addFormat':_0x13f304['push'](_0xc8ebda['key']);continue;case'removeFormat':_0x5f032e['push'](_0xc8ebda['key']);continue;default:_0x4546c7['push'](_0xc8ebda);}if(_0x13f304['length']){const _0x514be7=_0x13f304['map'](_0x539ee3=>this['_attributeLabels']['has'](_0x539ee3)?this['_attributeLabels']['get'](_0x539ee3):_0x539ee3)['join'](',\x20');_0x4546c7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x514be7)});}if(_0x5f032e['length']){const _0x410d13=_0x5f032e['map'](_0x422795=>this['_attributeLabels']['has'](_0x422795)?this['_attributeLabels']['get'](_0x422795):_0x422795)['join'](',\x20');_0x4546c7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x410d13)});}return _0x4546c7;}['_handleCustomCallbackDescription'](_0x45d36f){for(const _0x2df485 of this['_customCallbacks']){const _0x11740d=_0x2df485(_0x45d36f);if(_0x11740d&&'type'in _0x11740d)return _0x11740d;}}['_handleAttributeSuggestionDescription'](_0x10e9b7,_0x3ff22b){const _0x46dacd=_0x3ff22b['data'],_0x2d8db7=void 0x0===_0x46dacd['newValue']?'removeFormat':'addFormat';_0x10e9b7['push']({'type':_0x2d8db7,'key':_0x46dacd['key']});}['_handleRenameSuggestionDescription'](_0x2a7852,_0x1dd308){_0x2a7852['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1dd308['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x510107,_0x30c1f8,_0x499cf9){if(this['_addDescriptionItems'](_0x510107,_0x30c1f8),_0x499cf9&&_0x499cf9['getFirstRange']()&&!_0x30c1f8['getFirstRange']()['end']['isEqual'](_0x499cf9['getFirstRange']()['start'])){const _0x3c1a3c=_0x510107[_0x510107['length']-0x1],_0x47fbc2='insertion'==_0x30c1f8['type']?'add':'remove';_0x3c1a3c&&'text'==_0x3c1a3c['type']&&(_0x3c1a3c[_0x47fbc2]+='\x0a');}}}class U extends _0x42796e{['afterInit'](){const _0x811053=this['editor'],_0x53ae4c=_0x811053['plugins']['get']('TrackChangesEditing');_0x811053['commands']['get']('showAIAssistant')&&_0x53ae4c['enableCommand']('showAIAssistant');}}class V extends _0x42796e{['afterInit'](){const _0x4f94ea=this['editor'],_0x596178=_0x4f94ea['locale'];if(!_0x4f94ea['plugins']['has']('AlignmentEditing'))return;const _0x1686a5=_0x4f94ea['plugins']['get']('TrackChangesEditing');_0x1686a5['enableDefaultAttributesIntegration']('alignment'),_0x1686a5['registerBlockAttribute']('alignment'),_0x1686a5['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x596178,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3527a8=this['editor'],_0x16de92=_0x3527a8['locale'];_0x3527a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fabf9=>{if('formatBlock'!=_0x4fabf9['type'])return;const {data:_0x44e484}=_0x4fabf9;if(_0x44e484&&'alignment'==_0x44e484['commandName']){const _0x528572=_0x44e484['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x16de92,'*Format:*\x20%0',function(_0x5289c5){switch(_0x5289c5){case'left':return o(_0x16de92,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x16de92,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x16de92,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x16de92,'FORMAT_JUSTIFY_TEXT');}}(_0x528572))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x42796e{['afterInit'](){const _0x4f9f29=this['editor'],_0x58ba6e=_0x4f9f29['plugins']['get']('TrackChangesEditing'),_0x7aa4dc=_0x4f9f29['locale'];for(const _0xd90341 of ti){if(!_0x4f9f29['plugins']['has'](_0xd90341))continue;const _0x556909=_0xd90341['slice'](0x0,-0x7)['toLowerCase'](),_0x2660e7='FORMAT_'+_0x556909['toUpperCase']();_0x58ba6e['enableDefaultAttributesIntegration'](_0x556909),_0x58ba6e['registerInlineAttribute'](_0x556909),_0x58ba6e['descriptionFactory']['registerAttributeLabel'](_0x556909,o(_0x7aa4dc,_0x2660e7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a63a6=this['editor'],_0x1967fd=_0x4a63a6['locale'],_0x4430a9=_0x4a63a6['plugins']['get']('TrackChangesEditing');function _0x43e0c7(_0x1816a9,_0x3f5b1e){_0x4430a9['descriptionFactory']['registerDescriptionCallback'](_0x27350f=>{if('formatInline'!=_0x27350f['type'])return;const {data:_0x5e0402}=_0x27350f;return _0x5e0402&&_0x5e0402['commandName']===_0x1816a9?_0x5e0402['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1967fd,'*Format:*\x20%0',_0x3f5b1e)}:{'type':'format','content':o(_0x1967fd,'*Remove\x20format:*\x20%0',_0x3f5b1e)}:void 0x0;});}_0x43e0c7('bold',o(_0x1967fd,'FORMAT_BOLD')),_0x43e0c7('italic',o(_0x1967fd,'FORMAT_ITALIC')),_0x43e0c7('underline',o(_0x1967fd,'FORMAT_UNDERLINE')),_0x43e0c7('code',o(_0x1967fd,'FORMAT_CODE')),_0x43e0c7('strikethrough',o(_0x1967fd,'FORMAT_STRIKETHROUGH')),_0x43e0c7('subscript',o(_0x1967fd,'FORMAT_SUBSCRIPT')),_0x43e0c7('superscript',o(_0x1967fd,'FORMAT_SUPERSCRIPT'));}}class F extends _0x42796e{['afterInit'](){const _0x3cc454=this['editor'],_0x100d26=_0x3cc454['locale'];if(!_0x3cc454['plugins']['has']('BlockQuoteEditing'))return;const _0x4f0d02=_0x3cc454['plugins']['get']('TrackChangesEditing'),_0x39bf1a=this['editor']['commands']['get']('blockQuote');_0x4f0d02['enableCommand']('blockQuote',(_0x378efc,_0x3d9933={})=>{const _0x4c95f8=this['editor']['model']['document']['selection'],_0x1bc4f5=_0x3d9933&&void 0x0!==_0x3d9933['forceValue']?_0x3d9933['forceValue']:!_0x39bf1a['value'];let _0x4e4d58=[];if(_0x1bc4f5){const _0x4cf58c=Array['from'](_0x4c95f8['getSelectedBlocks']())['filter'](_0xf72524=>oo(_0xf72524)||function(_0x1378b9,_0xa620e){const _0x2c4d53=_0xa620e['checkChild'](_0x1378b9['parent'],'blockQuote'),_0x5d014f=_0xa620e['checkChild'](['$root','blockQuote'],_0x1378b9);return _0x2c4d53&&_0x5d014f;}(_0xf72524,this['editor']['model']['schema']));_0x4e4d58=to(_0x4cf58c,_0x3cc454['model']);}else{const _0x39b5ba=Array['from'](_0x4c95f8['getSelectedBlocks']())['filter'](_0x34b716=>oo(_0x34b716));_0x4e4d58=to(_0x39b5ba,_0x3cc454['model']);}_0x3cc454['model']['change'](()=>{for(const _0x3b117c of _0x4e4d58)_0x4f0d02['markBlockFormat'](_0x3b117c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1bc4f5}]});});}),_0x4f0d02['descriptionFactory']['registerDescriptionCallback'](_0x4b3a87=>{const {data:_0x31996c}=_0x4b3a87;if(_0x31996c&&'blockQuote'==_0x31996c['commandName']){const _0x5f0234=o(_0x100d26,'ELEMENT_BLOCK_QUOTE');return _0x31996c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x100d26,'*Set\x20format:*\x20%0',_0x5f0234)}:{'type':'format','content':o(_0x100d26,'*Remove\x20format:*\x20%0',_0x5f0234)};}});}}function oo(_0xc8121e){return'blockQuote'==_0xc8121e['parent']['name'];}class L extends _0x42796e{['afterInit'](){const _0x4d7709=this['editor'],_0x66a264=_0x4d7709['locale'],_0x3ad83c=_0x4d7709['plugins']['get']('TrackChangesEditing');_0x4d7709['plugins']['has']('BookmarkEditing')&&(_0x3ad83c['enableCommand']('insertBookmark'),_0x3ad83c['enableDefaultAttributesIntegration']('updateBookmark'),_0x3ad83c['registerBlockAttribute']('bookmarkId'),_0x3ad83c['descriptionFactory']['registerDescriptionCallback'](_0x4d5b71=>{if('insertion'!=_0x4d5b71['type']&&'deletion'!=_0x4d5b71['type']&&'attribute'!=_0x4d5b71['type'])return;const _0x54f5b8=_0x4d5b71['getContainedElement']();if(null==_0x54f5b8)return;if(!_0x54f5b8['is']('element','bookmark'))return;const _0x18592c=_0x54f5b8['getAttribute']('bookmarkId');if('insertion'==_0x4d5b71['type'])return{'type':'insertion','content':o(_0x66a264,'*Insert:*\x20%0','\x22'+_0x18592c+'\x22\x20'+o(_0x66a264,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4d5b71['type'])return{'type':'deletion','content':o(_0x66a264,'*Remove:*\x20%0','\x22'+_0x18592c+'\x22\x20'+o(_0x66a264,'ELEMENT_BOOKMARK'))};const {data:_0x174e3a}=_0x4d5b71;if(!_0x174e3a||'bookmarkId'!=_0x174e3a['key'])return;return{'type':'format','content':o(_0x66a264,'*Set\x20bookmark:*\x20%0','\x22'+_0x174e3a['newValue']+'\x22')};}));}}class J extends _0x42796e{['afterInit'](){const _0x401091=this['editor'];_0x401091['plugins']['has']('CaseChange')&&(_0x401091['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x401091['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x401091['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x42796e{['afterInit'](){const _0x5a12aa=this['editor'];_0x5a12aa['commands']['get']('ckbox')&&_0x5a12aa['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x42796e{['afterInit'](){const _0x4dbdb7=this['editor'];if(!_0x4dbdb7['plugins']['has']('CodeBlock'))return;const _0x42ccdb=_0x4dbdb7['plugins']['get']('TrackChangesEditing'),_0x569fd2=_0x4dbdb7['locale'],_0x45c7ad=_0x4dbdb7['config']['get']('codeBlock')['languages'],_0xc73a40=_0x4dbdb7['commands']['get']('codeBlock');_0x42ccdb['enableCommand']('indentCodeBlock'),_0x42ccdb['enableCommand']('outdentCodeBlock'),_0x42ccdb['enableCommand']('codeBlock',(_0x4d7a29,_0x5bc2f2={})=>{const _0x209cff=_0x4dbdb7['model'],_0x51b3cd=_0x4dbdb7['model']['document']['selection'],_0x44f052=_0x5bc2f2&&void 0x0!==_0x5bc2f2['forceValue']?_0x5bc2f2['forceValue']:!_0xc73a40['value'];let _0x426850;_0x5bc2f2['language']||(_0x5bc2f2['language']=_0x45c7ad[0x0]['language']),_0x426850=_0x44f052?Array['from'](_0x51b3cd['getSelectedBlocks']())['filter'](_0x5e5190=>eo(_0x5e5190)||function(_0x5d898b,_0x176884){if(_0x5d898b['is']('rootElement')||_0x176884['isLimit'](_0x5d898b))return!0x1;return _0x176884['checkChild'](_0x5d898b['parent'],'codeBlock');}(_0x5e5190,_0x209cff['schema'])):Array['from'](_0x51b3cd['getSelectedBlocks']())['filter'](_0x3bc34b=>eo(_0x3bc34b));const _0x5db165=to(_0x426850,_0x209cff);_0x209cff['change'](()=>{for(const _0x3fed82 of _0x5db165)_0x42ccdb['markBlockFormat'](_0x3fed82,{'commandName':'codeBlock','commandParams':[{..._0x5bc2f2,'forceValue':_0x44f052}],'formatGroupId':'blockName'});});}),(_0x42ccdb['descriptionFactory']['registerElementLabel']('codeBlock',_0x1504ce=>o(_0x569fd2,'ELEMENT_CODE_BLOCK',_0x1504ce)),_0x42ccdb['descriptionFactory']['registerDescriptionCallback'](_0x501bfd=>{if('formatBlock'!=_0x501bfd['type'])return;const _0x298587=_0x569fd2['t'],{data:_0x1746c9}=_0x501bfd;if(!_0x1746c9||'codeBlock'!=_0x1746c9['commandName'])return;const _0x4f4749=_0x1746c9['commandParams'][0x0]['language'],_0xa65a4=_0x298587(_0x45c7ad['find'](_0x21241b=>_0x21241b['language']===_0x4f4749)['label'])['toLowerCase']();return _0x1746c9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x569fd2,'*Set\x20format:*\x20%0',o(_0x569fd2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xa65a4+')')}:{'type':'format','content':o(_0x569fd2,'*Remove\x20format:*\x20%0',o(_0x569fd2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x228fbb){return'codeBlock'==_0x228fbb['name'];}class z extends _0x42796e{['afterInit'](){const _0xce7bde=this['editor'];if(!_0xce7bde['plugins']['has']('CommentsEditing'))return;_0xce7bde['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x14ed32,_0x51fdde,_0x3b79b1){const _0x7f0728=[];for(const _0x243d41 of _0x51fdde['getItems']())_0x243d41['hasAttribute'](_0x14ed32)&&_0x7f0728['push'](_0x3b79b1['createRangeOn'](_0x243d41));return _0x7f0728;}function De(_0xc66df5,_0x5c2275,{showActiveMarker:_0xd4b2f8=!0x0}={}){const _0x15ee32=_0xc66df5['plugins']['get']('TrackChangesEditing');return(_0x51729c,_0x13a32b,_0x2a6964)=>{if(!_0x2a6964['consumable']['test'](_0x13a32b['markerRange'],_0x51729c['name']))return;const _0x49ec45=_0x13a32b['markerRange']['getWalker'](),_0x9e6d9c=_0x13a32b['markerRange']['start'],_0x28e10b=_0xc66df5['model']['schema'];let _0x51125f=null,_0x4fecce=null,_0x460105=!0x1,_0x3f8b82=!0x1;for(const _0x2024db of _0x49ec45){const _0x117e3c=_0x2024db['item'];_0x460105=_0x460105||_0x28e10b['isContent'](_0x117e3c);const _0x1c0752=_0x2a6964['mapper']['toViewElement'](_0x117e3c);if(_0x1c0752&&_0x1c0752['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2024db['type']&&(_0x28e10b['isBlock'](_0x117e3c)&&!_0x28e10b['isLimit'](_0x117e3c)&&(_0x117e3c['nextSibling']||_0x9e6d9c['isAtEnd']?_0x51125f&&_0x51125f['parent']==_0x117e3c||(_0x51125f=_0x117e3c,_0x514b06(_0x2024db['previousPosition']),_0x3f8b82=!0x0):_0x4fecce=_0x4fecce||_0x2024db['previousPosition']));}function _0x514b06(_0x48eb71){const {authorId:_0x20f49a}=_0x15ee32['_splitMarkerName'](_0x13a32b['markerName']),_0x4ec1ac=_0x2a6964['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c2275,'data-author-id':_0x20f49a}),_0x1c3dbc=_0x2a6964['mapper']['toViewPosition'](_0x48eb71);_0xd4b2f8&&_0x15ee32['activeMarkers']['includes'](_0x13a32b['markerName'])&&_0x2a6964['writer']['addClass']('ck-suggestion-marker--active',_0x4ec1ac),_0x2a6964['writer']['insert'](_0x1c3dbc,_0x4ec1ac),_0x2a6964['mapper']['bindElementToMarker'](_0x4ec1ac,_0x13a32b['markerName']);}_0x460105||_0x3f8b82||!_0x4fecce||_0x514b06(_0x4fecce);};}class K extends _0x42796e{static get['requires'](){return[_0x3ed1e7];}['init'](){const _0x3b4658=this['editor'],_0x29cbd7=_0x3b4658['plugins']['get']('TrackChangesEditing');_0x29cbd7['enableCommand']('delete');const _0x56d770=_0x3b4658['commands']['get']('deleteForward');_0x29cbd7['enableCommand']('deleteForward',(_0x21a8a0,_0x189c25={})=>{const _0x2ba4e7=_0x3b4658['model']['createSelection'](_0x3b4658['model']['document']['selection']);_0x2ba4e7['isCollapsed']&&_0x3b4658['model']['modifySelection'](_0x2ba4e7,{'direction':'forward','unit':_0x189c25['unit']});const _0x33bf39=_0x2ba4e7['getFirstRange'](),_0x527372=_0x2eb8ca['fromRange'](_0x33bf39);let _0x10cba8;_0x21a8a0(_0x189c25),_0x10cba8='$graveyard'==_0x527372['root']['rootName']?_0x3b4658['model']['createRange'](_0x33bf39['start']):_0x3b4658['model']['createRange'](_0x527372['start'],_0x527372['end']),_0x527372['detach'](),_0x3b4658['model']['enqueueChange'](_0x56d770['buffer']['batch'],_0x5c1e57=>{_0x56d770['buffer']['lock'](),_0x5c1e57['setSelection'](_0x5c1e57['createRange'](_0x10cba8['end'])),_0x56d770['buffer']['unlock']();});}),_0x3b4658['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x3b4658,'merge'),{'priority':'high'}),_0x3b4658['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x31c290,_0x88da12,_0x5ba7c4)=>{_0x5ba7c4['options']['showSuggestionHighlights']&&De(_0x3b4658,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x31c290,_0x88da12,_0x5ba7c4);},{'priority':'high'}),_0x3b4658['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x336036,_0x579686,_0x3b6673)=>{const _0x248196=_0x3b6673['mapper']['markerNameToElements'](_0x579686['markerName']);if(_0x248196){for(const _0x50e125 of _0x248196)_0x50e125['is']('uiElement')&&(_0x3b6673['mapper']['unbindElementFromMarkerName'](_0x50e125,_0x579686['markerName']),_0x3b6673['writer']['remove'](_0x50e125));}},{'priority':'high'});}}class W extends _0x42796e{['afterInit'](){const _0x12d1a2=this['editor'];if(!_0x12d1a2['plugins']['has']('ListEditing'))return;const _0x2d77d8=_0x12d1a2['locale'],_0x574337=_0x12d1a2['plugins']['get']('TrackChangesEditing'),_0x6e2367=_0x12d1a2['plugins']['has']('TodoListEditing'),_0x2402fe=!!_0x12d1a2['config']['get']('list.multiBlock');function _0x31eba7(_0x19cb14){return{'type':'format','content':''+o(_0x2d77d8,'*Set\x20format:*\x20%0',_0x19cb14)};}function _0x3bbf00(_0x3d5b64){return{'type':'format','content':''+o(_0x2d77d8,'*Remove\x20format:*\x20%0',_0x3d5b64)};}_0x574337['enableDefaultAttributesIntegration']('numberedList'),_0x574337['enableDefaultAttributesIntegration']('bulletedList'),_0x574337['enableDefaultAttributesIntegration']('customNumberedList'),_0x574337['enableDefaultAttributesIntegration']('customBulletedList'),_0x574337['enableDefaultAttributesIntegration']('indentList'),_0x574337['enableDefaultAttributesIntegration']('outdentList'),_0x574337['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x574337['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x574337['registerBlockAttribute']('listItemId'),_0x574337['registerBlockAttribute']('listType'),_0x574337['registerBlockAttribute']('listIndent'),_0x2402fe&&(_0x574337['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x574337['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x6e2367&&(_0x574337['enableDefaultAttributesIntegration']('todoList'),_0x574337['enableDefaultAttributesIntegration']('checkTodoList'),_0x574337['registerBlockAttribute']('todoListChecked'),_0x574337['descriptionFactory']['registerDescriptionCallback'](_0x43bcde=>{const {data:_0x382a4e}=_0x43bcde;if(_0x382a4e&&'todoListChecked'==_0x382a4e['key'])return{'type':'format','content':_0x382a4e['newValue']?o(_0x2d77d8,'*Check\x20item*'):o(_0x2d77d8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4a065d=>{if(_0x4a065d['batch']['isUndo'])return!0x1;let _0x2123d8=!0x1;const _0x35ad27=_0x574337['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2deead=>'todoListChecked'===_0x574337['_getAttributeKey'](_0x2deead));for(const _0x3e6bc5 of _0x35ad27){'todo'!=_0x3e6bc5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x574337['_findSuggestions'](_0x3e6bc5['getFirstRange'](),'attribute')['find'](_0x1756a3=>'listType'===_0x574337['_getAttributeKey'](_0x1756a3['suggestion']))||(_0x4a065d['removeMarker'](_0x3e6bc5['getFirstMarker']()),_0x2123d8=!0x0));}return _0x2123d8;})),_0x574337['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2d77d8,'FORMAT_INDENT'));const _0x1d68ea={'type':'format','content':''};_0x574337['descriptionFactory']['registerDescriptionCallback'](_0x528c55=>{const {data:_0x2008b2}=_0x528c55;if(!_0x2008b2||'listType'!=_0x2008b2['key'])return;let _0x430ae0=_0x528c55['head'];for(;_0x430ae0;){if(_0x430ae0['data']&&(('listStyle'==_0x430ae0['data']['key']||'listMarkerStyle'==_0x430ae0['data']['key'])&&(_0x430ae0['data']['newValue']&&'default'!=_0x430ae0['data']['newValue']||'default'!=_0x430ae0['data']['oldValue']&&!_0x2008b2['newValue'])||!_0x2402fe&&_0x430ae0['data']['key']==m))return _0x1d68ea;_0x430ae0=_0x430ae0['next'];}if(null==_0x2008b2['newValue'])switch(_0x2008b2['oldValue']){case'bulleted':return _0x3bbf00(o(_0x2d77d8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3bbf00(o(_0x2d77d8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3bbf00(o(_0x2d77d8,'ELEMENT_TODO_LIST'));}switch(_0x2008b2['newValue']){case'bulleted':return _0x31eba7(o(_0x2d77d8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31eba7(o(_0x2d77d8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31eba7(o(_0x2d77d8,'ELEMENT_TODO_LIST'));}}),_0x574337['descriptionFactory']['registerDescriptionCallback'](_0x3c696a=>{const {data:_0x419599}=_0x3c696a;if(_0x419599&&'listIndent'==_0x419599['key'])return null==_0x419599['newValue']||null==_0x419599['oldValue']&&0x0==_0x419599['newValue']?_0x1d68ea:void 0x0;}),_0x574337['descriptionFactory']['registerDescriptionCallback'](_0x59c808=>{if('attribute'!=_0x59c808['type'])return;const {data:_0xdb7011}=_0x59c808;if(!_0xdb7011||'listItemId'!=_0xdb7011['key'])return;const _0x553c0e=Te(_0x59c808);return'newValue'==_0x553c0e?{'type':'format','content':o(_0x2d77d8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x553c0e?{'type':'format','content':o(_0x2d77d8,'*Split:*\x20list\x20item')}:_0x1d68ea;}),_0x12d1a2['model']['document']['registerPostFixer'](_0x2aa4a8=>this['listItemIdFixer'](_0x2aa4a8)),_0x12d1a2['model']['document']['registerPostFixer'](_0x58f24b=>this['noTrackChangesFixer'](_0x58f24b)),_0x12d1a2['model']['document']['on']('change:data',(_0x41f104,_0x1eefaf)=>{if(_0x1eefaf['isUndo']||!_0x1eefaf['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2d265f){if(_0x2d265f['batch']['isUndo']||!_0x2d265f['batch']['isLocal'])return!0x1;let _0xc911b8=!0x1;const _0x21792d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26615c=>_0x26615c['data']&&'listItemId'==_0x26615c['data']['key'])['filter'](_0x4007b1=>_0x4007b1['data']['newValue']&&_0x4007b1['data']['oldValue']);for(const _0x1a8b21 of _0x21792d)Te(_0x1a8b21)||(_0x2d265f['removeMarker'](_0x1a8b21['getFirstMarker']()),_0xc911b8=!0x0);return _0xc911b8;}['noTrackChangesFixer'](_0x7b6ba2){if(_0x7b6ba2['batch']['isUndo']||!_0x7b6ba2['batch']['isLocal'])return!0x1;const _0xd70a4e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xd70a4e['trackChangesCommand']['value'])return!0x1;let _0x45f202=!0x1;const _0x1394bc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x56cbbf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1d0cf4=>'attribute'==_0x1d0cf4['type'])['filter'](_0x14e8ff=>_0x1394bc['includes'](_0x14e8ff['attributeKey']));if(0x0==_0x56cbbf['length'])return _0x45f202;for(const _0x5acf34 of _0x56cbbf){const _0x5aa230=_0xd70a4e['_findSuggestions'](_0x5acf34['range'],'attribute')['filter'](_0x48d75d=>!_0x48d75d['meta']['isNextTo'])['map'](_0x2ea5c9=>_0x2ea5c9['suggestion'])['filter'](_0x16d82b=>{const _0x5ec44a=_0xd70a4e['_getAttributeKey'](_0x16d82b);return _0x1394bc['includes'](_0x5ec44a);});if(_0x5aa230['length']){for(const _0x3c6a14 of _0x5aa230)_0x7b6ba2['removeMarker'](_0x3c6a14['getFirstMarker']());_0x45f202=!0x0;}}return _0x45f202;}['assureChains'](){const _0x188a01=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51f50c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4d10e5;const _0x49bd89=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x34c08c=>{if(_0x34c08c['data']['oldRange']||!_0x34c08c['data']['newRange'])return null;if(!_0x34c08c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3ac8ec}=_0x188a01['_splitMarkerName'](_0x34c08c['name']);if(!_0x188a01['hasSuggestion'](_0x3ac8ec))return null;const _0x57cf8f=_0x188a01['getSuggestion'](_0x3ac8ec);return _0x51f50c['includes'](_0x57cf8f['data']['key']);})['map'](_0x7284df=>{const {id:_0x481eb0}=_0x188a01['_splitMarkerName'](_0x7284df['name']),_0x10468f=_0x188a01['getSuggestion'](_0x481eb0);return _0x4d10e5=_0x10468f['attributes']['groupId'],_0x10468f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x49bd89['size'])return;const _0xfec017=_0x188a01['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15bcdb=>'attribute'==_0x15bcdb['type']&&_0x15bcdb['data']&&_0x51f50c['includes'](_0x15bcdb['data']['key'])&&_0x15bcdb['attributes']['groupId']!=_0x4d10e5)['map'](_0x5db7af=>({'listItem':_0x5db7af['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5db7af['attributes']['groupId']})),_0x2e819a=new Set();for(const {groupId:_0x4b92bc,listItem:_0x2bb9b3}of _0xfec017)_0x49bd89['has'](_0x2bb9b3)&&_0x2e819a['add'](_0x4b92bc);for(const _0x12e950 of _0x188a01['getSuggestions']())_0x2e819a['has'](_0x12e950['attributes']['groupId'])&&_0x12e950['setAttribute']('groupId',_0x4d10e5);}['_supportLegacySuggestions'](){const _0x425657=this['editor'],_0x1d6a6d=_0x425657['locale'],_0x4d23fd=_0x425657['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4d23fd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x37717f,_0x16454b){const _0x44edbc=[];for(let _0x16fb91 of _0x37717f)_0x16fb91['start']['nodeAfter']===_0x16fb91['end']['parent']&&(_0x16fb91=_0x425657['model']['createRange'](_0x425657['model']['createPositionAt'](_0x16fb91['start']['nodeAfter'],0x0))),_0x44edbc['push'](_0x16fb91);_0x425657['model']['change'](_0x540009=>{const _0x140cf1=_0x425657['model']['document']['selection'],_0x453f2d=Array['from'](_0x140cf1['getRanges']())['map'](_0x1ea075=>_0x2eb8ca['fromRange'](_0x1ea075));_0x540009['setSelection'](_0x44edbc),_0x425657['commands']['get'](_0x16454b['commandName'])['refresh'](),_0x16454b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x425657['execute'](_0x16454b['commandName'],..._0x16454b['commandParams']),_0x540009['setSelection'](_0x453f2d);for(const _0x256b65 of _0x453f2d)_0x256b65['detach']();});}),_0x4d23fd['descriptionFactory']['registerElementLabel'](function(_0xab42a6){const _0x581be8=!_0x425657['model']['schema']['isObject'](_0xab42a6),_0x2aa790=_0xab42a6['previousSibling'],_0x5e5158=_0xab42a6['nextSibling'],_0x269490=_0xab42a6['getAttribute']('listItemId'),_0x22bd15=!_0x2aa790||_0x2aa790['getAttribute']('listItemId')!==_0x269490,_0x125f01=!_0x5e5158||_0x5e5158['getAttribute']('listItemId')!==_0x269490;return _0x581be8&&Boolean(_0x269490)&&_0x22bd15&&_0x125f01;},_0x326c23=>o(_0x1d6a6d,'ELEMENT_LIST_ITEM',_0x326c23));}['_registerLegacyDescription'](){const _0x16602f=this['editor'],_0x4d9fcd=_0x16602f['locale'];function _0x7be4f7(_0x284af7){const _0x57630a=_0x16602f['commands']['get']('bulletedList')['value'],_0x500815=_0x16602f['commands']['get']('numberedList')['value'];return'numberedList'===_0x284af7?_0x57630a:_0x500815;}_0x16602f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x18968e){if('formatBlock'!=_0x18968e['type'])return;const {data:_0x234e5d}=_0x18968e;if(!_0x234e5d)return;let _0x57d075,_0x15545d,_0x24d8ac,_0x20985e;switch(_0x234e5d['commandName']){case'bulletedList':_0x24d8ac=_0x234e5d['commandParams'][0x0]['forceValue'],_0x20985e=_0x7be4f7(_0x234e5d['commandName']),_0x57d075=_0x24d8ac?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20985e&&_0x16602f['config']['get']('list.multiBlock')||(_0x57d075='*Change\x20to:*\x20%0'),_0x15545d={'type':'format','content':o(_0x4d9fcd,_0x57d075,o(_0x4d9fcd,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24d8ac=_0x234e5d['commandParams'][0x0]['forceValue'],_0x20985e=_0x7be4f7(_0x234e5d['commandName']),_0x57d075=_0x24d8ac?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20985e&&_0x16602f['config']['get']('list.multiBlock')||(_0x57d075='*Change\x20to:*\x20%0'),_0x15545d={'type':'format','content':o(_0x4d9fcd,_0x57d075,o(_0x4d9fcd,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x57d075='*Indent:*\x20%0',_0x15545d={'type':'format','content':o(_0x4d9fcd,_0x57d075,o(_0x4d9fcd,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x57d075=function(_0x438dcc){const _0x55673e=_0x438dcc['getFirstRange']();let _0x9f3712=_0x55673e['start']['nodeAfter'];for(;_0x9f3712&&_0x55673e['containsItem'](_0x9f3712);){if(_0x9f3712['getAttribute']('listIndent')>0x0)return!0x1;_0x9f3712=_0x9f3712['nextSibling'];}return!0x0;}(_0x18968e)?o(_0x4d9fcd,'*Format:*\x20remove\x20from\x20%0',o(_0x4d9fcd,function(_0x550b20){return'ELEMENT_'+_0x550b20['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x18968e))):o(_0x4d9fcd,'*Outdent:*\x20%0',o(_0x4d9fcd,'ELEMENT_LIST_ITEM')),_0x15545d={'type':'format','content':_0x57d075};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x234e5d['multipleBlocks']&&(_0x57d075='*Merge:*\x20%0',_0x15545d={'type':'deletion','content':o(_0x4d9fcd,_0x57d075,o(_0x4d9fcd,'ELEMENT_LIST_ITEM'))});}return _0x15545d;});}}function Te(_0x56932a){let _0x98eff3=_0x56932a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x98eff3;){const _0x430c01=_0x98eff3['getAttribute']('listItemId');if(!_0x430c01)return!0x1;if(_0x430c01==_0x56932a['data']['newValue'])return'newValue';if(_0x430c01==_0x56932a['data']['oldValue'])return'oldValue';_0x98eff3=_0x98eff3['previousSibling'];}return!0x1;}class Se extends _0x42796e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4835ae=this['editor']['config']['get']('list.properties'),_0x1db52d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4835ae['styles']&&(_0x1db52d['enableDefaultAttributesIntegration']('listStyle'),_0x1db52d['registerBlockAttribute']('listStyle')),_0x4835ae['reversed']&&(_0x1db52d['enableDefaultAttributesIntegration']('listReversed'),_0x1db52d['registerBlockAttribute']('listReversed')),_0x4835ae['startIndex']&&(_0x1db52d['enableDefaultAttributesIntegration']('listStart'),_0x1db52d['registerBlockAttribute']('listStart'));const _0xc84912={'type':'format','content':''};_0x1db52d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2aec87=this['editor']['locale'];_0x1db52d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2aec87,'FORMAT_LIST_REVERSED')),_0x1db52d['descriptionFactory']['registerDescriptionCallback'](_0x3311b8=>{const {data:_0xde47fc}=_0x3311b8;if(_0xde47fc&&'listReversed'==_0xde47fc['key'])return null==_0xde47fc['newValue']||0x0==_0xde47fc['newValue']&&null==_0xde47fc['oldValue']?_0xc84912:void 0x0;}),_0x1db52d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2aec87,'FORMAT_LIST_START')),_0x1db52d['descriptionFactory']['registerDescriptionCallback'](_0x5cfd0b=>{const {data:_0x1a5a70}=_0x5cfd0b;if(_0x1a5a70&&'listStart'==_0x1a5a70['key'])return null==_0x1a5a70['newValue']||0x1==_0x1a5a70['newValue']&&null==_0x1a5a70['oldValue']?_0xc84912:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3f833a=>{if(_0x3f833a['batch']['isUndo'])return!0x1;let _0x3ddc7e=!0x1;const _0x841f28=_0x1db52d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d3de4=>{const _0x1ad3d1=_0x1db52d['_getAttributeKey'](_0x3d3de4);return'listStart'==_0x1ad3d1||'listReversed'==_0x1ad3d1;});for(const _0x5ede33 of _0x841f28){const _0x5adaae=_0x5ede33['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5adaae||'customNumbered'==_0x5adaae)continue;_0x1db52d['_findSuggestions'](_0x5ede33['getFirstRange'](),'attribute')['find'](_0x1a9d2a=>'listType'==_0x1db52d['_getAttributeKey'](_0x1a9d2a['suggestion']))||(_0x3f833a['removeMarker'](_0x5ede33['getFirstMarker']()),_0x3ddc7e=!0x0);}return _0x3ddc7e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x21f442){const _0x34023d=this['editor']['locale'],{data:_0x233dc9}=_0x21f442,_0x253782={'type':'format','content':''};if(!_0x233dc9||'listStyle'!=_0x233dc9['key'])return;if(!_0x233dc9['oldValue'])return'default'==_0x233dc9['newValue']?_0x253782:{'type':'format','content':''+o(_0x34023d,'*Set\x20format:*\x20%0',o(_0x34023d,this['_getTranslationKeyForListStyle'](_0x233dc9['newValue'])))};if(!_0x233dc9['newValue']){if('default'==_0x233dc9['oldValue'])return _0x253782;let _0x1d627a=_0x21f442['head'];for(;_0x1d627a;){if(_0x1d627a['data']&&'listType'==_0x1d627a['data']['key']&&_0x1d627a['data']['newValue'])return _0x253782;_0x1d627a=_0x1d627a['next'];}return{'type':'format','content':''+o(_0x34023d,'*Remove\x20format:*\x20%0',o(_0x34023d,this['_getTranslationKeyForListStyle'](_0x233dc9['oldValue'])))};}if('default'!=_0x233dc9['newValue'])return{'type':'format','content':''+o(_0x34023d,'*Set\x20format:*\x20%0',o(_0x34023d,this['_getTranslationKeyForListStyle'](_0x233dc9['newValue'])))};let _0x30c819=_0x21f442['head'];for(;_0x30c819;){if(_0x30c819['data']&&'listType'==_0x30c819['data']['key']&&_0x30c819['data']['newValue']&&_0x30c819['data']['oldValue'])return _0x253782;_0x30c819=_0x30c819['next'];}return{'type':'format','content':o(_0x34023d,'*Set\x20format:*\x20%0',o(_0x34023d,'ELEMENT_'+_0x21f442['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x9e94e2=this['editor'],_0x110447=_0x9e94e2['locale'];_0x9e94e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f7171=>{if('formatBlock'!=_0x3f7171['type'])return;const {data:_0x515846}=_0x3f7171;if(!_0x515846)return;let _0x2a4b1a,_0x3c76bd;switch(_0x515846['commandName']){case'listStyle':_0x2a4b1a='*Change\x20to:*\x20%0',_0x3c76bd={'type':'format','content':o(_0x110447,_0x2a4b1a,o(_0x110447,this['_getTranslationKeyForListStyle'](_0x515846['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2a4b1a=_0x515846['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3c76bd={'type':'format','content':o(_0x110447,_0x2a4b1a)};break;case'listStart':_0x2a4b1a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3c76bd={'type':'format','content':o(_0x110447,_0x2a4b1a,_0x515846['commandParams'][0x0]['startIndex'])};}return _0x3c76bd;});}['_getTranslationKeyForListStyle'](_0x49b60f){return'ELEMENT_'+function(_0x260f2e){if(_e['includes'](_0x260f2e))return'bulleted';if(Re['includes'](_0x260f2e))return'numbered';return null;}(_0x49b60f)['toUpperCase']()+'_LIST_'+_0x49b60f['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x42796e{['afterInit'](){const _0x3f0fcf=this['editor'];_0x3f0fcf['commands']['get']('emoji')&&_0x3f0fcf['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x42796e{static get['requires'](){return[_0x443da6];}['init'](){const _0x2489b6=this['editor'],_0x21e48d=_0x2489b6['plugins']['get']('TrackChangesEditing'),_0x24a0d6=_0x2489b6['commands']['get']('enter');_0x21e48d['enableCommand']('enter',()=>{_0x2489b6['model']['change'](_0x32753d=>{const _0xac349f=_0x2489b6['model']['document']['selection'],_0x58d7d9=_0xac349f['getFirstPosition'](),_0x428571=_0x2eb8ca['fromRange'](_0xac349f['getFirstRange']());if(_0x24a0d6['enterBlock'](_0x32753d)){const _0x42fdc1=_0x2489b6['model']['createPositionAt'](_0x58d7d9['parent']['nextSibling'],0x0),_0x5a6f71=_0x32753d['createRange'](_0x58d7d9,_0x42fdc1);_0x21e48d['markInsertion'](_0x5a6f71);}else _0x32753d['setSelection'](_0x32753d['createRange'](_0x428571['end']));_0x428571['detach'](),_0x24a0d6['fire']('afterExecute',{'writer':_0x32753d});});}),_0x2489b6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2489b6,'split'),{'priority':'high'}),_0x2489b6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x211d5a,_0x3f65cc,_0x306ae7)=>{const _0xaa143b=_0x306ae7['mapper']['markerNameToElements'](_0x3f65cc['markerName']);if(_0xaa143b){for(const _0x36e198 of _0xaa143b)_0x36e198['hasClass']('ck-suggestion-marker-split')&&(_0x306ae7['mapper']['unbindElementFromMarkerName'](_0x36e198,_0x3f65cc['markerName']),_0x306ae7['writer']['remove'](_0x36e198));}},{'priority':'high'}),_0x2489b6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xbe373d,_0x55fb89,_0x541906)=>{_0x541906['options']['showSuggestionHighlights']&&De(_0x2489b6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xbe373d,_0x55fb89,_0x541906);},{'priority':'high'});}}class Z extends _0x42796e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3194d8=this['editor']['plugins']['get']('TrackChangesEditing');_0x3194d8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3194d8['enableCommand']('findNext'),_0x3194d8['enableCommand']('findPrevious'),_0x3194d8['enableCommand']('replace'),_0x3194d8['enableCommand']('replaceAll');}['handleFindCommand'](_0x41ccc6,_0xef7ede,_0xd95322={}){const _0x4a3100=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x41ccc6(_0x24e486=>{let _0x5d2b85=('string'==typeof _0xef7ede?_0x4a3100['findByTextCallback'](_0xef7ede,_0xd95322):_0xef7ede)(_0x24e486);Array['isArray'](_0x5d2b85)&&(_0x5d2b85={'results':_0x5d2b85,'searchText':'string'==typeof _0xef7ede?_0xef7ede:''});const _0x4e02c9=_0x5d2b85['results']['filter'](_0x58cf81=>!0x1===this['_isInDeletionRange'](_0x58cf81,_0x24e486['item']));return{..._0x5d2b85,'results':_0x4e02c9};},_0xd95322);}['_isInDeletionRange'](_0x551875,_0x39fc4f){const _0x5dc9a3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x39fc4f,_0x551875['start']),this['editor']['model']['createPositionAt'](_0x39fc4f,_0x551875['end']));for(const _0x44f73d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5dc9a3['getIntersection'](_0x44f73d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x42796e{['afterInit'](){const _0x39a33e=this['editor']['locale'],_0x2a4d5c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x6f5ee,commandName:_0x1b4b85}of ro)this['editor']['plugins']['has'](_0x6f5ee)&&(_0x2a4d5c['enableDefaultAttributesIntegration'](_0x1b4b85),_0x2a4d5c['registerInlineAttribute'](_0x1b4b85));_0x2a4d5c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x39a33e,'FORMAT_FONT_SIZE')),_0x2a4d5c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x39a33e,'FORMAT_FONT_FAMILY')),_0x2a4d5c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x39a33e,'FORMAT_FONT_COLOR')),_0x2a4d5c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x39a33e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21070c=this['editor'],_0x2583eb=_0x21070c['locale'];_0x21070c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x265e9c=>{const _0x1c5a1b=_0x2583eb['t'];if('formatInline'!=_0x265e9c['type'])return;const {data:_0x1698ac}=_0x265e9c;if(null!=_0x1698ac){if('fontSize'==_0x1698ac['commandName']){const _0x558168=_0x1698ac['commandParams'][0x0]['value'];if(_0x558168){const _0x457574=_0x1c5a1b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3063d5=>_0x3063d5['model']==_0x558168)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2583eb,'*Set\x20font\x20size:*\x20%0',_0x457574)};}return{'type':'format','content':o(_0x2583eb,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1698ac['commandName']){const _0x30be94=_0x1698ac['commandParams'][0x0]['value'];return _0x30be94?{'type':'format','content':o(_0x2583eb,'*Set\x20font\x20family:*\x20%0',_0x30be94)}:{'type':'format','content':o(_0x2583eb,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1698ac['commandName']){const _0x1b99bb=_0x1698ac['commandParams'][0x0]['value'];if(_0x1b99bb){const _0x9339bd=_0x3eb2fa(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5829a7=>_0x5829a7['model']==_0x1b99bb);let _0x54d5b0=_0x1b99bb,_0x111902='';return _0x9339bd&&(_0x54d5b0=_0x9339bd['label'],_0x111902=_0x1c5a1b(_0x54d5b0)['toLowerCase']()),{'type':'format','content':o(_0x2583eb,'*Set\x20font\x20color:*\x20%0',_0x111902)['trim'](),'color':{'value':_0x1b99bb,'title':_0x111902||_0x54d5b0}};}return{'type':'format','content':o(_0x2583eb,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1698ac['commandName']){const _0xefbf75=_0x1698ac['commandParams'][0x0]['value'];if(_0xefbf75){const _0x5dfa73=_0x3eb2fa(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x505fa8=>_0x505fa8['model']==_0xefbf75);let _0x2cac3f=_0xefbf75,_0x52ec4d='';return _0x5dfa73&&(_0x2cac3f=_0x5dfa73['label'],_0x52ec4d=_0x1c5a1b(_0x2cac3f)['toLowerCase']()),{'type':'format','content':o(_0x2583eb,'*Set\x20font\x20background\x20color:*\x20%0',_0x52ec4d)['trim'](),'color':{'value':_0xefbf75,'title':_0x52ec4d||_0x2cac3f}};}return{'type':'format','content':o(_0x2583eb,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x42796e{['afterInit'](){const _0x5a5014=this['editor'],_0x3968a3=_0x5a5014['plugins']['get']('TrackChangesEditing'),_0x2d678e=_0x5a5014['commands']['get']('copyFormat'),_0x267fbb=_0x5a5014['commands']['get']('pasteFormat');_0x2d678e&&_0x267fbb&&(_0x3968a3['enableDefaultAttributesIntegration']('pasteFormat'),_0x3968a3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x69f4cd=this['editor'],_0x33bfe2=_0x69f4cd['locale'];_0x69f4cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4da859=>{if('formatBlock'!=_0x4da859['type']&&'formatInline'!=_0x4da859['type'])return;const {data:_0x54f7d1}=_0x4da859;if(_0x54f7d1&&'pasteFormat'===_0x54f7d1['commandName']){const _0x71d501=[],_0x210a8b=_0x54f7d1['commandParams'][0x0];for(const [_0xdaf09c,_0x2c64fe]of Object['entries'](_0x210a8b))_0x71d501['push'](so(_0x69f4cd,_0xdaf09c,_0x2c64fe));return _0x71d501['length']?{'type':'format','content':o(_0x33bfe2,'*Set\x20format\x20to:*\x20%0',_0x71d501['join'](',\x20'))}:{'type':'format','content':o(_0x33bfe2,'*Remove\x20all\x20formatting*')};}});}}function so(_0xbe0318,_0x437be3,_0xdd7015){const _0x422dc8=_0xbe0318['locale']['t'],_0x54e8ca=_0x437be3['split'](/(?=[A-Z])/)['join']('\x20'),_0x300301=_0x422dc8(_0x54e8ca['charAt'](0x0)['toUpperCase']()+_0x54e8ca['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xdd7015)return _0x300301;if('fontColor'===_0x437be3||'fontBackgroundColor'===_0x437be3){const _0x1a454f=_0x3eb2fa(_0xbe0318['config']['get']('fontColor.colors'))['find'](_0x2ff2eb=>_0x2ff2eb['model']==_0xdd7015);return _0x300301+'\x20('+(_0x1a454f?_0x422dc8(_0x1a454f['label'])['toLowerCase']():_0xdd7015)+')';}if('fontSize'===_0x437be3&&isNaN(parseFloat(_0xdd7015))){const _0x1e8e46=_0xbe0318['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xbe0318['config']['get']('fontSize.options'))['find'](_0x396f85=>_0x396f85['model']==_0xdd7015);return _0x300301+'\x20('+(_0x1e8e46?_0x422dc8(_0x1e8e46['title'])['toLowerCase']():_0xdd7015)+')';}return _0x300301+'\x20('+_0xdd7015+')';}class it extends _0x42796e{['_headingOptions'];['afterInit'](){const _0x3f6dc2=this['editor'];if(!_0x3f6dc2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3f6dc2['config']['get']('heading.options');const _0x5284b0=_0x3f6dc2['locale'],_0x3536e8=_0x3f6dc2['plugins']['get']('TrackChangesEditing');_0x3536e8['enableDefaultAttributesIntegration']('heading');for(const _0xb22f41 of this['_headingOptions'])'paragraph'!=_0xb22f41['model']&&_0x3536e8['descriptionFactory']['registerElementLabel'](_0xb22f41['model'],_0x298ada=>{const _0x22e6bf=this['_getHeadingLevel'](_0xb22f41['model']);return null!==_0x22e6bf?_0x5348d8(_0x298ada,_0x22e6bf):_0x3ea8c5(_0x298ada,_0xb22f41['title']);});function _0x5348d8(_0x13d494,_0x3c610e){return o(_0x5284b0,'ELEMENT_HEADING',[_0x13d494,_0x3c610e]);}function _0x3ea8c5(_0x1cdaf3,_0x5ef016){return o(_0x5284b0,'ELEMENT_HEADING_CUSTOM',[_0x1cdaf3,_0x5ef016]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b0f46=this['editor'],_0x474b0f=_0x4b0f46['locale'];function _0x579eff(_0x4059ec,_0x44abae){return o(_0x474b0f,'ELEMENT_HEADING_CUSTOM',[_0x4059ec,_0x44abae]);}_0x4b0f46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc5c34f=>{if('formatBlock'!=_0xc5c34f['type'])return;const {data:_0x33d86b}=_0xc5c34f;if(_0x33d86b&&'heading'==_0x33d86b['commandName']){const _0x47df7e=_0x33d86b['commandParams'][0x0]['value'],_0x1a1f65=this['_getHeadingLevel'](_0x47df7e);if(null!==_0x1a1f65)return{'type':'format','content':o(_0x474b0f,'*Change\x20to:*\x20%0',(_0x3c28b7=0x1,_0x3a19ce=_0x1a1f65,o(_0x474b0f,'ELEMENT_HEADING',[_0x3c28b7,_0x3a19ce])))};const _0x52209e=this['_headingOptions']['find'](_0x18aa98=>_0x18aa98['model']===_0x47df7e)['title'];return{'type':'format','content':o(_0x474b0f,'*Change\x20to:*\x20%0',_0x579eff(0x1,_0x52209e))};}var _0x3c28b7,_0x3a19ce;});}['_getHeadingLevel'](_0x53b9e3){const _0x3befce=_0x53b9e3['match'](/^heading(\d+)/);if(_0x3befce)return _0x3befce[0x1];const _0x5834d5=this['_headingOptions']?.['find'](_0x155477=>_0x155477['model']==_0x53b9e3);if(_0x5834d5&&_0x5834d5['view']){const _0x5465a1=_0x5834d5['view'],_0x1dc9ac=(_0x5465a1['name']??_0x5465a1)['match'](/^h(\d+)/);if(_0x1dc9ac)return _0x1dc9ac[0x1];}return null;}}class et extends _0x42796e{['afterInit'](){const _0x5609f2=this['editor'];if(!_0x5609f2['plugins']['has']('HighlightEditing'))return;const _0x2b9092=_0x5609f2['plugins']['get']('TrackChangesEditing'),_0x5470fd=_0x5609f2['locale'];_0x2b9092['enableDefaultAttributesIntegration']('highlight'),_0x2b9092['registerInlineAttribute']('highlight'),_0x2b9092['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5470fd,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b82eb=this['editor'],_0x38efdd=_0x2b82eb['locale'];_0x2b82eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14ab0a=>{if('formatInline'!=_0x14ab0a['type'])return;const {data:_0x2ad870}=_0x14ab0a;if(_0x2ad870&&'highlight'==_0x2ad870['commandName']){const _0x3638a5=_0x38efdd['t'],_0x5f4f90=_0x2ad870['commandParams'][0x0]['value'];if(_0x5f4f90){const _0x460120=_0x2b82eb['config']['get']('highlight.options')['find'](_0x5456ad=>_0x5456ad['model']==_0x5f4f90),_0xa00721=_0x3638a5(_0x460120['title'])['toLowerCase']();return{'type':'format','content':o(_0x38efdd,'*Set\x20highlight:*\x20%0',_0xa00721),'color':{'value':_0x460120['color'],'title':_0x460120['title']}};}return{'type':'format','content':o(_0x38efdd,'*Remove\x20highlight*',o(_0x38efdd,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x42796e{['afterInit'](){const _0x4a4d2a=this['editor'];if(!_0x4a4d2a['plugins']['has']('HorizontalLineEditing'))return;_0x4a4d2a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2d85f5=_0x4a4d2a['plugins']['get']('TrackChangesEditing'),_0x44444e=_0x4a4d2a['locale'];_0x2d85f5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4ea887=>o(_0x44444e,'ELEMENT_HORIZONTAL_LINE',_0x4ea887)),_0x4a4d2a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x56b3df,{writer:_0x152f64,options:_0x490576})=>{if(!_0x490576['showSuggestionHighlights'])return null;const _0x525801=_0x152f64['createContainerElement']('div'),_0x47388d=_0x152f64['createEmptyElement']('hr');return _0x152f64['addClass']('ck-horizontal-line',_0x525801),_0x152f64['insert'](_0x152f64['createPositionAt'](_0x525801,0x0),_0x47388d),_0x525801;},'converterPriority':'high'});}}class ot extends _0x42796e{['afterInit'](){const _0x47b790=this['editor'];if(!_0x47b790['plugins']['has']('HtmlEmbed'))return;const _0x3e5ab0=_0x47b790['plugins']['get']('TrackChangesEditing'),_0x294512=_0x47b790['locale'];_0x3e5ab0['descriptionFactory']['registerElementLabel']('rawHtml',_0xc0cc71=>o(_0x294512,'ELEMENT_HTML_EMBED',_0xc0cc71)),_0x3e5ab0['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3e5ab0['registerBlockAttribute']('value'),_0x3e5ab0['descriptionFactory']['registerDescriptionCallback'](_0x11fa6b=>{if('attribute'!=_0x11fa6b['type'])return;const {data:_0x53410e}=_0x11fa6b;if(_0x53410e&&'value'==_0x53410e['key']&&_0x11fa6b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2d400b=o(_0x294512,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x294512,'*Change\x20%0\x20content*',_0x2d400b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25ddec=this['editor'],_0x2e07a2=_0x25ddec['locale'];_0x25ddec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11c8bd=>{if('formatBlock'!=_0x11c8bd['type'])return;const {data:_0x574bb7}=_0x11c8bd;if(_0x574bb7&&'htmlEmbed'==_0x574bb7['commandName']){const _0x3598eb=o(_0x2e07a2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2e07a2,'*Change\x20%0\x20content*',_0x3598eb)};}});}}class rt extends _0x42796e{['afterInit'](){const _0x2ea631=this['editor'];if(!_0x2ea631['plugins']['has']('ImageEditing'))return;const _0xdc1963=_0x2ea631['plugins']['get']('TrackChangesEditing'),_0x452f0b=_0x2ea631['plugins']['get']('ImageUtils'),_0x190b75=_0x2ea631['locale'];_0xdc1963['enableCommand']('insertImage'),_0xdc1963['descriptionFactory']['registerElementLabel']('imageBlock',_0x4f85ca=>o(_0x190b75,'ELEMENT_IMAGE',_0x4f85ca)),_0xdc1963['descriptionFactory']['registerElementLabel']('imageInline',_0x520b64=>o(_0x190b75,'ELEMENT_INLINE_IMAGE',_0x520b64)),_0xdc1963['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x190b75,'ELEMENT_CAPTION')),_0x2ea631['plugins']['has']('ImageUploadEditing')&&_0xdc1963['enableCommand']('uploadImage'),_0x2ea631['plugins']['has']('ImageBlockEditing')&&_0x2ea631['plugins']['has']('ImageInlineEditing')&&(_0xdc1963['enableCommand']('imageTypeInline',(_0x57b767,_0x3b9767)=>{const _0x2da354=_0x452f0b['getClosestSelectedImageElement'](_0x2ea631['model']['document']['selection']);_0x2ea631['model']['change'](()=>{_0xdc1963['markBlockFormat'](_0x2da354,{'commandName':'imageTypeInline','commandParams':[_0x3b9767]},[],'convertBlockImageToInline');});}),_0xdc1963['enableCommand']('imageTypeBlock',(_0xc5ac5,_0x4e46e0)=>{_0x2ea631['model']['change'](_0x1597cf=>{let _0x5cd945=_0x452f0b['getClosestSelectedImageElement'](_0x2ea631['model']['document']['selection']),_0x2e6335=_0x1597cf['createRangeOn'](_0x5cd945);const _0xcf3bcb=_0x56f03e['fromPosition'](_0x2e6335['start'],'toPrevious'),_0x55e708=_0x56f03e['fromPosition'](_0x2e6335['end'],'toNext');_0xdc1963['forceDefaultExecution'](()=>_0xc5ac5(_0x4e46e0)),_0x5cd945=_0x452f0b['getClosestSelectedImageElement'](_0x2ea631['model']['document']['selection']),_0x2e6335=_0x1597cf['createRangeOn'](_0x5cd945);const _0x58c24c=_0x1597cf['createRange'](_0xcf3bcb,_0x55e708);_0xcf3bcb['detach'](),_0x55e708['detach'](),_0xdc1963['markBlockFormat'](_0x5cd945,{'commandName':'imageTypeInline','commandParams':[_0x4e46e0]},[],'convertInlineImageToBlock'),_0x58c24c['start']['isBefore'](_0x2e6335['start'])&&_0xdc1963['markInsertion'](_0x1597cf['createRange'](_0x58c24c['start'],_0x2e6335['start']),'convertInlineImageToBlock'),_0x2e6335['end']['isBefore'](_0x58c24c['end'])&&_0xdc1963['markInsertion'](_0x1597cf['createRange'](_0x2e6335['end'],_0x58c24c['end']),'convertInlineImageToBlock');});}),_0xdc1963['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xdc1963['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xdc1963['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xdc1963['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xdc1963['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xdc1963['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x28bd72])=>{const _0x2f7743=_0xdc1963['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x63d91e=_0x28bd72['start'],_0x582f75=_0x28bd72['end'];const _0x37a8bb=_0x2ea631['model']['schema']['getNearestSelectionRange'](_0x63d91e,'backward'),_0x146a78=_0x2ea631['model']['schema']['getNearestSelectionRange'](_0x582f75,'forward');_0x37a8bb['isCollapsed']&&(_0x63d91e=_0x37a8bb['start']),_0x146a78['isCollapsed']&&(_0x582f75=_0x146a78['end']),_0x2f7743([_0x2ea631['model']['createRange'](_0x63d91e,_0x582f75)]);}),_0xdc1963['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x15a2c8),_0xdc1963['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x15a2c8)),_0x2ea631['plugins']['has']('ImageCaptionEditing')&&(_0xdc1963['enableCommand']('toggleImageCaption',(_0xe94f07,_0x4cf2a2)=>{const _0x22102b=_0x2ea631['plugins']['get']('ImageCaptionUtils');let _0x335ea9=_0x452f0b['getClosestSelectedImageElement'](_0x2ea631['model']['document']['selection']),_0x419bdc=_0x22102b['getCaptionFromImageModelElement'](_0x335ea9);_0x2ea631['model']['change'](()=>{if(_0x419bdc)return void _0xdc1963['markDeletion'](_0x2ea631['model']['createRangeOn'](_0x419bdc));const _0x2f8479=_0x452f0b['isBlockImage'](_0x335ea9);_0xe94f07(_0x4cf2a2),_0x335ea9=_0x452f0b['getClosestSelectedImageElement'](_0x2ea631['model']['document']['selection']),_0x419bdc=_0x22102b['getCaptionFromImageModelElement'](_0x335ea9),_0xdc1963['markInsertion'](_0x2ea631['model']['createRangeOn'](_0x419bdc),_0x2f8479?null:'imageCaption');});}),_0xdc1963['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x15a2c8));const _0x25dc2c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x271a99(_0x3926d0,_0xfee631){const _0x1a732c=_0x25dc2c['findIndex'](({type:_0x54f2f7,subType:_0x9a796d})=>_0x3926d0['type']==_0x54f2f7&&_0x3926d0['subType']==_0x9a796d),_0x1f20da=_0x25dc2c['findIndex'](({type:_0x4a1df8,subType:_0x1662a4})=>_0xfee631['type']==_0x4a1df8&&_0xfee631['subType']==_0x1662a4);if(_0x1a732c<0x0||_0x1f20da<0x0)return!0x1;const _0x3a1de9=_0x3926d0['getFirstRange'](),_0x533e4d=_0xfee631['getFirstRange']();if((0x0==_0x1a732c||0x1==_0x1a732c)&&0x2==_0x1f20da&&_0x3a1de9['isIntersecting'](_0x533e4d))return!0x0;if(0x2==_0x1a732c&&0x3==_0x1f20da){const _0x2e0ac3=_0xdc1963['_findSuggestions'](_0x3a1de9,'insertion')['filter'](({suggestion:_0x3922b4,meta:_0x2e8a64})=>_0x2e8a64['isOwn']&&'convertInlineImageToBlock'==_0x3922b4['subType']);if(_0x2e0ac3['length']>0x1&&_0x533e4d['end']['isEqual'](_0x3a1de9['start']))return!0x0;if(0x1==_0x2e0ac3['length']&&(_0x3a1de9['start']['isEqual'](_0x533e4d['end'])||_0x3a1de9['end']['isEqual'](_0x533e4d['start'])))return!0x0;}if(0x3==_0x1a732c&&0x3==_0x1f20da&&_0x3a1de9['start']['isBefore'](_0x533e4d['start'])){const _0x37b941=_0x3a1de9['end']['nodeAfter'],_0x4a74ea=_0x533e4d['start']['nodeBefore'];return _0x452f0b['isBlockImage'](_0x37b941)&&_0x37b941===_0x4a74ea;}return!0x1;}function _0x15a2c8(_0x29fb2e,_0x37cad7){return _0x271a99(_0x29fb2e,_0x37cad7)?[_0x29fb2e,_0x37cad7]:_0x271a99(_0x37cad7,_0x29fb2e)?[_0x37cad7,_0x29fb2e]:null;}_0x2ea631['plugins']['has']('ImageResize')&&(_0xdc1963['enableDefaultAttributesIntegration']('resizeImage'),_0xdc1963['registerBlockAttribute']('resizedWidth'),_0xdc1963['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x190b75,'FORMAT_IMAGE_SIZE'))),_0x2ea631['plugins']['has']('ImageTextAlternativeEditing')&&(_0xdc1963['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xdc1963['registerBlockAttribute']('alt')),_0x2ea631['plugins']['has']('PictureEditing')&&(_0xdc1963['registerBlockAttribute']('sources'),_0xdc1963['descriptionFactory']['registerDescriptionCallback'](_0x1915a5=>{if('attribute'!=_0x1915a5['type'])return;const {data:_0x22d68d}=_0x1915a5;return _0x22d68d&&'sources'==_0x22d68d['key']?{'type':'format','content':''}:void 0x0;})),_0x2ea631['plugins']['has']('ImageSizeAttributes')&&(_0xdc1963['registerBlockAttribute']('width'),_0xdc1963['registerBlockAttribute']('height'),_0xdc1963['descriptionFactory']['registerDescriptionCallback'](_0x30aa91=>{if('attribute'!=_0x30aa91['type'])return;const {data:_0x2ba82f}=_0x30aa91;return!_0x2ba82f||'width'!=_0x2ba82f['key']&&'height'!=_0x2ba82f['key']?void 0x0:{'type':'format','content':''};})),_0xdc1963['descriptionFactory']['registerDescriptionCallback'](_0x34cb1a=>{if(!!_0x25dc2c['find'](({type:_0x313f19,subType:_0x1f1dc1})=>_0x34cb1a['type']==_0x313f19&&_0x34cb1a['subType']==_0x1f1dc1))return _0x34cb1a['previous']?{}:void 0x0;}),_0xdc1963['descriptionFactory']['registerDescriptionCallback'](_0x109583=>{if('insertion'==_0x109583['type']||'deletion'==_0x109583['type']){const _0x38b2c0=_0x109583['getContainedElement']();if(_0x38b2c0&&_0x38b2c0['is']('element','caption'))return{'type':'insertion'==_0x109583['type']?'addObject':'removeObject','element':_0x38b2c0,'quantity':0x1};}}),_0xdc1963['descriptionFactory']['registerDescriptionCallback'](_0x3a78f1=>'formatBlock'==_0x3a78f1['type']&&'convertInlineImageToBlock'==_0x3a78f1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3a78f1['type']&&'convertBlockImageToInline'==_0x3a78f1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xdc1963['descriptionFactory']['registerDescriptionCallback'](_0x40bf7f=>{if('attribute'!=_0x40bf7f['type'])return;const {data:_0x2e0bef}=_0x40bf7f;if(!_0x2e0bef||'alt'!=_0x2e0bef['key'])return;const _0x1bfc4d=_0x2e0bef['newValue'];return _0x1bfc4d?{'type':'format','content':o(_0x190b75,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1bfc4d+'\x22')}:{'type':'format','content':o(_0x190b75,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3aae39=this['editor'],_0x1ae892=_0x3aae39['locale'];_0x3aae39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36550b=>{if('formatBlock'!=_0x36550b['type']&&'formatInline'!=_0x36550b['type'])return;const {data:_0x938095}=_0x36550b;if(_0x938095){if('imageTextAlternative'==_0x938095['commandName']){const _0xcdf7ba=_0x938095['commandParams'][0x0]['newValue'];return _0xcdf7ba?{'type':'format','content':o(_0x1ae892,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xcdf7ba+'\x22')}:{'type':'format','content':o(_0x1ae892,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x938095['commandName']){const _0x3d6067=_0x938095['commandParams'][0x0]['width'];return _0x3d6067?{'type':'format','content':o(_0x1ae892,'*Set\x20image\x20width:*\x20%0',_0x3d6067)}:{'type':'format','content':o(_0x1ae892,'*Reset\x20image\x20width*')};}}});}}class at extends _0x42796e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x30cfdc=this['editor']['locale'],_0x2abdcc=this['editor']['plugins']['get']('TrackChangesEditing');_0x2abdcc['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2abdcc['registerBlockAttribute']('src'),_0x2abdcc['descriptionFactory']['registerDescriptionCallback'](_0x268ab2=>{if('attribute'!=_0x268ab2['type'])return;const {data:_0x4b0cf8}=_0x268ab2;return _0x4b0cf8&&'src'==_0x4b0cf8['key']?_0x4b0cf8['newValue']&&_0x4b0cf8['oldValue']?{'type':'format','content':o(_0x30cfdc,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1cd860=this['editor']['plugins']['get']('TrackChangesEditing');_0x1cd860['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1cd860['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1cd860['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1cd860['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xed521f=this['editor'],_0x18557c=_0xed521f['locale'];_0xed521f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x209c26=>{if('formatBlock'!=_0x209c26['type']&&'formatInline'!=_0x209c26['type'])return;const {data:_0x366efd}=_0x209c26;if(!_0x366efd||'replaceImageSource'!=_0x366efd['commandName'])return;return{'type':'format','content':o(_0x18557c,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x42796e{['afterInit'](){const _0x4c4c63=this['editor'];if(!_0x4c4c63['plugins']['has']('ImageStyleEditing'))return;const _0x18770a=_0x4c4c63['plugins']['get']('TrackChangesEditing'),_0x210ba5=_0x4c4c63['plugins']['get']('ImageUtils'),_0x2650eb={};_0x18770a['enableCommand']('imageStyle',(_0x2f30c6,_0x3d400a)=>{const _0x3fe1aa=_0x4c4c63['plugins']['get']('Users')['me'],_0x33fa2a=_0x4c4c63['commands']['get']('imageStyle');let _0x6516bd=_0x210ba5['getClosestSelectedImageElement'](_0x4c4c63['model']['document']['selection']),_0x5ea298=_0x4c4c63['model']['createRangeOn'](_0x6516bd),_0x374cf3=_0x33fa2a['value'];if(_0x374cf3==_0x3d400a['value'])return;const _0x273a7e={'commandName':'imageStyle','commandParams':[_0x3d400a],'formatGroupId':_0x55f348()};_0x4c4c63['model']['change'](()=>{if(_0x18770a['getSuggestions']()['filter'](_0x5eb8db=>_0x5eb8db['isInContent']&&_0x3fe1aa==_0x5eb8db['author']&&('formatBlock'==_0x5eb8db['type']||'formatInline'==_0x5eb8db['type'])&&('imageStylePreApply'==_0x5eb8db['subType']||'imageStylePostApply'==_0x5eb8db['subType'])&&_0x5eb8db['getFirstRange']()['isEqual'](_0x5ea298))['forEach'](_0x2d90af=>_0x18770a['discardSuggestion'](_0x2d90af['head'])),_0x6516bd=_0x210ba5['getClosestSelectedImageElement'](_0x4c4c63['model']['document']['selection']),_0x5ea298=_0x4c4c63['model']['createRangeOn'](_0x6516bd),_0x33fa2a['refresh'](),_0x4c4c63['commands']['get']('imageTypeInline')['refresh'](),_0x4c4c63['commands']['get']('imageTypeBlock')['refresh'](),_0x374cf3=_0x33fa2a['value'],_0x374cf3!=_0x3d400a['value'])return _0x210ba5['isInlineImage'](_0x6516bd)&&_0x33fa2a['shouldConvertImageType'](_0x3d400a['value'],_0x6516bd)?(_0x2f30c6({..._0x3d400a,'setImageSizes':!0x1}),_0x6516bd=_0x210ba5['getClosestSelectedImageElement'](_0x4c4c63['model']['document']['selection']),void _0x18770a['markBlockFormat'](_0x6516bd,{..._0x273a7e,'commandReversedParams':[{'value':_0x374cf3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x210ba5['isBlockImage'](_0x6516bd)?_0x18770a['markBlockFormat'](_0x6516bd,_0x273a7e,[],'imageStylePostApply'):_0x18770a['markInlineFormat'](_0x5ea298,_0x273a7e,'imageStylePostApply'));});});for(const _0x249d9f of _0x4c4c63['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2650eb[_0x249d9f['name']]=_0x249d9f['title']['toLowerCase']();_0x18770a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x18770a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x18770a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x18770a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3dc74d])=>{_0x210ba5['setImageNaturalSizeAttributes'](_0x3dc74d['getContainedElement']());}),_0x18770a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4d3e82,_0x560ded)=>{_0x18770a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4d3e82,{'commandName':_0x560ded['commandName'],'commandParams':_0x560ded['commandReversedParams']});}),_0x18770a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5d3c47,_0x3eee82){if(_0x31c7a5(_0x5d3c47,_0x3eee82))return[_0x5d3c47,_0x3eee82];if(_0x31c7a5(_0x3eee82,_0x5d3c47))return[_0x3eee82,_0x5d3c47];return null;});const _0x30ec98=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31c7a5(_0xc61e9,_0x5f04a9){const _0x2b3591=_0x30ec98['findIndex'](({type:_0x43cf0e,subType:_0x2fd631})=>_0xc61e9['type']==_0x43cf0e&&_0xc61e9['subType']==_0x2fd631),_0x215662=_0x30ec98['findIndex'](({type:_0x16373e,subType:_0x218fd5})=>_0x5f04a9['type']==_0x16373e&&_0x5f04a9['subType']==_0x218fd5);if(_0x2b3591<0x0||_0x215662<0x0)return!0x1;const _0x394f28=_0xc61e9['getFirstRange'](),_0x96e923=_0x5f04a9['getFirstRange']();if((0x0==_0x2b3591||0x1==_0x2b3591)&&0x2==_0x215662&&_0x394f28['isIntersecting'](_0x96e923))return!0x0;if(0x2==_0x2b3591&&0x3==_0x215662){const _0x32da4d=_0x18770a['_findSuggestions'](_0x394f28,'insertion')['filter'](({suggestion:_0x487df1,meta:_0x590a24})=>_0x590a24['isOwn']&&'convertInlineImageToBlock'==_0x487df1['subType']);if(_0x32da4d['length']>0x1&&_0x96e923['end']['isEqual'](_0x394f28['start']))return!0x0;if(0x1==_0x32da4d['length']&&(_0x394f28['start']['isEqual'](_0x96e923['end'])||_0x394f28['end']['isEqual'](_0x96e923['start'])))return!0x0;}if(0x3==_0x2b3591&&0x3==_0x215662&&_0x394f28['start']['isBefore'](_0x96e923['start'])){const _0x19a570=_0x394f28['end']['nodeAfter'],_0x560e50=_0x96e923['start']['nodeBefore'];return _0x210ba5['isBlockImage'](_0x19a570)&&_0x19a570===_0x560e50;}return!0x1;}_0x4c4c63['model']['document']['registerPostFixer'](()=>{let _0x289859=!0x1;const _0x4a4ed1=Array['from'](_0x4c4c63['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49d517,data:_0x295bd1}of _0x4a4ed1){const {group:_0x324621,type:_0x4c665c,subType:_0xe4bc66,id:_0x558a28}=_0x18770a['_splitMarkerName'](_0x49d517);if('suggestion'==_0x324621&&_0x18770a['hasSuggestion'](_0x558a28)){if('formatBlock'==_0x4c665c&&('imageStylePreApply'==_0xe4bc66||'imageStylePostApply'==_0xe4bc66)){const _0x4941d4=_0x18770a['getSuggestion'](_0x558a28);if(_0x295bd1['newRange']){const _0x19c61e=_0x4941d4['getFirstRange']()['getContainedElement']();if(_0x210ba5['isBlockImage'](_0x19c61e))continue;_0x18770a['discardSuggestion'](_0x4941d4),_0x289859=!0x0;}}if('insertion'==_0x4c665c&&'imageCaption'==_0xe4bc66&&!_0x295bd1['newRange']){const _0x52278a=_0x18770a['getSuggestion'](_0x558a28);_0x52278a['next']&&_0x52278a['next']['isInContent']&&(_0x18770a['discardSuggestion'](_0x52278a['next']),_0x289859=!0x0);}}}return _0x289859;}),this['_registerLegacyDescription'](_0x2650eb);}['_registerLegacyDescription'](_0x5ba09b){const _0x362f07=this['editor'],_0x51e37e=_0x362f07['locale'];_0x362f07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cf94d=>{if('formatBlock'!=_0x2cf94d['type']&&'formatInline'!=_0x2cf94d['type'])return;const {data:_0x3cf065}=_0x2cf94d;if(!_0x3cf065||'imageStyle'!=_0x3cf065['commandName'])return;const _0x349c4=_0x3cf065['commandParams'][0x0]['value'];return _0x1d5af4('side'===_0x349c4?o(_0x51e37e,'FORMAT_SIDE_IMAGE'):_0x5ba09b[_0x349c4]||_0x349c4);function _0x1d5af4(_0x55ac59){return{'type':'format','content':o(_0x51e37e,'*Format:*\x20%0',_0x55ac59)};}});}}class ut extends _0x42796e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2d2cb7){super(_0x2d2cb7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xc86bba=this['editor'],_0x1ef316=_0xc86bba['commands']['get']('importWord'),_0x125f96=_0xc86bba['commands']['get']('trackChanges');_0x1ef316&&(_0x1ef316['on']('execute',(_0x56d603,[,_0x678c8c])=>{this['_trackChangesValueDuringImport']=_0x125f96['value'],_0x678c8c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1ef316,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1ef316,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x125f96['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xc86bba['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x227031,_0x249d7e){const {suggestions:_0x1c897a}=_0x249d7e,_0x5c2ec3=this['editor']['commands']['get']('trackChanges'),_0x3316dd=_0x5c2ec3['value'];this['_trackChangesValueDuringImport']!==_0x3316dd&&(_0x5c2ec3['execute'](),this['_trackChangesExecuted']=!0x0),_0x1c897a&&_0x1c897a['forEach'](({id:_0x2b3218,type:_0x3b42b8,author:_0x29d37d,created_at:_0x1b166d})=>{const _0x55ac78={'id':_0x2b3218,'type':_0x3b42b8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x29d37d,'createdAt':_0x1b166d?new Date(_0x1b166d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x55ac78);});}}class ft extends _0x42796e{['afterInit'](){const _0x25789e=this['editor'],_0xb79fce=_0x25789e['plugins']['get']('TrackChangesEditing');if(_0x25789e['plugins']['has']('IndentEditing')&&(_0xb79fce['enableCommand']('indent'),_0xb79fce['enableCommand']('outdent')),_0x25789e['plugins']['has']('IndentBlock')){for(const _0x1b5e42 of['indentBlock','outdentBlock'])_0xb79fce['enableDefaultAttributesIntegration'](_0x1b5e42);}const _0x5cdb4c=_0x25789e['locale'];_0xb79fce['registerBlockAttribute']('blockIndent'),_0xb79fce['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5cdb4c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1647c9=this['editor'],_0x1c7ae5=_0x1647c9['locale'],_0x34e52a=_0x1647c9['plugins']['get']('TrackChangesEditing');_0x34e52a['descriptionFactory']['registerDescriptionCallback'](_0x7d9924=>{if('formatBlock'!=_0x7d9924['type'])return;const {data:_0x3878cd}=_0x7d9924;if(!_0x3878cd)return;if('indentBlock'!=_0x3878cd['commandName']&&'outdentBlock'!=_0x3878cd['commandName'])return;const _0x5bf9a3=_0x7d9924['getItems']()[0x0],_0x495db9=_0x34e52a['descriptionFactory']['getItemLabel'](_0x5bf9a3);return'indentBlock'==_0x3878cd['commandName']?{'type':'format','content':o(_0x1c7ae5,'*Indent:*\x20%0',_0x495db9)}:'outdentBlock'==_0x3878cd['commandName']?{'type':'format','content':o(_0x1c7ae5,'*Outdent:*\x20%0',_0x495db9)}:void 0x0;});}}class ht extends _0x42796e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x42796e{['afterInit'](){const _0x1a3696=this['editor'];if(!_0x1a3696['plugins']['has']('LinkEditing'))return;const _0x856999=_0x1a3696['plugins']['get']('TrackChangesEditing'),_0x49d442=_0x1a3696['commands']['get']('link');_0x856999['enableDefaultAttributesIntegration']('link'),_0x856999['enableDefaultAttributesIntegration']('unlink'),_0x856999['registerInlineAttribute']('linkHref');for(const _0x1f2ea0 of _0x49d442['manualDecorators'])_0x856999['registerInlineAttribute'](_0x1f2ea0['id']),_0x856999['descriptionFactory']['registerAttributeLabel'](_0x1f2ea0['id'],'link\x20('+_0x1f2ea0['label']['toLowerCase']()+')');_0x856999['descriptionFactory']['registerDescriptionCallback'](_0x414fc9=>{if('attribute'!=_0x414fc9['type'])return;const {data:_0x2b26cd}=_0x414fc9;if(!_0x2b26cd||'linkHref'!=_0x2b26cd['key'])return;const _0x553189=_0x2b26cd['newValue'],_0x3b22a1=_0x1a3696['locale'];return{'type':'format','content':null==_0x553189?o(_0x3b22a1,'*Remove\x20link*'):o(_0x3b22a1,'*Set\x20link:*\x20%0','\x22'+_0x553189+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13debd=this['editor'],_0x3190fd=_0x13debd['locale'];_0x13debd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1eab46=>{if('formatInline'!=_0x1eab46['type'])return;const {data:_0x27394d}=_0x1eab46;if(_0x27394d){if('link'==_0x27394d['commandName']){const _0x4d48e1=_0x27394d['commandParams'][0x0];return{'type':'format','content':o(_0x3190fd,'*Set\x20link:*\x20%0','\x22'+_0x4d48e1+'\x22')};}return'unlink'==_0x27394d['commandName']?{'type':'format','content':o(_0x3190fd,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x42796e{['afterInit'](){const _0xa37011=this['editor'],_0x38f28f=_0xa37011['locale'];if(!_0xa37011['plugins']['has']('LegacyListEditing'))return;const _0x4dce27=_0xa37011['plugins']['get']('TrackChangesEditing'),_0x1955cd=_0xa37011['plugins']['has']('LegacyTodoListEditing');function _0x597a3b(_0xac9568){return()=>{const _0x4196eb=_0xa37011['model']['document']['selection'],_0x1952ef=_0xa37011['commands']['get'](_0xac9568);if(_0x1952ef['value'])return void _0xa37011['execute']('paragraph',{});const _0x6caa1=_0xac9568['slice'](0x0,-0x4),_0x112d2d=function(_0xb39c5c,_0x481bad,_0x1a2cf7){let _0x482cce=Array['from'](_0xb39c5c)['filter'](_0x14dea8=>function(_0x5a07fe,_0x216bee){return _0x216bee['checkChild'](_0x5a07fe['parent'],'listItem')&&!_0x216bee['isObject'](_0x5a07fe);}(_0x14dea8,_0x1a2cf7));_0x482cce=_0x482cce['filter'](_0x350f64=>!_0x350f64['is']('element','listItem')||_0x350f64['getAttribute']('listType')!=_0x481bad);const _0x34b6d3=new Set();for(const _0x7abc7 of _0x482cce)_0x7abc7['is']('element','listItem')?_0x34b6d3['add'](Le(_0x7abc7)):_0x34b6d3['add'](_0x7abc7);return Array['from'](_0x34b6d3);}(_0x4196eb['getSelectedBlocks'](),_0x6caa1,_0xa37011['model']['schema']);_0xa37011['model']['change'](()=>{for(const _0x263e9b of _0x112d2d)_0x4dce27['markBlockFormat'](_0x263e9b,{'commandName':_0xac9568,'commandParams':[{'forceValue':!_0x1952ef['value']}],'formatGroupId':'blockName'},Ee(_0x263e9b));});};}function _0x4c226a(_0x21df49){return()=>{const _0x2f9ec0=function(_0x9f0aa1){let _0x3cd65f=Array['from'](_0x9f0aa1);const _0x235f8b=_0x3cd65f['findIndex'](_0x9bb3cc=>'listItem'!=_0x9bb3cc['name']);return _0x235f8b>-0x1&&(_0x3cd65f=_0x3cd65f['slice'](0x0,_0x235f8b)),_0x3cd65f;}(_0xa37011['model']['document']['selection']['getSelectedBlocks']()),_0x3294ac=_0xa37011['model']['createRange'](_0xa37011['model']['createPositionAt'](_0x2f9ec0[0x0],'before'),_0xa37011['model']['createPositionAt'](_0x2f9ec0[_0x2f9ec0['length']-0x1],'end'));_0xa37011['model']['change'](()=>{_0x4dce27['markBlockFormat'](_0x3294ac,{'commandName':_0x21df49,'commandParams':[],'formatGroupId':'listIndent'},function(_0x521758){const _0x5abdb3=new Set();for(const _0x183c40 of _0x521758){let _0x4999c8=_0x183c40['nextSibling'];for(;_0x4999c8&&_0x4999c8['getAttribute']('listIndent')>_0x183c40['getAttribute']('listIndent');)_0x5abdb3['add'](_0x4999c8),_0x4999c8=_0x4999c8['nextSibling'];}return Array['from'](_0x5abdb3);}(_0x2f9ec0));});};}_0x4dce27['enableCommand']('numberedList',_0x597a3b('numberedList')),_0x4dce27['enableCommand']('bulletedList',_0x597a3b('bulletedList')),_0x1955cd&&_0x4dce27['enableCommand']('todoList',_0x597a3b('todoList')),_0x4dce27['enableCommand']('indentList',_0x4c226a('indentList')),_0x4dce27['enableCommand']('outdentList',_0x4c226a('outdentList')),_0x1955cd&&_0x4dce27['enableCommand']('checkTodoList',()=>{const _0x2fb87c=_0xa37011['commands']['get']('checkTodoList'),_0x29560a=Array['from'](_0x2fb87c['_selectedElements']);_0x29560a['filter'](_0x535e10=>_0x535e10['getAttribute']('todoListChecked')!=_0x2fb87c['value']),_0xa37011['model']['change'](()=>{for(const _0x1c2f78 of _0x29560a)_0x4dce27['markBlockFormat'](_0x1c2f78,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2fb87c['value']}]});});}),_0x4dce27['descriptionFactory']['registerElementLabel']('listItem',_0x305480=>o(_0x38f28f,'ELEMENT_LIST_ITEM',_0x305480)),_0x4dce27['descriptionFactory']['registerDescriptionCallback'](_0x7e0a1a=>{if('formatBlock'!=_0x7e0a1a['type']&&'formatInline'!=_0x7e0a1a['type'])return;const {data:_0x3522ae}=_0x7e0a1a;if(_0x3522ae){if('numberedList'==_0x3522ae['commandName']||'bulletedList'==_0x3522ae['commandName']||'todoList'==_0x3522ae['commandName'])switch(_0x3522ae['commandName']['replace']('List','')){case'bulleted':return _0x144fc0(o(_0x38f28f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x144fc0(o(_0x38f28f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x144fc0(o(_0x38f28f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3522ae['commandName'])return{'type':'format','content':o(_0x38f28f,'*Indent:*\x20%0',o(_0x38f28f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3522ae['commandName'])return{'type':'format','content':o(_0x38f28f,'*Outdent:*\x20%0',o(_0x38f28f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3522ae['commandName'])return _0x3522ae['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38f28f,'*Check\x20item*')}:{'type':'format','content':o(_0x38f28f,'*Uncheck\x20item*')};}function _0x144fc0(_0x1ba75a){return{'type':'format','content':o(_0x38f28f,'*Change\x20to:*\x20%0',_0x1ba75a)};}});}}function Le(_0x177597){const _0x26c676=_0x177597['getAttribute']('listIndent');if(0x0==_0x26c676)return _0x177597;let _0xca416=_0x177597;for(;_0x177597['previousSibling']&&_0x177597['previousSibling']['is']('element','listItem');){const _0x4ea3e8=_0x177597['previousSibling']['getAttribute']('listIndent');if(_0x4ea3e8==_0x26c676)_0xca416=_0x177597['previousSibling'];else{if(_0x4ea3e8<_0x26c676)break;}_0x177597=_0x177597['previousSibling'];}return _0xca416;}function Ee(_0xe3eba3){const _0x28d08a=[];if(_0xe3eba3['is']('element','listItem')&&_0xe3eba3['getAttribute']('listIndent')>0x0){let _0x121c45=_0xe3eba3['nextSibling'];for(;_0x121c45&&'listItem'==_0x121c45['name']&&_0x121c45['getAttribute']('listIndent')==_0xe3eba3['getAttribute']('listIndent');)_0x28d08a['push'](_0x121c45),_0x121c45=_0x121c45['nextSibling'];}return _0x28d08a;}class Q extends _0x42796e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1b5df5=this['editor']['config']['get']('list.properties'),_0x20878c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b5df5['styles']&&_0x20878c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1b5df5['reversed']&&_0x20878c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1b5df5['startIndex']&&_0x20878c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x20878c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2d9b7e,_0xac8511={}){const _0x51f21c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5958a8=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x51f21c['markMultiRangeBlockFormat'](_0x5958a8,{'commandName':'listStyle','commandParams':[{'type':_0xac8511['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x301a54,_0x3f312d={}){const _0x5733f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c781a=this['_getSuggestionBlocks'](_0x4e61b7=>_0x4e61b7['is']('element','listItem')&&'numbered'===_0x4e61b7['getAttribute']('listType'));if(_0x2c781a['length']<0x1)return;const _0x1d66fd=_0x2c781a['map'](_0x2f224e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f224e,'before'),this['editor']['model']['createPositionAt'](_0x2f224e,0x0)));this['editor']['model']['change'](()=>{_0x5733f8['markMultiRangeBlockFormat'](_0x1d66fd,{'commandName':'listReversed','commandParams':[{'reversed':_0x3f312d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x34f51b,_0x43fa9f={}){const _0x1f2de8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46077a=this['_getSuggestionBlocks'](_0x5e6f03=>_0x5e6f03['is']('element','listItem')&&'numbered'===_0x5e6f03['getAttribute']('listType'));if(_0x46077a['length']<0x1)return;const _0x484acd=_0x46077a['map'](_0x40fd02=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40fd02,'before'),this['editor']['model']['createPositionAt'](_0x40fd02,0x0)));this['editor']['model']['change'](()=>{_0x1f2de8['markMultiRangeBlockFormat'](_0x484acd,{'commandName':'listStart','commandParams':[{'startIndex':_0x43fa9f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x370a2d){if('formatBlock'!=_0x370a2d['type']&&'formatInline'!=_0x370a2d['type'])return;const _0x22d409=this['editor']['locale'],{data:_0x248daa}=_0x370a2d;if(!_0x248daa)return;let _0x2426f9,_0x2f0c24;switch(_0x248daa['commandName']){case'listStyle':_0x2426f9='*Change\x20to:*\x20%0',_0x2f0c24={'type':'format','content':o(_0x22d409,_0x2426f9,o(_0x22d409,this['_getTranslationKeyForListStyle'](_0x248daa['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2426f9=_0x248daa['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2f0c24={'type':'format','content':o(_0x22d409,_0x2426f9)};break;case'listStart':_0x2426f9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2f0c24={'type':'format','content':o(_0x22d409,_0x2426f9,_0x248daa['commandParams'][0x0]['startIndex'])};}return _0x2f0c24;}['_getSuggestionBlocksForListStyle'](){const _0x22b646=this['editor']['plugins']['get']('LegacyListUtils');let _0x38d1de=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x38d1de[0x0]?.['is']('element','listItem')&&_0x38d1de['unshift'](..._0x22b646['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x38d1de[_0x38d1de['length']-0x1]?.['is']('element','listItem')&&_0x38d1de['push'](..._0x22b646['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x38d1de=[...new Set(_0x38d1de)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x38d1de=_0x38d1de['filter'](_0x1857fb=>_0x1857fb['is']('element','listItem'))),_0x38d1de;}['_getSuggestionBlocks'](_0x7b3fe6){const _0x4829a3=this['editor']['plugins']['get']('LegacyListUtils');let _0x50a157=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x7b3fe6)['map'](_0x3368af=>{const _0x538811=this['editor']['model']['createPositionAt'](_0x3368af,0x0);return[..._0x4829a3['getSiblingNodes'](_0x538811,'backward'),..._0x4829a3['getSiblingNodes'](_0x538811,'forward')];})['flat']();return _0x50a157=[...new Set(_0x50a157)],_0x50a157;}['_getTranslationKeyForListStyle'](_0x1da812){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1da812)||'default')['toUpperCase']()+'_LIST_'+_0x1da812['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x42796e{['afterInit'](){const _0x2609bd=this['editor'];if(!_0x2609bd['plugins']['has']('MediaEmbedEditing'))return;const _0x42893c=_0x2609bd['plugins']['get']('TrackChangesEditing'),_0x533542=_0x2609bd['locale'];_0x42893c['enableCommand']('mediaEmbed'),_0x42893c['descriptionFactory']['registerElementLabel']('media',_0x1125a5=>o(_0x533542,'ELEMENT_MEDIA',_0x1125a5)),_0x2609bd['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x25c608,{writer:_0x2210b0,options:_0x5c1090})=>{if(_0x5c1090['showSuggestionHighlights'])return _0x2210b0['createEmptyElement']('div');},'converterPriority':'high'}),_0x2609bd['data']['downcastDispatcher']['on']('attribute:url:media',(_0xf76459,_0x24ab91,_0x3da906)=>{_0x3da906['options']['showSuggestionHighlights']&&_0xf76459['stop']();},{'priority':'high'});}}class pt extends _0x42796e{['afterInit'](){const _0x25ff01=this['editor'];_0x25ff01['plugins']['has']('MentionEditing')&&_0x25ff01['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x42796e{['afterInit'](){const _0x1d509d=this['editor'];if(!_0x1d509d['plugins']['has']('MergeFieldsEditing'))return;const _0x5e6058=_0x1d509d['plugins']['get']('TrackChangesEditing'),_0x32d57f=_0x1d509d['locale'];_0x5e6058['enableCommand']('insertMergeField'),_0x5e6058['enableCommand']('insertMergeFieldBlock'),_0x5e6058['enableCommand']('insertMergeFieldImage'),_0x5e6058['descriptionFactory']['registerElementLabel']('mergeField',_0x43ac8d=>o(_0x32d57f,'ELEMENT_MERGE_FIELD',_0x43ac8d)),_0x5e6058['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1fd9ac=>o(_0x32d57f,'ELEMENT_MERGE_FIELD',_0x1fd9ac)),_0x5e6058['descriptionFactory']['registerDescriptionCallback'](_0x51668a=>{if('insertion'!=_0x51668a['type']&&'deletion'!=_0x51668a['type'])return;const _0x66df08=_0x51668a['getContainedElement']();if(null==_0x66df08)return;const _0x262ec0=_0x1d509d['plugins']['get']('MergeFieldsEditing');let _0x52fe93;switch(_0x262ec0['getMergeFieldType'](_0x66df08)){case null:return;case'image':{const _0x1c5c1c=_0x262ec0['unwrapAffixes'](_0x66df08['getAttribute']('src'));_0x52fe93=_0x262ec0['getLabel'](_0x1c5c1c)||_0x1c5c1c;break;}default:{const _0x4f66a8=_0x66df08['getAttribute']('id');_0x52fe93=_0x262ec0['getLabel'](_0x4f66a8)||_0x4f66a8;break;}}return'insertion'==_0x51668a['type']?{'type':'insertion','content':o(_0x32d57f,'*Insert:*\x20%0','\x22'+_0x52fe93+'\x22\x20'+o(_0x32d57f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x32d57f,'*Remove:*\x20%0','\x22'+_0x52fe93+'\x22\x20'+o(_0x32d57f,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x42796e{['afterInit'](){const _0x5cb0b3=this['editor'],_0x3d5316=_0x5cb0b3['plugins']['get']('TrackChangesEditing');_0x5cb0b3['plugins']['has']('MultiLevelList')&&(_0x3d5316['enableDefaultAttributesIntegration']('multiLevelList'),_0x3d5316['registerBlockAttribute']('listMarkerStyle'),_0x3d5316['descriptionFactory']['registerDescriptionCallback'](_0x2e923f=>this['handleDescriptions'](_0x2e923f)));}['handleDescriptions'](_0x2192df){const _0xdd4ab4=this['editor']['locale'],{data:_0x2d0227}=_0x2192df,_0x4119cc={'type':'format','content':''};if(_0x2d0227&&'listMarkerStyle'==_0x2d0227['key']){if(!_0x2d0227['oldValue'])return{'type':'format','content':o(_0xdd4ab4,'*Set\x20format:*\x20%0',o(_0xdd4ab4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d0227['newValue']+')'};if(!_0x2d0227['newValue']){let _0x40d8f2=_0x2192df['head'];for(;_0x40d8f2;){if(_0x40d8f2['data']&&'listType'==_0x40d8f2['data']['key']&&_0x40d8f2['data']['newValue'])return _0x4119cc;_0x40d8f2=_0x40d8f2['next'];}return{'type':'format','content':o(_0xdd4ab4,'*Remove\x20format:*\x20%0',o(_0xdd4ab4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d0227['oldValue']+')'};}}}}class bt extends _0x42796e{['afterInit'](){const _0x33862a=this['editor'];if(!_0x33862a['plugins']['has']('PageBreakEditing'))return;_0x33862a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4de2ff=_0x33862a['plugins']['get']('TrackChangesEditing'),_0x3b492f=_0x33862a['locale'];_0x4de2ff['descriptionFactory']['registerElementLabel']('pageBreak',_0x4a26d0=>o(_0x3b492f,'ELEMENT_PAGE_BREAK',_0x4a26d0));}}class yt extends _0x42796e{['afterInit'](){const _0x19647b=this['editor'];if(!_0x19647b['plugins']['has']('Paragraph'))return;const _0x4b28c0=_0x19647b['locale'],_0x2508db=_0x19647b['plugins']['get']('TrackChangesEditing');_0x2508db['descriptionFactory']['registerElementLabel']('paragraph',_0x383a9c=>o(_0x4b28c0,'ELEMENT_PARAGRAPH',_0x383a9c)),_0x2508db['enableDefaultAttributesIntegration']('paragraph'),_0x2508db['enableCommand']('insertParagraph'),_0x19647b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x19647b),{'priority':'highest'}),_0x19647b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2e42bf,_0x2922a5,_0x45bcf1)=>{_0x45bcf1['options']['showSuggestionHighlights']&&nr(_0x19647b,{'showActiveMarker':!0x1})(_0x2e42bf,_0x2922a5,_0x45bcf1);},{'priority':'highest'});const _0x5d0086=_0x2508db['descriptionFactory'];_0x5d0086['registerDescriptionCallback'](_0x1850a8=>{if('insertion'!==_0x1850a8['type'])return;const {start:_0x1f3ab9,end:_0x236612}=_0x1850a8['getFirstRange']();if(!_0x1f3ab9['isTouching'](_0x236612)||!_0x1f3ab9['nodeAfter'])return;const _0x5954aa=_0x19647b['model']['schema'],_0x6ab214=_0x1f3ab9['nodeAfter'];return _0x5954aa['isBlock'](_0x6ab214)&&!_0x5954aa['isLimit'](_0x6ab214)&&_0x5954aa['checkChild'](_0x6ab214,'$text')?{'type':'insertion','content':o(_0x4b28c0,'*Insert:*\x20%0',_0x5d0086['getItemLabel'](_0x6ab214,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27495f=this['editor'],_0x16b686=_0x27495f['locale'];_0x27495f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x436eb2=>{if('formatBlock'!=_0x436eb2['type'])return;const {data:_0x17b625}=_0x436eb2;return _0x17b625&&'paragraph'==_0x17b625['commandName']?{'type':'format','content':o(_0x16b686,'*Change\x20to:*\x20%0',o(_0x16b686,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x173c4c,{showActiveMarker:_0x568fb8=!0x0}={}){return(_0x155c50,_0x5ab124,_0x281808)=>{const _0x256592=_0x173c4c['plugins']['get']('TrackChangesEditing'),_0x305b44=_0x5ab124['markerRange']['start'],_0x11b6dc=_0x5ab124['markerRange']['end'],_0x3d6e4d=_0x173c4c['model']['schema'];if(!_0x305b44['isTouching'](_0x11b6dc)||!_0x305b44['nodeAfter'])return;const _0x4b5b53=_0x305b44['nodeAfter'];if(_0x3d6e4d['isBlock'](_0x4b5b53)&&!_0x3d6e4d['isLimit'](_0x4b5b53)&&_0x3d6e4d['checkChild'](_0x4b5b53,'$text')){if(!_0x281808['consumable']['consume'](_0x5ab124['markerRange'],_0x155c50['name']))return;const {authorId:_0x3b0499}=_0x256592['_splitMarkerName'](_0x5ab124['markerName']),_0x5a9d4f=_0x281808['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3b0499}),_0x29794b=_0x281808['mapper']['toViewPosition'](_0x11b6dc);_0x568fb8&&_0x256592['activeMarkers']['includes'](_0x5ab124['markerName'])&&_0x281808['writer']['addClass']('ck-suggestion-marker--active',_0x5a9d4f),_0x281808['writer']['insert'](_0x29794b,_0x5a9d4f),_0x281808['mapper']['bindElementToMarker'](_0x5a9d4f,_0x5ab124['markerName']);}};}class jt extends _0x42796e{['afterInit'](){const _0x35b364=this['editor'];_0x35b364['commands']['get']('replaceSource')&&_0x35b364['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x42796e{['afterInit'](){const _0x176a10=this['editor'];if(!_0x176a10['plugins']['has']('RemoveFormatEditing'))return;_0x176a10['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a992c=this['editor'];_0x5a992c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29940a=>{if('formatBlock'!=_0x29940a['type']&&'formatInline'!=_0x29940a['type'])return;const {data:_0x13b16c}=_0x29940a;return _0x13b16c&&'removeFormat'==_0x13b16c['commandName']?{'type':'format','content':o(_0x5a992c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x42796e{['afterInit'](){const _0x23eb3a=this['editor'];if(!_0x23eb3a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1aa520=_0x23eb3a['plugins']['get']('TrackChangesEditing');_0x1aa520['enableCommand']('goToPreviousRestrictedEditingException'),_0x1aa520['enableCommand']('goToNextRestrictedEditingException');const _0x17ace8=_0x23eb3a['plugins']['get']('RestrictedEditingModeEditing');_0x17ace8['enableCommand']('trackChanges'),_0x17ace8['enableCommand']('acceptSuggestion'),_0x17ace8['enableCommand']('discardSuggestion'),_0x17ace8['enableCommand']('acceptAllSuggestions'),_0x17ace8['enableCommand']('discardAllSuggestions'),_0x17ace8['enableCommand']('acceptSelectedSuggestions'),_0x17ace8['enableCommand']('discardSelectedSuggestions');}}class It extends _0x42796e{static get['requires'](){return[_0x50f491];}['init'](){const _0x215b87=this['editor'],_0x132a7f=_0x215b87['plugins']['get']('TrackChangesEditing');_0x132a7f['enableCommand']('shiftEnter'),_0x215b87['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x215b87),{'priority':'high'}),_0x215b87['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x215b87),{'priority':'high'}),_0x215b87['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x13d677,_0x3c2d44,_0x737180)=>{_0x737180['options']['showSuggestionHighlights']&&je(_0x215b87,{'showActiveMarker':!0x1})(_0x13d677,_0x3c2d44,_0x737180);}),_0x132a7f['descriptionFactory']['registerElementLabel']('softBreak',_0x3ca9e6=>o(_0x215b87['locale'],'ELEMENT_LINE_BREAK',_0x3ca9e6));}}function je(_0x17cde1,{showActiveMarker:_0x5136a6=!0x0}={}){return(_0xe43514,_0x250986,_0x2d0495)=>{const _0x37230b=_0x17cde1['plugins']['get']('TrackChangesEditing');if(!_0x2d0495['consumable']['test'](_0x250986['markerRange'],_0xe43514['name']))return;const _0xd45a85=_0x17cde1['model'];for(const _0x1363a7 of _0x250986['markerRange']['getItems']()){if(!_0x1363a7['is']('element','softBreak'))continue;const _0x588efa='deletion'==_0x250986['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x38ff95}=_0x37230b['_splitMarkerName'](_0x250986['markerName']),_0x5dc3c7=_0x2d0495['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x588efa,'data-author-id':_0x38ff95}),_0x4b4266=_0x2d0495['mapper']['toViewPosition'](_0xd45a85['createPositionBefore'](_0x1363a7));_0x5136a6&&_0x37230b['activeMarkers']['includes'](_0x250986['markerName'])&&_0x2d0495['writer']['addClass']('ck-suggestion-marker--active',_0x5dc3c7),_0x2d0495['writer']['insert'](_0x4b4266,_0x5dc3c7),_0x2d0495['mapper']['bindElementToMarker'](_0x5dc3c7,_0x250986['markerName']);}};}class vt extends _0x42796e{['afterInit'](){const _0x215934=this['editor'],_0x5ad4e5=_0x215934['model'],_0x2dd256=_0x215934['locale'];if(!_0x215934['plugins']['has']('StandardEditingModeEditing'))return;const _0x133814=_0x215934['plugins']['get']('TrackChangesEditing'),_0x632e85='restrictedEditingException',_0x3e9e32=_0x215934['commands']['get'](_0x632e85);_0x133814['enableCommand'](_0x632e85,(_0x39d140,_0x11acb1={})=>{const _0x4d14d4=_0x5ad4e5['document']['selection'];if(_0x4d14d4['isCollapsed'])return void _0x39d140(_0x11acb1);const _0x490cad=void 0x0!==_0x11acb1['forceValue']?_0x11acb1['forceValue']:!_0x3e9e32['value'];_0x5ad4e5['change'](()=>{const _0x3ac529=Array['from'](_0x4d14d4['getRanges']());for(const _0x3f40c4 of _0x3ac529){const _0x2eb60f=_0x490cad?[_0x3f40c4]:io(_0x632e85,_0x3f40c4,_0x5ad4e5);for(const _0x1f9a25 of _0x2eb60f)_0x133814['markInlineFormat'](_0x1f9a25,{'commandName':_0x632e85,'commandParams':[{'forceValue':_0x490cad}]});}});}),_0x133814['descriptionFactory']['registerDescriptionCallback'](_0x186ce2=>{if('formatBlock'!=_0x186ce2['type']&&'formatInline'!=_0x186ce2['type'])return;const {data:_0x1b84cc}=_0x186ce2;return _0x1b84cc&&_0x1b84cc['commandName']==_0x632e85?_0x1b84cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2dd256,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2dd256,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x42796e{['afterInit'](){const _0x3b7bc2=this['editor'];if(!_0x3b7bc2['plugins']['has']('Style')||!_0x3b7bc2['plugins']['has']('DataSchema'))return;const _0x468afb=_0x3b7bc2['plugins']['get']('TrackChangesEditing'),_0x2b1169=_0x3b7bc2['locale'],_0x2dd9ac=_0x3b7bc2['config']['get']('style')||{},_0x9129cf=_0x3b7bc2['plugins']['get']('GeneralHtmlSupport'),_0x203aa8=_0x3b7bc2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3b7bc2['plugins']['get']('DataSchema'),_0x2dd9ac['definitions']);_0x468afb['enableDefaultAttributesIntegration']('style');const _0x3d693c=new Set();for(const _0x5c7eb3 of _0x203aa8['block']){const _0x4d8f43=_0x9129cf['getGhsAttributeNameForElement'](_0x5c7eb3['element']);_0x3d693c['add'](_0x4d8f43);}const _0x4cac6f=new Set();for(const _0x33b2d1 of _0x203aa8['inline']){const _0x48a5a2=_0x9129cf['getGhsAttributeNameForElement'](_0x33b2d1['element']);_0x4cac6f['add'](_0x48a5a2);for(const _0x30615a of _0x33b2d1['ghsAttributes'])_0x4cac6f['add'](_0x30615a);}for(const _0x3be693 of _0x3d693c)_0x468afb['registerBlockAttribute'](_0x3be693),_0x468afb['descriptionFactory']['registerAttributeLabel'](_0x3be693,o(_0x2b1169,'FORMAT_STYLE'));for(const _0x483ff9 of _0x4cac6f)_0x468afb['registerInlineAttribute'](_0x483ff9),_0x468afb['descriptionFactory']['registerAttributeLabel'](_0x483ff9,o(_0x2b1169,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a7343=this['editor'],_0x3a6e7b=_0x1a7343['locale'];_0x1a7343['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b638b=>{if('formatBlock'!=_0x3b638b['type']&&'formatInline'!=_0x3b638b['type'])return;const {data:_0x2349c8}=_0x3b638b;return _0x2349c8&&'style'===_0x2349c8['commandName']?_0x2349c8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a6e7b,'*Set\x20format:*\x20%0',_0x2349c8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3a6e7b,'*Remove\x20format:*\x20%0',_0x2349c8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x42796e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3ecf06){super(_0x3ecf06),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1afe53=this['editor'],_0x266323=_0x1afe53['model']['document']['selection'];if(!_0x1afe53['plugins']['has']('TableEditing'))return;const _0x53f731=_0x1afe53['locale'],_0x31e5c5=_0x1afe53['plugins']['get']('TrackChangesEditing'),_0x1ba537=_0x1afe53['plugins']['get']('TableUtils');_0x31e5c5['descriptionFactory']['registerElementLabel']('table',_0x5951ca=>o(_0x53f731,'ELEMENT_TABLE',_0x5951ca)),this['_setupColumnsRowsFixing'](),_0x31e5c5['enableCommand']('insertTable'),_0x31e5c5['enableCommand']('selectTableRow'),_0x31e5c5['enableCommand']('selectTableColumn');for(const _0x4351aa of['insertTableRowAbove','insertTableRowBelow']){const _0x53528f=_0x1afe53['commands']['get'](_0x4351aa);_0x31e5c5['enableCommand'](_0x4351aa,_0x587835=>{_0x1afe53['model']['change'](_0x1c1b72=>{_0x587835();const _0x71ab08='above'===_0x53528f['order'],_0x520333=_0x1ba537['getSelectionAffectedTableCells'](_0x266323),_0x43af67=_0x1ba537['getRowIndexes'](_0x520333),_0x368511=_0x71ab08?_0x43af67['first']-0x1:_0x43af67['last']+0x1,_0x4a044c=_0x520333[0x0]['findAncestor']('table'),_0x12c12c=_0x1ba537['createTableWalker'](_0x4a044c,{'startRow':_0x368511,'endRow':_0x368511}),_0xb8c2c8=Array['from'](_0x12c12c)['map'](_0xaf7ac6=>_0x1c1b72['createRangeOn'](_0xaf7ac6['cell']));_0x31e5c5['markMultiRangeInsertion'](_0xb8c2c8,'tableRow');});});}for(const _0x4bf3fd of['insertTableColumnLeft','insertTableColumnRight']){const _0x49a219=_0x1afe53['commands']['get'](_0x4bf3fd);_0x31e5c5['enableCommand'](_0x4bf3fd,_0x22fe73=>{_0x1afe53['model']['change'](_0x30249c=>{_0x22fe73();const _0x29c203='left'===_0x49a219['order'],_0x3b3118=_0x1ba537['getSelectionAffectedTableCells'](_0x266323),_0x3611b0=_0x1ba537['getColumnIndexes'](_0x3b3118),_0x1bd1e7=_0x29c203?_0x3611b0['first']-0x1:_0x3611b0['last']+0x1,_0x2a2dd4=_0x3b3118[0x0]['findAncestor']('table'),_0x52ced4=_0x1ba537['createTableWalker'](_0x2a2dd4,{'startRow':0x0,'column':_0x1bd1e7,'includeAllSlots':!0x1}),_0x3a8fc4=Array['from'](_0x52ced4)['map'](_0x2cd3e7=>_0x30249c['createRangeOn'](_0x2cd3e7['cell']));_0x31e5c5['markMultiRangeInsertion'](_0x3a8fc4,'tableColumn');});});}for(const _0x291eae of['removeTableRow','removeTableColumn']){const _0x110656=_0x291eae['substr'](0xb),_0x2f1a94=_0x110656['toLowerCase'](),_0x41e406=_0x2f1a94['substr'](0x0,0x3)+'span',_0x5ccf4f='table'+_0x110656,_0x59372b='min'+_0x110656,_0x4d0976='max'+_0x110656;_0x31e5c5['enableCommand'](_0x291eae,()=>{_0x1afe53['model']['change'](_0x2ab7c9=>{const _0x9a17d5=_0x1ba537['getSelectionAffectedTableCells'](_0x266323),_0x26120f=_0x9a17d5[0x0]['findAncestor']('table');let _0x330ab8;if('removeTableRow'==_0x291eae){const _0x1a5f2c=_0x1ba537['getRowIndexes'](_0x9a17d5);_0x330ab8={'startRow':_0x1a5f2c['first'],'endRow':_0x1a5f2c['last'],'includeAllSlots':!0x0};}else{const _0x41d641=_0x1ba537['getColumnIndexes'](_0x9a17d5);_0x330ab8={'startColumn':_0x41d641['first'],'endColumn':_0x41d641['last'],'includeAllSlots':!0x0};}const _0x37e27e=_0x1ba537['createTableWalker'](_0x26120f,_0x330ab8),_0x2bb46e=Array['from'](_0x37e27e)['map'](({cell:_0x40294e})=>_0x40294e),_0x606749=Ne(_0x2bb46e['filter'](_0x3e11cb=>_0x3e11cb['hasAttribute'](_0x41e406))),_0x46255d=Ne(_0x2bb46e['filter'](_0x219203=>!_0x219203['hasAttribute'](_0x41e406)))['map'](_0x1921e8=>_0x2ab7c9['createRangeOn'](_0x1921e8)),_0x4f6424=_0x31e5c5['markMultiRangeDeletion'](_0x46255d,_0x5ccf4f);if(_0x4f6424&&('tableRow'==_0x4f6424['subType']||'tableColumn'==_0x4f6424['subType'])){const _0x8189fb=this['_getSuggestionCoords'](_0x4f6424);for(const _0x1f03db of _0x606749){const _0x1ac165=_0x2ab7c9['createRangeOn'](_0x1f03db),_0x1d006e=_0x1ba537['getCellLocation'](_0x1f03db),_0x19a920=_0x1f03db['getAttribute'](_0x41e406)-0x1,_0x571157=_0x8189fb[_0x59372b],_0x5280a9=_0x8189fb[_0x4d0976];_0x571157<=_0x1d006e[_0x2f1a94]&&_0x1d006e[_0x2f1a94]+_0x19a920<=_0x5280a9&&_0x4f6424['addRange'](_0x1ac165);}}});});}function _0x9c7545(_0x41436d){const _0x40c489=Array['from'](_0x266323['getRanges']())['map'](_0x24c9da=>_0x2eb8ca['fromRange'](_0x24c9da));_0x1afe53['model']['change'](_0x37b145=>{const _0x328849=_0x37b145['batch'];_0x41436d=_0x41436d['filter'](_0x3d3748=>'$graveyard'!=_0x3d3748['root']['rootName']),_0x37b145['setSelection'](_0x41436d),_0x1afe53['commands']['get']('removeTableRow')['refresh'](),_0x1afe53['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1afe53['model']['enqueueChange'](()=>{_0x1afe53['model']['enqueueChange'](_0x328849,_0x5257f6=>{const _0x96778=_0x40c489['filter'](_0x5bb2cd=>'$graveyard'!=_0x5bb2cd['root']['rootName']);_0x96778['length']>0x0&&_0x5257f6['setSelection'](_0x96778);for(const _0x6c725e of _0x40c489)_0x6c725e['detach']();});});});}function _0x13d680(_0x4e1a90){_0x1afe53['model']['change'](_0x7a295=>{const _0x58c0a5=Array['from'](_0x266323['getRanges']())['map'](_0x40a4c8=>_0x2eb8ca['fromRange'](_0x40a4c8)),_0x24cbfb=[];for(const _0x5c944b of _0x4e1a90)for(const _0x1fde18 of _0x5c944b['getItems']({'shallow':!0x0}))_0x24cbfb['push'](_0x1fde18);for(const _0x2b4329 of _0x24cbfb)'$graveyard'!=_0x2b4329['root']['rootName']&&(_0x7a295['setSelection'](_0x7a295['createPositionAt'](_0x2b4329,0x0)),_0x1afe53['commands']['get']('removeTableColumn')['refresh'](),_0x1afe53['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x484eba=_0x58c0a5['filter'](_0x3ae4ee=>'$graveyard'!=_0x3ae4ee['root']['rootName']);_0x484eba['length']>0x0&&_0x7a295['setSelection'](_0x484eba);for(const _0x33da56 of _0x58c0a5)_0x33da56['detach']();});}function _0x4f51d5(_0x4e79c8,_0x1e0e66){return _0x1e0e66['every'](_0x1ab837=>_0x4e79c8['some'](_0x37b46b=>_0x37b46b['end']['isEqual'](_0x1ab837['start'])||_0x1ab837['end']['isEqual'](_0x37b46b['start'])));}function _0x32377c(_0x454ca5,_0x4bd38c){return!_0x454ca5['some'](_0x58291d=>_0x4bd38c['some'](_0x359b27=>_0x58291d['isIntersecting'](_0x359b27)))&&_0x454ca5['some'](_0x522876=>_0x4bd38c['some'](_0xbfc547=>_0x522876['end']['isTouching'](_0xbfc547['start'])));}_0x1afe53['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3ba84a,_0x16e191,_0x189cb0)=>{if(!_0x189cb0['options']['showSuggestionHighlights'])return;const _0xbca38d=_0x16e191['item'];if(!_0xbca38d)return;const _0x6233ab=_0x189cb0['mapper']['toViewElement'](_0xbca38d);function _0x9ccf7b(_0x36b4e2){return Array['isArray'](_0x36b4e2)?_0x36b4e2:[_0x36b4e2];}_0x6233ab&&'tableCell'===_0xbca38d['name']&&_0x516f0c(_0x6233ab,_0x189cb0['writer'],(_0x33cb5b,_0xa9f3ce,_0x197018)=>_0x197018['addClass'](_0x9ccf7b(_0xa9f3ce['classes']),_0x33cb5b),(_0x552242,_0x5cc044,_0x20c5f2)=>_0x20c5f2['removeClass'](_0x9ccf7b(_0x5cc044['classes']),_0x552242));},{'priority':'highest'}),_0x31e5c5['descriptionFactory']['registerDescriptionCallback'](_0x3c60ce=>{if('insertion'!=_0x3c60ce['type']&&'deletion'!=_0x3c60ce['type'])return;const _0x22233f=_0x3c60ce['getContainedElement']();if(null!=_0x22233f&&_0x22233f['is']('element','table')){if('insertion'==_0x3c60ce['type']){const _0x53b657=_0x3c60ce['getItems']()['filter'](_0x51bba9=>_0x51bba9['is']('$textProxy'))['map'](_0x308a32=>_0x308a32['data']);if(_0x53b657['length'])return{'type':'insertion','content':o(_0x53f731,'*Insert:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x53b657['join']('\x20')+'\x22'))};}if('deletion'==_0x3c60ce['type']){const _0x5a8746=_0x3c60ce['getItems']()['filter'](_0x3ff8f0=>_0x3ff8f0['is']('$textProxy'))['map'](_0x2db01e=>_0x2db01e['data']);if(_0x5a8746['length'])return{'type':'deletion','content':o(_0x53f731,'*Remove:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a8746['join']('\x20')+'\x22'))};}}}),_0x31e5c5['descriptionFactory']['registerDescriptionCallback'](_0x4bc9f5=>{if('tableRow'==_0x4bc9f5['subType']){const _0x2d5c8e=_0x4bc9f5['getItems']()['filter'](_0x1121b5=>_0x1121b5['is']('$textProxy'))['map'](_0x50a3ee=>_0x50a3ee['data']),_0x54fad9=this['_getSuggestionCoords'](_0x4bc9f5),_0x3590ec=_0x54fad9['maxRow']-_0x54fad9['minRow']+0x1;if('insertion'==_0x4bc9f5['type'])return _0x2d5c8e['length']?{'type':'insertion','content':o(_0x53f731,'*Insert:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3590ec,'\x22'+_0x2d5c8e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x53f731,'*Insert:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_ROW',_0x3590ec))};if('deletion'==_0x4bc9f5['type'])return _0x2d5c8e['length']?{'type':'deletion','content':o(_0x53f731,'*Remove:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3590ec,'\x22'+_0x2d5c8e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x53f731,'*Remove:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_ROW',_0x3590ec))};}if('tableColumn'==_0x4bc9f5['subType']){const _0x1c335e=_0x4bc9f5['getItems']()['filter'](_0x2be295=>_0x2be295['is']('$textProxy'))['map'](_0x482758=>_0x482758['data']),_0x57059b=this['_getSuggestionCoords'](_0x4bc9f5),_0x5e3ec3=_0x57059b['maxColumn']-_0x57059b['minColumn']+0x1;if('insertion'==_0x4bc9f5['type'])return _0x1c335e['length']?{'type':'insertion','content':o(_0x53f731,'*Insert:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e3ec3,'\x22'+_0x1c335e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x53f731,'*Insert:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_COLUMN',_0x5e3ec3))};if('deletion'==_0x4bc9f5['type'])return _0x1c335e['length']?{'type':'deletion','content':o(_0x53f731,'*Remove:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e3ec3,'\x22'+_0x1c335e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x53f731,'*Remove:*\x20%0',o(_0x53f731,'ELEMENT_TABLE_COLUMN',_0x5e3ec3))};}}),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x9c7545),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x9c7545),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x13d680),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x13d680),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4f51d5),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4f51d5),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x32377c),_0x31e5c5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x32377c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x42efa8=this['editor'],_0x57f0d4=_0x42efa8['model']['document']['selection'];return(_0x3fff21,_0x232fe6)=>{_0x42efa8['model']['change'](_0x46afb0=>{const {commandName:_0x571dbf,commandParams:_0x36f82a}=_0x232fe6;let _0x504746=_0x3fff21[0x0]['end']['nodeBefore'];_0x36f82a&&_0x36f82a[0x0]&&!0x1===_0x36f82a[0x0]['forceValue']&&(_0x504746=_0x3fff21[0x0]['start']['nodeAfter']);const _0x138d9a=_0x46afb0['createRangeIn'](_0x504746);if('$graveyard'==_0x138d9a['root']['rootName'])return;const _0xf16e60=Array['from'](_0x57f0d4['getRanges']())['map'](_0x3c96d5=>_0x2eb8ca['fromRange'](_0x3c96d5));_0x46afb0['setSelection'](_0x138d9a),_0x42efa8['commands']['get'](_0x571dbf)['refresh'](),_0x36f82a['push']({'forceDefaultExecution':!0x0}),_0x42efa8['execute'](_0x571dbf,..._0x36f82a);const _0x58ec90=_0xf16e60['filter'](_0x525b51=>'$graveyard'!=_0x525b51['root']['rootName']);_0x58ec90['length']>0x0&&_0x46afb0['setSelection'](_0x58ec90);for(const _0x4c2e0d of _0xf16e60)_0x4c2e0d['detach']();});};}['_getCoordsForCells'](_0x281ee7){const _0x4dc66c=this['editor']['plugins']['get']('TableUtils');let _0x3df235=Number['MAX_SAFE_INTEGER'],_0x1fadea=Number['MIN_SAFE_INTEGER'],_0xe80050=Number['MAX_SAFE_INTEGER'],_0x2ea78c=Number['MIN_SAFE_INTEGER'];for(const _0x2b2bd1 of _0x281ee7){if('$graveyard'==_0x2b2bd1['root']['rootName'])continue;const {row:_0x2f3181,column:_0x18e4e6}=_0x4dc66c['getCellLocation'](_0x2b2bd1),_0x26469d=_0x2b2bd1['hasAttribute']('rowspan')?_0x2b2bd1['getAttribute']('rowspan')-0x1:0x0,_0x3c6e0e=_0x2b2bd1['hasAttribute']('colspan')?_0x2b2bd1['getAttribute']('colspan')-0x1:0x0;_0x3df235=_0x2f3181<_0x3df235?_0x2f3181:_0x3df235,_0x1fadea=_0x2f3181+_0x26469d>_0x1fadea?_0x2f3181+_0x26469d:_0x1fadea,_0xe80050=_0x18e4e6<_0xe80050?_0x18e4e6:_0xe80050,_0x2ea78c=_0x18e4e6+_0x3c6e0e>_0x2ea78c?_0x18e4e6+_0x3c6e0e:_0x2ea78c;}return{'minRow':_0x3df235,'maxRow':_0x1fadea,'minColumn':_0xe80050,'maxColumn':_0x2ea78c};}['_setupColumnsRowsFixing'](){const _0x382d03=this['editor'],_0x23694e=_0x382d03['plugins']['get']('TrackChangesEditing'),_0x18eb6f=_0x382d03['plugins']['get']('TableUtils');_0x382d03['model']['document']['on']('change:data',()=>{const _0x165099=Array['from'](_0x382d03['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc9bc7b,data:_0x28c871}of _0x165099){const {group:_0x3c48bc,id:_0x5bf191,subType:_0x57750b}=_0x23694e['_splitMarkerName'](_0xc9bc7b);if('suggestion'!=_0x3c48bc)continue;if(null!=_0x28c871['oldRange'])continue;const _0x2bfa70=_0x23694e['getSuggestion'](_0x5bf191);this['_tablePostFixingSubtypes']['includes'](_0x57750b)&&this['_tableSuggestions']['add'](_0x2bfa70);}},{'priority':'low'});const _0x2f562b=(_0x209e8b,_0x4b9161)=>{let _0x1aa3ec=!0x1;const _0x4e0d7e=_0x4b9161['createRangeOn'](_0x209e8b),_0x58682b=_0x209e8b['findAncestor']('table'),_0x41ed73=_0x18eb6f['getCellLocation'](_0x209e8b);for(const _0x519caf of this['_tableSuggestions']){const _0x4c4072=_0x519caf['subType'],_0x125742=_0x4c4072['startsWith']('tablePaste'),_0x114067=_0x4c4072['substr'](_0x125742?0xa:0x5),_0xdee893=_0x114067['toLowerCase'](),_0x5934ed=_0xdee893['substr'](0x0,0x3)+'span',_0x247fa4='min'+_0x114067,_0x2dc7b3='max'+_0x114067;if(!_0x519caf['isInContent'])continue;if(_0x58682b!=_0x519caf['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x519caf['isIntersectingWithRange'](_0x4e0d7e))continue;const _0x4ddd5b=_0x209e8b['hasAttribute'](_0x5934ed)?_0x209e8b['getAttribute'](_0x5934ed)-0x1:0x0,_0x519b81=this['_getSuggestionCoords'](_0x519caf),_0x6d6b18=_0x519b81[_0x247fa4],_0x4a7f79=_0x519b81[_0x2dc7b3];_0x6d6b18<=_0x41ed73[_0xdee893]&&_0x41ed73[_0xdee893]+_0x4ddd5b<=_0x4a7f79&&(_0x519caf['addRange'](_0x4e0d7e),_0x1aa3ec=!0x0);}return _0x1aa3ec;};_0x382d03['model']['document']['registerPostFixer'](_0x5d5435=>{let _0x6690c7=!0x1;for(const _0x42b7c8 of _0x382d03['model']['document']['differ']['getChanges']())if('insert'==_0x42b7c8['type']){if('tableRow'==_0x42b7c8['name']){for(const _0x441c91 of _0x42b7c8['position']['nodeAfter']['getChildren']())_0x6690c7=_0x6690c7||_0x2f562b(_0x441c91,_0x5d5435);}else'tableCell'==_0x42b7c8['name']&&(_0x6690c7=_0x6690c7||_0x2f562b(_0x42b7c8['position']['nodeAfter'],_0x5d5435));}return _0x6690c7;});}['_getSuggestionCoords'](_0x427a8f){return this['_getCoordsForCells'](_0x427a8f['getRanges']()['map'](_0x1ffee4=>_0x1ffee4['start']['nodeAfter']));}}function Ne(_0x222a36){return Array['from'](new Set(_0x222a36)['values']());}class Nt extends _0x42796e{static get['requires'](){return[Ct];}['afterInit'](){const _0x22ffcc=this['editor'],_0x4ef73a=_0x22ffcc['model']['document']['selection'],_0x41ab9f=_0x22ffcc['locale'];if(!_0x22ffcc['plugins']['has']('TableEditing'))return;const _0x1d8f45=_0x22ffcc['plugins']['get']('TrackChangesEditing'),_0x277c5=_0x22ffcc['plugins']['get']('TableUtils'),_0x428422=_0x22ffcc['plugins']['get'](Ct);_0x428422['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1d8f45['enableCommand']('mergeTableCells',()=>{const _0x5015ae=_0x277c5['getSelectionAffectedTableCells'](_0x22ffcc['model']['document']['selection']);_0x22ffcc['model']['change'](()=>{_0x1d8f45['markMultiRangeBlockFormat'](_0x5015ae,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x22ffcc['commands']['get']('mergeTableCells')['on']('execute',(_0x425da0,_0x36c05f)=>{_0x22ffcc['commands']['get']('trackChanges')['value']&&(_0x36c05f['length']>0x0&&_0x36c05f[_0x36c05f['length']-0x1]&&_0x36c05f[_0x36c05f['length']-0x1]['forceDefaultExecution']||_0x1d8f45['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x425da0['stop']());},{'priority':'highest'});for(const _0x34273a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x40fa96=_0x22ffcc['commands']['get'](_0x34273a);_0x1d8f45['enableCommand'](_0x34273a,()=>{const _0xf731bc=_0x22ffcc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5bc04c=>_0x5bc04c['is']('element','tableCell')),_0x369b52=_0x40fa96['value'];_0x22ffcc['model']['change'](()=>{_0x1d8f45['markMultiRangeBlockFormat']([_0xf731bc,_0x369b52],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4d3ddf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x261df9=_0x22ffcc['commands']['get'](_0x4d3ddf);_0x1d8f45['enableCommand'](_0x4d3ddf,()=>{const _0x453fd0=_0x277c5['getSelectionAffectedTableCells'](_0x22ffcc['model']['document']['selection'])[0x0],_0x2fdab0=_0x453fd0['findAncestor']('table'),{column:_0x135e94,row:_0x334bae}=_0x277c5['getCellLocation'](_0x453fd0);let _0x4d748e=[];if('horizontally'==_0x261df9['direction']){const _0x392bb4=_0x277c5['createTableWalker'](_0x2fdab0,{'startRow':_0x334bae,'endRow':_0x334bae,'includeAllSlots':!0x0});_0x4d748e=Array['from'](_0x392bb4)['map'](_0x9d9fb8=>_0x9d9fb8['cell']);}else{const _0x1fe915=_0x277c5['createTableWalker'](_0x2fdab0,{'column':_0x135e94,'includeAllSlots':!0x0});_0x4d748e=Array['from'](_0x1fe915)['map'](_0x2044d5=>_0x2044d5['cell']);}_0x22ffcc['model']['change'](_0x2eb1e7=>{_0x1d8f45['markBlockFormat'](_0x2eb1e7['createRangeOn'](_0x453fd0),{'commandName':_0x4d3ddf,'commandParams':[]},_0x4d748e,_0x4d3ddf);});});}_0x1d8f45['descriptionFactory']['registerDescriptionCallback'](_0x55a41c=>{if('formatBlock'!=_0x55a41c['type']&&'formatInline'!=_0x55a41c['type'])return;const {data:_0xfb6962}=_0x55a41c;return _0xfb6962&&'mergeTableCells'==_0xfb6962['commandName']?{'type':'format','content':o(_0x41ab9f,'*Merge\x20cells*')}:void 0x0;}),_0x1d8f45['descriptionFactory']['registerDescriptionCallback'](_0x11dad5=>{if('formatBlock'!=_0x11dad5['type']&&'formatInline'!=_0x11dad5['type'])return;const {data:_0x440967}=_0x11dad5;return _0x440967?'splitTableCellVertically'==_0x440967['commandName']?{'type':'format','content':o(_0x41ab9f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x440967['commandName']?{'type':'format','content':o(_0x41ab9f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x568076=_0x428422['_acceptFormatSuggestionCallbackFactory']();for(const _0x25234f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1d8f45['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x25234f,'accept',_0x568076);for(const _0x2df0dd of['splitTableCellVertically','splitTableCellHorizontally'])_0x1d8f45['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2df0dd,'accept',_0x568076);_0x1d8f45['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2323d5=>{_0x22ffcc['model']['change'](_0x4298d4=>{const _0x1b50fe=Array['from'](_0x4ef73a['getRanges']())['map'](_0x4fd3b7=>_0x2eb8ca['fromRange'](_0x4fd3b7));_0x4298d4['setSelection'](_0x2323d5),_0x22ffcc['commands']['get']('mergeTableCells')['refresh'](),_0x22ffcc['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2c98a7=_0x1b50fe['filter'](_0x4cf849=>'$graveyard'!=_0x4cf849['root']['rootName']);_0x2c98a7['length']>0x0&&_0x4298d4['setSelection'](_0x2c98a7);for(const _0xf0dbb5 of _0x1b50fe)_0xf0dbb5['detach']();});});for(const _0x3de9fc of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x144d44=_0x22ffcc['commands']['get'](_0x3de9fc);_0x144d44['on']('set:isEnabled',(_0x48d42e,_0x1169f4,_0x48bb21)=>{if(_0x48bb21){const _0x2b9da7=_0x22ffcc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xfffb6=>_0xfffb6['is']('element','tableCell'));this['_areMergableCells'](_0x144d44['value'],_0x2b9da7)||(_0x48d42e['return']=!0x1,_0x48d42e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x46a70f=this['editor']['commands']['get']('mergeTableCells'),_0x4fd161=this['editor']['plugins']['get']('TableUtils');if(!_0x46a70f['isEnabled'])return!0x1;const _0x5c633f=_0x4fd161['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2e2079 of _0x5c633f)for(const _0x1192d7 of _0x5c633f)if(_0x2e2079!=_0x1192d7&&!this['_areMergableCells'](_0x2e2079,_0x1192d7))return!0x1;return!0x0;}['_areMergableCells'](_0x12e36c,_0x883538){const _0x4bbe88=this['editor']['plugins']['get']('TrackChangesEditing'),_0x560326=this['editor']['model']['createRangeOn'](_0x12e36c),_0x18dcd6=this['editor']['model']['createRangeOn'](_0x883538),_0x2fb6c5=new Set(),_0x9f5f2b=new Set();for(const _0x59e34f of _0x4bbe88['getSuggestions']())if(('insertion'==_0x59e34f['type']||'deletion'==_0x59e34f['type']||'mergeTableCells'==_0x59e34f['subType'])&&_0x59e34f['isInContent']){for(const _0x1cca6c of _0x59e34f['getRanges']())_0x1cca6c['containsRange'](_0x560326,!0x0)&&_0x2fb6c5['add'](_0x59e34f['type']+':'+_0x59e34f['author']['id']),_0x1cca6c['containsRange'](_0x18dcd6,!0x0)&&_0x9f5f2b['add'](_0x59e34f['type']+':'+_0x59e34f['author']['id']);}if(_0x2fb6c5['size']!=_0x9f5f2b['size'])return!0x1;for(const _0x4f324d of _0x2fb6c5)if(!_0x9f5f2b['has'](_0x4f324d))return!0x1;return!0x0;}}class Dt extends _0x42796e{static get['requires'](){return[Ct];}['afterInit'](){const _0xa541fc=this['editor'];if(!_0xa541fc['plugins']['has']('TableEditing'))return;const _0xf0b45d=_0xa541fc['locale'],_0x137f8c=_0xa541fc['plugins']['get']('TrackChangesEditing');_0x137f8c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x137f8c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x137f8c['registerBlockAttribute']('headingRows'),_0x137f8c['registerBlockAttribute']('headingColumns'),_0x137f8c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xf0b45d,'FORMAT_HEADER_ROW')),_0x137f8c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xf0b45d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x297c5d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1eaaad=this['editor']['plugins']['get']('TableUtils'),_0x36b2cb=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x136da7({showActiveMarker:_0x5936ef=!0x0,setDataAttribute:_0x5d9147=!0x0}={}){return(_0x515562,_0x3cc79d,_0x289791)=>{const {type:_0xb0e4b3,id:_0x2cfdd5}=_0x297c5d['_splitMarkerName'](_0x3cc79d['markerName']),_0x57265d=_0x297c5d['getSuggestion'](_0x2cfdd5),_0x2170a3=_0x57265d['data'];if('formatBlock'!=_0x57265d['type']||!_0x2170a3||'setTableColumnHeader'!=_0x2170a3['commandName'])return;if(_0x3cc79d['item'])return void _0x515562['stop']();if(!_0x289791['consumable']['consume'](_0x3cc79d['markerRange'],_0x515562['name']))return;const _0x426a51=_0x3cc79d['markerRange']['start']['nodeAfter'],_0x2eb9c6=_0x3cc79d['markerRange']['end']['nodeBefore'],_0x409c45=_0x426a51['parent']['parent'],{column:_0x2a0e19}=_0x1eaaad['getCellLocation'](_0x426a51),{column:_0x1c4c34}=_0x1eaaad['getCellLocation'](_0x2eb9c6);for(let _0x51a9d6=_0x2a0e19;_0x51a9d6<=_0x1c4c34;_0x51a9d6++){const _0x233200=_0x1eaaad['createTableWalker'](_0x409c45,{'column':_0x51a9d6,'includeAllSlots':!0x1});for(const _0x2aa314 of _0x233200){const _0x2daded=_0x2aa314['cell'],_0x607db1=_0x289791['mapper']['toViewElement'](_0x2daded);_0x289791['writer']['addClass']('ck-suggestion-marker-'+_0xb0e4b3,_0x607db1),_0x5d9147&&_0x289791['writer']['setAttribute']('data-suggestion',_0x2cfdd5,_0x607db1),_0x289791['mapper']['bindElementToMarker'](_0x607db1,_0x3cc79d['markerName']),_0x5936ef&&(_0x297c5d['activeMarkers']['includes'](_0x3cc79d['markerName'])?_0x289791['writer']['addClass']('ck-suggestion-marker--active',_0x607db1):_0x289791['writer']['removeClass']('ck-suggestion-marker--active',_0x607db1));}}};}_0x297c5d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36b2cb),_0x297c5d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36b2cb),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x136da7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d33bd,_0x4a5a2b,_0x4c9efd)=>{_0x4c9efd['options']['showSuggestionHighlights']&&_0x136da7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2d33bd,_0x4a5a2b,_0x4c9efd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x59e370,_0xfcfabf,_0x4d9a5a)=>{const {type:_0x10a0cf,id:_0x299dd8}=_0x297c5d['_splitMarkerName'](_0xfcfabf['markerName']),_0xdf0e48=_0x297c5d['getSuggestion'](_0x299dd8),_0x3aee00=_0xdf0e48['data'];if('formatBlock'!=_0xdf0e48['type']||!_0x3aee00||'setTableColumnHeader'!=_0x3aee00['commandName'])return;const _0x33ab8a=_0x4d9a5a['mapper']['markerNameToElements'](_0xfcfabf['markerName']);if(_0x33ab8a){for(const _0x882012 of _0x33ab8a)_0x4d9a5a['writer']['removeClass']('ck-suggestion-marker-'+_0x10a0cf,_0x882012),_0x4d9a5a['writer']['removeClass']('ck-suggestion-marker--active',_0x882012),_0x4d9a5a['writer']['removeAttribute']('data-suggestion',_0x882012),_0x4d9a5a['mapper']['unbindElementFromMarkerName'](_0x882012,_0xfcfabf['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x117492=this['editor'],_0x31e4d7=_0x117492['locale'];function _0x5a4206(_0x214d9e){return{'type':'format','content':o(_0x31e4d7,'*Format:*\x20%0',_0x214d9e)};}_0x117492['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf5e32=>{if('formatBlock'!=_0xf5e32['type'])return;const {data:_0x41a568}=_0xf5e32;if(_0x41a568){if('setTableRowHeader'==_0x41a568['commandName']){const _0x29b9ff=_0x41a568['commandParams'][0x0]['forceValue'];return _0x5a4206(o(_0x31e4d7,_0x29b9ff?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x41a568['commandName']){const _0x1d5aa0=_0x41a568['commandParams'][0x0]['forceValue'];return _0x5a4206(o(_0x31e4d7,_0x1d5aa0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x5a315a=>[_0x5a315a,null]));class Mt extends _0x42796e{static get['requires'](){return[Ct];}['afterInit'](){const _0x31b3dc=this['editor'];if(!_0x31b3dc['plugins']['has']('TableClipboard'))return;const _0x311d6d=_0x31b3dc['plugins']['get']('TrackChangesEditing'),_0x1789ba=_0x31b3dc['plugins']['get']('TableUtils'),_0x8f5aa2=_0x31b3dc['plugins']['get'](Ct),_0x33b67d=_0x31b3dc['plugins']['get']('TableClipboard');_0x8f5aa2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x31b3dc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x31b3dc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xe34dcd=null;_0x31b3dc['model']['on']('insertContent',(_0x3c866d,_0x572944)=>{const [_0x727144,_0x3499d6]=_0x572944,_0x4570bb=_0x572944[_0x572944['length']-0x1];_0x4570bb&&_0x4570bb['forceDefaultExecution']||_0x311d6d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x524d28,_0x379a9a,_0x38e86e,_0x15ac2b,_0xa07350){if(_0x379a9a&&!_0x379a9a['is']('documentSelection'))return!0x1;const _0x12088c=_0xa07350['getTableIfOnlyTableInContent'](_0x524d28,_0x38e86e);if(!_0x12088c||!Ue(_0x12088c,void 0x0,_0x15ac2b))return!0x1;const _0x1ca33c=_0x15ac2b['getSelectionAffectedTableCells'](_0x38e86e['document']['selection']);if(!_0x1ca33c['length'])return!0x1;const _0x2731b1=_0x1ca33c[0x0]['findAncestor']('table'),_0x168038=_0x15ac2b['getRowIndexes'](_0x1ca33c),_0x11b8f7=_0x15ac2b['getColumnIndexes'](_0x1ca33c),_0x534d63={'startRow':_0x168038['first'],'endRow':_0x168038['last'],'startColumn':_0x11b8f7['first'],'endColumn':_0x11b8f7['last']};return 0x1==_0x1ca33c['length']&&(_0x534d63['endRow']+=_0x15ac2b['getRows'](_0x12088c)-0x1,_0x534d63['endColumn']+=_0x15ac2b['getColumns'](_0x12088c)-0x1),Ue(_0x2731b1,_0x534d63,_0x15ac2b);}(_0x727144,_0x3499d6,_0x31b3dc['model'],_0x1789ba,_0x33b67d)&&(_0x3c866d['stop'](),_0xe34dcd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x31b3dc['model']['change'](()=>{_0x31b3dc['model']['insertContent'](_0x572944[0x0],_0x572944[0x1],_0x572944[0x2],{'forceDefaultExecution':!0x0});const _0x13bf4d=_0x55f348(),{rowInsertionRanges:_0x3e0094,columnInsertionRanges:_0x4949cc,insertionRanges:_0x188f36,deletionRanges:_0x73f7bd,cells:_0x30d1fc}=_0xe34dcd;_0x3e0094['length']&&_0x311d6d['markMultiRangeInsertion'](_0x3e0094,'tablePasteRow',{'tablePasteChainId':_0x13bf4d}),_0x4949cc['length']&&_0x311d6d['markMultiRangeInsertion'](_0x4949cc,'tablePasteColumn',{'tablePasteChainId':_0x13bf4d}),_0x188f36['length']&&(_0x311d6d['markMultiRangeInsertion'](_0x188f36,'tablePaste',{'tablePasteChainId':_0x13bf4d,'skipNestingCheck':!0x0}),_0x188f36['forEach'](_0x543b3a=>_0x543b3a['detach']?.())),_0x73f7bd['length']&&(_0x311d6d['markMultiRangeDeletion'](_0x73f7bd,'tablePaste',{'tablePasteChainId':_0x13bf4d,'skipNestingCheck':!0x0}),_0x73f7bd['forEach'](_0x56f4c4=>_0x56f4c4['detach']?.()));const _0x573564=_0x311d6d['markMultiRangeBlockFormat'](_0x30d1fc['map'](({element:_0x3cc925})=>_0x3cc925),{'formatGroupId':_0x55f348()},[],'tablePasteCell',{'tablePasteChainId':_0x13bf4d});if(_0x573564){const _0x511359=_0x573564['getMarkers'](),_0x4224ca=[];for(const {element:_0x4f35c1,attributes:_0x50c98a}of _0x30d1fc){if(!_0x50c98a)continue;const _0xa4bcc6=_0x31b3dc['model']['createRangeOn'](_0x4f35c1),_0x4c7534=_0x511359['find'](_0x45d7cb=>_0x45d7cb['getRange']()['isEqual'](_0xa4bcc6));_0x4c7534&&_0x4224ca['push']([_0x4c7534['name'],_0x50c98a]);}_0x4224ca['length']&&_0x573564['setAttribute']('markerAttributes',Object['fromEntries'](_0x4224ca));}_0xe34dcd=null;}));},{'priority':_0x56db26['high']+0xa}),_0x31b3dc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3d4c25,_0xf1f596)=>{const [_0x3a2a34,_0x943459,,_0xa0e893]=_0xf1f596;if(!_0xe34dcd)return;_0x3d4c25['stop']();const _0x569a1a=_0x3a2a34['cell'],_0x183429=_0x943459,_0x3923f3=Oe(_0x569a1a),_0x560e86=Oe(_0x183429);_0x3d4c25['return']=_0x569a1a;let _0x223f83=null,_0x4a0ddc=null;if(_0x560e86||_0x3923f3){if(_0x3923f3&&!_0x560e86){_0xa0e893['remove'](_0x569a1a['getChild'](0x0));for(const _0x3217d7 of Array['from'](_0x183429['getChildren']()))_0xa0e893['insert'](_0x3217d7,_0x569a1a,'end');const _0x26d0b3=_0xe34dcd['rowInsertionIndexes']['includes'](_0x3a2a34['row']),_0x87e6df=_0xe34dcd['columnInsertionIndexes']['includes'](_0x3a2a34['column']);_0x26d0b3||_0x87e6df||(_0x223f83=_0x2eb8ca['fromRange'](_0xa0e893['createRangeIn'](_0x569a1a)));}else _0x560e86&&!_0x3923f3&&(_0x4a0ddc=_0xa0e893['createRangeIn'](_0x569a1a));}else{const _0x285fe5=_0xa0e893['createElement']('tableCellSuggestion'),_0x1ffff6=_0xa0e893['createElement']('tableCellSuggestion');_0xa0e893['wrap'](_0xa0e893['createRangeIn'](_0x569a1a),_0x1ffff6),_0xa0e893['insert'](_0x285fe5,_0x569a1a,0x0);for(const _0x2d8909 of Array['from'](_0x183429['getChildren']()))_0xa0e893['insert'](_0x2d8909,_0x285fe5,'end');_0x223f83=_0x2eb8ca['fromRange'](_0xa0e893['createRangeOn'](_0x285fe5)),_0x4a0ddc=_0x2eb8ca['fromRange'](_0xa0e893['createRangeOn'](_0x1ffff6));}const _0x579fd2=Array['from'](_0x183429['getAttributes']())['filter'](([_0x94803])=>Be['includes'](_0x94803));_0xe34dcd['cells']['push']({'element':_0x569a1a,'attributes':_0x579fd2['length']?Object['fromEntries'](_0x579fd2):null}),_0x223f83&&_0xe34dcd['insertionRanges']['push'](_0x223f83),_0x4a0ddc&&_0xe34dcd['deletionRanges']['push'](_0x4a0ddc);},{'priority':'high'}),_0x1789ba['on']('insertColumns',(_0x223996,_0x3cc6e8)=>{const [_0x3e653e,_0x2c318f={}]=_0x3cc6e8;if(!_0xe34dcd)return;const _0xd13d3b=_0x2c318f['at']||0x0,_0x505936=_0x2c318f['columns']||0x1;_0xe34dcd['columnInsertionIndexes']=new Array(_0x505936)['fill'](_0xd13d3b)['map']((_0x1f70b8,_0xefdd8c)=>_0x1f70b8+_0xefdd8c);for(const {cell:_0x3acc70}of _0x1789ba['createTableWalker'](_0x3e653e,{'startColumn':_0xd13d3b,'endColumn':_0xd13d3b+_0x505936-0x1}))_0xe34dcd['columnInsertionRanges']['push'](_0x31b3dc['model']['createRangeOn'](_0x3acc70));},{'priority':'low'}),_0x1789ba['on']('insertRows',(_0x155112,_0x3b076f)=>{const [_0x4a9533,_0x58b88c={}]=_0x3b076f;if(!_0xe34dcd)return;const _0xec0e7=_0x58b88c['at']||0x0,_0x519ffe=_0x58b88c['rows']||0x1;_0xe34dcd['rowInsertionIndexes']=new Array(_0x519ffe)['fill'](_0xec0e7)['map']((_0x55f7f3,_0x4fc26c)=>_0x55f7f3+_0x4fc26c);for(const {cell:_0xac0d0b}of _0x1789ba['createTableWalker'](_0x4a9533,{'startRow':_0xec0e7,'endRow':_0xec0e7+_0x519ffe-0x1}))_0xe34dcd['rowInsertionRanges']['push'](_0x31b3dc['model']['createRangeOn'](_0xac0d0b));},{'priority':'low'}),_0x311d6d['descriptionFactory']['registerDescriptionCallback'](_0x221e53=>{if(_0x221e53['subType']&&_0x221e53['subType']['startsWith']('tablePaste'))return _0x221e53['previous']?{}:{'type':'insertion','content':o(_0x31b3dc['locale'],'*Replace\x20table\x20cells*')};});const _0x5ad0a1=()=>!0x1;for(const _0x253270 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x311d6d['_suggestionFactory']['registerCustomCallback']('insertion',_0x253270,'join',_0x5ad0a1),_0x311d6d['_suggestionFactory']['registerCustomCallback']('deletion',_0x253270,'join',_0x5ad0a1),_0x311d6d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x253270,'join',_0x5ad0a1);_0x311d6d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5ad0a1),_0x311d6d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x21fb5f,_0x464857,_0x5387ba)=>{const _0x24ff18=_0x21fb5f['map'](_0x320e87=>_0x320e87['getContainedElement']())['filter'](_0x8e0621=>_0x8e0621),_0x3c25a5=new Map(_0x24ff18['map'](_0x3c9877=>[_0x3c9877,null]));if(_0xe34dcd){for(const {element:_0x567b17,attributes:_0x4198e3}of _0xe34dcd['cells'])_0x4198e3&&_0x3c25a5['set'](_0x567b17,_0x4198e3);}else{if(_0x5387ba&&_0x5387ba['markerAttributes'])for(const [_0x46bbd2,_0x589f02]of Object['entries'](_0x5387ba['markerAttributes'])){const _0x5c0128=_0x31b3dc['model']['markers']['get'](_0x46bbd2),_0x135bef=_0x5c0128?_0x5c0128['getRange']()['getContainedElement']():null;_0x135bef&&_0x3c25a5['set'](_0x135bef,_0x589f02);}}_0x31b3dc['model']['change'](_0x4a0f54=>{for(const [_0x430847,_0x3cbf2e]of _0x3c25a5)_0x4a0f54['setAttributes']({...xe,..._0x3cbf2e},_0x430847);});});const _0xbca3d0=(_0x43c50a,_0x36d3e2)=>{_0x311d6d['_suggestionFactory']['registerCustomCallback'](_0x43c50a,'tablePaste',_0x36d3e2,(_0x13ccc8,_0x6738a0,_0x230ef8)=>{_0x31b3dc['model']['change'](_0x3ac692=>{const _0x14fbd2=[];for(const _0x178dc6 of _0x13ccc8){const _0x2ae10c=_0x178dc6['start']['nodeAfter'];_0x2ae10c['is']('element','tableCellSuggestion')&&_0x14fbd2['push'](_0x2ae10c);}_0x311d6d['_suggestionFactory']['getSuggestionCallback'](_0x43c50a,null,_0x36d3e2)(_0x13ccc8,_0x6738a0,_0x230ef8);for(const _0x2976a8 of _0x14fbd2)'$graveyard'!=_0x2976a8['root']['rootName']&&_0x3ac692['unwrap'](_0x2976a8);});});};_0xbca3d0('insertion','accept'),_0xbca3d0('insertion','discard'),_0xbca3d0('deletion','accept'),_0xbca3d0('deletion','discard'),_0x311d6d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3cca2d=>{const _0x4e482e=_0x3cca2d['map'](_0x530f42=>_0x530f42['getContainedElement']()),_0x596a73=_0x4e482e[0x0]['findAncestor']('table'),{minRow:_0x7897bb,maxRow:_0x1dd2b2}=_0x8f5aa2['_getCoordsForCells'](_0x4e482e);_0x1789ba['removeRows'](_0x596a73,{'at':_0x7897bb,'rows':_0x1dd2b2-_0x7897bb+0x1});}),_0x311d6d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x27e97d=>{const _0x129b4d=_0x27e97d['map'](_0x42e172=>_0x42e172['getContainedElement']()),_0x148a90=_0x129b4d[0x0]['findAncestor']('table'),{minColumn:_0x1bbf48,maxColumn:_0x2b4834}=_0x8f5aa2['_getCoordsForCells'](_0x129b4d);_0x1789ba['removeColumns'](_0x148a90,{'at':_0x1bbf48,'columns':_0x2b4834-_0x1bbf48+0x1});});const _0x1a82e5=(_0x29f07c,_0x11a5ab)=>{if(!_0x11a5ab['subType']||!_0x11a5ab['subType']['startsWith']('tablePaste'))return;const _0x1bc81d=_0x11a5ab['attributes']['tablePasteChainId'],_0x512635=_0x311d6d['getSuggestions']()['filter'](_0x12d03d=>_0x12d03d['isInContent']&&_0x12d03d['attributes']&&_0x12d03d['attributes']['tablePasteChainId']==_0x1bc81d);_0x512635['length']&&_0x11a5ab['getAllAdjacentSuggestions']()['length']!=_0x512635['length']&&_0x512635['reduce']((_0x431d63,_0x2545a9)=>(_0x431d63['next']=_0x2545a9,_0x2545a9['previous']=_0x431d63,_0x2545a9));};function _0x37b5ec(_0x35de86,_0x4f90aa=!0x0){const {id:_0x5de28c,authorId:_0x6fbbac}=_0x311d6d['_splitMarkerName'](_0x35de86['markerName']),_0x49135a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1ac8b4=_0x311d6d['activeMarkers']['includes'](_0x35de86['markerName']);return _0x1ac8b4&&_0x49135a['push']('ck-suggestion-marker--active'),{'classes':_0x49135a,'attributes':{'data-suggestion':_0x5de28c,'data-author-id':_0x6fbbac},'priority':_0x1ac8b4&&_0x4f90aa?0xbc2:0xbb8};}_0x311d6d['on']('suggestionLoaded',_0x1a82e5,{'priority':'high'}),_0x311d6d['on']('suggestionUnloaded',_0x1a82e5,{'priority':'high'}),_0x31b3dc['model']['document']['registerPostFixer'](()=>{let _0x4f5e1e=!0x1;const _0x26d245=Array['from'](_0x31b3dc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23a137,data:_0x2ae4be}of _0x26d245){const {group:_0x67d407,type:_0x32fb55,id:_0x465240}=_0x311d6d['_splitMarkerName'](_0x23a137);if('suggestion'!=_0x67d407||'deletion'!=_0x32fb55||_0x2ae4be['oldRange'])continue;if(!_0x311d6d['hasSuggestion'](_0x465240))continue;const _0x3f1c0e=_0x311d6d['getSuggestion'](_0x465240)['getRanges'](),_0x5bee18=_0x31b3dc['plugins']['get']('Users')['me'];for(const _0x432b83 of _0x311d6d['getSuggestions']()){if(!_0x432b83['isInContent']||_0x432b83['author']!=_0x5bee18)continue;if('formatBlock'!=_0x432b83['type']||'tablePasteCell'!=_0x432b83['subType'])continue;if(_0x432b83['getRanges']()['every'](_0x3d3cb9=>_0x3f1c0e['some'](_0x474cbb=>_0x474cbb['containsRange'](_0x3d3cb9,!0x0)))){for(const _0xdbf3de of _0x432b83['getAllAdjacentSuggestions']())_0xdbf3de['isInContent']&&(_0xdbf3de['discard'](),_0x4f5e1e=!0x0);}}}return _0x4f5e1e;}),_0x31b3dc['model']['document']['registerPostFixer'](_0x51cbd7=>{const _0x295bb0=_0x31b3dc['commands']['get']('redo');if(!_0x295bb0||!_0x295bb0['_createdBatches']['has'](_0x51cbd7['batch']))return!0x1;let _0x6b8c52=!0x1;const _0x562bf9=_0x31b3dc['plugins']['get']('Users')['me'],_0x20b6cc=_0x31b3dc['model']['document']['differ']['getChanges'](),_0x2efcc2=Array['from'](_0x31b3dc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x55dd28,data:_0x1f5b81})=>{const {group:_0xf607a9,subType:_0x32aabc,authorId:_0x5cb249}=_0x311d6d['_splitMarkerName'](_0x55dd28);return'suggestion'==_0xf607a9&&'tablePaste'==_0x32aabc&&_0x5cb249==_0x562bf9['id']&&!_0x1f5b81['oldRange'];});for(const _0x1aeba7 of _0x20b6cc){if('insert'!=_0x1aeba7['type']||'tableCellSuggestion'!=_0x1aeba7['name']||0x1!=_0x1aeba7['length'])continue;const _0x23fc3f=_0x51cbd7['createRange'](_0x1aeba7['position'],_0x1aeba7['position']['getShiftedBy'](0x1));if(!_0x2efcc2['find'](({data:_0x2877c9})=>_0x2877c9['newRange']['isEqual'](_0x23fc3f))){for(const {name:_0x380c2a,data:_0x1f7ede}of _0x2efcc2)if(_0x23fc3f['containsRange'](_0x1f7ede['newRange'])){_0x51cbd7['updateMarker'](_0x380c2a,{'range':_0x23fc3f}),_0x6b8c52=!0x0;break;}}}return _0x6b8c52;}),_0x31b3dc['model']['document']['registerPostFixer'](_0x9b154=>{let _0x11c49d=!0x1;const _0x383348=_0x31b3dc['plugins']['get']('Users')['me'],_0x122f1b=_0x311d6d['getSuggestions']()['filter'](_0x2cc643=>_0x2cc643['isInContent']&&_0x2cc643['author']==_0x383348),_0x48d8fc=new Set(),_0x44d495=new Set();for(const _0x33cc92 of _0x122f1b)if('tablePaste'==_0x33cc92['subType'])for(const _0x264537 of _0x33cc92['getMarkers']()){const _0x9a7b29=_0x264537['getRange']()['getContainedElement']();if(_0x9a7b29){if(_0x9a7b29['is']('element','tableCellSuggestion')&&Oe(_0x9a7b29)){_0x33cc92['removeMarker'](_0x264537['name']),_0x48d8fc['add'](_0x9a7b29),_0x11c49d=!0x0;const _0x5c1e92=_0x9a7b29['nextSibling'],_0x5a4588=_0x9a7b29['previousSibling'],_0x1e8c34=_0x5c1e92&&_0x5c1e92['is']('element','tableCellSuggestion'),_0x1dc84c=_0x5a4588&&_0x5a4588['is']('element','tableCellSuggestion');_0x1e8c34&&!_0x48d8fc['has'](_0x5c1e92)&&_0x44d495['add'](_0x5c1e92),_0x1dc84c&&!_0x48d8fc['has'](_0x5a4588)&&_0x44d495['add'](_0x5a4588);}else _0x9a7b29['is']('element','paragraph')&&_0x9a7b29['isEmpty']&&(_0x33cc92['removeMarker'](_0x264537['name']),_0x11c49d=!0x0);}}else{if('tablePasteCell'==_0x33cc92['subType']){if(!_0x33cc92['attributes']||!_0x33cc92['attributes']['tablePasteChainId'])continue;const _0x25045e=_0x33cc92['attributes']['markerAttributes'];if(_0x25045e&&Object['keys'](_0x25045e)['length'])continue;const _0x79bb1b=_0x33cc92['attributes']['tablePasteChainId'];let _0x234b7b=!0x0,_0x1f67f6=!0x0;for(const _0x1cf116 of _0x122f1b)if(_0x1cf116['subType']&&_0x1cf116['subType']['startsWith']('tablePaste')){if(!_0x1cf116['attributes']['tablePasteChainId']){_0x1f67f6=!0x1;break;}if(_0x1cf116['id']!=_0x33cc92['id']&&_0x1cf116['attributes']['tablePasteChainId']==_0x79bb1b){_0x234b7b=!0x1;break;}}_0x1f67f6&&_0x234b7b&&(_0x33cc92['removeMarkers'](),_0x11c49d=!0x0);}}for(const _0x1b7a94 of _0x48d8fc)_0x9b154['remove'](_0x1b7a94);for(const _0x333625 of _0x44d495)_0x9b154['unwrap'](_0x333625);return _0x11c49d;}),_0x31b3dc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xd1de32=>_0x37b5ec(_0xd1de32),'converterPriority':'high'}),_0x31b3dc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1b4eec,_0x2d7e18)=>_0x2d7e18['options']['showSuggestionHighlights']?_0x37b5ec(_0x1b4eec,!0x1):null,'converterPriority':'high'});const _0x284735=_0x31b3dc['editing']['view'];this['listenTo'](_0x284735['document'],'clipboardOutput',(_0x799693,_0x5732ad)=>{const _0x250ce5=[];for(const _0x2790b5 of _0x284735['createRangeIn'](_0x5732ad['content'])['getItems']())_0x2790b5['is']('element','suggestion-td')&&_0x250ce5['push'](_0x2790b5);_0x284735['change'](_0x12800e=>{for(const _0x4fcea0 of _0x250ce5)_0x12800e['move'](_0x12800e['createRangeIn'](_0x4fcea0),_0x12800e['createPositionBefore'](_0x4fcea0)),_0x12800e['remove'](_0x4fcea0);});});}}function Oe(_0x38e57e){if(_0x38e57e['isEmpty'])return!0x0;const _0x519ad7=_0x38e57e['getChild'](0x0);return _0x519ad7['is']('element','paragraph')&&_0x519ad7['isEmpty'];}function Ue(_0x3a1f62,_0x2f2d13={},_0x33e363){for(const {isAnchor:_0x1aede0,cellHeight:_0x6f90c7,cellWidth:_0xfbe2a6}of _0x33e363['createTableWalker'](_0x3a1f62,{'includeAllSlots':!0x0,..._0x2f2d13}))if(!_0x1aede0||0x1!=_0x6f90c7||0x1!=_0xfbe2a6)return!0x1;return!0x0;}class $t extends _0x42796e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x56ee66=this['editor']['plugins']['get']('TrackChangesEditing');_0x56ee66['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x56ee66['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x56ee66['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x56ee66['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x56ee66['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x56ee66['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4d08d6,_0x3727ea){const _0x2057d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59dc4f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x266b5f=_0x3727ea['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x22adce=_0x59dc4f['getColumnGroupElement'](_0x266b5f);let _0x16e64a=_0x22adce?_0x59dc4f['getTableColumnsWidths'](_0x22adce):null,_0x3800f1=_0x266b5f['getAttribute']('tableWidth')||null;const _0x1effd9=_0x3727ea['tableWidth']||_0x3800f1,_0x24ff78=_0x3727ea['columnWidths']||_0x16e64a,_0x4e7ecd=this['editor']['plugins']['get']('Users')['me'];for(const _0x423720 of _0x2057d2['getSuggestions']()){const _0x27c3fd=_0x423720['getContainedElement']();if('resizeTable'===_0x423720['subType']&&_0x27c3fd===_0x266b5f){_0x423720['author']!==_0x4e7ecd&&_0x423720['discard']();const _0x47790c=_0x423720['data']['commandParams'];_0x3800f1=_0x47790c[0x0]['tableWidth'],_0x16e64a=_0x47790c[0x0]['columnWidths'];break;}}_0x4d08d6({'table':_0x266b5f,'tableWidth':_0x1effd9,'columnWidths':_0x24ff78}),_0x2057d2['markBlockFormat'](_0x266b5f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3800f1,'columnWidths':_0x16e64a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x55338c){if('formatBlock'!=_0x55338c['type']&&'formatInline'!=_0x55338c['type'])return;const {data:_0xa03649}=_0x55338c;if(_0xa03649&&'resizeTable'===_0xa03649['formatGroupId']){const _0x6ce93c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x6ce93c)};}}}class Bt extends _0x42796e{['afterInit'](){const _0x22737a=this['editor'];_0x22737a['plugins']['has']('Template')&&_0x22737a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x42796e{['afterInit'](){const _0x1db6f9=this['editor'];if(!_0x1db6f9['commands']['get']('insertTableOfContents'))return;_0x1db6f9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5ae0e2=_0x1db6f9['plugins']['get']('TrackChangesEditing'),_0x33bbc8=_0x1db6f9['locale'];_0x5ae0e2['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3bc46f=>o(_0x33bbc8,'ELEMENT_TABLE_OF_CONTENTS',_0x3bc46f));}}class Rt extends _0x42796e{['afterInit'](){const _0x28b2bd=this['editor'];if(!_0x28b2bd['plugins']['has']('Title'))return;const _0x3cef26=_0x28b2bd['plugins']['get']('TrackChangesEditing');_0x3cef26['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x28b2bd['locale'],'ELEMENT_TITLE')),_0x28b2bd['model']['document']['registerPostFixer'](_0x49a6f5=>{let _0x3a4092=!0x1;const _0x3d1faf=Array['from'](_0x28b2bd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40807b,data:_0x31a382}of _0x3d1faf){const {group:_0x2a5398}=_0x3cef26['_splitMarkerName'](_0x40807b);if('suggestion'!==_0x2a5398||!_0x31a382['newRange'])continue;const _0x17fdbc=_0x31a382['newRange'],_0x345bd1=_0x17fdbc['end']['nodeBefore'];if(!_0x345bd1||!_0x345bd1['is']('element','title-content'))continue;if(!_0x17fdbc['start']['isTouching'](_0x17fdbc['end']))continue;const _0x214ab2=_0x28b2bd['model']['schema']['getNearestSelectionRange'](_0x17fdbc['end'],'forward');if(_0x214ab2&&_0x214ab2['isCollapsed']){const _0x54b6b3=_0x49a6f5['createRange'](_0x17fdbc['start'],_0x214ab2['start']);_0x54b6b3['isEqual'](_0x17fdbc)||(_0x49a6f5['updateMarker'](_0x40807b,{'range':_0x54b6b3}),_0x3a4092=!0x0);}_0x3a4092||(_0x49a6f5['removeMarker'](_0x40807b),_0x3a4092=!0x0);}return _0x3a4092;});}}class Tt extends _0x42796e{['afterInit'](){const _0x1a8d91=this['editor'],_0x58857c=_0x1a8d91['plugins']['get']('TrackChangesEditing');_0x1a8d91['plugins']['has']('Uploadcare')&&(_0x58857c['enableCommand']('uploadcare'),_0x1a8d91['plugins']['has']('UploadcareImageEdit')&&(_0x58857c['enableCommand']('uploadcareImageEdit'),_0x58857c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x58857c['registerBlockAttribute']('uploadcareImageId'),_0x58857c['descriptionFactory']['registerDescriptionCallback'](_0x501983=>{if('attribute'!=_0x501983['type'])return;const {data:_0x2b4d62}=_0x501983;return _0x2b4d62&&'uploadcareImageId'==_0x2b4d62['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x42796e{['afterInit'](){const _0x135b51=this['editor'],_0x1d5748=_0x135b51['plugins']['get']('TrackChangesEditing');_0x135b51['plugins']['has']('UndoEditing')&&(_0x1d5748['enableCommand']('undo'),_0x1d5748['enableCommand']('redo'));}}class Et extends _0x42796e{static get['requires'](){return[Ct];}['afterInit'](){const _0xb36074=this['editor'];if(!_0xb36074['plugins']['has']('TableCaptionEditing'))return;_0xb36074['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x42796e{['tableProperties'];['tableCellProperties'];constructor(_0x290013){super(_0x290013),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 _0x44fae1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x38426b of this['tableProperties'])_0x44fae1['enableCommand'](_0x38426b,(_0x55ff19,_0x5505b8)=>{const _0x12b492=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x38426b,[_0x12b492],this['tableProperties'],'tableProperties',_0x55ff19,_0x5505b8);});_0x44fae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x44fae1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44fae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2e4690,_0x4e9c9c)=>this['handleDiscardAction'](this['tableProperties'],_0x2e4690,_0x4e9c9c)),_0x44fae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5595ba of this['tableCellProperties'])_0x44fae1['enableCommand'](_0x5595ba,(_0x209dad,_0x251cc2)=>{const _0x1ce182=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5595ba,_0x1ce182,this['tableCellProperties'],'tableCellProperties',_0x209dad,_0x251cc2);});_0x44fae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x44fae1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44fae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1e283f,_0x57a9dd)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1e283f,_0x57a9dd)),_0x44fae1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x44fae1['descriptionFactory']['registerDescriptionCallback'](_0x52a00d=>this['handleSuggestionDescription'](_0x52a00d));}['_handlePropertyChange'](_0x165288,_0x40ec61,_0x225a2d,_0x5e47a0,_0x3acb15,_0x4aafae){const _0x238e46=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4aafae['batch'],()=>{for(const _0xea4924 of _0x40ec61){if(this['_getSuggestion'](_0xea4924,_0x5e47a0))_0x3acb15(_0x4aafae);else{const _0x3959f0={};for(const _0x3c3487 of _0x225a2d){const _0x1497c5=_0xea4924['getAttribute'](_0x3c3487);void 0x0!==_0x1497c5&&(_0x3959f0[_0x3c3487]=_0x1497c5);}_0x3acb15(_0x4aafae),_0x238e46['markBlockFormat'](_0xea4924,{'commandParams':[_0x3959f0]},[],_0x5e47a0);}}});}['handleDiscardAction'](_0x4131bd,_0x4c9e82,_0x41c95){const _0x2b5dc2=_0x4c9e82[0x0]['start']['nodeAfter'],_0x30ab35=_0x41c95['commandParams'][0x0];this['editor']['model']['change'](_0x164e79=>{for(const _0x50aba3 of _0x4131bd)void 0x0!==_0x30ab35[_0x50aba3]?_0x164e79['setAttribute'](_0x50aba3,_0x30ab35[_0x50aba3],_0x2b5dc2):_0x164e79['removeAttribute'](_0x50aba3,_0x2b5dc2);});}['handleSuggestionDescription'](_0x5b246c){if(_0x5b246c['data'])switch(_0x5b246c['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'](_0x21e948,_0x13fa6a){const _0x56645d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5addf3 of _0x56645d['getSuggestions']({'skipNotAttached':!0x0})){const _0x4e16cf=_0x5addf3['getContainedElement']();if(_0x5addf3['subType']===_0x13fa6a&&_0x4e16cf===_0x21e948)return _0x5addf3;}return null;}}const m='$elementName';class p extends _0x42796e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x555351,_0x1d58f4,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38c495){super(_0x38c495),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xcc8ccb,_0x104b73,_0x5f340d,_0x5e886a)=>{this['_model']['change'](()=>{for(const _0x45bd33 of[..._0x5e886a,..._0x5f340d])this['_model']['markers']['has'](_0x45bd33)&&_0x38c495['editing']['reconvertMarker'](_0x45bd33);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x38c495['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(),_0x38c495['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x38c495['config']['get']('trackChanges.trackFormatChanges'),_0x38c495['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x38c495['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x38c495,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3d2dea=this['editor'],_0x568028=(_0x10a20f,_0x2e09d0)=>{if('attribute'!=_0x10a20f)return'ck-suggestion-marker-'+_0x10a20f;const _0x375256=_0x2e09d0['split']('|')[0x0];return this['_isBlockAttribute'](_0x375256)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3d2dea['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x12e68d=>{const {id:_0x1c1d70,authorId:_0x3141f4,type:_0x2a6ac2,subType:_0x1880a6}=this['_splitMarkerName'](_0x12e68d['markerName']),_0x15c9c3=['ck-suggestion-marker',_0x568028(_0x2a6ac2,_0x1880a6)];let _0x10086b=0xbb8;return this['activeMarkers']['includes'](_0x12e68d['markerName'])&&(_0x15c9c3['push']('ck-suggestion-marker--active'),_0x10086b=0xbc2),'deletion'==_0x2a6ac2&&(_0x10086b+=0x5),{'classes':_0x15c9c3,'attributes':{'data-suggestion':_0x1c1d70,'data-author-id':_0x3141f4},'priority':_0x10086b};}}),_0x3d2dea['conversion']['for']('dataDowncast')['add'](_0x2ea3ac=>{_0x2ea3ac['on']('addMarker:suggestion',(_0x11343f,_0x46bbbd,_0x5e9f07)=>{if(!_0x5e9f07['options']['showSuggestionHighlights'])return;const _0x412813=_0x46bbbd['item'];if(!_0x412813)return;const _0x1b6974=_0x5e9f07['mapper']['toViewElement'](_0x412813);_0x3d2dea['model']['schema']['isObject'](_0x412813)&&_0x1b6974&&!_0x1b6974['getCustomProperty']('widget')&&_0x1b6974['is']('containerElement')&&_0x2881fe(_0x1b6974,_0x5e9f07['writer']);},{'priority':'high'});}),_0x3d2dea['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x525201,_0x3c902e)=>{if(!_0x3c902e['options']['showSuggestionHighlights'])return null;const {type:_0x5daeb1,subType:_0x159c81}=this['_splitMarkerName'](_0x525201['markerName']);return{'classes':['ck-suggestion-marker',_0x568028(_0x5daeb1,_0x159c81)],'priority':0xbb8};}});const _0xff68d1=({showActiveMarkers:_0x393d2b=!0x0,isAttributeSuggestion:_0x1c420b=!0x1}={})=>(_0x46e182,_0x566621,_0x121092)=>{if(!_0x566621['item'])return;const {id:_0x591d22,authorId:_0x584b6f}=this['_splitMarkerName'](_0x566621['markerName']);if(_0x1c420b){const _0x225088=this['_suggestions']['get'](_0x591d22),_0x632b1d=this['_getAttributeKey'](_0x225088);if(!this['_isBlockAttribute'](_0x632b1d))return;}if(_0x566621['item']['is']('selection'))return void _0x121092['consumable']['consume'](_0x566621['item'],_0x46e182['name']);const _0x424612=_0x121092['mapper']['toViewElement'](_0x566621['item']);if(_0x566621['item']['is']('element')&&_0x3d2dea['model']['schema']['isBlock'](_0x566621['item'])&&!_0x424612['getCustomProperty']('addHighlight')){_0x121092['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x424612),_0x121092['writer']['setAttribute']('data-suggestion',_0x591d22,_0x424612),_0x121092['writer']['setAttribute']('data-author-id',_0x584b6f,_0x424612),_0x121092['mapper']['bindElementToMarker'](_0x424612,_0x566621['markerName']),_0x393d2b&&(this['activeMarkers']['includes'](_0x566621['markerName'])?_0x121092['writer']['addClass']('ck-suggestion-marker--active',_0x424612):_0x121092['writer']['removeClass']('ck-suggestion-marker--active',_0x424612));for(const _0x42908d of _0x3d2dea['model']['createRangeIn'](_0x566621['item'])['getItems']())_0x121092['consumable']['consume'](_0x42908d,_0x46e182['name']);_0x121092['consumable']['consume'](_0x566621['item'],_0x46e182['name']);}};_0x3d2dea['conversion']['for']('dataDowncast')['add'](_0x332109=>{_0x332109['on']('addMarker:suggestion:formatBlock',(_0x15ba65,_0x326517,_0x3ac7a7)=>{_0x3ac7a7['options']['showSuggestionHighlights']&&_0xff68d1({'showActiveMarkers':!0x1})(_0x15ba65,_0x326517,_0x3ac7a7);},{'priority':'highest'});}),_0x3d2dea['conversion']['for']('dataDowncast')['add'](_0x5dd7a1=>{_0x5dd7a1['on']('addMarker:suggestion:attribute',(_0xed7f1d,_0x15c2ca,_0xfe0136)=>{_0xfe0136['options']['showSuggestionHighlights']&&_0xff68d1({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xed7f1d,_0x15c2ca,_0xfe0136);},{'priority':'highest'});}),_0x3d2dea['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4646e0,_0xf9ab)=>_0xf9ab['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4646e0['substr'](0xb)}}),_0x3d2dea['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x579072,{writer:_0x242ef5})=>{let _0x335db0='suggestion:'+_0x579072['getAttribute']('suggestion-type')+':'+_0x579072['getAttribute']('id');return _0x579072['getAttribute']('marker-count')&&(_0x335db0+=':'+_0x579072['getAttribute']('marker-count')),_0x242ef5['createElement']('$marker',{'data-name':_0x335db0});}}),_0x3d2dea['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3d2dea['conversion']['for']('editingDowncast')['add'](_0x2b5a53=>{_0x2b5a53['on']('addMarker:suggestion:formatBlock',_0xff68d1(),{'priority':'high'});}),_0x3d2dea['conversion']['for']('editingDowncast')['add'](_0x3339f2=>{_0x3339f2['on']('addMarker:suggestion:attribute',_0xff68d1({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3d2dea['conversion']['for']('editingDowncast')['add'](_0x30629c=>{_0x30629c['on']('removeMarker:suggestion:formatBlock',(_0x56d044,_0x1ac374,_0x1caf57)=>{const _0x3cc8da=_0x1caf57['mapper']['markerNameToElements'](_0x1ac374['markerName']);if(_0x3cc8da){for(const _0x9f48fc of _0x3cc8da)_0x9f48fc['getCustomProperty']('addHighlight')||(_0x1caf57['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9f48fc),_0x1caf57['writer']['removeAttribute']('data-suggestion',_0x9f48fc),_0x1caf57['writer']['removeAttribute']('data-author-id',_0x9f48fc),_0x1caf57['mapper']['unbindElementFromMarkerName'](_0x9f48fc,_0x1ac374['markerName']));}},{'priority':'high'});}),_0x3d2dea['conversion']['for']('editingDowncast')['add'](_0x2e8db2=>{_0x2e8db2['on']('removeMarker:suggestion:attribute',(_0x368ddb,_0x532b3b,_0x484aa0)=>{const _0x2dad85=_0x484aa0['mapper']['markerNameToElements'](_0x532b3b['markerName']);if(!_0x2dad85)return;const {id:_0x54d92e}=this['_splitMarkerName'](_0x532b3b['markerName']),_0x793753=this['_suggestions']['get'](_0x54d92e),_0x5027cc=this['_getAttributeKey'](_0x793753);if(this['_isBlockAttribute'](_0x5027cc)){for(const _0x2ceada of _0x2dad85)_0x2ceada['getCustomProperty']('addHighlight')||(_0x484aa0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ceada),_0x484aa0['writer']['removeAttribute']('data-suggestion',_0x2ceada),_0x484aa0['writer']['removeAttribute']('data-author-id',_0x2ceada),_0x484aa0['mapper']['unbindElementFromMarkerName'](_0x2ceada,_0x532b3b['markerName']));}},{'priority':'high'});}),_0x3d2dea['model']['document']['registerPostFixer'](_0x388e38=>{let _0x3ea605=!0x1;const _0x1cd17a=Array['from'](_0x3d2dea['model']['document']['differ']['getChangedMarkers']()),_0x64e47a=new Set();for(const {name:_0x1c5979,data:_0x4d6c2d}of _0x1cd17a){const {group:_0x2634ad,type:_0x4a9740,subType:_0x5e004a,id:_0x5b1562}=this['_splitMarkerName'](_0x1c5979);if('suggestion'!==_0x2634ad)continue;const _0xbc1d2d=this['_suggestions']['get'](_0x5b1562);if(null!=_0x4d6c2d['newRange']){'formatInline'==_0x4a9740&&(_0x3ea605=_0x3ea605||Lt(_0x4d6c2d['newRange'],_0x1c5979,_0x388e38,_0x3d2dea['model']['schema']));const _0x3a0a7e='attribute'==_0x4a9740&&this['_isBlockAttribute'](_0x5e004a['split']('|')[0x0]);if(_0x4d6c2d['newRange']['isCollapsed']||'$graveyard'==_0x4d6c2d['newRange']['root']['rootName']||'formatBlock'==_0x4a9740&&!Ht(_0x4d6c2d['newRange'])||_0x3a0a7e&&!Ht(_0x4d6c2d['newRange'])||'deletion'==_0x4a9740&&!(!Ft(_0xec8b22=_0x4d6c2d['newRange'])&&!function(_0x59884b){return _0x59884b['start']['parent']==_0x59884b['end']['nodeBefore']&&_0x59884b['start']['isAtEnd'];}(_0xec8b22)))_0x388e38['removeMarker'](_0x1c5979),_0x3ea605=!0x0;else{if(!_0xbc1d2d||!_0xbc1d2d['isInContent'])continue;if(_0x4d6c2d['newRange']&&_0x4d6c2d['oldRange']&&_0x4d6c2d['newRange']['isEqual'](_0x4d6c2d['oldRange']))continue;_0x64e47a['add'](_0xbc1d2d);}}}var _0xec8b22;return _0x64e47a['size']>0x0&&(_0x3ea605=!!this['_joinWithAdjacentSuggestions'](_0x64e47a)||_0x3ea605),_0x3ea605;}),_0x3d2dea['model']['document']['registerPostFixer'](_0x2fdf83=>{let _0xeb67d9=!0x1;for(const _0x882f41 of _0x3d2dea['model']['document']['differ']['getChanges']())if('insert'==_0x882f41['type'])for(const _0x10dc72 of this['_suggestions']['values']()){if(_0x10dc72['isMultiRange']||!_0x10dc72['isInContent'])continue;const _0x29594a='formatBlock'==_0x10dc72['type'],_0xf66d0f=this['_getAttributeKey'](_0x10dc72),_0x5b4f5f=_0xf66d0f&&this['_isBlockAttribute'](_0xf66d0f);if(!_0x29594a&&!_0x5b4f5f)continue;const _0x3c4c70=_0x10dc72['getFirstRange']();if(_0x3c4c70['start']['parent']!=_0x3c4c70['end']['parent']&&!_0x3c4c70['end']['isAtEnd']){const _0x731d0d=_0x3d2dea['model']['createPositionAt'](_0x3c4c70['start']['nodeAfter'],'end'),_0xd3e681=_0x3d2dea['model']['createRange'](_0x3c4c70['start'],_0x731d0d);_0x2fdf83['updateMarker'](_0x10dc72['getFirstMarker'](),{'range':_0xd3e681}),_0xeb67d9=!0x0;}}return _0xeb67d9;}),_0x3d2dea['model']['document']['registerPostFixer'](_0x3c9d62=>this['_processAttributeChanges'](_0x3c9d62)),_0x3d2dea['model']['document']['registerPostFixer'](_0xa6bd14=>!_0xa6bd14['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xa6bd14)),_0x3d2dea['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3d2dea['model']['document']['on']('change:data',(_0x4dac42,_0x242974)=>{if(!_0x242974['isLocal']||_0x242974['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3684a7=_0x3d2dea['model']['document']['differ']['getChanges']();if(0x0==_0x3684a7['length'])return;const _0x4b5d6a=[],_0x217c69=_0x3684a7['filter'](_0x13301c=>'attribute'==_0x13301c['type']),_0x3dfa5a=_0x3684a7['filter'](_0x1bddcd=>'insert'==_0x1bddcd['type']&&'$text'!=_0x1bddcd['name']);for(const _0x67d7f0 of _0x217c69)this['_isRegisteredAttribute'](_0x67d7f0['attributeKey'])&&_0x4b5d6a['push']({'key':_0x67d7f0['attributeKey'],'newValue':_0x67d7f0['attributeNewValue'],'oldValue':_0x67d7f0['attributeOldValue'],'range':qt(_0x67d7f0['range'],_0x3d2dea['model'])});for(const _0x462272 of _0x3dfa5a){if('rename'!=_0x462272['action']&&'refresh'!=_0x462272['action'])continue;const _0x182a01=zt(_0x462272['position']['nodeAfter'],_0x3d2dea['model']),_0x3624dc=_0x462272['before'];'rename'==_0x462272['action']&&_0x4b5d6a['push']({'key':m,'newValue':_0x462272['name'],'oldValue':_0x3624dc['name'],'range':_0x182a01});for(const [_0x44aa46,_0x9fd37c]of _0x3624dc['attributes']){if(!this['_isRegisteredAttribute'](_0x44aa46))continue;const _0x486ded=_0x462272['attributes']['get'](_0x44aa46);_0x9fd37c!==_0x486ded&&_0x4b5d6a['push']({'key':_0x44aa46,'newValue':_0x486ded,'oldValue':_0x9fd37c,'range':_0x182a01});}for(const [_0x3b6684,_0x321799]of _0x462272['attributes'])this['_isRegisteredAttribute'](_0x3b6684)&&(_0x3624dc['attributes']['has'](_0x3b6684)||_0x4b5d6a['push']({'key':_0x3b6684,'newValue':_0x321799,'oldValue':null,'range':_0x182a01}));}0x0!=_0x4b5d6a['length']&&_0x3d2dea['model']['enqueueChange'](_0x242974,_0x2c3073=>{const _0x2b8375=_0x55f348();for(const {range:_0x3ad4d0,key:_0x57d23c,oldValue:_0x215c71,newValue:_0x458e4f}of _0x4b5d6a)this['markAttributeChange'](_0x3ad4d0,_0x57d23c,_0x215c71,_0x458e4f,{'groupId':_0x2b8375});this['_reduceExistingSuggestions'](_0x2c3073,_0x4b5d6a);});},{'priority':'lowest'}),_0x3d2dea['model']['markers']['on']('update:suggestion',(_0x24cb97,_0x465883,_0x5312a6)=>{if(null==_0x5312a6){const {id:_0x55411b}=this['_splitMarkerName'](_0x465883['name']),_0x1a4c1c=this['_suggestions']['get'](_0x55411b);_0x1a4c1c&&_0x1a4c1c['addMarkerName'](_0x465883['name']);}}),_0x3d2dea['model']['document']['on']('change:data',()=>{const _0x426698=Array['from'](_0x3d2dea['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5f43a6=>'suggestion'===this['_splitMarkerName'](_0x5f43a6['name'])['group']);if(0x0===_0x426698['length'])return;_0x426698['sort']((_0x50d668,_0x3b601f)=>{const _0x3e295b=_0x50d668['data']['oldRange'],_0x5179ee=_0x3b601f['data']['oldRange'];return null===_0x3e295b&&null===_0x5179ee?0x0:null===_0x3e295b&&null!==_0x5179ee?-0x1:null!==_0x3e295b&&null===_0x5179ee?0x1:_0x3e295b['start']['isBefore'](_0x5179ee['start'])?-0x1:0x1;});const _0x403153=new Set(),_0x469a70=new Set();for(const {name:_0x41f148,data:_0x4df38d}of _0x426698){const {id:_0x31a781}=this['_splitMarkerName'](_0x41f148);if(null===_0x4df38d['oldRange']){const _0x127dc6=this['_handleNewSuggestionMarker'](_0x41f148);_0x469a70['add'](_0x127dc6);}else{const _0x1002bb=this['_suggestions']['get'](_0x31a781);null!==_0x4df38d['newRange']||_0x1002bb['isInContent']?(_0x403153['add'](_0x1002bb['head']),_0x469a70['add'](_0x1002bb)):this['_removeSuggestion'](_0x1002bb);}}_0x469a70['size']>0x0&&this['_refreshSuggestionsChain'](_0x469a70);for(const _0x45f560 of _0x403153)this['fire']('suggestionChanged',_0x45f560);}),_0x3d2dea['model']['on']('applyOperation',(_0x2f9648,_0x49600c)=>{const _0x444ebc=_0x49600c[0x0];if(!this['_suggestions']['size'])return;if(!_0x444ebc['isDocumentOperation'])return;if(_0x444ebc['batch']['isUndo']||!_0x444ebc['batch']['isLocal'])return;let _0x57bf43,_0x961fd6;switch(_0x444ebc['type']){case'insert':_0x57bf43=_0x3d2dea['model']['createPositionAt'](_0x444ebc['position']),_0x961fd6=_0x57bf43['getShiftedBy'](_0x444ebc['howMany']);break;case'split':_0x57bf43=_0x3d2dea['model']['createPositionAt'](_0x444ebc['splitPosition']),_0x961fd6=_0x3d2dea['model']['createPositionAt'](_0x444ebc['moveTargetPosition']);break;case'move':_0x57bf43=_0x3d2dea['model']['createPositionAt'](_0x444ebc['targetPosition']),_0x961fd6=_0x57bf43['getShiftedBy'](_0x444ebc['howMany']);break;default:return;}const _0x39798a=_0x3d2dea['model']['createRange'](_0x57bf43,_0x961fd6);_0x3d2dea['model']['change'](()=>{for(const {suggestion:_0x506121,meta:_0x37c2dd}of this['_findSuggestions'](_0x39798a)){if(_0x506121['isMultiRange'])continue;if('formatInline'==_0x506121['type'])continue;const _0xb361d5=this['_getAttributeKey'](_0x506121);if(_0xb361d5&&this['_isBlockAttribute'](_0xb361d5)&&'split'!=_0x444ebc['type'])continue;const _0x16ad51=_0x506121['data']&&_0x506121['data']['multipleBlocks'];('formatBlock'!=_0x506121['type']||'split'==_0x444ebc['type']&&!_0x16ad51)&&(_0x37c2dd['containsRangeInObject']||'insertion'==_0x506121['type']&&_0x37c2dd['isOwn']||_0x506121['getFirstRange']()['containsRange'](_0x39798a)&&this['_breakSuggestionMarker'](_0x506121,_0x57bf43,_0x961fd6));}});},{'priority':'lowest'}),_0x3d2dea['model']['on']('deleteContent',(_0x24ce4a,_0x15f765)=>{const _0x405d8c=_0x15f765[0x0],_0xd82b53=_0x15f765[0x1];if(_0xd82b53&&_0xd82b53['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x405d8c['isCollapsed'])return;const _0x38550d=_0x3d2dea['model']['schema'],{start:_0x1acb70,end:_0x29270c}=_0x405d8c['getFirstRange'](),_0x1361a5=_0x1acb70['nodeAfter']&&_0x38550d['isLimit'](_0x1acb70['nodeAfter'])?null:_0x38550d['getNearestSelectionRange'](_0x1acb70,'forward'),_0x1d146c=_0x29270c['nodeBefore']&&_0x38550d['isLimit'](_0x29270c['nodeBefore'])?null:_0x38550d['getNearestSelectionRange'](_0x29270c,'backward'),_0x139b61=_0x3d2dea['model']['createRange'](_0x1361a5?_0x1361a5['start']:_0x1acb70,_0x1d146c?_0x1d146c['end']:_0x29270c);_0x3d2dea['model']['change'](_0x5813ec=>{this['markDeletion'](_0x139b61);const _0x1ac052=_0x3d2dea['model']['schema']['getNearestSelectionRange'](_0x139b61['start']);_0x405d8c['is']('documentSelection')?_0x5813ec['setSelection'](_0x1ac052):_0x405d8c['setTo'](_0x1ac052);}),_0x24ce4a['stop']();},{'priority':_0x56db26['normal']+0xa}),_0x3d2dea['model']['on']('insertContent',(_0x2f5feb,_0x5e294f)=>{const _0x339446=_0x5e294f[_0x5e294f['length']-0x1];_0x339446&&_0x339446['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3d2dea['model']['change'](()=>{let _0x128d84=_0x3d2dea['model']['insertContent'](_0x5e294f[0x0],_0x5e294f[0x1],_0x5e294f[0x2],{'forceDefaultExecution':!0x0});if(!_0x128d84)return;_0x2f5feb['return']=_0x128d84['clone']();const _0x2611e7=_0x128d84['end']['nodeBefore'],_0x51433b=_0x3d2dea['model']['schema'];_0x2611e7&&_0x51433b['isBlock'](_0x2611e7)&&!_0x51433b['isObject'](_0x2611e7)&&(_0x128d84=_0x3d2dea['model']['createRange'](_0x128d84['start'],_0x3d2dea['model']['createPositionAt'](_0x2611e7,'end'))),this['markInsertion'](_0x128d84);}),_0x2f5feb['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x48f3a1=new O(_0x3d2dea,this['_suggestions']);_0x3d2dea['commands']['add']('acceptSuggestion',_0x48f3a1),this['enableCommand']('acceptSuggestion');const _0x791886=new R(_0x3d2dea,this['_suggestions']);_0x3d2dea['commands']['add']('discardSuggestion',_0x791886),this['enableCommand']('discardSuggestion'),_0x3d2dea['commands']['add']('acceptAllSuggestions',new x(_0x3d2dea,_0x48f3a1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3d2dea['commands']['add']('discardAllSuggestions',new x(_0x3d2dea,_0x791886,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3d2dea['commands']['add']('acceptSelectedSuggestions',new E(_0x3d2dea,_0x48f3a1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3d2dea['commands']['add']('discardSelectedSuggestions',new E(_0x3d2dea,_0x791886,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x23f98a=_0x3d2dea['plugins']['get']('CommentsRepository');this['listenTo'](_0x23f98a,'addComment',(_0x16fa76,{threadId:_0x1c7e69})=>{const _0x278171=this['_suggestions']['get'](_0x1c7e69);_0x278171&&_0x278171['commentThread']&&0x1===_0x278171['commentThread']['length']&&this['_updateSuggestionData'](_0x1c7e69,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x23f98a,'removeComment',(_0xee7462,{threadId:_0x117549})=>{const _0x4ac5b3=this['_suggestions']['get'](_0x117549);_0x4ac5b3&&_0x4ac5b3['commentThread']&&!_0x4ac5b3['commentThread']['length']&&this['_updateSuggestionData'](_0x117549,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5e80cb){const _0x100f41=_0x5f20e4([0x4e,0x30,0x78,0x6b,0x34,0x31,0x72,0x57,0x43,0x7a,0x51,0x55,0x56,0x4f,0x53,0x33,0x5a,0x77,0x48,0x39,0x47,0x4c,0x4a,0x6f,0x52,0x66,0x65,0x41,0x64,0x70,0x35,0x6d,0x61,0x58,0x46,0x4d,0x32,0x50,0x67,0x45,0x74,0x49,0x6c,0x6a,0x69,0x71,0x54,0x44,0x37,0x68,0x75,0x4b,0x59,0x62,0x73,0x76,0x63,0x38,0x42,0x79,0x6e,0x36]),_0x18b263=0xf8a859c,_0x117d66=0xf8de504^_0x18b263,_0x553975=window[_0x5f20e4([0x44,0x61,0x74,0x65])][_0x5f20e4([0x6e,0x6f,0x77])](),_0x541657=_0x5e80cb[_0x5f20e4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36ee71=new window[(_0x5f20e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c6d1b=>{_0x541657[_0x5f20e4([0x6f,0x6e,0x63,0x65])](_0x5f20e4([0x72,0x65,0x61,0x64,0x79]),_0x2c6d1b);}),_0x3217b5={[_0x5f20e4([0x6b,0x74,0x79])]:_0x5f20e4([0x45,0x43]),[_0x5f20e4([0x75,0x73,0x65])]:_0x5f20e4([0x73,0x69,0x67]),[_0x5f20e4([0x63,0x72,0x76])]:_0x5f20e4([0x50,0x2d,0x32,0x35,0x36]),[_0x5f20e4([0x78])]:_0x5f20e4([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]),[_0x5f20e4([0x79])]:_0x5f20e4([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]),[_0x5f20e4([0x61,0x6c,0x67])]:_0x5f20e4([0x45,0x53,0x32,0x35,0x36])},_0x206635=_0x541657[_0x5f20e4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5f20e4([0x67,0x65,0x74])](_0x5f20e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x117c36(){let _0x2f44cf,_0x1fd917=null,_0x3adc13=null;try{if(_0x206635==_0x5f20e4([0x47,0x50,0x4c]))return _0x5f20e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f44cf=_0x583fdf(),!_0x2f44cf)return _0x5f20e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f44cf[_0x5f20e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3adc13=_0x353f95(_0x2f44cf[_0x5f20e4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f44cf[_0x5f20e4([0x6a,0x74,0x69])])),await _0x20aa8()?_0x527810()?_0x5cf839()?_0x5f20e4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x57becc()?(_0x2f44cf[_0x5f20e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f20e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1fd917=_0xd2b9a2(_0x5f20e4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2f44cf[_0x5f20e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5f20e4([0x74,0x72,0x69,0x61,0x6c])&&(_0x1fd917=_0xd2b9a2(_0x5f20e4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xad82f4()):_0x5f20e4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5f20e4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5f20e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x308e3c){return _0x5f20e4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5cf839(){const _0x360d09=[_0x5f20e4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5f20e4([0x74,0x72,0x69,0x61,0x6c])][_0x5f20e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f44cf[_0x5f20e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x553975/0x3e8:0xe10*_0x117d66;return _0x2f44cf[_0x5f20e4([0x65,0x78,0x70])]<_0x360d09;}function _0x527810(){const _0x269e91=_0x2f44cf[_0x5f20e4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x269e91)return!0x1;if(_0x269e91[_0x5f20e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f20e4([0x2a])))return!0x0;if(_0x269e91[_0x5f20e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f20e4([0x54,0x43])))return!0x0;if(_0x269e91[_0x5f20e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f20e4([0x52,0x54,0x43]))){if(_0x5eeb0d())return!0x0;if(_0x2b3446()||_0x4326bb())return!0x0;}return!0x1;}function _0x57becc(){const _0xe8e73a=_0x2f44cf[_0x5f20e4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe8e73a||0x0==_0xe8e73a[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x93eb8}=new URL(window[_0x5f20e4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe8e73a[_0x5f20e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x93eb8))return!0x0;const _0x1f781f=_0x93eb8[_0x5f20e4([0x73,0x70,0x6c,0x69,0x74])](_0x5f20e4([0x2e]));return _0xe8e73a[_0x5f20e4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd1a4e3=>_0xd1a4e3[_0x5f20e4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f20e4([0x2a])))[_0x5f20e4([0x6d,0x61,0x70])](_0x31ce82=>_0x31ce82[_0x5f20e4([0x73,0x70,0x6c,0x69,0x74])](_0x5f20e4([0x2e])))[_0x5f20e4([0x73,0x6f,0x6d,0x65])](_0x51bc83=>_0x1f781f[_0x5f20e4([0x65,0x76,0x65,0x72,0x79])]((_0x26234f,_0x598e26)=>_0x51bc83[_0x598e26]===_0x26234f||_0x51bc83[_0x598e26]===_0x5f20e4([0x2a])));}function _0xad82f4(){return _0x1fd917&&_0x3adc13?new window[(_0x5f20e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x111603,_0x278887)=>{_0x1fd917[_0x5f20e4([0x74,0x68,0x65,0x6e])](_0x111603,_0x278887),_0x3adc13[_0x5f20e4([0x74,0x68,0x65,0x6e])](_0x4f97e0=>{_0x4f97e0!=_0x5f20e4([0x56,0x61,0x6c,0x69,0x64])&&_0x111603(_0x4f97e0);},_0x278887);}):_0x1fd917||_0x3adc13||_0x5f20e4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x353f95(_0x5be74e,_0x5cb001){return new window[(_0x5f20e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x382f60=>{if(_0x485d5a())return _0x382f60(_0x5f20e4([0x56,0x61,0x6c,0x69,0x64]));_0x7e623d(),_0x541657[_0x5f20e4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5f20e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5166d0=!0x1;const _0x3a01e2=_0x55f348();function _0x497795(_0x5bcc6e){return!!_0x5bcc6e&&(typeof _0x5bcc6e===_0x5f20e4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5bcc6e===_0x5f20e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5bcc6e[_0x5f20e4([0x74,0x68,0x65,0x6e])]===_0x5f20e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5bcc6e[_0x5f20e4([0x63,0x61,0x74,0x63,0x68])]===_0x5f20e4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e4cde(_0x667107){_0x55bb58(_0x667107)[_0x5f20e4([0x74,0x68,0x65,0x6e])](_0x87ce4c=>{if(!_0x87ce4c||_0x87ce4c[_0x5f20e4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5f20e4([0x6f,0x6b]))return _0x5f20e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x486984(_0x4fd6a7(_0x3a01e2+_0x5cb001))!=_0x87ce4c[_0x5f20e4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5f20e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5f20e4([0x56,0x61,0x6c,0x69,0x64]);})[_0x5f20e4([0x74,0x68,0x65,0x6e])](_0x58029a=>(_0x6250d5(),_0x58029a),()=>{const _0xd91b8f=_0x4c32d7();return null==_0xd91b8f?(_0x6250d5(),_0x5f20e4([0x56,0x61,0x6c,0x69,0x64])):_0x5f20e4(_0x553975-_0xd91b8f>(0x2b86019c^_0x18b263)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5f20e4([0x74,0x68,0x65,0x6e])](_0x382f60)[_0x5f20e4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x382f60(_0x5f20e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d6389=0xfbc6b1c^_0x18b263;function _0x6250d5(){const _0x1d81dd=_0x5f20e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x486984(_0x4fd6a7(_0x5be74e)),_0x529319=_0x47255c(_0x486984(window[_0x5f20e4([0x4d,0x61,0x74,0x68])][_0x5f20e4([0x63,0x65,0x69,0x6c])](_0x553975/_0x3d6389)));window[_0x5f20e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f20e4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d81dd,_0x529319);}function _0x4c32d7(){const _0x436e92=_0x5f20e4([0x6c,0x6c,0x63,0x74,0x2d])+_0x486984(_0x4fd6a7(_0x5be74e)),_0x2a841a=window[_0x5f20e4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5f20e4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x436e92);return _0x2a841a?window[_0x5f20e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47255c(_0x2a841a),0x10)*_0x3d6389:null;}function _0x55bb58(_0x38afec){return new window[(_0x5f20e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a5375,_0x1f27f5)=>{_0x38afec[_0x5f20e4([0x74,0x68,0x65,0x6e])](_0x3a5375,_0x1f27f5),window[_0x5f20e4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f27f5,0xf8b515c^_0x18b263);});}}_0x541657[_0x5f20e4([0x6f,0x6e])](_0x5f20e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x174b28,_0x4c7b67)=>{if(_0x4c7b67[0x0]!=_0x5be74e)return _0x382f60(_0x5f20e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c7b67[0x1]={..._0x4c7b67[0x1],[_0x5f20e4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a01e2};},{[_0x5f20e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f20e4([0x68,0x69,0x67,0x68])}),_0x541657[_0x5f20e4([0x6f,0x6e])](_0x5f20e4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53f63b=>{_0x497795(_0x53f63b[_0x5f20e4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5166d0=!0x0,_0x3e4cde(_0x53f63b[_0x5f20e4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5f20e4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5f20e4([0x6c,0x6f,0x77])}),_0x36ee71[_0x5f20e4([0x74,0x68,0x65,0x6e])](()=>{_0x5166d0||_0x382f60(_0x5f20e4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x485d5a(){return _0x541657[_0x5f20e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f20e4([0x76,0x69,0x65,0x77])][_0x5f20e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5f20e4([0x61,0x75,0x74,0x6f]);}function _0x7e623d(){_0x541657[_0x5f20e4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5f20e4([0x76,0x69,0x65,0x77])][_0x5f20e4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5f20e4([0x61,0x75,0x74,0x6f]);}}function _0xd2b9a2(_0xd7e682){const _0x1d45f7=[new window[(_0x5f20e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bd027=>setTimeout(_0x3bd027,0xf83bb50^_0x18b263)),_0x36ee71[_0x5f20e4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5f20e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39a84f=>{let _0x2d9088=0x0;_0x541657[_0x5f20e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f20e4([0x6f,0x6e])](_0x5f20e4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe626b,_0x518133)=>{_0x518133[0x0][_0x5f20e4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d9088++,_0x2d9088==(0xf8a8464^_0x18b263)&&(_0x39a84f(),_0xe626b[_0x5f20e4([0x6f,0x66,0x66])]());});}))];return window[_0x5f20e4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5f20e4([0x72,0x61,0x63,0x65])](_0x1d45f7)[_0x5f20e4([0x74,0x68,0x65,0x6e])](()=>_0xd7e682);}async function _0x8da690(){await _0x36ee71,_0x541657[_0x5f20e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f20e4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x185cc2,_0x541657[_0x5f20e4([0x6d,0x6f,0x64,0x65,0x6c])][_0x5f20e4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x185cc2,_0x541657[_0x5f20e4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5f20e4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5eeb0d(){return _0xa9b8d2(_0x5f20e4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5a3125(_0x5f20e4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5f20e4([0x73,0x74,0x61,0x74,0x65])]==_0x5f20e4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2b3446(){return _0xa9b8d2(_0x5f20e4([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 _0x4326bb(){return _0xa9b8d2(_0x5f20e4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x31e128(_0x5ebf66){const _0x1526b7=_0x540a55();_0x541657[_0x1526b7]=_0x5f20e4([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5ebf66,_0x5ebf66!=_0x5f20e4([0x56,0x61,0x6c,0x69,0x64])&&_0x8da690();}function _0x540a55(){const _0x581d39=window[_0x5f20e4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5f20e4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5f20e4([0x6e,0x6f,0x77])]())[_0x5f20e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5f20e4([0x2e]),'');let _0x5da867=_0x5f20e4([0x4e]);for(let _0x46ed56=0x0;_0x46ed56<_0x581d39[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46ed56+=0x2){let _0x49b1fc=window[_0x5f20e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x581d39[_0x5f20e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46ed56,_0x46ed56+0x2));_0x49b1fc>=_0x100f41[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49b1fc-=_0x100f41[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5da867+=_0x100f41[_0x49b1fc];}return _0x5da867;}function _0x583fdf(){const _0xf8d894=_0x206635[_0x5f20e4([0x73,0x70,0x6c,0x69,0x74])](_0x5f20e4([0x2e]));if(0x3!=_0xf8d894[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31a9e2(_0xf8d894[0x1]);function _0x31a9e2(_0x58e44c){const _0x4c1eed=_0x495d11(_0x58e44c);return _0x4c1eed&&_0x54e047()?_0x4c1eed:null;function _0x54e047(){const _0x26df44=_0x4c1eed[_0x5f20e4([0x6a,0x74,0x69])],_0x57386d=window[_0x5f20e4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26df44[_0x5f20e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26df44[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x267692={..._0x4c1eed,[_0x5f20e4([0x6a,0x74,0x69])]:_0x26df44[_0x5f20e4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26df44[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x267692[_0x5f20e4([0x76,0x63])],_0x4fd6a7(_0x267692)==_0x57386d;}}}async function _0x20aa8(){let _0x90c0d0=!0x0;try{const _0x5a8267=_0x206635[_0x5f20e4([0x73,0x70,0x6c,0x69,0x74])](_0x5f20e4([0x2e])),[_0x57ce60,_0x3fa499,_0x281986]=_0x5a8267;return _0x574baa(_0x57ce60),await _0x55107e(_0x57ce60,_0x3fa499,_0x281986),_0x90c0d0;}catch(_0x484ef8){return!0x1;}function _0x574baa(_0xea1dad){const _0x34b700=_0x495d11(_0xea1dad);_0x34b700&&_0x34b700[_0x5f20e4([0x61,0x6c,0x67])]==_0x5f20e4([0x45,0x53,0x32,0x35,0x36])||(_0x90c0d0=!0x1);}async function _0x55107e(_0x1870dc,_0x592f9c,_0x29de9e){const _0x182812=window[_0x5f20e4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5f20e4([0x66,0x72,0x6f,0x6d])](_0x52b4bf(_0x29de9e),_0x248562=>_0x248562[_0x5f20e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a651f=new window[(_0x5f20e4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5f20e4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1870dc+_0x5f20e4([0x2e])+_0x592f9c),_0x8c041f=window[_0x5f20e4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5f20e4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8c041f)return;const _0x1d4a3a=await _0x8c041f[_0x5f20e4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5f20e4([0x6a,0x77,0x6b]),_0x3217b5,{[_0x5f20e4([0x6e,0x61,0x6d,0x65])]:_0x5f20e4([0x45,0x43,0x44,0x53,0x41]),[_0x5f20e4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5f20e4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5f20e4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8c041f[_0x5f20e4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5f20e4([0x6e,0x61,0x6d,0x65])]:_0x5f20e4([0x45,0x43,0x44,0x53,0x41]),[_0x5f20e4([0x68,0x61,0x73,0x68])]:{[_0x5f20e4([0x6e,0x61,0x6d,0x65])]:_0x5f20e4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d4a3a,_0x182812,_0x2a651f)||(_0x90c0d0=!0x1);}}function _0x495d11(_0x11d65b){return _0x11d65b[_0x5f20e4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5f20e4([0x65,0x79]))?JSON[_0x5f20e4([0x70,0x61,0x72,0x73,0x65])](_0x52b4bf(_0x11d65b)):null;}function _0x52b4bf(_0x38d976){return window[_0x5f20e4([0x61,0x74,0x6f,0x62])](_0x38d976[_0x5f20e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5f20e4([0x2b]))[_0x5f20e4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5f20e4([0x2f])));}function _0x4fd6a7(_0x564055){let _0x4b0be2=0x1505;function _0x1e4564(_0x37d3a5){for(let _0x5c389f=0x0;_0x5c389f<_0x37d3a5[_0x5f20e4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c389f++){const _0x4a0c72=_0x37d3a5[_0x5f20e4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c389f);_0x4b0be2=(_0x4b0be2<<0x5)+_0x4b0be2+_0x4a0c72,_0x4b0be2&=_0x4b0be2;}}function _0x581194(_0x76c95f){Array[_0x5f20e4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x76c95f)?_0x76c95f[_0x5f20e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x581194):_0x76c95f&&typeof _0x76c95f==_0x5f20e4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5f20e4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x76c95f)[_0x5f20e4([0x73,0x6f,0x72,0x74])]()[_0x5f20e4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a3c14,_0x50aac8])=>{_0x1e4564(_0x1a3c14),_0x581194(_0x50aac8);}):_0x1e4564(window[_0x5f20e4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x76c95f));}return _0x581194(_0x564055),_0x4b0be2>>>0x0;}function _0x486984(_0xb350c5){return _0xb350c5[_0x5f20e4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5f20e4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5f20e4([0x30]));}function _0x47255c(_0x5f2e17){return _0x5f2e17[_0x5f20e4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5f20e4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5f20e4([0x6a,0x6f,0x69,0x6e])]('');}function _0xa9b8d2(_0x3ec4c6){return _0x541657[_0x5f20e4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f20e4([0x68,0x61,0x73])](_0x3ec4c6);}function _0x5a3125(_0x138e72){return _0x541657[_0x5f20e4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5f20e4([0x67,0x65,0x74])](_0x138e72);}function _0x185cc2(){}function _0x5f20e4(_0x3cb885){return _0x3cb885['map'](_0x5c7073=>String['fromCharCode'](_0x5c7073))['join']('');}_0x31e128(await _0x117c36());}(this);}set['adapter'](_0x41fea0){if(this['_adapter'])throw new _0x4aa60d('track-changes-adapter-already-set',this);this['_adapter']=_0x41fea0;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe49d96=!0x1,toJSON:_0x5bc6f1=!0x1}={}){const _0x372030=[];for(const _0x450952 of this['_suggestions']['values']())_0xe49d96&&!_0x450952['isInContent']||_0x372030['push'](_0x450952);return _0x5bc6f1?_0x372030['map'](_0xca025=>_0xca025['toJSON']()):_0x372030;}['getSuggestion'](_0x16c676){const _0x22c7b1=this['_suggestions']['get'](_0x16c676);if(!_0x22c7b1)throw new _0x4aa60d('track-changes-suggestion-not-found',this);return _0x22c7b1;}['hasSuggestion'](_0x346214){return this['_suggestions']['has'](_0x346214);}['addSuggestionData'](_0x4db703){const {authorId:_0x327c21,id:_0x3d60df,attributes:_0x4c7398}=_0x4db703,[_0x38ac81,_0x5d4302]=_0x4db703['type']['split'](':'),_0x4880e3=this['_suggestions']['get'](_0x3d60df)||this['_createSuggestion'](_0x38ac81,_0x5d4302,_0x3d60df,_0x327c21,_0x4c7398);if(this['_addThreadToSuggestion'](_0x4880e3),this['_checkSuggestionCorrectness'](_0x4880e3,_0x38ac81,_0x5d4302||null,_0x327c21),_0x4880e3['createdAt']=_0x4db703['createdAt'],_0x4880e3['_isDataLoaded']=!0x0,_0x4c7398&&_0x4c7398['@external']){const _0x495e9e=_0x4c7398['@external'],_0x56d2fa=this['_getExternalAuthor'](_0x495e9e['authorName']);_0x4880e3['authoredAt']=_0x495e9e['createdAt'],_0x4880e3['author']=_0x56d2fa,_0x4880e3['isExternal']=!0x0;}else _0x4880e3['authoredAt']=_0x4db703['createdAt'];switch(_0x4db703['data']&&(_0x4880e3['data']=_0x4db703['data']),_0x4db703['attributes']&&(_0x4880e3['attributes']=_0x4db703['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4880e3['_saved']=!0x0),this['_suggestionState']['get'](_0x4880e3)){case'notReady':this['_suggestionState']['set'](_0x4880e3,'dataReady');break;case'markerReady':_0x4880e3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4880e3])),this['_refreshSuggestionsChain'](new Set([_0x4880e3])),this['_suggestionState']['set'](_0x4880e3,'ready'),this['fire']('suggestionLoaded',_0x4880e3)):this['_suggestionState']['set'](_0x4880e3,'removed');}return _0x4880e3;}['acceptSuggestion'](_0x9510b9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x8d37fd of _0x9510b9['getAllAdjacentSuggestions']())_0x8d37fd['accept']();});});}['discardSuggestion'](_0x38ece7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x50d69e of _0x38ece7['getAllAdjacentSuggestions']())_0x50d69e['discard']();});});}['enableCommand'](_0x22ab2f,_0xc2ce40){const _0x17e3b6=this['editor']['commands']['get'](_0x22ab2f);if(!_0x17e3b6)throw new _0x4aa60d('track-changes-command-not-found',this,{'commandName':_0x22ab2f});if(this['_enabledCommands']['has'](_0x17e3b6))throw new _0x4aa60d('track-changes-enable-command-twice',this,{'commandName':_0x22ab2f});this['_enabledCommands']['add'](_0x17e3b6),_0xc2ce40&&_0x17e3b6['on']('execute',(_0x1f3239,_0x4b134f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4b134f['length']>0x0&&_0x4b134f[_0x4b134f['length']-0x1]&&_0x4b134f[_0x4b134f['length']-0x1]['forceDefaultExecution']?_0x4b134f['pop']():(_0x1f3239['return']=_0xc2ce40((..._0x3fed26)=>_0x17e3b6['execute'](..._0x3fed26,{'forceDefaultExecution':!0x0}),..._0x4b134f),_0x1f3239['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3f2e21){let _0x56b433,_0x5e08d0;const _0x35790a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x56b433=_0x3f2e21();}catch(_0x5f2021){_0x5e08d0=_0x5f2021;}return _0x35790a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5e08d0&&_0x4aa60d['rethrowUnexpectedError'](_0x5e08d0,this),_0x56b433;}['markInsertion'](_0x118d92,_0x3d796c=null,_0x5e4ebe={}){if(_0x118d92['isCollapsed'])return null;const _0x238c52=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x525f8e,meta:_0xda853e}of this['_findSuggestions'](_0x118d92,'insertion'))if(_0xda853e['isOwn']){if(!_0xda853e['isNextTo']){if(_0xda853e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x525f8e,_0x5e4ebe))continue;return _0x525f8e;}if(Qt(_0x525f8e,_0x5e4ebe))return _0x525f8e;this['_breakSuggestionMarker'](_0x525f8e,_0x118d92['start'],_0x118d92['end']);break;}if(_0x3d796c==_0x525f8e['subType']&&Qt(_0x525f8e,_0x5e4ebe)){const _0x280287=_0x525f8e['getFirstRange']();return _0x280287['start']['isEqual'](_0x118d92['end'])?this['_setSuggestionRange'](_0x525f8e,this['_model']['createRange'](_0x118d92['start'],_0x280287['end'])):this['_setSuggestionRange'](_0x525f8e,this['_model']['createRange'](_0x280287['start'],_0x118d92['end'])),_0x525f8e;}}const _0x46a53f=_0x55f348(),_0x24f831=_0x238c52['id'],_0xdeae36=_0x3d796c?'insertion:'+_0x3d796c:'insertion',_0xa762f5=this['_setSuggestionData']({'id':_0x46a53f,'type':_0xdeae36,'createdAt':new Date(),'authorId':_0x24f831,'attributes':_0x5e4ebe});return this['_addSuggestionMarker'](_0xdeae36,_0x46a53f,_0x24f831,_0x118d92),_0xa762f5;}['markMultiRangeInsertion'](_0x267a6d,_0x406b8c='multi',_0x76015f={}){const _0x4193a7=this['editor']['plugins']['get']('Users')['me'],_0xcdff9e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x406b8c,'join');for(const _0x3bf35d of this['getSuggestions']())if(_0x3bf35d['author']['id']==_0x4193a7['id']&&'insertion'==_0x3bf35d['type']&&_0x3bf35d['subType']==_0x406b8c&&Qt(_0x3bf35d,_0x76015f)&&(_0xcdff9e(_0x3bf35d['getRanges'](),_0x267a6d)||_0xcdff9e(_0x267a6d,_0x3bf35d['getRanges']()))){for(const _0x5aa099 of _0x267a6d)_0x3bf35d['addRange'](_0x5aa099);return _0x3bf35d;}for(const {suggestion:_0x5ba36e,meta:_0x40651f}of this['_findSuggestions'](_0x267a6d,'insertion')){if(!_0x40651f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x40651f['containsRangeInObject'])continue;if(!Qt(_0x5ba36e,_0x76015f))continue;let _0xcc413=!0x0;for(const _0x3b9d8f of _0x5ba36e['getRanges']())for(const _0x625c8c of _0x267a6d)if(!_0x3b9d8f['containsRange'](_0x625c8c)){_0xcc413=!0x1;break;}if(_0xcc413)return _0x5ba36e;}const _0x34831e=_0x55f348(),_0x585bc0=_0x4193a7['id'],_0x369869='insertion:'+_0x406b8c,_0x3b0abf=this['_setSuggestionData']({'id':_0x34831e,'type':_0x369869,'createdAt':new Date(),'authorId':_0x585bc0,'attributes':_0x76015f});for(const _0x36edeb of _0x267a6d)this['_addSuggestionMarker'](_0x369869,_0x34831e,_0x585bc0,_0x36edeb,u['getMultiRangeId']());return _0x3b0abf;}['markInlineFormat'](_0x193189,_0x2630c1,_0x51336e=null,_0x324739={}){if(_0x51336e=_0x51336e||Jt(_0x2630c1),_0x193189['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3b3056=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x51336e,'accept');return this['forceDefaultExecution'](()=>_0x3b3056([_0x193189],_0x2630c1,_0x324739)),null;}const _0x1dc506=this['editor']['plugins']['get']('Users')['me'],_0x34337b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4ab025,meta:_0x2df50b}of this['_findSuggestions'](_0x193189,'insertion'))_0x2df50b['isOwn']&&!_0x2df50b['isInsideObject']&&_0x34337b['push'](..._0x4ab025['getRanges']());}const _0x1f5ab0=function(_0x5af5bd,_0x51d653){const _0x3fbf2=[];for(const _0x1a0f4d of _0x51d653){const _0x36b1c6=_0x5af5bd['getIntersection'](_0x1a0f4d);_0x36b1c6&&_0x3fbf2['push'](_0x36b1c6);}return _0x3fbf2;}(_0x193189,_0x34337b),_0x415c64=function(_0x2066e8,_0x110d63){const _0x3b7a5f=[_0x2066e8];for(const _0xca80f7 of _0x110d63){let _0x34cb08=0x0;for(;_0x34cb08<_0x3b7a5f['length'];){const _0x16a73f=_0x3b7a5f[_0x34cb08]['getDifference'](_0xca80f7);_0x3b7a5f['splice'](_0x34cb08,0x1,..._0x16a73f),_0x34cb08+=_0x16a73f['length'];}}return _0x3b7a5f;}(_0x193189,_0x34337b);_0x1f5ab0['length']&&this['_model']['change'](()=>{for(const _0x58e1ac of _0x1f5ab0){const _0x32e92a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x51336e,'accept');this['forceDefaultExecution'](()=>_0x32e92a([_0x58e1ac],_0x2630c1,_0x324739));}});for(const _0x519c82 of _0x415c64){let _0x17652a=null,_0x30b6b6=_0x519c82['start'],_0x588ce8=_0x519c82['end'];for(const {suggestion:_0x476f29,meta:_0x3bf6c6}of this['_findSuggestions'](_0x519c82,'formatInline')){if(!_0x3bf6c6['isOwn'])continue;if(_0x476f29['subType']!=_0x51336e)continue;if(!Qt(_0x476f29,_0x324739))continue;const _0x9dac60=_0x476f29['getFirstRange']();if(_0x9dac60['containsRange'](_0x519c82,!0x0))return null;_0x30b6b6=_0x30b6b6['isBefore'](_0x9dac60['start'])?_0x30b6b6:_0x9dac60['start'],_0x588ce8=_0x588ce8['isAfter'](_0x9dac60['end'])?_0x588ce8:_0x9dac60['end'],_0x17652a?_0x9dac60['start']['isBefore'](_0x17652a['getFirstRange']()['start'])?(_0x17652a['removeMarkers'](),_0x17652a=_0x476f29):_0x476f29['removeMarkers']():_0x17652a=_0x476f29;}const _0x493bae=this['_model']['createRange'](_0x30b6b6,_0x588ce8);if(_0x17652a)this['_setSuggestionRange'](_0x17652a,_0x493bae);else{const _0x14d280=_0x55f348(),_0x221259=_0x1dc506['id'];this['_setSuggestionData']({'id':_0x14d280,'type':'formatInline:'+_0x51336e,'data':_0x2630c1,'createdAt':new Date(),'authorId':_0x221259,'attributes':_0x324739}),this['_addSuggestionMarker']('formatInline:'+_0x51336e,_0x14d280,_0x221259,_0x493bae);}}return null;}['markBlockFormat'](_0x456d72,_0x2e6b4a,_0x43ba64=[],_0x343a3d=null,_0x303f5d={}){_0x2e6b4a['formatGroupId']||(_0x2e6b4a['formatGroupId']=_0x2e6b4a['commandName']),_0x2e6b4a['multipleBlocks']=_0x456d72['is']('range'),_0x343a3d=_0x343a3d||Jt(_0x2e6b4a);const _0x4198e6=_0x43ba64['map'](_0x1145a1=>zt(_0x1145a1,this['_model'])),_0x39efab=_0x456d72['is']('range')?_0x456d72:zt(_0x456d72,this['_model']);if('never'===this['_trackFormatChanges']){const _0x113511=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x343a3d,'accept');return this['forceDefaultExecution'](()=>_0x113511([_0x39efab],_0x2e6b4a,_0x303f5d)),null;}_0x4198e6['push'](_0x39efab);let _0x533723=!0x0;for(const _0x4e81d2 of _0x4198e6)if(!this['_rangeIsInLocalUserInsertion'](_0x4e81d2)){_0x533723=!0x1;break;}if(_0x533723&&'always'!==this['_trackFormatChanges']){const _0x371fd9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x343a3d,'accept');return this['forceDefaultExecution'](()=>_0x371fd9([_0x39efab],_0x2e6b4a,_0x303f5d)),null;}let _0x5b8176=null,_0x38cc2f=_0x39efab['start'],_0xe23c31=_0x39efab['end'];for(const {suggestion:_0x19b50c,meta:_0x56537b}of this['_findSuggestions'](_0x39efab,'formatBlock')){if(!_0x56537b['isOwn'])continue;if(_0x56537b['isNextTo']||_0x56537b['containsRangeInObject']||_0x56537b['isInsideObject'])continue;if(_0x19b50c['data']['formatGroupId']!=_0x2e6b4a['formatGroupId'])continue;if(!Qt(_0x19b50c,_0x303f5d))continue;const _0x2d94f4=_0x19b50c['getFirstRange']();if(_0x19b50c['subType']==_0x343a3d){if(_0x2d94f4['containsRange'](_0x39efab,!0x0))return null;_0x38cc2f=_0x38cc2f['isBefore'](_0x2d94f4['start'])?_0x38cc2f:_0x2d94f4['start'],_0xe23c31=_0xe23c31['isAfter'](_0x2d94f4['end'])?_0xe23c31:_0x2d94f4['end'],_0x5b8176?_0x2d94f4['start']['isBefore'](_0x5b8176['getFirstRange']()['start'])?(_0x5b8176['removeMarkers'](),_0x5b8176=_0x19b50c):_0x19b50c['removeMarkers']():_0x5b8176=_0x19b50c;}else{const _0x15d892=_0x39efab['getIntersection'](_0x2d94f4);this['_cutOutSuggestionMarker'](_0x19b50c,_0x15d892);}}const _0x285a7e=this['editor']['plugins']['get']('Users')['me'],_0x1385f4=_0x55f348(),_0x1ba2bd=_0x285a7e['id'];if(_0x5b8176)return this['_setSuggestionRange'](_0x5b8176,this['_model']['createRange'](_0x38cc2f,_0xe23c31)),_0x5b8176;{const _0x3a75b3=this['_setSuggestionData']({'id':_0x1385f4,'type':'formatBlock:'+_0x343a3d,'data':_0x2e6b4a,'createdAt':new Date(),'authorId':_0x1ba2bd,'attributes':_0x303f5d});return this['_addSuggestionMarker']('formatBlock:'+_0x343a3d,_0x1385f4,_0x1ba2bd,this['_model']['createRange'](_0x38cc2f,_0xe23c31)),_0x3a75b3;}}['markMultiRangeBlockFormat'](_0x2d5e97,_0x283ce9,_0xa4ddfd=[],_0x11cd2c=null,_0x54bf47={}){_0x283ce9['formatGroupId']||(_0x283ce9['formatGroupId']=_0x283ce9['commandName']);const _0xf6d225=_0x2d5e97[0x0];_0x283ce9['multipleBlocks']=_0xf6d225['is']('range'),_0x11cd2c=_0x11cd2c||Jt(_0x283ce9);const _0x3940c5=_0xa4ddfd['map'](_0x1b0396=>zt(_0x1b0396,this['_model'])),_0x196bcb=_0xf6d225['is']('range')?_0x2d5e97:_0x2d5e97['map'](_0x555f41=>zt(_0x555f41,this['_model']));if('never'===this['_trackFormatChanges']){const _0x518874=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11cd2c,'accept');return this['forceDefaultExecution'](()=>_0x518874(_0x196bcb,_0x283ce9,_0x54bf47)),null;}_0x3940c5['push'](..._0x196bcb);let _0x2eafb9=!0x0;for(const _0xee7aca of _0x3940c5)if(!this['_rangeIsInLocalUserInsertion'](_0xee7aca)){_0x2eafb9=!0x1;break;}if(_0x2eafb9&&'always'!==this['_trackFormatChanges']){const _0x39edec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11cd2c,'accept');return this['forceDefaultExecution'](()=>_0x39edec(_0x196bcb,_0x283ce9,_0x54bf47)),null;}const _0x1e2bca=this['editor']['plugins']['get']('Users')['me'];for(const _0xda0c5 of this['getSuggestions']()){if(_0xda0c5['author']['id']!=_0x1e2bca['id'])continue;if('formatBlock'!=_0xda0c5['type']||_0xda0c5['data']['formatGroupId']!=_0x283ce9['formatGroupId'])continue;if(!Qt(_0xda0c5,_0x54bf47))continue;const _0x3ed20a=_0xda0c5['subType']==_0x11cd2c;for(let _0x4ad5fe=0x0;_0x4ad5fe<_0x196bcb['length'];_0x4ad5fe++){const _0x5c58d5=_0x196bcb[_0x4ad5fe];for(const _0x32b1e9 of _0xda0c5['getMarkers']()){const _0x536eca=_0x32b1e9['getRange']();if(_0x5c58d5['isEqual'](_0x536eca)){_0x3ed20a?(_0x196bcb['splice'](_0x4ad5fe,0x1),_0x4ad5fe--):_0xda0c5['removeMarker'](_0x32b1e9['name']);break;}}}}if(0x0==_0x196bcb['length'])return null;const _0x2f24b4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11cd2c,'join');for(const _0x330682 of this['getSuggestions']())if(_0x330682['author']['id']==_0x1e2bca['id']&&'formatBlock'==_0x330682['type']&&_0x330682['data']['formatGroupId']==_0x283ce9['formatGroupId']&&_0x330682['subType']==_0x11cd2c&&Qt(_0x330682,_0x54bf47)&&(_0x2f24b4(_0x330682['getRanges'](),_0x196bcb)||_0x2f24b4(_0x196bcb,_0x330682['getRanges']()))){for(const _0x3b3de5 of _0x196bcb)_0x330682['addRange'](_0x3b3de5);return _0x330682;}const _0x84e4ad=_0x55f348(),_0x358180=_0x1e2bca['id'],_0x31cdf7='formatBlock:'+_0x11cd2c,_0x194a2a=this['_setSuggestionData']({'id':_0x84e4ad,'type':_0x31cdf7,'data':_0x283ce9,'createdAt':new Date(),'authorId':_0x358180,'attributes':_0x54bf47});for(const _0x5f476b of _0x196bcb)this['_addSuggestionMarker'](_0x31cdf7,_0x84e4ad,_0x358180,_0x5f476b,u['getMultiRangeId']());return _0x194a2a;}['markDeletion'](_0x31ad1a,_0x352a25=null,_0x7d11c4={}){if(_0x31ad1a['isCollapsed'])return null;const _0x36d54e=this['editor']['plugins']['get']('Users')['me'],_0x145abb=new _0x2eb8ca(_0x31ad1a['start'],_0x31ad1a['end']);for(const {suggestion:_0x2c1192,meta:_0x3ae6e8}of this['_findSuggestions'](_0x145abb,'insertion'))if(_0x3ae6e8['isOwn']&&!_0x3ae6e8['isNextTo']){if(_0x2c1192['isMultiRange']){const _0x25a95f=_0x2c1192['getRanges']()['filter'](_0x4db186=>'$graveyard'!=_0x4db186['root']['rootName']);_0x25a95f['every'](_0x28b44d=>_0x145abb['containsRange'](_0x28b44d,!0x0))&&_0x2c1192['discard']();if(_0x25a95f['some'](_0x169a1d=>_0x169a1d['containsRange'](_0x145abb,!0x0))){const _0x537075=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x352a25,'accept');return this['forceDefaultExecution'](()=>_0x537075([_0x145abb],null,_0x7d11c4)),null;}}else{const _0x2ede25=_0x145abb['getIntersection'](_0x2c1192['getFirstRange']());null!==_0x2ede25&&_0x2c1192['_onDiscard']([_0x2ede25],null,_0x7d11c4);}}if(_0x145abb['detach'](),_0x145abb['isCollapsed']||'$graveyard'==_0x145abb['root']['rootName'])return null;let _0x1fce18=null,_0x1a9234=_0x145abb['start'],_0x4c053a=_0x145abb['end'];const _0x4b1281=this['_findSuggestions'](_0x145abb,'deletion');for(const {suggestion:_0x7a2a5d,meta:_0x576943}of _0x4b1281){const _0x3fa8e5=this['_model']['createRange'](_0x1a9234,_0x4c053a);if(_0x576943['isOwn']&&(this['_mergeNestedSuggestions']||!_0x576943['containsRangeInObject']&&!_0x576943['isInsideObject'])){if(_0x7a2a5d['isMultiRange']){if(!Qt(_0x7a2a5d,_0x7d11c4))continue;let _0x519070=!0x0;for(const _0x14b8f3 of _0x7a2a5d['getRanges']()){if(_0x14b8f3['containsRange'](_0x3fa8e5,!0x0))return _0x7a2a5d;_0x3fa8e5['containsRange'](_0x14b8f3)||(_0x519070=!0x1);}_0x519070&&_0x7a2a5d['discard']();}else{const _0x190a81=_0x7a2a5d['getFirstRange']();if(_0x190a81['containsRange'](_0x3fa8e5,!0x0))return _0x7a2a5d;if(!Qt(_0x7a2a5d,_0x7d11c4)){_0x3fa8e5['containsRange'](_0x190a81)?_0x7a2a5d['removeMarkers']():_0x190a81['containsPosition'](_0x1a9234)?_0x1a9234=_0x190a81['end']:_0x190a81['containsPosition'](_0x4c053a)&&(_0x4c053a=_0x190a81['start']);continue;}_0x1a9234=_0x1a9234['isBefore'](_0x190a81['start'])?_0x1a9234:_0x190a81['start'],_0x4c053a=_0x4c053a['isAfter'](_0x190a81['end'])?_0x4c053a:_0x190a81['end'],_0x7d11c4=Object['assign']({},_0x7a2a5d['attributes']),_0x1fce18?_0x190a81['start']['isBefore'](_0x1fce18['getFirstRange']()['start'])?(_0x1fce18['removeMarkers'](),_0x1fce18=_0x7a2a5d):_0x7a2a5d['removeMarkers']():_0x1fce18=_0x7a2a5d;}}}if(_0x1fce18)return this['_setSuggestionRange'](_0x1fce18,this['_model']['createRange'](_0x1a9234,_0x4c053a)),_0x1fce18;{const _0x39b00b=_0x55f348(),_0x11bd27=this['_model']['createRange'](_0x1a9234,_0x4c053a),_0x18e7c8=_0x36d54e['id'],_0x376089=_0x352a25?'deletion:'+_0x352a25:'deletion',_0x106432=this['_setSuggestionData']({'id':_0x39b00b,'type':_0x376089,'createdAt':new Date(),'authorId':_0x18e7c8,'attributes':_0x7d11c4});return this['_addSuggestionMarker'](_0x376089,_0x39b00b,_0x18e7c8,_0x11bd27),_0x106432;}}['markMultiRangeDeletion'](_0x18baa3,_0x2d4c57='multi',_0x4d998b={}){const _0x5ada18=this['editor']['plugins']['get']('Users')['me'],_0x238297=_0x18baa3['map'](_0x3e00fa=>new _0x2eb8ca(_0x3e00fa['start'],_0x3e00fa['end'])),_0x4c212a=new Set();for(const {suggestion:_0xdb3870,meta:_0x48e7f8}of this['_findSuggestions'](_0x238297,'insertion'))_0x48e7f8['isOwn']&&!_0x48e7f8['isNextTo']&&_0x4c212a['add'](_0xdb3870);for(const _0x790204 of _0x4c212a)if(_0x790204['isMultiRange']){const _0x456648=_0x790204['getRanges']();(!_0x790204['attributes']||!_0x790204['attributes']['skipNestingCheck'])&&(_0x456648['every'](_0x204df5=>_0x238297['some'](_0x24533a=>_0x24533a['containsRange'](_0x204df5,!0x0)))&&_0x790204['discard']());if(_0x238297['every'](_0x3d6688=>_0x456648['some'](_0x354784=>_0x354784['containsRange'](_0x3d6688,!0x0)))){const _0x8e622c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d4c57,'accept');return this['forceDefaultExecution'](()=>_0x8e622c(_0x18baa3,null,_0x4d998b)),null;}}else{const _0x3cb87d=_0x790204['getFirstRange']();_0x238297['some'](_0x129cba=>_0x129cba['containsRange'](_0x3cb87d,!0x0))&&_0x790204['discard']();if(_0x238297['every'](_0x52e6c8=>_0x3cb87d['containsRange'](_0x52e6c8,!0x0))){const _0x1144a0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d4c57,'accept');return this['forceDefaultExecution'](()=>_0x1144a0(_0x238297,null,_0x4d998b)),null;}}const _0x5b6aa2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d4c57,'join');let _0xc80b48=null;for(const _0x30d103 of this['getSuggestions']())if(_0x30d103['author']['id']==_0x5ada18['id']&&_0x30d103['isInContent']&&'deletion'==_0x30d103['type']&&_0x30d103['subType']==_0x2d4c57&&Qt(_0x30d103,_0x4d998b)&&(_0x5b6aa2(_0x30d103['getRanges'](),_0x238297)||_0x5b6aa2(_0x238297,_0x30d103['getRanges']()))){if(_0xc80b48){if(_0x30d103['commentThread']&&_0x30d103['commentThread']['length'])continue;for(const _0x1b73c9 of _0x30d103['getRanges']())_0xc80b48['isIntersectingWithRange'](_0x1b73c9)||_0xc80b48['addRange'](_0x1b73c9);_0x30d103['removeMarkers']();}else{_0xc80b48=_0x30d103;for(const _0xf74f2c of _0x238297)_0x30d103['isIntersectingWithRange'](_0xf74f2c)||_0x30d103['addRange'](_0xf74f2c);}}if(_0xc80b48)return _0xc80b48;_0x4c212a['clear']();for(const {suggestion:_0x32fed9,meta:_0x5bd423}of this['_findSuggestions'](_0x238297,'deletion'))_0x5bd423['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5bd423['containsRangeInObject']&&!_0x5bd423['isInsideObject'])&&Qt(_0x32fed9,_0x4d998b)&&_0x4c212a['add'](_0x32fed9);for(const _0xed414a of _0x4c212a){const _0x2d583e=_0xed414a['getRanges']();if(!_0x4d998b||!_0x4d998b['skipNestingCheck']){if(_0x238297['every'](_0x3d13fa=>_0x2d583e['some'](_0x544821=>_0x544821['containsRange'](_0x3d13fa,!0x0))))return _0xed414a;}(!_0xed414a['attributes']||!_0xed414a['attributes']['skipNestingCheck'])&&(_0x2d583e['every'](_0x5dd50e=>_0x238297['some'](_0x4eab56=>_0x4eab56['containsRange'](_0x5dd50e,!0x0)))&&_0xed414a['discard']());}const _0x2be30c=_0x55f348(),_0x4645b7=_0x5ada18['id'],_0x4d6209='deletion:'+_0x2d4c57,_0x568e81=this['_setSuggestionData']({'id':_0x2be30c,'type':_0x4d6209,'createdAt':new Date(),'authorId':_0x4645b7,'attributes':_0x4d998b});for(const _0xbb7323 of _0x238297)_0xbb7323['detach'](),_0xbb7323['isCollapsed']||'$graveyard'==_0xbb7323['root']['rootName']||this['_addSuggestionMarker'](_0x4d6209,_0x2be30c,_0x4645b7,_0xbb7323,u['getMultiRangeId']());return _0x568e81;}['markAttributeChange'](_0x3ac5e8,_0x75aabc,_0x41c9ae,_0xd0021a,_0x44394b){if(_0x3ac5e8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xc81b5=this['editor']['plugins']['get']('Users')['me']['id'],_0x11cdad=Array['from'](this['_suggestions']['values']())['filter'](_0xec8c7a=>'attribute'==_0xec8c7a['type']&&_0xec8c7a['data']['key']==_0x75aabc&&_0xec8c7a['isIntersectingWithRange'](_0x3ac5e8));if('default'===this['_trackFormatChanges']){const _0x59b499=this['_findSuggestions'](_0x3ac5e8,'insertion')['filter'](({meta:_0x28de65})=>_0x28de65['isOwn']&&!_0x28de65['isInsideObject']&&!_0x28de65['isNextTo'])['map'](({suggestion:_0x66c19})=>_0x66c19);_0x11cdad['unshift'](..._0x59b499);}const _0x286560=new Map([[_0x3ac5e8,_0x41c9ae]]);for(const _0x264583 of _0x11cdad){const _0x2306ef='attribute'==_0x264583['type']?_0x264583['data']['oldValue']:void 0x0,_0x4484f3=_0x264583['getFirstRange'](),_0x5d9048=Array['from'](_0x286560['keys']())['find'](_0x5348fa=>_0x5348fa['isIntersecting'](_0x4484f3));if(!_0x5d9048)continue;const _0x3491cc=_0x5d9048['getDifference'](_0x4484f3);this['_isBlockAttribute'](_0x75aabc)&&'insertion'==_0x264583['type']&&0x0!=_0x3491cc['length']||(_0x286560['delete'](_0x5d9048),_0x3491cc['forEach'](_0x538596=>{_0x286560['set'](_0x538596,_0x41c9ae);}),'insertion'!=_0x264583['type']&&_0x2306ef!=_0xd0021a&&_0x286560['set'](_0x5d9048['getIntersection'](_0x4484f3),_0x2306ef));}const _0x2093a0=[];for(const [_0xbe4245,_0x10bd42]of _0x286560){const _0x4c9805=_0x55f348(),_0x48911f={'key':_0x75aabc,'oldValue':_0x10bd42,'newValue':_0xd0021a};_0x75aabc['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':_0x75aabc});const _0x5c5be0=('attribute:'+(_0x75aabc+'|'+Jt({'newValue':_0xd0021a})))['substring'](0x0,0x3c),_0x53ad1e=this['_setSuggestionData']({'id':_0x4c9805,'type':_0x5c5be0,'data':_0x48911f,'createdAt':new Date(),'authorId':_0xc81b5,'attributes':_0x44394b});_0x2093a0['push'](_0x53ad1e),this['_addSuggestionMarker'](_0x5c5be0,_0x4c9805,_0xc81b5,_0xbe4245);}return _0x2093a0;}['enableDefaultAttributesIntegration'](_0xfbe81){this['enableCommand'](_0xfbe81,(_0x8d2d27,..._0x47f7ab)=>{this['_recordAttributeChanges'](()=>{_0x8d2d27(..._0x47f7ab);});});}['registerBlockAttribute'](_0x5b0b56){this['_blockAttributeKeys']['add'](_0x5b0b56);}['registerInlineAttribute'](_0x723f4e){this['_inlineAttributeKeys']['add'](_0x723f4e);}['_getAttributeKey'](_0x598e3e){return'attribute'==_0x598e3e['type']?_0x598e3e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4f8912,_0x284752){const _0x3d5ce9=_0x4f8912['getFirstMarker']();this['_model']['change'](_0x173e17=>{_0x173e17['updateMarker'](_0x3d5ce9,{'range':_0x284752});});}['_addThreadToSuggestion'](_0x1655e5){const _0x2f10a2=_0x1655e5['id'],_0x55fd08=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2f10a2)||this['_commentsRepository']['addCommentThread']({'channelId':_0x55fd08,'threadId':_0x2f10a2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x35e5d6=this['_commentsRepository']['getCommentThread'](_0x2f10a2);_0x35e5d6['unbind']('isRemovable'),_0x35e5d6['isRemovable']=!0x1,_0x1655e5['commentThread']=_0x35e5d6;}['_checkSuggestionCorrectness'](_0x36c76c,_0x164b10,_0x2f0bee,_0x300cb4){if(_0x36c76c['type']!=_0x164b10||_0x36c76c['subType']!=_0x2f0bee||_0x36c76c['creator']['id']!=_0x300cb4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4aa60d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4961c2,_0x5d2bb2){const _0x199373=_0x4961c2['getFirstRange']();if(_0x5d2bb2['isEqual'](_0x199373))_0x4961c2['removeMarkers']();else{if(_0x199373['containsRange'](_0x5d2bb2)){const _0x3fbe12=this['_model']['createPositionAt'](_0x5d2bb2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4961c2,this['_model']['createRange'](_0x199373['start'],_0x3fbe12));const _0x29d9a0=_0x55f348(),_0xae246=_0x4961c2['creator']['id'],_0x3fe6bd=_0x4961c2['type']+':'+_0x4961c2['subType'];this['_setSuggestionData']({'id':_0x29d9a0,'type':_0x3fe6bd,'createdAt':new Date(),'authorId':_0xae246,'data':_0x4961c2['data'],'attributes':_0x4961c2['attributes']});const _0x5aeb65=this['_model']['createPositionAt'](_0x5d2bb2['end']['parent'],'after'),_0x211b02=this['_model']['createRange'](_0x5aeb65,_0x199373['end']);this['_addSuggestionMarker'](_0x3fe6bd,_0x29d9a0,_0xae246,_0x211b02);}else{if(_0x199373['containsPosition'](_0x5d2bb2['start'])){const _0x344c77=this['_model']['createPositionAt'](_0x5d2bb2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4961c2,this['_model']['createRange'](_0x199373['start'],_0x344c77));}else{const _0x4a0950=this['_model']['createPositionAt'](_0x5d2bb2['end']['parent'],'after');this['_setSuggestionRange'](_0x4961c2,this['_model']['createRange'](_0x4a0950,_0x199373['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x17f03e){for(const {suggestion:_0x3774f9,meta:_0x30b075}of this['_findSuggestions'](_0x17f03e,'insertion')){if(!_0x30b075['isOwn'])continue;const _0x567894=_0x3774f9['getRanges']();for(const _0x138d05 of _0x567894)if(!_0x17f03e['getDifference'](_0x138d05)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x37fda1){const _0x472f46=this['editor']['plugins']['get']('Users')['getUser'](_0x37fda1);if(!_0x472f46)throw new _0x4aa60d('track-changes-user-not-found',this);return _0x472f46;}['_getExternalAuthor'](_0x252091){const _0x47bcce=this['editor']['plugins']['get']('Users'),_0x51725e=_0x17cf62('external:'+_0x252091),_0x360170=_0x47bcce['getUser'](_0x51725e);return _0x360170||_0x47bcce['addUser']({'id':_0x51725e,'name':_0x252091});}['_createSuggestion'](_0x5ee60d,_0x300f47,_0x31d680,_0x578720,_0x48e67f){const _0x4bbbdb=this['_getAuthorFromId'](_0x578720),_0x58eef6=this['_suggestionFactory']['buildSuggestion'](_0x5ee60d,_0x300f47,_0x31d680,_0x4bbbdb,_0x48e67f,_0x301e2c=>{this['_updateSuggestionData'](_0x31d680,{'attributes':_0x301e2c});const _0x26b2e0=this['getSuggestion'](_0x31d680);this['_joinWithAdjacentSuggestions'](new Set([_0x26b2e0])),this['_refreshSuggestionsChain'](new Set([_0x26b2e0]));});return this['listenTo'](_0x58eef6,'accept',()=>{this['_updateSuggestionData'](_0x31d680,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x58eef6,'discard',()=>{this['_updateSuggestionData'](_0x31d680,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x31d680,_0x58eef6),this['_suggestionState']['set'](_0x58eef6,'notReady'),_0x58eef6;}['_splitMarkerName'](_0x14afee){const _0x42c738=_0x14afee['split'](':');return{'group':_0x42c738[0x0],'type':_0x42c738[0x1],'subType':_0x42c738['length']>=0x5?_0x42c738[0x2]:null,'id':_0x42c738['length']<0x5?_0x42c738[0x2]:_0x42c738[0x3],'authorId':_0x42c738['length']<0x5?_0x42c738[0x3]:_0x42c738[0x4],'markerCount':0x6==_0x42c738['length']?_0x42c738[0x5]:null};}['_breakSuggestionMarker'](_0x30f31d,_0x2b8ed5,_0x3690d2){const _0x8c1d40=_0x30f31d['getFirstRange'](),_0x33cf2b=_0x8c1d40['start'],_0x448c6c=_0x8c1d40['end'];this['_setSuggestionRange'](_0x30f31d,this['_model']['createRange'](_0x33cf2b,_0x2b8ed5));const _0x4e30dc=_0x55f348(),_0x178389=_0x30f31d['creator']['id'],_0x1245c8=_0x30f31d['type']+(_0x30f31d['subType']?':'+_0x30f31d['subType']:'');this['_setSuggestionData']({'id':_0x4e30dc,'type':_0x1245c8,'createdAt':new Date(),'authorId':_0x178389,'originalSuggestionId':_0x30f31d['id'],'attributes':_0x30f31d['attributes'],'data':_0x30f31d['data']});const _0x5904cf=this['_getAttributeKey'](_0x30f31d);('formatBlock'==_0x30f31d['type']||_0x5904cf&&this['_isBlockAttribute'](_0x5904cf))&&(_0x3690d2=this['_model']['createPositionBefore'](_0x3690d2['parent'])),this['_addSuggestionMarker'](_0x1245c8,_0x4e30dc,_0x178389,this['_model']['createRange'](_0x3690d2,_0x448c6c));}['_findSuggestions'](_0x38e48c,_0x21a659=null){const _0x1fc004=[],_0x5893c1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x38e48c)||(_0x38e48c=[_0x38e48c]);for(const _0x50aeca of this['getSuggestions']()){if(!_0x50aeca['isInContent'])continue;if(_0x21a659&&_0x50aeca['type']!=_0x21a659)continue;let _0x372df8=!0x1;for(const _0x5c931c of _0x50aeca['getRanges']()){for(const _0x2eb458 of _0x38e48c){const _0x1287bb=_0x2eb458['start']['isEqual'](_0x5c931c['end'])||_0x2eb458['end']['isEqual'](_0x5c931c['start']);if(_0x1287bb||_0x2eb458['getIntersection'](_0x5c931c)){const _0x3d1cdd=_0x2eb458['containsRange'](_0x5c931c)&&Gt(this['_model']['schema'],_0x5c931c['start'],_0x2eb458),_0x3b6571=_0x5c931c['containsRange'](_0x2eb458)&&Gt(this['_model']['schema'],_0x2eb458['start'],_0x5c931c);_0x1fc004['push']({'suggestion':_0x50aeca,'meta':{'isOwn':_0x5893c1==_0x50aeca['author'],'isNextTo':_0x1287bb,'isInsideObject':_0x3d1cdd,'containsRangeInObject':_0x3b6571}}),_0x372df8=!0x0;break;}}if(_0x372df8)break;}}return _0x1fc004;}['_addSuggestionMarker'](_0x8fa38a,_0x45e269,_0xb4d3df,_0x5bbee5,_0x3454ca){this['_model']['change'](_0x3bfaf2=>{let _0x40ab34='suggestion:'+_0x8fa38a+':'+_0x45e269+':'+_0xb4d3df;_0x3454ca&&(_0x40ab34=_0x40ab34+':'+_0x3454ca),_0x3bfaf2['addMarker'](_0x40ab34,{'range':_0x5bbee5,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x54554f){const _0x374b71=_0x54554f['previous'],_0xbe0b15=_0x54554f['next'];_0x54554f['previous']=null,_0x54554f['next']=null,null!=_0x374b71&&_0x374b71['next']==_0x54554f&&(_0x374b71['next']=_0xbe0b15),null!=_0xbe0b15&&_0xbe0b15['previous']==_0x54554f&&(_0xbe0b15['previous']=_0x374b71),'ready'==this['_suggestionState']['get'](_0x54554f)&&(this['_suggestionState']['set'](_0x54554f,'removed'),this['fire']('suggestionUnloaded',_0x54554f,_0x374b71,_0xbe0b15));}['_setSuggestionData'](_0x47d225){const _0x52d7fc=_0x47d225['id'],_0x4fa566=this['addSuggestionData'](_0x47d225);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x768afc=this['editor']['plugins']['get']('PendingActions'),_0x5c81a7=_0x4fa566['hasComments'],_0x332f87=_0x4fa566['subType']?_0x4fa566['type']+':'+_0x4fa566['subType']:_0x4fa566['type'],_0x416aef=this['editor']['locale'],_0x350509=_0x768afc['add'](o(_0x416aef,'PENDING_ACTION_SUGGESTION')),_0x3254ad={'id':_0x52d7fc,'type':_0x332f87,'hasComments':_0x5c81a7,'data':_0x47d225['data']||null,'originalSuggestionId':_0x47d225['originalSuggestionId']||null,'attributes':_0x4fa566['attributes']};this['_adapter']['addSuggestion'](_0x3254ad)['then'](_0x545e67=>{_0x4fa566['_saved']=!0x0,_0x768afc['remove'](_0x350509),_0x545e67&&_0x545e67['createdAt']&&(this['_suggestions']['get'](_0x52d7fc)['createdAt']=_0x545e67['createdAt']);})['catch'](_0x5dd460=>{throw _0x49f2b4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4fa566['discard']();}),_0x4fa566['stopListening'](),this['_suggestions']['delete'](_0x4fa566['id']),this['_suggestionState']['delete'](_0x4fa566),_0x5dd460;});}return _0x4fa566;}['_isBlockAttribute'](_0x529b07){return this['_blockAttributeKeys']['has'](_0x529b07);}['_updateSuggestionData'](_0x36a434,_0x543f26){const _0x1b2a6e=this['editor']['plugins']['get']('PendingActions'),_0x576b8e=this['getSuggestion'](_0x36a434);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x576b8e['_saved']){const _0x59115c=_0x1b2a6e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x36a434,_0x543f26)['then'](()=>{_0x1b2a6e['remove'](_0x59115c);});}else _0x576b8e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x36a434,_0x543f26);});}}['_getSuggestionData'](_0x3dbfd0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4aa60d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3dbfd0);}['_handleNewSuggestionMarker'](_0x24c263){const {id:_0x15b4b0,type:_0x522cd4,subType:_0x4211f9,authorId:_0x1460ba}=this['_splitMarkerName'](_0x24c263),_0x3e3cb2=this['_suggestions']['get'](_0x15b4b0)||this['_createSuggestion'](_0x522cd4,_0x4211f9,_0x15b4b0,_0x1460ba,{});switch(this['_checkSuggestionCorrectness'](_0x3e3cb2,_0x522cd4,_0x4211f9,_0x1460ba),this['_suggestionState']['get'](_0x3e3cb2)){case'notReady':this['_getSuggestionData'](_0x15b4b0)['then'](_0x155111=>{let _0x46137a=Promise['resolve']();_0x155111['hasComments']&&(_0x46137a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x15b4b0})),_0x46137a['then'](()=>{this['addSuggestionData'](_0x155111)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3e3cb2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x15b4b0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3e3cb2,'ready'),this['fire']('suggestionLoaded',_0x3e3cb2);break;case'ready':this['fire']('suggestionChanged',_0x3e3cb2);}return _0x3e3cb2['addMarkerName'](_0x24c263),_0x3e3cb2;}['_refreshSuggestionsChain'](_0x2ea71e){const _0x198ac1=Array['from'](_0x2ea71e),_0x29e22d=_0x198ac1['filter'](_0x59fd93=>'attribute'==_0x59fd93['type']);this['_refreshAttributeSuggestionsChain'](_0x29e22d);const _0xa6276d=_0x198ac1['filter'](_0x4b3d17=>!_0x4b3d17['isMultiRange']&&'attribute'!=_0x4b3d17['type']),_0x261052=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x242db3=>!_0x242db3['isMultiRange']&&'attribute'!=_0x242db3['type']),_0x41b77b=_0x261052['filter'](_0x407fe0=>!_0x2ea71e['has'](_0x407fe0)),_0x48b814=new Map(_0x261052['map'](_0x502c39=>[_0x502c39,this['_suggestionFactory']['getSuggestionCallback'](_0x502c39['type'],_0x502c39['subType'],'chain')])),_0x33acc3=new Map(_0x261052['map'](_0x34ecac=>[_0x34ecac,_0x34ecac['getFirstRange']()])),_0x5932fd=new Set(),_0x1edbda=new Set();for(let _0x58db83=0x0;_0x58db83<_0xa6276d['length'];_0x58db83++)_0x234350(_0xa6276d[_0x58db83],_0xa6276d,_0x58db83+0x1);for(let _0x3c21ce=0x0;_0x3c21ce<_0xa6276d['length'];_0x3c21ce++)_0x234350(_0xa6276d[_0x3c21ce],_0x41b77b,0x0);const _0xa37dfc=new Set();for(let _0x562476=0x0;_0x562476<_0xa6276d['length'];_0x562476++){const _0x1cfcad=_0xa6276d[_0x562476];!_0x1edbda['has'](_0x1cfcad)&&_0x1cfcad['previous']&&(_0xa37dfc['add'](_0x1cfcad['previous']),_0x1cfcad['previous']['next']===_0x1cfcad&&(_0x1cfcad['previous']['next']=null),_0x1cfcad['previous']=null),!_0x5932fd['has'](_0x1cfcad)&&_0x1cfcad['next']&&(_0xa37dfc['add'](_0x1cfcad['next']),_0x1cfcad['next']['previous']===_0x1cfcad&&(_0x1cfcad['next']['previous']=null),_0x1cfcad['next']=null);}function _0x234350(_0x657674,_0x35dfc4,_0x4f290e){for(let _0x28f6ab=_0x4f290e;_0x28f6ab<_0x35dfc4['length'];_0x28f6ab++){const _0x56fe22=_0x229628(_0x657674,_0x35dfc4[_0x28f6ab]);_0x56fe22&&(_0x56fe22[0x0]['next']=_0x56fe22[0x1],_0x56fe22[0x1]['previous']=_0x56fe22[0x0],_0x5932fd['add'](_0x56fe22[0x0]),_0x1edbda['add'](_0x56fe22[0x1]));}}function _0x229628(_0x4ac316,_0x138196){if(_0x4ac316['author']['id']!==_0x138196['author']['id'])return null;const _0x5b505e=_0x48b814['get'](_0x4ac316)(_0x4ac316,_0x138196,_0x33acc3['get'](_0x4ac316),_0x33acc3['get'](_0x138196));if(!_0x5b505e)return null;return _0x48b814['get'](_0x138196)(_0x4ac316,_0x138196,_0x33acc3['get'](_0x4ac316),_0x33acc3['get'](_0x138196))?_0x5b505e[0x1]['commentThread']&&_0x5b505e[0x1]['commentThread']['length']?null:_0x5b505e:null;}_0xa37dfc['size']&&this['_refreshSuggestionsChain'](_0xa37dfc);}['_refreshAttributeSuggestionsChain'](_0x5bf289){if(0x0==_0x5bf289['length'])return;const _0x1303c5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa91a22=>'attribute'==_0xa91a22['type']&&_0xa91a22['_isDataLoaded']),_0x46c6c7=[],_0x20f2c6=new Map();for(const _0x547c40 of _0x1303c5){const _0x243d0c=_0x17cf62(_0x547c40['attributes']);_0x20f2c6['has'](_0x243d0c)||(_0x20f2c6['set'](_0x243d0c,_0x46c6c7['length']),_0x46c6c7['push']([]));const _0x336f2d=_0x20f2c6['get'](_0x243d0c);_0x46c6c7[_0x336f2d]['push'](_0x547c40);}!(function(){_0x46c6c7['sort']((_0x22b996,_0x66d36d)=>{const _0x479d0d=_0x22b996[0x0]['createdAt'],_0x53d4ce=_0x66d36d[0x0]['createdAt'];return _0x479d0d==_0x53d4ce?_0x22b996[0x0]['attributes']['groupId']<_0x66d36d[0x0]['attributes']['groupId']?-0x1:0x1:_0x479d0d<_0x53d4ce?-0x1:0x1;});for(const _0x3186ec of _0x46c6c7)_0x3186ec['sort']((_0x315b99,_0x5188c1)=>_0x315b99['id']<_0x5188c1['id']?-0x1:0x1);}());for(let _0x527eb7=0x0;_0x527eb7<_0x46c6c7['length'];_0x527eb7++){if(0x0==_0x46c6c7[_0x527eb7]['length'])continue;const _0x3b7398=[];for(let _0x2d1325=_0x527eb7+0x1;_0x2d1325<_0x46c6c7['length'];_0x2d1325++)0x0!=_0x46c6c7[_0x2d1325]['length']&&_0x553c47(_0x46c6c7[_0x527eb7],_0x46c6c7[_0x2d1325])&&_0x3b7398['push'](_0x2d1325);for(const _0x46dbb1 of _0x3b7398)_0x46c6c7[_0x527eb7]=_0x46c6c7[_0x527eb7]['concat'](_0x46c6c7[_0x46dbb1]),_0x46c6c7[_0x46dbb1]=[];}for(const _0x4a0615 of _0x46c6c7)for(let _0x15053d=0x0;_0x15053d<_0x4a0615['length'];_0x15053d++){const _0xaeb35e=_0x4a0615[_0x15053d+0x1]||null;_0x4a0615[_0x15053d]['next']!==_0xaeb35e&&(_0x4a0615[_0x15053d]['next']=_0xaeb35e);}for(const _0x3c8427 of _0x46c6c7)for(let _0x124c1c=0x0;_0x124c1c<_0x3c8427['length'];_0x124c1c++){const _0x599e54=_0x3c8427[_0x124c1c-0x1]||null;_0x3c8427[_0x124c1c]['previous']!==_0x599e54&&(_0x3c8427[_0x124c1c]['previous']=_0x599e54);}function _0x553c47(_0x2587dc,_0x5b287b){if(_0x2587dc[0x0]['attributes']['groupId']!==_0x5b287b[0x0]['attributes']['groupId']&&_0x2587dc[0x0]['author']!==_0x5b287b[0x0]['author'])return!0x1;if(!function(_0x14f42d,_0xfdf77f){if(!_0x14f42d['hasComments']&&!_0xfdf77f['hasComments'])return!0x0;if(_0x14f42d['hasComments']&&_0xfdf77f['hasComments'])return!0x1;if(_0x14f42d['hasComments']&&_0xfdf77f['createdAt']<_0x14f42d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xfdf77f['hasComments']&&_0x14f42d['createdAt']<_0xfdf77f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2587dc[0x0],_0x5b287b[0x0]))return!0x1;const _0x47d8b6=Vt(_0x2587dc[0x0]['attributes'],'groupId'),_0x1eb579=Vt(_0x5b287b[0x0]['attributes'],'groupId');if(!_0x28ebbc(_0x47d8b6,_0x1eb579))return!0x1;return!!_0x2587dc['every'](_0x1499fb=>_0x5b287b['some'](_0x1e5b65=>_0x1499fb['getFirstRange']()['isEqual'](_0x1e5b65['getFirstRange']())))&&_0x5b287b['every'](_0x4b787c=>_0x2587dc['some'](_0x3dcee5=>_0x4b787c['getFirstRange']()['isEqual'](_0x3dcee5['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4a5894){const _0x57b6ff=Array['from'](_0x4a5894),_0x2094ff=this['getSuggestions']({'skipNotAttached':!0x0}),_0x183b4c=_0x2094ff['filter'](_0x146a9a=>!_0x4a5894['has'](_0x146a9a)),_0x3c2514=new Map(_0x57b6ff['map'](_0x58eea1=>[_0x58eea1,this['_suggestionFactory']['getSuggestionCallback'](_0x58eea1['type'],_0x58eea1['subType'],'join')])),_0xbf6a84=new Map(_0x2094ff['map'](_0x276404=>[_0x276404,_0x276404['getRanges']()]));for(let _0x46217b=0x0;_0x46217b<_0x57b6ff['length'];_0x46217b++){if(_0x35464d(this,_0x57b6ff[_0x46217b],_0x57b6ff,_0x46217b+0x1))return!0x0;}for(let _0x461a5f=0x0;_0x461a5f<_0x57b6ff['length'];_0x461a5f++){if(_0x35464d(this,_0x57b6ff[_0x461a5f],_0x183b4c,0x0))return!0x0;}return!0x1;function _0x35464d(_0x370276,_0x11292c,_0x21f471,_0x16afee){for(let _0x5ada84=_0x16afee;_0x5ada84<_0x21f471['length'];_0x5ada84++){const _0x4c7fba=_0x21f471[_0x5ada84];if(_0x4c7fba['type']!==_0x11292c['type']||_0x4c7fba['author']['id']!==_0x11292c['author']['id']||_0x4c7fba['subType']!==_0x11292c['subType'])continue;if(!Wt(_0x11292c,_0x4c7fba))continue;if('attribute'==_0x11292c['type']&&_0x11292c['data']['oldValue']!=_0x4c7fba['data']['oldValue'])continue;if('attribute'==_0x11292c['type']&&_0x370276['_isBlockAttribute'](_0x11292c['data']['key']))continue;if('formatBlock'==_0x11292c['type']){const _0x2cb917=_0x370276['editor']['model'],_0x665753=_0x11292c['getContainedElement']();if(_0x665753&&(_0x2cb917['schema']['isObject'](_0x665753)||_0x2cb917['schema']['isLimit'](_0x665753)))continue;}const _0x4f41f1=_0x3c2514['get'](_0x11292c),_0x1ef6c3=_0xbf6a84['get'](_0x11292c),_0x507334=_0xbf6a84['get'](_0x4c7fba),_0x26aeae=_0x11292c['commentThread']&&_0x11292c['commentThread']['length'],_0xd40fd1=_0x4c7fba['commentThread']&&_0x4c7fba['commentThread']['length'];if(!_0x26aeae&&_0x4f41f1(_0x507334,_0x1ef6c3))return _0x370276['_joinSuggestions'](_0x4c7fba,_0x11292c),_0xbf6a84['delete'](_0x11292c),!0x0;if(!_0xd40fd1&&_0x4f41f1(_0x1ef6c3,_0x507334))return _0x370276['_joinSuggestions'](_0x11292c,_0x4c7fba),_0xbf6a84['delete'](_0x4c7fba),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4cc8fd,_0x2a3c28){if(_0x4cc8fd['isMultiRange']){for(const _0x5781f5 of _0x2a3c28['getRanges']())_0x4cc8fd['addRange'](_0x5781f5);}else{const _0x5c720d=_0x2a3c28['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4cc8fd,this['_model']['createRange'](_0x4cc8fd['getFirstRange']()['start'],_0x5c720d));}_0x2a3c28['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3c2431,_0x883fe8,_0x4cc624){const _0x49fe69=_0x3c2431['startsWith']('format')||_0x3c2431['startsWith']('attribute')?'FORMATTING':_0x3c2431['toUpperCase']();return o(this['editor']['locale'],_0x883fe8+'_'+_0x49fe69+'_SUGGESTION_ANNOUNCEMENT',_0x4cc624);}['_initAriaMarkerChangeAnnouncements'](){const _0x2df91e=this['editor'];if(!_0x2df91e['ui'])return;const {ariaLiveAnnouncer:_0x1e50c4}=_0x2df91e['ui'];_0x13200b(this['_model'],({left:_0x4c5864,entered:_0x3c4053})=>{for(const _0x4387d4 of _0x4c5864){const {group:_0x441835,type:_0x2c2df2}=this['_splitMarkerName'](_0x4387d4['name']);if('suggestion'===_0x441835){_0x1e50c4['announce'](this['_getMarkerAnnouncementText'](_0x2c2df2,'LEAVE'));break;}}for(const _0x52a27f of _0x3c4053){const {group:_0x3b4865,type:_0x2ac05f}=this['_splitMarkerName'](_0x52a27f['name']);if('suggestion'===_0x3b4865){_0x1e50c4['announce'](this['_getMarkerAnnouncementText'](_0x2ac05f,'ENTER',_0x26f516(_0x3abdc1)));break;}}});}['_processAttributeChanges'](_0x501831){if(this['_recordAttributeSuggestions'])return!0x1;const _0x17fa5d=this['editor'],_0x102392=_0x17fa5d['model']['document']['differ']['getChanges']();if(0x0==_0x102392['length'])return!0x1;const _0x1f82ac=[],_0x2aecfe=_0x102392['filter'](_0x172479=>'attribute'==_0x172479['type']),_0x43dcbb=_0x102392['filter'](_0x536885=>'insert'==_0x536885['type']&&'$text'!=_0x536885['name']),_0x448af1=_0x102392['filter'](_0x258bfd=>'remove'==_0x258bfd['type']&&'$text'!=_0x258bfd['name']);for(const _0xe369b5 of _0x2aecfe)_0x1f82ac['push']({'key':_0xe369b5['attributeKey'],'newValue':_0xe369b5['attributeNewValue'],'oldValue':_0xe369b5['attributeOldValue'],'range':qt(_0xe369b5['range'],_0x17fa5d['model'])});for(const _0x219261 of _0x43dcbb){const _0x45a835=_0x448af1['find'](_0x1f7889=>_0x1f7889['position']['isEqual'](_0x219261['position']));_0x45a835&&_0x1f82ac['push']({'key':m,'newValue':_0x219261['name'],'oldValue':_0x45a835['name'],'range':_0x17fa5d['model']['createRangeOn'](_0x219261['position']['nodeAfter'])});}return 0x0!=_0x1f82ac['length']&&this['_reduceExistingSuggestions'](_0x501831,_0x1f82ac);}['_processAttributeSuggestions'](_0x7eeb03){let _0x500a81=!0x1;const _0xdba25f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b6dc0=>_0x1b6dc0['data']['newRange']&&_0x1b6dc0['name']['startsWith']('suggestion:attribute:'));for(const _0x279745 of _0xdba25f){const {subType:_0x547f0d,id:_0x47adcd}=this['_splitMarkerName'](_0x279745['name']),_0x31d665=_0x547f0d['split']('|')[0x0];for(const _0x472840 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x472840['id']!=_0x47adcd&&'attribute'==_0x472840['type']&&_0x472840['data']&&_0x472840['data']['key']==_0x31d665&&_0x472840['getFirstRange']()['isIntersecting'](_0x279745['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x472840,_0x279745['data']['newRange'],_0x7eeb03),_0x500a81=!0x0);}return _0x500a81;}['_recordAttributeChanges'](_0x3d2781){this['_recordAttributeSuggestions']=!0x0,_0x3d2781();}['_isRegisteredAttribute'](_0x513641){const _0x28cf22=this['_isBlockAttribute'](_0x513641),_0x1133a4=this['_inlineAttributeKeys']['has'](_0x513641);return _0x28cf22||_0x1133a4;}['_reduceExistingSuggestions'](_0x4febe3,_0x250f3a){if(0x0==_0x250f3a['length'])return!0x1;let _0x35e988=!0x1;for(const _0x49cc40 of _0x250f3a){const _0x450af8=this['_findSuggestions'](_0x49cc40['range'],'attribute')['filter'](_0x2e3244=>!_0x2e3244['meta']['isNextTo'])['map'](_0x213cdf=>_0x213cdf['suggestion']),_0x5d5eb9=_0x17cf62({'newValue':_0x49cc40['newValue']});_0x450af8['filter'](_0xd930c=>{const [_0x25e2c5,_0x464b27]=_0xd930c['subType']['split']('|');return _0x25e2c5==_0x49cc40['key']&&_0x464b27!=_0x5d5eb9;})['forEach'](_0x255fd0=>{this['_reduceSuggestionAttributeRange'](_0x255fd0,_0x49cc40['range'],_0x4febe3),_0x35e988=!0x0;});}return _0x35e988;}['_reduceSuggestionAttributeRange'](_0x5598b3,_0x78ac6c,_0x5af814){const _0x26debc=_0x5598b3['getFirstRange']()['getDifference'](_0x78ac6c);0x0!==_0x26debc['length']?0x1!==_0x26debc['length']?this['_breakSuggestionMarker'](_0x5598b3,_0x78ac6c['start'],_0x78ac6c['end']):this['_setSuggestionRange'](_0x5598b3,_0x26debc[0x0]):_0x5af814['removeMarker'](_0x5598b3['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1300ac){this['_editor']=_0x1300ac,this['_model']=_0x1300ac['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1a97e3,_0xf94008,_0x2d3c1d,_0x22ff14,_0x2c6978,_0x57d4b9){return new u(this['_model'],{'type':_0x1a97e3,'subType':_0xf94008,'id':_0x2d3c1d,'author':_0x22ff14,'creator':_0x22ff14,'attributes':_0x2c6978,'onAttributesChange':_0x57d4b9,'onAccept':(..._0x506ea2)=>this['getSuggestionCallback'](_0x1a97e3,_0xf94008,'accept')(..._0x506ea2),'onDiscard':(..._0x18cc90)=>this['getSuggestionCallback'](_0x1a97e3,_0xf94008,'discard')(..._0x18cc90)});}['registerCustomCallback'](_0x19d669,_0x2d4a32,_0x38da99,_0x336323){const _0xd411e0=_0x19d669+':'+_0x2d4a32+':'+_0x38da99;this['_customCallbacks']['set'](_0xd411e0,_0x336323);}['getSuggestionCallback'](_0x16f274,_0x4d994b,_0xf02d34){const _0x4ac2f6=_0x16f274+':'+_0x4d994b+':'+_0xf02d34;return this['_customCallbacks']['get'](_0x4ac2f6)||this['_defaultCallbacks']['get'](_0x16f274+':'+_0xf02d34);}['_registerDefaultCallbacks'](){const _0x34ae82=()=>!0x1,_0xf3da16=_0x398da4=>{_0x398da4['sort']((_0x10c433,_0x40731d)=>_0x10c433['start']['isBefore'](_0x40731d['start'])?0x1:-0x1),this['_model']['change'](_0x257070=>{for(const _0x2f76a6 of _0x398da4){let _0x1f7743;_0x1f7743=_0x2f76a6['end']['isAtEnd']&&_0x2f76a6['end']['parent']==_0x2f76a6['start']['nodeAfter']?_0x257070['createSelection'](_0x2f76a6['start']['nodeAfter'],'on'):_0x257070['createSelection'](_0x2f76a6),this['_model']['deleteContent'](_0x1f7743,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x258be6=(_0x4cc3c0,_0x2df01a)=>{_0x2df01a&&this['_model']['change'](_0x43ea9b=>{const {commandName:_0x3ea4f0,commandParams:_0x189559=[]}=_0x2df01a,_0x2f4885=_0x4cc3c0['map'](_0x399882=>(Ft(_0x399882)&&(_0x399882=this['_model']['createRange'](_0x399882['end'])),_0x399882))['filter'](_0x1851bd=>'$graveyard'!==_0x1851bd['root']['rootName']);if(_0x2f4885['length']<0x1)return;const _0x1c67ee=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3bbc32=>_0x2eb8ca['fromRange'](_0x3bbc32));_0x43ea9b['setSelection'](_0x2f4885);for(const _0x41554d of this['_editor']['commands']['commands']())_0x41554d['refresh']();_0x189559['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3ea4f0,..._0x189559);const _0x4e3343=_0x1c67ee['filter'](_0x44947c=>'$graveyard'!=_0x44947c['root']['rootName']);_0x4e3343['length']>0x0&&_0x43ea9b['setSelection'](_0x4e3343);for(const _0x2fabd9 of _0x1c67ee)_0x2fabd9['detach']();});},_0x3a7b34=(_0x1f9a7a,_0x5a05fd)=>0x1==_0x1f9a7a['length']&&0x1==_0x5a05fd['length']&&_0x1f9a7a[0x0]['end']['isEqual'](_0x5a05fd[0x0]['start']),_0x21162b=(_0x550cc8,_0xaad163,_0x291918,_0x6fab5b)=>Kt(_0x550cc8,_0xaad163,_0x291918,_0x6fab5b)?[_0x550cc8,_0xaad163]:Kt(_0xaad163,_0x550cc8,_0x6fab5b,_0x291918)?[_0xaad163,_0x550cc8]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x34ae82),this['_defaultCallbacks']['set']('insertion:discard',_0xf3da16),this['_defaultCallbacks']['set']('insertion:join',_0x3a7b34),this['_defaultCallbacks']['set']('insertion:chain',_0x21162b),this['_defaultCallbacks']['set']('deletion:accept',_0xf3da16),this['_defaultCallbacks']['set']('deletion:discard',_0x34ae82),this['_defaultCallbacks']['set']('deletion:join',_0x3a7b34),this['_defaultCallbacks']['set']('deletion:chain',_0x21162b),this['_defaultCallbacks']['set']('formatInline:accept',_0x258be6),this['_defaultCallbacks']['set']('formatInline:discard',_0x34ae82),this['_defaultCallbacks']['set']('formatInline:join',_0x3a7b34),this['_defaultCallbacks']['set']('formatInline:chain',_0x34ae82),this['_defaultCallbacks']['set']('formatBlock:accept',_0x258be6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x34ae82),this['_defaultCallbacks']['set']('formatBlock:join',_0x3a7b34),this['_defaultCallbacks']['set']('formatBlock:chain',_0x34ae82),this['_defaultCallbacks']['set']('attribute:accept',_0x34ae82),this['_defaultCallbacks']['set']('attribute:discard',(_0x137f25,_0x19ddfb)=>{if(!_0x19ddfb)return;const _0x21f7c7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x86b513=>{if(_0x19ddfb['key']==m)for(const _0x50ed59 of _0x137f25){const _0x172fea=_0x50ed59['start']['nodeAfter'],_0x5cb5f7=_0x19ddfb['oldValue'];_0x86b513['rename'](_0x172fea,_0x5cb5f7);}else{if(_0x21f7c7['_isBlockAttribute'](_0x19ddfb['key'])){for(const _0x23e3b8 of _0x137f25)void 0x0!==_0x19ddfb['oldValue']?_0x86b513['setAttribute'](_0x19ddfb['key'],_0x19ddfb['oldValue'],_0x23e3b8['start']['nodeAfter']):_0x86b513['removeAttribute'](_0x19ddfb['key'],_0x23e3b8['start']['nodeAfter']);}else{for(const _0x2abf58 of _0x137f25)_0x19ddfb['oldValue']?_0x86b513['setAttribute'](_0x19ddfb['key'],_0x19ddfb['oldValue'],_0x2abf58):_0x86b513['removeAttribute'](_0x19ddfb['key'],_0x2abf58);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3a7b34);}}function Gt(_0x121f25,_0x312aaa,_0x16ce5e){for(const _0xa9be9f of _0x312aaa['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xa9be9f['root']==_0xa9be9f)return!0x1;if(!_0x16ce5e['containsItem'](_0xa9be9f))return!0x1;if(_0x121f25['isObject'](_0xa9be9f)||_0x121f25['isLimit'](_0xa9be9f))return!0x0;}return!0x1;}function Ft(_0x34eac4){return _0x34eac4['end']['parent']==_0x34eac4['start']['nodeAfter']&&_0x34eac4['end']['isAtStart'];}function Lt(_0x3e23b3,_0x2ad2e6,_0x35704f,_0x3c63e6){const _0x4e8317=_0x25cd0c=>!_0x25cd0c['item']['is']('$textProxy')&&!_0x3c63e6['isObject'](_0x25cd0c['item']),_0x44ca42=_0x3e23b3['start']['getLastMatchingPosition'](_0x4e8317),_0x1e705b=_0x3e23b3['end']['getLastMatchingPosition'](_0x4e8317,{'direction':'backward'});return(!_0x3e23b3['start']['isEqual'](_0x44ca42)||!_0x3e23b3['end']['isEqual'](_0x1e705b))&&(_0x44ca42['isBefore'](_0x1e705b)?_0x35704f['updateMarker'](_0x2ad2e6,{'range':_0x35704f['createRange'](_0x44ca42,_0x1e705b)}):_0x35704f['removeMarker'](_0x2ad2e6),!0x0);}function Jt(_0x51c335){return _0x17cf62(_0x51c335);}function Ht(_0x36a0d8){const _0x298dfb=_0x36a0d8['start']['nodeAfter'];return _0x298dfb&&_0x298dfb['is']('element');}function qt(_0x3945ed,_0x23c39f){return null==_0x3945ed['end']['nodeBefore']&&_0x3945ed['end']['parent']==_0x3945ed['start']['nodeAfter']?zt(_0x3945ed['start']['nodeAfter'],_0x23c39f):_0x3945ed;}function zt(_0x26fc97,_0x572ab7){const _0x49781c=_0x572ab7['schema']['isObject'](_0x26fc97)||_0x572ab7['schema']['isSelectable'](_0x26fc97);return _0x572ab7['createRange'](_0x572ab7['createPositionAt'](_0x26fc97,'before'),_0x49781c?_0x572ab7['createPositionAfter'](_0x26fc97):_0x572ab7['createPositionAt'](_0x26fc97,'end'));}function Kt(_0x81cc2c,_0x9b30a6,_0x4053d4,_0x6f38b0){return!!Wt(_0x81cc2c,_0x9b30a6)&&_0x4053d4['end']['isEqual'](_0x6f38b0['start']);}function Wt(_0x1d9ff6,_0xbcd607){if(!_0x1d9ff6['_isDataLoaded']||!_0xbcd607['_isDataLoaded'])return!0x1;const _0x362e9a=new Set(Object['keys'](_0x1d9ff6['attributes'])),_0x1f6a30=new Set(Object['keys'](_0xbcd607['attributes']));if(_0x362e9a['delete']('groupId'),_0x1f6a30['delete']('groupId'),0x0==_0x362e9a['size']&&0x0==_0x1f6a30['size'])return!0x0;if(_0x362e9a['size']!=_0x1f6a30['size'])return!0x1;const _0x34b5e2={..._0x1d9ff6['attributes']},_0x43f7fb={..._0xbcd607['attributes']};return delete _0x34b5e2['groupId'],delete _0x43f7fb['groupId'],JSON['stringify'](_0x34b5e2)==JSON['stringify'](_0x43f7fb);}function Qt(_0xd6340b,_0x544d07){const _0x32b165=Xt(_0xd6340b['attributes']),_0x38e052=Xt(_0x544d07);if(!_0xd6340b['_isDataLoaded'])return!0x1;for(const _0x4a8478 of Object['keys'](_0x38e052))if(!_0x28ebbc(_0x32b165[_0x4a8478],_0x38e052[_0x4a8478]))return!0x1;return!0x0;}function Xt(_0x5a7069){const _0x48ae1b=Object['assign']({},_0x5a7069);return delete _0x48ae1b['skipNestingCheck'],delete _0x48ae1b['tablePasteChainId'],_0x48ae1b;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x2b64b8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1a0ed5,_0x20a6c5,_0x117ae3,_0x2b432e){super(),this['model']=_0x20a6c5,this['view']=_0x117ae3,this['commentThreadController']=_0x2b432e,this['_editor']=_0x1a0ed5,this['_acceptCommand']=_0x1a0ed5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1a0ed5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x40cc7e,_0x212e60)=>_0x40cc7e||_0x212e60),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4c4895=>_0x4c4895&&this['_editor']['model']['canEditAt'](_0x20a6c5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3d8e81=>_0x3d8e81&&this['_editor']['model']['canEditAt'](_0x20a6c5['getRanges']())),this['_pendingAction']=null,_0x117ae3['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x117ae3,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x117ae3,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x117ae3,'change:isDirty',()=>{_0x117ae3['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 _0x406212=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x406212);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x1fab17{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2240d6,_0x7ed16e,_0x74ed94,_0x2276a3){super(_0x2240d6),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x48a1fe(_0x2240d6,o(_0x2240d6,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x7ed16e['authoredAt']),this['bind']('authoredAt')['to'](_0x7ed16e),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',_0x7ed16e,'authoredAt',this,'descriptionParts',(_0x48f304,_0x4b1064,_0x800dda)=>{const _0x46b054=_0x800dda['map'](_0x5e473a=>cs(_0x5e473a['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x48f304-0x1,_0x7ed16e['author']['name'],_0x4b1064?_0x2276a3['formatDateTime'](_0x4b1064):'',new DOMParser()['parseFromString'](_0x46b054,'text/html')['body']['textContent']]);}),this['focusables']=new _0x239dc0(),this['focusTracker']=new _0x3116b8(),this['keystrokes']=new _0x10787e(),this['focusCycler']=new _0x1bc5b1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x25c084=>_0x25c084['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x7ed16e,this['_localUser']=_0x74ed94,this['_config']=_0x2276a3,_0x2276a3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xc052c4(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1bb603}=this['_config'];this['commentsListView']=new _0x1bb603(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',_0x5a4735=>_0x5a4735+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x425a8d,_0x1b86c8)=>_0x425a8d||!!_0x1b86c8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2f53da}=this['_config'],_0x10d2ec=new _0x2f53da(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xe72647=_0x10d2ec['commentInputView'];return _0x10d2ec['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xe72647,'value',(_0x94cf18,_0x1c810a,_0x390ed7)=>!!_0x390ed7||_0x94cf18&&!_0x1c810a),_0xe72647['on']('submit',(_0x11cb1f,_0x21a24f)=>{this['fire']('addComment',_0x21a24f),_0xe72647['editor']['setData']('');}),_0xe72647['on']('cancel',()=>this['focus']()),_0xe72647['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x10d2ec;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x190bbb,_0x574482,_0x965aad,_0x40506){super(_0x190bbb,_0x574482,_0x965aad,_0x40506),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x21bd41=>_0x21bd41&&_0x21bd41[0x0]?_0x21bd41[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2a72a3,_0x5c2dbc)=>{let _0x2e05d2='';for(const _0x173fc7 of _0x2a72a3)_0x2e05d2+='<p>'+cs(_0x173fc7['content'],_0x173fc7['color'])+'</p>';return _0x5c2dbc?_0x2e05d2:_0x18f17d(_0x2e05d2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x40506['SuggestionView'](_0x190bbb,_0x574482,{'formatDateTime':_0x40506['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 _0x158407=this['bindTemplate'],_0xa7027=[this['suggestionView']];return this['commentsListView']&&_0xa7027['push'](this['commentsListView']),this['commentThreadInputView']&&_0xa7027['push'](this['commentThreadInputView']),_0xa7027['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x158407['if']('isActive','ck-suggestion-wrapper--active'),_0x158407['to']('type',_0x393804=>'ck-suggestion-'+_0x393804),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':_0x158407['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xa7027};}['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 fe extends _0x1fab17{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5abe0b,_0x16c594,_0x1e1966){super(_0x5abe0b),this['_model']=_0x16c594,this['_config']=_0x1e1966,this['set']('description',''),this['bind']('authoredAt')['to'](_0x16c594),this['acceptButton']=this['_createButton'](o(_0x5abe0b,'Accept\x20suggestion'),_0x5239f1['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5abe0b,'Discard\x20suggestion'),_0x5239f1['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3b0a9c(_0x5abe0b,_0x16c594['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x239dc0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3116b8(),this['keystrokes']=new _0x10787e(),this['focusCycler']=new _0x1bc5b1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4a1a04=>_0x4a1a04['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x263302=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x263302['innerHTML']=this['description'],this['on']('change:description',(_0x3229d9,_0x46c4b0,_0xaea088)=>{_0x263302['innerHTML']=_0xaea088;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x38a520=this['bindTemplate'],_0x2d8010=[{'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':_0x38a520['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x38a520['to']('authoredAt',_0x1854ff=>this['_config']['formatDateTime'](_0x1854ff))}]}]},{'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']&&_0x2d8010['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':_0x2d8010}]};}['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'](_0x5d8e0e,_0x4b915f,_0x3ebff1,_0x270d20,_0x30d4e3){const _0x3b8313=new _0x107628(this['locale']);return _0x3b8313['set']({'label':_0x5d8e0e,'icon':_0x4b915f,'tooltip':!0x0,'tooltipPosition':_0x30d4e3}),_0x3b8313['extendTemplate']({'attributes':{'class':_0x3ebff1}}),_0x3b8313['on']('execute',()=>{this['fire'](_0x270d20,this['_model']['id']);}),_0x3b8313;}['_setupKeyboardNavigation'](){const _0x2050e0=this['element'];this['keystrokes']['listenTo'](_0x2050e0);for(const _0x6b303b of this['focusables'])this['focusTracker']['add'](_0x6b303b['element']),this['keystrokes']['listenTo'](_0x6b303b['element']);this['keystrokes']['set']('enter',(_0x54f577,_0x1352d8)=>{_0x2050e0===_0x54f577['target']&&(this['focusCycler']['focusFirst'](),_0x1352d8());}),this['keystrokes']['set']('esc',(_0x57ab93,_0xdf2593)=>{_0x2050e0!==_0x57ab93['target']&&(this['focus'](),_0xdf2593());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x42796e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x555351,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41cdf4){super(_0x41cdf4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x27232=this['editor']['config'];_0x27232['define']('trackChanges.SuggestionThreadView',pe),_0x27232['define']('trackChanges.SuggestionView',fe),_0x27232['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x27232['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1ef0b0,_0x3971e6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1406c8,_0x536557]of this['_handleControllerBuffer']){const _0x4c55e0=this['_suggestionToController']['has'](_0x1406c8);_0x4c55e0||_0x536557?_0x4c55e0&&_0x536557&&this['_destroyController'](_0x1406c8):this['_initializeController'](_0x1406c8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1ef0b0,_0x3971e6);}['init'](){const _0xaa207e=this['editor'],_0x44a1b7=_0xaa207e['plugins']['get']('TrackChangesEditing'),_0x3461f2=_0xaa207e['plugins']['get']('Annotations'),_0x344ccb=_0xaa207e['plugins']['get']('EditorAnnotations'),_0x504d85=_0xaa207e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x344ccb['addSourceCollector'](()=>{const _0x2dc6ce=[];for(const [_0x51d451,_0x435d53]of Array['from'](this['_suggestionToController'])){const _0x2b1554=_0x51d451['getAllAdjacentSuggestions'](),_0x2e07bb=[];for(const _0x6a5bf7 of _0x2b1554){if(!_0x6a5bf7['isInContent'])continue;if(_0x6a5bf7['isMultiRange']){_0x2e07bb['push'](..._0x6a5bf7['getRanges']());continue;}const _0x5df921=_0x6a5bf7['getFirstRange']();if(_0x2e07bb['length']>0x0){const _0x1b907b=_0x2e07bb[0x0]['getJoined'](_0x5df921);if(_0x1b907b){_0x2e07bb[0x0]=_0x1b907b;continue;}}_0x2e07bb['push'](_0x5df921);}_0x2dc6ce['push']([_0x435d53['view'],_0x2e07bb]);}return _0x2dc6ce;}),this['listenTo'](_0x44a1b7,'suggestionLoaded',(_0x411d5f,_0x467d02)=>{this['listenTo'](_0x467d02,'change:previous',(_0x5f30a6,_0x62a9c6,_0x365997,_0x4ad169)=>{_0x467d02['isInContent']&&(null==_0x365997?(this['_updateController'](_0x4ad169['head']),this['_handleSuggestionControllerDelayed'](_0x467d02,!0x1)):(this['_updateController'](_0x365997['head']),null==_0x4ad169&&this['_handleSuggestionControllerDelayed'](_0x467d02,!0x0)));}),null!==_0x467d02['previous']?this['_updateController'](_0x467d02['head']):this['_handleSuggestionControllerDelayed'](_0x467d02,!0x1);}),this['listenTo'](_0x44a1b7,'suggestionUnloaded',(_0x3666b2,_0x4eaa0a,_0x5cf997)=>{this['stopListening'](_0x4eaa0a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4eaa0a),this['_suggestionToController']['has'](_0x4eaa0a)&&this['_destroyController'](_0x4eaa0a),_0x5cf997&&this['_updateController'](_0x5cf997['head']);}),this['listenTo'](_0x44a1b7,'suggestionChanged',(_0x2b3755,_0x41a74f)=>{this['_updateController'](_0x41a74f);}),this['listenTo'](_0x3461f2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x504d85,'addComment',(_0x30071a,{threadId:_0x530bc5,isFromAdapter:_0x1fa620})=>{if(_0x1fa620||!_0x44a1b7['hasSuggestion'](_0x530bc5))return;const _0x350e20=_0x44a1b7['getSuggestion'](_0x530bc5);this['_suggestionToController']['get'](_0x350e20)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48bc68=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xfec6f5;for(const _0x532e02 in _0x48bc68){const _0x573747=_0x532e02,_0x58e2a5=_0x48bc68[_0x573747];if('trackChangesLicenseKeyValid'==_0x58e2a5||'trackChangesLicenseKeyInvalid'==_0x58e2a5||'trackChangesLicenseKeyExpired'==_0x58e2a5||'trackChangesLicenseKeyDomainLimit'==_0x58e2a5||'trackChangesLicenseKeyNotAllowed'==_0x58e2a5||'trackChangesLicenseKeyEvaluationLimit'==_0x58e2a5||'trackChangesLicenseKeyTrialLimit'==_0x58e2a5||'trackChangesLicenseKeyUsageLimit'==_0x58e2a5){delete _0x48bc68[_0x573747],_0xfec6f5=_0x58e2a5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xfec6f5&&_0x48bc68['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xfec6f5&&_0x48bc68['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xfec6f5&&_0x48bc68['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xfec6f5&&_0x48bc68['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xfec6f5&&_0x48bc68['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xfec6f5&&_0x48bc68['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xfec6f5&&_0x48bc68['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x474a53=this['editor']['plugins']['get']('Annotations'),_0x40d6bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5138d3=Array['from'](_0x474a53['activeAnnotations'],_0x20f8b0=>_0x20f8b0['innerView'])['filter'](_0x12405e=>this['_viewToController']['has'](_0x12405e)),_0x130b46=[];for(const _0xe2b67b of _0x5138d3){const _0x1ffdfe=this['_viewToController']['get'](_0xe2b67b)['model']['getAllAdjacentSuggestions']();_0x130b46['push'](..._0x1ffdfe['reduce']((_0x19d60d,_0x4eef05)=>[..._0x19d60d,..._0x4eef05['getMarkerNames']()],[]));}_0x40d6bb['activeMarkers']=_0x130b46;}['_addUIComponentsToFactory'](){const _0x152e09=this['editor'],_0x1380cb=_0x152e09['locale'],_0x786d09=o(_0x1380cb,'Track\x20changes'),_0x1a7f9c=new _0xaa39ea([{'type':'switchbutton','model':new _0x5f0129({'withText':!0x0,'isToggleable':!0x0,'label':_0x786d09,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5f0129({'withText':!0x0,'label':o(_0x1380cb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5f0129({'withText':!0x0,'label':o(_0x1380cb,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5f0129({'withText':!0x0,'label':o(_0x1380cb,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5f0129({'withText':!0x0,'label':o(_0x1380cb,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x152e09['plugins']['has']('TrackChangesPreview')&&_0x1a7f9c['addMany']([{'type':'separator'},{'type':'button','model':new _0x5f0129({'withText':!0x0,'label':o(_0x1380cb,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3713f4 of _0x1a7f9c)if(ke(_0x3713f4)){const _0x287367=_0x152e09['commands']['get'](_0x3713f4['model']['commandName']);_0x3713f4['model']['bind']('isOn','isEnabled')['to'](_0x287367,'value','isEnabled');}_0x152e09['ui']['componentFactory']['add']('trackChanges',_0x29fe34=>this['_createToolbarButton'](_0x29fe34,_0x1a7f9c,_0x786d09)),_0x152e09['ui']['componentFactory']['add']('menuBar:trackChanges',_0x34f4db=>this['_createMenuBarMenu'](_0x34f4db,_0x1a7f9c,_0x786d09));}['_createToolbarButton'](_0x4d6640,_0x48d49f,_0x31fa73){const _0x3930d8=_0x2f0e3e(_0x4d6640,_0x5d9ae3),_0x17af02=this['editor']['commands']['get']('trackChanges');_0x3930d8['buttonView']['set']({'tooltip':_0x31fa73,'label':_0x31fa73,'icon':we}),_0x3930d8['buttonView']['bind']('isOn')['to'](_0x17af02,'value'),_0x3930d8['buttonView']['on']('execute',()=>{_0x17af02['execute'](),this['editor']['editing']['view']['focus']();}),_0x1ba791(_0x3930d8,_0x48d49f,{'role':'menu'});const _0x6e8715=[];for(const _0x36b5e7 of _0x48d49f)ke(_0x36b5e7)&&_0x6e8715['push'](this['editor']['commands']['get'](_0x36b5e7['model']['commandName']));const _0x13e1a8=_0x3930d8['buttonView'];return _0x13e1a8['actionView']['unbind']('isEnabled'),_0x13e1a8['arrowView']['unbind']('isEnabled'),_0x13e1a8['actionView']['bind']('isEnabled')['to'](_0x17af02,'isEnabled'),_0x13e1a8['arrowView']['bind']('isEnabled')['toMany'](_0x6e8715,'isEnabled',(..._0x8ea8d5)=>_0x8ea8d5['some'](_0xeb064a=>_0xeb064a)),_0x3930d8['on']('execute',_0x161026=>{this['editor']['execute'](_0x161026['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3930d8;}['_createMenuBarMenu'](_0x3593a5,_0x13d5c1,_0x21b82c){const _0x568da9=new _0x50b1ff(_0x3593a5),_0x4700e5=this['editor']['commands']['get']('trackChanges');_0x568da9['buttonView']['set']({'label':_0x21b82c,'icon':we});const _0x4a8ca1=new _0x3c067f(_0x3593a5);for(const _0x712af3 of _0x13d5c1){if('separator'==_0x712af3['type']){_0x4a8ca1['items']['add'](new _0xc0ad48(_0x3593a5));continue;}const _0x20615d=new _0x223a74(_0x3593a5,_0x568da9),_0x40be68=new _0x2727ec(_0x3593a5),_0xeb2ae0=_0x712af3['model'];_0x40be68['bind'](...Object['keys'](_0xeb2ae0))['to'](_0xeb2ae0),_0x40be68['delegate']('execute')['to'](_0x568da9),_0x40be68['on']('execute',()=>{this['editor']['execute'](_0xeb2ae0['commandName']),this['editor']['editing']['view']['focus']();}),_0x20615d['children']['add'](_0x40be68),_0x4a8ca1['items']['add'](_0x20615d);}return _0x568da9['bind']('isEnabled')['to'](_0x4700e5,'isEnabled'),_0x568da9['panelView']['children']['add'](_0x4a8ca1),_0x568da9;}['_initializeController'](_0x33dca3){const _0x255933=this['editor'],_0x5732a8=_0x255933['config'],_0x427e75=_0x255933['plugins']['get']('Annotations'),_0x2d5546=_0x255933['plugins']['get']('CommentsRepository'),_0x2eb759=_0x255933['plugins']['get']('EditorAnnotations'),_0x32b420=_0x255933['plugins']['get'](_0x555351)['me'],_0x5df14e=_0x5732a8['get']('trackChanges')['SuggestionThreadView'],_0x18fed2=_0x5732a8['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x43a643,CommentThreadInputView:_0x1d65f5}=_0x255933['plugins']['get']('CommentsUI');let _0x1e37d8,_0x4f7bb6,_0x14c641;this['_annotationViews']['has'](_0x33dca3['id'])?(_0x4f7bb6=this['_annotationViews']['get'](_0x33dca3['id']),_0x1e37d8=_0x4f7bb6['mainView']):(_0x1e37d8=new _0x5df14e(_0x255933['locale'],_0x33dca3,_0x32b420,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5732a8['get']('comments.editorConfig'),'licenseKey':_0x5732a8['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5732a8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5732a8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5732a8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3c0031(_0x5732a8['get']('locale')),'CommentView':_0x5732a8['get']('comments')['CommentView'],'CommentsListView':_0x43a643,'CommentThreadInputView':_0x1d65f5,'SuggestionView':_0x18fed2}),_0x1e37d8['suggestionView']['acceptButton']['on']('execute',()=>{_0x255933['editing']['view']['focus']();}),_0x1e37d8['suggestionView']['discardButton']['on']('execute',()=>{_0x255933['editing']['view']['focus']();}),_0x4f7bb6=_0x427e75['createAnnotationView'](this['editor']['locale'],_0x1e37d8),_0x4f7bb6['bind']('isDirty')['to'](_0x1e37d8,'isDirty'),_0x4f7bb6['bind']('length')['to'](_0x1e37d8),_0x4f7bb6['bind']('type')['to'](_0x1e37d8,'type',_0x14ce7f=>'suggestion-'+_0x14ce7f),_0x1e37d8['on']('escape',()=>{_0x14c641['fire']('escape');}),this['_annotationViews']['set'](_0x33dca3['id'],_0x4f7bb6));const _0x21f78c=_0x2d5546['createCommentThreadController'](_0x33dca3['commentThread'],_0x1e37d8),_0x5ca06c=new Ce(_0x255933,_0x33dca3,_0x1e37d8,_0x21f78c),_0x2e97ad=_0x33dca3['getAllAdjacentSuggestions']()['filter'](_0x28ee14=>_0x28ee14['isInContent']);_0x1e37d8['descriptionParts']=_0x255933['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2e97ad),this['_suggestionToController']['set'](_0x33dca3,_0x5ca06c),this['_viewToController']['set'](_0x1e37d8,_0x5ca06c),_0x14c641=_0x427e75['createAnnotation']({'view':_0x4f7bb6,'target':()=>{const _0x5e774f=[],_0x168177=_0x33dca3['getAllAdjacentSuggestions']()['filter'](_0x3a3158=>_0x3a3158['isInContent']);for(const _0x1f9545 of _0x168177)_0x5e774f['push'](..._0x1f9545['getMarkers']());return _0x598c9d(_0x255933['editing'],_0x5e774f);},'type':()=>'suggestion-'+_0x5ca06c['view']['type']}),_0x2d5546['_bindAnnotationToEditors'](_0x1e37d8,_0x14c641),_0x427e75['add'](_0x14c641),_0x2eb759['registerAnnotation'](_0x14c641);}['_destroyController'](_0x2f9ff8){const _0x40c5d9=this['editor']['plugins']['get']('CommentsRepository'),_0x1800ff=this['editor']['plugins']['get']('Annotations'),_0xbeb44e=this['_suggestionToController']['get'](_0x2f9ff8),_0x287046=_0xbeb44e['view'],_0x4f30e7=_0x1800ff['getByInnerView'](_0x287046);_0x40c5d9['_unbindEditors'](_0x287046),_0x4f30e7&&_0x1800ff['remove'](_0x4f30e7),this['_suggestionToController']['delete'](_0x2f9ff8),this['_viewToController']['delete'](_0x287046),_0xbeb44e['destroy']();}['_updateController'](_0xedf214){if(!_0xedf214['isInContent']||!this['_suggestionToController']['has'](_0xedf214))return;const _0x327c9d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fc417=this['_suggestionToController']['get'](_0xedf214),_0xadf977=_0xedf214['getAllAdjacentSuggestions']();_0x4fc417['view']['descriptionParts']=_0x327c9d['descriptionFactory']['getDescriptions'](_0xadf977);}['destroy'](){for(const _0x360422 of this['_suggestionToController']['keys']())this['_destroyController'](_0x360422);for(const _0xef76a9 of this['_annotationViews']['values']())_0xef76a9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x472b78){return'model'in _0x472b78;}class k extends _0x42796e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x547c39){this['editor']['plugins']['get'](p)['adapter']=_0x547c39;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1cafa2){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1cafa2);}['getSuggestions']({skipNotAttached:_0x1e36b9=!0x1,toJSON:_0x419150=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1e36b9,'toJSON':_0x419150});}['getSuggestion'](_0x9a181a){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x9a181a);}}const w=['Pagination'];class T extends _0x42796e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x28cc78=this['editor'];if(_0x28cc78['config']['define']('trackChangesData.editorCreator',_0x4020da=>{const _0x54a375=_0x28cc78['model']['document']['getRootNames']()['reduce']((_0x3d6cd9,_0x36de7d)=>(_0x3d6cd9[_0x36de7d]='',_0x3d6cd9),{});return _0x28cc78['constructor']['create'](_0x54a375,_0x4020da);}),'function'!=typeof _0x28cc78['config']['get']('trackChangesData')['editorCreator'])throw new _0x4aa60d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4da4ea){return N(this['editor'],!0x0,_0x4da4ea);}['getDataWithDiscardedSuggestions'](_0x1fa46a){return N(this['editor'],!0x1,_0x1fa46a);}}class D extends _0x42796e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c9ee7){function _0x10ac97(_0x52eb29){return _0x52eb29['map'](_0x4d518f=>String['fromCharCode'](_0x4d518f))['join']('');}super(_0x1c9ee7),this['result']='end',_0x1c9ee7[_0x10ac97([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10ac97([0x76,0x69,0x65,0x77])][_0x10ac97([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10ac97([0x61,0x75,0x74,0x6f]),_0x1c9ee7[_0x10ac97([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x10ac97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10ac97([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x10ac97([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x10ac97([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 Fe(_0x214d1a){return void 0x0!==_0x214d1a['getRootsAttributes'];}async function N(_0x25aa12,_0x74ed3a,_0x1c8c6f){const _0x3f2a99=_0x1a4acd(_0x25aa12,w);_0x3f2a99['plugins']['push'](p,D),_0x3f2a99['rootsAttributes']=Fe(_0x25aa12)?_0x25aa12['getRootsAttributes']():void 0x0;const _0x24661a=document['createDocumentFragment'](),_0x11a144=_0x25aa12['config']['get']('trackChangesData')['editorCreator'],_0x27cfc5=await _0x11a144(_0x3f2a99,()=>function(_0x39ae6a){const _0x20973d=document['createElement']('div');return _0x39ae6a['appendChild'](_0x20973d),_0x20973d;}(_0x24661a));!function(_0x3ca4d3,_0x27d4ba){const _0x5b1dc0=_0x3ca4d3['model']['document']['getRootNames']()['reduce']((_0x4982ad,_0x317498)=>(_0x4982ad[_0x317498]=_0x3ca4d3['data']['get']({'rootName':_0x317498}),_0x4982ad),{}),_0x4dac1b=_0x3ca4d3['plugins']['get']('Users')['users']['map'](_0x5f416f=>({'id':_0x5f416f['id'],'name':_0x5f416f['name']})),_0x86104c=_0x3ca4d3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x355a22=_0x3ca4d3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x284418=_0x27d4ba['plugins']['get']('Users'),_0x3cc2e9=_0x27d4ba['plugins']['get']('TrackChangesEditing'),_0x341d9a=_0x27d4ba['plugins']['get']('CommentsRepository');for(const _0x6f17cc of _0x341d9a['getCommentThreads']())_0x6f17cc['remove']();for(const _0x2b222c of _0x4dac1b)_0x284418['getUser'](_0x2b222c['id'])||_0x284418['addUser'](_0x2b222c);_0x284418['me']||_0x284418['useAnonymousUser']();for(const _0x59eb4b of _0x355a22)_0x341d9a['addCommentThread'](_0x59eb4b);for(const _0x1fc5e2 of _0x86104c)_0x3cc2e9['addSuggestionData'](_0x1fc5e2);_0x27d4ba['data']['set'](_0x5b1dc0);}(_0x25aa12,_0x27cfc5),_0x27cfc5['execute'](_0x74ed3a?'acceptAllSuggestions':'discardAllSuggestions');const _0x1f6228=Fe(_0x27cfc5)?_0x27cfc5['getFullData'](_0x1c8c6f):_0x27cfc5['data']['get'](_0x1c8c6f);return await _0x27cfc5['destroy'](),_0x1f6228;}class Me extends _0x1fab17{['options'];constructor(_0x2292c9,_0x4678cc){super(_0x2292c9),this['options']=_0x4678cc,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'](_0x426cb6,_0x4a1281){if(!this['element'])return;const _0x2a1f16=[];for(const [_0x3ed47c,_0x25e15a]of _0x426cb6){const _0x570a01=document['createElement']('div');_0x570a01['setAttribute']('data-ck-root-name',_0x3ed47c),_0x570a01['className']=_0x25e15a['classes']+'\x20ck-track-changes-preview__root-container',_0x570a01['innerHTML']=_0x25e15a['content'],_0x2a1f16['push'](_0x570a01);}_0x4a1281(this['element'],_0x2a1f16),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x3c29fc){super(_0x3c29fc),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2374e4=this['editor'],_0xfbb05c=_0x2374e4['locale'],_0x510cac=_0x2374e4['plugins']['get']('Dialog');let _0x4f3320;const _0x1cc5a7=function(_0x1bb701){const _0x387fab={};if('editables'in _0x1bb701['ui']['view']){for(const [_0x2cc2fe,_0x4943b3]of Object['entries'](_0x1bb701['ui']['view']['editables']))_0x387fab[_0x2cc2fe]=_0x4943b3['element'];}else _0x387fab[_0x1bb701['model']['document']['getRootNames']()[0x0]]=_0x1bb701['ui']['view']['editable']['element'];return _0x387fab;}(_0x2374e4),_0x2c3ea8=function(_0x44439b){let _0x855716=0x0;for(const _0x42b78e of Object['values'](_0x44439b))_0x855716=Math['max'](_0x855716,_0x42b78e['getBoundingClientRect']()['width']);let _0x308b2e=0x0;for(const _0x1c35d0 of Object['values'](_0x44439b))_0x308b2e+=_0x1c35d0['getBoundingClientRect']()['height'];const _0x31f44f=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4803b2=Math['min'](_0x308b2e,_0x31f44f);return{'width':_0x855716,'height':_0x4803b2};}(_0x1cc5a7);_0x510cac['show']({'id':'finalContentPreview','title':o(_0xfbb05c,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xfbb05c,{'dialogRects':_0x2c3ea8}),'onHide':()=>{_0x4f3320['detachFromDom']();},'onShow':()=>{_0x2374e4['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x44f1d9=>{const _0x3d9eb6=this['_standarizeRootsData'](_0x44f1d9,_0x2374e4,_0x1cc5a7);_0x510cac['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3d9eb6,_0x2374e4['config']['get']('trackChanges.preview.renderFunction'));}),_0x4f3320=new _0xd48db6(_0xfbb05c,[_0x510cac['view']]),_0x4f3320['attachToDom'](),_0x4f3320['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2374e4['once']('destroy',()=>{_0x4f3320['detachFromDom']();});const _0x557979=_0x510cac['view']['headerView']['class'];_0x510cac['view']['headerView']['class']=_0x557979?_0x557979+'\x20ck-reset_all':'ck-reset_all',_0x510cac['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x510cac['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x48452c=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x50f8d9=_0x48452c['previewMode'],_0x3516f0={};if('$labels'===_0x50f8d9){for(const _0x19cd9e of _0x48452c['getMergeFieldsIds']())_0x3516f0[_0x19cd9e]=_0x48452c['getLabel'](_0x19cd9e)||_0x19cd9e;}else{const _0xfe9957='$defaultValues'===_0x50f8d9?_0x48452c['getDefaultValues']():_0x48452c['getDataSetValues'](_0x50f8d9,!0x0);for(const _0x57aa11 of Object['entries'](_0xfe9957)){const [_0x2b1223,_0x218019]=_0x57aa11;_0x3516f0[_0x2b1223]=null!==_0x218019?_0x218019:_0x48452c['getLabel'](_0x2b1223)||_0x2b1223;}}return{'mergeFieldsData':_0x3516f0};}['_standarizeRootsData'](_0xff3b26,_0x1371cc,_0x111f25){let _0x3e0472;if('string'==typeof _0xff3b26){const _0x1d9d75=_0x1371cc['model']['document']['getRootNames']()[0x0];_0x3e0472={[_0x1d9d75]:_0xff3b26};}else _0x3e0472=_0xff3b26;const _0x19a70e=this['_fixMediaEmbeds'](_0x3e0472,_0x1371cc),_0x119a01=function(_0x13f661,_0x1053ce){for(const [_0x4293cc,_0xece8d6]of _0x13f661)_0xece8d6['classes']=_0x1053ce[_0x4293cc]['classList']['value']['replace']('ck-focused','');return _0x13f661;}(this['_sortRoots'](_0x1371cc)['reduce']((_0x4a5a56,_0x16b123)=>(_0x4a5a56['push']([_0x16b123,{'content':_0x19a70e[_0x16b123],'classes':''}]),_0x4a5a56),[]),_0x111f25);return _0x119a01;}['_fixMediaEmbeds'](_0x375d74,_0x18b1e2){if(!_0x18b1e2['plugins']['has']('MediaEmbedEditing'))return _0x375d74;const _0x9797f8=_0x18b1e2['plugins']['get']('MediaEmbedEditing');for(const [_0x3eefee,_0x405f0f]of Object['entries'](_0x375d74)){const _0x4515c6=document['createElement']('div');_0x4515c6['innerHTML']=_0x405f0f,(_0x4515c6['querySelectorAll']('figure.media')['forEach'](_0x6d5cb1=>{const _0x469f9f=_0x6d5cb1['querySelector']('oembed');if(_0x469f9f){const _0x129f99=_0x469f9f['getAttribute']('url');if(_0x129f99){const _0x5235e9=_0x9797f8['registry']['getMediaViewElement'](new _0x5619c4(_0x18b1e2['editing']['view']['document']),_0x129f99,{'elementName':'','renderForEditingView':!0x0}),_0x5acf6d=document['createElement']('div');_0x5acf6d['classList']['add']('ck-media__wrapper'),_0x5235e9['render'](_0x5acf6d,_0x18b1e2['editing']['view']['domConverter']),_0x469f9f['replaceWith'](_0x5acf6d);}}}),_0x375d74[_0x3eefee]=_0x4515c6['innerHTML']);}return _0x375d74;}['_sortRoots'](_0x58e211){if(!function(_0x5b1408){return void 0x0!==_0x5b1408['getRootsAttributes'];}(_0x58e211))return _0x58e211['model']['document']['getRootNames']();const _0x5207c0=[],_0x4da8b4=new Map();for(const _0x561af1 of _0x58e211['model']['document']['getRootNames']()){const _0x4b981e=_0x58e211['editing']['view']['getDomRoot'](_0x561af1)['getClientRects']()['item'](0x0);_0x5207c0['push'](_0x561af1),_0x4da8b4['set'](_0x561af1,_0x4b981e);}return _0x5207c0['sort']((_0x2bd93a,_0x4eaa15)=>{const _0x162f61=_0x4da8b4['get'](_0x2bd93a),_0x15e8fe=_0x4da8b4['get'](_0x4eaa15);return _0x162f61['y']-_0x15e8fe['y']||_0x162f61['x']-_0x15e8fe['x'];}),_0x5207c0;}}class te extends _0x42796e{static get['requires'](){return[T,_0x291061];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x140f43){super(_0x140f43),_0x140f43['commands']['add']('previewFinalContent',new re(this['editor'])),_0x140f43['config']['define']('trackChanges.preview.renderFunction',(_0x1dd9d2,_0x30d9a8)=>{for(const _0x55e6ba of _0x30d9a8)_0x1dd9d2['appendChild'](_0x55e6ba);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Yt,Plugin as _0xe53f34,PendingActions as _0xc459f1,icons as _0x1ab810}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4fb61a,ObservableMixin as _0x4ea30c,uid as _0x2a43ef,priorities as _0x482ebf,insertToPriorityArray as _0x29009f,logWarning as _0xf3f8c9,getEnvKeystrokeText as _0x48e3ba,FocusTracker as _0x47fa36,KeystrokeHandler as _0x47ea04,Collection as _0x1b7168}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3d1be8,View as _0x381a78,ViewCollection as _0x407dcc,FocusCycler as _0x207c8b,ViewModel as _0x3645f6,createDropdown as _0x3b9ca1,SplitButtonView as _0x47076f,addListToDropdown as _0x4cce8e,MenuBarMenuView as _0x492057,MenuBarMenuListView as _0x1f8842,ListSeparatorView as _0x3bf922,MenuBarMenuListItemView as _0x2f76fd,MenuBarMenuListItemButtonView as _0x2f1185,BodyCollection as _0x564e3a,Dialog as _0x303d56}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4d2373,hashObject as _0x1fabfe,surroundingMarkersDetector as _0x34598a,FOCUS_ANNOTATION_KEYSTROKE as _0x11ab76,AriaDescriptionView as _0x44ad81,setupThreadKeyboardNavigation as _0xae584,trimHtml as _0x12de81,UserView as _0x3310f3,LateFocusButtonView as _0x4007a2,getDateTimeFormatter as _0x3fd531,getAllMarkersDomElementsSorted as _0x2e4666,sanitizeEditorConfig as _0xf7ce82}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xccc87e,LiveRange as _0x49f219,LivePosition as _0x452a32,DowncastWriter as _0xb9897e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x21eca2,toWidget as _0x188437}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x13bcbd,set as _0x1f21e4,isEqual as _0xabd137,unset as _0x511dc1,omit as Vt}from'lodash-es';import{Delete as _0x391110,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x530a3e,ShiftEnter as _0x38316b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x326530,_0x2afe0e){super(_0x326530),this['_enabledCommands']=_0x2afe0e,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 _0x3ec494 of this['editor']['commands']['commands']())_0x3ec494['affectsData']&&!this['_enabledCommands']['has'](_0x3ec494)&&_0x3ec494['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3da4da of this['editor']['commands']['commands']())_0x3da4da['affectsData']&&!this['_enabledCommands']['has'](_0x3da4da)&&_0x3da4da['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x153c84,_0x29aff3){super(_0x153c84),this['_suggestions']=_0x29aff3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1d672d){const _0x2766fc=this['_suggestions']['get'](_0x1d672d);if(!_0x2766fc)throw new _0x4fb61a('track-changes-accept-suggestion-not-found',this);const _0x312122=_0x2766fc['getRanges']();this['editor']['model']['canEditAt'](_0x312122)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2766fc);}}class R extends Yt{['_suggestions'];constructor(_0x5e776d,_0x2c3a2d){super(_0x5e776d),this['_suggestions']=_0x2c3a2d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x512b08){const _0xe6f077=this['_suggestions']['get'](_0x512b08);if(!_0xe6f077)throw new _0x4fb61a('track-changes-discard-suggestion-not-found',this);const _0x594681=_0xe6f077['getRanges']();this['editor']['model']['canEditAt'](_0x594681)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xe6f077);}}function cs(_0x971aac,_0x5812c8){let _0x581bc1='';return _0x581bc1+=_0x971aac['split']('*')['map']((_0x33e05d,_0x19b6e5)=>_0x19b6e5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x33e05d)+'</span>':nn(_0x33e05d))['join'](''),_0x5812c8&&(_0x581bc1+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5812c8['value']+'\x22\x20title=\x22'+_0x5812c8['title']+'\x22></span>'),_0x581bc1;}function nn(_0x425f8f){const _0x28a8ac=document['createElement']('span');return _0x28a8ac['innerText']=_0x425f8f,_0x28a8ac['innerHTML'];}function Zt(_0x1adcc){return _0x1adcc['sort']((_0x2b5b36,_0x364039)=>'deletion'==_0x2b5b36['type']&&'deletion'!=_0x364039['type']?-0x1:'deletion'!=_0x2b5b36['type']&&'deletion'==_0x364039['type']?0x1:0x0);}function to(_0x234559,_0x1a656b){let _0x349189,_0x8f6f9=0x0;const _0x440e52=[],_0xb91971=_0x1a656b['schema'];for(;_0x8f6f9<_0x234559['length'];){const _0x3c9432=_0x234559[_0x8f6f9],_0x531752=_0x234559[_0x8f6f9+0x1];_0x349189||(_0x349189=_0x1a656b['createPositionBefore'](_0x3c9432)),on(_0x1a656b,_0x3c9432,_0x531752)||(_0x440e52['push'](_0x1a656b['createRange'](_0x349189,_0xb91971['isObject'](_0x3c9432)?_0x1a656b['createPositionAfter'](_0x3c9432):_0x1a656b['createPositionAt'](_0x3c9432,'end'))),_0x349189=null),_0x8f6f9++;}return _0x440e52;}function on(_0x5ba0c3,_0x53344a,_0x254d0f){if(!_0x254d0f)return!0x1;const _0x3b8a64=_0x5ba0c3['createPositionAfter'](_0x53344a),_0x2bf4eb=_0x5ba0c3['createPositionBefore'](_0x254d0f);return _0x3b8a64['isTouching'](_0x2bf4eb);}function ts(_0x56cd74,_0x38ad4d,_0x37f079){for(;_0x37f079['length'];){const _0x6c21e6=_0x37f079['splice'](0x0,0x64);_0x56cd74['change'](()=>{for(const _0x59f1fe of _0x6c21e6)_0x59f1fe['isInContent']&&_0x38ad4d['execute'](_0x59f1fe['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x40fb6f,_0xd634a4,_0x35d6fd){super(_0x40fb6f),this['_command']=_0xd634a4,this['_suggestions']=_0x35d6fd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x376bfc=Array['from'](this['_suggestions']['values']())['some'](_0x56b4af=>_0x56b4af['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x376bfc;}['execute'](){const _0xdc9236=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x2845a8 of _0xdc9236){const _0x233d1b=_0x2845a8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x233d1b))return;}ts(this['editor']['model'],this['_command'],_0xdc9236);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x561e13,_0xe55406,_0x182a04){super(_0x561e13),this['_command']=_0xe55406,this['_suggestions']=_0x182a04,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x248b16=this['editor']['model']['document']['selection'],_0x1b9b08=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5c6bd3,_0x312383){const _0x13d228=Array['from'](_0x5c6bd3['getRanges']()),_0x5a6f75=new Set();for(const _0x17a028 of _0x312383)if(_0x17a028['isInContent']){for(const _0x1b9bb8 of _0x13d228)for(const _0x27132d of _0x17a028['getRanges']())(_0x1b9bb8['isIntersecting'](_0x27132d)||_0x5c6bd3['isCollapsed']&&!_0x17a028['isMultiRange']&&_0x17a028['next']&&_0x27132d['end']['isTouching'](_0x1b9bb8['start']))&&_0x5a6f75['add'](_0x17a028);}return _0x5a6f75;}(_0x248b16,_0x1b9b08),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5a1d90=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x56c656 of _0x5a1d90){const _0x45d103=_0x56c656['getRanges']();if(!this['editor']['model']['canEditAt'](_0x45d103))return;}ts(this['editor']['model'],this['_command'],_0x5a1d90);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x4ea30c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x440803,_0x209504){super(),this['id']=_0x209504['id'],this['type']=_0x209504['type'],this['subType']=_0x209504['subType']||null,this['author']=_0x209504['author'],this['creator']=_0x209504['creator']||_0x209504['author'],this['isExternal']=Boolean(_0x209504['attributes']&&_0x209504['attributes']['@external']),this['data']=null,this['_model']=_0x440803,this['_onAccept']=_0x209504['onAccept'],this['_onDiscard']=_0x209504['onDiscard'],this['_onAttributesChange']=_0x209504['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x209504['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 _0x77c53c=this;for(;_0x77c53c['previous'];)_0x77c53c=_0x77c53c['previous'];return _0x77c53c;}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'](_0x95366f){this['_markerNames']['add'](_0x95366f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4b68d4=>this['_model']['markers']['get'](_0x4b68d4))['filter'](_0x468a61=>_0x468a61);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x10a613=>{for(const _0x39c3a7 of this['getMarkers']())_0x10a613['removeMarker'](_0x39c3a7);}),this['_markerNames']['clear']();}['removeMarker'](_0xceb65){this['_model']['change'](_0x5c743b=>{_0x5c743b['removeMarker'](_0xceb65);}),this['_markerNames']['delete'](_0xceb65);}['addRange'](_0x323343){const _0x597428='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x597428),this['_model']['change'](_0x14bb4c=>{_0x14bb4c['addMarker'](_0x597428,{'range':_0x323343,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x23fcd8){for(const _0x54e062 of this['getRanges']())if(_0x54e062['isIntersecting'](_0x23fcd8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x28ab45=>_0x28ab45['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1ccb36,_0xfc159a)=>[..._0x1ccb36,..._0xfc159a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4fff37=this['getRanges']();if(0x1!=_0x4fff37['length'])return null;const _0x44d694=_0x4fff37[0x0],_0x51835d=_0x44d694['start']['nodeAfter'],_0x39a3f9=_0x44d694['end']['nodeBefore'];return _0x51835d instanceof _0xccc87e?_0x51835d!=_0x39a3f9?null:_0x51835d: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 _0x215338=[];let _0x43cc0b=this['head'];for(;_0x43cc0b;)_0x215338['push'](_0x43cc0b),_0x43cc0b=_0x43cc0b['next'];return _0x215338;}['setAttribute'](_0x4648b7,_0x35397e){const _0x50694=_0x13bcbd(this['attributes']);_0x1f21e4(_0x50694,_0x4648b7,_0x35397e),_0xabd137(_0x50694,this['attributes'])||(this['attributes']=_0x50694,this['_onAttributesChange'](_0x50694));}['removeAttribute'](_0xf07cb){const _0x5e6884=_0x13bcbd(this['attributes']);_0x511dc1(_0x5e6884,_0xf07cb),_0xabd137(_0x5e6884,this['attributes'])||(this['attributes']=_0x5e6884,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 _0x2a43ef()['substr'](0x1,0x5);}}function o(_0x33c27f,_0xbf7107,_0x5e0f16){const _0x39726f=_0x33c27f['t'],t=_0x33c27f['t'];switch(_0xbf7107){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',_0x5e0f16);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5e0f16);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5e0f16);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5e0f16);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5e0f16);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',_0x5e0f16);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5e0f16);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',_0x5e0f16);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5e0f16);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5e0f16);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5e0f16);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5e0f16);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5e0f16);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5e0f16);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5e0f16);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5e0f16);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5e0f16);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5e0f16);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5e0f16);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5e0f16);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5e0f16);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5e0f16);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5e0f16);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5e0f16);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'},_0x5e0f16);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5e0f16);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5e0f16);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5e0f16);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5e0f16);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5e0f16);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'},_0x5e0f16);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5e0f16);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5e0f16);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5e0f16);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5e0f16);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'},_0x5e0f16);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5e0f16);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'},_0x5e0f16);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'},_0x5e0f16);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5e0f16);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'},_0x5e0f16);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5e0f16);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'},_0x5e0f16);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5e0f16);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5e0f16);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'},_0x5e0f16);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5e0f16);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 _0x39726f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5e0f16);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x39726f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5e0f16);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5e0f16);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'},_0x5e0f16);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'},_0x5e0f16);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'},_0x5e0f16);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xbf7107;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3742a7,_0x13ef3b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3742a7,this['_locale']=_0x13ef3b;}['getDescriptions'](_0x1b4dd2){const _0x1d2bdb=[],_0x3e282e=new Set(),_0x552b58=new Set();for(let _0x104188=0x0;_0x104188<_0x1b4dd2['length'];_0x104188++){const _0x981428=_0x1b4dd2[_0x104188];if(!_0x981428['isInContent'])continue;const _0xf7c0=this['_handleCustomCallbackDescription'](_0x981428);if(_0xf7c0){if(null!=_0x981428['subType']){if(_0x3e282e['has'](_0x981428['subType']))continue;_0x3e282e['add'](_0x981428['subType']);}_0x1d2bdb['push'](_0xf7c0);}else{if('attribute'!=_0x981428['type'])'insertion'!=_0x981428['type']&&'deletion'!=_0x981428['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1d2bdb,_0x981428,_0x1b4dd2[_0x104188+0x1]);else{const _0x5bb7ec=_0x981428['data']['key'];if(_0x552b58['has'](_0x5bb7ec))continue;_0x552b58['add'](_0x981428['data']['key']),_0x5bb7ec==m?this['_handleRenameSuggestionDescription'](_0x1d2bdb,_0x981428):this['_handleAttributeSuggestionDescription'](_0x1d2bdb,_0x981428);}}}return this['_resolveDescriptionItems'](_0x1d2bdb);}['registerDescriptionCallback'](_0x8b67e7){this['_customCallbacks']['push'](_0x8b67e7);}['registerElementLabel'](_0x467f7d,_0x53de42,_0x23ba98=_0x482ebf['normal']){'function'==typeof _0x467f7d?_0x29009f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x467f7d,'label':_0x53de42,'priority':_0x23ba98}):this['_itemLabels']['set'](_0x467f7d,_0x53de42);}['registerAttributeLabel'](_0x5ac50a,_0x3cb405){this['_attributeLabels']['set'](_0x5ac50a,_0x3cb405);}['getItemLabel'](_0x3886cb,_0xf3b39d=0x1){let _0x2b8842;for(const _0x3302ca of this['_itemLabelsCallbacks'])if(_0x3302ca['matchingCallback'](_0x3886cb)){_0x2b8842=_0x3302ca['label'];break;}return _0x2b8842||(_0x2b8842=this['_itemLabels']['get'](_0x3886cb['name'])),_0x2b8842?_0x2b8842(_0xf3b39d):0x1!==_0xf3b39d?_0xf3b39d+'\x20'+_0x3886cb['name']+'s':''+_0x3886cb['name'];}['_addDescriptionItems'](_0x3a6750,_0x2d0b4f){const _0x238054=_0x2d0b4f['getFirstRange']()['getWalker'](),_0x3cd372='insertion'==_0x2d0b4f['type']?'add':'remove';for(const _0x4be7b7 of _0x238054){const _0x4b2dda=_0x4be7b7['item'],_0x1a3dbf=_0x3a6750[_0x3a6750['length']-0x1];if(_0x4b2dda['is']('$textProxy'))_0x1a3dbf&&_0x1a3dbf['type']['indexOf']('Container')>-0x1&&_0x3a6750['pop'](),_0x1a3dbf&&'text'==_0x1a3dbf['type']?_0x1a3dbf[_0x3cd372]+=_0x4b2dda['data']:_0x3a6750['push']({'type':'text','add':'add'==_0x3cd372?_0x4b2dda['data']:'','remove':'remove'==_0x3cd372?_0x4b2dda['data']:''});else{if(this['_schema']['isObject'](_0x4b2dda)){const _0xa3bea7=_0x4b2dda;if(_0x1a3dbf&&_0x1a3dbf['type']['indexOf']('Container')>-0x1&&_0x3a6750['pop'](),'elementEnd'==_0x4be7b7['type'])continue;_0x1a3dbf&&_0x1a3dbf['type']==_0x3cd372+'Object'&&_0x1a3dbf['element']['name']==_0xa3bea7['name']?_0x1a3dbf['quantity']++:_0x3a6750['push']({'type':_0x3cd372+'Object','element':_0xa3bea7,'quantity':0x1}),_0x238054['skip'](_0x35a394=>!('elementEnd'==_0x35a394['type']&&_0x35a394['item']==_0x4b2dda));}else{if(this['_schema']['checkChild'](_0x4b2dda,'$text')||_0x4b2dda['is']('element','softBreak')){const _0x1cefa0=_0x4b2dda;if('add'==_0x3cd372&&'elementStart'==_0x4be7b7['type']||'remove'==_0x3cd372&&'elementEnd'==_0x4be7b7['type'])continue;if(_0x1a3dbf&&-0x1==_0x1a3dbf['type']['indexOf']('Container')){'text'==_0x1a3dbf['type']&&(_0x1a3dbf[_0x3cd372]+='\x0a');continue;}let _0x40a98e;if(_0x40a98e='add'==_0x3cd372?_0x1cefa0['nextSibling']&&!this['_schema']['isObject'](_0x1cefa0['nextSibling'])?_0x1cefa0['nextSibling']:null:_0x1cefa0['previousSibling']&&!this['_schema']['isObject'](_0x1cefa0['previousSibling'])?_0x1cefa0['previousSibling']:null,_0x1cefa0['isEmpty']||_0x40a98e&&_0x40a98e['isEmpty']){const _0x68cf9a=_0x40a98e&&_0x40a98e['isEmpty']?_0x40a98e:_0x1cefa0;_0x1a3dbf&&_0x1a3dbf['type']==_0x3cd372+'EmptyContainer'&&_0x1a3dbf['element']['name']==_0x68cf9a['name']?_0x1a3dbf['quantity']++:_0x3a6750['push']({'type':_0x3cd372+'EmptyContainer','element':_0x68cf9a,'quantity':0x1});}else _0x3a6750['push']({'type':_0x3cd372+'Container','element':_0x1cefa0});}}}}}['_resolveDescriptionItems'](_0x249d86){const _0xb892da=this['_locale'],_0x2fa748=[],_0x29e09a=[],_0x56e44a=[];for(const _0x2696a4 of _0x249d86)switch(_0x2696a4['type']){case'text':if(_0x2696a4['add']=_0x2696a4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2696a4['remove']=_0x2696a4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2696a4['add']&&''!=_0x2696a4['remove']){_0x2fa748['push']({'type':'replace','content':o(_0xb892da,'REPLACE_TEXT',['\x22'+_0x2696a4['remove']+'\x22','\x22'+_0x2696a4['add']+'\x22'])});continue;}if(null!=_0x2696a4['add']['match'](/^ +$/)){_0x2fa748['push']({'type':'insertion','content':o(_0xb892da,'*Insert:*\x20%0',o(_0xb892da,'ELEMENT_SPACE',_0x2696a4['add']['length']))});continue;}if(null!=_0x2696a4['remove']['match'](/^ +$/)){_0x2fa748['push']({'type':'deletion','content':o(_0xb892da,'*Remove:*\x20%0',o(_0xb892da,'ELEMENT_SPACE',_0x2696a4['remove']['length']))});continue;}if(''!=_0x2696a4['add']){_0x2fa748['push']({'type':'insertion','content':o(_0xb892da,'*Insert:*\x20%0','\x22'+_0x2696a4['add']+'\x22')});continue;}_0x2fa748['push']({'type':'deletion','content':o(_0xb892da,'*Remove:*\x20%0','\x22'+_0x2696a4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2fa748['push']({'type':'insertion','content':o(_0xb892da,'*Insert:*\x20%0',this['getItemLabel'](_0x2696a4['element'],_0x2696a4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2fa748['push']({'type':'deletion','content':o(_0xb892da,'*Remove:*\x20%0',this['getItemLabel'](_0x2696a4['element'],_0x2696a4['quantity']))});continue;case'addContainer':_0x2fa748['push']({'type':'insertion','content':o(_0xb892da,'*Split:*\x20%0',this['getItemLabel'](_0x2696a4['element'],_0x2696a4['quantity']))});continue;case'removeContainer':_0x2fa748['push']({'type':'deletion','content':o(_0xb892da,'*Merge:*\x20%0',this['getItemLabel'](_0x2696a4['element'],_0x2696a4['quantity']))});continue;case'addFormat':_0x29e09a['push'](_0x2696a4['key']);continue;case'removeFormat':_0x56e44a['push'](_0x2696a4['key']);continue;default:_0x2fa748['push'](_0x2696a4);}if(_0x29e09a['length']){const _0x1f714c=_0x29e09a['map'](_0x5464ba=>this['_attributeLabels']['has'](_0x5464ba)?this['_attributeLabels']['get'](_0x5464ba):_0x5464ba)['join'](',\x20');_0x2fa748['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1f714c)});}if(_0x56e44a['length']){const _0x101f59=_0x56e44a['map'](_0x3531ac=>this['_attributeLabels']['has'](_0x3531ac)?this['_attributeLabels']['get'](_0x3531ac):_0x3531ac)['join'](',\x20');_0x2fa748['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x101f59)});}return _0x2fa748;}['_handleCustomCallbackDescription'](_0x28a77a){for(const _0x5c05d1 of this['_customCallbacks']){const _0x5d426a=_0x5c05d1(_0x28a77a);if(_0x5d426a&&'type'in _0x5d426a)return _0x5d426a;}}['_handleAttributeSuggestionDescription'](_0x206f4d,_0x35f49c){const _0x272125=_0x35f49c['data'],_0x5690bb=void 0x0===_0x272125['newValue']?'removeFormat':'addFormat';_0x206f4d['push']({'type':_0x5690bb,'key':_0x272125['key']});}['_handleRenameSuggestionDescription'](_0x3f3334,_0xf7aa79){_0x3f3334['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xf7aa79['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4d8240,_0x5e07a2,_0x2c095b){if(this['_addDescriptionItems'](_0x4d8240,_0x5e07a2),_0x2c095b&&_0x2c095b['getFirstRange']()&&!_0x5e07a2['getFirstRange']()['end']['isEqual'](_0x2c095b['getFirstRange']()['start'])){const _0x1d88f2=_0x4d8240[_0x4d8240['length']-0x1],_0x2a52d4='insertion'==_0x5e07a2['type']?'add':'remove';_0x1d88f2&&'text'==_0x1d88f2['type']&&(_0x1d88f2[_0x2a52d4]+='\x0a');}}}class U extends _0xe53f34{['afterInit'](){const _0x165b04=this['editor'],_0x2a4df4=_0x165b04['plugins']['get']('TrackChangesEditing');_0x165b04['commands']['get']('showAIAssistant')&&_0x2a4df4['enableCommand']('showAIAssistant');}}class V extends _0xe53f34{['afterInit'](){const _0x5a4cf3=this['editor'],_0x37ed46=_0x5a4cf3['locale'];if(!_0x5a4cf3['plugins']['has']('AlignmentEditing'))return;const _0x2fab23=_0x5a4cf3['plugins']['get']('TrackChangesEditing');_0x2fab23['enableDefaultAttributesIntegration']('alignment'),_0x2fab23['registerBlockAttribute']('alignment'),_0x2fab23['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x37ed46,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x329b2f=this['editor'],_0x52c11d=_0x329b2f['locale'];_0x329b2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x530ff9=>{if('formatBlock'!=_0x530ff9['type'])return;const {data:_0x188660}=_0x530ff9;if(_0x188660&&'alignment'==_0x188660['commandName']){const _0xc567c7=_0x188660['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x52c11d,'*Format:*\x20%0',function(_0x2425ac){switch(_0x2425ac){case'left':return o(_0x52c11d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x52c11d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x52c11d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x52c11d,'FORMAT_JUSTIFY_TEXT');}}(_0xc567c7))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xe53f34{['afterInit'](){const _0x1060a2=this['editor'],_0x15ca56=_0x1060a2['plugins']['get']('TrackChangesEditing'),_0x3f4d98=_0x1060a2['locale'];for(const _0xf0b6f8 of ti){if(!_0x1060a2['plugins']['has'](_0xf0b6f8))continue;const _0x33fcec=_0xf0b6f8['slice'](0x0,-0x7)['toLowerCase'](),_0x263b0e='FORMAT_'+_0x33fcec['toUpperCase']();_0x15ca56['enableDefaultAttributesIntegration'](_0x33fcec),_0x15ca56['registerInlineAttribute'](_0x33fcec),_0x15ca56['descriptionFactory']['registerAttributeLabel'](_0x33fcec,o(_0x3f4d98,_0x263b0e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb739ba=this['editor'],_0xee2b0=_0xb739ba['locale'],_0x56c5e5=_0xb739ba['plugins']['get']('TrackChangesEditing');function _0x423c3a(_0x314196,_0x3b0414){_0x56c5e5['descriptionFactory']['registerDescriptionCallback'](_0x368087=>{if('formatInline'!=_0x368087['type'])return;const {data:_0xf96f3f}=_0x368087;return _0xf96f3f&&_0xf96f3f['commandName']===_0x314196?_0xf96f3f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xee2b0,'*Format:*\x20%0',_0x3b0414)}:{'type':'format','content':o(_0xee2b0,'*Remove\x20format:*\x20%0',_0x3b0414)}:void 0x0;});}_0x423c3a('bold',o(_0xee2b0,'FORMAT_BOLD')),_0x423c3a('italic',o(_0xee2b0,'FORMAT_ITALIC')),_0x423c3a('underline',o(_0xee2b0,'FORMAT_UNDERLINE')),_0x423c3a('code',o(_0xee2b0,'FORMAT_CODE')),_0x423c3a('strikethrough',o(_0xee2b0,'FORMAT_STRIKETHROUGH')),_0x423c3a('subscript',o(_0xee2b0,'FORMAT_SUBSCRIPT')),_0x423c3a('superscript',o(_0xee2b0,'FORMAT_SUPERSCRIPT'));}}class F extends _0xe53f34{['afterInit'](){const _0x3843e0=this['editor'],_0x3fa31d=_0x3843e0['locale'];if(!_0x3843e0['plugins']['has']('BlockQuoteEditing'))return;const _0x5ae57c=_0x3843e0['plugins']['get']('TrackChangesEditing'),_0x4c26a8=this['editor']['commands']['get']('blockQuote');_0x5ae57c['enableCommand']('blockQuote',(_0xd6e36a,_0x30ffe2={})=>{const _0x4bd5d2=this['editor']['model']['document']['selection'],_0x576abb=_0x30ffe2&&void 0x0!==_0x30ffe2['forceValue']?_0x30ffe2['forceValue']:!_0x4c26a8['value'];let _0x5c6095=[];if(_0x576abb){const _0x58571c=Array['from'](_0x4bd5d2['getSelectedBlocks']())['filter'](_0x4bed91=>oo(_0x4bed91)||function(_0xa1571d,_0x41ad89){const _0x748db4=_0x41ad89['checkChild'](_0xa1571d['parent'],'blockQuote'),_0x597b6d=_0x41ad89['checkChild'](['$root','blockQuote'],_0xa1571d);return _0x748db4&&_0x597b6d;}(_0x4bed91,this['editor']['model']['schema']));_0x5c6095=to(_0x58571c,_0x3843e0['model']);}else{const _0x3c5e49=Array['from'](_0x4bd5d2['getSelectedBlocks']())['filter'](_0x4c9b20=>oo(_0x4c9b20));_0x5c6095=to(_0x3c5e49,_0x3843e0['model']);}_0x3843e0['model']['change'](()=>{for(const _0x21955b of _0x5c6095)_0x5ae57c['markBlockFormat'](_0x21955b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x576abb}]});});}),_0x5ae57c['descriptionFactory']['registerDescriptionCallback'](_0x595ce8=>{const {data:_0x99d26b}=_0x595ce8;if(_0x99d26b&&'blockQuote'==_0x99d26b['commandName']){const _0x4a8d10=o(_0x3fa31d,'ELEMENT_BLOCK_QUOTE');return _0x99d26b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fa31d,'*Set\x20format:*\x20%0',_0x4a8d10)}:{'type':'format','content':o(_0x3fa31d,'*Remove\x20format:*\x20%0',_0x4a8d10)};}});}}function oo(_0x195860){return'blockQuote'==_0x195860['parent']['name'];}class L extends _0xe53f34{['afterInit'](){const _0x352fbb=this['editor'],_0x26aedd=_0x352fbb['locale'],_0x2117b6=_0x352fbb['plugins']['get']('TrackChangesEditing');_0x352fbb['plugins']['has']('BookmarkEditing')&&(_0x2117b6['enableCommand']('insertBookmark'),_0x2117b6['enableDefaultAttributesIntegration']('updateBookmark'),_0x2117b6['registerBlockAttribute']('bookmarkId'),_0x2117b6['descriptionFactory']['registerDescriptionCallback'](_0x40bfa4=>{if('insertion'!=_0x40bfa4['type']&&'deletion'!=_0x40bfa4['type']&&'attribute'!=_0x40bfa4['type'])return;const _0xbd8f04=_0x40bfa4['getContainedElement']();if(null==_0xbd8f04)return;if(!_0xbd8f04['is']('element','bookmark'))return;const _0x65ac92=_0xbd8f04['getAttribute']('bookmarkId');if('insertion'==_0x40bfa4['type'])return{'type':'insertion','content':o(_0x26aedd,'*Insert:*\x20%0','\x22'+_0x65ac92+'\x22\x20'+o(_0x26aedd,'ELEMENT_BOOKMARK'))};if('deletion'==_0x40bfa4['type'])return{'type':'deletion','content':o(_0x26aedd,'*Remove:*\x20%0','\x22'+_0x65ac92+'\x22\x20'+o(_0x26aedd,'ELEMENT_BOOKMARK'))};const {data:_0x4b384b}=_0x40bfa4;if(!_0x4b384b||'bookmarkId'!=_0x4b384b['key'])return;return{'type':'format','content':o(_0x26aedd,'*Set\x20bookmark:*\x20%0','\x22'+_0x4b384b['newValue']+'\x22')};}));}}class J extends _0xe53f34{['afterInit'](){const _0x5c213d=this['editor'];_0x5c213d['plugins']['has']('CaseChange')&&(_0x5c213d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5c213d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5c213d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xe53f34{['afterInit'](){const _0x1584fa=this['editor'];_0x1584fa['commands']['get']('ckbox')&&_0x1584fa['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0xe53f34{['afterInit'](){const _0x3b6c2e=this['editor'];if(!_0x3b6c2e['plugins']['has']('CodeBlock'))return;const _0x1f6a1c=_0x3b6c2e['plugins']['get']('TrackChangesEditing'),_0x3012a1=_0x3b6c2e['locale'],_0x35ab6f=_0x3b6c2e['config']['get']('codeBlock')['languages'],_0xbec2d1=_0x3b6c2e['commands']['get']('codeBlock');_0x1f6a1c['enableCommand']('indentCodeBlock'),_0x1f6a1c['enableCommand']('outdentCodeBlock'),_0x1f6a1c['enableCommand']('codeBlock',(_0x5c6089,_0x4c0a53={})=>{const _0x4a5a1a=_0x3b6c2e['model'],_0x3e67c5=_0x3b6c2e['model']['document']['selection'],_0x33f719=_0x4c0a53&&void 0x0!==_0x4c0a53['forceValue']?_0x4c0a53['forceValue']:!_0xbec2d1['value'];let _0x158046;_0x4c0a53['language']||(_0x4c0a53['language']=_0x35ab6f[0x0]['language']),_0x158046=_0x33f719?Array['from'](_0x3e67c5['getSelectedBlocks']())['filter'](_0x466031=>eo(_0x466031)||function(_0x26d6a4,_0x4df5cc){if(_0x26d6a4['is']('rootElement')||_0x4df5cc['isLimit'](_0x26d6a4))return!0x1;return _0x4df5cc['checkChild'](_0x26d6a4['parent'],'codeBlock');}(_0x466031,_0x4a5a1a['schema'])):Array['from'](_0x3e67c5['getSelectedBlocks']())['filter'](_0x1aab8d=>eo(_0x1aab8d));const _0x959278=to(_0x158046,_0x4a5a1a);_0x4a5a1a['change'](()=>{for(const _0x2e37b1 of _0x959278)_0x1f6a1c['markBlockFormat'](_0x2e37b1,{'commandName':'codeBlock','commandParams':[{..._0x4c0a53,'forceValue':_0x33f719}],'formatGroupId':'blockName'});});}),(_0x1f6a1c['descriptionFactory']['registerElementLabel']('codeBlock',_0x2ed186=>o(_0x3012a1,'ELEMENT_CODE_BLOCK',_0x2ed186)),_0x1f6a1c['descriptionFactory']['registerDescriptionCallback'](_0x35a833=>{if('formatBlock'!=_0x35a833['type'])return;const _0x161b3b=_0x3012a1['t'],{data:_0x51dffb}=_0x35a833;if(!_0x51dffb||'codeBlock'!=_0x51dffb['commandName'])return;const _0x265758=_0x51dffb['commandParams'][0x0]['language'],_0x5e5496=_0x161b3b(_0x35ab6f['find'](_0x1e4ad0=>_0x1e4ad0['language']===_0x265758)['label'])['toLowerCase']();return _0x51dffb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3012a1,'*Set\x20format:*\x20%0',o(_0x3012a1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5e5496+')')}:{'type':'format','content':o(_0x3012a1,'*Remove\x20format:*\x20%0',o(_0x3012a1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x16a146){return'codeBlock'==_0x16a146['name'];}class z extends _0xe53f34{['afterInit'](){const _0x2f00b3=this['editor'];if(!_0x2f00b3['plugins']['has']('CommentsEditing'))return;_0x2f00b3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3aaa1c,_0x2db109,_0x5e5fd2){const _0x25dfbf=[];for(const _0xc91f18 of _0x2db109['getItems']())_0xc91f18['hasAttribute'](_0x3aaa1c)&&_0x25dfbf['push'](_0x5e5fd2['createRangeOn'](_0xc91f18));return _0x25dfbf;}function De(_0x37ba32,_0x56b0f9,{showActiveMarker:_0x3c348e=!0x0}={}){const _0x3b1ebd=_0x37ba32['plugins']['get']('TrackChangesEditing');return(_0x3b7f0f,_0x59f837,_0x5b3ff3)=>{if(!_0x5b3ff3['consumable']['test'](_0x59f837['markerRange'],_0x3b7f0f['name']))return;const _0x48cb02=_0x59f837['markerRange']['getWalker'](),_0x1805d4=_0x59f837['markerRange']['start'],_0xb4c25d=_0x37ba32['model']['schema'];let _0x30d177=null,_0x79f58d=null,_0x45bc1c=!0x1,_0x448749=!0x1;for(const _0x347999 of _0x48cb02){const _0x54d7ff=_0x347999['item'];_0x45bc1c=_0x45bc1c||_0xb4c25d['isContent'](_0x54d7ff);const _0x39c823=_0x5b3ff3['mapper']['toViewElement'](_0x54d7ff);if(_0x39c823&&_0x39c823['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x347999['type']&&(_0xb4c25d['isBlock'](_0x54d7ff)&&!_0xb4c25d['isLimit'](_0x54d7ff)&&(_0x54d7ff['nextSibling']||_0x1805d4['isAtEnd']?_0x30d177&&_0x30d177['parent']==_0x54d7ff||(_0x30d177=_0x54d7ff,_0x577f94(_0x347999['previousPosition']),_0x448749=!0x0):_0x79f58d=_0x79f58d||_0x347999['previousPosition']));}function _0x577f94(_0x5bff5f){const {authorId:_0x1591db}=_0x3b1ebd['_splitMarkerName'](_0x59f837['markerName']),_0x5a207c=_0x5b3ff3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56b0f9,'data-author-id':_0x1591db}),_0x351d07=_0x5b3ff3['mapper']['toViewPosition'](_0x5bff5f);_0x3c348e&&_0x3b1ebd['activeMarkers']['includes'](_0x59f837['markerName'])&&_0x5b3ff3['writer']['addClass']('ck-suggestion-marker--active',_0x5a207c),_0x5b3ff3['writer']['insert'](_0x351d07,_0x5a207c),_0x5b3ff3['mapper']['bindElementToMarker'](_0x5a207c,_0x59f837['markerName']);}_0x45bc1c||_0x448749||!_0x79f58d||_0x577f94(_0x79f58d);};}class K extends _0xe53f34{static get['requires'](){return[_0x391110];}['init'](){const _0x47fabc=this['editor'],_0x1bf7d4=_0x47fabc['plugins']['get']('TrackChangesEditing');_0x1bf7d4['enableCommand']('delete');const _0x4402cd=_0x47fabc['commands']['get']('deleteForward');_0x1bf7d4['enableCommand']('deleteForward',(_0x12e78c,_0x3182ec={})=>{const _0x37b17a=_0x47fabc['model']['createSelection'](_0x47fabc['model']['document']['selection']);_0x37b17a['isCollapsed']&&_0x47fabc['model']['modifySelection'](_0x37b17a,{'direction':'forward','unit':_0x3182ec['unit']});const _0x32d479=_0x37b17a['getFirstRange'](),_0x4fef73=_0x49f219['fromRange'](_0x32d479);let _0xc7a580;_0x12e78c(_0x3182ec),_0xc7a580='$graveyard'==_0x4fef73['root']['rootName']?_0x47fabc['model']['createRange'](_0x32d479['start']):_0x47fabc['model']['createRange'](_0x4fef73['start'],_0x4fef73['end']),_0x4fef73['detach'](),_0x47fabc['model']['enqueueChange'](_0x4402cd['buffer']['batch'],_0x499893=>{_0x4402cd['buffer']['lock'](),_0x499893['setSelection'](_0x499893['createRange'](_0xc7a580['end'])),_0x4402cd['buffer']['unlock']();});}),_0x47fabc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x47fabc,'merge'),{'priority':'high'}),_0x47fabc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x573c1f,_0x179944,_0xc71735)=>{_0xc71735['options']['showSuggestionHighlights']&&De(_0x47fabc,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x573c1f,_0x179944,_0xc71735);},{'priority':'high'}),_0x47fabc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x30f696,_0x478f02,_0xe456b2)=>{const _0x437aaf=_0xe456b2['mapper']['markerNameToElements'](_0x478f02['markerName']);if(_0x437aaf){for(const _0x4e6c6b of _0x437aaf)_0x4e6c6b['is']('uiElement')&&(_0xe456b2['mapper']['unbindElementFromMarkerName'](_0x4e6c6b,_0x478f02['markerName']),_0xe456b2['writer']['remove'](_0x4e6c6b));}},{'priority':'high'});}}class W extends _0xe53f34{['afterInit'](){const _0x138ad7=this['editor'];if(!_0x138ad7['plugins']['has']('ListEditing'))return;const _0x5effbc=_0x138ad7['locale'],_0x42dcbe=_0x138ad7['plugins']['get']('TrackChangesEditing'),_0x101a06=_0x138ad7['plugins']['has']('TodoListEditing'),_0x11b2fd=!!_0x138ad7['config']['get']('list.multiBlock');function _0x2a3b3c(_0x1648ee){return{'type':'format','content':''+o(_0x5effbc,'*Set\x20format:*\x20%0',_0x1648ee)};}function _0x4b9748(_0xfe7cc0){return{'type':'format','content':''+o(_0x5effbc,'*Remove\x20format:*\x20%0',_0xfe7cc0)};}_0x42dcbe['enableDefaultAttributesIntegration']('numberedList'),_0x42dcbe['enableDefaultAttributesIntegration']('bulletedList'),_0x42dcbe['enableDefaultAttributesIntegration']('customNumberedList'),_0x42dcbe['enableDefaultAttributesIntegration']('customBulletedList'),_0x42dcbe['enableDefaultAttributesIntegration']('indentList'),_0x42dcbe['enableDefaultAttributesIntegration']('outdentList'),_0x42dcbe['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x42dcbe['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x42dcbe['registerBlockAttribute']('listItemId'),_0x42dcbe['registerBlockAttribute']('listType'),_0x42dcbe['registerBlockAttribute']('listIndent'),_0x11b2fd&&(_0x42dcbe['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x42dcbe['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x101a06&&(_0x42dcbe['enableDefaultAttributesIntegration']('todoList'),_0x42dcbe['enableDefaultAttributesIntegration']('checkTodoList'),_0x42dcbe['registerBlockAttribute']('todoListChecked'),_0x42dcbe['descriptionFactory']['registerDescriptionCallback'](_0x42fa5c=>{const {data:_0x10167a}=_0x42fa5c;if(_0x10167a&&'todoListChecked'==_0x10167a['key'])return{'type':'format','content':_0x10167a['newValue']?o(_0x5effbc,'*Check\x20item*'):o(_0x5effbc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x6983c7=>{if(_0x6983c7['batch']['isUndo'])return!0x1;let _0x296716=!0x1;const _0x3c2f70=_0x42dcbe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xad2fe2=>'todoListChecked'===_0x42dcbe['_getAttributeKey'](_0xad2fe2));for(const _0x30eeaa of _0x3c2f70){'todo'!=_0x30eeaa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x42dcbe['_findSuggestions'](_0x30eeaa['getFirstRange'](),'attribute')['find'](_0x33ca7a=>'listType'===_0x42dcbe['_getAttributeKey'](_0x33ca7a['suggestion']))||(_0x6983c7['removeMarker'](_0x30eeaa['getFirstMarker']()),_0x296716=!0x0));}return _0x296716;})),_0x42dcbe['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5effbc,'FORMAT_INDENT'));const _0x3d43ed={'type':'format','content':''};_0x42dcbe['descriptionFactory']['registerDescriptionCallback'](_0x51de52=>{const {data:_0x34571f}=_0x51de52;if(!_0x34571f||'listType'!=_0x34571f['key'])return;let _0x5dea62=_0x51de52['head'];for(;_0x5dea62;){if(_0x5dea62['data']&&(('listStyle'==_0x5dea62['data']['key']||'listMarkerStyle'==_0x5dea62['data']['key'])&&(_0x5dea62['data']['newValue']&&'default'!=_0x5dea62['data']['newValue']||'default'!=_0x5dea62['data']['oldValue']&&!_0x34571f['newValue'])||!_0x11b2fd&&_0x5dea62['data']['key']==m))return _0x3d43ed;_0x5dea62=_0x5dea62['next'];}if(null==_0x34571f['newValue'])switch(_0x34571f['oldValue']){case'bulleted':return _0x4b9748(o(_0x5effbc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b9748(o(_0x5effbc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b9748(o(_0x5effbc,'ELEMENT_TODO_LIST'));}switch(_0x34571f['newValue']){case'bulleted':return _0x2a3b3c(o(_0x5effbc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a3b3c(o(_0x5effbc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a3b3c(o(_0x5effbc,'ELEMENT_TODO_LIST'));}}),_0x42dcbe['descriptionFactory']['registerDescriptionCallback'](_0xe16309=>{const {data:_0x38c509}=_0xe16309;if(_0x38c509&&'listIndent'==_0x38c509['key'])return null==_0x38c509['newValue']||null==_0x38c509['oldValue']&&0x0==_0x38c509['newValue']?_0x3d43ed:void 0x0;}),_0x42dcbe['descriptionFactory']['registerDescriptionCallback'](_0x5e3ab4=>{if('attribute'!=_0x5e3ab4['type'])return;const {data:_0x4f6b0e}=_0x5e3ab4;if(!_0x4f6b0e||'listItemId'!=_0x4f6b0e['key'])return;const _0x3bcddd=Te(_0x5e3ab4);return'newValue'==_0x3bcddd?{'type':'format','content':o(_0x5effbc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3bcddd?{'type':'format','content':o(_0x5effbc,'*Split:*\x20list\x20item')}:_0x3d43ed;}),_0x138ad7['model']['document']['registerPostFixer'](_0x577426=>this['listItemIdFixer'](_0x577426)),_0x138ad7['model']['document']['registerPostFixer'](_0x42e87a=>this['noTrackChangesFixer'](_0x42e87a)),_0x138ad7['model']['document']['on']('change:data',(_0x214e2c,_0x3454ce)=>{if(_0x3454ce['isUndo']||!_0x3454ce['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x52eb30){if(_0x52eb30['batch']['isUndo']||!_0x52eb30['batch']['isLocal'])return!0x1;let _0x5cbbbb=!0x1;const _0x2287e0=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39bf74=>_0x39bf74['data']&&'listItemId'==_0x39bf74['data']['key'])['filter'](_0x587388=>_0x587388['data']['newValue']&&_0x587388['data']['oldValue']);for(const _0x255515 of _0x2287e0)Te(_0x255515)||(_0x52eb30['removeMarker'](_0x255515['getFirstMarker']()),_0x5cbbbb=!0x0);return _0x5cbbbb;}['noTrackChangesFixer'](_0x1610dd){if(_0x1610dd['batch']['isUndo']||!_0x1610dd['batch']['isLocal'])return!0x1;const _0x1c4238=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1c4238['trackChangesCommand']['value'])return!0x1;let _0x426083=!0x1;const _0x3e3abe=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x481899=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xfee0a=>'attribute'==_0xfee0a['type'])['filter'](_0x31ceeb=>_0x3e3abe['includes'](_0x31ceeb['attributeKey']));if(0x0==_0x481899['length'])return _0x426083;for(const _0x51ccac of _0x481899){const _0x149bbc=_0x1c4238['_findSuggestions'](_0x51ccac['range'],'attribute')['filter'](_0x4559d9=>!_0x4559d9['meta']['isNextTo'])['map'](_0x59f42b=>_0x59f42b['suggestion'])['filter'](_0x329051=>{const _0x517942=_0x1c4238['_getAttributeKey'](_0x329051);return _0x3e3abe['includes'](_0x517942);});if(_0x149bbc['length']){for(const _0x21c7e9 of _0x149bbc)_0x1610dd['removeMarker'](_0x21c7e9['getFirstMarker']());_0x426083=!0x0;}}return _0x426083;}['assureChains'](){const _0x367d59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x382dd2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x24299a;const _0x55f7c0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x42487a=>{if(_0x42487a['data']['oldRange']||!_0x42487a['data']['newRange'])return null;if(!_0x42487a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x10b95a}=_0x367d59['_splitMarkerName'](_0x42487a['name']);if(!_0x367d59['hasSuggestion'](_0x10b95a))return null;const _0x5b26d8=_0x367d59['getSuggestion'](_0x10b95a);return _0x382dd2['includes'](_0x5b26d8['data']['key']);})['map'](_0x3cfe45=>{const {id:_0x1f1e6c}=_0x367d59['_splitMarkerName'](_0x3cfe45['name']),_0x5ada5a=_0x367d59['getSuggestion'](_0x1f1e6c);return _0x24299a=_0x5ada5a['attributes']['groupId'],_0x5ada5a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x55f7c0['size'])return;const _0x3bb4ed=_0x367d59['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d0fe4=>'attribute'==_0x5d0fe4['type']&&_0x5d0fe4['data']&&_0x382dd2['includes'](_0x5d0fe4['data']['key'])&&_0x5d0fe4['attributes']['groupId']!=_0x24299a)['map'](_0x3c5a49=>({'listItem':_0x3c5a49['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3c5a49['attributes']['groupId']})),_0x46291d=new Set();for(const {groupId:_0x2053fe,listItem:_0x47e147}of _0x3bb4ed)_0x55f7c0['has'](_0x47e147)&&_0x46291d['add'](_0x2053fe);for(const _0x6268a6 of _0x367d59['getSuggestions']())_0x46291d['has'](_0x6268a6['attributes']['groupId'])&&_0x6268a6['setAttribute']('groupId',_0x24299a);}['_supportLegacySuggestions'](){const _0x372a19=this['editor'],_0xa2dfd=_0x372a19['locale'],_0x40234f=_0x372a19['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x40234f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1ab0bd,_0x8549cb){const _0x37e4ad=[];for(let _0x1973b4 of _0x1ab0bd)_0x1973b4['start']['nodeAfter']===_0x1973b4['end']['parent']&&(_0x1973b4=_0x372a19['model']['createRange'](_0x372a19['model']['createPositionAt'](_0x1973b4['start']['nodeAfter'],0x0))),_0x37e4ad['push'](_0x1973b4);_0x372a19['model']['change'](_0x3fdddc=>{const _0x1f94ed=_0x372a19['model']['document']['selection'],_0x5ac8e3=Array['from'](_0x1f94ed['getRanges']())['map'](_0x539c5b=>_0x49f219['fromRange'](_0x539c5b));_0x3fdddc['setSelection'](_0x37e4ad),_0x372a19['commands']['get'](_0x8549cb['commandName'])['refresh'](),_0x8549cb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x372a19['execute'](_0x8549cb['commandName'],..._0x8549cb['commandParams']),_0x3fdddc['setSelection'](_0x5ac8e3);for(const _0x16032d of _0x5ac8e3)_0x16032d['detach']();});}),_0x40234f['descriptionFactory']['registerElementLabel'](function(_0x1a8496){const _0x2b0fcf=!_0x372a19['model']['schema']['isObject'](_0x1a8496),_0x5ed02f=_0x1a8496['previousSibling'],_0x8a2770=_0x1a8496['nextSibling'],_0x2b3866=_0x1a8496['getAttribute']('listItemId'),_0x4e2c84=!_0x5ed02f||_0x5ed02f['getAttribute']('listItemId')!==_0x2b3866,_0x294b6f=!_0x8a2770||_0x8a2770['getAttribute']('listItemId')!==_0x2b3866;return _0x2b0fcf&&Boolean(_0x2b3866)&&_0x4e2c84&&_0x294b6f;},_0x1f9349=>o(_0xa2dfd,'ELEMENT_LIST_ITEM',_0x1f9349));}['_registerLegacyDescription'](){const _0x4febf5=this['editor'],_0x35f8f4=_0x4febf5['locale'];function _0x56f0e2(_0x1a159d){const _0x1d9dcb=_0x4febf5['commands']['get']('bulletedList')['value'],_0x394285=_0x4febf5['commands']['get']('numberedList')['value'];return'numberedList'===_0x1a159d?_0x1d9dcb:_0x394285;}_0x4febf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5285ea){if('formatBlock'!=_0x5285ea['type'])return;const {data:_0x363ee6}=_0x5285ea;if(!_0x363ee6)return;let _0x2143de,_0x63fcdd,_0x3c8ff8,_0x621274;switch(_0x363ee6['commandName']){case'bulletedList':_0x3c8ff8=_0x363ee6['commandParams'][0x0]['forceValue'],_0x621274=_0x56f0e2(_0x363ee6['commandName']),_0x2143de=_0x3c8ff8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x621274&&_0x4febf5['config']['get']('list.multiBlock')||(_0x2143de='*Change\x20to:*\x20%0'),_0x63fcdd={'type':'format','content':o(_0x35f8f4,_0x2143de,o(_0x35f8f4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3c8ff8=_0x363ee6['commandParams'][0x0]['forceValue'],_0x621274=_0x56f0e2(_0x363ee6['commandName']),_0x2143de=_0x3c8ff8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x621274&&_0x4febf5['config']['get']('list.multiBlock')||(_0x2143de='*Change\x20to:*\x20%0'),_0x63fcdd={'type':'format','content':o(_0x35f8f4,_0x2143de,o(_0x35f8f4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2143de='*Indent:*\x20%0',_0x63fcdd={'type':'format','content':o(_0x35f8f4,_0x2143de,o(_0x35f8f4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2143de=function(_0x557e53){const _0x1b485f=_0x557e53['getFirstRange']();let _0x10a103=_0x1b485f['start']['nodeAfter'];for(;_0x10a103&&_0x1b485f['containsItem'](_0x10a103);){if(_0x10a103['getAttribute']('listIndent')>0x0)return!0x1;_0x10a103=_0x10a103['nextSibling'];}return!0x0;}(_0x5285ea)?o(_0x35f8f4,'*Format:*\x20remove\x20from\x20%0',o(_0x35f8f4,function(_0x1baf47){return'ELEMENT_'+_0x1baf47['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5285ea))):o(_0x35f8f4,'*Outdent:*\x20%0',o(_0x35f8f4,'ELEMENT_LIST_ITEM')),_0x63fcdd={'type':'format','content':_0x2143de};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x363ee6['multipleBlocks']&&(_0x2143de='*Merge:*\x20%0',_0x63fcdd={'type':'deletion','content':o(_0x35f8f4,_0x2143de,o(_0x35f8f4,'ELEMENT_LIST_ITEM'))});}return _0x63fcdd;});}}function Te(_0x3b64ec){let _0x33dd52=_0x3b64ec['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x33dd52;){const _0x3b547b=_0x33dd52['getAttribute']('listItemId');if(!_0x3b547b)return!0x1;if(_0x3b547b==_0x3b64ec['data']['newValue'])return'newValue';if(_0x3b547b==_0x3b64ec['data']['oldValue'])return'oldValue';_0x33dd52=_0x33dd52['previousSibling'];}return!0x1;}class Se extends _0xe53f34{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1b0856=this['editor']['config']['get']('list.properties'),_0x448260=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b0856['styles']&&(_0x448260['enableDefaultAttributesIntegration']('listStyle'),_0x448260['registerBlockAttribute']('listStyle')),_0x1b0856['reversed']&&(_0x448260['enableDefaultAttributesIntegration']('listReversed'),_0x448260['registerBlockAttribute']('listReversed')),_0x1b0856['startIndex']&&(_0x448260['enableDefaultAttributesIntegration']('listStart'),_0x448260['registerBlockAttribute']('listStart'));const _0x5aba88={'type':'format','content':''};_0x448260['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x726086=this['editor']['locale'];_0x448260['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x726086,'FORMAT_LIST_REVERSED')),_0x448260['descriptionFactory']['registerDescriptionCallback'](_0x110b27=>{const {data:_0x1e5471}=_0x110b27;if(_0x1e5471&&'listReversed'==_0x1e5471['key'])return null==_0x1e5471['newValue']||0x0==_0x1e5471['newValue']&&null==_0x1e5471['oldValue']?_0x5aba88:void 0x0;}),_0x448260['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x726086,'FORMAT_LIST_START')),_0x448260['descriptionFactory']['registerDescriptionCallback'](_0xa15869=>{const {data:_0x3c5f8f}=_0xa15869;if(_0x3c5f8f&&'listStart'==_0x3c5f8f['key'])return null==_0x3c5f8f['newValue']||0x1==_0x3c5f8f['newValue']&&null==_0x3c5f8f['oldValue']?_0x5aba88:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x38137e=>{if(_0x38137e['batch']['isUndo'])return!0x1;let _0x59901a=!0x1;const _0x35486d=_0x448260['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x369e11=>{const _0x28b567=_0x448260['_getAttributeKey'](_0x369e11);return'listStart'==_0x28b567||'listReversed'==_0x28b567;});for(const _0xe3d362 of _0x35486d){const _0x265d02=_0xe3d362['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x265d02||'customNumbered'==_0x265d02)continue;_0x448260['_findSuggestions'](_0xe3d362['getFirstRange'](),'attribute')['find'](_0x5a0dfe=>'listType'==_0x448260['_getAttributeKey'](_0x5a0dfe['suggestion']))||(_0x38137e['removeMarker'](_0xe3d362['getFirstMarker']()),_0x59901a=!0x0);}return _0x59901a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1b7285){const _0xa4d73d=this['editor']['locale'],{data:_0x4f37b2}=_0x1b7285,_0x9898b5={'type':'format','content':''};if(!_0x4f37b2||'listStyle'!=_0x4f37b2['key'])return;if(!_0x4f37b2['oldValue'])return'default'==_0x4f37b2['newValue']?_0x9898b5:{'type':'format','content':''+o(_0xa4d73d,'*Set\x20format:*\x20%0',o(_0xa4d73d,this['_getTranslationKeyForListStyle'](_0x4f37b2['newValue'])))};if(!_0x4f37b2['newValue']){if('default'==_0x4f37b2['oldValue'])return _0x9898b5;let _0x32cae3=_0x1b7285['head'];for(;_0x32cae3;){if(_0x32cae3['data']&&'listType'==_0x32cae3['data']['key']&&_0x32cae3['data']['newValue'])return _0x9898b5;_0x32cae3=_0x32cae3['next'];}return{'type':'format','content':''+o(_0xa4d73d,'*Remove\x20format:*\x20%0',o(_0xa4d73d,this['_getTranslationKeyForListStyle'](_0x4f37b2['oldValue'])))};}if('default'!=_0x4f37b2['newValue'])return{'type':'format','content':''+o(_0xa4d73d,'*Set\x20format:*\x20%0',o(_0xa4d73d,this['_getTranslationKeyForListStyle'](_0x4f37b2['newValue'])))};let _0x39ae51=_0x1b7285['head'];for(;_0x39ae51;){if(_0x39ae51['data']&&'listType'==_0x39ae51['data']['key']&&_0x39ae51['data']['newValue']&&_0x39ae51['data']['oldValue'])return _0x9898b5;_0x39ae51=_0x39ae51['next'];}return{'type':'format','content':o(_0xa4d73d,'*Set\x20format:*\x20%0',o(_0xa4d73d,'ELEMENT_'+_0x1b7285['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5d4490=this['editor'],_0x16d8cd=_0x5d4490['locale'];_0x5d4490['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3181eb=>{if('formatBlock'!=_0x3181eb['type'])return;const {data:_0x20f6b7}=_0x3181eb;if(!_0x20f6b7)return;let _0x95f729,_0x233339;switch(_0x20f6b7['commandName']){case'listStyle':_0x95f729='*Change\x20to:*\x20%0',_0x233339={'type':'format','content':o(_0x16d8cd,_0x95f729,o(_0x16d8cd,this['_getTranslationKeyForListStyle'](_0x20f6b7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x95f729=_0x20f6b7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x233339={'type':'format','content':o(_0x16d8cd,_0x95f729)};break;case'listStart':_0x95f729='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x233339={'type':'format','content':o(_0x16d8cd,_0x95f729,_0x20f6b7['commandParams'][0x0]['startIndex'])};}return _0x233339;});}['_getTranslationKeyForListStyle'](_0x5771fa){return'ELEMENT_'+function(_0x3b6bc1){if(_e['includes'](_0x3b6bc1))return'bulleted';if(Re['includes'](_0x3b6bc1))return'numbered';return null;}(_0x5771fa)['toUpperCase']()+'_LIST_'+_0x5771fa['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xe53f34{['afterInit'](){const _0x161689=this['editor'];_0x161689['commands']['get']('emoji')&&_0x161689['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0xe53f34{static get['requires'](){return[_0x530a3e];}['init'](){const _0x3315b5=this['editor'],_0x1ab0fb=_0x3315b5['plugins']['get']('TrackChangesEditing'),_0x594180=_0x3315b5['commands']['get']('enter');_0x1ab0fb['enableCommand']('enter',()=>{_0x3315b5['model']['change'](_0x41ae02=>{const _0x118677=_0x3315b5['model']['document']['selection'],_0x13a172=_0x118677['getFirstPosition'](),_0x3f143b=_0x49f219['fromRange'](_0x118677['getFirstRange']());if(_0x594180['enterBlock'](_0x41ae02)){const _0xac9845=_0x3315b5['model']['createPositionAt'](_0x13a172['parent']['nextSibling'],0x0),_0x4163c1=_0x41ae02['createRange'](_0x13a172,_0xac9845);_0x1ab0fb['markInsertion'](_0x4163c1);}else _0x41ae02['setSelection'](_0x41ae02['createRange'](_0x3f143b['end']));_0x3f143b['detach'](),_0x594180['fire']('afterExecute',{'writer':_0x41ae02});});}),_0x3315b5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3315b5,'split'),{'priority':'high'}),_0x3315b5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1c3c0b,_0xfbbe48,_0x49edcc)=>{const _0x39c4e7=_0x49edcc['mapper']['markerNameToElements'](_0xfbbe48['markerName']);if(_0x39c4e7){for(const _0x3a7c22 of _0x39c4e7)_0x3a7c22['hasClass']('ck-suggestion-marker-split')&&(_0x49edcc['mapper']['unbindElementFromMarkerName'](_0x3a7c22,_0xfbbe48['markerName']),_0x49edcc['writer']['remove'](_0x3a7c22));}},{'priority':'high'}),_0x3315b5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xfa9917,_0xba5e36,_0x43de17)=>{_0x43de17['options']['showSuggestionHighlights']&&De(_0x3315b5,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xfa9917,_0xba5e36,_0x43de17);},{'priority':'high'});}}class Z extends _0xe53f34{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1ab4a5=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ab4a5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1ab4a5['enableCommand']('findNext'),_0x1ab4a5['enableCommand']('findPrevious'),_0x1ab4a5['enableCommand']('replace'),_0x1ab4a5['enableCommand']('replaceAll');}['handleFindCommand'](_0x5e9429,_0x20eef8,_0x501ce2={}){const _0xd7e1c6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5e9429(_0x45299b=>{let _0x416ee4=('string'==typeof _0x20eef8?_0xd7e1c6['findByTextCallback'](_0x20eef8,_0x501ce2):_0x20eef8)(_0x45299b);Array['isArray'](_0x416ee4)&&(_0x416ee4={'results':_0x416ee4,'searchText':'string'==typeof _0x20eef8?_0x20eef8:''});const _0x9d0bf4=_0x416ee4['results']['filter'](_0x5e6afc=>!0x1===this['_isInDeletionRange'](_0x5e6afc,_0x45299b['item']));return{..._0x416ee4,'results':_0x9d0bf4};},_0x501ce2);}['_isInDeletionRange'](_0x4cc678,_0x589f9b){const _0x47b16d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x589f9b,_0x4cc678['start']),this['editor']['model']['createPositionAt'](_0x589f9b,_0x4cc678['end']));for(const _0x4211c5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x47b16d['getIntersection'](_0x4211c5['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0xe53f34{['afterInit'](){const _0x3fda21=this['editor']['locale'],_0x482338=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf09bdc,commandName:_0x87b30a}of ro)this['editor']['plugins']['has'](_0xf09bdc)&&(_0x482338['enableDefaultAttributesIntegration'](_0x87b30a),_0x482338['registerInlineAttribute'](_0x87b30a));_0x482338['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3fda21,'FORMAT_FONT_SIZE')),_0x482338['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3fda21,'FORMAT_FONT_FAMILY')),_0x482338['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3fda21,'FORMAT_FONT_COLOR')),_0x482338['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3fda21,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29c6f5=this['editor'],_0x30a9a6=_0x29c6f5['locale'];_0x29c6f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16c458=>{const _0x41d885=_0x30a9a6['t'];if('formatInline'!=_0x16c458['type'])return;const {data:_0x390fb7}=_0x16c458;if(null!=_0x390fb7){if('fontSize'==_0x390fb7['commandName']){const _0x2e795a=_0x390fb7['commandParams'][0x0]['value'];if(_0x2e795a){const _0x42a426=_0x41d885(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x48f34f=>_0x48f34f['model']==_0x2e795a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x30a9a6,'*Set\x20font\x20size:*\x20%0',_0x42a426)};}return{'type':'format','content':o(_0x30a9a6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x390fb7['commandName']){const _0x34ee50=_0x390fb7['commandParams'][0x0]['value'];return _0x34ee50?{'type':'format','content':o(_0x30a9a6,'*Set\x20font\x20family:*\x20%0',_0x34ee50)}:{'type':'format','content':o(_0x30a9a6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x390fb7['commandName']){const _0x43e299=_0x390fb7['commandParams'][0x0]['value'];if(_0x43e299){const _0x439954=_0x3d1be8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x39286e=>_0x39286e['model']==_0x43e299);let _0x473016=_0x43e299,_0x3fa0fd='';return _0x439954&&(_0x473016=_0x439954['label'],_0x3fa0fd=_0x41d885(_0x473016)['toLowerCase']()),{'type':'format','content':o(_0x30a9a6,'*Set\x20font\x20color:*\x20%0',_0x3fa0fd)['trim'](),'color':{'value':_0x43e299,'title':_0x3fa0fd||_0x473016}};}return{'type':'format','content':o(_0x30a9a6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x390fb7['commandName']){const _0x443f0b=_0x390fb7['commandParams'][0x0]['value'];if(_0x443f0b){const _0x58b054=_0x3d1be8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2ff32e=>_0x2ff32e['model']==_0x443f0b);let _0x41cb00=_0x443f0b,_0x2e6221='';return _0x58b054&&(_0x41cb00=_0x58b054['label'],_0x2e6221=_0x41d885(_0x41cb00)['toLowerCase']()),{'type':'format','content':o(_0x30a9a6,'*Set\x20font\x20background\x20color:*\x20%0',_0x2e6221)['trim'](),'color':{'value':_0x443f0b,'title':_0x2e6221||_0x41cb00}};}return{'type':'format','content':o(_0x30a9a6,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0xe53f34{['afterInit'](){const _0x13fa48=this['editor'],_0x34ad96=_0x13fa48['plugins']['get']('TrackChangesEditing'),_0x612f59=_0x13fa48['commands']['get']('copyFormat'),_0x66afcd=_0x13fa48['commands']['get']('pasteFormat');_0x612f59&&_0x66afcd&&(_0x34ad96['enableDefaultAttributesIntegration']('pasteFormat'),_0x34ad96['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1dbd3f=this['editor'],_0x427f95=_0x1dbd3f['locale'];_0x1dbd3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dad80=>{if('formatBlock'!=_0x3dad80['type']&&'formatInline'!=_0x3dad80['type'])return;const {data:_0x4d733e}=_0x3dad80;if(_0x4d733e&&'pasteFormat'===_0x4d733e['commandName']){const _0x381cf1=[],_0x187aa5=_0x4d733e['commandParams'][0x0];for(const [_0xae466c,_0x3dc32f]of Object['entries'](_0x187aa5))_0x381cf1['push'](so(_0x1dbd3f,_0xae466c,_0x3dc32f));return _0x381cf1['length']?{'type':'format','content':o(_0x427f95,'*Set\x20format\x20to:*\x20%0',_0x381cf1['join'](',\x20'))}:{'type':'format','content':o(_0x427f95,'*Remove\x20all\x20formatting*')};}});}}function so(_0x174ec7,_0x400470,_0x187b81){const _0x4bc312=_0x174ec7['locale']['t'],_0x4d2e45=_0x400470['split'](/(?=[A-Z])/)['join']('\x20'),_0x2020c5=_0x4bc312(_0x4d2e45['charAt'](0x0)['toUpperCase']()+_0x4d2e45['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x187b81)return _0x2020c5;if('fontColor'===_0x400470||'fontBackgroundColor'===_0x400470){const _0x4380e0=_0x3d1be8(_0x174ec7['config']['get']('fontColor.colors'))['find'](_0x524184=>_0x524184['model']==_0x187b81);return _0x2020c5+'\x20('+(_0x4380e0?_0x4bc312(_0x4380e0['label'])['toLowerCase']():_0x187b81)+')';}if('fontSize'===_0x400470&&isNaN(parseFloat(_0x187b81))){const _0x2b3bf4=_0x174ec7['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x174ec7['config']['get']('fontSize.options'))['find'](_0x5a8a76=>_0x5a8a76['model']==_0x187b81);return _0x2020c5+'\x20('+(_0x2b3bf4?_0x4bc312(_0x2b3bf4['title'])['toLowerCase']():_0x187b81)+')';}return _0x2020c5+'\x20('+_0x187b81+')';}class it extends _0xe53f34{['_headingOptions'];['afterInit'](){const _0x35d528=this['editor'];if(!_0x35d528['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x35d528['config']['get']('heading.options');const _0x288065=_0x35d528['locale'],_0x4c2e7c=_0x35d528['plugins']['get']('TrackChangesEditing');_0x4c2e7c['enableDefaultAttributesIntegration']('heading');for(const _0x465c68 of this['_headingOptions'])'paragraph'!=_0x465c68['model']&&_0x4c2e7c['descriptionFactory']['registerElementLabel'](_0x465c68['model'],_0x5f09b8=>{const _0x1cb397=this['_getHeadingLevel'](_0x465c68['model']);return null!==_0x1cb397?_0x1b996a(_0x5f09b8,_0x1cb397):_0x55bdf5(_0x5f09b8,_0x465c68['title']);});function _0x1b996a(_0x310379,_0x3a945a){return o(_0x288065,'ELEMENT_HEADING',[_0x310379,_0x3a945a]);}function _0x55bdf5(_0x3205df,_0x4c1168){return o(_0x288065,'ELEMENT_HEADING_CUSTOM',[_0x3205df,_0x4c1168]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x532973=this['editor'],_0xff7fe5=_0x532973['locale'];function _0x1fb56f(_0x4b6380,_0x4f6c12){return o(_0xff7fe5,'ELEMENT_HEADING_CUSTOM',[_0x4b6380,_0x4f6c12]);}_0x532973['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b5d20=>{if('formatBlock'!=_0x2b5d20['type'])return;const {data:_0x557571}=_0x2b5d20;if(_0x557571&&'heading'==_0x557571['commandName']){const _0x558842=_0x557571['commandParams'][0x0]['value'],_0x488cd8=this['_getHeadingLevel'](_0x558842);if(null!==_0x488cd8)return{'type':'format','content':o(_0xff7fe5,'*Change\x20to:*\x20%0',(_0x5bcb91=0x1,_0x4d4526=_0x488cd8,o(_0xff7fe5,'ELEMENT_HEADING',[_0x5bcb91,_0x4d4526])))};const _0x2b606e=this['_headingOptions']['find'](_0x41ea04=>_0x41ea04['model']===_0x558842)['title'];return{'type':'format','content':o(_0xff7fe5,'*Change\x20to:*\x20%0',_0x1fb56f(0x1,_0x2b606e))};}var _0x5bcb91,_0x4d4526;});}['_getHeadingLevel'](_0x3529b0){const _0x51e8b1=_0x3529b0['match'](/^heading(\d+)/);if(_0x51e8b1)return _0x51e8b1[0x1];const _0x1f3fca=this['_headingOptions']?.['find'](_0x4e0247=>_0x4e0247['model']==_0x3529b0);if(_0x1f3fca&&_0x1f3fca['view']){const _0x3200ff=_0x1f3fca['view'],_0x4bb6a1=(_0x3200ff['name']??_0x3200ff)['match'](/^h(\d+)/);if(_0x4bb6a1)return _0x4bb6a1[0x1];}return null;}}class et extends _0xe53f34{['afterInit'](){const _0x37042f=this['editor'];if(!_0x37042f['plugins']['has']('HighlightEditing'))return;const _0x2246c8=_0x37042f['plugins']['get']('TrackChangesEditing'),_0x1099f3=_0x37042f['locale'];_0x2246c8['enableDefaultAttributesIntegration']('highlight'),_0x2246c8['registerInlineAttribute']('highlight'),_0x2246c8['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1099f3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d1bf6=this['editor'],_0x22f024=_0x4d1bf6['locale'];_0x4d1bf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c4918=>{if('formatInline'!=_0x2c4918['type'])return;const {data:_0x2f18a6}=_0x2c4918;if(_0x2f18a6&&'highlight'==_0x2f18a6['commandName']){const _0x1922ad=_0x22f024['t'],_0x6cbb63=_0x2f18a6['commandParams'][0x0]['value'];if(_0x6cbb63){const _0x310f0a=_0x4d1bf6['config']['get']('highlight.options')['find'](_0x2e2e33=>_0x2e2e33['model']==_0x6cbb63),_0x3f1a56=_0x1922ad(_0x310f0a['title'])['toLowerCase']();return{'type':'format','content':o(_0x22f024,'*Set\x20highlight:*\x20%0',_0x3f1a56),'color':{'value':_0x310f0a['color'],'title':_0x310f0a['title']}};}return{'type':'format','content':o(_0x22f024,'*Remove\x20highlight*',o(_0x22f024,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0xe53f34{['afterInit'](){const _0x18a9a2=this['editor'];if(!_0x18a9a2['plugins']['has']('HorizontalLineEditing'))return;_0x18a9a2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x145f75=_0x18a9a2['plugins']['get']('TrackChangesEditing'),_0x388cd4=_0x18a9a2['locale'];_0x145f75['descriptionFactory']['registerElementLabel']('horizontalLine',_0x49cbd1=>o(_0x388cd4,'ELEMENT_HORIZONTAL_LINE',_0x49cbd1)),_0x18a9a2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5a79cf,{writer:_0x30220a,options:_0x297390})=>{if(!_0x297390['showSuggestionHighlights'])return null;const _0x1860b6=_0x30220a['createContainerElement']('div'),_0x54f6c4=_0x30220a['createEmptyElement']('hr');return _0x30220a['addClass']('ck-horizontal-line',_0x1860b6),_0x30220a['insert'](_0x30220a['createPositionAt'](_0x1860b6,0x0),_0x54f6c4),_0x1860b6;},'converterPriority':'high'});}}class ot extends _0xe53f34{['afterInit'](){const _0x4d5667=this['editor'];if(!_0x4d5667['plugins']['has']('HtmlEmbed'))return;const _0x41f923=_0x4d5667['plugins']['get']('TrackChangesEditing'),_0x4a0550=_0x4d5667['locale'];_0x41f923['descriptionFactory']['registerElementLabel']('rawHtml',_0x3a5cbe=>o(_0x4a0550,'ELEMENT_HTML_EMBED',_0x3a5cbe)),_0x41f923['enableDefaultAttributesIntegration']('htmlEmbed'),_0x41f923['registerBlockAttribute']('value'),_0x41f923['descriptionFactory']['registerDescriptionCallback'](_0x2747f6=>{if('attribute'!=_0x2747f6['type'])return;const {data:_0x13edbc}=_0x2747f6;if(_0x13edbc&&'value'==_0x13edbc['key']&&_0x2747f6['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x234f06=o(_0x4a0550,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4a0550,'*Change\x20%0\x20content*',_0x234f06)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a5f22=this['editor'],_0x1e8f5d=_0x5a5f22['locale'];_0x5a5f22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cf094=>{if('formatBlock'!=_0x3cf094['type'])return;const {data:_0xbddb08}=_0x3cf094;if(_0xbddb08&&'htmlEmbed'==_0xbddb08['commandName']){const _0x1d40ab=o(_0x1e8f5d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1e8f5d,'*Change\x20%0\x20content*',_0x1d40ab)};}});}}class rt extends _0xe53f34{['afterInit'](){const _0x5edf92=this['editor'];if(!_0x5edf92['plugins']['has']('ImageEditing'))return;const _0x354b12=_0x5edf92['plugins']['get']('TrackChangesEditing'),_0x507383=_0x5edf92['plugins']['get']('ImageUtils'),_0x432f6e=_0x5edf92['locale'];_0x354b12['enableCommand']('insertImage'),_0x354b12['descriptionFactory']['registerElementLabel']('imageBlock',_0xfa271d=>o(_0x432f6e,'ELEMENT_IMAGE',_0xfa271d)),_0x354b12['descriptionFactory']['registerElementLabel']('imageInline',_0x18805f=>o(_0x432f6e,'ELEMENT_INLINE_IMAGE',_0x18805f)),_0x354b12['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x432f6e,'ELEMENT_CAPTION')),_0x5edf92['plugins']['has']('ImageUploadEditing')&&_0x354b12['enableCommand']('uploadImage'),_0x5edf92['plugins']['has']('ImageBlockEditing')&&_0x5edf92['plugins']['has']('ImageInlineEditing')&&(_0x354b12['enableCommand']('imageTypeInline',(_0xd516bc,_0x47415d)=>{const _0x46f595=_0x507383['getClosestSelectedImageElement'](_0x5edf92['model']['document']['selection']);_0x5edf92['model']['change'](()=>{_0x354b12['markBlockFormat'](_0x46f595,{'commandName':'imageTypeInline','commandParams':[_0x47415d]},[],'convertBlockImageToInline');});}),_0x354b12['enableCommand']('imageTypeBlock',(_0x6e1e2d,_0x55b71d)=>{_0x5edf92['model']['change'](_0x8f78a0=>{let _0x1e7e09=_0x507383['getClosestSelectedImageElement'](_0x5edf92['model']['document']['selection']),_0x4b7a2d=_0x8f78a0['createRangeOn'](_0x1e7e09);const _0x5569e0=_0x452a32['fromPosition'](_0x4b7a2d['start'],'toPrevious'),_0xeafce=_0x452a32['fromPosition'](_0x4b7a2d['end'],'toNext');_0x354b12['forceDefaultExecution'](()=>_0x6e1e2d(_0x55b71d)),_0x1e7e09=_0x507383['getClosestSelectedImageElement'](_0x5edf92['model']['document']['selection']),_0x4b7a2d=_0x8f78a0['createRangeOn'](_0x1e7e09);const _0x44f51c=_0x8f78a0['createRange'](_0x5569e0,_0xeafce);_0x5569e0['detach'](),_0xeafce['detach'](),_0x354b12['markBlockFormat'](_0x1e7e09,{'commandName':'imageTypeInline','commandParams':[_0x55b71d]},[],'convertInlineImageToBlock'),_0x44f51c['start']['isBefore'](_0x4b7a2d['start'])&&_0x354b12['markInsertion'](_0x8f78a0['createRange'](_0x44f51c['start'],_0x4b7a2d['start']),'convertInlineImageToBlock'),_0x4b7a2d['end']['isBefore'](_0x44f51c['end'])&&_0x354b12['markInsertion'](_0x8f78a0['createRange'](_0x4b7a2d['end'],_0x44f51c['end']),'convertInlineImageToBlock');});}),_0x354b12['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x354b12['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x354b12['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x354b12['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x354b12['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x354b12['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x250471])=>{const _0x3a7d68=_0x354b12['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x235e93=_0x250471['start'],_0x120893=_0x250471['end'];const _0x33097f=_0x5edf92['model']['schema']['getNearestSelectionRange'](_0x235e93,'backward'),_0x58fcd1=_0x5edf92['model']['schema']['getNearestSelectionRange'](_0x120893,'forward');_0x33097f['isCollapsed']&&(_0x235e93=_0x33097f['start']),_0x58fcd1['isCollapsed']&&(_0x120893=_0x58fcd1['end']),_0x3a7d68([_0x5edf92['model']['createRange'](_0x235e93,_0x120893)]);}),_0x354b12['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2118e6),_0x354b12['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2118e6)),_0x5edf92['plugins']['has']('ImageCaptionEditing')&&(_0x354b12['enableCommand']('toggleImageCaption',(_0x2e8946,_0x34bd39)=>{const _0x5b67f2=_0x5edf92['plugins']['get']('ImageCaptionUtils');let _0xaf9abe=_0x507383['getClosestSelectedImageElement'](_0x5edf92['model']['document']['selection']),_0xc02893=_0x5b67f2['getCaptionFromImageModelElement'](_0xaf9abe);_0x5edf92['model']['change'](()=>{if(_0xc02893)return void _0x354b12['markDeletion'](_0x5edf92['model']['createRangeOn'](_0xc02893));const _0x23a280=_0x507383['isBlockImage'](_0xaf9abe);_0x2e8946(_0x34bd39),_0xaf9abe=_0x507383['getClosestSelectedImageElement'](_0x5edf92['model']['document']['selection']),_0xc02893=_0x5b67f2['getCaptionFromImageModelElement'](_0xaf9abe),_0x354b12['markInsertion'](_0x5edf92['model']['createRangeOn'](_0xc02893),_0x23a280?null:'imageCaption');});}),_0x354b12['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2118e6));const _0x53de8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x21c60f(_0x42be1b,_0x2530e2){const _0x3e64e4=_0x53de8['findIndex'](({type:_0x2b168a,subType:_0x556908})=>_0x42be1b['type']==_0x2b168a&&_0x42be1b['subType']==_0x556908),_0x4842a0=_0x53de8['findIndex'](({type:_0x5134bd,subType:_0x41bdf4})=>_0x2530e2['type']==_0x5134bd&&_0x2530e2['subType']==_0x41bdf4);if(_0x3e64e4<0x0||_0x4842a0<0x0)return!0x1;const _0x35e92c=_0x42be1b['getFirstRange'](),_0x26aef9=_0x2530e2['getFirstRange']();if((0x0==_0x3e64e4||0x1==_0x3e64e4)&&0x2==_0x4842a0&&_0x35e92c['isIntersecting'](_0x26aef9))return!0x0;if(0x2==_0x3e64e4&&0x3==_0x4842a0){const _0x53c0af=_0x354b12['_findSuggestions'](_0x35e92c,'insertion')['filter'](({suggestion:_0x14990e,meta:_0x47e19a})=>_0x47e19a['isOwn']&&'convertInlineImageToBlock'==_0x14990e['subType']);if(_0x53c0af['length']>0x1&&_0x26aef9['end']['isEqual'](_0x35e92c['start']))return!0x0;if(0x1==_0x53c0af['length']&&(_0x35e92c['start']['isEqual'](_0x26aef9['end'])||_0x35e92c['end']['isEqual'](_0x26aef9['start'])))return!0x0;}if(0x3==_0x3e64e4&&0x3==_0x4842a0&&_0x35e92c['start']['isBefore'](_0x26aef9['start'])){const _0x1fe839=_0x35e92c['end']['nodeAfter'],_0x5e01da=_0x26aef9['start']['nodeBefore'];return _0x507383['isBlockImage'](_0x1fe839)&&_0x1fe839===_0x5e01da;}return!0x1;}function _0x2118e6(_0x24c38f,_0x4fff49){return _0x21c60f(_0x24c38f,_0x4fff49)?[_0x24c38f,_0x4fff49]:_0x21c60f(_0x4fff49,_0x24c38f)?[_0x4fff49,_0x24c38f]:null;}_0x5edf92['plugins']['has']('ImageResize')&&(_0x354b12['enableDefaultAttributesIntegration']('resizeImage'),_0x354b12['registerBlockAttribute']('resizedWidth'),_0x354b12['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x432f6e,'FORMAT_IMAGE_SIZE'))),_0x5edf92['plugins']['has']('ImageTextAlternativeEditing')&&(_0x354b12['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x354b12['registerBlockAttribute']('alt')),_0x5edf92['plugins']['has']('PictureEditing')&&(_0x354b12['registerBlockAttribute']('sources'),_0x354b12['descriptionFactory']['registerDescriptionCallback'](_0x408430=>{if('attribute'!=_0x408430['type'])return;const {data:_0x45aade}=_0x408430;return _0x45aade&&'sources'==_0x45aade['key']?{'type':'format','content':''}:void 0x0;})),_0x5edf92['plugins']['has']('ImageSizeAttributes')&&(_0x354b12['registerBlockAttribute']('width'),_0x354b12['registerBlockAttribute']('height'),_0x354b12['descriptionFactory']['registerDescriptionCallback'](_0x272e7d=>{if('attribute'!=_0x272e7d['type'])return;const {data:_0x4924b9}=_0x272e7d;return!_0x4924b9||'width'!=_0x4924b9['key']&&'height'!=_0x4924b9['key']?void 0x0:{'type':'format','content':''};})),_0x354b12['descriptionFactory']['registerDescriptionCallback'](_0x73c2f2=>{if(!!_0x53de8['find'](({type:_0x587d91,subType:_0x1974e4})=>_0x73c2f2['type']==_0x587d91&&_0x73c2f2['subType']==_0x1974e4))return _0x73c2f2['previous']?{}:void 0x0;}),_0x354b12['descriptionFactory']['registerDescriptionCallback'](_0x58b709=>{if('insertion'==_0x58b709['type']||'deletion'==_0x58b709['type']){const _0x34f89e=_0x58b709['getContainedElement']();if(_0x34f89e&&_0x34f89e['is']('element','caption'))return{'type':'insertion'==_0x58b709['type']?'addObject':'removeObject','element':_0x34f89e,'quantity':0x1};}}),_0x354b12['descriptionFactory']['registerDescriptionCallback'](_0x36f65f=>'formatBlock'==_0x36f65f['type']&&'convertInlineImageToBlock'==_0x36f65f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x36f65f['type']&&'convertBlockImageToInline'==_0x36f65f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x354b12['descriptionFactory']['registerDescriptionCallback'](_0x42c2d4=>{if('attribute'!=_0x42c2d4['type'])return;const {data:_0x1e651d}=_0x42c2d4;if(!_0x1e651d||'alt'!=_0x1e651d['key'])return;const _0x202958=_0x1e651d['newValue'];return _0x202958?{'type':'format','content':o(_0x432f6e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x202958+'\x22')}:{'type':'format','content':o(_0x432f6e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bd15f=this['editor'],_0x2346b2=_0x1bd15f['locale'];_0x1bd15f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f0b24=>{if('formatBlock'!=_0x1f0b24['type']&&'formatInline'!=_0x1f0b24['type'])return;const {data:_0x1dae49}=_0x1f0b24;if(_0x1dae49){if('imageTextAlternative'==_0x1dae49['commandName']){const _0x5cf588=_0x1dae49['commandParams'][0x0]['newValue'];return _0x5cf588?{'type':'format','content':o(_0x2346b2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5cf588+'\x22')}:{'type':'format','content':o(_0x2346b2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1dae49['commandName']){const _0x18d10c=_0x1dae49['commandParams'][0x0]['width'];return _0x18d10c?{'type':'format','content':o(_0x2346b2,'*Set\x20image\x20width:*\x20%0',_0x18d10c)}:{'type':'format','content':o(_0x2346b2,'*Reset\x20image\x20width*')};}}});}}class at extends _0xe53f34{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1bbb80=this['editor']['locale'],_0x1ea196=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ea196['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1ea196['registerBlockAttribute']('src'),_0x1ea196['descriptionFactory']['registerDescriptionCallback'](_0x136235=>{if('attribute'!=_0x136235['type'])return;const {data:_0xe34eed}=_0x136235;return _0xe34eed&&'src'==_0xe34eed['key']?_0xe34eed['newValue']&&_0xe34eed['oldValue']?{'type':'format','content':o(_0x1bbb80,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5d40ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d40ca['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5d40ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d40ca['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5d40ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a9fbe=this['editor'],_0x5a7a38=_0x3a9fbe['locale'];_0x3a9fbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2508c0=>{if('formatBlock'!=_0x2508c0['type']&&'formatInline'!=_0x2508c0['type'])return;const {data:_0x385cd0}=_0x2508c0;if(!_0x385cd0||'replaceImageSource'!=_0x385cd0['commandName'])return;return{'type':'format','content':o(_0x5a7a38,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0xe53f34{['afterInit'](){const _0x3fd206=this['editor'];if(!_0x3fd206['plugins']['has']('ImageStyleEditing'))return;const _0x150033=_0x3fd206['plugins']['get']('TrackChangesEditing'),_0x561c13=_0x3fd206['plugins']['get']('ImageUtils'),_0x4614bd={};_0x150033['enableCommand']('imageStyle',(_0x3ba354,_0x1a0d42)=>{const _0x542a90=_0x3fd206['plugins']['get']('Users')['me'],_0xee3938=_0x3fd206['commands']['get']('imageStyle');let _0x53c845=_0x561c13['getClosestSelectedImageElement'](_0x3fd206['model']['document']['selection']),_0x7f360a=_0x3fd206['model']['createRangeOn'](_0x53c845),_0xf66ef8=_0xee3938['value'];if(_0xf66ef8==_0x1a0d42['value'])return;const _0x250922={'commandName':'imageStyle','commandParams':[_0x1a0d42],'formatGroupId':_0x2a43ef()};_0x3fd206['model']['change'](()=>{if(_0x150033['getSuggestions']()['filter'](_0x42d3a2=>_0x42d3a2['isInContent']&&_0x542a90==_0x42d3a2['author']&&('formatBlock'==_0x42d3a2['type']||'formatInline'==_0x42d3a2['type'])&&('imageStylePreApply'==_0x42d3a2['subType']||'imageStylePostApply'==_0x42d3a2['subType'])&&_0x42d3a2['getFirstRange']()['isEqual'](_0x7f360a))['forEach'](_0x1f4d39=>_0x150033['discardSuggestion'](_0x1f4d39['head'])),_0x53c845=_0x561c13['getClosestSelectedImageElement'](_0x3fd206['model']['document']['selection']),_0x7f360a=_0x3fd206['model']['createRangeOn'](_0x53c845),_0xee3938['refresh'](),_0x3fd206['commands']['get']('imageTypeInline')['refresh'](),_0x3fd206['commands']['get']('imageTypeBlock')['refresh'](),_0xf66ef8=_0xee3938['value'],_0xf66ef8!=_0x1a0d42['value'])return _0x561c13['isInlineImage'](_0x53c845)&&_0xee3938['shouldConvertImageType'](_0x1a0d42['value'],_0x53c845)?(_0x3ba354({..._0x1a0d42,'setImageSizes':!0x1}),_0x53c845=_0x561c13['getClosestSelectedImageElement'](_0x3fd206['model']['document']['selection']),void _0x150033['markBlockFormat'](_0x53c845,{..._0x250922,'commandReversedParams':[{'value':_0xf66ef8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x561c13['isBlockImage'](_0x53c845)?_0x150033['markBlockFormat'](_0x53c845,_0x250922,[],'imageStylePostApply'):_0x150033['markInlineFormat'](_0x7f360a,_0x250922,'imageStylePostApply'));});});for(const _0x3aa6bd of _0x3fd206['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4614bd[_0x3aa6bd['name']]=_0x3aa6bd['title']['toLowerCase']();_0x150033['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x150033['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x150033['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x150033['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x45e8a1])=>{_0x561c13['setImageNaturalSizeAttributes'](_0x45e8a1['getContainedElement']());}),_0x150033['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2e9f58,_0x2aa72f)=>{_0x150033['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2e9f58,{'commandName':_0x2aa72f['commandName'],'commandParams':_0x2aa72f['commandReversedParams']});}),_0x150033['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4baff2,_0x2e0811){if(_0x2f00e4(_0x4baff2,_0x2e0811))return[_0x4baff2,_0x2e0811];if(_0x2f00e4(_0x2e0811,_0x4baff2))return[_0x2e0811,_0x4baff2];return null;});const _0xd24cd2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2f00e4(_0x18a795,_0x1ed814){const _0x45426a=_0xd24cd2['findIndex'](({type:_0x312c06,subType:_0x3a4d10})=>_0x18a795['type']==_0x312c06&&_0x18a795['subType']==_0x3a4d10),_0x2ce294=_0xd24cd2['findIndex'](({type:_0x1403bb,subType:_0x3f1ee5})=>_0x1ed814['type']==_0x1403bb&&_0x1ed814['subType']==_0x3f1ee5);if(_0x45426a<0x0||_0x2ce294<0x0)return!0x1;const _0x224410=_0x18a795['getFirstRange'](),_0x467ca7=_0x1ed814['getFirstRange']();if((0x0==_0x45426a||0x1==_0x45426a)&&0x2==_0x2ce294&&_0x224410['isIntersecting'](_0x467ca7))return!0x0;if(0x2==_0x45426a&&0x3==_0x2ce294){const _0x1d218c=_0x150033['_findSuggestions'](_0x224410,'insertion')['filter'](({suggestion:_0x42b077,meta:_0x5e3c76})=>_0x5e3c76['isOwn']&&'convertInlineImageToBlock'==_0x42b077['subType']);if(_0x1d218c['length']>0x1&&_0x467ca7['end']['isEqual'](_0x224410['start']))return!0x0;if(0x1==_0x1d218c['length']&&(_0x224410['start']['isEqual'](_0x467ca7['end'])||_0x224410['end']['isEqual'](_0x467ca7['start'])))return!0x0;}if(0x3==_0x45426a&&0x3==_0x2ce294&&_0x224410['start']['isBefore'](_0x467ca7['start'])){const _0x42a721=_0x224410['end']['nodeAfter'],_0x12ae50=_0x467ca7['start']['nodeBefore'];return _0x561c13['isBlockImage'](_0x42a721)&&_0x42a721===_0x12ae50;}return!0x1;}_0x3fd206['model']['document']['registerPostFixer'](()=>{let _0xaf62fc=!0x1;const _0x1d0a8b=Array['from'](_0x3fd206['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x17b276,data:_0x3bf4cc}of _0x1d0a8b){const {group:_0x1bd738,type:_0x1000cd,subType:_0x3a44c1,id:_0x56a871}=_0x150033['_splitMarkerName'](_0x17b276);if('suggestion'==_0x1bd738&&_0x150033['hasSuggestion'](_0x56a871)){if('formatBlock'==_0x1000cd&&('imageStylePreApply'==_0x3a44c1||'imageStylePostApply'==_0x3a44c1)){const _0x3088fd=_0x150033['getSuggestion'](_0x56a871);if(_0x3bf4cc['newRange']){const _0x589834=_0x3088fd['getFirstRange']()['getContainedElement']();if(_0x561c13['isBlockImage'](_0x589834))continue;_0x150033['discardSuggestion'](_0x3088fd),_0xaf62fc=!0x0;}}if('insertion'==_0x1000cd&&'imageCaption'==_0x3a44c1&&!_0x3bf4cc['newRange']){const _0x10a70e=_0x150033['getSuggestion'](_0x56a871);_0x10a70e['next']&&_0x10a70e['next']['isInContent']&&(_0x150033['discardSuggestion'](_0x10a70e['next']),_0xaf62fc=!0x0);}}}return _0xaf62fc;}),this['_registerLegacyDescription'](_0x4614bd);}['_registerLegacyDescription'](_0xda4fd9){const _0x4524c0=this['editor'],_0x10813e=_0x4524c0['locale'];_0x4524c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cc02c=>{if('formatBlock'!=_0x5cc02c['type']&&'formatInline'!=_0x5cc02c['type'])return;const {data:_0x4e85cd}=_0x5cc02c;if(!_0x4e85cd||'imageStyle'!=_0x4e85cd['commandName'])return;const _0x545ee4=_0x4e85cd['commandParams'][0x0]['value'];return _0x187447('side'===_0x545ee4?o(_0x10813e,'FORMAT_SIDE_IMAGE'):_0xda4fd9[_0x545ee4]||_0x545ee4);function _0x187447(_0x366ed5){return{'type':'format','content':o(_0x10813e,'*Format:*\x20%0',_0x366ed5)};}});}}class ut extends _0xe53f34{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1f7326){super(_0x1f7326),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3c4cbf=this['editor'],_0x9e31fa=_0x3c4cbf['commands']['get']('importWord'),_0xb4bd74=_0x3c4cbf['commands']['get']('trackChanges');_0x9e31fa&&(_0x9e31fa['on']('execute',(_0x22b252,[,_0x2975f0])=>{this['_trackChangesValueDuringImport']=_0xb4bd74['value'],_0x2975f0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x9e31fa,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x9e31fa,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xb4bd74['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3c4cbf['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1ae63b,_0x17875f){const {suggestions:_0xfba9fc}=_0x17875f,_0x2a2e5d=this['editor']['commands']['get']('trackChanges'),_0x5b6f2c=_0x2a2e5d['value'];this['_trackChangesValueDuringImport']!==_0x5b6f2c&&(_0x2a2e5d['execute'](),this['_trackChangesExecuted']=!0x0),_0xfba9fc&&_0xfba9fc['forEach'](({id:_0x52ae0f,type:_0x111fe9,author:_0x3c29fe,created_at:_0xc58cf})=>{const _0x3406db={'id':_0x52ae0f,'type':_0x111fe9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3c29fe,'createdAt':_0xc58cf?new Date(_0xc58cf):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3406db);});}}class ft extends _0xe53f34{['afterInit'](){const _0x2c340c=this['editor'],_0x5b6880=_0x2c340c['plugins']['get']('TrackChangesEditing');if(_0x2c340c['plugins']['has']('IndentEditing')&&(_0x5b6880['enableCommand']('indent'),_0x5b6880['enableCommand']('outdent')),_0x2c340c['plugins']['has']('IndentBlock')){for(const _0x40b901 of['indentBlock','outdentBlock'])_0x5b6880['enableDefaultAttributesIntegration'](_0x40b901);}const _0x5069d8=_0x2c340c['locale'];_0x5b6880['registerBlockAttribute']('blockIndent'),_0x5b6880['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5069d8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dae4a=this['editor'],_0x908a5f=_0x5dae4a['locale'],_0x404803=_0x5dae4a['plugins']['get']('TrackChangesEditing');_0x404803['descriptionFactory']['registerDescriptionCallback'](_0x358895=>{if('formatBlock'!=_0x358895['type'])return;const {data:_0x2b473d}=_0x358895;if(!_0x2b473d)return;if('indentBlock'!=_0x2b473d['commandName']&&'outdentBlock'!=_0x2b473d['commandName'])return;const _0x2869ff=_0x358895['getItems']()[0x0],_0x20fba3=_0x404803['descriptionFactory']['getItemLabel'](_0x2869ff);return'indentBlock'==_0x2b473d['commandName']?{'type':'format','content':o(_0x908a5f,'*Indent:*\x20%0',_0x20fba3)}:'outdentBlock'==_0x2b473d['commandName']?{'type':'format','content':o(_0x908a5f,'*Outdent:*\x20%0',_0x20fba3)}:void 0x0;});}}class ht extends _0xe53f34{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0xe53f34{['afterInit'](){const _0x442c96=this['editor'];if(!_0x442c96['plugins']['has']('LinkEditing'))return;const _0x3f63c2=_0x442c96['plugins']['get']('TrackChangesEditing'),_0x20eba2=_0x442c96['commands']['get']('link');_0x3f63c2['enableDefaultAttributesIntegration']('link'),_0x3f63c2['enableDefaultAttributesIntegration']('unlink'),_0x3f63c2['registerInlineAttribute']('linkHref');for(const _0x452654 of _0x20eba2['manualDecorators'])_0x3f63c2['registerInlineAttribute'](_0x452654['id']),_0x3f63c2['descriptionFactory']['registerAttributeLabel'](_0x452654['id'],'link\x20('+_0x452654['label']['toLowerCase']()+')');_0x3f63c2['descriptionFactory']['registerDescriptionCallback'](_0x1983e6=>{if('attribute'!=_0x1983e6['type'])return;const {data:_0x1cad97}=_0x1983e6;if(!_0x1cad97||'linkHref'!=_0x1cad97['key'])return;const _0x3493e5=_0x1cad97['newValue'],_0x4ed906=_0x442c96['locale'];return{'type':'format','content':null==_0x3493e5?o(_0x4ed906,'*Remove\x20link*'):o(_0x4ed906,'*Set\x20link:*\x20%0','\x22'+_0x3493e5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x252051=this['editor'],_0x305bb0=_0x252051['locale'];_0x252051['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf59ea0=>{if('formatInline'!=_0xf59ea0['type'])return;const {data:_0x9c712f}=_0xf59ea0;if(_0x9c712f){if('link'==_0x9c712f['commandName']){const _0xc17604=_0x9c712f['commandParams'][0x0];return{'type':'format','content':o(_0x305bb0,'*Set\x20link:*\x20%0','\x22'+_0xc17604+'\x22')};}return'unlink'==_0x9c712f['commandName']?{'type':'format','content':o(_0x305bb0,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0xe53f34{['afterInit'](){const _0x360630=this['editor'],_0x607404=_0x360630['locale'];if(!_0x360630['plugins']['has']('LegacyListEditing'))return;const _0x13b111=_0x360630['plugins']['get']('TrackChangesEditing'),_0x53a0de=_0x360630['plugins']['has']('LegacyTodoListEditing');function _0x4db367(_0x31ef9f){return()=>{const _0x4fe541=_0x360630['model']['document']['selection'],_0x2eee98=_0x360630['commands']['get'](_0x31ef9f);if(_0x2eee98['value'])return void _0x360630['execute']('paragraph',{});const _0x2afb04=_0x31ef9f['slice'](0x0,-0x4),_0x4063fb=function(_0x532e3a,_0x364983,_0x338f28){let _0x114e81=Array['from'](_0x532e3a)['filter'](_0x42be56=>function(_0x541df2,_0xd60682){return _0xd60682['checkChild'](_0x541df2['parent'],'listItem')&&!_0xd60682['isObject'](_0x541df2);}(_0x42be56,_0x338f28));_0x114e81=_0x114e81['filter'](_0x24fbbc=>!_0x24fbbc['is']('element','listItem')||_0x24fbbc['getAttribute']('listType')!=_0x364983);const _0x106feb=new Set();for(const _0x57a5ac of _0x114e81)_0x57a5ac['is']('element','listItem')?_0x106feb['add'](Le(_0x57a5ac)):_0x106feb['add'](_0x57a5ac);return Array['from'](_0x106feb);}(_0x4fe541['getSelectedBlocks'](),_0x2afb04,_0x360630['model']['schema']);_0x360630['model']['change'](()=>{for(const _0x56b38f of _0x4063fb)_0x13b111['markBlockFormat'](_0x56b38f,{'commandName':_0x31ef9f,'commandParams':[{'forceValue':!_0x2eee98['value']}],'formatGroupId':'blockName'},Ee(_0x56b38f));});};}function _0x2f44b6(_0x5cfb08){return()=>{const _0x5b5c29=function(_0x46c514){let _0x4a0597=Array['from'](_0x46c514);const _0x11e7c9=_0x4a0597['findIndex'](_0x20cdbe=>'listItem'!=_0x20cdbe['name']);return _0x11e7c9>-0x1&&(_0x4a0597=_0x4a0597['slice'](0x0,_0x11e7c9)),_0x4a0597;}(_0x360630['model']['document']['selection']['getSelectedBlocks']()),_0x3f0768=_0x360630['model']['createRange'](_0x360630['model']['createPositionAt'](_0x5b5c29[0x0],'before'),_0x360630['model']['createPositionAt'](_0x5b5c29[_0x5b5c29['length']-0x1],'end'));_0x360630['model']['change'](()=>{_0x13b111['markBlockFormat'](_0x3f0768,{'commandName':_0x5cfb08,'commandParams':[],'formatGroupId':'listIndent'},function(_0x47f58f){const _0x24996b=new Set();for(const _0x249a79 of _0x47f58f){let _0x52cdf7=_0x249a79['nextSibling'];for(;_0x52cdf7&&_0x52cdf7['getAttribute']('listIndent')>_0x249a79['getAttribute']('listIndent');)_0x24996b['add'](_0x52cdf7),_0x52cdf7=_0x52cdf7['nextSibling'];}return Array['from'](_0x24996b);}(_0x5b5c29));});};}_0x13b111['enableCommand']('numberedList',_0x4db367('numberedList')),_0x13b111['enableCommand']('bulletedList',_0x4db367('bulletedList')),_0x53a0de&&_0x13b111['enableCommand']('todoList',_0x4db367('todoList')),_0x13b111['enableCommand']('indentList',_0x2f44b6('indentList')),_0x13b111['enableCommand']('outdentList',_0x2f44b6('outdentList')),_0x53a0de&&_0x13b111['enableCommand']('checkTodoList',()=>{const _0x14c75e=_0x360630['commands']['get']('checkTodoList'),_0x40d230=Array['from'](_0x14c75e['_selectedElements']);_0x40d230['filter'](_0x3af0f9=>_0x3af0f9['getAttribute']('todoListChecked')!=_0x14c75e['value']),_0x360630['model']['change'](()=>{for(const _0x53ebac of _0x40d230)_0x13b111['markBlockFormat'](_0x53ebac,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x14c75e['value']}]});});}),_0x13b111['descriptionFactory']['registerElementLabel']('listItem',_0x201a3c=>o(_0x607404,'ELEMENT_LIST_ITEM',_0x201a3c)),_0x13b111['descriptionFactory']['registerDescriptionCallback'](_0x41a00c=>{if('formatBlock'!=_0x41a00c['type']&&'formatInline'!=_0x41a00c['type'])return;const {data:_0x59cdbd}=_0x41a00c;if(_0x59cdbd){if('numberedList'==_0x59cdbd['commandName']||'bulletedList'==_0x59cdbd['commandName']||'todoList'==_0x59cdbd['commandName'])switch(_0x59cdbd['commandName']['replace']('List','')){case'bulleted':return _0x327e69(o(_0x607404,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x327e69(o(_0x607404,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x327e69(o(_0x607404,'ELEMENT_TODO_LIST'));}if('indentList'==_0x59cdbd['commandName'])return{'type':'format','content':o(_0x607404,'*Indent:*\x20%0',o(_0x607404,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x59cdbd['commandName'])return{'type':'format','content':o(_0x607404,'*Outdent:*\x20%0',o(_0x607404,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x59cdbd['commandName'])return _0x59cdbd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x607404,'*Check\x20item*')}:{'type':'format','content':o(_0x607404,'*Uncheck\x20item*')};}function _0x327e69(_0x121a22){return{'type':'format','content':o(_0x607404,'*Change\x20to:*\x20%0',_0x121a22)};}});}}function Le(_0xe81a81){const _0x140079=_0xe81a81['getAttribute']('listIndent');if(0x0==_0x140079)return _0xe81a81;let _0x46b1ec=_0xe81a81;for(;_0xe81a81['previousSibling']&&_0xe81a81['previousSibling']['is']('element','listItem');){const _0x1a6bf3=_0xe81a81['previousSibling']['getAttribute']('listIndent');if(_0x1a6bf3==_0x140079)_0x46b1ec=_0xe81a81['previousSibling'];else{if(_0x1a6bf3<_0x140079)break;}_0xe81a81=_0xe81a81['previousSibling'];}return _0x46b1ec;}function Ee(_0x362219){const _0xfb5ecf=[];if(_0x362219['is']('element','listItem')&&_0x362219['getAttribute']('listIndent')>0x0){let _0x1e6e50=_0x362219['nextSibling'];for(;_0x1e6e50&&'listItem'==_0x1e6e50['name']&&_0x1e6e50['getAttribute']('listIndent')==_0x362219['getAttribute']('listIndent');)_0xfb5ecf['push'](_0x1e6e50),_0x1e6e50=_0x1e6e50['nextSibling'];}return _0xfb5ecf;}class Q extends _0xe53f34{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x555b26=this['editor']['config']['get']('list.properties'),_0x4e3d5f=this['editor']['plugins']['get']('TrackChangesEditing');_0x555b26['styles']&&_0x4e3d5f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x555b26['reversed']&&_0x4e3d5f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x555b26['startIndex']&&_0x4e3d5f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4e3d5f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x57422a,_0x5bc759={}){const _0x23cea6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x200c3b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x23cea6['markMultiRangeBlockFormat'](_0x200c3b,{'commandName':'listStyle','commandParams':[{'type':_0x5bc759['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x108a65,_0x28e522={}){const _0x306375=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4baf72=this['_getSuggestionBlocks'](_0x1e1663=>_0x1e1663['is']('element','listItem')&&'numbered'===_0x1e1663['getAttribute']('listType'));if(_0x4baf72['length']<0x1)return;const _0x119d73=_0x4baf72['map'](_0x432b0f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x432b0f,'before'),this['editor']['model']['createPositionAt'](_0x432b0f,0x0)));this['editor']['model']['change'](()=>{_0x306375['markMultiRangeBlockFormat'](_0x119d73,{'commandName':'listReversed','commandParams':[{'reversed':_0x28e522['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3b91d5,_0x1e8493={}){const _0x3dc8ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5449b3=this['_getSuggestionBlocks'](_0x3b06e3=>_0x3b06e3['is']('element','listItem')&&'numbered'===_0x3b06e3['getAttribute']('listType'));if(_0x5449b3['length']<0x1)return;const _0x166f31=_0x5449b3['map'](_0x828148=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x828148,'before'),this['editor']['model']['createPositionAt'](_0x828148,0x0)));this['editor']['model']['change'](()=>{_0x3dc8ba['markMultiRangeBlockFormat'](_0x166f31,{'commandName':'listStart','commandParams':[{'startIndex':_0x1e8493['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xedd786){if('formatBlock'!=_0xedd786['type']&&'formatInline'!=_0xedd786['type'])return;const _0x259296=this['editor']['locale'],{data:_0x4e0cbd}=_0xedd786;if(!_0x4e0cbd)return;let _0x343025,_0x4a0238;switch(_0x4e0cbd['commandName']){case'listStyle':_0x343025='*Change\x20to:*\x20%0',_0x4a0238={'type':'format','content':o(_0x259296,_0x343025,o(_0x259296,this['_getTranslationKeyForListStyle'](_0x4e0cbd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x343025=_0x4e0cbd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4a0238={'type':'format','content':o(_0x259296,_0x343025)};break;case'listStart':_0x343025='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4a0238={'type':'format','content':o(_0x259296,_0x343025,_0x4e0cbd['commandParams'][0x0]['startIndex'])};}return _0x4a0238;}['_getSuggestionBlocksForListStyle'](){const _0x3a7b76=this['editor']['plugins']['get']('LegacyListUtils');let _0x251f80=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x251f80[0x0]?.['is']('element','listItem')&&_0x251f80['unshift'](..._0x3a7b76['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x251f80[_0x251f80['length']-0x1]?.['is']('element','listItem')&&_0x251f80['push'](..._0x3a7b76['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x251f80=[...new Set(_0x251f80)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x251f80=_0x251f80['filter'](_0x530862=>_0x530862['is']('element','listItem'))),_0x251f80;}['_getSuggestionBlocks'](_0x879e70){const _0x26ffd2=this['editor']['plugins']['get']('LegacyListUtils');let _0x6354b9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x879e70)['map'](_0xbd2b1c=>{const _0x3aba13=this['editor']['model']['createPositionAt'](_0xbd2b1c,0x0);return[..._0x26ffd2['getSiblingNodes'](_0x3aba13,'backward'),..._0x26ffd2['getSiblingNodes'](_0x3aba13,'forward')];})['flat']();return _0x6354b9=[...new Set(_0x6354b9)],_0x6354b9;}['_getTranslationKeyForListStyle'](_0xb6d0d5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xb6d0d5)||'default')['toUpperCase']()+'_LIST_'+_0xb6d0d5['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0xe53f34{['afterInit'](){const _0x3caa41=this['editor'];if(!_0x3caa41['plugins']['has']('MediaEmbedEditing'))return;const _0x4d15c7=_0x3caa41['plugins']['get']('TrackChangesEditing'),_0x4e457d=_0x3caa41['locale'];_0x4d15c7['enableCommand']('mediaEmbed'),_0x4d15c7['descriptionFactory']['registerElementLabel']('media',_0xf5fc3c=>o(_0x4e457d,'ELEMENT_MEDIA',_0xf5fc3c)),_0x3caa41['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x217b75,{writer:_0x53601a,options:_0xe3c048})=>{if(_0xe3c048['showSuggestionHighlights'])return _0x53601a['createEmptyElement']('div');},'converterPriority':'high'}),_0x3caa41['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4bfe63,_0x5714ac,_0x6a122c)=>{_0x6a122c['options']['showSuggestionHighlights']&&_0x4bfe63['stop']();},{'priority':'high'});}}class pt extends _0xe53f34{['afterInit'](){const _0x42c905=this['editor'];_0x42c905['plugins']['has']('MentionEditing')&&_0x42c905['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0xe53f34{['afterInit'](){const _0x3e0218=this['editor'];if(!_0x3e0218['plugins']['has']('MergeFieldsEditing'))return;const _0x650f68=_0x3e0218['plugins']['get']('TrackChangesEditing'),_0x19feb0=_0x3e0218['locale'];_0x650f68['enableCommand']('insertMergeField'),_0x650f68['enableCommand']('insertMergeFieldBlock'),_0x650f68['enableCommand']('insertMergeFieldImage'),_0x650f68['descriptionFactory']['registerElementLabel']('mergeField',_0x26a93c=>o(_0x19feb0,'ELEMENT_MERGE_FIELD',_0x26a93c)),_0x650f68['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x262964=>o(_0x19feb0,'ELEMENT_MERGE_FIELD',_0x262964)),_0x650f68['descriptionFactory']['registerDescriptionCallback'](_0x58a6e1=>{if('insertion'!=_0x58a6e1['type']&&'deletion'!=_0x58a6e1['type'])return;const _0x52719d=_0x58a6e1['getContainedElement']();if(null==_0x52719d)return;const _0x2686c4=_0x3e0218['plugins']['get']('MergeFieldsEditing');let _0x25e0fe;switch(_0x2686c4['getMergeFieldType'](_0x52719d)){case null:return;case'image':{const _0x12439d=_0x2686c4['unwrapAffixes'](_0x52719d['getAttribute']('src'));_0x25e0fe=_0x2686c4['getLabel'](_0x12439d)||_0x12439d;break;}default:{const _0x19322e=_0x52719d['getAttribute']('id');_0x25e0fe=_0x2686c4['getLabel'](_0x19322e)||_0x19322e;break;}}return'insertion'==_0x58a6e1['type']?{'type':'insertion','content':o(_0x19feb0,'*Insert:*\x20%0','\x22'+_0x25e0fe+'\x22\x20'+o(_0x19feb0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x19feb0,'*Remove:*\x20%0','\x22'+_0x25e0fe+'\x22\x20'+o(_0x19feb0,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0xe53f34{['afterInit'](){const _0x409437=this['editor'],_0x55cf24=_0x409437['plugins']['get']('TrackChangesEditing');_0x409437['plugins']['has']('MultiLevelList')&&(_0x55cf24['enableDefaultAttributesIntegration']('multiLevelList'),_0x55cf24['registerBlockAttribute']('listMarkerStyle'),_0x55cf24['descriptionFactory']['registerDescriptionCallback'](_0x3021a1=>this['handleDescriptions'](_0x3021a1)));}['handleDescriptions'](_0x28d5de){const _0x4fe86a=this['editor']['locale'],{data:_0x441bdb}=_0x28d5de,_0x424a4a={'type':'format','content':''};if(_0x441bdb&&'listMarkerStyle'==_0x441bdb['key']){if(!_0x441bdb['oldValue'])return{'type':'format','content':o(_0x4fe86a,'*Set\x20format:*\x20%0',o(_0x4fe86a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x441bdb['newValue']+')'};if(!_0x441bdb['newValue']){let _0x8f171e=_0x28d5de['head'];for(;_0x8f171e;){if(_0x8f171e['data']&&'listType'==_0x8f171e['data']['key']&&_0x8f171e['data']['newValue'])return _0x424a4a;_0x8f171e=_0x8f171e['next'];}return{'type':'format','content':o(_0x4fe86a,'*Remove\x20format:*\x20%0',o(_0x4fe86a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x441bdb['oldValue']+')'};}}}}class bt extends _0xe53f34{['afterInit'](){const _0x53b74e=this['editor'];if(!_0x53b74e['plugins']['has']('PageBreakEditing'))return;_0x53b74e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x28dd24=_0x53b74e['plugins']['get']('TrackChangesEditing'),_0x22eeb6=_0x53b74e['locale'];_0x28dd24['descriptionFactory']['registerElementLabel']('pageBreak',_0x2ce947=>o(_0x22eeb6,'ELEMENT_PAGE_BREAK',_0x2ce947));}}class yt extends _0xe53f34{['afterInit'](){const _0x45401d=this['editor'];if(!_0x45401d['plugins']['has']('Paragraph'))return;const _0x2e5684=_0x45401d['locale'],_0x412476=_0x45401d['plugins']['get']('TrackChangesEditing');_0x412476['descriptionFactory']['registerElementLabel']('paragraph',_0xea02=>o(_0x2e5684,'ELEMENT_PARAGRAPH',_0xea02)),_0x412476['enableDefaultAttributesIntegration']('paragraph'),_0x412476['enableCommand']('insertParagraph'),_0x45401d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x45401d),{'priority':'highest'}),_0x45401d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc7f360,_0xceb427,_0x1dd86d)=>{_0x1dd86d['options']['showSuggestionHighlights']&&nr(_0x45401d,{'showActiveMarker':!0x1})(_0xc7f360,_0xceb427,_0x1dd86d);},{'priority':'highest'});const _0x3061d7=_0x412476['descriptionFactory'];_0x3061d7['registerDescriptionCallback'](_0x53c649=>{if('insertion'!==_0x53c649['type'])return;const {start:_0x33c0ea,end:_0xdf8aa2}=_0x53c649['getFirstRange']();if(!_0x33c0ea['isTouching'](_0xdf8aa2)||!_0x33c0ea['nodeAfter'])return;const _0x543858=_0x45401d['model']['schema'],_0x928434=_0x33c0ea['nodeAfter'];return _0x543858['isBlock'](_0x928434)&&!_0x543858['isLimit'](_0x928434)&&_0x543858['checkChild'](_0x928434,'$text')?{'type':'insertion','content':o(_0x2e5684,'*Insert:*\x20%0',_0x3061d7['getItemLabel'](_0x928434,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48a55e=this['editor'],_0x10efdc=_0x48a55e['locale'];_0x48a55e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd7369f=>{if('formatBlock'!=_0xd7369f['type'])return;const {data:_0x2cda31}=_0xd7369f;return _0x2cda31&&'paragraph'==_0x2cda31['commandName']?{'type':'format','content':o(_0x10efdc,'*Change\x20to:*\x20%0',o(_0x10efdc,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x10d0d3,{showActiveMarker:_0x40f8e0=!0x0}={}){return(_0x254a13,_0x635364,_0x1be795)=>{const _0x35ea03=_0x10d0d3['plugins']['get']('TrackChangesEditing'),_0xe4bb9f=_0x635364['markerRange']['start'],_0x423ca6=_0x635364['markerRange']['end'],_0x59aed1=_0x10d0d3['model']['schema'];if(!_0xe4bb9f['isTouching'](_0x423ca6)||!_0xe4bb9f['nodeAfter'])return;const _0xc0c3c0=_0xe4bb9f['nodeAfter'];if(_0x59aed1['isBlock'](_0xc0c3c0)&&!_0x59aed1['isLimit'](_0xc0c3c0)&&_0x59aed1['checkChild'](_0xc0c3c0,'$text')){if(!_0x1be795['consumable']['consume'](_0x635364['markerRange'],_0x254a13['name']))return;const {authorId:_0x23d2ff}=_0x35ea03['_splitMarkerName'](_0x635364['markerName']),_0x2f0243=_0x1be795['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x23d2ff}),_0x27a41a=_0x1be795['mapper']['toViewPosition'](_0x423ca6);_0x40f8e0&&_0x35ea03['activeMarkers']['includes'](_0x635364['markerName'])&&_0x1be795['writer']['addClass']('ck-suggestion-marker--active',_0x2f0243),_0x1be795['writer']['insert'](_0x27a41a,_0x2f0243),_0x1be795['mapper']['bindElementToMarker'](_0x2f0243,_0x635364['markerName']);}};}class jt extends _0xe53f34{['afterInit'](){const _0x598d5b=this['editor'];_0x598d5b['commands']['get']('replaceSource')&&_0x598d5b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0xe53f34{['afterInit'](){const _0x38e21f=this['editor'];if(!_0x38e21f['plugins']['has']('RemoveFormatEditing'))return;_0x38e21f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x376585=this['editor'];_0x376585['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1eea22=>{if('formatBlock'!=_0x1eea22['type']&&'formatInline'!=_0x1eea22['type'])return;const {data:_0x55c458}=_0x1eea22;return _0x55c458&&'removeFormat'==_0x55c458['commandName']?{'type':'format','content':o(_0x376585['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0xe53f34{['afterInit'](){const _0x2210a=this['editor'];if(!_0x2210a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x293fe5=_0x2210a['plugins']['get']('TrackChangesEditing');_0x293fe5['enableCommand']('goToPreviousRestrictedEditingException'),_0x293fe5['enableCommand']('goToNextRestrictedEditingException');const _0x1e3f10=_0x2210a['plugins']['get']('RestrictedEditingModeEditing');_0x1e3f10['enableCommand']('trackChanges'),_0x1e3f10['enableCommand']('acceptSuggestion'),_0x1e3f10['enableCommand']('discardSuggestion'),_0x1e3f10['enableCommand']('acceptAllSuggestions'),_0x1e3f10['enableCommand']('discardAllSuggestions'),_0x1e3f10['enableCommand']('acceptSelectedSuggestions'),_0x1e3f10['enableCommand']('discardSelectedSuggestions');}}class It extends _0xe53f34{static get['requires'](){return[_0x38316b];}['init'](){const _0x312971=this['editor'],_0xb77743=_0x312971['plugins']['get']('TrackChangesEditing');_0xb77743['enableCommand']('shiftEnter'),_0x312971['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x312971),{'priority':'high'}),_0x312971['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x312971),{'priority':'high'}),_0x312971['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59c920,_0x1a7bf7,_0x204f7d)=>{_0x204f7d['options']['showSuggestionHighlights']&&je(_0x312971,{'showActiveMarker':!0x1})(_0x59c920,_0x1a7bf7,_0x204f7d);}),_0xb77743['descriptionFactory']['registerElementLabel']('softBreak',_0x4e1100=>o(_0x312971['locale'],'ELEMENT_LINE_BREAK',_0x4e1100));}}function je(_0x2a1f2d,{showActiveMarker:_0x380ea7=!0x0}={}){return(_0x97b467,_0x24ddc5,_0x1930a3)=>{const _0x1d6267=_0x2a1f2d['plugins']['get']('TrackChangesEditing');if(!_0x1930a3['consumable']['test'](_0x24ddc5['markerRange'],_0x97b467['name']))return;const _0x13c242=_0x2a1f2d['model'];for(const _0x20d68e of _0x24ddc5['markerRange']['getItems']()){if(!_0x20d68e['is']('element','softBreak'))continue;const _0x26eb9f='deletion'==_0x24ddc5['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x56d435}=_0x1d6267['_splitMarkerName'](_0x24ddc5['markerName']),_0x3c9bda=_0x1930a3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x26eb9f,'data-author-id':_0x56d435}),_0x3d9f7b=_0x1930a3['mapper']['toViewPosition'](_0x13c242['createPositionBefore'](_0x20d68e));_0x380ea7&&_0x1d6267['activeMarkers']['includes'](_0x24ddc5['markerName'])&&_0x1930a3['writer']['addClass']('ck-suggestion-marker--active',_0x3c9bda),_0x1930a3['writer']['insert'](_0x3d9f7b,_0x3c9bda),_0x1930a3['mapper']['bindElementToMarker'](_0x3c9bda,_0x24ddc5['markerName']);}};}class vt extends _0xe53f34{['afterInit'](){const _0x2d527c=this['editor'],_0x1df1e1=_0x2d527c['model'],_0x4385a7=_0x2d527c['locale'];if(!_0x2d527c['plugins']['has']('StandardEditingModeEditing'))return;const _0x5c070c=_0x2d527c['plugins']['get']('TrackChangesEditing'),_0x206899='restrictedEditingException',_0x3e7fd3=_0x2d527c['commands']['get'](_0x206899);_0x5c070c['enableCommand'](_0x206899,(_0xe23465,_0x20b058={})=>{const _0x33a846=_0x1df1e1['document']['selection'];if(_0x33a846['isCollapsed'])return void _0xe23465(_0x20b058);const _0x57d81d=void 0x0!==_0x20b058['forceValue']?_0x20b058['forceValue']:!_0x3e7fd3['value'];_0x1df1e1['change'](()=>{const _0x2b0fc4=Array['from'](_0x33a846['getRanges']());for(const _0x30fe8e of _0x2b0fc4){const _0x53ce1c=_0x57d81d?[_0x30fe8e]:io(_0x206899,_0x30fe8e,_0x1df1e1);for(const _0x48743e of _0x53ce1c)_0x5c070c['markInlineFormat'](_0x48743e,{'commandName':_0x206899,'commandParams':[{'forceValue':_0x57d81d}]});}});}),_0x5c070c['descriptionFactory']['registerDescriptionCallback'](_0x51d851=>{if('formatBlock'!=_0x51d851['type']&&'formatInline'!=_0x51d851['type'])return;const {data:_0x1172f6}=_0x51d851;return _0x1172f6&&_0x1172f6['commandName']==_0x206899?_0x1172f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4385a7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4385a7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0xe53f34{['afterInit'](){const _0x35329b=this['editor'];if(!_0x35329b['plugins']['has']('Style')||!_0x35329b['plugins']['has']('DataSchema'))return;const _0x76b8b3=_0x35329b['plugins']['get']('TrackChangesEditing'),_0x308c46=_0x35329b['locale'],_0x365eca=_0x35329b['config']['get']('style')||{},_0x47d173=_0x35329b['plugins']['get']('GeneralHtmlSupport'),_0x34df61=_0x35329b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x35329b['plugins']['get']('DataSchema'),_0x365eca['definitions']);_0x76b8b3['enableDefaultAttributesIntegration']('style');const _0x55e8ba=new Set();for(const _0x5dfa69 of _0x34df61['block']){const _0x3cc3a9=_0x47d173['getGhsAttributeNameForElement'](_0x5dfa69['element']);_0x55e8ba['add'](_0x3cc3a9);}const _0x50643d=new Set();for(const _0x2ce4b7 of _0x34df61['inline']){const _0x6ce7c2=_0x47d173['getGhsAttributeNameForElement'](_0x2ce4b7['element']);_0x50643d['add'](_0x6ce7c2);for(const _0x209a77 of _0x2ce4b7['ghsAttributes'])_0x50643d['add'](_0x209a77);}for(const _0x7c0958 of _0x55e8ba)_0x76b8b3['registerBlockAttribute'](_0x7c0958),_0x76b8b3['descriptionFactory']['registerAttributeLabel'](_0x7c0958,o(_0x308c46,'FORMAT_STYLE'));for(const _0x11abcf of _0x50643d)_0x76b8b3['registerInlineAttribute'](_0x11abcf),_0x76b8b3['descriptionFactory']['registerAttributeLabel'](_0x11abcf,o(_0x308c46,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3eec4b=this['editor'],_0xa4ba9d=_0x3eec4b['locale'];_0x3eec4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc116=>{if('formatBlock'!=_0xc116['type']&&'formatInline'!=_0xc116['type'])return;const {data:_0x221992}=_0xc116;return _0x221992&&'style'===_0x221992['commandName']?_0x221992['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa4ba9d,'*Set\x20format:*\x20%0',_0x221992['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xa4ba9d,'*Remove\x20format:*\x20%0',_0x221992['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0xe53f34{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4fe3ae){super(_0x4fe3ae),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4e8931=this['editor'],_0x4b4c9b=_0x4e8931['model']['document']['selection'];if(!_0x4e8931['plugins']['has']('TableEditing'))return;const _0x39b8dd=_0x4e8931['locale'],_0x1e8841=_0x4e8931['plugins']['get']('TrackChangesEditing'),_0x487f5b=_0x4e8931['plugins']['get']('TableUtils');_0x1e8841['descriptionFactory']['registerElementLabel']('table',_0x57de9d=>o(_0x39b8dd,'ELEMENT_TABLE',_0x57de9d)),this['_setupColumnsRowsFixing'](),_0x1e8841['enableCommand']('insertTable'),_0x1e8841['enableCommand']('selectTableRow'),_0x1e8841['enableCommand']('selectTableColumn');for(const _0x55a4a3 of['insertTableRowAbove','insertTableRowBelow']){const _0x413fae=_0x4e8931['commands']['get'](_0x55a4a3);_0x1e8841['enableCommand'](_0x55a4a3,_0x37714c=>{_0x4e8931['model']['change'](_0x5b2401=>{_0x37714c();const _0x4298e9='above'===_0x413fae['order'],_0x19b605=_0x487f5b['getSelectionAffectedTableCells'](_0x4b4c9b),_0x3ecb4e=_0x487f5b['getRowIndexes'](_0x19b605),_0x1fc6b2=_0x4298e9?_0x3ecb4e['first']-0x1:_0x3ecb4e['last']+0x1,_0x34e706=_0x19b605[0x0]['findAncestor']('table'),_0xe5522=_0x487f5b['createTableWalker'](_0x34e706,{'startRow':_0x1fc6b2,'endRow':_0x1fc6b2}),_0x380954=Array['from'](_0xe5522)['map'](_0x2aba21=>_0x5b2401['createRangeOn'](_0x2aba21['cell']));_0x1e8841['markMultiRangeInsertion'](_0x380954,'tableRow');});});}for(const _0x35c064 of['insertTableColumnLeft','insertTableColumnRight']){const _0x432ea3=_0x4e8931['commands']['get'](_0x35c064);_0x1e8841['enableCommand'](_0x35c064,_0x372ce2=>{_0x4e8931['model']['change'](_0xd2eae6=>{_0x372ce2();const _0x26c2f1='left'===_0x432ea3['order'],_0x4b55ae=_0x487f5b['getSelectionAffectedTableCells'](_0x4b4c9b),_0x382065=_0x487f5b['getColumnIndexes'](_0x4b55ae),_0x41d46a=_0x26c2f1?_0x382065['first']-0x1:_0x382065['last']+0x1,_0x2d8c0c=_0x4b55ae[0x0]['findAncestor']('table'),_0x30eaaa=_0x487f5b['createTableWalker'](_0x2d8c0c,{'startRow':0x0,'column':_0x41d46a,'includeAllSlots':!0x1}),_0x186ec=Array['from'](_0x30eaaa)['map'](_0x72fa96=>_0xd2eae6['createRangeOn'](_0x72fa96['cell']));_0x1e8841['markMultiRangeInsertion'](_0x186ec,'tableColumn');});});}for(const _0xc86324 of['removeTableRow','removeTableColumn']){const _0x4d21cf=_0xc86324['substr'](0xb),_0x36d62c=_0x4d21cf['toLowerCase'](),_0x310b36=_0x36d62c['substr'](0x0,0x3)+'span',_0x5dc6fb='table'+_0x4d21cf,_0x4dce7b='min'+_0x4d21cf,_0x55c751='max'+_0x4d21cf;_0x1e8841['enableCommand'](_0xc86324,()=>{_0x4e8931['model']['change'](_0x3cbdbb=>{const _0x43e430=_0x487f5b['getSelectionAffectedTableCells'](_0x4b4c9b),_0x370b84=_0x43e430[0x0]['findAncestor']('table');let _0x4cf402;if('removeTableRow'==_0xc86324){const _0x4a654d=_0x487f5b['getRowIndexes'](_0x43e430);_0x4cf402={'startRow':_0x4a654d['first'],'endRow':_0x4a654d['last'],'includeAllSlots':!0x0};}else{const _0x1e50b1=_0x487f5b['getColumnIndexes'](_0x43e430);_0x4cf402={'startColumn':_0x1e50b1['first'],'endColumn':_0x1e50b1['last'],'includeAllSlots':!0x0};}const _0x47940e=_0x487f5b['createTableWalker'](_0x370b84,_0x4cf402),_0x4db988=Array['from'](_0x47940e)['map'](({cell:_0x1606ff})=>_0x1606ff),_0x18b9cc=Ne(_0x4db988['filter'](_0x40e917=>_0x40e917['hasAttribute'](_0x310b36))),_0x56681a=Ne(_0x4db988['filter'](_0x12d180=>!_0x12d180['hasAttribute'](_0x310b36)))['map'](_0x2868db=>_0x3cbdbb['createRangeOn'](_0x2868db)),_0x3a2e17=_0x1e8841['markMultiRangeDeletion'](_0x56681a,_0x5dc6fb);if(_0x3a2e17&&('tableRow'==_0x3a2e17['subType']||'tableColumn'==_0x3a2e17['subType'])){const _0x4d4dc1=this['_getSuggestionCoords'](_0x3a2e17);for(const _0x49b4bc of _0x18b9cc){const _0x1da3a4=_0x3cbdbb['createRangeOn'](_0x49b4bc),_0x13b667=_0x487f5b['getCellLocation'](_0x49b4bc),_0x30f759=_0x49b4bc['getAttribute'](_0x310b36)-0x1,_0x39f464=_0x4d4dc1[_0x4dce7b],_0x163161=_0x4d4dc1[_0x55c751];_0x39f464<=_0x13b667[_0x36d62c]&&_0x13b667[_0x36d62c]+_0x30f759<=_0x163161&&_0x3a2e17['addRange'](_0x1da3a4);}}});});}function _0x3c1dbd(_0xc41511){const _0x1bcce3=Array['from'](_0x4b4c9b['getRanges']())['map'](_0x2ad775=>_0x49f219['fromRange'](_0x2ad775));_0x4e8931['model']['change'](_0x11f6d5=>{const _0x526abe=_0x11f6d5['batch'];_0xc41511=_0xc41511['filter'](_0x392697=>'$graveyard'!=_0x392697['root']['rootName']),_0x11f6d5['setSelection'](_0xc41511),_0x4e8931['commands']['get']('removeTableRow')['refresh'](),_0x4e8931['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4e8931['model']['enqueueChange'](()=>{_0x4e8931['model']['enqueueChange'](_0x526abe,_0x416c54=>{const _0x2234f9=_0x1bcce3['filter'](_0xb4716a=>'$graveyard'!=_0xb4716a['root']['rootName']);_0x2234f9['length']>0x0&&_0x416c54['setSelection'](_0x2234f9);for(const _0x16292d of _0x1bcce3)_0x16292d['detach']();});});});}function _0x120d67(_0x3f03e8){_0x4e8931['model']['change'](_0x1a18ca=>{const _0x3f669e=Array['from'](_0x4b4c9b['getRanges']())['map'](_0x1603cb=>_0x49f219['fromRange'](_0x1603cb)),_0x2a19c8=[];for(const _0x18787b of _0x3f03e8)for(const _0x30a025 of _0x18787b['getItems']({'shallow':!0x0}))_0x2a19c8['push'](_0x30a025);for(const _0x54f5c6 of _0x2a19c8)'$graveyard'!=_0x54f5c6['root']['rootName']&&(_0x1a18ca['setSelection'](_0x1a18ca['createPositionAt'](_0x54f5c6,0x0)),_0x4e8931['commands']['get']('removeTableColumn')['refresh'](),_0x4e8931['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xe2a2d4=_0x3f669e['filter'](_0x1291c8=>'$graveyard'!=_0x1291c8['root']['rootName']);_0xe2a2d4['length']>0x0&&_0x1a18ca['setSelection'](_0xe2a2d4);for(const _0x204bb2 of _0x3f669e)_0x204bb2['detach']();});}function _0xf856c4(_0xb281dd,_0xa7d95d){return _0xa7d95d['every'](_0x2180b0=>_0xb281dd['some'](_0x2d6a52=>_0x2d6a52['end']['isEqual'](_0x2180b0['start'])||_0x2180b0['end']['isEqual'](_0x2d6a52['start'])));}function _0xe59d2f(_0x1037e1,_0x12f525){return!_0x1037e1['some'](_0x468a74=>_0x12f525['some'](_0x57a4ed=>_0x468a74['isIntersecting'](_0x57a4ed)))&&_0x1037e1['some'](_0x19701b=>_0x12f525['some'](_0x218c59=>_0x19701b['end']['isTouching'](_0x218c59['start'])));}_0x4e8931['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xf5da05,_0x55361f,_0x26e9a4)=>{if(!_0x26e9a4['options']['showSuggestionHighlights'])return;const _0x124611=_0x55361f['item'];if(!_0x124611)return;const _0x1a3f77=_0x26e9a4['mapper']['toViewElement'](_0x124611);function _0x144970(_0x2d3a9f){return Array['isArray'](_0x2d3a9f)?_0x2d3a9f:[_0x2d3a9f];}_0x1a3f77&&'tableCell'===_0x124611['name']&&_0x21eca2(_0x1a3f77,_0x26e9a4['writer'],(_0xe43909,_0x5283ec,_0x40dfa1)=>_0x40dfa1['addClass'](_0x144970(_0x5283ec['classes']),_0xe43909),(_0x4fb563,_0x3b529c,_0x3c2531)=>_0x3c2531['removeClass'](_0x144970(_0x3b529c['classes']),_0x4fb563));},{'priority':'highest'}),_0x1e8841['descriptionFactory']['registerDescriptionCallback'](_0xf86935=>{if('insertion'!=_0xf86935['type']&&'deletion'!=_0xf86935['type'])return;const _0x89d315=_0xf86935['getContainedElement']();if(null!=_0x89d315&&_0x89d315['is']('element','table')){if('insertion'==_0xf86935['type']){const _0x4f8cee=_0xf86935['getItems']()['filter'](_0x2342b1=>_0x2342b1['is']('$textProxy'))['map'](_0x15e3c4=>_0x15e3c4['data']);if(_0x4f8cee['length'])return{'type':'insertion','content':o(_0x39b8dd,'*Insert:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4f8cee['join']('\x20')+'\x22'))};}if('deletion'==_0xf86935['type']){const _0x16881f=_0xf86935['getItems']()['filter'](_0x21f925=>_0x21f925['is']('$textProxy'))['map'](_0xa22ebb=>_0xa22ebb['data']);if(_0x16881f['length'])return{'type':'deletion','content':o(_0x39b8dd,'*Remove:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x16881f['join']('\x20')+'\x22'))};}}}),_0x1e8841['descriptionFactory']['registerDescriptionCallback'](_0x6dca67=>{if('tableRow'==_0x6dca67['subType']){const _0x22c24f=_0x6dca67['getItems']()['filter'](_0x306813=>_0x306813['is']('$textProxy'))['map'](_0x4e87e4=>_0x4e87e4['data']),_0x1c17fc=this['_getSuggestionCoords'](_0x6dca67),_0x33a493=_0x1c17fc['maxRow']-_0x1c17fc['minRow']+0x1;if('insertion'==_0x6dca67['type'])return _0x22c24f['length']?{'type':'insertion','content':o(_0x39b8dd,'*Insert:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x33a493,'\x22'+_0x22c24f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x39b8dd,'*Insert:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_ROW',_0x33a493))};if('deletion'==_0x6dca67['type'])return _0x22c24f['length']?{'type':'deletion','content':o(_0x39b8dd,'*Remove:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x33a493,'\x22'+_0x22c24f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x39b8dd,'*Remove:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_ROW',_0x33a493))};}if('tableColumn'==_0x6dca67['subType']){const _0x50ef85=_0x6dca67['getItems']()['filter'](_0x4ad759=>_0x4ad759['is']('$textProxy'))['map'](_0x32df62=>_0x32df62['data']),_0x203941=this['_getSuggestionCoords'](_0x6dca67),_0x20c722=_0x203941['maxColumn']-_0x203941['minColumn']+0x1;if('insertion'==_0x6dca67['type'])return _0x50ef85['length']?{'type':'insertion','content':o(_0x39b8dd,'*Insert:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20c722,'\x22'+_0x50ef85['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x39b8dd,'*Insert:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_COLUMN',_0x20c722))};if('deletion'==_0x6dca67['type'])return _0x50ef85['length']?{'type':'deletion','content':o(_0x39b8dd,'*Remove:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20c722,'\x22'+_0x50ef85['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x39b8dd,'*Remove:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_COLUMN',_0x20c722))};}}),_0x1e8841['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3c1dbd),_0x1e8841['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3c1dbd),_0x1e8841['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x120d67),_0x1e8841['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x120d67),_0x1e8841['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xf856c4),_0x1e8841['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xf856c4),_0x1e8841['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xe59d2f),_0x1e8841['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xe59d2f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3a324c=this['editor'],_0x43436c=_0x3a324c['model']['document']['selection'];return(_0x5d718b,_0xce3cdc)=>{_0x3a324c['model']['change'](_0x2a47f2=>{const {commandName:_0x18a428,commandParams:_0x4c99b7}=_0xce3cdc;let _0x2d2740=_0x5d718b[0x0]['end']['nodeBefore'];_0x4c99b7&&_0x4c99b7[0x0]&&!0x1===_0x4c99b7[0x0]['forceValue']&&(_0x2d2740=_0x5d718b[0x0]['start']['nodeAfter']);const _0x534225=_0x2a47f2['createRangeIn'](_0x2d2740);if('$graveyard'==_0x534225['root']['rootName'])return;const _0x4e33ee=Array['from'](_0x43436c['getRanges']())['map'](_0x33bdfa=>_0x49f219['fromRange'](_0x33bdfa));_0x2a47f2['setSelection'](_0x534225),_0x3a324c['commands']['get'](_0x18a428)['refresh'](),_0x4c99b7['push']({'forceDefaultExecution':!0x0}),_0x3a324c['execute'](_0x18a428,..._0x4c99b7);const _0x541f4a=_0x4e33ee['filter'](_0x3d3319=>'$graveyard'!=_0x3d3319['root']['rootName']);_0x541f4a['length']>0x0&&_0x2a47f2['setSelection'](_0x541f4a);for(const _0x3d61a5 of _0x4e33ee)_0x3d61a5['detach']();});};}['_getCoordsForCells'](_0xc9c604){const _0x384dc7=this['editor']['plugins']['get']('TableUtils');let _0x581f76=Number['MAX_SAFE_INTEGER'],_0x484842=Number['MIN_SAFE_INTEGER'],_0x29be93=Number['MAX_SAFE_INTEGER'],_0xcc0d4c=Number['MIN_SAFE_INTEGER'];for(const _0x5477e9 of _0xc9c604){if('$graveyard'==_0x5477e9['root']['rootName'])continue;const {row:_0x17632a,column:_0x31aea9}=_0x384dc7['getCellLocation'](_0x5477e9),_0x39520e=_0x5477e9['hasAttribute']('rowspan')?_0x5477e9['getAttribute']('rowspan')-0x1:0x0,_0x32d40b=_0x5477e9['hasAttribute']('colspan')?_0x5477e9['getAttribute']('colspan')-0x1:0x0;_0x581f76=_0x17632a<_0x581f76?_0x17632a:_0x581f76,_0x484842=_0x17632a+_0x39520e>_0x484842?_0x17632a+_0x39520e:_0x484842,_0x29be93=_0x31aea9<_0x29be93?_0x31aea9:_0x29be93,_0xcc0d4c=_0x31aea9+_0x32d40b>_0xcc0d4c?_0x31aea9+_0x32d40b:_0xcc0d4c;}return{'minRow':_0x581f76,'maxRow':_0x484842,'minColumn':_0x29be93,'maxColumn':_0xcc0d4c};}['_setupColumnsRowsFixing'](){const _0x5e9225=this['editor'],_0x2361d2=_0x5e9225['plugins']['get']('TrackChangesEditing'),_0xa1a322=_0x5e9225['plugins']['get']('TableUtils');_0x5e9225['model']['document']['on']('change:data',()=>{const _0x3f2f57=Array['from'](_0x5e9225['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x220cd8,data:_0x36bfca}of _0x3f2f57){const {group:_0x539ff7,id:_0x12c433,subType:_0x41c68b}=_0x2361d2['_splitMarkerName'](_0x220cd8);if('suggestion'!=_0x539ff7)continue;if(null!=_0x36bfca['oldRange'])continue;const _0x5979fd=_0x2361d2['getSuggestion'](_0x12c433);this['_tablePostFixingSubtypes']['includes'](_0x41c68b)&&this['_tableSuggestions']['add'](_0x5979fd);}},{'priority':'low'});const _0x45f942=(_0x31baea,_0x54b0c4)=>{let _0x3fcc92=!0x1;const _0x659a3f=_0x54b0c4['createRangeOn'](_0x31baea),_0x3954ba=_0x31baea['findAncestor']('table'),_0x315fa8=_0xa1a322['getCellLocation'](_0x31baea);for(const _0x3f9180 of this['_tableSuggestions']){const _0x2e390f=_0x3f9180['subType'],_0x107cc2=_0x2e390f['startsWith']('tablePaste'),_0x1d9fad=_0x2e390f['substr'](_0x107cc2?0xa:0x5),_0x29a05f=_0x1d9fad['toLowerCase'](),_0x3bc701=_0x29a05f['substr'](0x0,0x3)+'span',_0xfa8f48='min'+_0x1d9fad,_0x4c7b32='max'+_0x1d9fad;if(!_0x3f9180['isInContent'])continue;if(_0x3954ba!=_0x3f9180['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3f9180['isIntersectingWithRange'](_0x659a3f))continue;const _0x4834ec=_0x31baea['hasAttribute'](_0x3bc701)?_0x31baea['getAttribute'](_0x3bc701)-0x1:0x0,_0x186ba0=this['_getSuggestionCoords'](_0x3f9180),_0x249d91=_0x186ba0[_0xfa8f48],_0x255dc6=_0x186ba0[_0x4c7b32];_0x249d91<=_0x315fa8[_0x29a05f]&&_0x315fa8[_0x29a05f]+_0x4834ec<=_0x255dc6&&(_0x3f9180['addRange'](_0x659a3f),_0x3fcc92=!0x0);}return _0x3fcc92;};_0x5e9225['model']['document']['registerPostFixer'](_0x8ee18d=>{let _0x21e050=!0x1;for(const _0xc09f8b of _0x5e9225['model']['document']['differ']['getChanges']())if('insert'==_0xc09f8b['type']){if('tableRow'==_0xc09f8b['name']){for(const _0x589ecc of _0xc09f8b['position']['nodeAfter']['getChildren']())_0x21e050=_0x21e050||_0x45f942(_0x589ecc,_0x8ee18d);}else'tableCell'==_0xc09f8b['name']&&(_0x21e050=_0x21e050||_0x45f942(_0xc09f8b['position']['nodeAfter'],_0x8ee18d));}return _0x21e050;});}['_getSuggestionCoords'](_0x1758e9){return this['_getCoordsForCells'](_0x1758e9['getRanges']()['map'](_0x3d1453=>_0x3d1453['start']['nodeAfter']));}}function Ne(_0x1ca186){return Array['from'](new Set(_0x1ca186)['values']());}class Nt extends _0xe53f34{static get['requires'](){return[Ct];}['afterInit'](){const _0x3631fb=this['editor'],_0x36ebd2=_0x3631fb['model']['document']['selection'],_0x1c77f0=_0x3631fb['locale'];if(!_0x3631fb['plugins']['has']('TableEditing'))return;const _0xe33399=_0x3631fb['plugins']['get']('TrackChangesEditing'),_0x394830=_0x3631fb['plugins']['get']('TableUtils'),_0x56d6ce=_0x3631fb['plugins']['get'](Ct);_0x56d6ce['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xe33399['enableCommand']('mergeTableCells',()=>{const _0x4c144d=_0x394830['getSelectionAffectedTableCells'](_0x3631fb['model']['document']['selection']);_0x3631fb['model']['change'](()=>{_0xe33399['markMultiRangeBlockFormat'](_0x4c144d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3631fb['commands']['get']('mergeTableCells')['on']('execute',(_0x28fbda,_0x195cd4)=>{_0x3631fb['commands']['get']('trackChanges')['value']&&(_0x195cd4['length']>0x0&&_0x195cd4[_0x195cd4['length']-0x1]&&_0x195cd4[_0x195cd4['length']-0x1]['forceDefaultExecution']||_0xe33399['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x28fbda['stop']());},{'priority':'highest'});for(const _0x491c26 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xb61646=_0x3631fb['commands']['get'](_0x491c26);_0xe33399['enableCommand'](_0x491c26,()=>{const _0xa3ab15=_0x3631fb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x771c29=>_0x771c29['is']('element','tableCell')),_0x46748f=_0xb61646['value'];_0x3631fb['model']['change'](()=>{_0xe33399['markMultiRangeBlockFormat']([_0xa3ab15,_0x46748f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x36a4b6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x385a81=_0x3631fb['commands']['get'](_0x36a4b6);_0xe33399['enableCommand'](_0x36a4b6,()=>{const _0x73f588=_0x394830['getSelectionAffectedTableCells'](_0x3631fb['model']['document']['selection'])[0x0],_0x4e1d57=_0x73f588['findAncestor']('table'),{column:_0x31d71e,row:_0x2046c1}=_0x394830['getCellLocation'](_0x73f588);let _0x4fc9cb=[];if('horizontally'==_0x385a81['direction']){const _0x42b54e=_0x394830['createTableWalker'](_0x4e1d57,{'startRow':_0x2046c1,'endRow':_0x2046c1,'includeAllSlots':!0x0});_0x4fc9cb=Array['from'](_0x42b54e)['map'](_0x971124=>_0x971124['cell']);}else{const _0x146b05=_0x394830['createTableWalker'](_0x4e1d57,{'column':_0x31d71e,'includeAllSlots':!0x0});_0x4fc9cb=Array['from'](_0x146b05)['map'](_0x404460=>_0x404460['cell']);}_0x3631fb['model']['change'](_0x2b3051=>{_0xe33399['markBlockFormat'](_0x2b3051['createRangeOn'](_0x73f588),{'commandName':_0x36a4b6,'commandParams':[]},_0x4fc9cb,_0x36a4b6);});});}_0xe33399['descriptionFactory']['registerDescriptionCallback'](_0x36c198=>{if('formatBlock'!=_0x36c198['type']&&'formatInline'!=_0x36c198['type'])return;const {data:_0x4335f7}=_0x36c198;return _0x4335f7&&'mergeTableCells'==_0x4335f7['commandName']?{'type':'format','content':o(_0x1c77f0,'*Merge\x20cells*')}:void 0x0;}),_0xe33399['descriptionFactory']['registerDescriptionCallback'](_0x11b9ab=>{if('formatBlock'!=_0x11b9ab['type']&&'formatInline'!=_0x11b9ab['type'])return;const {data:_0x16106c}=_0x11b9ab;return _0x16106c?'splitTableCellVertically'==_0x16106c['commandName']?{'type':'format','content':o(_0x1c77f0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x16106c['commandName']?{'type':'format','content':o(_0x1c77f0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5ee41f=_0x56d6ce['_acceptFormatSuggestionCallbackFactory']();for(const _0x524757 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xe33399['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x524757,'accept',_0x5ee41f);for(const _0x5226bc of['splitTableCellVertically','splitTableCellHorizontally'])_0xe33399['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5226bc,'accept',_0x5ee41f);_0xe33399['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x261210=>{_0x3631fb['model']['change'](_0x348761=>{const _0x22ff7a=Array['from'](_0x36ebd2['getRanges']())['map'](_0x594777=>_0x49f219['fromRange'](_0x594777));_0x348761['setSelection'](_0x261210),_0x3631fb['commands']['get']('mergeTableCells')['refresh'](),_0x3631fb['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1b61cf=_0x22ff7a['filter'](_0x11f772=>'$graveyard'!=_0x11f772['root']['rootName']);_0x1b61cf['length']>0x0&&_0x348761['setSelection'](_0x1b61cf);for(const _0x35eee1 of _0x22ff7a)_0x35eee1['detach']();});});for(const _0x675c6c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x55371a=_0x3631fb['commands']['get'](_0x675c6c);_0x55371a['on']('set:isEnabled',(_0x4c4b9b,_0x3da972,_0x1a9bff)=>{if(_0x1a9bff){const _0x59f3e8=_0x3631fb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3b651f=>_0x3b651f['is']('element','tableCell'));this['_areMergableCells'](_0x55371a['value'],_0x59f3e8)||(_0x4c4b9b['return']=!0x1,_0x4c4b9b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xf7a533=this['editor']['commands']['get']('mergeTableCells'),_0x3e8d5f=this['editor']['plugins']['get']('TableUtils');if(!_0xf7a533['isEnabled'])return!0x1;const _0x41135a=_0x3e8d5f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x16111d of _0x41135a)for(const _0x131755 of _0x41135a)if(_0x16111d!=_0x131755&&!this['_areMergableCells'](_0x16111d,_0x131755))return!0x1;return!0x0;}['_areMergableCells'](_0x459396,_0x1e0761){const _0x119339=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12cacf=this['editor']['model']['createRangeOn'](_0x459396),_0x10b0bc=this['editor']['model']['createRangeOn'](_0x1e0761),_0xd0b319=new Set(),_0x103ffc=new Set();for(const _0x3276ec of _0x119339['getSuggestions']())if(('insertion'==_0x3276ec['type']||'deletion'==_0x3276ec['type']||'mergeTableCells'==_0x3276ec['subType'])&&_0x3276ec['isInContent']){for(const _0x2815f3 of _0x3276ec['getRanges']())_0x2815f3['containsRange'](_0x12cacf,!0x0)&&_0xd0b319['add'](_0x3276ec['type']+':'+_0x3276ec['author']['id']),_0x2815f3['containsRange'](_0x10b0bc,!0x0)&&_0x103ffc['add'](_0x3276ec['type']+':'+_0x3276ec['author']['id']);}if(_0xd0b319['size']!=_0x103ffc['size'])return!0x1;for(const _0x165a97 of _0xd0b319)if(!_0x103ffc['has'](_0x165a97))return!0x1;return!0x0;}}class Dt extends _0xe53f34{static get['requires'](){return[Ct];}['afterInit'](){const _0x2a31e8=this['editor'];if(!_0x2a31e8['plugins']['has']('TableEditing'))return;const _0x4367e1=_0x2a31e8['locale'],_0xdd6356=_0x2a31e8['plugins']['get']('TrackChangesEditing');_0xdd6356['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xdd6356['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xdd6356['registerBlockAttribute']('headingRows'),_0xdd6356['registerBlockAttribute']('headingColumns'),_0xdd6356['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4367e1,'FORMAT_HEADER_ROW')),_0xdd6356['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4367e1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x612f61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d150c=this['editor']['plugins']['get']('TableUtils'),_0x2f1a59=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x69bc5a({showActiveMarker:_0x5cc314=!0x0,setDataAttribute:_0xa1f9fb=!0x0}={}){return(_0x38bc53,_0x2f4367,_0x4a249c)=>{const {type:_0x4c77ef,id:_0x5556d2}=_0x612f61['_splitMarkerName'](_0x2f4367['markerName']),_0xf9ab72=_0x612f61['getSuggestion'](_0x5556d2),_0x1db6a6=_0xf9ab72['data'];if('formatBlock'!=_0xf9ab72['type']||!_0x1db6a6||'setTableColumnHeader'!=_0x1db6a6['commandName'])return;if(_0x2f4367['item'])return void _0x38bc53['stop']();if(!_0x4a249c['consumable']['consume'](_0x2f4367['markerRange'],_0x38bc53['name']))return;const _0x50ac9c=_0x2f4367['markerRange']['start']['nodeAfter'],_0x228ba1=_0x2f4367['markerRange']['end']['nodeBefore'],_0x3a218b=_0x50ac9c['parent']['parent'],{column:_0x4bb9eb}=_0x5d150c['getCellLocation'](_0x50ac9c),{column:_0x186431}=_0x5d150c['getCellLocation'](_0x228ba1);for(let _0x286762=_0x4bb9eb;_0x286762<=_0x186431;_0x286762++){const _0x4344cc=_0x5d150c['createTableWalker'](_0x3a218b,{'column':_0x286762,'includeAllSlots':!0x1});for(const _0x141ae1 of _0x4344cc){const _0x5e6754=_0x141ae1['cell'],_0x1663a3=_0x4a249c['mapper']['toViewElement'](_0x5e6754);_0x4a249c['writer']['addClass']('ck-suggestion-marker-'+_0x4c77ef,_0x1663a3),_0xa1f9fb&&_0x4a249c['writer']['setAttribute']('data-suggestion',_0x5556d2,_0x1663a3),_0x4a249c['mapper']['bindElementToMarker'](_0x1663a3,_0x2f4367['markerName']),_0x5cc314&&(_0x612f61['activeMarkers']['includes'](_0x2f4367['markerName'])?_0x4a249c['writer']['addClass']('ck-suggestion-marker--active',_0x1663a3):_0x4a249c['writer']['removeClass']('ck-suggestion-marker--active',_0x1663a3));}}};}_0x612f61['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2f1a59),_0x612f61['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2f1a59),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x69bc5a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a2e6e,_0x58936e,_0x299465)=>{_0x299465['options']['showSuggestionHighlights']&&_0x69bc5a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5a2e6e,_0x58936e,_0x299465);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x31acb7,_0xc9e000,_0x583577)=>{const {type:_0x1802bc,id:_0x2a4a32}=_0x612f61['_splitMarkerName'](_0xc9e000['markerName']),_0x10f006=_0x612f61['getSuggestion'](_0x2a4a32),_0x5ce788=_0x10f006['data'];if('formatBlock'!=_0x10f006['type']||!_0x5ce788||'setTableColumnHeader'!=_0x5ce788['commandName'])return;const _0x567e4c=_0x583577['mapper']['markerNameToElements'](_0xc9e000['markerName']);if(_0x567e4c){for(const _0x37c0ac of _0x567e4c)_0x583577['writer']['removeClass']('ck-suggestion-marker-'+_0x1802bc,_0x37c0ac),_0x583577['writer']['removeClass']('ck-suggestion-marker--active',_0x37c0ac),_0x583577['writer']['removeAttribute']('data-suggestion',_0x37c0ac),_0x583577['mapper']['unbindElementFromMarkerName'](_0x37c0ac,_0xc9e000['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x369a18=this['editor'],_0x2b2bfb=_0x369a18['locale'];function _0x3ffe53(_0x5c5d89){return{'type':'format','content':o(_0x2b2bfb,'*Format:*\x20%0',_0x5c5d89)};}_0x369a18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d50fe=>{if('formatBlock'!=_0x1d50fe['type'])return;const {data:_0x411909}=_0x1d50fe;if(_0x411909){if('setTableRowHeader'==_0x411909['commandName']){const _0x3de207=_0x411909['commandParams'][0x0]['forceValue'];return _0x3ffe53(o(_0x2b2bfb,_0x3de207?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x411909['commandName']){const _0xa70397=_0x411909['commandParams'][0x0]['forceValue'];return _0x3ffe53(o(_0x2b2bfb,_0xa70397?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x8a0b4=>[_0x8a0b4,null]));class Mt extends _0xe53f34{static get['requires'](){return[Ct];}['afterInit'](){const _0x5f577e=this['editor'];if(!_0x5f577e['plugins']['has']('TableClipboard'))return;const _0x4bd5ab=_0x5f577e['plugins']['get']('TrackChangesEditing'),_0x1f91f5=_0x5f577e['plugins']['get']('TableUtils'),_0x3aa94b=_0x5f577e['plugins']['get'](Ct),_0x296206=_0x5f577e['plugins']['get']('TableClipboard');_0x3aa94b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5f577e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5f577e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x26fb5a=null;_0x5f577e['model']['on']('insertContent',(_0x429321,_0x5027ba)=>{const [_0x156bd0,_0x25401d]=_0x5027ba,_0x29811c=_0x5027ba[_0x5027ba['length']-0x1];_0x29811c&&_0x29811c['forceDefaultExecution']||_0x4bd5ab['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x21ed16,_0x315af6,_0x24a745,_0x1f9a41,_0x5edc8f){if(_0x315af6&&!_0x315af6['is']('documentSelection'))return!0x1;const _0x94aaad=_0x5edc8f['getTableIfOnlyTableInContent'](_0x21ed16,_0x24a745);if(!_0x94aaad||!Ue(_0x94aaad,void 0x0,_0x1f9a41))return!0x1;const _0x17c113=_0x1f9a41['getSelectionAffectedTableCells'](_0x24a745['document']['selection']);if(!_0x17c113['length'])return!0x1;const _0x50c212=_0x17c113[0x0]['findAncestor']('table'),_0x176602=_0x1f9a41['getRowIndexes'](_0x17c113),_0x2e35ea=_0x1f9a41['getColumnIndexes'](_0x17c113),_0x3b9eaa={'startRow':_0x176602['first'],'endRow':_0x176602['last'],'startColumn':_0x2e35ea['first'],'endColumn':_0x2e35ea['last']};return 0x1==_0x17c113['length']&&(_0x3b9eaa['endRow']+=_0x1f9a41['getRows'](_0x94aaad)-0x1,_0x3b9eaa['endColumn']+=_0x1f9a41['getColumns'](_0x94aaad)-0x1),Ue(_0x50c212,_0x3b9eaa,_0x1f9a41);}(_0x156bd0,_0x25401d,_0x5f577e['model'],_0x1f91f5,_0x296206)&&(_0x429321['stop'](),_0x26fb5a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5f577e['model']['change'](()=>{_0x5f577e['model']['insertContent'](_0x5027ba[0x0],_0x5027ba[0x1],_0x5027ba[0x2],{'forceDefaultExecution':!0x0});const _0xd2c52a=_0x2a43ef(),{rowInsertionRanges:_0x4b216b,columnInsertionRanges:_0x59b1d3,insertionRanges:_0x4242f7,deletionRanges:_0x28b2ad,cells:_0x94c5dc}=_0x26fb5a;_0x4b216b['length']&&_0x4bd5ab['markMultiRangeInsertion'](_0x4b216b,'tablePasteRow',{'tablePasteChainId':_0xd2c52a}),_0x59b1d3['length']&&_0x4bd5ab['markMultiRangeInsertion'](_0x59b1d3,'tablePasteColumn',{'tablePasteChainId':_0xd2c52a}),_0x4242f7['length']&&(_0x4bd5ab['markMultiRangeInsertion'](_0x4242f7,'tablePaste',{'tablePasteChainId':_0xd2c52a,'skipNestingCheck':!0x0}),_0x4242f7['forEach'](_0x71eb65=>_0x71eb65['detach']?.())),_0x28b2ad['length']&&(_0x4bd5ab['markMultiRangeDeletion'](_0x28b2ad,'tablePaste',{'tablePasteChainId':_0xd2c52a,'skipNestingCheck':!0x0}),_0x28b2ad['forEach'](_0x49b0c3=>_0x49b0c3['detach']?.()));const _0x422a1d=_0x4bd5ab['markMultiRangeBlockFormat'](_0x94c5dc['map'](({element:_0x3e8baf})=>_0x3e8baf),{'formatGroupId':_0x2a43ef()},[],'tablePasteCell',{'tablePasteChainId':_0xd2c52a});if(_0x422a1d){const _0x4fb69a=_0x422a1d['getMarkers'](),_0x3a9893=[];for(const {element:_0x3810b8,attributes:_0x3aecee}of _0x94c5dc){if(!_0x3aecee)continue;const _0x389cb9=_0x5f577e['model']['createRangeOn'](_0x3810b8),_0x136f82=_0x4fb69a['find'](_0xc73f1b=>_0xc73f1b['getRange']()['isEqual'](_0x389cb9));_0x136f82&&_0x3a9893['push']([_0x136f82['name'],_0x3aecee]);}_0x3a9893['length']&&_0x422a1d['setAttribute']('markerAttributes',Object['fromEntries'](_0x3a9893));}_0x26fb5a=null;}));},{'priority':_0x482ebf['high']+0xa}),_0x5f577e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2649b4,_0x5d54be)=>{const [_0x578a2f,_0x1c27b0,,_0x3b92e6]=_0x5d54be;if(!_0x26fb5a)return;_0x2649b4['stop']();const _0x3aeb7b=_0x578a2f['cell'],_0x1d3d82=_0x1c27b0,_0x4ddac0=Oe(_0x3aeb7b),_0x5a3d78=Oe(_0x1d3d82);_0x2649b4['return']=_0x3aeb7b;let _0x81c954=null,_0x239550=null;if(_0x5a3d78||_0x4ddac0){if(_0x4ddac0&&!_0x5a3d78){_0x3b92e6['remove'](_0x3aeb7b['getChild'](0x0));for(const _0x2db734 of Array['from'](_0x1d3d82['getChildren']()))_0x3b92e6['insert'](_0x2db734,_0x3aeb7b,'end');const _0x2d5c89=_0x26fb5a['rowInsertionIndexes']['includes'](_0x578a2f['row']),_0x3e9a69=_0x26fb5a['columnInsertionIndexes']['includes'](_0x578a2f['column']);_0x2d5c89||_0x3e9a69||(_0x81c954=_0x49f219['fromRange'](_0x3b92e6['createRangeIn'](_0x3aeb7b)));}else _0x5a3d78&&!_0x4ddac0&&(_0x239550=_0x3b92e6['createRangeIn'](_0x3aeb7b));}else{const _0x239311=_0x3b92e6['createElement']('tableCellSuggestion'),_0x3abd3a=_0x3b92e6['createElement']('tableCellSuggestion');_0x3b92e6['wrap'](_0x3b92e6['createRangeIn'](_0x3aeb7b),_0x3abd3a),_0x3b92e6['insert'](_0x239311,_0x3aeb7b,0x0);for(const _0x1d5754 of Array['from'](_0x1d3d82['getChildren']()))_0x3b92e6['insert'](_0x1d5754,_0x239311,'end');_0x81c954=_0x49f219['fromRange'](_0x3b92e6['createRangeOn'](_0x239311)),_0x239550=_0x49f219['fromRange'](_0x3b92e6['createRangeOn'](_0x3abd3a));}const _0x4a40c6=Array['from'](_0x1d3d82['getAttributes']())['filter'](([_0x206312])=>Be['includes'](_0x206312));_0x26fb5a['cells']['push']({'element':_0x3aeb7b,'attributes':_0x4a40c6['length']?Object['fromEntries'](_0x4a40c6):null}),_0x81c954&&_0x26fb5a['insertionRanges']['push'](_0x81c954),_0x239550&&_0x26fb5a['deletionRanges']['push'](_0x239550);},{'priority':'high'}),_0x1f91f5['on']('insertColumns',(_0x1674b6,_0x1694ab)=>{const [_0x4a7f82,_0x24fd0a={}]=_0x1694ab;if(!_0x26fb5a)return;const _0x154784=_0x24fd0a['at']||0x0,_0x37bd70=_0x24fd0a['columns']||0x1;_0x26fb5a['columnInsertionIndexes']=new Array(_0x37bd70)['fill'](_0x154784)['map']((_0x376fb5,_0x3c8a01)=>_0x376fb5+_0x3c8a01);for(const {cell:_0xc8ba40}of _0x1f91f5['createTableWalker'](_0x4a7f82,{'startColumn':_0x154784,'endColumn':_0x154784+_0x37bd70-0x1}))_0x26fb5a['columnInsertionRanges']['push'](_0x5f577e['model']['createRangeOn'](_0xc8ba40));},{'priority':'low'}),_0x1f91f5['on']('insertRows',(_0x162122,_0x137e8a)=>{const [_0x20695d,_0x55305a={}]=_0x137e8a;if(!_0x26fb5a)return;const _0x57439f=_0x55305a['at']||0x0,_0x424b2c=_0x55305a['rows']||0x1;_0x26fb5a['rowInsertionIndexes']=new Array(_0x424b2c)['fill'](_0x57439f)['map']((_0x7425c0,_0x5488d9)=>_0x7425c0+_0x5488d9);for(const {cell:_0x3d3d01}of _0x1f91f5['createTableWalker'](_0x20695d,{'startRow':_0x57439f,'endRow':_0x57439f+_0x424b2c-0x1}))_0x26fb5a['rowInsertionRanges']['push'](_0x5f577e['model']['createRangeOn'](_0x3d3d01));},{'priority':'low'}),_0x4bd5ab['descriptionFactory']['registerDescriptionCallback'](_0x3c43ec=>{if(_0x3c43ec['subType']&&_0x3c43ec['subType']['startsWith']('tablePaste'))return _0x3c43ec['previous']?{}:{'type':'insertion','content':o(_0x5f577e['locale'],'*Replace\x20table\x20cells*')};});const _0x16a016=()=>!0x1;for(const _0x2f8772 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4bd5ab['_suggestionFactory']['registerCustomCallback']('insertion',_0x2f8772,'join',_0x16a016),_0x4bd5ab['_suggestionFactory']['registerCustomCallback']('deletion',_0x2f8772,'join',_0x16a016),_0x4bd5ab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2f8772,'join',_0x16a016);_0x4bd5ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x16a016),_0x4bd5ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x56d3ec,_0x1e8345,_0x4089eb)=>{const _0x4cc58d=_0x56d3ec['map'](_0x3a03d9=>_0x3a03d9['getContainedElement']())['filter'](_0x3d01dc=>_0x3d01dc),_0x5539d0=new Map(_0x4cc58d['map'](_0x3ad4a6=>[_0x3ad4a6,null]));if(_0x26fb5a){for(const {element:_0x2158dc,attributes:_0x44a660}of _0x26fb5a['cells'])_0x44a660&&_0x5539d0['set'](_0x2158dc,_0x44a660);}else{if(_0x4089eb&&_0x4089eb['markerAttributes'])for(const [_0x138352,_0x294511]of Object['entries'](_0x4089eb['markerAttributes'])){const _0x2ad95a=_0x5f577e['model']['markers']['get'](_0x138352),_0xdcfbc=_0x2ad95a?_0x2ad95a['getRange']()['getContainedElement']():null;_0xdcfbc&&_0x5539d0['set'](_0xdcfbc,_0x294511);}}_0x5f577e['model']['change'](_0x1b36f3=>{for(const [_0x47c179,_0x310120]of _0x5539d0)_0x1b36f3['setAttributes']({...xe,..._0x310120},_0x47c179);});});const _0xa7578f=(_0x2716e4,_0x57e0e9)=>{_0x4bd5ab['_suggestionFactory']['registerCustomCallback'](_0x2716e4,'tablePaste',_0x57e0e9,(_0x239ff3,_0x5844f9,_0x10c0b8)=>{_0x5f577e['model']['change'](_0x53dcbb=>{const _0x1187d1=[];for(const _0x3dfbfd of _0x239ff3){const _0x42a370=_0x3dfbfd['start']['nodeAfter'];_0x42a370['is']('element','tableCellSuggestion')&&_0x1187d1['push'](_0x42a370);}_0x4bd5ab['_suggestionFactory']['getSuggestionCallback'](_0x2716e4,null,_0x57e0e9)(_0x239ff3,_0x5844f9,_0x10c0b8);for(const _0x48bebb of _0x1187d1)'$graveyard'!=_0x48bebb['root']['rootName']&&_0x53dcbb['unwrap'](_0x48bebb);});});};_0xa7578f('insertion','accept'),_0xa7578f('insertion','discard'),_0xa7578f('deletion','accept'),_0xa7578f('deletion','discard'),_0x4bd5ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x9edf16=>{const _0x16a67f=_0x9edf16['map'](_0x215136=>_0x215136['getContainedElement']()),_0x3c7c23=_0x16a67f[0x0]['findAncestor']('table'),{minRow:_0x9462c3,maxRow:_0x7308aa}=_0x3aa94b['_getCoordsForCells'](_0x16a67f);_0x1f91f5['removeRows'](_0x3c7c23,{'at':_0x9462c3,'rows':_0x7308aa-_0x9462c3+0x1});}),_0x4bd5ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x222a9c=>{const _0x2cc4eb=_0x222a9c['map'](_0x18cfa3=>_0x18cfa3['getContainedElement']()),_0x4674b2=_0x2cc4eb[0x0]['findAncestor']('table'),{minColumn:_0x3515be,maxColumn:_0x333ac9}=_0x3aa94b['_getCoordsForCells'](_0x2cc4eb);_0x1f91f5['removeColumns'](_0x4674b2,{'at':_0x3515be,'columns':_0x333ac9-_0x3515be+0x1});});const _0x2e126c=(_0x1b12fb,_0x529638)=>{if(!_0x529638['subType']||!_0x529638['subType']['startsWith']('tablePaste'))return;const _0x284450=_0x529638['attributes']['tablePasteChainId'],_0x3723e5=_0x4bd5ab['getSuggestions']()['filter'](_0x31859c=>_0x31859c['isInContent']&&_0x31859c['attributes']&&_0x31859c['attributes']['tablePasteChainId']==_0x284450);_0x3723e5['length']&&_0x529638['getAllAdjacentSuggestions']()['length']!=_0x3723e5['length']&&_0x3723e5['reduce']((_0x21edec,_0x43bac0)=>(_0x21edec['next']=_0x43bac0,_0x43bac0['previous']=_0x21edec,_0x43bac0));};function _0x420dc3(_0x199d97,_0x16862f=!0x0){const {id:_0x50bf65,authorId:_0x51295d}=_0x4bd5ab['_splitMarkerName'](_0x199d97['markerName']),_0x1c6551=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1e592d=_0x4bd5ab['activeMarkers']['includes'](_0x199d97['markerName']);return _0x1e592d&&_0x1c6551['push']('ck-suggestion-marker--active'),{'classes':_0x1c6551,'attributes':{'data-suggestion':_0x50bf65,'data-author-id':_0x51295d},'priority':_0x1e592d&&_0x16862f?0xbc2:0xbb8};}_0x4bd5ab['on']('suggestionLoaded',_0x2e126c,{'priority':'high'}),_0x4bd5ab['on']('suggestionUnloaded',_0x2e126c,{'priority':'high'}),_0x5f577e['model']['document']['registerPostFixer'](()=>{let _0x1bdc1c=!0x1;const _0x462d44=Array['from'](_0x5f577e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x568cfc,data:_0x2a7fbf}of _0x462d44){const {group:_0x40479a,type:_0x5a1e03,id:_0x210db9}=_0x4bd5ab['_splitMarkerName'](_0x568cfc);if('suggestion'!=_0x40479a||'deletion'!=_0x5a1e03||_0x2a7fbf['oldRange'])continue;if(!_0x4bd5ab['hasSuggestion'](_0x210db9))continue;const _0x87058c=_0x4bd5ab['getSuggestion'](_0x210db9)['getRanges'](),_0x4c5e69=_0x5f577e['plugins']['get']('Users')['me'];for(const _0x4a535b of _0x4bd5ab['getSuggestions']()){if(!_0x4a535b['isInContent']||_0x4a535b['author']!=_0x4c5e69)continue;if('formatBlock'!=_0x4a535b['type']||'tablePasteCell'!=_0x4a535b['subType'])continue;if(_0x4a535b['getRanges']()['every'](_0x2b7d4e=>_0x87058c['some'](_0x44cf31=>_0x44cf31['containsRange'](_0x2b7d4e,!0x0)))){for(const _0x3fddab of _0x4a535b['getAllAdjacentSuggestions']())_0x3fddab['isInContent']&&(_0x3fddab['discard'](),_0x1bdc1c=!0x0);}}}return _0x1bdc1c;}),_0x5f577e['model']['document']['registerPostFixer'](_0xcf02dd=>{const _0x3fd3da=_0x5f577e['commands']['get']('redo');if(!_0x3fd3da||!_0x3fd3da['_createdBatches']['has'](_0xcf02dd['batch']))return!0x1;let _0x1514c7=!0x1;const _0x190d00=_0x5f577e['plugins']['get']('Users')['me'],_0x1994fb=_0x5f577e['model']['document']['differ']['getChanges'](),_0x5027b9=Array['from'](_0x5f577e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4674b8,data:_0x1261ee})=>{const {group:_0x5bcdbd,subType:_0x203fec,authorId:_0x19e38d}=_0x4bd5ab['_splitMarkerName'](_0x4674b8);return'suggestion'==_0x5bcdbd&&'tablePaste'==_0x203fec&&_0x19e38d==_0x190d00['id']&&!_0x1261ee['oldRange'];});for(const _0x14f8dd of _0x1994fb){if('insert'!=_0x14f8dd['type']||'tableCellSuggestion'!=_0x14f8dd['name']||0x1!=_0x14f8dd['length'])continue;const _0x5389f1=_0xcf02dd['createRange'](_0x14f8dd['position'],_0x14f8dd['position']['getShiftedBy'](0x1));if(!_0x5027b9['find'](({data:_0x3d1996})=>_0x3d1996['newRange']['isEqual'](_0x5389f1))){for(const {name:_0x21f14e,data:_0x58aa55}of _0x5027b9)if(_0x5389f1['containsRange'](_0x58aa55['newRange'])){_0xcf02dd['updateMarker'](_0x21f14e,{'range':_0x5389f1}),_0x1514c7=!0x0;break;}}}return _0x1514c7;}),_0x5f577e['model']['document']['registerPostFixer'](_0x39c6e1=>{let _0x266c7a=!0x1;const _0x5ec26d=_0x5f577e['plugins']['get']('Users')['me'],_0x4133cf=_0x4bd5ab['getSuggestions']()['filter'](_0x745d39=>_0x745d39['isInContent']&&_0x745d39['author']==_0x5ec26d),_0x480301=new Set(),_0x5771e1=new Set();for(const _0x2a01dc of _0x4133cf)if('tablePaste'==_0x2a01dc['subType'])for(const _0x2f0f2a of _0x2a01dc['getMarkers']()){const _0x1a8c2a=_0x2f0f2a['getRange']()['getContainedElement']();if(_0x1a8c2a){if(_0x1a8c2a['is']('element','tableCellSuggestion')&&Oe(_0x1a8c2a)){_0x2a01dc['removeMarker'](_0x2f0f2a['name']),_0x480301['add'](_0x1a8c2a),_0x266c7a=!0x0;const _0x4bfd5d=_0x1a8c2a['nextSibling'],_0x205f40=_0x1a8c2a['previousSibling'],_0x2112ab=_0x4bfd5d&&_0x4bfd5d['is']('element','tableCellSuggestion'),_0x169ba8=_0x205f40&&_0x205f40['is']('element','tableCellSuggestion');_0x2112ab&&!_0x480301['has'](_0x4bfd5d)&&_0x5771e1['add'](_0x4bfd5d),_0x169ba8&&!_0x480301['has'](_0x205f40)&&_0x5771e1['add'](_0x205f40);}else _0x1a8c2a['is']('element','paragraph')&&_0x1a8c2a['isEmpty']&&(_0x2a01dc['removeMarker'](_0x2f0f2a['name']),_0x266c7a=!0x0);}}else{if('tablePasteCell'==_0x2a01dc['subType']){if(!_0x2a01dc['attributes']||!_0x2a01dc['attributes']['tablePasteChainId'])continue;const _0x52049a=_0x2a01dc['attributes']['markerAttributes'];if(_0x52049a&&Object['keys'](_0x52049a)['length'])continue;const _0x562e5b=_0x2a01dc['attributes']['tablePasteChainId'];let _0x319af2=!0x0,_0x314c85=!0x0;for(const _0x5e894f of _0x4133cf)if(_0x5e894f['subType']&&_0x5e894f['subType']['startsWith']('tablePaste')){if(!_0x5e894f['attributes']['tablePasteChainId']){_0x314c85=!0x1;break;}if(_0x5e894f['id']!=_0x2a01dc['id']&&_0x5e894f['attributes']['tablePasteChainId']==_0x562e5b){_0x319af2=!0x1;break;}}_0x314c85&&_0x319af2&&(_0x2a01dc['removeMarkers'](),_0x266c7a=!0x0);}}for(const _0x120301 of _0x480301)_0x39c6e1['remove'](_0x120301);for(const _0x48a654 of _0x5771e1)_0x39c6e1['unwrap'](_0x48a654);return _0x266c7a;}),_0x5f577e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x403c15=>_0x420dc3(_0x403c15),'converterPriority':'high'}),_0x5f577e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1a0138,_0x4ed1b4)=>_0x4ed1b4['options']['showSuggestionHighlights']?_0x420dc3(_0x1a0138,!0x1):null,'converterPriority':'high'});const _0x1b761e=_0x5f577e['editing']['view'];this['listenTo'](_0x1b761e['document'],'clipboardOutput',(_0x2518d0,_0x5e3677)=>{const _0x26e5c1=[];for(const _0x51c858 of _0x1b761e['createRangeIn'](_0x5e3677['content'])['getItems']())_0x51c858['is']('element','suggestion-td')&&_0x26e5c1['push'](_0x51c858);_0x1b761e['change'](_0x4cb536=>{for(const _0x5e3966 of _0x26e5c1)_0x4cb536['move'](_0x4cb536['createRangeIn'](_0x5e3966),_0x4cb536['createPositionBefore'](_0x5e3966)),_0x4cb536['remove'](_0x5e3966);});});}}function Oe(_0x1f375c){if(_0x1f375c['isEmpty'])return!0x0;const _0x5e4bb4=_0x1f375c['getChild'](0x0);return _0x5e4bb4['is']('element','paragraph')&&_0x5e4bb4['isEmpty'];}function Ue(_0x1cc818,_0x5eaa69={},_0x3d8aaa){for(const {isAnchor:_0x51d5cd,cellHeight:_0x5b5cb4,cellWidth:_0xa361d3}of _0x3d8aaa['createTableWalker'](_0x1cc818,{'includeAllSlots':!0x0,..._0x5eaa69}))if(!_0x51d5cd||0x1!=_0x5b5cb4||0x1!=_0xa361d3)return!0x1;return!0x0;}class $t extends _0xe53f34{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x32f70c=this['editor']['plugins']['get']('TrackChangesEditing');_0x32f70c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x32f70c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x32f70c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32f70c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x32f70c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x32f70c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x63673c,_0x11629d){const _0x35e30e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26a59a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x37ded7=_0x11629d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x308e33=_0x26a59a['getColumnGroupElement'](_0x37ded7);let _0x12103c=_0x308e33?_0x26a59a['getTableColumnsWidths'](_0x308e33):null,_0x17767f=_0x37ded7['getAttribute']('tableWidth')||null;const _0x1e63f3=_0x11629d['tableWidth']||_0x17767f,_0x4ef93c=_0x11629d['columnWidths']||_0x12103c,_0x2be64b=this['editor']['plugins']['get']('Users')['me'];for(const _0x5c61e6 of _0x35e30e['getSuggestions']()){const _0x544147=_0x5c61e6['getContainedElement']();if('resizeTable'===_0x5c61e6['subType']&&_0x544147===_0x37ded7){_0x5c61e6['author']!==_0x2be64b&&_0x5c61e6['discard']();const _0x48bc1e=_0x5c61e6['data']['commandParams'];_0x17767f=_0x48bc1e[0x0]['tableWidth'],_0x12103c=_0x48bc1e[0x0]['columnWidths'];break;}}_0x63673c({'table':_0x37ded7,'tableWidth':_0x1e63f3,'columnWidths':_0x4ef93c}),_0x35e30e['markBlockFormat'](_0x37ded7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x17767f,'columnWidths':_0x12103c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xf4e2e2){if('formatBlock'!=_0xf4e2e2['type']&&'formatInline'!=_0xf4e2e2['type'])return;const {data:_0x1dcdf6}=_0xf4e2e2;if(_0x1dcdf6&&'resizeTable'===_0x1dcdf6['formatGroupId']){const _0x21b428='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x21b428)};}}}class Bt extends _0xe53f34{['afterInit'](){const _0x44ba3f=this['editor'];_0x44ba3f['plugins']['has']('Template')&&_0x44ba3f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0xe53f34{['afterInit'](){const _0x1bcf3b=this['editor'];if(!_0x1bcf3b['commands']['get']('insertTableOfContents'))return;_0x1bcf3b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x476b96=_0x1bcf3b['plugins']['get']('TrackChangesEditing'),_0x2a492a=_0x1bcf3b['locale'];_0x476b96['descriptionFactory']['registerElementLabel']('tableOfContents',_0x56d19e=>o(_0x2a492a,'ELEMENT_TABLE_OF_CONTENTS',_0x56d19e));}}class Rt extends _0xe53f34{['afterInit'](){const _0x4a9935=this['editor'];if(!_0x4a9935['plugins']['has']('Title'))return;const _0x1c4f53=_0x4a9935['plugins']['get']('TrackChangesEditing');_0x1c4f53['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4a9935['locale'],'ELEMENT_TITLE')),_0x4a9935['model']['document']['registerPostFixer'](_0xdac99=>{let _0x22abe6=!0x1;const _0x227e1a=Array['from'](_0x4a9935['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a88e1,data:_0x39f958}of _0x227e1a){const {group:_0x2e1510}=_0x1c4f53['_splitMarkerName'](_0x5a88e1);if('suggestion'!==_0x2e1510||!_0x39f958['newRange'])continue;const _0x19a097=_0x39f958['newRange'],_0x94410a=_0x19a097['end']['nodeBefore'];if(!_0x94410a||!_0x94410a['is']('element','title-content'))continue;if(!_0x19a097['start']['isTouching'](_0x19a097['end']))continue;const _0x91ebc=_0x4a9935['model']['schema']['getNearestSelectionRange'](_0x19a097['end'],'forward');if(_0x91ebc&&_0x91ebc['isCollapsed']){const _0x222e10=_0xdac99['createRange'](_0x19a097['start'],_0x91ebc['start']);_0x222e10['isEqual'](_0x19a097)||(_0xdac99['updateMarker'](_0x5a88e1,{'range':_0x222e10}),_0x22abe6=!0x0);}_0x22abe6||(_0xdac99['removeMarker'](_0x5a88e1),_0x22abe6=!0x0);}return _0x22abe6;});}}class Tt extends _0xe53f34{['afterInit'](){const _0x32df1a=this['editor'],_0x2b0768=_0x32df1a['plugins']['get']('TrackChangesEditing');_0x32df1a['plugins']['has']('Uploadcare')&&(_0x2b0768['enableCommand']('uploadcare'),_0x32df1a['plugins']['has']('UploadcareImageEdit')&&(_0x2b0768['enableCommand']('uploadcareImageEdit'),_0x2b0768['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2b0768['registerBlockAttribute']('uploadcareImageId'),_0x2b0768['descriptionFactory']['registerDescriptionCallback'](_0xb76a76=>{if('attribute'!=_0xb76a76['type'])return;const {data:_0x46c866}=_0xb76a76;return _0x46c866&&'uploadcareImageId'==_0x46c866['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xe53f34{['afterInit'](){const _0x4af5be=this['editor'],_0x2d7e36=_0x4af5be['plugins']['get']('TrackChangesEditing');_0x4af5be['plugins']['has']('UndoEditing')&&(_0x2d7e36['enableCommand']('undo'),_0x2d7e36['enableCommand']('redo'));}}class Et extends _0xe53f34{static get['requires'](){return[Ct];}['afterInit'](){const _0x30e423=this['editor'];if(!_0x30e423['plugins']['has']('TableCaptionEditing'))return;_0x30e423['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0xe53f34{['tableProperties'];['tableCellProperties'];constructor(_0x3bcab3){super(_0x3bcab3),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 _0x4b402f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x406f71 of this['tableProperties'])_0x4b402f['enableCommand'](_0x406f71,(_0xa5ca73,_0x119522)=>{const _0x5dd3d9=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x406f71,[_0x5dd3d9],this['tableProperties'],'tableProperties',_0xa5ca73,_0x119522);});_0x4b402f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4b402f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b402f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x53c127,_0x1bd63f)=>this['handleDiscardAction'](this['tableProperties'],_0x53c127,_0x1bd63f)),_0x4b402f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1b0a0f of this['tableCellProperties'])_0x4b402f['enableCommand'](_0x1b0a0f,(_0x124674,_0x360072)=>{const _0x11a3fc=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1b0a0f,_0x11a3fc,this['tableCellProperties'],'tableCellProperties',_0x124674,_0x360072);});_0x4b402f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4b402f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b402f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x7287a3,_0x5c966a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x7287a3,_0x5c966a)),_0x4b402f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4b402f['descriptionFactory']['registerDescriptionCallback'](_0x354336=>this['handleSuggestionDescription'](_0x354336));}['_handlePropertyChange'](_0x3b45e6,_0x289dfe,_0x353016,_0x491702,_0xd1da7b,_0x5ae717){const _0x22044e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5ae717['batch'],()=>{for(const _0x1c5c83 of _0x289dfe){if(this['_getSuggestion'](_0x1c5c83,_0x491702))_0xd1da7b(_0x5ae717);else{const _0x16fe28={};for(const _0x58c76d of _0x353016){const _0x470a59=_0x1c5c83['getAttribute'](_0x58c76d);void 0x0!==_0x470a59&&(_0x16fe28[_0x58c76d]=_0x470a59);}_0xd1da7b(_0x5ae717),_0x22044e['markBlockFormat'](_0x1c5c83,{'commandParams':[_0x16fe28]},[],_0x491702);}}});}['handleDiscardAction'](_0x292c51,_0x522123,_0xc2c02f){const _0x4e6273=_0x522123[0x0]['start']['nodeAfter'],_0x584ec7=_0xc2c02f['commandParams'][0x0];this['editor']['model']['change'](_0x1abb2b=>{for(const _0x30ec8a of _0x292c51)void 0x0!==_0x584ec7[_0x30ec8a]?_0x1abb2b['setAttribute'](_0x30ec8a,_0x584ec7[_0x30ec8a],_0x4e6273):_0x1abb2b['removeAttribute'](_0x30ec8a,_0x4e6273);});}['handleSuggestionDescription'](_0x48d3ee){if(_0x48d3ee['data'])switch(_0x48d3ee['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'](_0x3a58dc,_0x3f066e){const _0x4e0693=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1e1158 of _0x4e0693['getSuggestions']({'skipNotAttached':!0x0})){const _0x4deaa0=_0x1e1158['getContainedElement']();if(_0x1e1158['subType']===_0x3f066e&&_0x4deaa0===_0x3a58dc)return _0x1e1158;}return null;}}const m='$elementName';class p extends _0xe53f34{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4d2373,_0xc459f1,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x363b47){super(_0x363b47),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x50cc41,_0x88eb03,_0xee6335,_0x1ee8db)=>{this['_model']['change'](()=>{for(const _0x1537b1 of[..._0x1ee8db,..._0xee6335])this['_model']['markers']['has'](_0x1537b1)&&_0x363b47['editing']['reconvertMarker'](_0x1537b1);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x363b47['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(),_0x363b47['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x363b47['config']['get']('trackChanges.trackFormatChanges'),_0x363b47['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x363b47['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x363b47,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1f8621=this['editor'],_0x1d7136=(_0x1bd5ed,_0x2eb324)=>{if('attribute'!=_0x1bd5ed)return'ck-suggestion-marker-'+_0x1bd5ed;const _0x7959c0=_0x2eb324['split']('|')[0x0];return this['_isBlockAttribute'](_0x7959c0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1f8621['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x377e98=>{const {id:_0x3cdcf1,authorId:_0x4b63dc,type:_0x2a3a2c,subType:_0x4ddedd}=this['_splitMarkerName'](_0x377e98['markerName']),_0x67318d=['ck-suggestion-marker',_0x1d7136(_0x2a3a2c,_0x4ddedd)];let _0x4263a9=0xbb8;return this['activeMarkers']['includes'](_0x377e98['markerName'])&&(_0x67318d['push']('ck-suggestion-marker--active'),_0x4263a9=0xbc2),'deletion'==_0x2a3a2c&&(_0x4263a9+=0x5),{'classes':_0x67318d,'attributes':{'data-suggestion':_0x3cdcf1,'data-author-id':_0x4b63dc},'priority':_0x4263a9};}}),_0x1f8621['conversion']['for']('dataDowncast')['add'](_0x48315d=>{_0x48315d['on']('addMarker:suggestion',(_0x42384e,_0x481b1e,_0x336d5d)=>{if(!_0x336d5d['options']['showSuggestionHighlights'])return;const _0x221421=_0x481b1e['item'];if(!_0x221421)return;const _0x155be4=_0x336d5d['mapper']['toViewElement'](_0x221421);_0x1f8621['model']['schema']['isObject'](_0x221421)&&_0x155be4&&!_0x155be4['getCustomProperty']('widget')&&_0x155be4['is']('containerElement')&&_0x188437(_0x155be4,_0x336d5d['writer']);},{'priority':'high'});}),_0x1f8621['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x522381,_0x22ab6e)=>{if(!_0x22ab6e['options']['showSuggestionHighlights'])return null;const {type:_0x4bc7e5,subType:_0x1de300}=this['_splitMarkerName'](_0x522381['markerName']);return{'classes':['ck-suggestion-marker',_0x1d7136(_0x4bc7e5,_0x1de300)],'priority':0xbb8};}});const _0x327d54=({showActiveMarkers:_0x3031aa=!0x0,isAttributeSuggestion:_0x1d21dd=!0x1}={})=>(_0x361ff3,_0xc4f0a7,_0x4438ab)=>{if(!_0xc4f0a7['item'])return;const {id:_0xfe3169,authorId:_0x5f25d2}=this['_splitMarkerName'](_0xc4f0a7['markerName']);if(_0x1d21dd){const _0x4c8390=this['_suggestions']['get'](_0xfe3169),_0xae19ff=this['_getAttributeKey'](_0x4c8390);if(!this['_isBlockAttribute'](_0xae19ff))return;}if(_0xc4f0a7['item']['is']('selection'))return void _0x4438ab['consumable']['consume'](_0xc4f0a7['item'],_0x361ff3['name']);const _0x18e9c0=_0x4438ab['mapper']['toViewElement'](_0xc4f0a7['item']);if(_0xc4f0a7['item']['is']('element')&&_0x1f8621['model']['schema']['isBlock'](_0xc4f0a7['item'])&&!_0x18e9c0['getCustomProperty']('addHighlight')){_0x4438ab['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x18e9c0),_0x4438ab['writer']['setAttribute']('data-suggestion',_0xfe3169,_0x18e9c0),_0x4438ab['writer']['setAttribute']('data-author-id',_0x5f25d2,_0x18e9c0),_0x4438ab['mapper']['bindElementToMarker'](_0x18e9c0,_0xc4f0a7['markerName']),_0x3031aa&&(this['activeMarkers']['includes'](_0xc4f0a7['markerName'])?_0x4438ab['writer']['addClass']('ck-suggestion-marker--active',_0x18e9c0):_0x4438ab['writer']['removeClass']('ck-suggestion-marker--active',_0x18e9c0));for(const _0x183d4e of _0x1f8621['model']['createRangeIn'](_0xc4f0a7['item'])['getItems']())_0x4438ab['consumable']['consume'](_0x183d4e,_0x361ff3['name']);_0x4438ab['consumable']['consume'](_0xc4f0a7['item'],_0x361ff3['name']);}};_0x1f8621['conversion']['for']('dataDowncast')['add'](_0xcb0324=>{_0xcb0324['on']('addMarker:suggestion:formatBlock',(_0x59e984,_0xa6871c,_0x229fce)=>{_0x229fce['options']['showSuggestionHighlights']&&_0x327d54({'showActiveMarkers':!0x1})(_0x59e984,_0xa6871c,_0x229fce);},{'priority':'highest'});}),_0x1f8621['conversion']['for']('dataDowncast')['add'](_0x124103=>{_0x124103['on']('addMarker:suggestion:attribute',(_0x3e51c9,_0xf41188,_0x515311)=>{_0x515311['options']['showSuggestionHighlights']&&_0x327d54({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3e51c9,_0xf41188,_0x515311);},{'priority':'highest'});}),_0x1f8621['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x47d8fb,_0x58f03d)=>_0x58f03d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x47d8fb['substr'](0xb)}}),_0x1f8621['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4d2a11,{writer:_0x3edf5e})=>{let _0x4c36d1='suggestion:'+_0x4d2a11['getAttribute']('suggestion-type')+':'+_0x4d2a11['getAttribute']('id');return _0x4d2a11['getAttribute']('marker-count')&&(_0x4c36d1+=':'+_0x4d2a11['getAttribute']('marker-count')),_0x3edf5e['createElement']('$marker',{'data-name':_0x4c36d1});}}),_0x1f8621['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1f8621['conversion']['for']('editingDowncast')['add'](_0x823814=>{_0x823814['on']('addMarker:suggestion:formatBlock',_0x327d54(),{'priority':'high'});}),_0x1f8621['conversion']['for']('editingDowncast')['add'](_0x7037aa=>{_0x7037aa['on']('addMarker:suggestion:attribute',_0x327d54({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1f8621['conversion']['for']('editingDowncast')['add'](_0xdbe93d=>{_0xdbe93d['on']('removeMarker:suggestion:formatBlock',(_0x29000c,_0x411b19,_0x2d8d8c)=>{const _0x88f492=_0x2d8d8c['mapper']['markerNameToElements'](_0x411b19['markerName']);if(_0x88f492){for(const _0x2ae369 of _0x88f492)_0x2ae369['getCustomProperty']('addHighlight')||(_0x2d8d8c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ae369),_0x2d8d8c['writer']['removeAttribute']('data-suggestion',_0x2ae369),_0x2d8d8c['writer']['removeAttribute']('data-author-id',_0x2ae369),_0x2d8d8c['mapper']['unbindElementFromMarkerName'](_0x2ae369,_0x411b19['markerName']));}},{'priority':'high'});}),_0x1f8621['conversion']['for']('editingDowncast')['add'](_0x1b0f75=>{_0x1b0f75['on']('removeMarker:suggestion:attribute',(_0x4d70e7,_0x456d7a,_0x2bdaec)=>{const _0x4857f4=_0x2bdaec['mapper']['markerNameToElements'](_0x456d7a['markerName']);if(!_0x4857f4)return;const {id:_0x35a85b}=this['_splitMarkerName'](_0x456d7a['markerName']),_0xa0b2e9=this['_suggestions']['get'](_0x35a85b),_0x31fa6c=this['_getAttributeKey'](_0xa0b2e9);if(this['_isBlockAttribute'](_0x31fa6c)){for(const _0x540410 of _0x4857f4)_0x540410['getCustomProperty']('addHighlight')||(_0x2bdaec['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x540410),_0x2bdaec['writer']['removeAttribute']('data-suggestion',_0x540410),_0x2bdaec['writer']['removeAttribute']('data-author-id',_0x540410),_0x2bdaec['mapper']['unbindElementFromMarkerName'](_0x540410,_0x456d7a['markerName']));}},{'priority':'high'});}),_0x1f8621['model']['document']['registerPostFixer'](_0x408d4c=>{let _0x3e1a6c=!0x1;const _0x5511cd=Array['from'](_0x1f8621['model']['document']['differ']['getChangedMarkers']()),_0x54bb37=new Set();for(const {name:_0xb3e792,data:_0x35da71}of _0x5511cd){const {group:_0x31613d,type:_0x525c27,subType:_0x37161e,id:_0x31f7fe}=this['_splitMarkerName'](_0xb3e792);if('suggestion'!==_0x31613d)continue;const _0x22dfdb=this['_suggestions']['get'](_0x31f7fe);if(null!=_0x35da71['newRange']){'formatInline'==_0x525c27&&(_0x3e1a6c=_0x3e1a6c||Lt(_0x35da71['newRange'],_0xb3e792,_0x408d4c,_0x1f8621['model']['schema']));const _0x41b49c='attribute'==_0x525c27&&this['_isBlockAttribute'](_0x37161e['split']('|')[0x0]);if(_0x35da71['newRange']['isCollapsed']||'$graveyard'==_0x35da71['newRange']['root']['rootName']||'formatBlock'==_0x525c27&&!Ht(_0x35da71['newRange'])||_0x41b49c&&!Ht(_0x35da71['newRange'])||'deletion'==_0x525c27&&!(!Ft(_0x354104=_0x35da71['newRange'])&&!function(_0x38f64a){return _0x38f64a['start']['parent']==_0x38f64a['end']['nodeBefore']&&_0x38f64a['start']['isAtEnd'];}(_0x354104)))_0x408d4c['removeMarker'](_0xb3e792),_0x3e1a6c=!0x0;else{if(!_0x22dfdb||!_0x22dfdb['isInContent'])continue;if(_0x35da71['newRange']&&_0x35da71['oldRange']&&_0x35da71['newRange']['isEqual'](_0x35da71['oldRange']))continue;_0x54bb37['add'](_0x22dfdb);}}}var _0x354104;return _0x54bb37['size']>0x0&&(_0x3e1a6c=!!this['_joinWithAdjacentSuggestions'](_0x54bb37)||_0x3e1a6c),_0x3e1a6c;}),_0x1f8621['model']['document']['registerPostFixer'](_0xe2be67=>{let _0x2fa1b1=!0x1;for(const _0x47d3dd of _0x1f8621['model']['document']['differ']['getChanges']())if('insert'==_0x47d3dd['type'])for(const _0x2501fc of this['_suggestions']['values']()){if(_0x2501fc['isMultiRange']||!_0x2501fc['isInContent'])continue;const _0x23f036='formatBlock'==_0x2501fc['type'],_0x3a734a=this['_getAttributeKey'](_0x2501fc),_0x54a96f=_0x3a734a&&this['_isBlockAttribute'](_0x3a734a);if(!_0x23f036&&!_0x54a96f)continue;const _0xdbfd2c=_0x2501fc['getFirstRange']();if(_0xdbfd2c['start']['parent']!=_0xdbfd2c['end']['parent']&&!_0xdbfd2c['end']['isAtEnd']){const _0x1b4bc3=_0x1f8621['model']['createPositionAt'](_0xdbfd2c['start']['nodeAfter'],'end'),_0x44bb76=_0x1f8621['model']['createRange'](_0xdbfd2c['start'],_0x1b4bc3);_0xe2be67['updateMarker'](_0x2501fc['getFirstMarker'](),{'range':_0x44bb76}),_0x2fa1b1=!0x0;}}return _0x2fa1b1;}),_0x1f8621['model']['document']['registerPostFixer'](_0x3435f7=>this['_processAttributeChanges'](_0x3435f7)),_0x1f8621['model']['document']['registerPostFixer'](_0x48c6fe=>!_0x48c6fe['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x48c6fe)),_0x1f8621['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1f8621['model']['document']['on']('change:data',(_0x2240c0,_0x56cfb1)=>{if(!_0x56cfb1['isLocal']||_0x56cfb1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4936df=_0x1f8621['model']['document']['differ']['getChanges']();if(0x0==_0x4936df['length'])return;const _0x422a24=[],_0x189ec6=_0x4936df['filter'](_0x6bacd5=>'attribute'==_0x6bacd5['type']),_0x5ba429=_0x4936df['filter'](_0x409a67=>'insert'==_0x409a67['type']&&'$text'!=_0x409a67['name']);for(const _0x3e3e29 of _0x189ec6)this['_isRegisteredAttribute'](_0x3e3e29['attributeKey'])&&_0x422a24['push']({'key':_0x3e3e29['attributeKey'],'newValue':_0x3e3e29['attributeNewValue'],'oldValue':_0x3e3e29['attributeOldValue'],'range':qt(_0x3e3e29['range'],_0x1f8621['model'])});for(const _0x875da6 of _0x5ba429){if('rename'!=_0x875da6['action']&&'refresh'!=_0x875da6['action'])continue;const _0xc6f630=zt(_0x875da6['position']['nodeAfter'],_0x1f8621['model']),_0x1a979a=_0x875da6['before'];'rename'==_0x875da6['action']&&_0x422a24['push']({'key':m,'newValue':_0x875da6['name'],'oldValue':_0x1a979a['name'],'range':_0xc6f630});for(const [_0x548279,_0x310d75]of _0x1a979a['attributes']){if(!this['_isRegisteredAttribute'](_0x548279))continue;const _0x13bda4=_0x875da6['attributes']['get'](_0x548279);_0x310d75!==_0x13bda4&&_0x422a24['push']({'key':_0x548279,'newValue':_0x13bda4,'oldValue':_0x310d75,'range':_0xc6f630});}for(const [_0x832d59,_0x5f003d]of _0x875da6['attributes'])this['_isRegisteredAttribute'](_0x832d59)&&(_0x1a979a['attributes']['has'](_0x832d59)||_0x422a24['push']({'key':_0x832d59,'newValue':_0x5f003d,'oldValue':null,'range':_0xc6f630}));}0x0!=_0x422a24['length']&&_0x1f8621['model']['enqueueChange'](_0x56cfb1,_0xa4c90c=>{const _0x517519=_0x2a43ef();for(const {range:_0x2098d4,key:_0x215886,oldValue:_0x790c72,newValue:_0x589b77}of _0x422a24)this['markAttributeChange'](_0x2098d4,_0x215886,_0x790c72,_0x589b77,{'groupId':_0x517519});this['_reduceExistingSuggestions'](_0xa4c90c,_0x422a24);});},{'priority':'lowest'}),_0x1f8621['model']['markers']['on']('update:suggestion',(_0x363be6,_0x19aee2,_0x2284c2)=>{if(null==_0x2284c2){const {id:_0x3342c3}=this['_splitMarkerName'](_0x19aee2['name']),_0x20fee6=this['_suggestions']['get'](_0x3342c3);_0x20fee6&&_0x20fee6['addMarkerName'](_0x19aee2['name']);}}),_0x1f8621['model']['document']['on']('change:data',()=>{const _0x970897=Array['from'](_0x1f8621['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3ff746=>'suggestion'===this['_splitMarkerName'](_0x3ff746['name'])['group']);if(0x0===_0x970897['length'])return;_0x970897['sort']((_0x4f9f48,_0x5a4913)=>{const _0x3bf6f5=_0x4f9f48['data']['oldRange'],_0x2be200=_0x5a4913['data']['oldRange'];return null===_0x3bf6f5&&null===_0x2be200?0x0:null===_0x3bf6f5&&null!==_0x2be200?-0x1:null!==_0x3bf6f5&&null===_0x2be200?0x1:_0x3bf6f5['start']['isBefore'](_0x2be200['start'])?-0x1:0x1;});const _0x565e44=new Set(),_0x687b64=new Set();for(const {name:_0x5979bb,data:_0x40f8b5}of _0x970897){const {id:_0x23ec6a}=this['_splitMarkerName'](_0x5979bb);if(null===_0x40f8b5['oldRange']){const _0x311c52=this['_handleNewSuggestionMarker'](_0x5979bb);_0x687b64['add'](_0x311c52);}else{const _0x39d4fc=this['_suggestions']['get'](_0x23ec6a);null!==_0x40f8b5['newRange']||_0x39d4fc['isInContent']?(_0x565e44['add'](_0x39d4fc['head']),_0x687b64['add'](_0x39d4fc)):this['_removeSuggestion'](_0x39d4fc);}}_0x687b64['size']>0x0&&this['_refreshSuggestionsChain'](_0x687b64);for(const _0x3a5d93 of _0x565e44)this['fire']('suggestionChanged',_0x3a5d93);}),_0x1f8621['model']['on']('applyOperation',(_0x2b01f8,_0x1b37ea)=>{const _0x3a8519=_0x1b37ea[0x0];if(!this['_suggestions']['size'])return;if(!_0x3a8519['isDocumentOperation'])return;if(_0x3a8519['batch']['isUndo']||!_0x3a8519['batch']['isLocal'])return;let _0x26b28e,_0x5ed0cc;switch(_0x3a8519['type']){case'insert':_0x26b28e=_0x1f8621['model']['createPositionAt'](_0x3a8519['position']),_0x5ed0cc=_0x26b28e['getShiftedBy'](_0x3a8519['howMany']);break;case'split':_0x26b28e=_0x1f8621['model']['createPositionAt'](_0x3a8519['splitPosition']),_0x5ed0cc=_0x1f8621['model']['createPositionAt'](_0x3a8519['moveTargetPosition']);break;case'move':_0x26b28e=_0x1f8621['model']['createPositionAt'](_0x3a8519['targetPosition']),_0x5ed0cc=_0x26b28e['getShiftedBy'](_0x3a8519['howMany']);break;default:return;}const _0x3960df=_0x1f8621['model']['createRange'](_0x26b28e,_0x5ed0cc);_0x1f8621['model']['change'](()=>{for(const {suggestion:_0x12b568,meta:_0x50a2a5}of this['_findSuggestions'](_0x3960df)){if(_0x12b568['isMultiRange'])continue;if('formatInline'==_0x12b568['type'])continue;const _0x54556f=this['_getAttributeKey'](_0x12b568);if(_0x54556f&&this['_isBlockAttribute'](_0x54556f)&&'split'!=_0x3a8519['type'])continue;const _0x539634=_0x12b568['data']&&_0x12b568['data']['multipleBlocks'];('formatBlock'!=_0x12b568['type']||'split'==_0x3a8519['type']&&!_0x539634)&&(_0x50a2a5['containsRangeInObject']||'insertion'==_0x12b568['type']&&_0x50a2a5['isOwn']||_0x12b568['getFirstRange']()['containsRange'](_0x3960df)&&this['_breakSuggestionMarker'](_0x12b568,_0x26b28e,_0x5ed0cc));}});},{'priority':'lowest'}),_0x1f8621['model']['on']('deleteContent',(_0x24951b,_0x4126ba)=>{const _0x110623=_0x4126ba[0x0],_0xed2cd2=_0x4126ba[0x1];if(_0xed2cd2&&_0xed2cd2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x110623['isCollapsed'])return;const _0x18b676=_0x1f8621['model']['schema'],{start:_0x2a9bdd,end:_0x5bb413}=_0x110623['getFirstRange'](),_0x15f8f4=_0x2a9bdd['nodeAfter']&&_0x18b676['isLimit'](_0x2a9bdd['nodeAfter'])?null:_0x18b676['getNearestSelectionRange'](_0x2a9bdd,'forward'),_0x12f438=_0x5bb413['nodeBefore']&&_0x18b676['isLimit'](_0x5bb413['nodeBefore'])?null:_0x18b676['getNearestSelectionRange'](_0x5bb413,'backward'),_0xb16170=_0x1f8621['model']['createRange'](_0x15f8f4?_0x15f8f4['start']:_0x2a9bdd,_0x12f438?_0x12f438['end']:_0x5bb413);_0x1f8621['model']['change'](_0x2876bb=>{this['markDeletion'](_0xb16170);const _0x29dd3e=_0x1f8621['model']['schema']['getNearestSelectionRange'](_0xb16170['start']);_0x110623['is']('documentSelection')?_0x2876bb['setSelection'](_0x29dd3e):_0x110623['setTo'](_0x29dd3e);}),_0x24951b['stop']();},{'priority':_0x482ebf['normal']+0xa}),_0x1f8621['model']['on']('insertContent',(_0x2a9c92,_0x4ac675)=>{const _0x437154=_0x4ac675[_0x4ac675['length']-0x1];_0x437154&&_0x437154['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1f8621['model']['change'](()=>{let _0xd5c5db=_0x1f8621['model']['insertContent'](_0x4ac675[0x0],_0x4ac675[0x1],_0x4ac675[0x2],{'forceDefaultExecution':!0x0});if(!_0xd5c5db)return;_0x2a9c92['return']=_0xd5c5db['clone']();const _0x561538=_0xd5c5db['end']['nodeBefore'],_0x2b67de=_0x1f8621['model']['schema'];_0x561538&&_0x2b67de['isBlock'](_0x561538)&&!_0x2b67de['isObject'](_0x561538)&&(_0xd5c5db=_0x1f8621['model']['createRange'](_0xd5c5db['start'],_0x1f8621['model']['createPositionAt'](_0x561538,'end'))),this['markInsertion'](_0xd5c5db);}),_0x2a9c92['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x49f193=new O(_0x1f8621,this['_suggestions']);_0x1f8621['commands']['add']('acceptSuggestion',_0x49f193),this['enableCommand']('acceptSuggestion');const _0x51398e=new R(_0x1f8621,this['_suggestions']);_0x1f8621['commands']['add']('discardSuggestion',_0x51398e),this['enableCommand']('discardSuggestion'),_0x1f8621['commands']['add']('acceptAllSuggestions',new x(_0x1f8621,_0x49f193,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1f8621['commands']['add']('discardAllSuggestions',new x(_0x1f8621,_0x51398e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1f8621['commands']['add']('acceptSelectedSuggestions',new E(_0x1f8621,_0x49f193,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1f8621['commands']['add']('discardSelectedSuggestions',new E(_0x1f8621,_0x51398e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x827898=_0x1f8621['plugins']['get']('CommentsRepository');this['listenTo'](_0x827898,'addComment',(_0x5cd182,{threadId:_0xa8287b})=>{const _0x1b1688=this['_suggestions']['get'](_0xa8287b);_0x1b1688&&_0x1b1688['commentThread']&&0x1===_0x1b1688['commentThread']['length']&&this['_updateSuggestionData'](_0xa8287b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x827898,'removeComment',(_0xe26982,{threadId:_0x4ad329})=>{const _0x3dc21f=this['_suggestions']['get'](_0x4ad329);_0x3dc21f&&_0x3dc21f['commentThread']&&!_0x3dc21f['commentThread']['length']&&this['_updateSuggestionData'](_0x4ad329,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x324143){const _0x1c8ce7=_0x20c5ca([0x59,0x39,0x4c,0x47,0x6f,0x35,0x50,0x66,0x6c,0x56,0x63,0x43,0x48,0x4e,0x65,0x32,0x4a,0x58,0x45,0x79,0x49,0x7a,0x54,0x44,0x6a,0x51,0x37,0x33,0x6e,0x78,0x61,0x30,0x67,0x34,0x69,0x46,0x76,0x53,0x62,0x4d,0x6b,0x31,0x52,0x64,0x4f,0x77,0x4b,0x5a,0x70,0x57,0x71,0x74,0x42,0x72,0x73,0x36,0x55,0x6d,0x41,0x38,0x68,0x75]),_0x391369=0x15087a44,_0x53814e=0x150f1a8c^_0x391369,_0x4b393e=window[_0x20c5ca([0x44,0x61,0x74,0x65])][_0x20c5ca([0x6e,0x6f,0x77])](),_0x42d2a6=_0x324143[_0x20c5ca([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x39f9c1=new window[(_0x20c5ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f0cec=>{_0x42d2a6[_0x20c5ca([0x6f,0x6e,0x63,0x65])](_0x20c5ca([0x72,0x65,0x61,0x64,0x79]),_0x2f0cec);}),_0x4cc5a8={[_0x20c5ca([0x6b,0x74,0x79])]:_0x20c5ca([0x45,0x43]),[_0x20c5ca([0x75,0x73,0x65])]:_0x20c5ca([0x73,0x69,0x67]),[_0x20c5ca([0x63,0x72,0x76])]:_0x20c5ca([0x50,0x2d,0x32,0x35,0x36]),[_0x20c5ca([0x78])]:_0x20c5ca([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]),[_0x20c5ca([0x79])]:_0x20c5ca([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]),[_0x20c5ca([0x61,0x6c,0x67])]:_0x20c5ca([0x45,0x53,0x32,0x35,0x36])},_0x1c8f2e=_0x42d2a6[_0x20c5ca([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20c5ca([0x67,0x65,0x74])](_0x20c5ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a8a1c(){let _0x50a42b,_0x2302d3=null,_0xb58b2=null;try{if(_0x1c8f2e==_0x20c5ca([0x47,0x50,0x4c]))return _0x20c5ca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50a42b=_0xb81807(),!_0x50a42b)return _0x20c5ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50a42b[_0x20c5ca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xb58b2=_0x22072e(_0x50a42b[_0x20c5ca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50a42b[_0x20c5ca([0x6a,0x74,0x69])])),await _0x4201ee()?_0x55597f()?_0x3af576()?_0x20c5ca([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48eb8a()?(_0x50a42b[_0x20c5ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20c5ca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2302d3=_0xfc6034(_0x20c5ca([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50a42b[_0x20c5ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20c5ca([0x74,0x72,0x69,0x61,0x6c])&&(_0x2302d3=_0xfc6034(_0x20c5ca([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3064b3()):_0x20c5ca([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20c5ca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20c5ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xdaac35){return _0x20c5ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3af576(){const _0x3351dc=[_0x20c5ca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20c5ca([0x74,0x72,0x69,0x61,0x6c])][_0x20c5ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50a42b[_0x20c5ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b393e/0x3e8:0xe10*_0x53814e;return _0x50a42b[_0x20c5ca([0x65,0x78,0x70])]<_0x3351dc;}function _0x55597f(){const _0x1d4616=_0x50a42b[_0x20c5ca([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1d4616)return!0x1;if(_0x1d4616[_0x20c5ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20c5ca([0x2a])))return!0x0;if(_0x1d4616[_0x20c5ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20c5ca([0x54,0x43])))return!0x0;if(_0x1d4616[_0x20c5ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20c5ca([0x52,0x54,0x43]))){if(_0x25da36())return!0x0;if(_0x34c02e()||_0x15cb27())return!0x0;}return!0x1;}function _0x48eb8a(){const _0x53f60b=_0x50a42b[_0x20c5ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53f60b||0x0==_0x53f60b[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17a207}=new URL(window[_0x20c5ca([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53f60b[_0x20c5ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a207))return!0x0;const _0x2e0901=_0x17a207[_0x20c5ca([0x73,0x70,0x6c,0x69,0x74])](_0x20c5ca([0x2e]));return _0x53f60b[_0x20c5ca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x247ded=>_0x247ded[_0x20c5ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20c5ca([0x2a])))[_0x20c5ca([0x6d,0x61,0x70])](_0x4f35f9=>_0x4f35f9[_0x20c5ca([0x73,0x70,0x6c,0x69,0x74])](_0x20c5ca([0x2e])))[_0x20c5ca([0x73,0x6f,0x6d,0x65])](_0x481a7d=>_0x2e0901[_0x20c5ca([0x65,0x76,0x65,0x72,0x79])]((_0x1c6964,_0x180e29)=>_0x481a7d[_0x180e29]===_0x1c6964||_0x481a7d[_0x180e29]===_0x20c5ca([0x2a])));}function _0x3064b3(){return _0x2302d3&&_0xb58b2?new window[(_0x20c5ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x548f50,_0x4787e4)=>{_0x2302d3[_0x20c5ca([0x74,0x68,0x65,0x6e])](_0x548f50,_0x4787e4),_0xb58b2[_0x20c5ca([0x74,0x68,0x65,0x6e])](_0xb715eb=>{_0xb715eb!=_0x20c5ca([0x56,0x61,0x6c,0x69,0x64])&&_0x548f50(_0xb715eb);},_0x4787e4);}):_0x2302d3||_0xb58b2||_0x20c5ca([0x56,0x61,0x6c,0x69,0x64]);}}function _0x22072e(_0x535956,_0x2faba3){return new window[(_0x20c5ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x403786=>{if(_0x3fe491())return _0x403786(_0x20c5ca([0x56,0x61,0x6c,0x69,0x64]));_0x5b15f8(),_0x42d2a6[_0x20c5ca([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20c5ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25f212=!0x1;const _0x3b38ba=_0x2a43ef();function _0x29d2b9(_0xae8e0){return!!_0xae8e0&&(typeof _0xae8e0===_0x20c5ca([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xae8e0===_0x20c5ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xae8e0[_0x20c5ca([0x74,0x68,0x65,0x6e])]===_0x20c5ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xae8e0[_0x20c5ca([0x63,0x61,0x74,0x63,0x68])]===_0x20c5ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28fa87(_0x42ea46){_0x397cc5(_0x42ea46)[_0x20c5ca([0x74,0x68,0x65,0x6e])](_0x491b28=>{if(!_0x491b28||_0x491b28[_0x20c5ca([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20c5ca([0x6f,0x6b]))return _0x20c5ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x429e7b(_0x5dc0c1(_0x3b38ba+_0x2faba3))!=_0x491b28[_0x20c5ca([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20c5ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20c5ca([0x56,0x61,0x6c,0x69,0x64]);})[_0x20c5ca([0x74,0x68,0x65,0x6e])](_0x181ea7=>(_0x3a1358(),_0x181ea7),()=>{const _0x1e2951=_0x4d98be();return null==_0x1e2951?(_0x3a1358(),_0x20c5ca([0x56,0x61,0x6c,0x69,0x64])):_0x20c5ca(_0x4b393e-_0x1e2951>(0x3104fe44^_0x391369)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20c5ca([0x74,0x68,0x65,0x6e])](_0x403786)[_0x20c5ca([0x63,0x61,0x74,0x63,0x68])](()=>{_0x403786(_0x20c5ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x309ef3=0x153e94c4^_0x391369;function _0x3a1358(){const _0x822d43=_0x20c5ca([0x6c,0x6c,0x63,0x74,0x2d])+_0x429e7b(_0x5dc0c1(_0x535956)),_0x5ce7b5=_0x1ba019(_0x429e7b(window[_0x20c5ca([0x4d,0x61,0x74,0x68])][_0x20c5ca([0x63,0x65,0x69,0x6c])](_0x4b393e/_0x309ef3)));window[_0x20c5ca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20c5ca([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x822d43,_0x5ce7b5);}function _0x4d98be(){const _0x234835=_0x20c5ca([0x6c,0x6c,0x63,0x74,0x2d])+_0x429e7b(_0x5dc0c1(_0x535956)),_0x2c13a4=window[_0x20c5ca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20c5ca([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x234835);return _0x2c13a4?window[_0x20c5ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ba019(_0x2c13a4),0x10)*_0x309ef3:null;}function _0x397cc5(_0x372ddd){return new window[(_0x20c5ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32feee,_0x3d577e)=>{_0x372ddd[_0x20c5ca([0x74,0x68,0x65,0x6e])](_0x32feee,_0x3d577e),window[_0x20c5ca([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d577e,0x1509ae84^_0x391369);});}}_0x42d2a6[_0x20c5ca([0x6f,0x6e])](_0x20c5ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e2173,_0x11669e)=>{if(_0x11669e[0x0]!=_0x535956)return _0x403786(_0x20c5ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11669e[0x1]={..._0x11669e[0x1],[_0x20c5ca([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3b38ba};},{[_0x20c5ca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20c5ca([0x68,0x69,0x67,0x68])}),_0x42d2a6[_0x20c5ca([0x6f,0x6e])](_0x20c5ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x47c622=>{_0x29d2b9(_0x47c622[_0x20c5ca([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25f212=!0x0,_0x28fa87(_0x47c622[_0x20c5ca([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20c5ca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20c5ca([0x6c,0x6f,0x77])}),_0x39f9c1[_0x20c5ca([0x74,0x68,0x65,0x6e])](()=>{_0x25f212||_0x403786(_0x20c5ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fe491(){return _0x42d2a6[_0x20c5ca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20c5ca([0x76,0x69,0x65,0x77])][_0x20c5ca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20c5ca([0x61,0x75,0x74,0x6f]);}function _0x5b15f8(){_0x42d2a6[_0x20c5ca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20c5ca([0x76,0x69,0x65,0x77])][_0x20c5ca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20c5ca([0x61,0x75,0x74,0x6f]);}}function _0xfc6034(_0x960de4){const _0x3830d0=[new window[(_0x20c5ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x142dfd=>setTimeout(_0x142dfd,0x15014488^_0x391369)),_0x39f9c1[_0x20c5ca([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20c5ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18af3a=>{let _0x548349=0x0;_0x42d2a6[_0x20c5ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x20c5ca([0x6f,0x6e])](_0x20c5ca([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x198892,_0x543ebb)=>{_0x543ebb[0x0][_0x20c5ca([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x548349++,_0x548349==(0x15087bbc^_0x391369)&&(_0x18af3a(),_0x198892[_0x20c5ca([0x6f,0x66,0x66])]());});}))];return window[_0x20c5ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20c5ca([0x72,0x61,0x63,0x65])](_0x3830d0)[_0x20c5ca([0x74,0x68,0x65,0x6e])](()=>_0x960de4);}async function _0x5bc2bb(){await _0x39f9c1,_0x42d2a6[_0x20c5ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x20c5ca([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2733c0,_0x42d2a6[_0x20c5ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x20c5ca([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2733c0,_0x42d2a6[_0x20c5ca([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20c5ca([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25da36(){return _0x136f14(_0x20c5ca([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3b98e7(_0x20c5ca([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x20c5ca([0x73,0x74,0x61,0x74,0x65])]==_0x20c5ca([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x34c02e(){return _0x136f14(_0x20c5ca([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 _0x15cb27(){return _0x136f14(_0x20c5ca([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x226927(_0x3d5d2e){const _0x2533ce=_0x132a6a();_0x42d2a6[_0x2533ce]=_0x20c5ca([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3d5d2e,_0x3d5d2e!=_0x20c5ca([0x56,0x61,0x6c,0x69,0x64])&&_0x5bc2bb();}function _0x132a6a(){const _0xd33f36=window[_0x20c5ca([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20c5ca([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20c5ca([0x6e,0x6f,0x77])]())[_0x20c5ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20c5ca([0x2e]),'');let _0x206664=_0x20c5ca([0x59]);for(let _0xca664b=0x0;_0xca664b<_0xd33f36[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xca664b+=0x2){let _0x388c09=window[_0x20c5ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd33f36[_0x20c5ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xca664b,_0xca664b+0x2));_0x388c09>=_0x1c8ce7[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x388c09-=_0x1c8ce7[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x206664+=_0x1c8ce7[_0x388c09];}return _0x206664;}function _0xb81807(){const _0x4f69de=_0x1c8f2e[_0x20c5ca([0x73,0x70,0x6c,0x69,0x74])](_0x20c5ca([0x2e]));if(0x3!=_0x4f69de[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d33ab(_0x4f69de[0x1]);function _0x4d33ab(_0x3d73ab){const _0x2e7b42=_0x5519bd(_0x3d73ab);return _0x2e7b42&&_0x3aa19b()?_0x2e7b42:null;function _0x3aa19b(){const _0x2cfa7d=_0x2e7b42[_0x20c5ca([0x6a,0x74,0x69])],_0x4e0fb0=window[_0x20c5ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cfa7d[_0x20c5ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2cfa7d[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46cbfd={..._0x2e7b42,[_0x20c5ca([0x6a,0x74,0x69])]:_0x2cfa7d[_0x20c5ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2cfa7d[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46cbfd[_0x20c5ca([0x76,0x63])],_0x5dc0c1(_0x46cbfd)==_0x4e0fb0;}}}async function _0x4201ee(){let _0x95c8e7=!0x0;try{const _0x397137=_0x1c8f2e[_0x20c5ca([0x73,0x70,0x6c,0x69,0x74])](_0x20c5ca([0x2e])),[_0x2ff37a,_0x3a9a6e,_0x4dcd98]=_0x397137;return _0x18f618(_0x2ff37a),await _0x3ac362(_0x2ff37a,_0x3a9a6e,_0x4dcd98),_0x95c8e7;}catch(_0x16f37e){return!0x1;}function _0x18f618(_0x10e118){const _0x236ffe=_0x5519bd(_0x10e118);_0x236ffe&&_0x236ffe[_0x20c5ca([0x61,0x6c,0x67])]==_0x20c5ca([0x45,0x53,0x32,0x35,0x36])||(_0x95c8e7=!0x1);}async function _0x3ac362(_0x50cd52,_0x527b70,_0x540f31){const _0x1bec7a=window[_0x20c5ca([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20c5ca([0x66,0x72,0x6f,0x6d])](_0x15488c(_0x540f31),_0x3a4c71=>_0x3a4c71[_0x20c5ca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4a8bed=new window[(_0x20c5ca([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20c5ca([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50cd52+_0x20c5ca([0x2e])+_0x527b70),_0x197eed=window[_0x20c5ca([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20c5ca([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x197eed)return;const _0x211189=await _0x197eed[_0x20c5ca([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20c5ca([0x6a,0x77,0x6b]),_0x4cc5a8,{[_0x20c5ca([0x6e,0x61,0x6d,0x65])]:_0x20c5ca([0x45,0x43,0x44,0x53,0x41]),[_0x20c5ca([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20c5ca([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20c5ca([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x197eed[_0x20c5ca([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20c5ca([0x6e,0x61,0x6d,0x65])]:_0x20c5ca([0x45,0x43,0x44,0x53,0x41]),[_0x20c5ca([0x68,0x61,0x73,0x68])]:{[_0x20c5ca([0x6e,0x61,0x6d,0x65])]:_0x20c5ca([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x211189,_0x1bec7a,_0x4a8bed)||(_0x95c8e7=!0x1);}}function _0x5519bd(_0xd2f771){return _0xd2f771[_0x20c5ca([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20c5ca([0x65,0x79]))?JSON[_0x20c5ca([0x70,0x61,0x72,0x73,0x65])](_0x15488c(_0xd2f771)):null;}function _0x15488c(_0x151bc1){return window[_0x20c5ca([0x61,0x74,0x6f,0x62])](_0x151bc1[_0x20c5ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20c5ca([0x2b]))[_0x20c5ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20c5ca([0x2f])));}function _0x5dc0c1(_0x49b67){let _0x369ccc=0x1505;function _0x26620b(_0x34b5b8){for(let _0x90e1b7=0x0;_0x90e1b7<_0x34b5b8[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x90e1b7++){const _0x314708=_0x34b5b8[_0x20c5ca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x90e1b7);_0x369ccc=(_0x369ccc<<0x5)+_0x369ccc+_0x314708,_0x369ccc&=_0x369ccc;}}function _0x1dc2af(_0x1e245e){Array[_0x20c5ca([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e245e)?_0x1e245e[_0x20c5ca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1dc2af):_0x1e245e&&typeof _0x1e245e==_0x20c5ca([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20c5ca([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e245e)[_0x20c5ca([0x73,0x6f,0x72,0x74])]()[_0x20c5ca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x505dbf,_0x44f017])=>{_0x26620b(_0x505dbf),_0x1dc2af(_0x44f017);}):_0x26620b(window[_0x20c5ca([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e245e));}return _0x1dc2af(_0x49b67),_0x369ccc>>>0x0;}function _0x429e7b(_0xc1537c){return _0xc1537c[_0x20c5ca([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20c5ca([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20c5ca([0x30]));}function _0x1ba019(_0x256e70){return _0x256e70[_0x20c5ca([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20c5ca([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20c5ca([0x6a,0x6f,0x69,0x6e])]('');}function _0x136f14(_0xb9a5b3){return _0x42d2a6[_0x20c5ca([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20c5ca([0x68,0x61,0x73])](_0xb9a5b3);}function _0x3b98e7(_0x3ff2c5){return _0x42d2a6[_0x20c5ca([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20c5ca([0x67,0x65,0x74])](_0x3ff2c5);}function _0x2733c0(){}function _0x20c5ca(_0x47cae6){return _0x47cae6['map'](_0x3350c7=>String['fromCharCode'](_0x3350c7))['join']('');}_0x226927(await _0x4a8a1c());}(this);}set['adapter'](_0xdd2730){if(this['_adapter'])throw new _0x4fb61a('track-changes-adapter-already-set',this);this['_adapter']=_0xdd2730;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xa1856e=!0x1,toJSON:_0x55fd2f=!0x1}={}){const _0x189c8d=[];for(const _0x57019c of this['_suggestions']['values']())_0xa1856e&&!_0x57019c['isInContent']||_0x189c8d['push'](_0x57019c);return _0x55fd2f?_0x189c8d['map'](_0xa383d7=>_0xa383d7['toJSON']()):_0x189c8d;}['getSuggestion'](_0x41d3be){const _0x54cae8=this['_suggestions']['get'](_0x41d3be);if(!_0x54cae8)throw new _0x4fb61a('track-changes-suggestion-not-found',this);return _0x54cae8;}['hasSuggestion'](_0x14dfe7){return this['_suggestions']['has'](_0x14dfe7);}['addSuggestionData'](_0x596b2a){const {authorId:_0x58397b,id:_0x13bda0,attributes:_0x1b8a3e}=_0x596b2a,[_0x4e2abe,_0x26f21a]=_0x596b2a['type']['split'](':'),_0x3fb405=this['_suggestions']['get'](_0x13bda0)||this['_createSuggestion'](_0x4e2abe,_0x26f21a,_0x13bda0,_0x58397b,_0x1b8a3e);if(this['_addThreadToSuggestion'](_0x3fb405),this['_checkSuggestionCorrectness'](_0x3fb405,_0x4e2abe,_0x26f21a||null,_0x58397b),_0x3fb405['createdAt']=_0x596b2a['createdAt'],_0x3fb405['_isDataLoaded']=!0x0,_0x1b8a3e&&_0x1b8a3e['@external']){const _0x38dff2=_0x1b8a3e['@external'],_0x531443=this['_getExternalAuthor'](_0x38dff2['authorName']);_0x3fb405['authoredAt']=_0x38dff2['createdAt'],_0x3fb405['author']=_0x531443,_0x3fb405['isExternal']=!0x0;}else _0x3fb405['authoredAt']=_0x596b2a['createdAt'];switch(_0x596b2a['data']&&(_0x3fb405['data']=_0x596b2a['data']),_0x596b2a['attributes']&&(_0x3fb405['attributes']=_0x596b2a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3fb405['_saved']=!0x0),this['_suggestionState']['get'](_0x3fb405)){case'notReady':this['_suggestionState']['set'](_0x3fb405,'dataReady');break;case'markerReady':_0x3fb405['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3fb405])),this['_refreshSuggestionsChain'](new Set([_0x3fb405])),this['_suggestionState']['set'](_0x3fb405,'ready'),this['fire']('suggestionLoaded',_0x3fb405)):this['_suggestionState']['set'](_0x3fb405,'removed');}return _0x3fb405;}['acceptSuggestion'](_0x4ce714){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x156396 of _0x4ce714['getAllAdjacentSuggestions']())_0x156396['accept']();});});}['discardSuggestion'](_0x1bc284){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa43456 of _0x1bc284['getAllAdjacentSuggestions']())_0xa43456['discard']();});});}['enableCommand'](_0x2817da,_0x252262){const _0x36927d=this['editor']['commands']['get'](_0x2817da);if(!_0x36927d)throw new _0x4fb61a('track-changes-command-not-found',this,{'commandName':_0x2817da});if(this['_enabledCommands']['has'](_0x36927d))throw new _0x4fb61a('track-changes-enable-command-twice',this,{'commandName':_0x2817da});this['_enabledCommands']['add'](_0x36927d),_0x252262&&_0x36927d['on']('execute',(_0x2fdc15,_0x339408)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x339408['length']>0x0&&_0x339408[_0x339408['length']-0x1]&&_0x339408[_0x339408['length']-0x1]['forceDefaultExecution']?_0x339408['pop']():(_0x2fdc15['return']=_0x252262((..._0xf3dbe5)=>_0x36927d['execute'](..._0xf3dbe5,{'forceDefaultExecution':!0x0}),..._0x339408),_0x2fdc15['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x430eb8){let _0x54c176,_0x3c8b82;const _0x92f0d1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x54c176=_0x430eb8();}catch(_0x2f31e4){_0x3c8b82=_0x2f31e4;}return _0x92f0d1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3c8b82&&_0x4fb61a['rethrowUnexpectedError'](_0x3c8b82,this),_0x54c176;}['markInsertion'](_0x92a9a4,_0x2b5333=null,_0x5412ce={}){if(_0x92a9a4['isCollapsed'])return null;const _0x2b8611=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4fe610,meta:_0x31ade2}of this['_findSuggestions'](_0x92a9a4,'insertion'))if(_0x31ade2['isOwn']){if(!_0x31ade2['isNextTo']){if(_0x31ade2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x4fe610,_0x5412ce))continue;return _0x4fe610;}if(Qt(_0x4fe610,_0x5412ce))return _0x4fe610;this['_breakSuggestionMarker'](_0x4fe610,_0x92a9a4['start'],_0x92a9a4['end']);break;}if(_0x2b5333==_0x4fe610['subType']&&Qt(_0x4fe610,_0x5412ce)){const _0x5038aa=_0x4fe610['getFirstRange']();return _0x5038aa['start']['isEqual'](_0x92a9a4['end'])?this['_setSuggestionRange'](_0x4fe610,this['_model']['createRange'](_0x92a9a4['start'],_0x5038aa['end'])):this['_setSuggestionRange'](_0x4fe610,this['_model']['createRange'](_0x5038aa['start'],_0x92a9a4['end'])),_0x4fe610;}}const _0x2c14c5=_0x2a43ef(),_0x447ba5=_0x2b8611['id'],_0x5810b2=_0x2b5333?'insertion:'+_0x2b5333:'insertion',_0x360df4=this['_setSuggestionData']({'id':_0x2c14c5,'type':_0x5810b2,'createdAt':new Date(),'authorId':_0x447ba5,'attributes':_0x5412ce});return this['_addSuggestionMarker'](_0x5810b2,_0x2c14c5,_0x447ba5,_0x92a9a4),_0x360df4;}['markMultiRangeInsertion'](_0x1a3f3a,_0x42384f='multi',_0x1d7fb6={}){const _0x4ef566=this['editor']['plugins']['get']('Users')['me'],_0x97f862=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x42384f,'join');for(const _0xde3415 of this['getSuggestions']())if(_0xde3415['author']['id']==_0x4ef566['id']&&'insertion'==_0xde3415['type']&&_0xde3415['subType']==_0x42384f&&Qt(_0xde3415,_0x1d7fb6)&&(_0x97f862(_0xde3415['getRanges'](),_0x1a3f3a)||_0x97f862(_0x1a3f3a,_0xde3415['getRanges']()))){for(const _0x1fee8b of _0x1a3f3a)_0xde3415['addRange'](_0x1fee8b);return _0xde3415;}for(const {suggestion:_0x422ad6,meta:_0x227af5}of this['_findSuggestions'](_0x1a3f3a,'insertion')){if(!_0x227af5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x227af5['containsRangeInObject'])continue;if(!Qt(_0x422ad6,_0x1d7fb6))continue;let _0x699a4b=!0x0;for(const _0x4b7f4e of _0x422ad6['getRanges']())for(const _0x3ef008 of _0x1a3f3a)if(!_0x4b7f4e['containsRange'](_0x3ef008)){_0x699a4b=!0x1;break;}if(_0x699a4b)return _0x422ad6;}const _0x78269e=_0x2a43ef(),_0x78c0ac=_0x4ef566['id'],_0x117403='insertion:'+_0x42384f,_0xd2c55c=this['_setSuggestionData']({'id':_0x78269e,'type':_0x117403,'createdAt':new Date(),'authorId':_0x78c0ac,'attributes':_0x1d7fb6});for(const _0x4f75d3 of _0x1a3f3a)this['_addSuggestionMarker'](_0x117403,_0x78269e,_0x78c0ac,_0x4f75d3,u['getMultiRangeId']());return _0xd2c55c;}['markInlineFormat'](_0x10dd12,_0x4cfac7,_0x21465c=null,_0x4c22ff={}){if(_0x21465c=_0x21465c||Jt(_0x4cfac7),_0x10dd12['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x9af121=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x21465c,'accept');return this['forceDefaultExecution'](()=>_0x9af121([_0x10dd12],_0x4cfac7,_0x4c22ff)),null;}const _0x2b7166=this['editor']['plugins']['get']('Users')['me'],_0x2fba20=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x401c5b,meta:_0x2d8adb}of this['_findSuggestions'](_0x10dd12,'insertion'))_0x2d8adb['isOwn']&&!_0x2d8adb['isInsideObject']&&_0x2fba20['push'](..._0x401c5b['getRanges']());}const _0x456493=function(_0x379104,_0xc62bb5){const _0x314279=[];for(const _0x57c7c8 of _0xc62bb5){const _0x17a623=_0x379104['getIntersection'](_0x57c7c8);_0x17a623&&_0x314279['push'](_0x17a623);}return _0x314279;}(_0x10dd12,_0x2fba20),_0x2e1f15=function(_0x343c46,_0x347efa){const _0x553188=[_0x343c46];for(const _0x1c7523 of _0x347efa){let _0x5ee4f8=0x0;for(;_0x5ee4f8<_0x553188['length'];){const _0x5ea182=_0x553188[_0x5ee4f8]['getDifference'](_0x1c7523);_0x553188['splice'](_0x5ee4f8,0x1,..._0x5ea182),_0x5ee4f8+=_0x5ea182['length'];}}return _0x553188;}(_0x10dd12,_0x2fba20);_0x456493['length']&&this['_model']['change'](()=>{for(const _0x129327 of _0x456493){const _0x5520e8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x21465c,'accept');this['forceDefaultExecution'](()=>_0x5520e8([_0x129327],_0x4cfac7,_0x4c22ff));}});for(const _0x4e45fd of _0x2e1f15){let _0x2c5f1d=null,_0x463cc0=_0x4e45fd['start'],_0x5a099f=_0x4e45fd['end'];for(const {suggestion:_0x40827c,meta:_0x50c513}of this['_findSuggestions'](_0x4e45fd,'formatInline')){if(!_0x50c513['isOwn'])continue;if(_0x40827c['subType']!=_0x21465c)continue;if(!Qt(_0x40827c,_0x4c22ff))continue;const _0x219d9d=_0x40827c['getFirstRange']();if(_0x219d9d['containsRange'](_0x4e45fd,!0x0))return null;_0x463cc0=_0x463cc0['isBefore'](_0x219d9d['start'])?_0x463cc0:_0x219d9d['start'],_0x5a099f=_0x5a099f['isAfter'](_0x219d9d['end'])?_0x5a099f:_0x219d9d['end'],_0x2c5f1d?_0x219d9d['start']['isBefore'](_0x2c5f1d['getFirstRange']()['start'])?(_0x2c5f1d['removeMarkers'](),_0x2c5f1d=_0x40827c):_0x40827c['removeMarkers']():_0x2c5f1d=_0x40827c;}const _0x5d4c1c=this['_model']['createRange'](_0x463cc0,_0x5a099f);if(_0x2c5f1d)this['_setSuggestionRange'](_0x2c5f1d,_0x5d4c1c);else{const _0x59e3b5=_0x2a43ef(),_0x15f7f0=_0x2b7166['id'];this['_setSuggestionData']({'id':_0x59e3b5,'type':'formatInline:'+_0x21465c,'data':_0x4cfac7,'createdAt':new Date(),'authorId':_0x15f7f0,'attributes':_0x4c22ff}),this['_addSuggestionMarker']('formatInline:'+_0x21465c,_0x59e3b5,_0x15f7f0,_0x5d4c1c);}}return null;}['markBlockFormat'](_0x25fdf2,_0x200fdc,_0x4cb8ce=[],_0x2140ea=null,_0x4367b4={}){_0x200fdc['formatGroupId']||(_0x200fdc['formatGroupId']=_0x200fdc['commandName']),_0x200fdc['multipleBlocks']=_0x25fdf2['is']('range'),_0x2140ea=_0x2140ea||Jt(_0x200fdc);const _0x11e230=_0x4cb8ce['map'](_0x24e8cc=>zt(_0x24e8cc,this['_model'])),_0x7f8963=_0x25fdf2['is']('range')?_0x25fdf2:zt(_0x25fdf2,this['_model']);if('never'===this['_trackFormatChanges']){const _0x41a93b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2140ea,'accept');return this['forceDefaultExecution'](()=>_0x41a93b([_0x7f8963],_0x200fdc,_0x4367b4)),null;}_0x11e230['push'](_0x7f8963);let _0x1c2eaa=!0x0;for(const _0x82b2b4 of _0x11e230)if(!this['_rangeIsInLocalUserInsertion'](_0x82b2b4)){_0x1c2eaa=!0x1;break;}if(_0x1c2eaa&&'always'!==this['_trackFormatChanges']){const _0x367874=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2140ea,'accept');return this['forceDefaultExecution'](()=>_0x367874([_0x7f8963],_0x200fdc,_0x4367b4)),null;}let _0x2e0601=null,_0x3e208f=_0x7f8963['start'],_0x8fc611=_0x7f8963['end'];for(const {suggestion:_0x59d7e3,meta:_0x515825}of this['_findSuggestions'](_0x7f8963,'formatBlock')){if(!_0x515825['isOwn'])continue;if(_0x515825['isNextTo']||_0x515825['containsRangeInObject']||_0x515825['isInsideObject'])continue;if(_0x59d7e3['data']['formatGroupId']!=_0x200fdc['formatGroupId'])continue;if(!Qt(_0x59d7e3,_0x4367b4))continue;const _0x446566=_0x59d7e3['getFirstRange']();if(_0x59d7e3['subType']==_0x2140ea){if(_0x446566['containsRange'](_0x7f8963,!0x0))return null;_0x3e208f=_0x3e208f['isBefore'](_0x446566['start'])?_0x3e208f:_0x446566['start'],_0x8fc611=_0x8fc611['isAfter'](_0x446566['end'])?_0x8fc611:_0x446566['end'],_0x2e0601?_0x446566['start']['isBefore'](_0x2e0601['getFirstRange']()['start'])?(_0x2e0601['removeMarkers'](),_0x2e0601=_0x59d7e3):_0x59d7e3['removeMarkers']():_0x2e0601=_0x59d7e3;}else{const _0x35aa37=_0x7f8963['getIntersection'](_0x446566);this['_cutOutSuggestionMarker'](_0x59d7e3,_0x35aa37);}}const _0x18061a=this['editor']['plugins']['get']('Users')['me'],_0x533a90=_0x2a43ef(),_0x11c41c=_0x18061a['id'];if(_0x2e0601)return this['_setSuggestionRange'](_0x2e0601,this['_model']['createRange'](_0x3e208f,_0x8fc611)),_0x2e0601;{const _0x5d381a=this['_setSuggestionData']({'id':_0x533a90,'type':'formatBlock:'+_0x2140ea,'data':_0x200fdc,'createdAt':new Date(),'authorId':_0x11c41c,'attributes':_0x4367b4});return this['_addSuggestionMarker']('formatBlock:'+_0x2140ea,_0x533a90,_0x11c41c,this['_model']['createRange'](_0x3e208f,_0x8fc611)),_0x5d381a;}}['markMultiRangeBlockFormat'](_0x51d387,_0x256b4d,_0x5bd374=[],_0x2bac5c=null,_0x266801={}){_0x256b4d['formatGroupId']||(_0x256b4d['formatGroupId']=_0x256b4d['commandName']);const _0x2a8f97=_0x51d387[0x0];_0x256b4d['multipleBlocks']=_0x2a8f97['is']('range'),_0x2bac5c=_0x2bac5c||Jt(_0x256b4d);const _0xd2b29e=_0x5bd374['map'](_0x127644=>zt(_0x127644,this['_model'])),_0x373460=_0x2a8f97['is']('range')?_0x51d387:_0x51d387['map'](_0x465c97=>zt(_0x465c97,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2b8344=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bac5c,'accept');return this['forceDefaultExecution'](()=>_0x2b8344(_0x373460,_0x256b4d,_0x266801)),null;}_0xd2b29e['push'](..._0x373460);let _0x13a3ae=!0x0;for(const _0x5a5313 of _0xd2b29e)if(!this['_rangeIsInLocalUserInsertion'](_0x5a5313)){_0x13a3ae=!0x1;break;}if(_0x13a3ae&&'always'!==this['_trackFormatChanges']){const _0x4a3d5c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bac5c,'accept');return this['forceDefaultExecution'](()=>_0x4a3d5c(_0x373460,_0x256b4d,_0x266801)),null;}const _0xe77915=this['editor']['plugins']['get']('Users')['me'];for(const _0x2a1178 of this['getSuggestions']()){if(_0x2a1178['author']['id']!=_0xe77915['id'])continue;if('formatBlock'!=_0x2a1178['type']||_0x2a1178['data']['formatGroupId']!=_0x256b4d['formatGroupId'])continue;if(!Qt(_0x2a1178,_0x266801))continue;const _0x263963=_0x2a1178['subType']==_0x2bac5c;for(let _0x3168b7=0x0;_0x3168b7<_0x373460['length'];_0x3168b7++){const _0x29f212=_0x373460[_0x3168b7];for(const _0x5ee888 of _0x2a1178['getMarkers']()){const _0x267ea8=_0x5ee888['getRange']();if(_0x29f212['isEqual'](_0x267ea8)){_0x263963?(_0x373460['splice'](_0x3168b7,0x1),_0x3168b7--):_0x2a1178['removeMarker'](_0x5ee888['name']);break;}}}}if(0x0==_0x373460['length'])return null;const _0x155105=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bac5c,'join');for(const _0x27950f of this['getSuggestions']())if(_0x27950f['author']['id']==_0xe77915['id']&&'formatBlock'==_0x27950f['type']&&_0x27950f['data']['formatGroupId']==_0x256b4d['formatGroupId']&&_0x27950f['subType']==_0x2bac5c&&Qt(_0x27950f,_0x266801)&&(_0x155105(_0x27950f['getRanges'](),_0x373460)||_0x155105(_0x373460,_0x27950f['getRanges']()))){for(const _0xecc2b5 of _0x373460)_0x27950f['addRange'](_0xecc2b5);return _0x27950f;}const _0x4d92c8=_0x2a43ef(),_0x25dc1e=_0xe77915['id'],_0x1daf95='formatBlock:'+_0x2bac5c,_0x419d42=this['_setSuggestionData']({'id':_0x4d92c8,'type':_0x1daf95,'data':_0x256b4d,'createdAt':new Date(),'authorId':_0x25dc1e,'attributes':_0x266801});for(const _0x334cc9 of _0x373460)this['_addSuggestionMarker'](_0x1daf95,_0x4d92c8,_0x25dc1e,_0x334cc9,u['getMultiRangeId']());return _0x419d42;}['markDeletion'](_0x24ea61,_0x55d922=null,_0x55194b={}){if(_0x24ea61['isCollapsed'])return null;const _0x223ab7=this['editor']['plugins']['get']('Users')['me'],_0xf69a37=new _0x49f219(_0x24ea61['start'],_0x24ea61['end']);for(const {suggestion:_0x236233,meta:_0x1f350f}of this['_findSuggestions'](_0xf69a37,'insertion'))if(_0x1f350f['isOwn']&&!_0x1f350f['isNextTo']){if(_0x236233['isMultiRange']){const _0x4f017d=_0x236233['getRanges']()['filter'](_0x39a0bb=>'$graveyard'!=_0x39a0bb['root']['rootName']);_0x4f017d['every'](_0x4445b7=>_0xf69a37['containsRange'](_0x4445b7,!0x0))&&_0x236233['discard']();if(_0x4f017d['some'](_0xba426f=>_0xba426f['containsRange'](_0xf69a37,!0x0))){const _0x5d41ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x55d922,'accept');return this['forceDefaultExecution'](()=>_0x5d41ba([_0xf69a37],null,_0x55194b)),null;}}else{const _0x14dae8=_0xf69a37['getIntersection'](_0x236233['getFirstRange']());null!==_0x14dae8&&_0x236233['_onDiscard']([_0x14dae8],null,_0x55194b);}}if(_0xf69a37['detach'](),_0xf69a37['isCollapsed']||'$graveyard'==_0xf69a37['root']['rootName'])return null;let _0x20f577=null,_0x39abca=_0xf69a37['start'],_0x3360f9=_0xf69a37['end'];const _0x559ec9=this['_findSuggestions'](_0xf69a37,'deletion');for(const {suggestion:_0x4fa415,meta:_0x56e987}of _0x559ec9){const _0x5f1209=this['_model']['createRange'](_0x39abca,_0x3360f9);if(_0x56e987['isOwn']&&(this['_mergeNestedSuggestions']||!_0x56e987['containsRangeInObject']&&!_0x56e987['isInsideObject'])){if(_0x4fa415['isMultiRange']){if(!Qt(_0x4fa415,_0x55194b))continue;let _0x13b3f2=!0x0;for(const _0xb8e148 of _0x4fa415['getRanges']()){if(_0xb8e148['containsRange'](_0x5f1209,!0x0))return _0x4fa415;_0x5f1209['containsRange'](_0xb8e148)||(_0x13b3f2=!0x1);}_0x13b3f2&&_0x4fa415['discard']();}else{const _0x5cf655=_0x4fa415['getFirstRange']();if(_0x5cf655['containsRange'](_0x5f1209,!0x0))return _0x4fa415;if(!Qt(_0x4fa415,_0x55194b)){_0x5f1209['containsRange'](_0x5cf655)?_0x4fa415['removeMarkers']():_0x5cf655['containsPosition'](_0x39abca)?_0x39abca=_0x5cf655['end']:_0x5cf655['containsPosition'](_0x3360f9)&&(_0x3360f9=_0x5cf655['start']);continue;}_0x39abca=_0x39abca['isBefore'](_0x5cf655['start'])?_0x39abca:_0x5cf655['start'],_0x3360f9=_0x3360f9['isAfter'](_0x5cf655['end'])?_0x3360f9:_0x5cf655['end'],_0x55194b=Object['assign']({},_0x4fa415['attributes']),_0x20f577?_0x5cf655['start']['isBefore'](_0x20f577['getFirstRange']()['start'])?(_0x20f577['removeMarkers'](),_0x20f577=_0x4fa415):_0x4fa415['removeMarkers']():_0x20f577=_0x4fa415;}}}if(_0x20f577)return this['_setSuggestionRange'](_0x20f577,this['_model']['createRange'](_0x39abca,_0x3360f9)),_0x20f577;{const _0x3df6d6=_0x2a43ef(),_0x8e179a=this['_model']['createRange'](_0x39abca,_0x3360f9),_0x3c2d09=_0x223ab7['id'],_0x14eae6=_0x55d922?'deletion:'+_0x55d922:'deletion',_0x268618=this['_setSuggestionData']({'id':_0x3df6d6,'type':_0x14eae6,'createdAt':new Date(),'authorId':_0x3c2d09,'attributes':_0x55194b});return this['_addSuggestionMarker'](_0x14eae6,_0x3df6d6,_0x3c2d09,_0x8e179a),_0x268618;}}['markMultiRangeDeletion'](_0x3e1c45,_0x325313='multi',_0x5e0910={}){const _0x5047cc=this['editor']['plugins']['get']('Users')['me'],_0x22b46e=_0x3e1c45['map'](_0x1bc35a=>new _0x49f219(_0x1bc35a['start'],_0x1bc35a['end'])),_0x1f945b=new Set();for(const {suggestion:_0x4eb7d7,meta:_0xe72462}of this['_findSuggestions'](_0x22b46e,'insertion'))_0xe72462['isOwn']&&!_0xe72462['isNextTo']&&_0x1f945b['add'](_0x4eb7d7);for(const _0x2f0610 of _0x1f945b)if(_0x2f0610['isMultiRange']){const _0x3eb204=_0x2f0610['getRanges']();(!_0x2f0610['attributes']||!_0x2f0610['attributes']['skipNestingCheck'])&&(_0x3eb204['every'](_0x3554e7=>_0x22b46e['some'](_0x991e08=>_0x991e08['containsRange'](_0x3554e7,!0x0)))&&_0x2f0610['discard']());if(_0x22b46e['every'](_0x179b03=>_0x3eb204['some'](_0x224380=>_0x224380['containsRange'](_0x179b03,!0x0)))){const _0xa0130=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x325313,'accept');return this['forceDefaultExecution'](()=>_0xa0130(_0x3e1c45,null,_0x5e0910)),null;}}else{const _0x342d4d=_0x2f0610['getFirstRange']();_0x22b46e['some'](_0x490303=>_0x490303['containsRange'](_0x342d4d,!0x0))&&_0x2f0610['discard']();if(_0x22b46e['every'](_0x4cd20a=>_0x342d4d['containsRange'](_0x4cd20a,!0x0))){const _0x4e2a05=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x325313,'accept');return this['forceDefaultExecution'](()=>_0x4e2a05(_0x22b46e,null,_0x5e0910)),null;}}const _0x473387=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x325313,'join');let _0x34f613=null;for(const _0xc313d8 of this['getSuggestions']())if(_0xc313d8['author']['id']==_0x5047cc['id']&&_0xc313d8['isInContent']&&'deletion'==_0xc313d8['type']&&_0xc313d8['subType']==_0x325313&&Qt(_0xc313d8,_0x5e0910)&&(_0x473387(_0xc313d8['getRanges'](),_0x22b46e)||_0x473387(_0x22b46e,_0xc313d8['getRanges']()))){if(_0x34f613){if(_0xc313d8['commentThread']&&_0xc313d8['commentThread']['length'])continue;for(const _0x31a2d2 of _0xc313d8['getRanges']())_0x34f613['isIntersectingWithRange'](_0x31a2d2)||_0x34f613['addRange'](_0x31a2d2);_0xc313d8['removeMarkers']();}else{_0x34f613=_0xc313d8;for(const _0x3f4816 of _0x22b46e)_0xc313d8['isIntersectingWithRange'](_0x3f4816)||_0xc313d8['addRange'](_0x3f4816);}}if(_0x34f613)return _0x34f613;_0x1f945b['clear']();for(const {suggestion:_0x591857,meta:_0x59fffa}of this['_findSuggestions'](_0x22b46e,'deletion'))_0x59fffa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x59fffa['containsRangeInObject']&&!_0x59fffa['isInsideObject'])&&Qt(_0x591857,_0x5e0910)&&_0x1f945b['add'](_0x591857);for(const _0x5d4169 of _0x1f945b){const _0x4c3620=_0x5d4169['getRanges']();if(!_0x5e0910||!_0x5e0910['skipNestingCheck']){if(_0x22b46e['every'](_0x532dfb=>_0x4c3620['some'](_0x20f5e4=>_0x20f5e4['containsRange'](_0x532dfb,!0x0))))return _0x5d4169;}(!_0x5d4169['attributes']||!_0x5d4169['attributes']['skipNestingCheck'])&&(_0x4c3620['every'](_0x5a5376=>_0x22b46e['some'](_0x40d113=>_0x40d113['containsRange'](_0x5a5376,!0x0)))&&_0x5d4169['discard']());}const _0x731624=_0x2a43ef(),_0x457dc2=_0x5047cc['id'],_0x3e5aab='deletion:'+_0x325313,_0x46c1f7=this['_setSuggestionData']({'id':_0x731624,'type':_0x3e5aab,'createdAt':new Date(),'authorId':_0x457dc2,'attributes':_0x5e0910});for(const _0x406d65 of _0x22b46e)_0x406d65['detach'](),_0x406d65['isCollapsed']||'$graveyard'==_0x406d65['root']['rootName']||this['_addSuggestionMarker'](_0x3e5aab,_0x731624,_0x457dc2,_0x406d65,u['getMultiRangeId']());return _0x46c1f7;}['markAttributeChange'](_0x49c40,_0x2e48d5,_0xdb5c18,_0x3215f6,_0x58e1de){if(_0x49c40['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x14c091=this['editor']['plugins']['get']('Users')['me']['id'],_0x3c413b=Array['from'](this['_suggestions']['values']())['filter'](_0x387997=>'attribute'==_0x387997['type']&&_0x387997['data']['key']==_0x2e48d5&&_0x387997['isIntersectingWithRange'](_0x49c40));if('default'===this['_trackFormatChanges']){const _0x1c098e=this['_findSuggestions'](_0x49c40,'insertion')['filter'](({meta:_0x423a8f})=>_0x423a8f['isOwn']&&!_0x423a8f['isInsideObject']&&!_0x423a8f['isNextTo'])['map'](({suggestion:_0x166aee})=>_0x166aee);_0x3c413b['unshift'](..._0x1c098e);}const _0x2a9e13=new Map([[_0x49c40,_0xdb5c18]]);for(const _0x2f2432 of _0x3c413b){const _0x3eba01='attribute'==_0x2f2432['type']?_0x2f2432['data']['oldValue']:void 0x0,_0x25568e=_0x2f2432['getFirstRange'](),_0x5b8858=Array['from'](_0x2a9e13['keys']())['find'](_0x47629f=>_0x47629f['isIntersecting'](_0x25568e));if(!_0x5b8858)continue;const _0x5de683=_0x5b8858['getDifference'](_0x25568e);this['_isBlockAttribute'](_0x2e48d5)&&'insertion'==_0x2f2432['type']&&0x0!=_0x5de683['length']||(_0x2a9e13['delete'](_0x5b8858),_0x5de683['forEach'](_0x396a01=>{_0x2a9e13['set'](_0x396a01,_0xdb5c18);}),'insertion'!=_0x2f2432['type']&&_0x3eba01!=_0x3215f6&&_0x2a9e13['set'](_0x5b8858['getIntersection'](_0x25568e),_0x3eba01));}const _0x2a0cd9=[];for(const [_0x25afdf,_0x3504f9]of _0x2a9e13){const _0x5bd10c=_0x2a43ef(),_0x4f3e14={'key':_0x2e48d5,'oldValue':_0x3504f9,'newValue':_0x3215f6};_0x2e48d5['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':_0x2e48d5});const _0x316e03=('attribute:'+(_0x2e48d5+'|'+Jt({'newValue':_0x3215f6})))['substring'](0x0,0x3c),_0x100009=this['_setSuggestionData']({'id':_0x5bd10c,'type':_0x316e03,'data':_0x4f3e14,'createdAt':new Date(),'authorId':_0x14c091,'attributes':_0x58e1de});_0x2a0cd9['push'](_0x100009),this['_addSuggestionMarker'](_0x316e03,_0x5bd10c,_0x14c091,_0x25afdf);}return _0x2a0cd9;}['enableDefaultAttributesIntegration'](_0x2732a2){this['enableCommand'](_0x2732a2,(_0x4a57b8,..._0x3a4c5d)=>{this['_recordAttributeChanges'](()=>{_0x4a57b8(..._0x3a4c5d);});});}['registerBlockAttribute'](_0x534759){this['_blockAttributeKeys']['add'](_0x534759);}['registerInlineAttribute'](_0x8267cc){this['_inlineAttributeKeys']['add'](_0x8267cc);}['_getAttributeKey'](_0x243b65){return'attribute'==_0x243b65['type']?_0x243b65['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1243b6,_0x5ddf40){const _0x6d88b=_0x1243b6['getFirstMarker']();this['_model']['change'](_0x34c484=>{_0x34c484['updateMarker'](_0x6d88b,{'range':_0x5ddf40});});}['_addThreadToSuggestion'](_0xf9c5a7){const _0x1336ac=_0xf9c5a7['id'],_0x2d40fd=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1336ac)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2d40fd,'threadId':_0x1336ac,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x42dfae=this['_commentsRepository']['getCommentThread'](_0x1336ac);_0x42dfae['unbind']('isRemovable'),_0x42dfae['isRemovable']=!0x1,_0xf9c5a7['commentThread']=_0x42dfae;}['_checkSuggestionCorrectness'](_0xdd9dae,_0xf24aec,_0x1d4f40,_0x61aec0){if(_0xdd9dae['type']!=_0xf24aec||_0xdd9dae['subType']!=_0x1d4f40||_0xdd9dae['creator']['id']!=_0x61aec0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4fb61a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3f7815,_0x5281ab){const _0x4efb5d=_0x3f7815['getFirstRange']();if(_0x5281ab['isEqual'](_0x4efb5d))_0x3f7815['removeMarkers']();else{if(_0x4efb5d['containsRange'](_0x5281ab)){const _0x1b6eba=this['_model']['createPositionAt'](_0x5281ab['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f7815,this['_model']['createRange'](_0x4efb5d['start'],_0x1b6eba));const _0x5d8d26=_0x2a43ef(),_0x1c9729=_0x3f7815['creator']['id'],_0x360204=_0x3f7815['type']+':'+_0x3f7815['subType'];this['_setSuggestionData']({'id':_0x5d8d26,'type':_0x360204,'createdAt':new Date(),'authorId':_0x1c9729,'data':_0x3f7815['data'],'attributes':_0x3f7815['attributes']});const _0x2b0fd3=this['_model']['createPositionAt'](_0x5281ab['end']['parent'],'after'),_0x3cdf6d=this['_model']['createRange'](_0x2b0fd3,_0x4efb5d['end']);this['_addSuggestionMarker'](_0x360204,_0x5d8d26,_0x1c9729,_0x3cdf6d);}else{if(_0x4efb5d['containsPosition'](_0x5281ab['start'])){const _0x2db467=this['_model']['createPositionAt'](_0x5281ab['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f7815,this['_model']['createRange'](_0x4efb5d['start'],_0x2db467));}else{const _0x442034=this['_model']['createPositionAt'](_0x5281ab['end']['parent'],'after');this['_setSuggestionRange'](_0x3f7815,this['_model']['createRange'](_0x442034,_0x4efb5d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x513fa5){for(const {suggestion:_0x57b57c,meta:_0x185781}of this['_findSuggestions'](_0x513fa5,'insertion')){if(!_0x185781['isOwn'])continue;const _0x1f0e84=_0x57b57c['getRanges']();for(const _0x2cd0e9 of _0x1f0e84)if(!_0x513fa5['getDifference'](_0x2cd0e9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5b6292){const _0x588c78=this['editor']['plugins']['get']('Users')['getUser'](_0x5b6292);if(!_0x588c78)throw new _0x4fb61a('track-changes-user-not-found',this);return _0x588c78;}['_getExternalAuthor'](_0x8c3646){const _0x44b442=this['editor']['plugins']['get']('Users'),_0x2d7bf2=_0x1fabfe('external:'+_0x8c3646),_0x156f8f=_0x44b442['getUser'](_0x2d7bf2);return _0x156f8f||_0x44b442['addUser']({'id':_0x2d7bf2,'name':_0x8c3646});}['_createSuggestion'](_0x289a8c,_0x2fa71b,_0x4d62e5,_0x25b69d,_0x1b1ec8){const _0x360aed=this['_getAuthorFromId'](_0x25b69d),_0x520df6=this['_suggestionFactory']['buildSuggestion'](_0x289a8c,_0x2fa71b,_0x4d62e5,_0x360aed,_0x1b1ec8,_0x59b1a6=>{this['_updateSuggestionData'](_0x4d62e5,{'attributes':_0x59b1a6});const _0x1a557f=this['getSuggestion'](_0x4d62e5);this['_joinWithAdjacentSuggestions'](new Set([_0x1a557f])),this['_refreshSuggestionsChain'](new Set([_0x1a557f]));});return this['listenTo'](_0x520df6,'accept',()=>{this['_updateSuggestionData'](_0x4d62e5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x520df6,'discard',()=>{this['_updateSuggestionData'](_0x4d62e5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4d62e5,_0x520df6),this['_suggestionState']['set'](_0x520df6,'notReady'),_0x520df6;}['_splitMarkerName'](_0x462814){const _0x129933=_0x462814['split'](':');return{'group':_0x129933[0x0],'type':_0x129933[0x1],'subType':_0x129933['length']>=0x5?_0x129933[0x2]:null,'id':_0x129933['length']<0x5?_0x129933[0x2]:_0x129933[0x3],'authorId':_0x129933['length']<0x5?_0x129933[0x3]:_0x129933[0x4],'markerCount':0x6==_0x129933['length']?_0x129933[0x5]:null};}['_breakSuggestionMarker'](_0xf99f2d,_0xd4391c,_0x3c04c1){const _0x66ae=_0xf99f2d['getFirstRange'](),_0x5263a8=_0x66ae['start'],_0x23e155=_0x66ae['end'];this['_setSuggestionRange'](_0xf99f2d,this['_model']['createRange'](_0x5263a8,_0xd4391c));const _0x53c3e8=_0x2a43ef(),_0x412121=_0xf99f2d['creator']['id'],_0x3f1c16=_0xf99f2d['type']+(_0xf99f2d['subType']?':'+_0xf99f2d['subType']:'');this['_setSuggestionData']({'id':_0x53c3e8,'type':_0x3f1c16,'createdAt':new Date(),'authorId':_0x412121,'originalSuggestionId':_0xf99f2d['id'],'attributes':_0xf99f2d['attributes'],'data':_0xf99f2d['data']});const _0x354743=this['_getAttributeKey'](_0xf99f2d);('formatBlock'==_0xf99f2d['type']||_0x354743&&this['_isBlockAttribute'](_0x354743))&&(_0x3c04c1=this['_model']['createPositionBefore'](_0x3c04c1['parent'])),this['_addSuggestionMarker'](_0x3f1c16,_0x53c3e8,_0x412121,this['_model']['createRange'](_0x3c04c1,_0x23e155));}['_findSuggestions'](_0x574ef5,_0xc1eaad=null){const _0x570089=[],_0x1d74ca=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x574ef5)||(_0x574ef5=[_0x574ef5]);for(const _0x141c7c of this['getSuggestions']()){if(!_0x141c7c['isInContent'])continue;if(_0xc1eaad&&_0x141c7c['type']!=_0xc1eaad)continue;let _0x9cf6de=!0x1;for(const _0x5f0d4b of _0x141c7c['getRanges']()){for(const _0x511da0 of _0x574ef5){const _0xced31f=_0x511da0['start']['isEqual'](_0x5f0d4b['end'])||_0x511da0['end']['isEqual'](_0x5f0d4b['start']);if(_0xced31f||_0x511da0['getIntersection'](_0x5f0d4b)){const _0x34f8f5=_0x511da0['containsRange'](_0x5f0d4b)&&Gt(this['_model']['schema'],_0x5f0d4b['start'],_0x511da0),_0x2f0133=_0x5f0d4b['containsRange'](_0x511da0)&&Gt(this['_model']['schema'],_0x511da0['start'],_0x5f0d4b);_0x570089['push']({'suggestion':_0x141c7c,'meta':{'isOwn':_0x1d74ca==_0x141c7c['author'],'isNextTo':_0xced31f,'isInsideObject':_0x34f8f5,'containsRangeInObject':_0x2f0133}}),_0x9cf6de=!0x0;break;}}if(_0x9cf6de)break;}}return _0x570089;}['_addSuggestionMarker'](_0x318dbe,_0x4d4063,_0x478ca4,_0x4dab0a,_0x39c01c){this['_model']['change'](_0x141e2c=>{let _0x23e659='suggestion:'+_0x318dbe+':'+_0x4d4063+':'+_0x478ca4;_0x39c01c&&(_0x23e659=_0x23e659+':'+_0x39c01c),_0x141e2c['addMarker'](_0x23e659,{'range':_0x4dab0a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1e3cd9){const _0x268edd=_0x1e3cd9['previous'],_0x47060d=_0x1e3cd9['next'];_0x1e3cd9['previous']=null,_0x1e3cd9['next']=null,null!=_0x268edd&&_0x268edd['next']==_0x1e3cd9&&(_0x268edd['next']=_0x47060d),null!=_0x47060d&&_0x47060d['previous']==_0x1e3cd9&&(_0x47060d['previous']=_0x268edd),'ready'==this['_suggestionState']['get'](_0x1e3cd9)&&(this['_suggestionState']['set'](_0x1e3cd9,'removed'),this['fire']('suggestionUnloaded',_0x1e3cd9,_0x268edd,_0x47060d));}['_setSuggestionData'](_0x5bfc5e){const _0xfe1d38=_0x5bfc5e['id'],_0x58249e=this['addSuggestionData'](_0x5bfc5e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3639c7=this['editor']['plugins']['get']('PendingActions'),_0x4f1cd3=_0x58249e['hasComments'],_0x5eee45=_0x58249e['subType']?_0x58249e['type']+':'+_0x58249e['subType']:_0x58249e['type'],_0x5734cf=this['editor']['locale'],_0x1ae655=_0x3639c7['add'](o(_0x5734cf,'PENDING_ACTION_SUGGESTION')),_0x5c5609={'id':_0xfe1d38,'type':_0x5eee45,'hasComments':_0x4f1cd3,'data':_0x5bfc5e['data']||null,'originalSuggestionId':_0x5bfc5e['originalSuggestionId']||null,'attributes':_0x58249e['attributes']};this['_adapter']['addSuggestion'](_0x5c5609)['then'](_0x577274=>{_0x58249e['_saved']=!0x0,_0x3639c7['remove'](_0x1ae655),_0x577274&&_0x577274['createdAt']&&(this['_suggestions']['get'](_0xfe1d38)['createdAt']=_0x577274['createdAt']);})['catch'](_0x28938a=>{throw _0xf3f8c9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x58249e['discard']();}),_0x58249e['stopListening'](),this['_suggestions']['delete'](_0x58249e['id']),this['_suggestionState']['delete'](_0x58249e),_0x28938a;});}return _0x58249e;}['_isBlockAttribute'](_0x26f540){return this['_blockAttributeKeys']['has'](_0x26f540);}['_updateSuggestionData'](_0x3eb46f,_0x5c099b){const _0x177afa=this['editor']['plugins']['get']('PendingActions'),_0x1c2da5=this['getSuggestion'](_0x3eb46f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1c2da5['_saved']){const _0x4beee5=_0x177afa['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3eb46f,_0x5c099b)['then'](()=>{_0x177afa['remove'](_0x4beee5);});}else _0x1c2da5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3eb46f,_0x5c099b);});}}['_getSuggestionData'](_0xa0426d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4fb61a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xa0426d);}['_handleNewSuggestionMarker'](_0xc5a2de){const {id:_0x4ab270,type:_0x23fa72,subType:_0x291ad1,authorId:_0x3764c7}=this['_splitMarkerName'](_0xc5a2de),_0x286144=this['_suggestions']['get'](_0x4ab270)||this['_createSuggestion'](_0x23fa72,_0x291ad1,_0x4ab270,_0x3764c7,{});switch(this['_checkSuggestionCorrectness'](_0x286144,_0x23fa72,_0x291ad1,_0x3764c7),this['_suggestionState']['get'](_0x286144)){case'notReady':this['_getSuggestionData'](_0x4ab270)['then'](_0x1cfbf8=>{let _0x14a32a=Promise['resolve']();_0x1cfbf8['hasComments']&&(_0x14a32a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4ab270})),_0x14a32a['then'](()=>{this['addSuggestionData'](_0x1cfbf8)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x286144,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4ab270,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x286144,'ready'),this['fire']('suggestionLoaded',_0x286144);break;case'ready':this['fire']('suggestionChanged',_0x286144);}return _0x286144['addMarkerName'](_0xc5a2de),_0x286144;}['_refreshSuggestionsChain'](_0x26c23b){const _0x189195=Array['from'](_0x26c23b),_0x436796=_0x189195['filter'](_0x23960b=>'attribute'==_0x23960b['type']);this['_refreshAttributeSuggestionsChain'](_0x436796);const _0x1f7d25=_0x189195['filter'](_0x4ab48d=>!_0x4ab48d['isMultiRange']&&'attribute'!=_0x4ab48d['type']),_0x41c2c8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a6b21=>!_0x2a6b21['isMultiRange']&&'attribute'!=_0x2a6b21['type']),_0x3686c8=_0x41c2c8['filter'](_0x24defa=>!_0x26c23b['has'](_0x24defa)),_0x4bd108=new Map(_0x41c2c8['map'](_0x22d99a=>[_0x22d99a,this['_suggestionFactory']['getSuggestionCallback'](_0x22d99a['type'],_0x22d99a['subType'],'chain')])),_0x4b19e0=new Map(_0x41c2c8['map'](_0x4b5103=>[_0x4b5103,_0x4b5103['getFirstRange']()])),_0x502686=new Set(),_0x22ed38=new Set();for(let _0x422178=0x0;_0x422178<_0x1f7d25['length'];_0x422178++)_0x88a8d8(_0x1f7d25[_0x422178],_0x1f7d25,_0x422178+0x1);for(let _0x6e3946=0x0;_0x6e3946<_0x1f7d25['length'];_0x6e3946++)_0x88a8d8(_0x1f7d25[_0x6e3946],_0x3686c8,0x0);const _0x35c6b4=new Set();for(let _0x4461f6=0x0;_0x4461f6<_0x1f7d25['length'];_0x4461f6++){const _0x3ec1d9=_0x1f7d25[_0x4461f6];!_0x22ed38['has'](_0x3ec1d9)&&_0x3ec1d9['previous']&&(_0x35c6b4['add'](_0x3ec1d9['previous']),_0x3ec1d9['previous']['next']===_0x3ec1d9&&(_0x3ec1d9['previous']['next']=null),_0x3ec1d9['previous']=null),!_0x502686['has'](_0x3ec1d9)&&_0x3ec1d9['next']&&(_0x35c6b4['add'](_0x3ec1d9['next']),_0x3ec1d9['next']['previous']===_0x3ec1d9&&(_0x3ec1d9['next']['previous']=null),_0x3ec1d9['next']=null);}function _0x88a8d8(_0x214898,_0x14b76e,_0x1194d1){for(let _0x35a4fe=_0x1194d1;_0x35a4fe<_0x14b76e['length'];_0x35a4fe++){const _0x3ae967=_0x1a97a3(_0x214898,_0x14b76e[_0x35a4fe]);_0x3ae967&&(_0x3ae967[0x0]['next']=_0x3ae967[0x1],_0x3ae967[0x1]['previous']=_0x3ae967[0x0],_0x502686['add'](_0x3ae967[0x0]),_0x22ed38['add'](_0x3ae967[0x1]));}}function _0x1a97a3(_0x307bed,_0x5b6cea){if(_0x307bed['author']['id']!==_0x5b6cea['author']['id'])return null;const _0x495e9f=_0x4bd108['get'](_0x307bed)(_0x307bed,_0x5b6cea,_0x4b19e0['get'](_0x307bed),_0x4b19e0['get'](_0x5b6cea));if(!_0x495e9f)return null;return _0x4bd108['get'](_0x5b6cea)(_0x307bed,_0x5b6cea,_0x4b19e0['get'](_0x307bed),_0x4b19e0['get'](_0x5b6cea))?_0x495e9f[0x1]['commentThread']&&_0x495e9f[0x1]['commentThread']['length']?null:_0x495e9f:null;}_0x35c6b4['size']&&this['_refreshSuggestionsChain'](_0x35c6b4);}['_refreshAttributeSuggestionsChain'](_0x47dc33){if(0x0==_0x47dc33['length'])return;const _0x5643ca=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d0680=>'attribute'==_0x1d0680['type']&&_0x1d0680['_isDataLoaded']),_0x3ca4de=[],_0x3a0e81=new Map();for(const _0xca8f65 of _0x5643ca){const _0x2f437b=_0x1fabfe(_0xca8f65['attributes']);_0x3a0e81['has'](_0x2f437b)||(_0x3a0e81['set'](_0x2f437b,_0x3ca4de['length']),_0x3ca4de['push']([]));const _0x29ecef=_0x3a0e81['get'](_0x2f437b);_0x3ca4de[_0x29ecef]['push'](_0xca8f65);}!(function(){_0x3ca4de['sort']((_0x5da8d2,_0x4bd96f)=>{const _0x3c1f3e=_0x5da8d2[0x0]['createdAt'],_0x20d20b=_0x4bd96f[0x0]['createdAt'];return _0x3c1f3e==_0x20d20b?_0x5da8d2[0x0]['attributes']['groupId']<_0x4bd96f[0x0]['attributes']['groupId']?-0x1:0x1:_0x3c1f3e<_0x20d20b?-0x1:0x1;});for(const _0x29159b of _0x3ca4de)_0x29159b['sort']((_0x391153,_0x3149cc)=>_0x391153['id']<_0x3149cc['id']?-0x1:0x1);}());for(let _0x2c08a2=0x0;_0x2c08a2<_0x3ca4de['length'];_0x2c08a2++){if(0x0==_0x3ca4de[_0x2c08a2]['length'])continue;const _0x3ef3e1=[];for(let _0x4406d1=_0x2c08a2+0x1;_0x4406d1<_0x3ca4de['length'];_0x4406d1++)0x0!=_0x3ca4de[_0x4406d1]['length']&&_0x50cdf2(_0x3ca4de[_0x2c08a2],_0x3ca4de[_0x4406d1])&&_0x3ef3e1['push'](_0x4406d1);for(const _0x5521fc of _0x3ef3e1)_0x3ca4de[_0x2c08a2]=_0x3ca4de[_0x2c08a2]['concat'](_0x3ca4de[_0x5521fc]),_0x3ca4de[_0x5521fc]=[];}for(const _0x19fe85 of _0x3ca4de)for(let _0x1c15db=0x0;_0x1c15db<_0x19fe85['length'];_0x1c15db++){const _0xa412b6=_0x19fe85[_0x1c15db+0x1]||null;_0x19fe85[_0x1c15db]['next']!==_0xa412b6&&(_0x19fe85[_0x1c15db]['next']=_0xa412b6);}for(const _0x42b7a7 of _0x3ca4de)for(let _0x52eb8b=0x0;_0x52eb8b<_0x42b7a7['length'];_0x52eb8b++){const _0x1b39c8=_0x42b7a7[_0x52eb8b-0x1]||null;_0x42b7a7[_0x52eb8b]['previous']!==_0x1b39c8&&(_0x42b7a7[_0x52eb8b]['previous']=_0x1b39c8);}function _0x50cdf2(_0x213be6,_0x59da8d){if(_0x213be6[0x0]['attributes']['groupId']!==_0x59da8d[0x0]['attributes']['groupId']&&_0x213be6[0x0]['author']!==_0x59da8d[0x0]['author'])return!0x1;if(!function(_0x50a855,_0xda21be){if(!_0x50a855['hasComments']&&!_0xda21be['hasComments'])return!0x0;if(_0x50a855['hasComments']&&_0xda21be['hasComments'])return!0x1;if(_0x50a855['hasComments']&&_0xda21be['createdAt']<_0x50a855['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xda21be['hasComments']&&_0x50a855['createdAt']<_0xda21be['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x213be6[0x0],_0x59da8d[0x0]))return!0x1;const _0x5165c9=Vt(_0x213be6[0x0]['attributes'],'groupId'),_0x3f915c=Vt(_0x59da8d[0x0]['attributes'],'groupId');if(!_0xabd137(_0x5165c9,_0x3f915c))return!0x1;return!!_0x213be6['every'](_0x140881=>_0x59da8d['some'](_0x3657ba=>_0x140881['getFirstRange']()['isEqual'](_0x3657ba['getFirstRange']())))&&_0x59da8d['every'](_0x438c6b=>_0x213be6['some'](_0xabc957=>_0x438c6b['getFirstRange']()['isEqual'](_0xabc957['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5623ed){const _0x278224=Array['from'](_0x5623ed),_0x233d61=this['getSuggestions']({'skipNotAttached':!0x0}),_0xa59ae=_0x233d61['filter'](_0x3572f4=>!_0x5623ed['has'](_0x3572f4)),_0x4ad95e=new Map(_0x278224['map'](_0x837785=>[_0x837785,this['_suggestionFactory']['getSuggestionCallback'](_0x837785['type'],_0x837785['subType'],'join')])),_0x2a55cc=new Map(_0x233d61['map'](_0x3129a6=>[_0x3129a6,_0x3129a6['getRanges']()]));for(let _0x5b6f15=0x0;_0x5b6f15<_0x278224['length'];_0x5b6f15++){if(_0x23ecce(this,_0x278224[_0x5b6f15],_0x278224,_0x5b6f15+0x1))return!0x0;}for(let _0x299a74=0x0;_0x299a74<_0x278224['length'];_0x299a74++){if(_0x23ecce(this,_0x278224[_0x299a74],_0xa59ae,0x0))return!0x0;}return!0x1;function _0x23ecce(_0x441db9,_0x17f33e,_0xefc5f3,_0x59ccbb){for(let _0x5002da=_0x59ccbb;_0x5002da<_0xefc5f3['length'];_0x5002da++){const _0x50b5e9=_0xefc5f3[_0x5002da];if(_0x50b5e9['type']!==_0x17f33e['type']||_0x50b5e9['author']['id']!==_0x17f33e['author']['id']||_0x50b5e9['subType']!==_0x17f33e['subType'])continue;if(!Wt(_0x17f33e,_0x50b5e9))continue;if('attribute'==_0x17f33e['type']&&_0x17f33e['data']['oldValue']!=_0x50b5e9['data']['oldValue'])continue;if('attribute'==_0x17f33e['type']&&_0x441db9['_isBlockAttribute'](_0x17f33e['data']['key']))continue;if('formatBlock'==_0x17f33e['type']){const _0x13e882=_0x441db9['editor']['model'],_0x715e70=_0x17f33e['getContainedElement']();if(_0x715e70&&(_0x13e882['schema']['isObject'](_0x715e70)||_0x13e882['schema']['isLimit'](_0x715e70)))continue;}const _0x5b6f8f=_0x4ad95e['get'](_0x17f33e),_0x22428e=_0x2a55cc['get'](_0x17f33e),_0x3ef205=_0x2a55cc['get'](_0x50b5e9),_0x16435e=_0x17f33e['commentThread']&&_0x17f33e['commentThread']['length'],_0x3cfdf0=_0x50b5e9['commentThread']&&_0x50b5e9['commentThread']['length'];if(!_0x16435e&&_0x5b6f8f(_0x3ef205,_0x22428e))return _0x441db9['_joinSuggestions'](_0x50b5e9,_0x17f33e),_0x2a55cc['delete'](_0x17f33e),!0x0;if(!_0x3cfdf0&&_0x5b6f8f(_0x22428e,_0x3ef205))return _0x441db9['_joinSuggestions'](_0x17f33e,_0x50b5e9),_0x2a55cc['delete'](_0x50b5e9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x89e78b,_0x2fc169){if(_0x89e78b['isMultiRange']){for(const _0x3389fd of _0x2fc169['getRanges']())_0x89e78b['addRange'](_0x3389fd);}else{const _0x5f2c8e=_0x2fc169['getFirstRange']()['end'];this['_setSuggestionRange'](_0x89e78b,this['_model']['createRange'](_0x89e78b['getFirstRange']()['start'],_0x5f2c8e));}_0x2fc169['removeMarkers']();}['_getMarkerAnnouncementText'](_0xcb9f2e,_0xb567ad,_0x3fc24d){const _0x29c5d0=_0xcb9f2e['startsWith']('format')||_0xcb9f2e['startsWith']('attribute')?'FORMATTING':_0xcb9f2e['toUpperCase']();return o(this['editor']['locale'],_0xb567ad+'_'+_0x29c5d0+'_SUGGESTION_ANNOUNCEMENT',_0x3fc24d);}['_initAriaMarkerChangeAnnouncements'](){const _0x327fc7=this['editor'];if(!_0x327fc7['ui'])return;const {ariaLiveAnnouncer:_0x145fc9}=_0x327fc7['ui'];_0x34598a(this['_model'],({left:_0x339328,entered:_0x8f018})=>{for(const _0x6b76e3 of _0x339328){const {group:_0x465387,type:_0x321747}=this['_splitMarkerName'](_0x6b76e3['name']);if('suggestion'===_0x465387){_0x145fc9['announce'](this['_getMarkerAnnouncementText'](_0x321747,'LEAVE'));break;}}for(const _0x5c7cbe of _0x8f018){const {group:_0x44b375,type:_0x48933f}=this['_splitMarkerName'](_0x5c7cbe['name']);if('suggestion'===_0x44b375){_0x145fc9['announce'](this['_getMarkerAnnouncementText'](_0x48933f,'ENTER',_0x48e3ba(_0x11ab76)));break;}}});}['_processAttributeChanges'](_0x398918){if(this['_recordAttributeSuggestions'])return!0x1;const _0x99d32e=this['editor'],_0x5276cf=_0x99d32e['model']['document']['differ']['getChanges']();if(0x0==_0x5276cf['length'])return!0x1;const _0x3dfb47=[],_0x12df20=_0x5276cf['filter'](_0x59fbd8=>'attribute'==_0x59fbd8['type']),_0x19c377=_0x5276cf['filter'](_0x2bd80a=>'insert'==_0x2bd80a['type']&&'$text'!=_0x2bd80a['name']),_0x32d2a6=_0x5276cf['filter'](_0x399def=>'remove'==_0x399def['type']&&'$text'!=_0x399def['name']);for(const _0x48bf6e of _0x12df20)_0x3dfb47['push']({'key':_0x48bf6e['attributeKey'],'newValue':_0x48bf6e['attributeNewValue'],'oldValue':_0x48bf6e['attributeOldValue'],'range':qt(_0x48bf6e['range'],_0x99d32e['model'])});for(const _0x4f3acd of _0x19c377){const _0x4f1453=_0x32d2a6['find'](_0x2533c0=>_0x2533c0['position']['isEqual'](_0x4f3acd['position']));_0x4f1453&&_0x3dfb47['push']({'key':m,'newValue':_0x4f3acd['name'],'oldValue':_0x4f1453['name'],'range':_0x99d32e['model']['createRangeOn'](_0x4f3acd['position']['nodeAfter'])});}return 0x0!=_0x3dfb47['length']&&this['_reduceExistingSuggestions'](_0x398918,_0x3dfb47);}['_processAttributeSuggestions'](_0x2181df){let _0xcfcefb=!0x1;const _0x3dbca2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4bf25c=>_0x4bf25c['data']['newRange']&&_0x4bf25c['name']['startsWith']('suggestion:attribute:'));for(const _0x4a82ac of _0x3dbca2){const {subType:_0x2db389,id:_0x2bd417}=this['_splitMarkerName'](_0x4a82ac['name']),_0x575111=_0x2db389['split']('|')[0x0];for(const _0x2a7437 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2a7437['id']!=_0x2bd417&&'attribute'==_0x2a7437['type']&&_0x2a7437['data']&&_0x2a7437['data']['key']==_0x575111&&_0x2a7437['getFirstRange']()['isIntersecting'](_0x4a82ac['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2a7437,_0x4a82ac['data']['newRange'],_0x2181df),_0xcfcefb=!0x0);}return _0xcfcefb;}['_recordAttributeChanges'](_0x276ced){this['_recordAttributeSuggestions']=!0x0,_0x276ced();}['_isRegisteredAttribute'](_0x578479){const _0x31650d=this['_isBlockAttribute'](_0x578479),_0x4de545=this['_inlineAttributeKeys']['has'](_0x578479);return _0x31650d||_0x4de545;}['_reduceExistingSuggestions'](_0x4dcf2a,_0x229902){if(0x0==_0x229902['length'])return!0x1;let _0x19335c=!0x1;for(const _0x243261 of _0x229902){const _0x3e8bc4=this['_findSuggestions'](_0x243261['range'],'attribute')['filter'](_0x5d95d9=>!_0x5d95d9['meta']['isNextTo'])['map'](_0x281ca3=>_0x281ca3['suggestion']),_0x264285=_0x1fabfe({'newValue':_0x243261['newValue']});_0x3e8bc4['filter'](_0x49367c=>{const [_0x14aa1c,_0x24a100]=_0x49367c['subType']['split']('|');return _0x14aa1c==_0x243261['key']&&_0x24a100!=_0x264285;})['forEach'](_0x565ab0=>{this['_reduceSuggestionAttributeRange'](_0x565ab0,_0x243261['range'],_0x4dcf2a),_0x19335c=!0x0;});}return _0x19335c;}['_reduceSuggestionAttributeRange'](_0x1a76d0,_0x56c500,_0x197690){const _0xe8bb8f=_0x1a76d0['getFirstRange']()['getDifference'](_0x56c500);0x0!==_0xe8bb8f['length']?0x1!==_0xe8bb8f['length']?this['_breakSuggestionMarker'](_0x1a76d0,_0x56c500['start'],_0x56c500['end']):this['_setSuggestionRange'](_0x1a76d0,_0xe8bb8f[0x0]):_0x197690['removeMarker'](_0x1a76d0['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x58818e){this['_editor']=_0x58818e,this['_model']=_0x58818e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x237b05,_0x4390d1,_0x4ed5e5,_0x427daa,_0x570f80,_0x13bb81){return new u(this['_model'],{'type':_0x237b05,'subType':_0x4390d1,'id':_0x4ed5e5,'author':_0x427daa,'creator':_0x427daa,'attributes':_0x570f80,'onAttributesChange':_0x13bb81,'onAccept':(..._0x593253)=>this['getSuggestionCallback'](_0x237b05,_0x4390d1,'accept')(..._0x593253),'onDiscard':(..._0x2a233b)=>this['getSuggestionCallback'](_0x237b05,_0x4390d1,'discard')(..._0x2a233b)});}['registerCustomCallback'](_0xe640e8,_0x259ac6,_0x5933df,_0x3c1056){const _0xdaa71c=_0xe640e8+':'+_0x259ac6+':'+_0x5933df;this['_customCallbacks']['set'](_0xdaa71c,_0x3c1056);}['getSuggestionCallback'](_0xcee8fa,_0x42dbd1,_0x40088e){const _0x3d0442=_0xcee8fa+':'+_0x42dbd1+':'+_0x40088e;return this['_customCallbacks']['get'](_0x3d0442)||this['_defaultCallbacks']['get'](_0xcee8fa+':'+_0x40088e);}['_registerDefaultCallbacks'](){const _0xc89d23=()=>!0x1,_0xdfd1f8=_0x349af7=>{_0x349af7['sort']((_0x2ab06b,_0x3189cb)=>_0x2ab06b['start']['isBefore'](_0x3189cb['start'])?0x1:-0x1),this['_model']['change'](_0x13fa8a=>{for(const _0x438a44 of _0x349af7){let _0x531af2;_0x531af2=_0x438a44['end']['isAtEnd']&&_0x438a44['end']['parent']==_0x438a44['start']['nodeAfter']?_0x13fa8a['createSelection'](_0x438a44['start']['nodeAfter'],'on'):_0x13fa8a['createSelection'](_0x438a44),this['_model']['deleteContent'](_0x531af2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4ab977=(_0x2a9517,_0x1978eb)=>{_0x1978eb&&this['_model']['change'](_0x17c93d=>{const {commandName:_0xf24a2f,commandParams:_0x191d8d=[]}=_0x1978eb,_0x489401=_0x2a9517['map'](_0x383eeb=>(Ft(_0x383eeb)&&(_0x383eeb=this['_model']['createRange'](_0x383eeb['end'])),_0x383eeb))['filter'](_0x5acd84=>'$graveyard'!==_0x5acd84['root']['rootName']);if(_0x489401['length']<0x1)return;const _0x21989f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x20783a=>_0x49f219['fromRange'](_0x20783a));_0x17c93d['setSelection'](_0x489401);for(const _0x54fdd9 of this['_editor']['commands']['commands']())_0x54fdd9['refresh']();_0x191d8d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xf24a2f,..._0x191d8d);const _0x3ad26d=_0x21989f['filter'](_0x53b307=>'$graveyard'!=_0x53b307['root']['rootName']);_0x3ad26d['length']>0x0&&_0x17c93d['setSelection'](_0x3ad26d);for(const _0x1ceea9 of _0x21989f)_0x1ceea9['detach']();});},_0x4742a2=(_0x408703,_0xc9d3)=>0x1==_0x408703['length']&&0x1==_0xc9d3['length']&&_0x408703[0x0]['end']['isEqual'](_0xc9d3[0x0]['start']),_0x5ae0ae=(_0x4ebadd,_0x54fa99,_0x38e3a1,_0x5e96a1)=>Kt(_0x4ebadd,_0x54fa99,_0x38e3a1,_0x5e96a1)?[_0x4ebadd,_0x54fa99]:Kt(_0x54fa99,_0x4ebadd,_0x5e96a1,_0x38e3a1)?[_0x54fa99,_0x4ebadd]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xc89d23),this['_defaultCallbacks']['set']('insertion:discard',_0xdfd1f8),this['_defaultCallbacks']['set']('insertion:join',_0x4742a2),this['_defaultCallbacks']['set']('insertion:chain',_0x5ae0ae),this['_defaultCallbacks']['set']('deletion:accept',_0xdfd1f8),this['_defaultCallbacks']['set']('deletion:discard',_0xc89d23),this['_defaultCallbacks']['set']('deletion:join',_0x4742a2),this['_defaultCallbacks']['set']('deletion:chain',_0x5ae0ae),this['_defaultCallbacks']['set']('formatInline:accept',_0x4ab977),this['_defaultCallbacks']['set']('formatInline:discard',_0xc89d23),this['_defaultCallbacks']['set']('formatInline:join',_0x4742a2),this['_defaultCallbacks']['set']('formatInline:chain',_0xc89d23),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4ab977),this['_defaultCallbacks']['set']('formatBlock:discard',_0xc89d23),this['_defaultCallbacks']['set']('formatBlock:join',_0x4742a2),this['_defaultCallbacks']['set']('formatBlock:chain',_0xc89d23),this['_defaultCallbacks']['set']('attribute:accept',_0xc89d23),this['_defaultCallbacks']['set']('attribute:discard',(_0x828fb1,_0x1eda78)=>{if(!_0x1eda78)return;const _0x2dd935=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5b82e8=>{if(_0x1eda78['key']==m)for(const _0x33f920 of _0x828fb1){const _0x3e256f=_0x33f920['start']['nodeAfter'],_0x466eba=_0x1eda78['oldValue'];_0x5b82e8['rename'](_0x3e256f,_0x466eba);}else{if(_0x2dd935['_isBlockAttribute'](_0x1eda78['key'])){for(const _0x2bddfe of _0x828fb1)void 0x0!==_0x1eda78['oldValue']?_0x5b82e8['setAttribute'](_0x1eda78['key'],_0x1eda78['oldValue'],_0x2bddfe['start']['nodeAfter']):_0x5b82e8['removeAttribute'](_0x1eda78['key'],_0x2bddfe['start']['nodeAfter']);}else{for(const _0x3157bb of _0x828fb1)_0x1eda78['oldValue']?_0x5b82e8['setAttribute'](_0x1eda78['key'],_0x1eda78['oldValue'],_0x3157bb):_0x5b82e8['removeAttribute'](_0x1eda78['key'],_0x3157bb);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4742a2);}}function Gt(_0x390a02,_0x57f60a,_0x156cc8){for(const _0x4b3644 of _0x57f60a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4b3644['root']==_0x4b3644)return!0x1;if(!_0x156cc8['containsItem'](_0x4b3644))return!0x1;if(_0x390a02['isObject'](_0x4b3644)||_0x390a02['isLimit'](_0x4b3644))return!0x0;}return!0x1;}function Ft(_0x4f2759){return _0x4f2759['end']['parent']==_0x4f2759['start']['nodeAfter']&&_0x4f2759['end']['isAtStart'];}function Lt(_0x32b3f2,_0x54845f,_0x1d8bc1,_0x7f6bb5){const _0x51534b=_0x3656fb=>!_0x3656fb['item']['is']('$textProxy')&&!_0x7f6bb5['isObject'](_0x3656fb['item']),_0x477e6d=_0x32b3f2['start']['getLastMatchingPosition'](_0x51534b),_0x2a71f2=_0x32b3f2['end']['getLastMatchingPosition'](_0x51534b,{'direction':'backward'});return(!_0x32b3f2['start']['isEqual'](_0x477e6d)||!_0x32b3f2['end']['isEqual'](_0x2a71f2))&&(_0x477e6d['isBefore'](_0x2a71f2)?_0x1d8bc1['updateMarker'](_0x54845f,{'range':_0x1d8bc1['createRange'](_0x477e6d,_0x2a71f2)}):_0x1d8bc1['removeMarker'](_0x54845f),!0x0);}function Jt(_0x19fd02){return _0x1fabfe(_0x19fd02);}function Ht(_0x44a8d2){const _0x41ebce=_0x44a8d2['start']['nodeAfter'];return _0x41ebce&&_0x41ebce['is']('element');}function qt(_0x1e7317,_0x100962){return null==_0x1e7317['end']['nodeBefore']&&_0x1e7317['end']['parent']==_0x1e7317['start']['nodeAfter']?zt(_0x1e7317['start']['nodeAfter'],_0x100962):_0x1e7317;}function zt(_0x464e57,_0x691dd){const _0x2bb846=_0x691dd['schema']['isObject'](_0x464e57)||_0x691dd['schema']['isSelectable'](_0x464e57);return _0x691dd['createRange'](_0x691dd['createPositionAt'](_0x464e57,'before'),_0x2bb846?_0x691dd['createPositionAfter'](_0x464e57):_0x691dd['createPositionAt'](_0x464e57,'end'));}function Kt(_0x47e81e,_0x2c3fa9,_0x3def0c,_0x6b0044){return!!Wt(_0x47e81e,_0x2c3fa9)&&_0x3def0c['end']['isEqual'](_0x6b0044['start']);}function Wt(_0x3d4774,_0x981700){if(!_0x3d4774['_isDataLoaded']||!_0x981700['_isDataLoaded'])return!0x1;const _0x59c1ee=new Set(Object['keys'](_0x3d4774['attributes'])),_0x118df0=new Set(Object['keys'](_0x981700['attributes']));if(_0x59c1ee['delete']('groupId'),_0x118df0['delete']('groupId'),0x0==_0x59c1ee['size']&&0x0==_0x118df0['size'])return!0x0;if(_0x59c1ee['size']!=_0x118df0['size'])return!0x1;const _0x2b8f04={..._0x3d4774['attributes']},_0x17fcea={..._0x981700['attributes']};return delete _0x2b8f04['groupId'],delete _0x17fcea['groupId'],JSON['stringify'](_0x2b8f04)==JSON['stringify'](_0x17fcea);}function Qt(_0x4604b5,_0x387232){const _0x360002=Xt(_0x4604b5['attributes']),_0x5366bf=Xt(_0x387232);if(!_0x4604b5['_isDataLoaded'])return!0x1;for(const _0x23f98b of Object['keys'](_0x5366bf))if(!_0xabd137(_0x360002[_0x23f98b],_0x5366bf[_0x23f98b]))return!0x1;return!0x0;}function Xt(_0x19dbfb){const _0x5243e9=Object['assign']({},_0x19dbfb);return delete _0x5243e9['skipNestingCheck'],delete _0x5243e9['tablePasteChainId'],_0x5243e9;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x4ea30c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x343516,_0x482638,_0x45385b,_0x35d80a){super(),this['model']=_0x482638,this['view']=_0x45385b,this['commentThreadController']=_0x35d80a,this['_editor']=_0x343516,this['_acceptCommand']=_0x343516['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x343516['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3286ac,_0x1cd21d)=>_0x3286ac||_0x1cd21d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x533c84=>_0x533c84&&this['_editor']['model']['canEditAt'](_0x482638['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2f7962=>_0x2f7962&&this['_editor']['model']['canEditAt'](_0x482638['getRanges']())),this['_pendingAction']=null,_0x45385b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x45385b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x45385b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x45385b,'change:isDirty',()=>{_0x45385b['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 _0x27e9b2=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x27e9b2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x381a78{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x359f8e,_0x14265f,_0x4a6c9b,_0x101f52){super(_0x359f8e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x44ad81(_0x359f8e,o(_0x359f8e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x14265f['authoredAt']),this['bind']('authoredAt')['to'](_0x14265f),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',_0x14265f,'authoredAt',this,'descriptionParts',(_0x47e6b1,_0x1d206d,_0x3f81c3)=>{const _0x19c23d=_0x3f81c3['map'](_0x28b799=>cs(_0x28b799['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x47e6b1-0x1,_0x14265f['author']['name'],_0x1d206d?_0x101f52['formatDateTime'](_0x1d206d):'',new DOMParser()['parseFromString'](_0x19c23d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x407dcc(),this['focusTracker']=new _0x47fa36(),this['keystrokes']=new _0x47ea04(),this['focusCycler']=new _0x207c8b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2cd77d=>_0x2cd77d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x14265f,this['_localUser']=_0x4a6c9b,this['_config']=_0x101f52,_0x101f52['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xae584(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xd99f52}=this['_config'];this['commentsListView']=new _0xd99f52(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',_0x2d4e07=>_0x2d4e07+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x171e37,_0x290804)=>_0x171e37||!!_0x290804);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x28ec7d}=this['_config'],_0x253044=new _0x28ec7d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4b1f84=_0x253044['commentInputView'];return _0x253044['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4b1f84,'value',(_0x4670e1,_0x2e5aa5,_0x51bdda)=>!!_0x51bdda||_0x4670e1&&!_0x2e5aa5),_0x4b1f84['on']('submit',(_0xd8a4b4,_0x9c0a27)=>{this['fire']('addComment',_0x9c0a27),_0x4b1f84['editor']['setData']('');}),_0x4b1f84['on']('cancel',()=>this['focus']()),_0x4b1f84['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x253044;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x21a893,_0x12be95,_0x9074c9,_0x15694f){super(_0x21a893,_0x12be95,_0x9074c9,_0x15694f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x14b242=>_0x14b242&&_0x14b242[0x0]?_0x14b242[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2509c7,_0xde8107)=>{let _0x8455a2='';for(const _0x408eef of _0x2509c7)_0x8455a2+='<p>'+cs(_0x408eef['content'],_0x408eef['color'])+'</p>';return _0xde8107?_0x8455a2:_0x12de81(_0x8455a2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x15694f['SuggestionView'](_0x21a893,_0x12be95,{'formatDateTime':_0x15694f['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 _0x4085d2=this['bindTemplate'],_0x5005bd=[this['suggestionView']];return this['commentsListView']&&_0x5005bd['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5005bd['push'](this['commentThreadInputView']),_0x5005bd['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4085d2['if']('isActive','ck-suggestion-wrapper--active'),_0x4085d2['to']('type',_0x15be23=>'ck-suggestion-'+_0x15be23),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':_0x4085d2['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5005bd};}['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 fe extends _0x381a78{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3ac4c1,_0x3a6584,_0x1ecacd){super(_0x3ac4c1),this['_model']=_0x3a6584,this['_config']=_0x1ecacd,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3a6584),this['acceptButton']=this['_createButton'](o(_0x3ac4c1,'Accept\x20suggestion'),_0x1ab810['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3ac4c1,'Discard\x20suggestion'),_0x1ab810['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3310f3(_0x3ac4c1,_0x3a6584['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x407dcc([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x47fa36(),this['keystrokes']=new _0x47ea04(),this['focusCycler']=new _0x207c8b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x31d8f4=>_0x31d8f4['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3270f5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3270f5['innerHTML']=this['description'],this['on']('change:description',(_0x56b742,_0x16f160,_0xd928d7)=>{_0x3270f5['innerHTML']=_0xd928d7;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x18e759=this['bindTemplate'],_0x38ebdb=[{'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':_0x18e759['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x18e759['to']('authoredAt',_0x285762=>this['_config']['formatDateTime'](_0x285762))}]}]},{'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']&&_0x38ebdb['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':_0x38ebdb}]};}['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'](_0x1d46cb,_0x863508,_0x43afaf,_0x4a0078,_0x199c54){const _0x4c9fc6=new _0x4007a2(this['locale']);return _0x4c9fc6['set']({'label':_0x1d46cb,'icon':_0x863508,'tooltip':!0x0,'tooltipPosition':_0x199c54}),_0x4c9fc6['extendTemplate']({'attributes':{'class':_0x43afaf}}),_0x4c9fc6['on']('execute',()=>{this['fire'](_0x4a0078,this['_model']['id']);}),_0x4c9fc6;}['_setupKeyboardNavigation'](){const _0x315db2=this['element'];this['keystrokes']['listenTo'](_0x315db2);for(const _0x1d1f06 of this['focusables'])this['focusTracker']['add'](_0x1d1f06['element']),this['keystrokes']['listenTo'](_0x1d1f06['element']);this['keystrokes']['set']('enter',(_0x4d3866,_0x42fd47)=>{_0x315db2===_0x4d3866['target']&&(this['focusCycler']['focusFirst'](),_0x42fd47());}),this['keystrokes']['set']('esc',(_0xc603ee,_0x48ac4a)=>{_0x315db2!==_0xc603ee['target']&&(this['focus'](),_0x48ac4a());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0xe53f34{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4d2373,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe1e170){super(_0xe1e170),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4fcbe2=this['editor']['config'];_0x4fcbe2['define']('trackChanges.SuggestionThreadView',pe),_0x4fcbe2['define']('trackChanges.SuggestionView',fe),_0x4fcbe2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4fcbe2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x24820a,_0x43a6c9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4059bd,_0x372513]of this['_handleControllerBuffer']){const _0x216214=this['_suggestionToController']['has'](_0x4059bd);_0x216214||_0x372513?_0x216214&&_0x372513&&this['_destroyController'](_0x4059bd):this['_initializeController'](_0x4059bd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x24820a,_0x43a6c9);}['init'](){const _0x5eee89=this['editor'],_0x1650d9=_0x5eee89['plugins']['get']('TrackChangesEditing'),_0x1584bf=_0x5eee89['plugins']['get']('Annotations'),_0x56297c=_0x5eee89['plugins']['get']('EditorAnnotations'),_0x43a966=_0x5eee89['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x56297c['addSourceCollector'](()=>{const _0x681bf1=[];for(const [_0x11b086,_0x333c6d]of Array['from'](this['_suggestionToController'])){const _0x4534d5=_0x11b086['getAllAdjacentSuggestions'](),_0x4a0410=[];for(const _0x32ded3 of _0x4534d5){if(!_0x32ded3['isInContent'])continue;if(_0x32ded3['isMultiRange']){_0x4a0410['push'](..._0x32ded3['getRanges']());continue;}const _0x132c60=_0x32ded3['getFirstRange']();if(_0x4a0410['length']>0x0){const _0x4bc876=_0x4a0410[0x0]['getJoined'](_0x132c60);if(_0x4bc876){_0x4a0410[0x0]=_0x4bc876;continue;}}_0x4a0410['push'](_0x132c60);}_0x681bf1['push']([_0x333c6d['view'],_0x4a0410]);}return _0x681bf1;}),this['listenTo'](_0x1650d9,'suggestionLoaded',(_0x9e831d,_0x3062ee)=>{this['listenTo'](_0x3062ee,'change:previous',(_0x2521dd,_0x16ff44,_0x1176d1,_0x4c7239)=>{_0x3062ee['isInContent']&&(null==_0x1176d1?(this['_updateController'](_0x4c7239['head']),this['_handleSuggestionControllerDelayed'](_0x3062ee,!0x1)):(this['_updateController'](_0x1176d1['head']),null==_0x4c7239&&this['_handleSuggestionControllerDelayed'](_0x3062ee,!0x0)));}),null!==_0x3062ee['previous']?this['_updateController'](_0x3062ee['head']):this['_handleSuggestionControllerDelayed'](_0x3062ee,!0x1);}),this['listenTo'](_0x1650d9,'suggestionUnloaded',(_0x165167,_0x4b508a,_0x4313d9)=>{this['stopListening'](_0x4b508a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4b508a),this['_suggestionToController']['has'](_0x4b508a)&&this['_destroyController'](_0x4b508a),_0x4313d9&&this['_updateController'](_0x4313d9['head']);}),this['listenTo'](_0x1650d9,'suggestionChanged',(_0x4e149f,_0x169463)=>{this['_updateController'](_0x169463);}),this['listenTo'](_0x1584bf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x43a966,'addComment',(_0x51d1d5,{threadId:_0x5793b0,isFromAdapter:_0x32f18c})=>{if(_0x32f18c||!_0x1650d9['hasSuggestion'](_0x5793b0))return;const _0x4115de=_0x1650d9['getSuggestion'](_0x5793b0);this['_suggestionToController']['get'](_0x4115de)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x602f9f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x41a117;for(const _0x30b7d4 in _0x602f9f){const _0x1bd7ce=_0x30b7d4,_0x1592a5=_0x602f9f[_0x1bd7ce];if('trackChangesLicenseKeyValid'==_0x1592a5||'trackChangesLicenseKeyInvalid'==_0x1592a5||'trackChangesLicenseKeyExpired'==_0x1592a5||'trackChangesLicenseKeyDomainLimit'==_0x1592a5||'trackChangesLicenseKeyNotAllowed'==_0x1592a5||'trackChangesLicenseKeyEvaluationLimit'==_0x1592a5||'trackChangesLicenseKeyTrialLimit'==_0x1592a5||'trackChangesLicenseKeyUsageLimit'==_0x1592a5){delete _0x602f9f[_0x1bd7ce],_0x41a117=_0x1592a5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x41a117&&_0x602f9f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x41a117&&_0x602f9f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x41a117&&_0x602f9f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x41a117&&_0x602f9f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x41a117&&_0x602f9f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x41a117&&_0x602f9f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x41a117&&_0x602f9f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x301a02=this['editor']['plugins']['get']('Annotations'),_0x265b9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x351bbc=Array['from'](_0x301a02['activeAnnotations'],_0x54ab63=>_0x54ab63['innerView'])['filter'](_0x27b956=>this['_viewToController']['has'](_0x27b956)),_0x306e98=[];for(const _0x20d390 of _0x351bbc){const _0x349071=this['_viewToController']['get'](_0x20d390)['model']['getAllAdjacentSuggestions']();_0x306e98['push'](..._0x349071['reduce']((_0x179d86,_0x3ff881)=>[..._0x179d86,..._0x3ff881['getMarkerNames']()],[]));}_0x265b9a['activeMarkers']=_0x306e98;}['_addUIComponentsToFactory'](){const _0xe092a3=this['editor'],_0xf162a1=_0xe092a3['locale'],_0x4e9017=o(_0xf162a1,'Track\x20changes'),_0x5d9c66=new _0x1b7168([{'type':'switchbutton','model':new _0x3645f6({'withText':!0x0,'isToggleable':!0x0,'label':_0x4e9017,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3645f6({'withText':!0x0,'label':o(_0xf162a1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3645f6({'withText':!0x0,'label':o(_0xf162a1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3645f6({'withText':!0x0,'label':o(_0xf162a1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3645f6({'withText':!0x0,'label':o(_0xf162a1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xe092a3['plugins']['has']('TrackChangesPreview')&&_0x5d9c66['addMany']([{'type':'separator'},{'type':'button','model':new _0x3645f6({'withText':!0x0,'label':o(_0xf162a1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1192b7 of _0x5d9c66)if(ke(_0x1192b7)){const _0x2d186e=_0xe092a3['commands']['get'](_0x1192b7['model']['commandName']);_0x1192b7['model']['bind']('isOn','isEnabled')['to'](_0x2d186e,'value','isEnabled');}_0xe092a3['ui']['componentFactory']['add']('trackChanges',_0x137b6e=>this['_createToolbarButton'](_0x137b6e,_0x5d9c66,_0x4e9017)),_0xe092a3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x6c92bc=>this['_createMenuBarMenu'](_0x6c92bc,_0x5d9c66,_0x4e9017));}['_createToolbarButton'](_0x52fa7e,_0x6f9f03,_0x21ad06){const _0x35ec0c=_0x3b9ca1(_0x52fa7e,_0x47076f),_0x1b69bd=this['editor']['commands']['get']('trackChanges');_0x35ec0c['buttonView']['set']({'tooltip':_0x21ad06,'label':_0x21ad06,'icon':we}),_0x35ec0c['buttonView']['bind']('isOn')['to'](_0x1b69bd,'value'),_0x35ec0c['buttonView']['on']('execute',()=>{_0x1b69bd['execute'](),this['editor']['editing']['view']['focus']();}),_0x4cce8e(_0x35ec0c,_0x6f9f03,{'role':'menu'});const _0x452204=[];for(const _0x2a255a of _0x6f9f03)ke(_0x2a255a)&&_0x452204['push'](this['editor']['commands']['get'](_0x2a255a['model']['commandName']));const _0x2501a3=_0x35ec0c['buttonView'];return _0x2501a3['actionView']['unbind']('isEnabled'),_0x2501a3['arrowView']['unbind']('isEnabled'),_0x2501a3['actionView']['bind']('isEnabled')['to'](_0x1b69bd,'isEnabled'),_0x2501a3['arrowView']['bind']('isEnabled')['toMany'](_0x452204,'isEnabled',(..._0x5e74b8)=>_0x5e74b8['some'](_0x506af0=>_0x506af0)),_0x35ec0c['on']('execute',_0x347e3d=>{this['editor']['execute'](_0x347e3d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x35ec0c;}['_createMenuBarMenu'](_0x31398b,_0x4b574c,_0x581157){const _0x44c35c=new _0x492057(_0x31398b),_0xc83ac0=this['editor']['commands']['get']('trackChanges');_0x44c35c['buttonView']['set']({'label':_0x581157,'icon':we});const _0xea014d=new _0x1f8842(_0x31398b);for(const _0xc4a738 of _0x4b574c){if('separator'==_0xc4a738['type']){_0xea014d['items']['add'](new _0x3bf922(_0x31398b));continue;}const _0x815718=new _0x2f76fd(_0x31398b,_0x44c35c),_0x58be6d=new _0x2f1185(_0x31398b),_0x4248cd=_0xc4a738['model'];_0x58be6d['bind'](...Object['keys'](_0x4248cd))['to'](_0x4248cd),_0x58be6d['delegate']('execute')['to'](_0x44c35c),_0x58be6d['on']('execute',()=>{this['editor']['execute'](_0x4248cd['commandName']),this['editor']['editing']['view']['focus']();}),_0x815718['children']['add'](_0x58be6d),_0xea014d['items']['add'](_0x815718);}return _0x44c35c['bind']('isEnabled')['to'](_0xc83ac0,'isEnabled'),_0x44c35c['panelView']['children']['add'](_0xea014d),_0x44c35c;}['_initializeController'](_0x4c3444){const _0x211173=this['editor'],_0x3ba15c=_0x211173['config'],_0x50855b=_0x211173['plugins']['get']('Annotations'),_0x8a56d=_0x211173['plugins']['get']('CommentsRepository'),_0x252115=_0x211173['plugins']['get']('EditorAnnotations'),_0x50920c=_0x211173['plugins']['get'](_0x4d2373)['me'],_0x1b371d=_0x3ba15c['get']('trackChanges')['SuggestionThreadView'],_0x48db2b=_0x3ba15c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x6e27e0,CommentThreadInputView:_0x23918c}=_0x211173['plugins']['get']('CommentsUI');let _0x2c976d,_0x2b6b7e,_0x432957;this['_annotationViews']['has'](_0x4c3444['id'])?(_0x2b6b7e=this['_annotationViews']['get'](_0x4c3444['id']),_0x2c976d=_0x2b6b7e['mainView']):(_0x2c976d=new _0x1b371d(_0x211173['locale'],_0x4c3444,_0x50920c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3ba15c['get']('comments.editorConfig'),'licenseKey':_0x3ba15c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3ba15c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3ba15c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3ba15c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3fd531(_0x3ba15c['get']('locale')),'CommentView':_0x3ba15c['get']('comments')['CommentView'],'CommentsListView':_0x6e27e0,'CommentThreadInputView':_0x23918c,'SuggestionView':_0x48db2b}),_0x2c976d['suggestionView']['acceptButton']['on']('execute',()=>{_0x211173['editing']['view']['focus']();}),_0x2c976d['suggestionView']['discardButton']['on']('execute',()=>{_0x211173['editing']['view']['focus']();}),_0x2b6b7e=_0x50855b['createAnnotationView'](this['editor']['locale'],_0x2c976d),_0x2b6b7e['bind']('isDirty')['to'](_0x2c976d,'isDirty'),_0x2b6b7e['bind']('length')['to'](_0x2c976d),_0x2b6b7e['bind']('type')['to'](_0x2c976d,'type',_0xd0db3f=>'suggestion-'+_0xd0db3f),_0x2c976d['on']('escape',()=>{_0x432957['fire']('escape');}),this['_annotationViews']['set'](_0x4c3444['id'],_0x2b6b7e));const _0x2abf4a=_0x8a56d['createCommentThreadController'](_0x4c3444['commentThread'],_0x2c976d),_0x3b721f=new Ce(_0x211173,_0x4c3444,_0x2c976d,_0x2abf4a),_0x4b72e5=_0x4c3444['getAllAdjacentSuggestions']()['filter'](_0x9e1ec3=>_0x9e1ec3['isInContent']);_0x2c976d['descriptionParts']=_0x211173['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4b72e5),this['_suggestionToController']['set'](_0x4c3444,_0x3b721f),this['_viewToController']['set'](_0x2c976d,_0x3b721f),_0x432957=_0x50855b['createAnnotation']({'view':_0x2b6b7e,'target':()=>{const _0x19928c=[],_0x7c978c=_0x4c3444['getAllAdjacentSuggestions']()['filter'](_0x5efce5=>_0x5efce5['isInContent']);for(const _0x1a022d of _0x7c978c)_0x19928c['push'](..._0x1a022d['getMarkers']());return _0x2e4666(_0x211173['editing'],_0x19928c);},'type':()=>'suggestion-'+_0x3b721f['view']['type']}),_0x8a56d['_bindAnnotationToEditors'](_0x2c976d,_0x432957),_0x50855b['add'](_0x432957),_0x252115['registerAnnotation'](_0x432957);}['_destroyController'](_0x516efe){const _0x210f21=this['editor']['plugins']['get']('CommentsRepository'),_0x4c0cda=this['editor']['plugins']['get']('Annotations'),_0xb80b2a=this['_suggestionToController']['get'](_0x516efe),_0x41a6f3=_0xb80b2a['view'],_0x18907f=_0x4c0cda['getByInnerView'](_0x41a6f3);_0x210f21['_unbindEditors'](_0x41a6f3),_0x18907f&&_0x4c0cda['remove'](_0x18907f),this['_suggestionToController']['delete'](_0x516efe),this['_viewToController']['delete'](_0x41a6f3),_0xb80b2a['destroy']();}['_updateController'](_0x1c8860){if(!_0x1c8860['isInContent']||!this['_suggestionToController']['has'](_0x1c8860))return;const _0x18d18f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50a606=this['_suggestionToController']['get'](_0x1c8860),_0x4ec648=_0x1c8860['getAllAdjacentSuggestions']();_0x50a606['view']['descriptionParts']=_0x18d18f['descriptionFactory']['getDescriptions'](_0x4ec648);}['destroy'](){for(const _0x33b58f of this['_suggestionToController']['keys']())this['_destroyController'](_0x33b58f);for(const _0xe15c0e of this['_annotationViews']['values']())_0xe15c0e['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x440901){return'model'in _0x440901;}class k extends _0xe53f34{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x331ef0){this['editor']['plugins']['get'](p)['adapter']=_0x331ef0;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x10d1a6){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x10d1a6);}['getSuggestions']({skipNotAttached:_0x40bc31=!0x1,toJSON:_0x1d8ce6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x40bc31,'toJSON':_0x1d8ce6});}['getSuggestion'](_0x35c306){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x35c306);}}const w=['Pagination'];class T extends _0xe53f34{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x23cf98=this['editor'];if(_0x23cf98['config']['define']('trackChangesData.editorCreator',_0x5016bb=>{const _0x43c74a=_0x23cf98['model']['document']['getRootNames']()['reduce']((_0x3c85f4,_0x37387e)=>(_0x3c85f4[_0x37387e]='',_0x3c85f4),{});return _0x23cf98['constructor']['create'](_0x43c74a,_0x5016bb);}),'function'!=typeof _0x23cf98['config']['get']('trackChangesData')['editorCreator'])throw new _0x4fb61a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3f6058){return N(this['editor'],!0x0,_0x3f6058);}['getDataWithDiscardedSuggestions'](_0x1e6567){return N(this['editor'],!0x1,_0x1e6567);}}class D extends _0xe53f34{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54fea6){function _0x9cbec1(_0x1c6b4a){return _0x1c6b4a['map'](_0x3caca2=>String['fromCharCode'](_0x3caca2))['join']('');}super(_0x54fea6),this['result']='end',_0x54fea6[_0x9cbec1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9cbec1([0x76,0x69,0x65,0x77])][_0x9cbec1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9cbec1([0x61,0x75,0x74,0x6f]),_0x54fea6[_0x9cbec1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x9cbec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9cbec1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x9cbec1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x9cbec1([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 Fe(_0x351675){return void 0x0!==_0x351675['getRootsAttributes'];}async function N(_0x4a43ac,_0x46fc0e,_0x4aada7){const _0x49ed5b=_0xf7ce82(_0x4a43ac,w);_0x49ed5b['plugins']['push'](p,D),_0x49ed5b['rootsAttributes']=Fe(_0x4a43ac)?_0x4a43ac['getRootsAttributes']():void 0x0;const _0x258da1=document['createDocumentFragment'](),_0x4945a9=_0x4a43ac['config']['get']('trackChangesData')['editorCreator'],_0x268e1f=await _0x4945a9(_0x49ed5b,()=>function(_0x4d82dd){const _0x2851d8=document['createElement']('div');return _0x4d82dd['appendChild'](_0x2851d8),_0x2851d8;}(_0x258da1));!function(_0x805a81,_0x22e1dc){const _0xf15d14=_0x805a81['model']['document']['getRootNames']()['reduce']((_0x176bc0,_0x38ba71)=>(_0x176bc0[_0x38ba71]=_0x805a81['data']['get']({'rootName':_0x38ba71}),_0x176bc0),{}),_0x1eed2b=_0x805a81['plugins']['get']('Users')['users']['map'](_0x59cd53=>({'id':_0x59cd53['id'],'name':_0x59cd53['name']})),_0x37369a=_0x805a81['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4192f9=_0x805a81['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x283734=_0x22e1dc['plugins']['get']('Users'),_0xeaa3c4=_0x22e1dc['plugins']['get']('TrackChangesEditing'),_0x49a8e0=_0x22e1dc['plugins']['get']('CommentsRepository');for(const _0x189329 of _0x49a8e0['getCommentThreads']())_0x189329['remove']();for(const _0x315384 of _0x1eed2b)_0x283734['getUser'](_0x315384['id'])||_0x283734['addUser'](_0x315384);_0x283734['me']||_0x283734['useAnonymousUser']();for(const _0x1037fa of _0x4192f9)_0x49a8e0['addCommentThread'](_0x1037fa);for(const _0x2a70ab of _0x37369a)_0xeaa3c4['addSuggestionData'](_0x2a70ab);_0x22e1dc['data']['set'](_0xf15d14);}(_0x4a43ac,_0x268e1f),_0x268e1f['execute'](_0x46fc0e?'acceptAllSuggestions':'discardAllSuggestions');const _0x3650d9=Fe(_0x268e1f)?_0x268e1f['getFullData'](_0x4aada7):_0x268e1f['data']['get'](_0x4aada7);return await _0x268e1f['destroy'](),_0x3650d9;}class Me extends _0x381a78{['options'];constructor(_0x4d47ad,_0x38e7d6){super(_0x4d47ad),this['options']=_0x38e7d6,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'](_0x4df89d,_0x35045c){if(!this['element'])return;const _0x41406e=[];for(const [_0x44894f,_0x414064]of _0x4df89d){const _0x543fc1=document['createElement']('div');_0x543fc1['setAttribute']('data-ck-root-name',_0x44894f),_0x543fc1['className']=_0x414064['classes']+'\x20ck-track-changes-preview__root-container',_0x543fc1['innerHTML']=_0x414064['content'],_0x41406e['push'](_0x543fc1);}_0x35045c(this['element'],_0x41406e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x2510d7){super(_0x2510d7),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4facd5=this['editor'],_0x274e67=_0x4facd5['locale'],_0x229591=_0x4facd5['plugins']['get']('Dialog');let _0x448196;const _0x1143ee=function(_0x2c6b33){const _0x2c2199={};if('editables'in _0x2c6b33['ui']['view']){for(const [_0x38e3cc,_0x32b90c]of Object['entries'](_0x2c6b33['ui']['view']['editables']))_0x2c2199[_0x38e3cc]=_0x32b90c['element'];}else _0x2c2199[_0x2c6b33['model']['document']['getRootNames']()[0x0]]=_0x2c6b33['ui']['view']['editable']['element'];return _0x2c2199;}(_0x4facd5),_0x5edbc7=function(_0x3118b1){let _0x3b6b97=0x0;for(const _0x26d922 of Object['values'](_0x3118b1))_0x3b6b97=Math['max'](_0x3b6b97,_0x26d922['getBoundingClientRect']()['width']);let _0x3d0d8a=0x0;for(const _0x5bc99b of Object['values'](_0x3118b1))_0x3d0d8a+=_0x5bc99b['getBoundingClientRect']()['height'];const _0x3fd1f1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x50ebcf=Math['min'](_0x3d0d8a,_0x3fd1f1);return{'width':_0x3b6b97,'height':_0x50ebcf};}(_0x1143ee);_0x229591['show']({'id':'finalContentPreview','title':o(_0x274e67,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x274e67,{'dialogRects':_0x5edbc7}),'onHide':()=>{_0x448196['detachFromDom']();},'onShow':()=>{_0x4facd5['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xc83d=>{const _0x49e3e1=this['_standarizeRootsData'](_0xc83d,_0x4facd5,_0x1143ee);_0x229591['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x49e3e1,_0x4facd5['config']['get']('trackChanges.preview.renderFunction'));}),_0x448196=new _0x564e3a(_0x274e67,[_0x229591['view']]),_0x448196['attachToDom'](),_0x448196['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4facd5['once']('destroy',()=>{_0x448196['detachFromDom']();});const _0xbc29a1=_0x229591['view']['headerView']['class'];_0x229591['view']['headerView']['class']=_0xbc29a1?_0xbc29a1+'\x20ck-reset_all':'ck-reset_all',_0x229591['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x229591['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xbd68e2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4e0d10=_0xbd68e2['previewMode'],_0x2a7973={};if('$labels'===_0x4e0d10){for(const _0x38a58f of _0xbd68e2['getMergeFieldsIds']())_0x2a7973[_0x38a58f]=_0xbd68e2['getLabel'](_0x38a58f)||_0x38a58f;}else{const _0x3accbe='$defaultValues'===_0x4e0d10?_0xbd68e2['getDefaultValues']():_0xbd68e2['getDataSetValues'](_0x4e0d10,!0x0);for(const _0x51389e of Object['entries'](_0x3accbe)){const [_0x176423,_0x401657]=_0x51389e;_0x2a7973[_0x176423]=null!==_0x401657?_0x401657:_0xbd68e2['getLabel'](_0x176423)||_0x176423;}}return{'mergeFieldsData':_0x2a7973};}['_standarizeRootsData'](_0x44947c,_0x4dd8e5,_0x65258f){let _0x1b001f;if('string'==typeof _0x44947c){const _0x10ba2e=_0x4dd8e5['model']['document']['getRootNames']()[0x0];_0x1b001f={[_0x10ba2e]:_0x44947c};}else _0x1b001f=_0x44947c;const _0x243194=this['_fixMediaEmbeds'](_0x1b001f,_0x4dd8e5),_0x1b0edf=function(_0x32495b,_0x4549af){for(const [_0x282f3f,_0x19a217]of _0x32495b)_0x19a217['classes']=_0x4549af[_0x282f3f]['classList']['value']['replace']('ck-focused','');return _0x32495b;}(this['_sortRoots'](_0x4dd8e5)['reduce']((_0x208c31,_0x1516d6)=>(_0x208c31['push']([_0x1516d6,{'content':_0x243194[_0x1516d6],'classes':''}]),_0x208c31),[]),_0x65258f);return _0x1b0edf;}['_fixMediaEmbeds'](_0x4fe02a,_0x34e9b3){if(!_0x34e9b3['plugins']['has']('MediaEmbedEditing'))return _0x4fe02a;const _0x2887c7=_0x34e9b3['plugins']['get']('MediaEmbedEditing');for(const [_0x6e735a,_0x30cd88]of Object['entries'](_0x4fe02a)){const _0x414081=document['createElement']('div');_0x414081['innerHTML']=_0x30cd88,(_0x414081['querySelectorAll']('figure.media')['forEach'](_0x215d87=>{const _0x408c92=_0x215d87['querySelector']('oembed');if(_0x408c92){const _0x2d3909=_0x408c92['getAttribute']('url');if(_0x2d3909){const _0x1edd80=_0x2887c7['registry']['getMediaViewElement'](new _0xb9897e(_0x34e9b3['editing']['view']['document']),_0x2d3909,{'elementName':'','renderForEditingView':!0x0}),_0x4ae63b=document['createElement']('div');_0x4ae63b['classList']['add']('ck-media__wrapper'),_0x1edd80['render'](_0x4ae63b,_0x34e9b3['editing']['view']['domConverter']),_0x408c92['replaceWith'](_0x4ae63b);}}}),_0x4fe02a[_0x6e735a]=_0x414081['innerHTML']);}return _0x4fe02a;}['_sortRoots'](_0x14976a){if(!function(_0xbc02e6){return void 0x0!==_0xbc02e6['getRootsAttributes'];}(_0x14976a))return _0x14976a['model']['document']['getRootNames']();const _0xaf5034=[],_0x1c651f=new Map();for(const _0x2474a8 of _0x14976a['model']['document']['getRootNames']()){const _0x231d08=_0x14976a['editing']['view']['getDomRoot'](_0x2474a8)['getClientRects']()['item'](0x0);_0xaf5034['push'](_0x2474a8),_0x1c651f['set'](_0x2474a8,_0x231d08);}return _0xaf5034['sort']((_0x624f80,_0x137030)=>{const _0x2b8eb6=_0x1c651f['get'](_0x624f80),_0x3be66a=_0x1c651f['get'](_0x137030);return _0x2b8eb6['y']-_0x3be66a['y']||_0x2b8eb6['x']-_0x3be66a['x'];}),_0xaf5034;}}class te extends _0xe53f34{static get['requires'](){return[T,_0x303d56];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31b300){super(_0x31b300),_0x31b300['commands']['add']('previewFinalContent',new re(this['editor'])),_0x31b300['config']['define']('trackChanges.preview.renderFunction',(_0x77a547,_0x2a15d0)=>{for(const _0x4e394b of _0x2a15d0)_0x77a547['appendChild'](_0x4e394b);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};