@ckeditor/ckeditor5-track-changes 43.2.0-alpha.0 → 43.2.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 (167) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/ar.umd.js +1 -1
  5. package/dist/translations/az.js +1 -1
  6. package/dist/translations/az.umd.js +1 -1
  7. package/dist/translations/bg.js +1 -1
  8. package/dist/translations/bg.umd.js +1 -1
  9. package/dist/translations/bn.js +1 -1
  10. package/dist/translations/bn.umd.js +1 -1
  11. package/dist/translations/ca.js +1 -1
  12. package/dist/translations/ca.umd.js +1 -1
  13. package/dist/translations/cs.js +1 -1
  14. package/dist/translations/cs.umd.js +1 -1
  15. package/dist/translations/da.js +1 -1
  16. package/dist/translations/da.umd.js +1 -1
  17. package/dist/translations/de.js +1 -1
  18. package/dist/translations/de.umd.js +1 -1
  19. package/dist/translations/el.js +1 -1
  20. package/dist/translations/el.umd.js +1 -1
  21. package/dist/translations/en-au.js +1 -1
  22. package/dist/translations/en-au.umd.js +1 -1
  23. package/dist/translations/en.umd.js +1 -1
  24. package/dist/translations/es.js +1 -1
  25. package/dist/translations/es.umd.js +1 -1
  26. package/dist/translations/et.js +1 -1
  27. package/dist/translations/et.umd.js +1 -1
  28. package/dist/translations/fi.js +1 -1
  29. package/dist/translations/fi.umd.js +1 -1
  30. package/dist/translations/fr.js +1 -1
  31. package/dist/translations/fr.umd.js +1 -1
  32. package/dist/translations/gl.js +1 -1
  33. package/dist/translations/gl.umd.js +1 -1
  34. package/dist/translations/he.js +1 -1
  35. package/dist/translations/he.umd.js +1 -1
  36. package/dist/translations/hi.js +1 -1
  37. package/dist/translations/hi.umd.js +1 -1
  38. package/dist/translations/hr.js +1 -1
  39. package/dist/translations/hr.umd.js +1 -1
  40. package/dist/translations/hu.js +1 -1
  41. package/dist/translations/hu.umd.js +1 -1
  42. package/dist/translations/id.js +1 -1
  43. package/dist/translations/id.umd.js +1 -1
  44. package/dist/translations/it.js +1 -1
  45. package/dist/translations/it.umd.js +1 -1
  46. package/dist/translations/ja.js +1 -1
  47. package/dist/translations/ja.umd.js +1 -1
  48. package/dist/translations/ko.js +1 -1
  49. package/dist/translations/ko.umd.js +1 -1
  50. package/dist/translations/lt.js +1 -1
  51. package/dist/translations/lt.umd.js +1 -1
  52. package/dist/translations/lv.js +1 -1
  53. package/dist/translations/lv.umd.js +1 -1
  54. package/dist/translations/ms.js +1 -1
  55. package/dist/translations/ms.umd.js +1 -1
  56. package/dist/translations/nl.js +1 -1
  57. package/dist/translations/nl.umd.js +1 -1
  58. package/dist/translations/no.js +1 -1
  59. package/dist/translations/no.umd.js +1 -1
  60. package/dist/translations/pl.js +1 -1
  61. package/dist/translations/pl.umd.js +1 -1
  62. package/dist/translations/pt-br.js +1 -1
  63. package/dist/translations/pt-br.umd.js +1 -1
  64. package/dist/translations/pt.js +1 -1
  65. package/dist/translations/pt.umd.js +1 -1
  66. package/dist/translations/ro.js +1 -1
  67. package/dist/translations/ro.umd.js +1 -1
  68. package/dist/translations/ru.js +1 -1
  69. package/dist/translations/ru.umd.js +1 -1
  70. package/dist/translations/sk.js +1 -1
  71. package/dist/translations/sk.umd.js +1 -1
  72. package/dist/translations/sq.js +1 -1
  73. package/dist/translations/sq.umd.js +1 -1
  74. package/dist/translations/sr-latn.js +1 -1
  75. package/dist/translations/sr-latn.umd.js +1 -1
  76. package/dist/translations/sr.js +1 -1
  77. package/dist/translations/sr.umd.js +1 -1
  78. package/dist/translations/sv.js +1 -1
  79. package/dist/translations/sv.umd.js +1 -1
  80. package/dist/translations/th.js +1 -1
  81. package/dist/translations/th.umd.js +1 -1
  82. package/dist/translations/tk.js +1 -1
  83. package/dist/translations/tk.umd.js +1 -1
  84. package/dist/translations/tr.js +1 -1
  85. package/dist/translations/tr.umd.js +1 -1
  86. package/dist/translations/tt.js +1 -1
  87. package/dist/translations/tt.umd.js +1 -1
  88. package/dist/translations/uk.js +1 -1
  89. package/dist/translations/uk.umd.js +1 -1
  90. package/dist/translations/ur.js +1 -1
  91. package/dist/translations/ur.umd.js +1 -1
  92. package/dist/translations/vi.js +1 -1
  93. package/dist/translations/vi.umd.js +1 -1
  94. package/dist/translations/zh-cn.js +1 -1
  95. package/dist/translations/zh-cn.umd.js +1 -1
  96. package/dist/translations/zh.js +1 -1
  97. package/dist/translations/zh.umd.js +1 -1
  98. package/package.json +10 -10
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardsuggestioncommand.js +1 -1
  101. package/src/commands/executeonallsuggestionscommand.js +1 -1
  102. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/index.js +1 -1
  105. package/src/integrations/aiassistant.js +1 -1
  106. package/src/integrations/alignment.js +1 -1
  107. package/src/integrations/basicstyles.js +1 -1
  108. package/src/integrations/blockquote.js +1 -1
  109. package/src/integrations/casechange.js +1 -1
  110. package/src/integrations/ckbox.js +1 -1
  111. package/src/integrations/codeblock.js +1 -1
  112. package/src/integrations/comments.js +1 -1
  113. package/src/integrations/deletecommand.js +1 -1
  114. package/src/integrations/entercommand.js +1 -1
  115. package/src/integrations/findandreplace.js +1 -1
  116. package/src/integrations/font.js +1 -1
  117. package/src/integrations/formatpainter.js +1 -1
  118. package/src/integrations/heading.js +1 -1
  119. package/src/integrations/highlight.js +1 -1
  120. package/src/integrations/horizontalline.js +1 -1
  121. package/src/integrations/htmlembed.js +1 -1
  122. package/src/integrations/image.js +1 -1
  123. package/src/integrations/imagereplace.js +1 -1
  124. package/src/integrations/imagestyle.js +1 -1
  125. package/src/integrations/importword.js +1 -1
  126. package/src/integrations/indent.js +1 -1
  127. package/src/integrations/inputcommand.js +1 -1
  128. package/src/integrations/legacylist.js +1 -1
  129. package/src/integrations/legacylistproperties.js +1 -1
  130. package/src/integrations/link.js +1 -1
  131. package/src/integrations/list.js +1 -1
  132. package/src/integrations/listproperties.js +1 -1
  133. package/src/integrations/mediaembed.js +1 -1
  134. package/src/integrations/mention.js +1 -1
  135. package/src/integrations/mergefields.js +1 -1
  136. package/src/integrations/multilevellist.js +1 -1
  137. package/src/integrations/pagebreak.js +1 -1
  138. package/src/integrations/paragraph.js +1 -1
  139. package/src/integrations/removeformat.js +1 -1
  140. package/src/integrations/restrictededitingmode.js +1 -1
  141. package/src/integrations/shiftentercommand.js +1 -1
  142. package/src/integrations/standardeditingmode.js +1 -1
  143. package/src/integrations/style.js +1 -1
  144. package/src/integrations/table.js +1 -1
  145. package/src/integrations/tablecaption.js +1 -1
  146. package/src/integrations/tableclipboard.js +1 -1
  147. package/src/integrations/tablecolumnresize.js +1 -1
  148. package/src/integrations/tableheadings.js +1 -1
  149. package/src/integrations/tablemergesplit.js +1 -1
  150. package/src/integrations/tableofcontents.js +1 -1
  151. package/src/integrations/tableproperties.js +1 -1
  152. package/src/integrations/template.js +1 -1
  153. package/src/integrations/title.js +1 -1
  154. package/src/integrations/undo.js +1 -1
  155. package/src/integrations/utils.js +1 -1
  156. package/src/suggestion.js +2 -2
  157. package/src/suggestiondescriptionfactory.js +1 -1
  158. package/src/trackchanges.js +1 -1
  159. package/src/trackchangesdata.js +1 -1
  160. package/src/trackchangesediting.js +1 -1
  161. package/src/trackchangesui.js +1 -1
  162. package/src/ui/suggestioncontroller.js +2 -2
  163. package/src/ui/view/basesuggestionthreadview.js +1 -1
  164. package/src/ui/view/suggestionthreadview.js +1 -1
  165. package/src/ui/view/suggestionview.js +1 -1
  166. package/src/utils/common-translations.js +1 -1
  167. 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 ts,Plugin as _0xd0fe4f,PendingActions as _0x43e262,icons as _0xcc8d03}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x10890c,ObservableMixin as _0x4d2569,uid as _0x2b2341,insertToPriorityArray as _0x2dd1e5,priorities as _0x393348,logWarning as _0x1151d8,getEnvKeystrokeText as _0x169b2b,FocusTracker as _0x300501,KeystrokeHandler as _0x47e191,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5649af,View as _0x5bb25a,ViewCollection as _0x4a3579,FocusCycler as _0x16bf8f,ViewModel as _0x568c43,createDropdown as Qt,SplitButtonView as _0x4192af,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x169749}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2a2d95,hashObject as _0x133608,surroundingMarkersDetector as _0x1e6588,FOCUS_ANNOTATION_KEYSTROKE as _0x5aa4d2,AriaDescriptionView as _0x253816,setupThreadKeyboardNavigation as _0x6d2ff4,trimHtml as _0xb42aa1,UserView as _0x24025d,LateFocusButtonView as _0x58bb35,getDateTimeFormatter as _0x5cadd8,getAllMarkersDomElementsSorted as _0x435996,sanitizeEditorConfig as _0x2e2961}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1e018a,LiveRange as _0x425d25,LivePosition as _0x4906b7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3aee56,toWidget as _0x1846c8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1a932f,set as _0x12ccb1,isEqual as _0x7c6596,unset as _0x1a6b63,omit as Tt}from'lodash-es';import{Delete as _0x201443,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x31c29d,ShiftEnter as _0x3d87fa}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x3fb29e,_0x3f80a1){super(_0x3fb29e),this['_enabledCommands']=_0x3f80a1,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 _0x389798 of this['editor']['commands']['commands']())_0x389798['affectsData']&&!this['_enabledCommands']['has'](_0x389798)&&_0x389798['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1e0f85 of this['editor']['commands']['commands']())_0x1e0f85['affectsData']&&!this['_enabledCommands']['has'](_0x1e0f85)&&_0x1e0f85['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x2b26fd,_0x3b87c0){super(_0x2b26fd),this['_suggestions']=_0x3b87c0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x23745f){const _0x38772c=this['_suggestions']['get'](_0x23745f);if(!_0x38772c)throw new _0x10890c('track-changes-accept-suggestion-not-found',this);const _0x552faa=_0x38772c['getRanges']();this['editor']['model']['canEditAt'](_0x552faa)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x38772c);}}class R extends ts{['_suggestions'];constructor(_0x270060,_0x2608bc){super(_0x270060),this['_suggestions']=_0x2608bc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5382c1){const _0x5717fa=this['_suggestions']['get'](_0x5382c1);if(!_0x5717fa)throw new _0x10890c('track-changes-discard-suggestion-not-found',this);const _0x1cf57b=_0x5717fa['getRanges']();this['editor']['model']['canEditAt'](_0x1cf57b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5717fa);}}function ls(_0x5adcca,_0x933f11){let _0x150066='';return _0x150066+=_0x5adcca['split']('*')['map']((_0x28860f,_0x3f5224)=>_0x3f5224%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x28860f)+'</span>':nn(_0x28860f))['join'](''),_0x933f11&&(_0x150066+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x933f11['value']+'\x22\x20title=\x22'+_0x933f11['title']+'\x22></span>'),_0x150066;}function nn(_0x23d3f1){const _0x36d2e8=document['createElement']('span');return _0x36d2e8['innerText']=_0x23d3f1,_0x36d2e8['innerHTML'];}function ss(_0x16152f){return _0x16152f['sort']((_0x3ecd0d,_0x3f4dbd)=>'deletion'==_0x3ecd0d['type']&&'deletion'!=_0x3f4dbd['type']?-0x1:'deletion'!=_0x3ecd0d['type']&&'deletion'==_0x3f4dbd['type']?0x1:0x0);}function to(_0x46c5a4,_0x329588){let _0x2a54f8,_0x22c618=0x0;const _0x4ff3a6=[],_0x1681ce=_0x329588['schema'];for(;_0x22c618<_0x46c5a4['length'];){const _0x516291=_0x46c5a4[_0x22c618],_0x2f479a=_0x46c5a4[_0x22c618+0x1];_0x2a54f8||(_0x2a54f8=_0x329588['createPositionBefore'](_0x516291)),on(_0x329588,_0x516291,_0x2f479a)||(_0x4ff3a6['push'](_0x329588['createRange'](_0x2a54f8,_0x1681ce['isObject'](_0x516291)?_0x329588['createPositionAfter'](_0x516291):_0x329588['createPositionAt'](_0x516291,'end'))),_0x2a54f8=null),_0x22c618++;}return _0x4ff3a6;}function on(_0x2874ef,_0x15ef02,_0x3c0bca){if(!_0x3c0bca)return!0x1;const _0x48e8c7=_0x2874ef['createPositionAfter'](_0x15ef02),_0x42fd5f=_0x2874ef['createPositionBefore'](_0x3c0bca);return _0x48e8c7['isTouching'](_0x42fd5f);}function rs(_0x2ecd40,_0x1f0f38,_0x30d33e){for(;_0x30d33e['length'];){const _0x4db7ca=_0x30d33e['splice'](0x0,0x64);_0x2ecd40['change'](()=>{for(const _0x4e83ba of _0x4db7ca)_0x4e83ba['isInContent']&&_0x1f0f38['execute'](_0x4e83ba['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x3cfda4,_0x32f283,_0xdbd44d){super(_0x3cfda4),this['_command']=_0x32f283,this['_suggestions']=_0xdbd44d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x356f9c=Array['from'](this['_suggestions']['values']())['some'](_0x47c814=>_0x47c814['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x356f9c;}['execute'](){const _0x25d31=ss(Array['from'](this['_suggestions']['values']()));for(const _0x33faa2 of _0x25d31){const _0x1ce0a5=_0x33faa2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1ce0a5))return;}rs(this['editor']['model'],this['_command'],_0x25d31);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xb24e4b,_0x56ac83,_0x3cfeae){super(_0xb24e4b),this['_command']=_0x56ac83,this['_suggestions']=_0x3cfeae,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x16eaeb=this['editor']['model']['document']['selection'],_0x2d9d22=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x375606,_0x9b688d){const _0x3dea8e=Array['from'](_0x375606['getRanges']()),_0x3500c8=new Set();for(const _0xf01333 of _0x9b688d)if(_0xf01333['isInContent']){for(const _0xefe5c1 of _0x3dea8e)for(const _0x8a71dd of _0xf01333['getRanges']())(_0xefe5c1['isIntersecting'](_0x8a71dd)||_0x375606['isCollapsed']&&!_0xf01333['isMultiRange']&&_0xf01333['next']&&_0x8a71dd['end']['isTouching'](_0xefe5c1['start']))&&_0x3500c8['add'](_0xf01333);}return _0x3500c8;}(_0x16eaeb,_0x2d9d22),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xab3f54=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4e7563 of _0xab3f54){const _0x4a01fa=_0x4e7563['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a01fa))return;}rs(this['editor']['model'],this['_command'],_0xab3f54);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x4d2569(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x44b05c,_0x1677d5){super(),this['id']=_0x1677d5['id'],this['type']=_0x1677d5['type'],this['subType']=_0x1677d5['subType']||null,this['author']=_0x1677d5['author'],this['creator']=_0x1677d5['creator']||_0x1677d5['author'],this['isExternal']=Boolean(_0x1677d5['attributes']&&_0x1677d5['attributes']['@external']),this['data']=null,this['_model']=_0x44b05c,this['_onAccept']=_0x1677d5['onAccept'],this['_onDiscard']=_0x1677d5['onDiscard'],this['_onAttributesChange']=_0x1677d5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1677d5['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 _0x58c887=this;for(;_0x58c887['previous'];)_0x58c887=_0x58c887['previous'];return _0x58c887;}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'](_0x1f31d5){this['_markerNames']['add'](_0x1f31d5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2699d4=>this['_model']['markers']['get'](_0x2699d4))['filter'](_0x50e444=>_0x50e444);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xd0b77f=>{for(const _0x4a88fe of this['getMarkers']())_0xd0b77f['removeMarker'](_0x4a88fe);}),this['_markerNames']['clear']();}['removeMarker'](_0x3361cd){this['_model']['change'](_0x5043b7=>{_0x5043b7['removeMarker'](_0x3361cd);}),this['_markerNames']['delete'](_0x3361cd);}['addRange'](_0x4be984){const _0x201bb7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x201bb7),this['_model']['change'](_0x1f96cd=>{_0x1f96cd['addMarker'](_0x201bb7,{'range':_0x4be984,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x50c1e3){for(const _0x1358ba of this['getRanges']())if(_0x1358ba['isIntersecting'](_0x50c1e3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4eda63=>_0x4eda63['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2d3c27,_0x1aeadb)=>[..._0x2d3c27,..._0x1aeadb['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x576bb0=this['getRanges']();if(0x1!=_0x576bb0['length'])return null;const _0x2fdfee=_0x576bb0[0x0],_0x27bad7=_0x2fdfee['start']['nodeAfter'],_0x15b3eb=_0x2fdfee['end']['nodeBefore'];return _0x27bad7 instanceof _0x1e018a?_0x27bad7!=_0x15b3eb?null:_0x27bad7: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 _0x291894=[];let _0x357633=this['head'];for(;_0x357633;)_0x291894['push'](_0x357633),_0x357633=_0x357633['next'];return _0x291894;}['setAttribute'](_0x29ae96,_0x184bce){const _0x589951=_0x1a932f(this['attributes']);_0x12ccb1(_0x589951,_0x29ae96,_0x184bce),_0x7c6596(_0x589951,this['attributes'])||(this['attributes']=_0x589951,this['_onAttributesChange'](_0x589951));}['removeAttribute'](_0x562456){const _0x3a1bb6=_0x1a932f(this['attributes']);_0x1a6b63(_0x3a1bb6,_0x562456),_0x7c6596(_0x3a1bb6,this['attributes'])||(this['attributes']=_0x3a1bb6,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 _0x2b2341()['substr'](0x1,0x5);}}function o(_0x16a82a,_0x24707d,_0x3ec52d){const t=_0x16a82a['t'];switch(_0x24707d){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'*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',_0x3ec52d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3ec52d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3ec52d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3ec52d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3ec52d);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',_0x3ec52d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3ec52d);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x3ec52d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3ec52d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3ec52d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3ec52d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3ec52d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3ec52d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3ec52d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3ec52d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3ec52d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3ec52d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3ec52d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3ec52d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3ec52d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3ec52d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3ec52d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3ec52d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3ec52d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3ec52d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3ec52d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3ec52d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3ec52d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3ec52d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3ec52d);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'},_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3ec52d);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'},_0x3ec52d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3ec52d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3ec52d);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'},_0x3ec52d);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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3ec52d);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3ec52d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3ec52d);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'},_0x3ec52d);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'},_0x3ec52d);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'},_0x3ec52d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x24707d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x455bfd,_0x292919){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x455bfd,this['_locale']=_0x292919;}['getDescriptions'](_0x99e700){const _0x133b2d=[],_0x32f058=new Set(),_0x747e13=new Set();for(let _0x991091=0x0;_0x991091<_0x99e700['length'];_0x991091++){const _0x37db95=_0x99e700[_0x991091];if(!_0x37db95['isInContent'])continue;const _0x457c8c=this['_handleCustomCallbackDescription'](_0x37db95);if(_0x457c8c){if(null!=_0x37db95['subType']){if(_0x32f058['has'](_0x37db95['subType']))continue;_0x32f058['add'](_0x37db95['subType']);}_0x133b2d['push'](_0x457c8c);}else{if('attribute'!=_0x37db95['type'])'insertion'!=_0x37db95['type']&&'deletion'!=_0x37db95['type']||this['_handleInsertRemoveSuggestionDescription'](_0x133b2d,_0x37db95,_0x99e700[_0x991091+0x1]);else{const _0x182e97=_0x37db95['data']['key'];if(_0x747e13['has'](_0x182e97))continue;_0x747e13['add'](_0x37db95['data']['key']),_0x182e97==m?this['_handleRenameSuggestionDescription'](_0x133b2d,_0x37db95):this['_handleAttributeSuggestionDescription'](_0x133b2d,_0x37db95);}}}return this['_resolveDescriptionItems'](_0x133b2d);}['registerDescriptionCallback'](_0x4cf8be){this['_customCallbacks']['push'](_0x4cf8be);}['registerElementLabel'](_0x1e25bd,_0x30ae9f,_0x21f945=_0x393348['normal']){'function'==typeof _0x1e25bd?_0x2dd1e5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1e25bd,'label':_0x30ae9f,'priority':_0x21f945}):this['_itemLabels']['set'](_0x1e25bd,_0x30ae9f);}['registerAttributeLabel'](_0x3b2ee8,_0x21dfaf){this['_attributeLabels']['set'](_0x3b2ee8,_0x21dfaf);}['getItemLabel'](_0xf0a44c,_0x3293b0=0x1){let _0x14859c;for(const _0x518195 of this['_itemLabelsCallbacks'])if(_0x518195['matchingCallback'](_0xf0a44c)){_0x14859c=_0x518195['label'];break;}return _0x14859c||(_0x14859c=this['_itemLabels']['get'](_0xf0a44c['name'])),_0x14859c?_0x14859c(_0x3293b0):0x1!==_0x3293b0?_0x3293b0+'\x20'+_0xf0a44c['name']+'s':''+_0xf0a44c['name'];}['_addDescriptionItems'](_0x2db482,_0x287dce){const _0x337582=_0x287dce['getFirstRange']()['getWalker'](),_0x36f444='insertion'==_0x287dce['type']?'add':'remove';for(const _0x337813 of _0x337582){const _0x31cfc8=_0x337813['item'],_0x6b8fd8=_0x2db482[_0x2db482['length']-0x1];if(_0x31cfc8['is']('$textProxy'))_0x6b8fd8&&_0x6b8fd8['type']['indexOf']('Container')>-0x1&&_0x2db482['pop'](),_0x6b8fd8&&'text'==_0x6b8fd8['type']?_0x6b8fd8[_0x36f444]+=_0x31cfc8['data']:_0x2db482['push']({'type':'text','add':'add'==_0x36f444?_0x31cfc8['data']:'','remove':'remove'==_0x36f444?_0x31cfc8['data']:''});else{if(this['_schema']['isObject'](_0x31cfc8)){const _0x112fa1=_0x31cfc8;if(_0x6b8fd8&&_0x6b8fd8['type']['indexOf']('Container')>-0x1&&_0x2db482['pop'](),'elementEnd'==_0x337813['type'])continue;_0x6b8fd8&&_0x6b8fd8['type']==_0x36f444+'Object'&&_0x6b8fd8['element']['name']==_0x112fa1['name']?_0x6b8fd8['quantity']++:_0x2db482['push']({'type':_0x36f444+'Object','element':_0x112fa1,'quantity':0x1}),_0x337582['skip'](_0x202685=>!('elementEnd'==_0x202685['type']&&_0x202685['item']==_0x31cfc8));}else{if(this['_schema']['checkChild'](_0x31cfc8,'$text')||_0x31cfc8['is']('element','softBreak')){const _0x420a1f=_0x31cfc8;if('add'==_0x36f444&&'elementStart'==_0x337813['type']||'remove'==_0x36f444&&'elementEnd'==_0x337813['type'])continue;if(_0x6b8fd8&&-0x1==_0x6b8fd8['type']['indexOf']('Container')){'text'==_0x6b8fd8['type']&&(_0x6b8fd8[_0x36f444]+='\x0a');continue;}let _0x1d0b6d;if(_0x1d0b6d='add'==_0x36f444?_0x420a1f['nextSibling']&&!this['_schema']['isObject'](_0x420a1f['nextSibling'])?_0x420a1f['nextSibling']:null:_0x420a1f['previousSibling']&&!this['_schema']['isObject'](_0x420a1f['previousSibling'])?_0x420a1f['previousSibling']:null,_0x420a1f['isEmpty']||_0x1d0b6d&&_0x1d0b6d['isEmpty']){const _0x2898e=_0x1d0b6d&&_0x1d0b6d['isEmpty']?_0x1d0b6d:_0x420a1f;_0x6b8fd8&&_0x6b8fd8['type']==_0x36f444+'EmptyContainer'&&_0x6b8fd8['element']['name']==_0x2898e['name']?_0x6b8fd8['quantity']++:_0x2db482['push']({'type':_0x36f444+'EmptyContainer','element':_0x2898e,'quantity':0x1});}else _0x2db482['push']({'type':_0x36f444+'Container','element':_0x420a1f});}}}}}['_resolveDescriptionItems'](_0x4f98e2){const _0x2db0f8=this['_locale'],_0x2dfe70=[],_0x34133b=[],_0x1ef7fb=[];for(const _0xb4af37 of _0x4f98e2)switch(_0xb4af37['type']){case'text':if(_0xb4af37['add']=_0xb4af37['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xb4af37['remove']=_0xb4af37['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xb4af37['add']&&''!=_0xb4af37['remove']){_0x2dfe70['push']({'type':'replace','content':o(_0x2db0f8,'REPLACE_TEXT',['\x22'+_0xb4af37['remove']+'\x22','\x22'+_0xb4af37['add']+'\x22'])});continue;}if(null!=_0xb4af37['add']['match'](/^ +$/)){_0x2dfe70['push']({'type':'insertion','content':o(_0x2db0f8,'*Insert:*\x20%0',o(_0x2db0f8,'ELEMENT_SPACE',_0xb4af37['add']['length']))});continue;}if(null!=_0xb4af37['remove']['match'](/^ +$/)){_0x2dfe70['push']({'type':'deletion','content':o(_0x2db0f8,'*Remove:*\x20%0',o(_0x2db0f8,'ELEMENT_SPACE',_0xb4af37['remove']['length']))});continue;}if(''!=_0xb4af37['add']){_0x2dfe70['push']({'type':'insertion','content':o(_0x2db0f8,'*Insert:*\x20%0','\x22'+_0xb4af37['add']+'\x22')});continue;}_0x2dfe70['push']({'type':'deletion','content':o(_0x2db0f8,'*Remove:*\x20%0','\x22'+_0xb4af37['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2dfe70['push']({'type':'insertion','content':o(_0x2db0f8,'*Insert:*\x20%0',this['getItemLabel'](_0xb4af37['element'],_0xb4af37['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2dfe70['push']({'type':'deletion','content':o(_0x2db0f8,'*Remove:*\x20%0',this['getItemLabel'](_0xb4af37['element'],_0xb4af37['quantity']))});continue;case'addContainer':_0x2dfe70['push']({'type':'insertion','content':o(_0x2db0f8,'*Split:*\x20%0',this['getItemLabel'](_0xb4af37['element'],_0xb4af37['quantity']))});continue;case'removeContainer':_0x2dfe70['push']({'type':'deletion','content':o(_0x2db0f8,'*Merge:*\x20%0',this['getItemLabel'](_0xb4af37['element'],_0xb4af37['quantity']))});continue;case'addFormat':_0x34133b['push'](_0xb4af37['key']);continue;case'removeFormat':_0x1ef7fb['push'](_0xb4af37['key']);continue;default:_0x2dfe70['push'](_0xb4af37);}if(_0x34133b['length']){const _0x39a99f=_0x34133b['map'](_0x5958bc=>this['_attributeLabels']['has'](_0x5958bc)?this['_attributeLabels']['get'](_0x5958bc):_0x5958bc)['join'](',\x20');_0x2dfe70['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x39a99f)});}if(_0x1ef7fb['length']){const _0x12a1f1=_0x1ef7fb['map'](_0x4e4eb7=>this['_attributeLabels']['has'](_0x4e4eb7)?this['_attributeLabels']['get'](_0x4e4eb7):_0x4e4eb7)['join'](',\x20');_0x2dfe70['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x12a1f1)});}return _0x2dfe70;}['_handleCustomCallbackDescription'](_0x4a7a30){for(const _0x6976f7 of this['_customCallbacks']){const _0x34047a=_0x6976f7(_0x4a7a30);if(_0x34047a&&'type'in _0x34047a)return _0x34047a;}}['_handleAttributeSuggestionDescription'](_0x9f46e7,_0x5bd830){const _0x58b36a=_0x5bd830['data'],_0x11b9c7=void 0x0===_0x58b36a['newValue']?'removeFormat':'addFormat';_0x9f46e7['push']({'type':_0x11b9c7,'key':_0x58b36a['key']});}['_handleRenameSuggestionDescription'](_0x2dbde4,_0x4b28b8){_0x2dbde4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4b28b8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x43f648,_0x4b01a6,_0x46e4c6){if(this['_addDescriptionItems'](_0x43f648,_0x4b01a6),_0x46e4c6&&_0x46e4c6['getFirstRange']()&&!_0x4b01a6['getFirstRange']()['end']['isEqual'](_0x46e4c6['getFirstRange']()['start'])){const _0x491c85=_0x43f648[_0x43f648['length']-0x1],_0x3450f0='insertion'==_0x4b01a6['type']?'add':'remove';_0x491c85&&'text'==_0x491c85['type']&&(_0x491c85[_0x3450f0]+='\x0a');}}}class V extends _0xd0fe4f{['afterInit'](){const _0x4f4b41=this['editor'],_0x5cdf31=_0x4f4b41['plugins']['get']('TrackChangesEditing');_0x4f4b41['commands']['get']('showAIAssistant')&&_0x5cdf31['enableCommand']('showAIAssistant');}}class U extends _0xd0fe4f{['afterInit'](){const _0x25c8d3=this['editor'],_0xf5eac9=_0x25c8d3['locale'];if(!_0x25c8d3['plugins']['has']('AlignmentEditing'))return;const _0x41d3cc=_0x25c8d3['plugins']['get']('TrackChangesEditing');_0x41d3cc['enableDefaultAttributesIntegration']('alignment'),_0x41d3cc['registerBlockAttribute']('alignment'),_0x41d3cc['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xf5eac9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11640e=this['editor'],_0x36bc18=_0x11640e['locale'];_0x11640e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2344b0=>{if('formatBlock'!=_0x2344b0['type'])return;const {data:_0x2b70a4}=_0x2344b0;if(_0x2b70a4&&'alignment'==_0x2b70a4['commandName']){const _0x410297=_0x2b70a4['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x36bc18,'*Format:*\x20%0',function(_0x1ad38e){switch(_0x1ad38e){case'left':return o(_0x36bc18,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x36bc18,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x36bc18,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x36bc18,'FORMAT_JUSTIFY_TEXT');}}(_0x410297))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xd0fe4f{['afterInit'](){const _0x35bbec=this['editor'],_0x24cf55=_0x35bbec['plugins']['get']('TrackChangesEditing'),_0x4685f6=_0x35bbec['locale'];for(const _0x5f4397 of ti){if(!_0x35bbec['plugins']['has'](_0x5f4397))continue;const _0x46c1c6=_0x5f4397['slice'](0x0,-0x7)['toLowerCase'](),_0x4a3ca9='FORMAT_'+_0x46c1c6['toUpperCase']();_0x24cf55['enableDefaultAttributesIntegration'](_0x46c1c6),_0x24cf55['registerInlineAttribute'](_0x46c1c6),_0x24cf55['descriptionFactory']['registerAttributeLabel'](_0x46c1c6,o(_0x4685f6,_0x4a3ca9));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1466b4=this['editor'],_0x33a707=_0x1466b4['locale'],_0x56d35e=_0x1466b4['plugins']['get']('TrackChangesEditing');function _0x4476d4(_0x4de99b,_0x5b1ec7){_0x56d35e['descriptionFactory']['registerDescriptionCallback'](_0x29d388=>{if('formatInline'!=_0x29d388['type'])return;const {data:_0x1dcb9c}=_0x29d388;return _0x1dcb9c&&_0x1dcb9c['commandName']===_0x4de99b?_0x1dcb9c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33a707,'*Format:*\x20%0',_0x5b1ec7)}:{'type':'format','content':o(_0x33a707,'*Remove\x20format:*\x20%0',_0x5b1ec7)}:void 0x0;});}_0x4476d4('bold',o(_0x33a707,'FORMAT_BOLD')),_0x4476d4('italic',o(_0x33a707,'FORMAT_ITALIC')),_0x4476d4('underline',o(_0x33a707,'FORMAT_UNDERLINE')),_0x4476d4('code',o(_0x33a707,'FORMAT_CODE')),_0x4476d4('strikethrough',o(_0x33a707,'FORMAT_STRIKETHROUGH')),_0x4476d4('subscript',o(_0x33a707,'FORMAT_SUBSCRIPT')),_0x4476d4('superscript',o(_0x33a707,'FORMAT_SUPERSCRIPT'));}}class F extends _0xd0fe4f{['afterInit'](){const _0x25a321=this['editor'],_0x4493a5=_0x25a321['locale'];if(!_0x25a321['plugins']['has']('BlockQuoteEditing'))return;const _0x19e406=_0x25a321['plugins']['get']('TrackChangesEditing'),_0x195063=this['editor']['commands']['get']('blockQuote');_0x19e406['enableCommand']('blockQuote',(_0x57a26f,_0x437ed3={})=>{const _0x404eb3=this['editor']['model']['document']['selection'],_0x4bc1f9=_0x437ed3&&void 0x0!==_0x437ed3['forceValue']?_0x437ed3['forceValue']:!_0x195063['value'];let _0x416145=[];if(_0x4bc1f9){const _0x23c706=Array['from'](_0x404eb3['getSelectedBlocks']())['filter'](_0x18c677=>oo(_0x18c677)||function(_0x1433af,_0x1efdf6){const _0x4afd58=_0x1efdf6['checkChild'](_0x1433af['parent'],'blockQuote'),_0x1fcac5=_0x1efdf6['checkChild'](['$root','blockQuote'],_0x1433af);return _0x4afd58&&_0x1fcac5;}(_0x18c677,this['editor']['model']['schema']));_0x416145=to(_0x23c706,_0x25a321['model']);}else{const _0x4e9ec2=Array['from'](_0x404eb3['getSelectedBlocks']())['filter'](_0x50368b=>oo(_0x50368b));_0x416145=to(_0x4e9ec2,_0x25a321['model']);}_0x25a321['model']['change'](()=>{for(const _0x2dea50 of _0x416145)_0x19e406['markBlockFormat'](_0x2dea50,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4bc1f9}]});});}),_0x19e406['descriptionFactory']['registerDescriptionCallback'](_0x496d12=>{const {data:_0x514ed6}=_0x496d12;if(_0x514ed6&&'blockQuote'==_0x514ed6['commandName']){const _0x2eb5bf=o(_0x4493a5,'ELEMENT_BLOCK_QUOTE');return _0x514ed6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4493a5,'*Set\x20format:*\x20%0',_0x2eb5bf)}:{'type':'format','content':o(_0x4493a5,'*Remove\x20format:*\x20%0',_0x2eb5bf)};}});}}function oo(_0x370c0d){return'blockQuote'==_0x370c0d['parent']['name'];}class L extends _0xd0fe4f{['afterInit'](){const _0x1ab0c5=this['editor'];_0x1ab0c5['plugins']['has']('CaseChange')&&(_0x1ab0c5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1ab0c5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1ab0c5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xd0fe4f{['afterInit'](){const _0x2839ba=this['editor'];_0x2839ba['commands']['get']('ckbox')&&_0x2839ba['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0xd0fe4f{['afterInit'](){const _0x2ec224=this['editor'];if(!_0x2ec224['plugins']['has']('CodeBlock'))return;const _0x456a9e=_0x2ec224['plugins']['get']('TrackChangesEditing'),_0x1c3c87=_0x2ec224['locale'],_0x5a99c=_0x2ec224['config']['get']('codeBlock')['languages'],_0x211603=_0x2ec224['commands']['get']('codeBlock');_0x456a9e['enableCommand']('indentCodeBlock'),_0x456a9e['enableCommand']('outdentCodeBlock'),_0x456a9e['enableCommand']('codeBlock',(_0x4fe875,_0x751cae={})=>{const _0x235bee=_0x2ec224['model'],_0x341f69=_0x2ec224['model']['document']['selection'],_0x4a3a9f=_0x751cae&&void 0x0!==_0x751cae['forceValue']?_0x751cae['forceValue']:!_0x211603['value'];let _0x4764ca;_0x751cae['language']||(_0x751cae['language']=_0x5a99c[0x0]['language']),_0x4764ca=_0x4a3a9f?Array['from'](_0x341f69['getSelectedBlocks']())['filter'](_0x3f50ba=>eo(_0x3f50ba)||function(_0x2eb938,_0x5f1c99){if(_0x2eb938['is']('rootElement')||_0x5f1c99['isLimit'](_0x2eb938))return!0x1;return _0x5f1c99['checkChild'](_0x2eb938['parent'],'codeBlock');}(_0x3f50ba,_0x235bee['schema'])):Array['from'](_0x341f69['getSelectedBlocks']())['filter'](_0x75dc6b=>eo(_0x75dc6b));const _0x6b0f9a=to(_0x4764ca,_0x235bee);_0x235bee['change'](()=>{for(const _0x56b923 of _0x6b0f9a)_0x456a9e['markBlockFormat'](_0x56b923,{'commandName':'codeBlock','commandParams':[{..._0x751cae,'forceValue':_0x4a3a9f}],'formatGroupId':'blockName'});});}),(_0x456a9e['descriptionFactory']['registerElementLabel']('codeBlock',_0x827634=>o(_0x1c3c87,'ELEMENT_CODE_BLOCK',_0x827634)),_0x456a9e['descriptionFactory']['registerDescriptionCallback'](_0xe150f=>{if('formatBlock'!=_0xe150f['type'])return;const _0x629eeb=_0x1c3c87['t'],{data:_0x4557ca}=_0xe150f;if(!_0x4557ca||'codeBlock'!=_0x4557ca['commandName'])return;const _0x5ce391=_0x4557ca['commandParams'][0x0]['language'],_0x18abd6=_0x629eeb(_0x5a99c['find'](_0x3b4eb4=>_0x3b4eb4['language']===_0x5ce391)['label'])['toLowerCase']();return _0x4557ca['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c3c87,'*Set\x20format:*\x20%0',o(_0x1c3c87,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x18abd6+')')}:{'type':'format','content':o(_0x1c3c87,'*Remove\x20format:*\x20%0',o(_0x1c3c87,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x328130){return'codeBlock'==_0x328130['name'];}class q extends _0xd0fe4f{['afterInit'](){const _0x105860=this['editor'];if(!_0x105860['plugins']['has']('CommentsEditing'))return;_0x105860['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x24d696,_0x1294ae,_0x505e8c){const _0x3ca7d0=[];for(const _0x4a5808 of _0x1294ae['getItems']())_0x4a5808['hasAttribute'](_0x24d696)&&_0x3ca7d0['push'](_0x505e8c['createRangeOn'](_0x4a5808));return _0x3ca7d0;}function _e(_0x4eb0cd,_0xc48d68,{showActiveMarker:_0x2be6f9=!0x0}={}){const _0x3291df=_0x4eb0cd['plugins']['get']('TrackChangesEditing');return(_0x279c5a,_0x34fba4,_0x1312af)=>{if(!_0x1312af['consumable']['test'](_0x34fba4['markerRange'],_0x279c5a['name']))return;const _0x35764a=_0x34fba4['markerRange']['getWalker'](),_0x36606e=_0x34fba4['markerRange']['start'],_0x16a27c=_0x4eb0cd['model']['schema'];let _0x41cd3c=null,_0x2a98c2=null,_0x54b202=!0x1,_0x25d3ad=!0x1;for(const _0x1d7645 of _0x35764a){const _0xa05776=_0x1d7645['item'];_0x54b202=_0x54b202||_0x16a27c['isContent'](_0xa05776);const _0x5e0097=_0x1312af['mapper']['toViewElement'](_0xa05776);if(_0x5e0097&&_0x5e0097['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d7645['type']&&(_0x16a27c['isBlock'](_0xa05776)&&!_0x16a27c['isLimit'](_0xa05776)&&(_0xa05776['nextSibling']||_0x36606e['isAtEnd']?_0x41cd3c&&_0x41cd3c['parent']==_0xa05776||(_0x41cd3c=_0xa05776,_0x5d8ad4(_0x1d7645['previousPosition']),_0x25d3ad=!0x0):_0x2a98c2=_0x2a98c2||_0x1d7645['previousPosition']));}function _0x5d8ad4(_0x2b006b){const {authorId:_0x5a55f3}=_0x3291df['_splitMarkerName'](_0x34fba4['markerName']),_0x1e7b0f=_0x1312af['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc48d68,'data-author-id':_0x5a55f3}),_0x162388=_0x1312af['mapper']['toViewPosition'](_0x2b006b);_0x2be6f9&&_0x3291df['activeMarkers']['includes'](_0x34fba4['markerName'])&&_0x1312af['writer']['addClass']('ck-suggestion-marker--active',_0x1e7b0f),_0x1312af['writer']['insert'](_0x162388,_0x1e7b0f),_0x1312af['mapper']['bindElementToMarker'](_0x1e7b0f,_0x34fba4['markerName']);}_0x54b202||_0x25d3ad||!_0x2a98c2||_0x5d8ad4(_0x2a98c2);};}class z extends _0xd0fe4f{static get['requires'](){return[_0x201443];}['init'](){const _0xc5058=this['editor'],_0x5b6728=_0xc5058['plugins']['get']('TrackChangesEditing');_0x5b6728['enableCommand']('delete');const _0x230efa=_0xc5058['commands']['get']('deleteForward');_0x5b6728['enableCommand']('deleteForward',(_0x25b8ce,_0x3921dc={})=>{const _0x5224c7=_0xc5058['model']['createSelection'](_0xc5058['model']['document']['selection']);_0x5224c7['isCollapsed']&&_0xc5058['model']['modifySelection'](_0x5224c7,{'direction':'forward','unit':_0x3921dc['unit']});const _0x5e6dfb=_0x5224c7['getFirstRange'](),_0x386270=_0x425d25['fromRange'](_0x5e6dfb);let _0xef3c84;_0x25b8ce(_0x3921dc),_0xef3c84='$graveyard'==_0x386270['root']['rootName']?_0xc5058['model']['createRange'](_0x5e6dfb['start']):_0xc5058['model']['createRange'](_0x386270['start'],_0x386270['end']),_0x386270['detach'](),_0xc5058['model']['enqueueChange'](_0x230efa['buffer']['batch'],_0x3f73f1=>{_0x230efa['buffer']['lock'](),_0x3f73f1['setSelection'](_0x3f73f1['createRange'](_0xef3c84['end'])),_0x230efa['buffer']['unlock']();});}),_0xc5058['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xc5058,'merge'),{'priority':'high'}),_0xc5058['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x563a57,_0x17bd4e,_0x1d663f)=>{_0x1d663f['options']['showSuggestionHighlights']&&_e(_0xc5058,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x563a57,_0x17bd4e,_0x1d663f);},{'priority':'high'}),_0xc5058['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5b0ce6,_0x2a3f44,_0x5622eb)=>{const _0xc8e3ae=_0x5622eb['mapper']['markerNameToElements'](_0x2a3f44['markerName']);if(_0xc8e3ae){for(const _0x393e7f of _0xc8e3ae)_0x393e7f['is']('uiElement')&&(_0x5622eb['mapper']['unbindElementFromMarkerName'](_0x393e7f,_0x2a3f44['markerName']),_0x5622eb['writer']['remove'](_0x393e7f));}},{'priority':'high'});}}class K extends _0xd0fe4f{['afterInit'](){const _0x3f5470=this['editor'];if(!_0x3f5470['plugins']['has']('ListEditing'))return;const _0x14d627=_0x3f5470['locale'],_0x107ceb=_0x3f5470['plugins']['get']('TrackChangesEditing'),_0x2febb=_0x3f5470['plugins']['has']('TodoListEditing'),_0x377f80=!!_0x3f5470['config']['get']('list.multiBlock');function _0x556dcb(_0x3f92b5){return{'type':'format','content':''+o(_0x14d627,'*Set\x20format:*\x20%0',_0x3f92b5)};}function _0x1db529(_0x517b1b){return{'type':'format','content':''+o(_0x14d627,'*Remove\x20format:*\x20%0',_0x517b1b)};}_0x107ceb['enableDefaultAttributesIntegration']('numberedList'),_0x107ceb['enableDefaultAttributesIntegration']('bulletedList'),_0x107ceb['enableDefaultAttributesIntegration']('customNumberedList'),_0x107ceb['enableDefaultAttributesIntegration']('customBulletedList'),_0x107ceb['enableDefaultAttributesIntegration']('indentList'),_0x107ceb['enableDefaultAttributesIntegration']('outdentList'),_0x107ceb['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x107ceb['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x107ceb['registerBlockAttribute']('listItemId'),_0x107ceb['registerBlockAttribute']('listType'),_0x107ceb['registerBlockAttribute']('listIndent'),_0x377f80&&(_0x107ceb['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x107ceb['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2febb&&(_0x107ceb['enableDefaultAttributesIntegration']('todoList'),_0x107ceb['enableDefaultAttributesIntegration']('checkTodoList'),_0x107ceb['registerBlockAttribute']('todoListChecked'),_0x107ceb['descriptionFactory']['registerDescriptionCallback'](_0x14a07f=>{const {data:_0x5e351c}=_0x14a07f;if(_0x5e351c&&'todoListChecked'==_0x5e351c['key'])return{'type':'format','content':_0x5e351c['newValue']?o(_0x14d627,'*Check\x20item*'):o(_0x14d627,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x34e852=>{if(_0x34e852['batch']['isUndo'])return!0x1;let _0x4cfd41=!0x1;const _0x495909=_0x107ceb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20bc8c=>'todoListChecked'===_0x107ceb['_getAttributeKey'](_0x20bc8c));for(const _0x2f086b of _0x495909){'todo'!=_0x2f086b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x107ceb['_findSuggestions'](_0x2f086b['getFirstRange'](),'attribute')['find'](_0x1019c9=>'listType'===_0x107ceb['_getAttributeKey'](_0x1019c9['suggestion']))||(_0x34e852['removeMarker'](_0x2f086b['getFirstMarker']()),_0x4cfd41=!0x0));}return _0x4cfd41;})),_0x107ceb['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x14d627,'FORMAT_INDENT'));const _0x23c56e={'type':'format','content':''};_0x107ceb['descriptionFactory']['registerDescriptionCallback'](_0x5b91ab=>{const {data:_0x36f3f3}=_0x5b91ab;if(!_0x36f3f3||'listType'!=_0x36f3f3['key'])return;let _0x46823a=_0x5b91ab['head'];for(;_0x46823a;){if(_0x46823a['data']&&(('listStyle'==_0x46823a['data']['key']||'listMarkerStyle'==_0x46823a['data']['key'])&&(_0x46823a['data']['newValue']&&'default'!=_0x46823a['data']['newValue']||'default'!=_0x46823a['data']['oldValue']&&!_0x36f3f3['newValue'])||!_0x377f80&&_0x46823a['data']['key']==m))return _0x23c56e;_0x46823a=_0x46823a['next'];}if(null==_0x36f3f3['newValue'])switch(_0x36f3f3['oldValue']){case'bulleted':return _0x1db529(o(_0x14d627,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1db529(o(_0x14d627,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1db529(o(_0x14d627,'ELEMENT_TODO_LIST'));}switch(_0x36f3f3['newValue']){case'bulleted':return _0x556dcb(o(_0x14d627,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x556dcb(o(_0x14d627,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x556dcb(o(_0x14d627,'ELEMENT_TODO_LIST'));}}),_0x107ceb['descriptionFactory']['registerDescriptionCallback'](_0x42567f=>{const {data:_0x49858a}=_0x42567f;if(_0x49858a&&'listIndent'==_0x49858a['key'])return null==_0x49858a['newValue']||null==_0x49858a['oldValue']&&0x0==_0x49858a['newValue']?_0x23c56e:void 0x0;}),_0x107ceb['descriptionFactory']['registerDescriptionCallback'](_0xf6de91=>{if('attribute'!=_0xf6de91['type'])return;const {data:_0x3ca4cb}=_0xf6de91;if(!_0x3ca4cb||'listItemId'!=_0x3ca4cb['key'])return;const _0x420b88=Ee(_0xf6de91);return'newValue'==_0x420b88?{'type':'format','content':o(_0x14d627,'*Merge:*\x20list\x20item')}:'oldValue'==_0x420b88?{'type':'format','content':o(_0x14d627,'*Split:*\x20list\x20item')}:_0x23c56e;}),_0x3f5470['model']['document']['registerPostFixer'](_0x2c864e=>this['listItemIdFixer'](_0x2c864e)),_0x3f5470['model']['document']['registerPostFixer'](_0x23db3c=>this['noTrackChangesFixer'](_0x23db3c)),_0x3f5470['model']['document']['on']('change:data',(_0x4af203,_0x5b7e52)=>{if(_0x5b7e52['isUndo']||!_0x5b7e52['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xb8a456){if(_0xb8a456['batch']['isUndo']||!_0xb8a456['batch']['isLocal'])return!0x1;let _0x1d9f9f=!0x1;const _0x20169d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x245d67=>_0x245d67['data']&&'listItemId'==_0x245d67['data']['key'])['filter'](_0xa424d3=>_0xa424d3['data']['newValue']&&_0xa424d3['data']['oldValue']);for(const _0x1d01a4 of _0x20169d)Ee(_0x1d01a4)||(_0xb8a456['removeMarker'](_0x1d01a4['getFirstMarker']()),_0x1d9f9f=!0x0);return _0x1d9f9f;}['noTrackChangesFixer'](_0x3d74a3){if(_0x3d74a3['batch']['isUndo']||!_0x3d74a3['batch']['isLocal'])return!0x1;const _0x75ebfe=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x75ebfe['trackChangesCommand']['value'])return!0x1;let _0x53507d=!0x1;const _0x2de581=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2aefd9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x38c6b7=>'attribute'==_0x38c6b7['type'])['filter'](_0x378f1c=>_0x2de581['includes'](_0x378f1c['attributeKey']));if(0x0==_0x2aefd9['length'])return _0x53507d;for(const _0x154a3c of _0x2aefd9){const _0x5bbe63=_0x75ebfe['_findSuggestions'](_0x154a3c['range'],'attribute')['filter'](_0x4f4dda=>!_0x4f4dda['meta']['isNextTo'])['map'](_0xf5fc80=>_0xf5fc80['suggestion'])['filter'](_0xfb773a=>{const _0x3f9041=_0x75ebfe['_getAttributeKey'](_0xfb773a);return _0x2de581['includes'](_0x3f9041);});if(_0x5bbe63['length']){for(const _0x21e9ed of _0x5bbe63)_0x3d74a3['removeMarker'](_0x21e9ed['getFirstMarker']());_0x53507d=!0x0;}}return _0x53507d;}['assureChains'](){const _0x12ad42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ebd0d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x47504a;const _0x20b91c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x489a93=>{if(_0x489a93['data']['oldRange']||!_0x489a93['data']['newRange'])return null;if(!_0x489a93['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x497c22}=_0x12ad42['_splitMarkerName'](_0x489a93['name']);if(!_0x12ad42['hasSuggestion'](_0x497c22))return null;const _0x37b9ea=_0x12ad42['getSuggestion'](_0x497c22);return _0x5ebd0d['includes'](_0x37b9ea['data']['key']);})['map'](_0x571a78=>{const {id:_0x394f47}=_0x12ad42['_splitMarkerName'](_0x571a78['name']),_0x20211c=_0x12ad42['getSuggestion'](_0x394f47);return _0x47504a=_0x20211c['attributes']['groupId'],_0x20211c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x20b91c['size'])return;const _0x4622b7=_0x12ad42['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf311a6=>'attribute'==_0xf311a6['type']&&_0xf311a6['data']&&_0x5ebd0d['includes'](_0xf311a6['data']['key'])&&_0xf311a6['attributes']['groupId']!=_0x47504a)['map'](_0x3db588=>({'listItem':_0x3db588['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3db588['attributes']['groupId']})),_0xad04c0=new Set();for(const {groupId:_0x45b6ff,listItem:_0x4bf58e}of _0x4622b7)_0x20b91c['has'](_0x4bf58e)&&_0xad04c0['add'](_0x45b6ff);for(const _0x8989cc of _0x12ad42['getSuggestions']())_0xad04c0['has'](_0x8989cc['attributes']['groupId'])&&_0x8989cc['setAttribute']('groupId',_0x47504a);}['_supportLegacySuggestions'](){const _0x2e13a7=this['editor'],_0x2d3a32=_0x2e13a7['locale'],_0xf30f2b=_0x2e13a7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xf30f2b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1a425a,_0x18b443){const _0x4181cd=[];for(let _0x27c806 of _0x1a425a)_0x27c806['start']['nodeAfter']===_0x27c806['end']['parent']&&(_0x27c806=_0x2e13a7['model']['createRange'](_0x2e13a7['model']['createPositionAt'](_0x27c806['start']['nodeAfter'],0x0))),_0x4181cd['push'](_0x27c806);_0x2e13a7['model']['change'](_0x4b091=>{const _0x4c16fa=_0x2e13a7['model']['document']['selection'],_0x1c7362=Array['from'](_0x4c16fa['getRanges']())['map'](_0x5e5c1e=>_0x425d25['fromRange'](_0x5e5c1e));_0x4b091['setSelection'](_0x4181cd),_0x2e13a7['commands']['get'](_0x18b443['commandName'])['refresh'](),_0x18b443['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2e13a7['execute'](_0x18b443['commandName'],..._0x18b443['commandParams']),_0x4b091['setSelection'](_0x1c7362);for(const _0x2b1b0d of _0x1c7362)_0x2b1b0d['detach']();});}),_0xf30f2b['descriptionFactory']['registerElementLabel'](function(_0x137f5e){const _0x679245=!_0x2e13a7['model']['schema']['isObject'](_0x137f5e),_0x1fd376=_0x137f5e['previousSibling'],_0x575fb8=_0x137f5e['nextSibling'],_0xd23a07=_0x137f5e['getAttribute']('listItemId'),_0x416080=!_0x1fd376||_0x1fd376['getAttribute']('listItemId')!==_0xd23a07,_0x37a922=!_0x575fb8||_0x575fb8['getAttribute']('listItemId')!==_0xd23a07;return _0x679245&&Boolean(_0xd23a07)&&_0x416080&&_0x37a922;},_0x4bc1fc=>o(_0x2d3a32,'ELEMENT_LIST_ITEM',_0x4bc1fc));}['_registerLegacyDescription'](){const _0x22a2f7=this['editor'],_0x3da765=_0x22a2f7['locale'];function _0x1b0a4b(_0x1be32a){const _0x101348=_0x22a2f7['commands']['get']('bulletedList')['value'],_0x1bff1c=_0x22a2f7['commands']['get']('numberedList')['value'];return'numberedList'===_0x1be32a?_0x101348:_0x1bff1c;}_0x22a2f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xc8b30e){if('formatBlock'!=_0xc8b30e['type'])return;const {data:_0x26b192}=_0xc8b30e;if(!_0x26b192)return;let _0x5609ba,_0x4d50a0,_0x82d0b6,_0x299a29;switch(_0x26b192['commandName']){case'bulletedList':_0x82d0b6=_0x26b192['commandParams'][0x0]['forceValue'],_0x299a29=_0x1b0a4b(_0x26b192['commandName']),_0x5609ba=_0x82d0b6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x299a29&&_0x22a2f7['config']['get']('list.multiBlock')||(_0x5609ba='*Change\x20to:*\x20%0'),_0x4d50a0={'type':'format','content':o(_0x3da765,_0x5609ba,o(_0x3da765,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x82d0b6=_0x26b192['commandParams'][0x0]['forceValue'],_0x299a29=_0x1b0a4b(_0x26b192['commandName']),_0x5609ba=_0x82d0b6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x299a29&&_0x22a2f7['config']['get']('list.multiBlock')||(_0x5609ba='*Change\x20to:*\x20%0'),_0x4d50a0={'type':'format','content':o(_0x3da765,_0x5609ba,o(_0x3da765,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5609ba='*Indent:*\x20%0',_0x4d50a0={'type':'format','content':o(_0x3da765,_0x5609ba,o(_0x3da765,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5609ba=function(_0x5977cb){const _0x5dc69e=_0x5977cb['getFirstRange']();let _0x553a30=_0x5dc69e['start']['nodeAfter'];for(;_0x553a30&&_0x5dc69e['containsItem'](_0x553a30);){if(_0x553a30['getAttribute']('listIndent')>0x0)return!0x1;_0x553a30=_0x553a30['nextSibling'];}return!0x0;}(_0xc8b30e)?o(_0x3da765,'*Format:*\x20remove\x20from\x20%0',o(_0x3da765,function(_0x225176){return'ELEMENT_'+_0x225176['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xc8b30e))):o(_0x3da765,'*Outdent:*\x20%0',o(_0x3da765,'ELEMENT_LIST_ITEM')),_0x4d50a0={'type':'format','content':_0x5609ba};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x26b192['multipleBlocks']&&(_0x5609ba='*Merge:*\x20%0',_0x4d50a0={'type':'deletion','content':o(_0x3da765,_0x5609ba,o(_0x3da765,'ELEMENT_LIST_ITEM'))});}return _0x4d50a0;});}}function Ee(_0x37ae67){let _0x52479d=_0x37ae67['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x52479d;){const _0x2348ac=_0x52479d['getAttribute']('listItemId');if(!_0x2348ac)return!0x1;if(_0x2348ac==_0x37ae67['data']['newValue'])return'newValue';if(_0x2348ac==_0x37ae67['data']['oldValue'])return'oldValue';_0x52479d=_0x52479d['previousSibling'];}return!0x1;}class pe extends _0xd0fe4f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x30da7d=this['editor']['config']['get']('list.properties'),_0x52f1f0=this['editor']['plugins']['get']('TrackChangesEditing');_0x30da7d['styles']&&(_0x52f1f0['enableDefaultAttributesIntegration']('listStyle'),_0x52f1f0['registerBlockAttribute']('listStyle')),_0x30da7d['reversed']&&(_0x52f1f0['enableDefaultAttributesIntegration']('listReversed'),_0x52f1f0['registerBlockAttribute']('listReversed')),_0x30da7d['startIndex']&&(_0x52f1f0['enableDefaultAttributesIntegration']('listStart'),_0x52f1f0['registerBlockAttribute']('listStart'));const _0x3ac669={'type':'format','content':''};_0x52f1f0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x230e7e=this['editor']['locale'];_0x52f1f0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x230e7e,'FORMAT_LIST_REVERSED')),_0x52f1f0['descriptionFactory']['registerDescriptionCallback'](_0x3f35db=>{const {data:_0x59ca7e}=_0x3f35db;if(_0x59ca7e&&'listReversed'==_0x59ca7e['key'])return null==_0x59ca7e['newValue']||0x0==_0x59ca7e['newValue']&&null==_0x59ca7e['oldValue']?_0x3ac669:void 0x0;}),_0x52f1f0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x230e7e,'FORMAT_LIST_START')),_0x52f1f0['descriptionFactory']['registerDescriptionCallback'](_0x5c618b=>{const {data:_0x53422f}=_0x5c618b;if(_0x53422f&&'listStart'==_0x53422f['key'])return null==_0x53422f['newValue']||0x1==_0x53422f['newValue']&&null==_0x53422f['oldValue']?_0x3ac669:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x39c4a2=>{if(_0x39c4a2['batch']['isUndo'])return!0x1;let _0x3dff93=!0x1;const _0x478d3f=_0x52f1f0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a976e=>{const _0xb0f899=_0x52f1f0['_getAttributeKey'](_0x1a976e);return'listStart'==_0xb0f899||'listReversed'==_0xb0f899;});for(const _0xabe9a9 of _0x478d3f){const _0x3a591b=_0xabe9a9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3a591b||'customNumbered'==_0x3a591b)continue;_0x52f1f0['_findSuggestions'](_0xabe9a9['getFirstRange'](),'attribute')['find'](_0x533c32=>'listType'==_0x52f1f0['_getAttributeKey'](_0x533c32['suggestion']))||(_0x39c4a2['removeMarker'](_0xabe9a9['getFirstMarker']()),_0x3dff93=!0x0);}return _0x3dff93;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x513216){const _0x3d2df3=this['editor']['locale'],{data:_0x25033c}=_0x513216,_0x33b32c={'type':'format','content':''};if(!_0x25033c||'listStyle'!=_0x25033c['key'])return;if(!_0x25033c['oldValue'])return'default'==_0x25033c['newValue']?_0x33b32c:{'type':'format','content':''+o(_0x3d2df3,'*Set\x20format:*\x20%0',o(_0x3d2df3,this['_getTranslationKeyForListStyle'](_0x25033c['newValue'])))};if(!_0x25033c['newValue']){if('default'==_0x25033c['oldValue'])return _0x33b32c;let _0x26b052=_0x513216['head'];for(;_0x26b052;){if(_0x26b052['data']&&'listType'==_0x26b052['data']['key']&&_0x26b052['data']['newValue'])return _0x33b32c;_0x26b052=_0x26b052['next'];}return{'type':'format','content':''+o(_0x3d2df3,'*Remove\x20format:*\x20%0',o(_0x3d2df3,this['_getTranslationKeyForListStyle'](_0x25033c['oldValue'])))};}if('default'!=_0x25033c['newValue'])return{'type':'format','content':''+o(_0x3d2df3,'*Set\x20format:*\x20%0',o(_0x3d2df3,this['_getTranslationKeyForListStyle'](_0x25033c['newValue'])))};let _0x49360f=_0x513216['head'];for(;_0x49360f;){if(_0x49360f['data']&&'listType'==_0x49360f['data']['key']&&_0x49360f['data']['newValue']&&_0x49360f['data']['oldValue'])return _0x33b32c;_0x49360f=_0x49360f['next'];}return{'type':'format','content':o(_0x3d2df3,'*Set\x20format:*\x20%0',o(_0x3d2df3,'ELEMENT_'+_0x513216['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3eaf4c=this['editor'],_0x57174a=_0x3eaf4c['locale'];_0x3eaf4c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d1269=>{if('formatBlock'!=_0x3d1269['type'])return;const {data:_0x1b0bd7}=_0x3d1269;if(!_0x1b0bd7)return;let _0x25d990,_0x565467;switch(_0x1b0bd7['commandName']){case'listStyle':_0x25d990='*Change\x20to:*\x20%0',_0x565467={'type':'format','content':o(_0x57174a,_0x25d990,o(_0x57174a,this['_getTranslationKeyForListStyle'](_0x1b0bd7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x25d990=_0x1b0bd7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x565467={'type':'format','content':o(_0x57174a,_0x25d990)};break;case'listStart':_0x25d990='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x565467={'type':'format','content':o(_0x57174a,_0x25d990,_0x1b0bd7['commandParams'][0x0]['startIndex'])};}return _0x565467;});}['_getTranslationKeyForListStyle'](_0x187f30){return'ELEMENT_'+function(_0x1cb1ae){if(ye['includes'](_0x1cb1ae))return'bulleted';if(Se['includes'](_0x1cb1ae))return'numbered';return null;}(_0x187f30)['toUpperCase']()+'_LIST_'+_0x187f30['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0xd0fe4f{static get['requires'](){return[_0x31c29d];}['init'](){const _0x52cf18=this['editor'],_0x2537db=_0x52cf18['plugins']['get']('TrackChangesEditing'),_0x23a0e4=_0x52cf18['commands']['get']('enter');_0x2537db['enableCommand']('enter',()=>{_0x52cf18['model']['change'](_0x13b3ec=>{const _0x4abdef=_0x52cf18['model']['document']['selection'],_0x3fa418=_0x4abdef['getFirstPosition'](),_0x3c21cd=_0x425d25['fromRange'](_0x4abdef['getFirstRange']());if(_0x23a0e4['enterBlock'](_0x13b3ec)){const _0x4a62d7=_0x52cf18['model']['createPositionAt'](_0x3fa418['parent']['nextSibling'],0x0),_0x3340c6=_0x13b3ec['createRange'](_0x3fa418,_0x4a62d7);_0x2537db['markInsertion'](_0x3340c6);}else _0x13b3ec['setSelection'](_0x13b3ec['createRange'](_0x3c21cd['end']));_0x3c21cd['detach'](),_0x23a0e4['fire']('afterExecute',{'writer':_0x13b3ec});});}),_0x52cf18['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x52cf18,'split'),{'priority':'high'}),_0x52cf18['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x21b963,_0x1e7123,_0x553ec6)=>{const _0x458fb3=_0x553ec6['mapper']['markerNameToElements'](_0x1e7123['markerName']);if(_0x458fb3){for(const _0x669089 of _0x458fb3)_0x669089['hasClass']('ck-suggestion-marker-split')&&(_0x553ec6['mapper']['unbindElementFromMarkerName'](_0x669089,_0x1e7123['markerName']),_0x553ec6['writer']['remove'](_0x669089));}},{'priority':'high'}),_0x52cf18['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1ce8b3,_0x1f9f34,_0x497bd5)=>{_0x497bd5['options']['showSuggestionHighlights']&&_e(_0x52cf18,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1ce8b3,_0x1f9f34,_0x497bd5);},{'priority':'high'});}}class X extends _0xd0fe4f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x39448e=this['editor']['plugins']['get']('TrackChangesEditing');_0x39448e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x39448e['enableCommand']('findNext'),_0x39448e['enableCommand']('findPrevious'),_0x39448e['enableCommand']('replace'),_0x39448e['enableCommand']('replaceAll');}['handleFindCommand'](_0x1de632,_0x594126,_0x5a58e9={}){const _0x45678c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1de632(_0x414371=>{let _0x674366=('string'==typeof _0x594126?_0x45678c['findByTextCallback'](_0x594126,_0x5a58e9):_0x594126)(_0x414371);Array['isArray'](_0x674366)&&(_0x674366={'results':_0x674366,'searchText':'string'==typeof _0x594126?_0x594126:''});const _0x1eddad=_0x674366['results']['filter'](_0x5a7c6c=>!0x1===this['_isInDeletionRange'](_0x5a7c6c,_0x414371['item']));return{..._0x674366,'results':_0x1eddad};},_0x5a58e9);}['_isInDeletionRange'](_0x360472,_0x219cd8){const _0x44ade7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x219cd8,_0x360472['start']),this['editor']['model']['createPositionAt'](_0x219cd8,_0x360472['end']));for(const _0x3e5997 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x44ade7['getIntersection'](_0x3e5997['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0xd0fe4f{['afterInit'](){const _0x1c96d3=this['editor']['locale'],_0x19d55a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2c5869,commandName:_0x140898}of ro)this['editor']['plugins']['has'](_0x2c5869)&&(_0x19d55a['enableDefaultAttributesIntegration'](_0x140898),_0x19d55a['registerInlineAttribute'](_0x140898));_0x19d55a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1c96d3,'FORMAT_FONT_SIZE')),_0x19d55a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1c96d3,'FORMAT_FONT_FAMILY')),_0x19d55a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1c96d3,'FORMAT_FONT_COLOR')),_0x19d55a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1c96d3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x470abf=this['editor'],_0x4f4eee=_0x470abf['locale'];_0x470abf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2161ab=>{const _0x2061f6=_0x4f4eee['t'];if('formatInline'!=_0x2161ab['type'])return;const {data:_0x57640}=_0x2161ab;if(null!=_0x57640){if('fontSize'==_0x57640['commandName']){const _0x497e34=_0x57640['commandParams'][0x0]['value'];if(_0x497e34){const _0x4e8162=_0x2061f6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x390f34=>_0x390f34['model']==_0x497e34)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4f4eee,'*Set\x20font\x20size:*\x20%0',_0x4e8162)};}return{'type':'format','content':o(_0x4f4eee,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x57640['commandName']){const _0xacdf47=_0x57640['commandParams'][0x0]['value'];return _0xacdf47?{'type':'format','content':o(_0x4f4eee,'*Set\x20font\x20family:*\x20%0',_0xacdf47)}:{'type':'format','content':o(_0x4f4eee,'*Reset\x20font\x20family*')};}if('fontColor'==_0x57640['commandName']){const _0x1f1792=_0x57640['commandParams'][0x0]['value'];if(_0x1f1792){const _0x32d232=_0x5649af(this['editor']['config']['get']('fontColor.colors'))['find'](_0x165370=>_0x165370['model']==_0x1f1792);let _0x48fc4d=_0x1f1792,_0x5dbed3='';return _0x32d232&&(_0x48fc4d=_0x32d232['label'],_0x5dbed3=_0x2061f6(_0x48fc4d)['toLowerCase']()),{'type':'format','content':o(_0x4f4eee,'*Set\x20font\x20color:*\x20%0',_0x5dbed3)['trim'](),'color':{'value':_0x1f1792,'title':_0x5dbed3||_0x48fc4d}};}return{'type':'format','content':o(_0x4f4eee,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x57640['commandName']){const _0x35e7d9=_0x57640['commandParams'][0x0]['value'];if(_0x35e7d9){const _0x53f263=_0x5649af(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xfe921e=>_0xfe921e['model']==_0x35e7d9);let _0x472967=_0x35e7d9,_0x16f582='';return _0x53f263&&(_0x472967=_0x53f263['label'],_0x16f582=_0x2061f6(_0x472967)['toLowerCase']()),{'type':'format','content':o(_0x4f4eee,'*Set\x20font\x20background\x20color:*\x20%0',_0x16f582)['trim'](),'color':{'value':_0x35e7d9,'title':_0x16f582||_0x472967}};}return{'type':'format','content':o(_0x4f4eee,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0xd0fe4f{['afterInit'](){const _0x17df47=this['editor'],_0x3e85c6=_0x17df47['plugins']['get']('TrackChangesEditing'),_0x45c870=_0x17df47['commands']['get']('copyFormat'),_0x4b543c=_0x17df47['commands']['get']('pasteFormat');_0x45c870&&_0x4b543c&&(_0x3e85c6['enableDefaultAttributesIntegration']('pasteFormat'),_0x3e85c6['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xab5644=this['editor'],_0x2ad89c=_0xab5644['locale'];_0xab5644['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5702f2=>{if('formatBlock'!=_0x5702f2['type']&&'formatInline'!=_0x5702f2['type'])return;const {data:_0x5af7a8}=_0x5702f2;if(_0x5af7a8&&'pasteFormat'===_0x5af7a8['commandName']){const _0x40a5c=[],_0x520064=_0x5af7a8['commandParams'][0x0];for(const [_0x39a159,_0xbe061b]of Object['entries'](_0x520064))_0x40a5c['push'](so(_0xab5644,_0x39a159,_0xbe061b));return _0x40a5c['length']?{'type':'format','content':o(_0x2ad89c,'*Set\x20format\x20to:*\x20%0',_0x40a5c['join'](',\x20'))}:{'type':'format','content':o(_0x2ad89c,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3509cc,_0x308889,_0x2d9666){const _0x448bd3=_0x3509cc['locale']['t'],_0x3e6ed7=_0x308889['split'](/(?=[A-Z])/)['join']('\x20'),_0x54c8c3=_0x448bd3(_0x3e6ed7['charAt'](0x0)['toUpperCase']()+_0x3e6ed7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2d9666)return _0x54c8c3;if('fontColor'===_0x308889||'fontBackgroundColor'===_0x308889){const _0x8768b=_0x5649af(_0x3509cc['config']['get']('fontColor.colors'))['find'](_0xe1a8fc=>_0xe1a8fc['model']==_0x2d9666);return _0x54c8c3+'\x20('+(_0x8768b?_0x448bd3(_0x8768b['label'])['toLowerCase']():_0x2d9666)+')';}if('fontSize'===_0x308889&&isNaN(parseFloat(_0x2d9666))){const _0x63662a=_0x3509cc['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3509cc['config']['get']('fontSize.options'))['find'](_0x3b2ea0=>_0x3b2ea0['model']==_0x2d9666);return _0x54c8c3+'\x20('+(_0x63662a?_0x448bd3(_0x63662a['title'])['toLowerCase']():_0x2d9666)+')';}return _0x54c8c3+'\x20('+_0x2d9666+')';}class tt extends _0xd0fe4f{['_headingOptions'];['afterInit'](){const _0xc256b1=this['editor'];if(!_0xc256b1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xc256b1['config']['get']('heading.options');const _0x575286=_0xc256b1['locale'],_0x258e88=_0xc256b1['plugins']['get']('TrackChangesEditing');_0x258e88['enableDefaultAttributesIntegration']('heading');for(const _0x4c4882 of this['_headingOptions'])'paragraph'!=_0x4c4882['model']&&_0x258e88['descriptionFactory']['registerElementLabel'](_0x4c4882['model'],_0x1ec49c=>{const _0x576e84=this['_getHeadingLevel'](_0x4c4882['model']);return null!==_0x576e84?_0x5c6b9f(_0x1ec49c,_0x576e84):_0x3750a7(_0x1ec49c,_0x4c4882['title']);});function _0x5c6b9f(_0x506ee6,_0x525b18){return o(_0x575286,'ELEMENT_HEADING',[_0x506ee6,_0x525b18]);}function _0x3750a7(_0x5cfd17,_0x4f2625){return o(_0x575286,'ELEMENT_HEADING_CUSTOM',[_0x5cfd17,_0x4f2625]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xac3226=this['editor'],_0x5ce8fe=_0xac3226['locale'];function _0x4a7268(_0xfb5501,_0x40df0d){return o(_0x5ce8fe,'ELEMENT_HEADING_CUSTOM',[_0xfb5501,_0x40df0d]);}_0xac3226['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf46c69=>{if('formatBlock'!=_0xf46c69['type'])return;const {data:_0x4d9723}=_0xf46c69;if(_0x4d9723&&'heading'==_0x4d9723['commandName']){const _0x25e63d=_0x4d9723['commandParams'][0x0]['value'],_0x7eb8ee=this['_getHeadingLevel'](_0x25e63d);if(null!==_0x7eb8ee)return{'type':'format','content':o(_0x5ce8fe,'*Change\x20to:*\x20%0',(_0x239578=0x1,_0x27ae97=_0x7eb8ee,o(_0x5ce8fe,'ELEMENT_HEADING',[_0x239578,_0x27ae97])))};const _0x377e52=this['_headingOptions']['find'](_0x2a47d3=>_0x2a47d3['model']===_0x25e63d)['title'];return{'type':'format','content':o(_0x5ce8fe,'*Change\x20to:*\x20%0',_0x4a7268(0x1,_0x377e52))};}var _0x239578,_0x27ae97;});}['_getHeadingLevel'](_0x40d039){const _0x902947=_0x40d039['match'](/^heading(\d+)/);if(_0x902947)return _0x902947[0x1];const _0x2ec9b1=this['_headingOptions']?.['find'](_0x3f738c=>_0x3f738c['model']==_0x40d039);if(_0x2ec9b1&&_0x2ec9b1['view']){const _0x474f16=_0x2ec9b1['view'],_0x351c74=(_0x474f16['name']??_0x474f16)['match'](/^h(\d+)/);if(_0x351c74)return _0x351c74[0x1];}return null;}}class et extends _0xd0fe4f{['afterInit'](){const _0x3181eb=this['editor'];if(!_0x3181eb['plugins']['has']('HighlightEditing'))return;const _0x469ca2=_0x3181eb['plugins']['get']('TrackChangesEditing'),_0x151bf4=_0x3181eb['locale'];_0x469ca2['enableDefaultAttributesIntegration']('highlight'),_0x469ca2['registerInlineAttribute']('highlight'),_0x469ca2['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x151bf4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c3803=this['editor'],_0x16063a=_0x5c3803['locale'];_0x5c3803['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5031d4=>{if('formatInline'!=_0x5031d4['type'])return;const {data:_0x1b8cc4}=_0x5031d4;if(_0x1b8cc4&&'highlight'==_0x1b8cc4['commandName']){const _0x361d35=_0x16063a['t'],_0x35c6de=_0x1b8cc4['commandParams'][0x0]['value'];if(_0x35c6de){const _0x52411b=_0x5c3803['config']['get']('highlight.options')['find'](_0x27685b=>_0x27685b['model']==_0x35c6de),_0x44c1f7=_0x361d35(_0x52411b['title'])['toLowerCase']();return{'type':'format','content':o(_0x16063a,'*Set\x20highlight:*\x20%0',_0x44c1f7),'color':{'value':_0x52411b['color'],'title':_0x52411b['title']}};}return{'type':'format','content':o(_0x16063a,'*Remove\x20highlight*',o(_0x16063a,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xd0fe4f{['afterInit'](){const _0x1b9a5f=this['editor'];if(!_0x1b9a5f['plugins']['has']('HorizontalLineEditing'))return;_0x1b9a5f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1b86e3=_0x1b9a5f['plugins']['get']('TrackChangesEditing'),_0x4650d4=_0x1b9a5f['locale'];_0x1b86e3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x40c560=>o(_0x4650d4,'ELEMENT_HORIZONTAL_LINE',_0x40c560)),_0x1b9a5f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x48a467,{writer:_0x25b218,options:_0x5733ed})=>{if(!_0x5733ed['showSuggestionHighlights'])return null;const _0x434729=_0x25b218['createContainerElement']('div'),_0x242829=_0x25b218['createEmptyElement']('hr');return _0x25b218['addClass']('ck-horizontal-line',_0x434729),_0x25b218['insert'](_0x25b218['createPositionAt'](_0x434729,0x0),_0x242829),_0x434729;},'converterPriority':'high'});}}class st extends _0xd0fe4f{['afterInit'](){const _0x577967=this['editor'];if(!_0x577967['plugins']['has']('HtmlEmbed'))return;const _0x29a52f=_0x577967['plugins']['get']('TrackChangesEditing'),_0x5a3823=_0x577967['locale'];_0x29a52f['descriptionFactory']['registerElementLabel']('rawHtml',_0x4d0bef=>o(_0x5a3823,'ELEMENT_HTML_EMBED',_0x4d0bef)),_0x29a52f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x29a52f['registerBlockAttribute']('value'),_0x29a52f['descriptionFactory']['registerDescriptionCallback'](_0x3d3d36=>{if('attribute'!=_0x3d3d36['type'])return;const {data:_0x56abbc}=_0x3d3d36;if(_0x56abbc&&'value'==_0x56abbc['key']&&_0x3d3d36['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x50b596=o(_0x5a3823,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5a3823,'*Change\x20%0\x20content*',_0x50b596)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55740a=this['editor'],_0x2d11fe=_0x55740a['locale'];_0x55740a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e8526=>{if('formatBlock'!=_0x3e8526['type'])return;const {data:_0x38ec31}=_0x3e8526;if(_0x38ec31&&'htmlEmbed'==_0x38ec31['commandName']){const _0x3470ac=o(_0x2d11fe,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2d11fe,'*Change\x20%0\x20content*',_0x3470ac)};}});}}class nt extends _0xd0fe4f{['afterInit'](){const _0x3e7aa5=this['editor'];if(!_0x3e7aa5['plugins']['has']('ImageEditing'))return;const _0x8308e8=_0x3e7aa5['plugins']['get']('TrackChangesEditing'),_0x11d8e7=_0x3e7aa5['plugins']['get']('ImageUtils'),_0x4b11ac=_0x3e7aa5['locale'];_0x8308e8['enableCommand']('insertImage'),_0x8308e8['descriptionFactory']['registerElementLabel']('imageBlock',_0x3de0e5=>o(_0x4b11ac,'ELEMENT_IMAGE',_0x3de0e5)),_0x8308e8['descriptionFactory']['registerElementLabel']('imageInline',_0x17407c=>o(_0x4b11ac,'ELEMENT_INLINE_IMAGE',_0x17407c)),_0x8308e8['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4b11ac,'ELEMENT_CAPTION')),_0x3e7aa5['plugins']['has']('ImageUploadEditing')&&_0x8308e8['enableCommand']('uploadImage'),_0x3e7aa5['plugins']['has']('ImageBlockEditing')&&_0x3e7aa5['plugins']['has']('ImageInlineEditing')&&(_0x8308e8['enableCommand']('imageTypeInline',(_0x450417,_0x17fcfb)=>{const _0x5a17ba=_0x11d8e7['getClosestSelectedImageElement'](_0x3e7aa5['model']['document']['selection']);_0x3e7aa5['model']['change'](()=>{_0x8308e8['markBlockFormat'](_0x5a17ba,{'commandName':'imageTypeInline','commandParams':[_0x17fcfb]},[],'convertBlockImageToInline');});}),_0x8308e8['enableCommand']('imageTypeBlock',(_0x4952cb,_0x11df96)=>{_0x3e7aa5['model']['change'](_0x21331c=>{let _0x472956=_0x11d8e7['getClosestSelectedImageElement'](_0x3e7aa5['model']['document']['selection']),_0x59724a=_0x21331c['createRangeOn'](_0x472956);const _0x5f5d6c=_0x4906b7['fromPosition'](_0x59724a['start'],'toPrevious'),_0x141296=_0x4906b7['fromPosition'](_0x59724a['end'],'toNext');_0x8308e8['forceDefaultExecution'](()=>_0x4952cb(_0x11df96)),_0x472956=_0x11d8e7['getClosestSelectedImageElement'](_0x3e7aa5['model']['document']['selection']),_0x59724a=_0x21331c['createRangeOn'](_0x472956);const _0x2f4209=_0x21331c['createRange'](_0x5f5d6c,_0x141296);_0x5f5d6c['detach'](),_0x141296['detach'](),_0x8308e8['markBlockFormat'](_0x472956,{'commandName':'imageTypeInline','commandParams':[_0x11df96]},[],'convertInlineImageToBlock'),_0x2f4209['start']['isBefore'](_0x59724a['start'])&&_0x8308e8['markInsertion'](_0x21331c['createRange'](_0x2f4209['start'],_0x59724a['start']),'convertInlineImageToBlock'),_0x59724a['end']['isBefore'](_0x2f4209['end'])&&_0x8308e8['markInsertion'](_0x21331c['createRange'](_0x59724a['end'],_0x2f4209['end']),'convertInlineImageToBlock');});}),_0x8308e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8308e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8308e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8308e8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8308e8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8308e8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3353d6])=>{const _0x4dcedc=_0x8308e8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x42081d=_0x3353d6['start'],_0x58fdf5=_0x3353d6['end'];const _0xda60f0=_0x3e7aa5['model']['schema']['getNearestSelectionRange'](_0x42081d,'backward'),_0x7073b1=_0x3e7aa5['model']['schema']['getNearestSelectionRange'](_0x58fdf5,'forward');_0xda60f0['isCollapsed']&&(_0x42081d=_0xda60f0['start']),_0x7073b1['isCollapsed']&&(_0x58fdf5=_0x7073b1['end']),_0x4dcedc([_0x3e7aa5['model']['createRange'](_0x42081d,_0x58fdf5)]);}),_0x8308e8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x19572e),_0x8308e8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x19572e)),_0x3e7aa5['plugins']['has']('ImageCaptionEditing')&&(_0x8308e8['enableCommand']('toggleImageCaption',(_0x5b9a1a,_0x2cb582)=>{const _0x284ea0=_0x3e7aa5['plugins']['get']('ImageCaptionUtils');let _0x538c84=_0x11d8e7['getClosestSelectedImageElement'](_0x3e7aa5['model']['document']['selection']),_0x1e46c4=_0x284ea0['getCaptionFromImageModelElement'](_0x538c84);_0x3e7aa5['model']['change'](()=>{if(_0x1e46c4)return void _0x8308e8['markDeletion'](_0x3e7aa5['model']['createRangeOn'](_0x1e46c4));const _0x2ecc40=_0x11d8e7['isBlockImage'](_0x538c84);_0x5b9a1a(_0x2cb582),_0x538c84=_0x11d8e7['getClosestSelectedImageElement'](_0x3e7aa5['model']['document']['selection']),_0x1e46c4=_0x284ea0['getCaptionFromImageModelElement'](_0x538c84),_0x8308e8['markInsertion'](_0x3e7aa5['model']['createRangeOn'](_0x1e46c4),_0x2ecc40?null:'imageCaption');});}),_0x8308e8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x19572e));const _0x4bb790=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x6ca298(_0x50516e,_0x2590bf){const _0x27bb20=_0x4bb790['findIndex'](({type:_0xa3043,subType:_0x20bd8e})=>_0x50516e['type']==_0xa3043&&_0x50516e['subType']==_0x20bd8e),_0x569b71=_0x4bb790['findIndex'](({type:_0x5e0827,subType:_0x49081e})=>_0x2590bf['type']==_0x5e0827&&_0x2590bf['subType']==_0x49081e);if(_0x27bb20<0x0||_0x569b71<0x0)return!0x1;const _0x5cd171=_0x50516e['getFirstRange'](),_0x5cb819=_0x2590bf['getFirstRange']();if((0x0==_0x27bb20||0x1==_0x27bb20)&&0x2==_0x569b71&&_0x5cd171['isIntersecting'](_0x5cb819))return!0x0;if(0x2==_0x27bb20&&0x3==_0x569b71){const _0x20848d=_0x8308e8['_findSuggestions'](_0x5cd171,'insertion')['filter'](({suggestion:_0x285423,meta:_0x2f2af7})=>_0x2f2af7['isOwn']&&'convertInlineImageToBlock'==_0x285423['subType']);if(_0x20848d['length']>0x1&&_0x5cb819['end']['isEqual'](_0x5cd171['start']))return!0x0;if(0x1==_0x20848d['length']&&(_0x5cd171['start']['isEqual'](_0x5cb819['end'])||_0x5cd171['end']['isEqual'](_0x5cb819['start'])))return!0x0;}if(0x3==_0x27bb20&&0x3==_0x569b71&&_0x5cd171['start']['isBefore'](_0x5cb819['start'])){const _0x2c3d47=_0x5cd171['end']['nodeAfter'],_0x36b114=_0x5cb819['start']['nodeBefore'];return _0x11d8e7['isBlockImage'](_0x2c3d47)&&_0x2c3d47===_0x36b114;}return!0x1;}function _0x19572e(_0x435c4a,_0x1a597f){return _0x6ca298(_0x435c4a,_0x1a597f)?[_0x435c4a,_0x1a597f]:_0x6ca298(_0x1a597f,_0x435c4a)?[_0x1a597f,_0x435c4a]:null;}_0x3e7aa5['plugins']['has']('ImageResize')&&(_0x8308e8['enableDefaultAttributesIntegration']('resizeImage'),_0x8308e8['registerBlockAttribute']('resizedWidth'),_0x8308e8['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4b11ac,'FORMAT_IMAGE_SIZE'))),_0x3e7aa5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x8308e8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8308e8['registerBlockAttribute']('alt')),_0x8308e8['descriptionFactory']['registerDescriptionCallback'](_0x2b8940=>{if(!!_0x4bb790['find'](({type:_0x2acf60,subType:_0x2a47ab})=>_0x2b8940['type']==_0x2acf60&&_0x2b8940['subType']==_0x2a47ab))return _0x2b8940['previous']?{}:void 0x0;}),_0x8308e8['descriptionFactory']['registerDescriptionCallback'](_0x34a1fb=>{if('insertion'==_0x34a1fb['type']||'deletion'==_0x34a1fb['type']){const _0x169c42=_0x34a1fb['getContainedElement']();if(_0x169c42&&_0x169c42['is']('element','caption'))return{'type':'insertion'==_0x34a1fb['type']?'addObject':'removeObject','element':_0x169c42,'quantity':0x1};}}),_0x8308e8['descriptionFactory']['registerDescriptionCallback'](_0x14d3cd=>'formatBlock'==_0x14d3cd['type']&&'convertInlineImageToBlock'==_0x14d3cd['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x14d3cd['type']&&'convertBlockImageToInline'==_0x14d3cd['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8308e8['descriptionFactory']['registerDescriptionCallback'](_0x11af9d=>{if('attribute'!=_0x11af9d['type'])return;const {data:_0xcc569d}=_0x11af9d;if(!_0xcc569d||'alt'!=_0xcc569d['key'])return;const _0x366719=_0xcc569d['newValue'];return _0x366719?{'type':'format','content':o(_0x4b11ac,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x366719+'\x22')}:{'type':'format','content':o(_0x4b11ac,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13b984=this['editor'],_0x260f7b=_0x13b984['locale'];_0x13b984['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x354df9=>{if('formatBlock'!=_0x354df9['type']&&'formatInline'!=_0x354df9['type'])return;const {data:_0x3e43b6}=_0x354df9;if(_0x3e43b6){if('imageTextAlternative'==_0x3e43b6['commandName']){const _0x253f17=_0x3e43b6['commandParams'][0x0]['newValue'];return _0x253f17?{'type':'format','content':o(_0x260f7b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x253f17+'\x22')}:{'type':'format','content':o(_0x260f7b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3e43b6['commandName']){const _0x493866=_0x3e43b6['commandParams'][0x0]['width'];return _0x493866?{'type':'format','content':o(_0x260f7b,'*Set\x20image\x20width:*\x20%0',_0x493866)}:{'type':'format','content':o(_0x260f7b,'*Reset\x20image\x20width*')};}}});}}class ot extends _0xd0fe4f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x223f8b=this['editor']['locale'],_0x11ba83=this['editor']['plugins']['get']('TrackChangesEditing');_0x11ba83['enableDefaultAttributesIntegration']('replaceImageSource'),_0x11ba83['registerBlockAttribute']('src'),_0x11ba83['descriptionFactory']['registerDescriptionCallback'](_0x46c76c=>{if('attribute'!=_0x46c76c['type'])return;const {data:_0x5c7800}=_0x46c76c;return _0x5c7800&&'src'==_0x5c7800['key']?_0x5c7800['newValue']&&_0x5c7800['oldValue']?{'type':'format','content':o(_0x223f8b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc6be74=this['editor']['plugins']['get']('TrackChangesEditing');_0xc6be74['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xc6be74['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc6be74['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xc6be74['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x93fa4b=this['editor'],_0x9d5104=_0x93fa4b['locale'];_0x93fa4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e1ad2=>{if('formatBlock'!=_0x5e1ad2['type']&&'formatInline'!=_0x5e1ad2['type'])return;const {data:_0x38a324}=_0x5e1ad2;if(!_0x38a324||'replaceImageSource'!=_0x38a324['commandName'])return;return{'type':'format','content':o(_0x9d5104,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0xd0fe4f{['afterInit'](){const _0x1f5f33=this['editor'];if(!_0x1f5f33['plugins']['has']('ImageStyleEditing'))return;const _0x1a7c27=_0x1f5f33['plugins']['get']('TrackChangesEditing'),_0x285a92=_0x1f5f33['plugins']['get']('ImageUtils'),_0x51de87={};_0x1a7c27['enableCommand']('imageStyle',(_0x19276d,_0x4f9c9b)=>{const _0x491018=_0x1f5f33['plugins']['get']('Users')['me'],_0x40bebc=_0x1f5f33['commands']['get']('imageStyle');let _0x531e2f=_0x285a92['getClosestSelectedImageElement'](_0x1f5f33['model']['document']['selection']),_0x1756e2=_0x1f5f33['model']['createRangeOn'](_0x531e2f),_0x4f720d=_0x40bebc['value'];if(_0x4f720d==_0x4f9c9b['value'])return;const _0x4211d2={'commandName':'imageStyle','commandParams':[_0x4f9c9b],'formatGroupId':_0x2b2341()};_0x1f5f33['model']['change'](()=>{if(_0x1a7c27['getSuggestions']()['filter'](_0x5c259b=>_0x5c259b['isInContent']&&_0x491018==_0x5c259b['author']&&('formatBlock'==_0x5c259b['type']||'formatInline'==_0x5c259b['type'])&&('imageStylePreApply'==_0x5c259b['subType']||'imageStylePostApply'==_0x5c259b['subType'])&&_0x5c259b['getFirstRange']()['isEqual'](_0x1756e2))['forEach'](_0x525e09=>_0x1a7c27['discardSuggestion'](_0x525e09['head'])),_0x531e2f=_0x285a92['getClosestSelectedImageElement'](_0x1f5f33['model']['document']['selection']),_0x1756e2=_0x1f5f33['model']['createRangeOn'](_0x531e2f),_0x40bebc['refresh'](),_0x1f5f33['commands']['get']('imageTypeInline')['refresh'](),_0x1f5f33['commands']['get']('imageTypeBlock')['refresh'](),_0x4f720d=_0x40bebc['value'],_0x4f720d!=_0x4f9c9b['value'])return _0x285a92['isInlineImage'](_0x531e2f)&&_0x40bebc['shouldConvertImageType'](_0x4f9c9b['value'],_0x531e2f)?(_0x19276d({..._0x4f9c9b,'setImageSizes':!0x1}),_0x531e2f=_0x285a92['getClosestSelectedImageElement'](_0x1f5f33['model']['document']['selection']),void _0x1a7c27['markBlockFormat'](_0x531e2f,{..._0x4211d2,'commandReversedParams':[{'value':_0x4f720d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x285a92['isBlockImage'](_0x531e2f)?_0x1a7c27['markBlockFormat'](_0x531e2f,_0x4211d2,[],'imageStylePostApply'):_0x1a7c27['markInlineFormat'](_0x1756e2,_0x4211d2,'imageStylePostApply'));});});for(const _0x14be47 of _0x1f5f33['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x51de87[_0x14be47['name']]=_0x14be47['title']['toLowerCase']();_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x908298])=>{_0x285a92['setImageNaturalSizeAttributes'](_0x908298['getContainedElement']());}),_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3ddc4c,_0x5416b6)=>{_0x1a7c27['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3ddc4c,{'commandName':_0x5416b6['commandName'],'commandParams':_0x5416b6['commandReversedParams']});}),_0x1a7c27['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x8bac1a,_0x245b21){if(_0x2abc16(_0x8bac1a,_0x245b21))return[_0x8bac1a,_0x245b21];if(_0x2abc16(_0x245b21,_0x8bac1a))return[_0x245b21,_0x8bac1a];return null;});const _0x5876ca=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2abc16(_0x416ec9,_0x468d9e){const _0x2c944a=_0x5876ca['findIndex'](({type:_0x597867,subType:_0x2582af})=>_0x416ec9['type']==_0x597867&&_0x416ec9['subType']==_0x2582af),_0x1ac7e5=_0x5876ca['findIndex'](({type:_0x55bd60,subType:_0x1ed869})=>_0x468d9e['type']==_0x55bd60&&_0x468d9e['subType']==_0x1ed869);if(_0x2c944a<0x0||_0x1ac7e5<0x0)return!0x1;const _0x7bf311=_0x416ec9['getFirstRange'](),_0x5ddc56=_0x468d9e['getFirstRange']();if((0x0==_0x2c944a||0x1==_0x2c944a)&&0x2==_0x1ac7e5&&_0x7bf311['isIntersecting'](_0x5ddc56))return!0x0;if(0x2==_0x2c944a&&0x3==_0x1ac7e5){const _0x1e7326=_0x1a7c27['_findSuggestions'](_0x7bf311,'insertion')['filter'](({suggestion:_0x827a5b,meta:_0x28b5bc})=>_0x28b5bc['isOwn']&&'convertInlineImageToBlock'==_0x827a5b['subType']);if(_0x1e7326['length']>0x1&&_0x5ddc56['end']['isEqual'](_0x7bf311['start']))return!0x0;if(0x1==_0x1e7326['length']&&(_0x7bf311['start']['isEqual'](_0x5ddc56['end'])||_0x7bf311['end']['isEqual'](_0x5ddc56['start'])))return!0x0;}if(0x3==_0x2c944a&&0x3==_0x1ac7e5&&_0x7bf311['start']['isBefore'](_0x5ddc56['start'])){const _0x50d064=_0x7bf311['end']['nodeAfter'],_0x1d6110=_0x5ddc56['start']['nodeBefore'];return _0x285a92['isBlockImage'](_0x50d064)&&_0x50d064===_0x1d6110;}return!0x1;}_0x1f5f33['model']['document']['registerPostFixer'](()=>{let _0x3460d9=!0x1;const _0xf14d26=Array['from'](_0x1f5f33['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3aae93,data:_0x42e80e}of _0xf14d26){const {group:_0x3c59a9,type:_0x5095a5,subType:_0x5f27ef,id:_0x20689d}=_0x1a7c27['_splitMarkerName'](_0x3aae93);if('suggestion'==_0x3c59a9&&_0x1a7c27['hasSuggestion'](_0x20689d)){if('formatBlock'==_0x5095a5&&('imageStylePreApply'==_0x5f27ef||'imageStylePostApply'==_0x5f27ef)){const _0x3e1c3c=_0x1a7c27['getSuggestion'](_0x20689d);if(_0x42e80e['newRange']){const _0x28e35a=_0x3e1c3c['getFirstRange']()['getContainedElement']();if(_0x285a92['isBlockImage'](_0x28e35a))continue;_0x1a7c27['discardSuggestion'](_0x3e1c3c),_0x3460d9=!0x0;}}if('insertion'==_0x5095a5&&'imageCaption'==_0x5f27ef&&!_0x42e80e['newRange']){const _0x4309a2=_0x1a7c27['getSuggestion'](_0x20689d);_0x4309a2['next']&&_0x4309a2['next']['isInContent']&&(_0x1a7c27['discardSuggestion'](_0x4309a2['next']),_0x3460d9=!0x0);}}}return _0x3460d9;}),this['_registerLegacyDescription'](_0x51de87);}['_registerLegacyDescription'](_0x5d505b){const _0x50fd8f=this['editor'],_0x1b6985=_0x50fd8f['locale'];_0x50fd8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cf9fb=>{if('formatBlock'!=_0x4cf9fb['type']&&'formatInline'!=_0x4cf9fb['type'])return;const {data:_0x41ec5b}=_0x4cf9fb;if(!_0x41ec5b||'imageStyle'!=_0x41ec5b['commandName'])return;const _0x6da6a9=_0x41ec5b['commandParams'][0x0]['value'];return _0xaa3f01('side'===_0x6da6a9?o(_0x1b6985,'FORMAT_SIDE_IMAGE'):_0x5d505b[_0x6da6a9]||_0x6da6a9);function _0xaa3f01(_0x3488b5){return{'type':'format','content':o(_0x1b6985,'*Format:*\x20%0',_0x3488b5)};}});}}class at extends _0xd0fe4f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3b7262){super(_0x3b7262),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x183a95=this['editor'],_0x3def02=_0x183a95['commands']['get']('importWord'),_0x5d9dab=_0x183a95['commands']['get']('trackChanges');_0x3def02&&(_0x3def02['on']('execute',(_0xb76f43,[,_0x588333])=>{this['_trackChangesValueDuringImport']=_0x5d9dab['value'],_0x588333['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3def02,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3def02,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5d9dab['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x183a95['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xe56867,_0x4bb4d7){const {suggestions:_0x1081a8}=_0x4bb4d7,_0xd60036=this['editor']['commands']['get']('trackChanges'),_0x18077a=_0xd60036['value'];this['_trackChangesValueDuringImport']!==_0x18077a&&(_0xd60036['execute'](),this['_trackChangesExecuted']=!0x0),_0x1081a8&&_0x1081a8['forEach'](({id:_0x22eb0c,type:_0xa832cf,author:_0x55e960,created_at:_0x4d3393})=>{const _0x5dbded={'id':_0x22eb0c,'type':_0xa832cf,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x55e960,'createdAt':_0x4d3393?new Date(_0x4d3393):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5dbded);});}}class ct extends _0xd0fe4f{['afterInit'](){const _0x4a8a5c=this['editor'],_0x1c0db4=_0x4a8a5c['plugins']['get']('TrackChangesEditing');if(_0x4a8a5c['plugins']['has']('IndentEditing')&&(_0x1c0db4['enableCommand']('indent'),_0x1c0db4['enableCommand']('outdent')),_0x4a8a5c['plugins']['has']('IndentBlock')){for(const _0x3dac2a of['indentBlock','outdentBlock'])_0x1c0db4['enableDefaultAttributesIntegration'](_0x3dac2a);}const _0x1418a7=_0x4a8a5c['locale'];_0x1c0db4['registerBlockAttribute']('blockIndent'),_0x1c0db4['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1418a7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b8545=this['editor'],_0x72a1c3=_0x3b8545['locale'],_0x39e509=_0x3b8545['plugins']['get']('TrackChangesEditing');_0x39e509['descriptionFactory']['registerDescriptionCallback'](_0xd12646=>{if('formatBlock'!=_0xd12646['type'])return;const {data:_0x2cbc5b}=_0xd12646;if(!_0x2cbc5b)return;if('indentBlock'!=_0x2cbc5b['commandName']&&'outdentBlock'!=_0x2cbc5b['commandName'])return;const _0x197d45=_0xd12646['getItems']()[0x0],_0x5a145f=_0x39e509['descriptionFactory']['getItemLabel'](_0x197d45);return'indentBlock'==_0x2cbc5b['commandName']?{'type':'format','content':o(_0x72a1c3,'*Indent:*\x20%0',_0x5a145f)}:'outdentBlock'==_0x2cbc5b['commandName']?{'type':'format','content':o(_0x72a1c3,'*Outdent:*\x20%0',_0x5a145f)}:void 0x0;});}}class ut extends _0xd0fe4f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0xd0fe4f{['afterInit'](){const _0x1a867b=this['editor'];if(!_0x1a867b['plugins']['has']('LinkEditing'))return;const _0x1a3d8e=_0x1a867b['plugins']['get']('TrackChangesEditing'),_0x1d7a5e=_0x1a867b['commands']['get']('link');_0x1a3d8e['enableDefaultAttributesIntegration']('link'),_0x1a3d8e['enableDefaultAttributesIntegration']('unlink'),_0x1a3d8e['registerInlineAttribute']('linkHref');for(const _0x45dea9 of _0x1d7a5e['manualDecorators'])_0x1a3d8e['registerInlineAttribute'](_0x45dea9['id']),_0x1a3d8e['descriptionFactory']['registerAttributeLabel'](_0x45dea9['id'],'link\x20('+_0x45dea9['label']['toLowerCase']()+')');_0x1a3d8e['descriptionFactory']['registerDescriptionCallback'](_0x3ff2bb=>{if('attribute'!=_0x3ff2bb['type'])return;const {data:_0x2d5f52}=_0x3ff2bb;if(!_0x2d5f52||'linkHref'!=_0x2d5f52['key'])return;const _0x4e6de7=_0x2d5f52['newValue'],_0x30ea47=_0x1a867b['locale'];return{'type':'format','content':null==_0x4e6de7?o(_0x30ea47,'*Remove\x20link*'):o(_0x30ea47,'*Set\x20link:*\x20%0','\x22'+_0x4e6de7+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x282ed5=this['editor'],_0x1a5aea=_0x282ed5['locale'];_0x282ed5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x217cf2=>{if('formatInline'!=_0x217cf2['type'])return;const {data:_0x5c93ab}=_0x217cf2;if(_0x5c93ab){if('link'==_0x5c93ab['commandName']){const _0xbe44c=_0x5c93ab['commandParams'][0x0];return{'type':'format','content':o(_0x1a5aea,'*Set\x20link:*\x20%0','\x22'+_0xbe44c+'\x22')};}return'unlink'==_0x5c93ab['commandName']?{'type':'format','content':o(_0x1a5aea,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xd0fe4f{['afterInit'](){const _0x431427=this['editor'],_0x5606bc=_0x431427['locale'];if(!_0x431427['plugins']['has']('LegacyListEditing'))return;const _0x1d9d53=_0x431427['plugins']['get']('TrackChangesEditing'),_0x24ba8b=_0x431427['plugins']['has']('LegacyTodoListEditing');function _0x386a32(_0x24210e){return()=>{const _0x3f508c=_0x431427['model']['document']['selection'],_0x1ef22d=_0x431427['commands']['get'](_0x24210e);if(_0x1ef22d['value'])return void _0x431427['execute']('paragraph',{});const _0x1b3743=_0x24210e['slice'](0x0,-0x4),_0x29a04a=function(_0x6d3e45,_0x5938e5,_0x3396ba){let _0x18dee6=Array['from'](_0x6d3e45)['filter'](_0x249835=>function(_0x5ceaac,_0x1aad7b){return _0x1aad7b['checkChild'](_0x5ceaac['parent'],'listItem')&&!_0x1aad7b['isObject'](_0x5ceaac);}(_0x249835,_0x3396ba));_0x18dee6=_0x18dee6['filter'](_0x7b5985=>!_0x7b5985['is']('element','listItem')||_0x7b5985['getAttribute']('listType')!=_0x5938e5);const _0x424cad=new Set();for(const _0x54fcb3 of _0x18dee6)_0x54fcb3['is']('element','listItem')?_0x424cad['add'](fe(_0x54fcb3)):_0x424cad['add'](_0x54fcb3);return Array['from'](_0x424cad);}(_0x3f508c['getSelectedBlocks'](),_0x1b3743,_0x431427['model']['schema']);_0x431427['model']['change'](()=>{for(const _0x2cd0dc of _0x29a04a)_0x1d9d53['markBlockFormat'](_0x2cd0dc,{'commandName':_0x24210e,'commandParams':[{'forceValue':!_0x1ef22d['value']}],'formatGroupId':'blockName'},ue(_0x2cd0dc));});};}function _0xcdc757(_0x2c6049){return()=>{const _0x4aa6ef=function(_0x330d5a){let _0x3632fd=Array['from'](_0x330d5a);const _0x43b9b8=_0x3632fd['findIndex'](_0x469b9e=>'listItem'!=_0x469b9e['name']);return _0x43b9b8>-0x1&&(_0x3632fd=_0x3632fd['slice'](0x0,_0x43b9b8)),_0x3632fd;}(_0x431427['model']['document']['selection']['getSelectedBlocks']()),_0xc3d4ee=_0x431427['model']['createRange'](_0x431427['model']['createPositionAt'](_0x4aa6ef[0x0],'before'),_0x431427['model']['createPositionAt'](_0x4aa6ef[_0x4aa6ef['length']-0x1],'end'));_0x431427['model']['change'](()=>{_0x1d9d53['markBlockFormat'](_0xc3d4ee,{'commandName':_0x2c6049,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1ebcdd){const _0x1ab9a2=new Set();for(const _0x251aad of _0x1ebcdd){let _0x569252=_0x251aad['nextSibling'];for(;_0x569252&&_0x569252['getAttribute']('listIndent')>_0x251aad['getAttribute']('listIndent');)_0x1ab9a2['add'](_0x569252),_0x569252=_0x569252['nextSibling'];}return Array['from'](_0x1ab9a2);}(_0x4aa6ef));});};}_0x1d9d53['enableCommand']('numberedList',_0x386a32('numberedList')),_0x1d9d53['enableCommand']('bulletedList',_0x386a32('bulletedList')),_0x24ba8b&&_0x1d9d53['enableCommand']('todoList',_0x386a32('todoList')),_0x1d9d53['enableCommand']('indentList',_0xcdc757('indentList')),_0x1d9d53['enableCommand']('outdentList',_0xcdc757('outdentList')),_0x24ba8b&&_0x1d9d53['enableCommand']('checkTodoList',()=>{const _0x211d10=_0x431427['commands']['get']('checkTodoList'),_0x1bd20e=Array['from'](_0x211d10['_selectedElements']);_0x1bd20e['filter'](_0x2f76cb=>_0x2f76cb['getAttribute']('todoListChecked')!=_0x211d10['value']),_0x431427['model']['change'](()=>{for(const _0x2d04f1 of _0x1bd20e)_0x1d9d53['markBlockFormat'](_0x2d04f1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x211d10['value']}]});});}),_0x1d9d53['descriptionFactory']['registerElementLabel']('listItem',_0x2315ca=>o(_0x5606bc,'ELEMENT_LIST_ITEM',_0x2315ca)),_0x1d9d53['descriptionFactory']['registerDescriptionCallback'](_0x31c478=>{if('formatBlock'!=_0x31c478['type']&&'formatInline'!=_0x31c478['type'])return;const {data:_0x307870}=_0x31c478;if(_0x307870){if('numberedList'==_0x307870['commandName']||'bulletedList'==_0x307870['commandName']||'todoList'==_0x307870['commandName'])switch(_0x307870['commandName']['replace']('List','')){case'bulleted':return _0x3c6d9a(o(_0x5606bc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c6d9a(o(_0x5606bc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c6d9a(o(_0x5606bc,'ELEMENT_TODO_LIST'));}if('indentList'==_0x307870['commandName'])return{'type':'format','content':o(_0x5606bc,'*Indent:*\x20%0',o(_0x5606bc,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x307870['commandName'])return{'type':'format','content':o(_0x5606bc,'*Outdent:*\x20%0',o(_0x5606bc,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x307870['commandName'])return _0x307870['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5606bc,'*Check\x20item*')}:{'type':'format','content':o(_0x5606bc,'*Uncheck\x20item*')};}function _0x3c6d9a(_0x5adffb){return{'type':'format','content':o(_0x5606bc,'*Change\x20to:*\x20%0',_0x5adffb)};}});}}function fe(_0x522d02){const _0x250ccb=_0x522d02['getAttribute']('listIndent');if(0x0==_0x250ccb)return _0x522d02;let _0x38330b=_0x522d02;for(;_0x522d02['previousSibling']&&_0x522d02['previousSibling']['is']('element','listItem');){const _0xcc6ada=_0x522d02['previousSibling']['getAttribute']('listIndent');if(_0xcc6ada==_0x250ccb)_0x38330b=_0x522d02['previousSibling'];else{if(_0xcc6ada<_0x250ccb)break;}_0x522d02=_0x522d02['previousSibling'];}return _0x38330b;}function ue(_0x4300ed){const _0x31a801=[];if(_0x4300ed['is']('element','listItem')&&_0x4300ed['getAttribute']('listIndent')>0x0){let _0x2972f3=_0x4300ed['nextSibling'];for(;_0x2972f3&&'listItem'==_0x2972f3['name']&&_0x2972f3['getAttribute']('listIndent')==_0x4300ed['getAttribute']('listIndent');)_0x31a801['push'](_0x2972f3),_0x2972f3=_0x2972f3['nextSibling'];}return _0x31a801;}class W extends _0xd0fe4f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xcb8bda=this['editor']['config']['get']('list.properties'),_0x886f57=this['editor']['plugins']['get']('TrackChangesEditing');_0xcb8bda['styles']&&_0x886f57['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xcb8bda['reversed']&&_0x886f57['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xcb8bda['startIndex']&&_0x886f57['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x886f57['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x37f0ad,_0x4fd691={}){const _0x45e2ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23fdde=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x45e2ca['markMultiRangeBlockFormat'](_0x23fdde,{'commandName':'listStyle','commandParams':[{'type':_0x4fd691['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x31ce58,_0xe17d70={}){const _0x25f8be=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc14d1e=this['_getSuggestionBlocks'](_0x8cb2a7=>_0x8cb2a7['is']('element','listItem')&&'numbered'===_0x8cb2a7['getAttribute']('listType'));if(_0xc14d1e['length']<0x1)return;const _0x55f017=_0xc14d1e['map'](_0x5e0523=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e0523,'before'),this['editor']['model']['createPositionAt'](_0x5e0523,0x0)));this['editor']['model']['change'](()=>{_0x25f8be['markMultiRangeBlockFormat'](_0x55f017,{'commandName':'listReversed','commandParams':[{'reversed':_0xe17d70['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5732b7,_0x54e6f7={}){const _0x2fa3a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f76ff=this['_getSuggestionBlocks'](_0x4696f9=>_0x4696f9['is']('element','listItem')&&'numbered'===_0x4696f9['getAttribute']('listType'));if(_0x3f76ff['length']<0x1)return;const _0x55ce5c=_0x3f76ff['map'](_0x3ace9d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3ace9d,'before'),this['editor']['model']['createPositionAt'](_0x3ace9d,0x0)));this['editor']['model']['change'](()=>{_0x2fa3a3['markMultiRangeBlockFormat'](_0x55ce5c,{'commandName':'listStart','commandParams':[{'startIndex':_0x54e6f7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x33c151){if('formatBlock'!=_0x33c151['type']&&'formatInline'!=_0x33c151['type'])return;const _0x74660e=this['editor']['locale'],{data:_0x331888}=_0x33c151;if(!_0x331888)return;let _0x285b0d,_0x1f6b08;switch(_0x331888['commandName']){case'listStyle':_0x285b0d='*Change\x20to:*\x20%0',_0x1f6b08={'type':'format','content':o(_0x74660e,_0x285b0d,o(_0x74660e,this['_getTranslationKeyForListStyle'](_0x331888['commandParams'][0x0]['type'])))};break;case'listReversed':_0x285b0d=_0x331888['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f6b08={'type':'format','content':o(_0x74660e,_0x285b0d)};break;case'listStart':_0x285b0d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f6b08={'type':'format','content':o(_0x74660e,_0x285b0d,_0x331888['commandParams'][0x0]['startIndex'])};}return _0x1f6b08;}['_getSuggestionBlocksForListStyle'](){const _0x50aeaf=this['editor']['plugins']['get']('LegacyListUtils');let _0x81e653=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x81e653[0x0]?.['is']('element','listItem')&&_0x81e653['unshift'](..._0x50aeaf['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x81e653[_0x81e653['length']-0x1]?.['is']('element','listItem')&&_0x81e653['push'](..._0x50aeaf['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x81e653=[...new Set(_0x81e653)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x81e653=_0x81e653['filter'](_0x3abbf9=>_0x3abbf9['is']('element','listItem'))),_0x81e653;}['_getSuggestionBlocks'](_0x4d505b){const _0xe2d089=this['editor']['plugins']['get']('LegacyListUtils');let _0x402e5c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4d505b)['map'](_0x3c03b0=>{const _0x4efa68=this['editor']['model']['createPositionAt'](_0x3c03b0,0x0);return[..._0xe2d089['getSiblingNodes'](_0x4efa68,'backward'),..._0xe2d089['getSiblingNodes'](_0x4efa68,'forward')];})['flat']();return _0x402e5c=[...new Set(_0x402e5c)],_0x402e5c;}['_getTranslationKeyForListStyle'](_0x36047b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x36047b)||'default')['toUpperCase']()+'_LIST_'+_0x36047b['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0xd0fe4f{['afterInit'](){const _0x4bef57=this['editor'];if(!_0x4bef57['plugins']['has']('MediaEmbedEditing'))return;const _0x26b5d2=_0x4bef57['plugins']['get']('TrackChangesEditing'),_0x53b057=_0x4bef57['locale'];_0x26b5d2['enableCommand']('mediaEmbed'),_0x26b5d2['descriptionFactory']['registerElementLabel']('media',_0x124474=>o(_0x53b057,'ELEMENT_MEDIA',_0x124474)),_0x4bef57['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4883d2,{writer:_0x30ed41,options:_0x2c5ecb})=>{if(_0x2c5ecb['showSuggestionHighlights'])return _0x30ed41['createEmptyElement']('div');},'converterPriority':'high'}),_0x4bef57['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2c612c,_0x5c8ad6,_0x2da00b)=>{_0x2da00b['options']['showSuggestionHighlights']&&_0x2c612c['stop']();},{'priority':'high'});}}class mt extends _0xd0fe4f{['afterInit'](){const _0xd0dce6=this['editor'];_0xd0dce6['plugins']['has']('MentionEditing')&&_0xd0dce6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xd0fe4f{['afterInit'](){const _0x200b78=this['editor'];if(!_0x200b78['plugins']['has']('MergeFieldsEditing'))return;_0x200b78['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x200b78['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x56b57c=_0x200b78['plugins']['get']('TrackChangesEditing'),_0x3cfb51=_0x200b78['locale'];_0x56b57c['descriptionFactory']['registerElementLabel']('mergeField',_0x1b8831=>o(_0x3cfb51,'ELEMENT_MERGE_FIELD',_0x1b8831)),_0x56b57c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x505dd1=>o(_0x3cfb51,'ELEMENT_MERGE_FIELD',_0x505dd1)),_0x56b57c['descriptionFactory']['registerDescriptionCallback'](_0x24291b=>{if('insertion'!=_0x24291b['type']&&'deletion'!=_0x24291b['type'])return;const _0x4a7828=_0x24291b['getContainedElement']();if(null==_0x4a7828)return;if(!_0x4a7828['is']('element','mergeField')&&!_0x4a7828['is']('element','mergeFieldBlock'))return;const _0x510f15=_0x200b78['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4a7828['getAttribute']('id'));return'insertion'==_0x24291b['type']?{'type':'insertion','content':o(_0x3cfb51,'*Insert:*\x20%0','\x22'+_0x510f15+'\x22\x20'+o(_0x3cfb51,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3cfb51,'*Remove:*\x20%0','\x22'+_0x510f15+'\x22\x20'+o(_0x3cfb51,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0xd0fe4f{['afterInit'](){const _0x2fcf8f=this['editor'],_0x5a5977=_0x2fcf8f['plugins']['get']('TrackChangesEditing');_0x2fcf8f['plugins']['has']('MultiLevelList')&&(_0x5a5977['enableDefaultAttributesIntegration']('multiLevelList'),_0x5a5977['registerBlockAttribute']('listMarkerStyle'),_0x5a5977['descriptionFactory']['registerDescriptionCallback'](_0x1f9522=>this['handleDescriptions'](_0x1f9522)));}['handleDescriptions'](_0x28fb68){const _0x12f6ae=this['editor']['locale'],{data:_0x52355a}=_0x28fb68,_0x50abf3={'type':'format','content':''};if(_0x52355a&&'listMarkerStyle'==_0x52355a['key']){if(!_0x52355a['oldValue'])return{'type':'format','content':o(_0x12f6ae,'*Set\x20format:*\x20%0',o(_0x12f6ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x52355a['newValue']+')'};if(!_0x52355a['newValue']){let _0x577dd2=_0x28fb68['head'];for(;_0x577dd2;){if(_0x577dd2['data']&&'listType'==_0x577dd2['data']['key']&&_0x577dd2['data']['newValue'])return _0x50abf3;_0x577dd2=_0x577dd2['next'];}return{'type':'format','content':o(_0x12f6ae,'*Remove\x20format:*\x20%0',o(_0x12f6ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x52355a['oldValue']+')'};}}}}class kt extends _0xd0fe4f{['afterInit'](){const _0x51d5ae=this['editor'];if(!_0x51d5ae['plugins']['has']('PageBreakEditing'))return;_0x51d5ae['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x440382=_0x51d5ae['plugins']['get']('TrackChangesEditing'),_0x3f2017=_0x51d5ae['locale'];_0x440382['descriptionFactory']['registerElementLabel']('pageBreak',_0x49dc8f=>o(_0x3f2017,'ELEMENT_PAGE_BREAK',_0x49dc8f));}}class bt extends _0xd0fe4f{['afterInit'](){const _0x13f249=this['editor'];if(!_0x13f249['plugins']['has']('Paragraph'))return;const _0x5a59e4=_0x13f249['locale'],_0x3d932c=_0x13f249['plugins']['get']('TrackChangesEditing');_0x3d932c['descriptionFactory']['registerElementLabel']('paragraph',_0x4f439b=>o(_0x5a59e4,'ELEMENT_PARAGRAPH',_0x4f439b)),_0x3d932c['enableDefaultAttributesIntegration']('paragraph'),_0x3d932c['enableCommand']('insertParagraph'),_0x13f249['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x13f249),{'priority':'highest'}),_0x13f249['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x319202,_0x132384,_0x24b299)=>{_0x24b299['options']['showSuggestionHighlights']&&nr(_0x13f249,{'showActiveMarker':!0x1})(_0x319202,_0x132384,_0x24b299);},{'priority':'highest'});const _0x1cd7fe=_0x3d932c['descriptionFactory'];_0x1cd7fe['registerDescriptionCallback'](_0xe26e82=>{if('insertion'!==_0xe26e82['type'])return;const {start:_0x17b187,end:_0x17826f}=_0xe26e82['getFirstRange']();if(!_0x17b187['isTouching'](_0x17826f)||!_0x17b187['nodeAfter'])return;const _0x1efcb1=_0x13f249['model']['schema'],_0x5db0df=_0x17b187['nodeAfter'];return _0x1efcb1['isBlock'](_0x5db0df)&&!_0x1efcb1['isLimit'](_0x5db0df)&&_0x1efcb1['checkChild'](_0x5db0df,'$text')?{'type':'insertion','content':o(_0x5a59e4,'*Insert:*\x20%0',_0x1cd7fe['getItemLabel'](_0x5db0df,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x547f3f=this['editor'],_0x5cfaa4=_0x547f3f['locale'];_0x547f3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x326f9e=>{if('formatBlock'!=_0x326f9e['type'])return;const {data:_0x2c5c8d}=_0x326f9e;return _0x2c5c8d&&'paragraph'==_0x2c5c8d['commandName']?{'type':'format','content':o(_0x5cfaa4,'*Change\x20to:*\x20%0',o(_0x5cfaa4,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x57dfac,{showActiveMarker:_0x228265=!0x0}={}){return(_0x191efc,_0x2f80a7,_0xc218ff)=>{const _0x1fa511=_0x57dfac['plugins']['get']('TrackChangesEditing'),_0x20c7f1=_0x2f80a7['markerRange']['start'],_0x393b39=_0x2f80a7['markerRange']['end'],_0x55bd8c=_0x57dfac['model']['schema'];if(!_0x20c7f1['isTouching'](_0x393b39)||!_0x20c7f1['nodeAfter'])return;const _0x4fe4de=_0x20c7f1['nodeAfter'];if(_0x55bd8c['isBlock'](_0x4fe4de)&&!_0x55bd8c['isLimit'](_0x4fe4de)&&_0x55bd8c['checkChild'](_0x4fe4de,'$text')){if(!_0xc218ff['consumable']['consume'](_0x2f80a7['markerRange'],_0x191efc['name']))return;const {authorId:_0x1b2323}=_0x1fa511['_splitMarkerName'](_0x2f80a7['markerName']),_0x312473=_0xc218ff['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1b2323}),_0x186158=_0xc218ff['mapper']['toViewPosition'](_0x393b39);_0x228265&&_0x1fa511['activeMarkers']['includes'](_0x2f80a7['markerName'])&&_0xc218ff['writer']['addClass']('ck-suggestion-marker--active',_0x312473),_0xc218ff['writer']['insert'](_0x186158,_0x312473),_0xc218ff['mapper']['bindElementToMarker'](_0x312473,_0x2f80a7['markerName']);}};}class wt extends _0xd0fe4f{['afterInit'](){const _0x420d34=this['editor'];if(!_0x420d34['plugins']['has']('RemoveFormatEditing'))return;_0x420d34['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30041e=this['editor'];_0x30041e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47b582=>{if('formatBlock'!=_0x47b582['type']&&'formatInline'!=_0x47b582['type'])return;const {data:_0x251cc3}=_0x47b582;return _0x251cc3&&'removeFormat'==_0x251cc3['commandName']?{'type':'format','content':o(_0x30041e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xd0fe4f{['afterInit'](){const _0x3ed69c=this['editor'];if(!_0x3ed69c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x34924e=_0x3ed69c['plugins']['get']('TrackChangesEditing');_0x34924e['enableCommand']('goToPreviousRestrictedEditingException'),_0x34924e['enableCommand']('goToNextRestrictedEditingException');const _0x30647f=_0x3ed69c['plugins']['get']('RestrictedEditingModeEditing');_0x30647f['enableCommand']('trackChanges'),_0x30647f['enableCommand']('acceptSuggestion'),_0x30647f['enableCommand']('discardSuggestion'),_0x30647f['enableCommand']('acceptAllSuggestions'),_0x30647f['enableCommand']('discardAllSuggestions'),_0x30647f['enableCommand']('acceptSelectedSuggestions'),_0x30647f['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xd0fe4f{static get['requires'](){return[_0x3d87fa];}['init'](){const _0x3b1fc0=this['editor'],_0x440975=_0x3b1fc0['plugins']['get']('TrackChangesEditing');_0x440975['enableCommand']('shiftEnter'),_0x3b1fc0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x3b1fc0),{'priority':'high'}),_0x3b1fc0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x3b1fc0),{'priority':'high'}),_0x3b1fc0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x36a922,_0x213f0a,_0xbd1496)=>{_0xbd1496['options']['showSuggestionHighlights']&&ge(_0x3b1fc0,{'showActiveMarker':!0x1})(_0x36a922,_0x213f0a,_0xbd1496);}),_0x440975['descriptionFactory']['registerElementLabel']('softBreak',_0x398db4=>o(_0x3b1fc0['locale'],'ELEMENT_LINE_BREAK',_0x398db4));}}function ge(_0x4a6b82,{showActiveMarker:_0x37b668=!0x0}={}){return(_0x18545c,_0x56a365,_0x38dcfc)=>{const _0x3d1d5f=_0x4a6b82['plugins']['get']('TrackChangesEditing');if(!_0x38dcfc['consumable']['test'](_0x56a365['markerRange'],_0x18545c['name']))return;const _0xe68b22=_0x4a6b82['model'];for(const _0x5663b2 of _0x56a365['markerRange']['getItems']()){if(!_0x5663b2['is']('element','softBreak'))continue;const _0x558763='deletion'==_0x56a365['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5c89f2}=_0x3d1d5f['_splitMarkerName'](_0x56a365['markerName']),_0x11e7ef=_0x38dcfc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x558763,'data-author-id':_0x5c89f2}),_0x7ecd96=_0x38dcfc['mapper']['toViewPosition'](_0xe68b22['createPositionBefore'](_0x5663b2));_0x37b668&&_0x3d1d5f['activeMarkers']['includes'](_0x56a365['markerName'])&&_0x38dcfc['writer']['addClass']('ck-suggestion-marker--active',_0x11e7ef),_0x38dcfc['writer']['insert'](_0x7ecd96,_0x11e7ef),_0x38dcfc['mapper']['bindElementToMarker'](_0x11e7ef,_0x56a365['markerName']);}};}class St extends _0xd0fe4f{['afterInit'](){const _0x378c72=this['editor'],_0x18aeed=_0x378c72['model'],_0x2848cf=_0x378c72['locale'];if(!_0x378c72['plugins']['has']('StandardEditingModeEditing'))return;const _0x1dc2e3=_0x378c72['plugins']['get']('TrackChangesEditing'),_0x5bb01b='restrictedEditingException',_0x34ac70=_0x378c72['commands']['get'](_0x5bb01b);_0x1dc2e3['enableCommand'](_0x5bb01b,(_0x2e9e5e,_0x55a4f={})=>{const _0x1b8ac2=_0x18aeed['document']['selection'];if(_0x1b8ac2['isCollapsed'])return void _0x2e9e5e(_0x55a4f);const _0x52f44=void 0x0!==_0x55a4f['forceValue']?_0x55a4f['forceValue']:!_0x34ac70['value'];_0x18aeed['change'](()=>{const _0x34d921=Array['from'](_0x1b8ac2['getRanges']());for(const _0x583d19 of _0x34d921){const _0x3b4f51=_0x52f44?[_0x583d19]:io(_0x5bb01b,_0x583d19,_0x18aeed);for(const _0xfe20ca of _0x3b4f51)_0x1dc2e3['markInlineFormat'](_0xfe20ca,{'commandName':_0x5bb01b,'commandParams':[{'forceValue':_0x52f44}]});}});}),_0x1dc2e3['descriptionFactory']['registerDescriptionCallback'](_0x491fb8=>{if('formatBlock'!=_0x491fb8['type']&&'formatInline'!=_0x491fb8['type'])return;const {data:_0x49bb7a}=_0x491fb8;return _0x49bb7a&&_0x49bb7a['commandName']==_0x5bb01b?_0x49bb7a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2848cf,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2848cf,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0xd0fe4f{['afterInit'](){const _0x501fd1=this['editor'];if(!_0x501fd1['plugins']['has']('Style')||!_0x501fd1['plugins']['has']('DataSchema'))return;const _0x536487=_0x501fd1['plugins']['get']('TrackChangesEditing'),_0x271e03=_0x501fd1['locale'],_0x52f5c0=_0x501fd1['config']['get']('style')||{},_0x428d52=_0x501fd1['plugins']['get']('GeneralHtmlSupport'),_0x30013d=_0x501fd1['plugins']['get']('StyleUtils')['normalizeConfig'](_0x501fd1['plugins']['get']('DataSchema'),_0x52f5c0['definitions']);_0x536487['enableDefaultAttributesIntegration']('style');const _0x235cfc=new Set();for(const _0x40abc8 of _0x30013d['block']){const _0x79072e=_0x428d52['getGhsAttributeNameForElement'](_0x40abc8['element']);_0x235cfc['add'](_0x79072e);}const _0x1ad4e7=new Set();for(const _0x1d1031 of _0x30013d['inline']){const _0x4089df=_0x428d52['getGhsAttributeNameForElement'](_0x1d1031['element']);_0x1ad4e7['add'](_0x4089df);for(const _0x2098a3 of _0x1d1031['ghsAttributes'])_0x1ad4e7['add'](_0x2098a3);}for(const _0x1c196f of _0x235cfc)_0x536487['registerBlockAttribute'](_0x1c196f),_0x536487['descriptionFactory']['registerAttributeLabel'](_0x1c196f,o(_0x271e03,'FORMAT_STYLE'));for(const _0x36553b of _0x1ad4e7)_0x536487['registerInlineAttribute'](_0x36553b),_0x536487['descriptionFactory']['registerAttributeLabel'](_0x36553b,o(_0x271e03,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22de20=this['editor'],_0x323dec=_0x22de20['locale'];_0x22de20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a759e=>{if('formatBlock'!=_0x1a759e['type']&&'formatInline'!=_0x1a759e['type'])return;const {data:_0x4e3fc6}=_0x1a759e;return _0x4e3fc6&&'style'===_0x4e3fc6['commandName']?_0x4e3fc6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x323dec,'*Set\x20format:*\x20%0',_0x4e3fc6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x323dec,'*Remove\x20format:*\x20%0',_0x4e3fc6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0xd0fe4f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x8d4135){super(_0x8d4135),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x27e0e6=this['editor'],_0x5ecce9=_0x27e0e6['model']['document']['selection'];if(!_0x27e0e6['plugins']['has']('TableEditing'))return;const _0x228031=_0x27e0e6['locale'],_0x26b30c=_0x27e0e6['plugins']['get']('TrackChangesEditing'),_0x205172=_0x27e0e6['plugins']['get']('TableUtils');_0x26b30c['descriptionFactory']['registerElementLabel']('table',_0x472258=>o(_0x228031,'ELEMENT_TABLE',_0x472258)),this['_setupColumnsRowsFixing'](),_0x26b30c['enableCommand']('insertTable'),_0x26b30c['enableCommand']('selectTableRow'),_0x26b30c['enableCommand']('selectTableColumn');for(const _0x3394ce of['insertTableRowAbove','insertTableRowBelow']){const _0x1d3e14=_0x27e0e6['commands']['get'](_0x3394ce);_0x26b30c['enableCommand'](_0x3394ce,_0x237244=>{_0x27e0e6['model']['change'](_0x3de52b=>{_0x237244();const _0x275ff1='above'===_0x1d3e14['order'],_0x4bc629=_0x205172['getSelectionAffectedTableCells'](_0x5ecce9),_0x549868=_0x205172['getRowIndexes'](_0x4bc629),_0x489ca6=_0x275ff1?_0x549868['first']-0x1:_0x549868['last']+0x1,_0x22b386=_0x4bc629[0x0]['findAncestor']('table'),_0x4457c8=_0x205172['createTableWalker'](_0x22b386,{'startRow':_0x489ca6,'endRow':_0x489ca6}),_0x2e6aae=Array['from'](_0x4457c8)['map'](_0x106b77=>_0x3de52b['createRangeOn'](_0x106b77['cell']));_0x26b30c['markMultiRangeInsertion'](_0x2e6aae,'tableRow');});});}for(const _0x3b48ef of['insertTableColumnLeft','insertTableColumnRight']){const _0xcd5e31=_0x27e0e6['commands']['get'](_0x3b48ef);_0x26b30c['enableCommand'](_0x3b48ef,_0x4e4fe7=>{_0x27e0e6['model']['change'](_0x2d4573=>{_0x4e4fe7();const _0x27ac81='left'===_0xcd5e31['order'],_0x315dc1=_0x205172['getSelectionAffectedTableCells'](_0x5ecce9),_0x1b5661=_0x205172['getColumnIndexes'](_0x315dc1),_0x113dcd=_0x27ac81?_0x1b5661['first']-0x1:_0x1b5661['last']+0x1,_0x5469fd=_0x315dc1[0x0]['findAncestor']('table'),_0x1a2c02=_0x205172['createTableWalker'](_0x5469fd,{'startRow':0x0,'column':_0x113dcd,'includeAllSlots':!0x1}),_0x5dd583=Array['from'](_0x1a2c02)['map'](_0x4c6476=>_0x2d4573['createRangeOn'](_0x4c6476['cell']));_0x26b30c['markMultiRangeInsertion'](_0x5dd583,'tableColumn');});});}for(const _0x511e0d of['removeTableRow','removeTableColumn']){const _0x3c2263=_0x511e0d['substr'](0xb),_0x6643ac=_0x3c2263['toLowerCase'](),_0x2876b0=_0x6643ac['substr'](0x0,0x3)+'span',_0x3fdccf='table'+_0x3c2263,_0x57fddd='min'+_0x3c2263,_0x1c9da6='max'+_0x3c2263;_0x26b30c['enableCommand'](_0x511e0d,()=>{_0x27e0e6['model']['change'](_0x4326b0=>{const _0x3910a7=_0x205172['getSelectionAffectedTableCells'](_0x5ecce9),_0x53778e=_0x3910a7[0x0]['findAncestor']('table');let _0x326b42;if('removeTableRow'==_0x511e0d){const _0x326c19=_0x205172['getRowIndexes'](_0x3910a7);_0x326b42={'startRow':_0x326c19['first'],'endRow':_0x326c19['last'],'includeAllSlots':!0x0};}else{const _0x3d1755=_0x205172['getColumnIndexes'](_0x3910a7);_0x326b42={'startColumn':_0x3d1755['first'],'endColumn':_0x3d1755['last'],'includeAllSlots':!0x0};}const _0x4b6c5a=_0x205172['createTableWalker'](_0x53778e,_0x326b42),_0x307126=Array['from'](_0x4b6c5a)['map'](({cell:_0x25e00d})=>_0x25e00d),_0xd9c25=be(_0x307126['filter'](_0x495157=>_0x495157['hasAttribute'](_0x2876b0))),_0x4237c3=be(_0x307126['filter'](_0x4fbac3=>!_0x4fbac3['hasAttribute'](_0x2876b0)))['map'](_0x46b3de=>_0x4326b0['createRangeOn'](_0x46b3de)),_0x5a7f4e=_0x26b30c['markMultiRangeDeletion'](_0x4237c3,_0x3fdccf);if(_0x5a7f4e&&('tableRow'==_0x5a7f4e['subType']||'tableColumn'==_0x5a7f4e['subType'])){const _0x3c0c50=this['_getSuggestionCoords'](_0x5a7f4e);for(const _0x13e7a7 of _0xd9c25){const _0x2ded78=_0x4326b0['createRangeOn'](_0x13e7a7),_0x2b21d7=_0x205172['getCellLocation'](_0x13e7a7),_0x2e929e=_0x13e7a7['getAttribute'](_0x2876b0)-0x1,_0x22e099=_0x3c0c50[_0x57fddd],_0x48cbb3=_0x3c0c50[_0x1c9da6];_0x22e099<=_0x2b21d7[_0x6643ac]&&_0x2b21d7[_0x6643ac]+_0x2e929e<=_0x48cbb3&&_0x5a7f4e['addRange'](_0x2ded78);}}});});}function _0x1e9d67(_0x28cbd2){const _0x1a919f=Array['from'](_0x5ecce9['getRanges']())['map'](_0x597b92=>_0x425d25['fromRange'](_0x597b92));_0x27e0e6['model']['change'](_0x45070d=>{const _0x4a19bc=_0x45070d['batch'];_0x28cbd2=_0x28cbd2['filter'](_0x593e39=>'$graveyard'!=_0x593e39['root']['rootName']),_0x45070d['setSelection'](_0x28cbd2),_0x27e0e6['commands']['get']('removeTableRow')['refresh'](),_0x27e0e6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x27e0e6['model']['enqueueChange'](()=>{_0x27e0e6['model']['enqueueChange'](_0x4a19bc,_0x525725=>{const _0x2114fb=_0x1a919f['filter'](_0x6cff1a=>'$graveyard'!=_0x6cff1a['root']['rootName']);_0x2114fb['length']>0x0&&_0x525725['setSelection'](_0x2114fb);for(const _0x4c0108 of _0x1a919f)_0x4c0108['detach']();});});});}function _0x236f9b(_0x558e5a){_0x27e0e6['model']['change'](_0x4b47d3=>{const _0x498091=Array['from'](_0x5ecce9['getRanges']())['map'](_0x407de5=>_0x425d25['fromRange'](_0x407de5)),_0x261eeb=[];for(const _0x57fa86 of _0x558e5a)for(const _0x1ed03b of _0x57fa86['getItems']({'shallow':!0x0}))_0x261eeb['push'](_0x1ed03b);for(const _0x25a7ad of _0x261eeb)'$graveyard'!=_0x25a7ad['root']['rootName']&&(_0x4b47d3['setSelection'](_0x4b47d3['createPositionAt'](_0x25a7ad,0x0)),_0x27e0e6['commands']['get']('removeTableColumn')['refresh'](),_0x27e0e6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x43c445=_0x498091['filter'](_0x1dbf34=>'$graveyard'!=_0x1dbf34['root']['rootName']);_0x43c445['length']>0x0&&_0x4b47d3['setSelection'](_0x43c445);for(const _0x34895a of _0x498091)_0x34895a['detach']();});}function _0x542b94(_0x45992a,_0x2482e5){return _0x2482e5['every'](_0x1144a1=>_0x45992a['some'](_0x59ac95=>_0x59ac95['end']['isEqual'](_0x1144a1['start'])||_0x1144a1['end']['isEqual'](_0x59ac95['start'])));}function _0x355855(_0x368404,_0x202b58){return!_0x368404['some'](_0x36c0c9=>_0x202b58['some'](_0x49d404=>_0x36c0c9['isIntersecting'](_0x49d404)))&&_0x368404['some'](_0x2f241b=>_0x202b58['some'](_0x3d6678=>_0x2f241b['end']['isTouching'](_0x3d6678['start'])));}_0x27e0e6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f7294,_0x4d3f5b,_0x5427f6)=>{if(!_0x5427f6['options']['showSuggestionHighlights'])return;const _0x32b5dd=_0x4d3f5b['item'];if(!_0x32b5dd)return;const _0x5d1251=_0x5427f6['mapper']['toViewElement'](_0x32b5dd);function _0x23d468(_0x2843dc){return Array['isArray'](_0x2843dc)?_0x2843dc:[_0x2843dc];}_0x5d1251&&'tableCell'===_0x32b5dd['name']&&_0x3aee56(_0x5d1251,_0x5427f6['writer'],(_0x2388af,_0x3ce2fe,_0x18977a)=>_0x18977a['addClass'](_0x23d468(_0x3ce2fe['classes']),_0x2388af),(_0x6d5391,_0x14d179,_0x73793b)=>_0x73793b['removeClass'](_0x23d468(_0x14d179['classes']),_0x6d5391));},{'priority':'highest'}),_0x26b30c['descriptionFactory']['registerDescriptionCallback'](_0x4dd5b8=>{if('insertion'!=_0x4dd5b8['type']&&'deletion'!=_0x4dd5b8['type'])return;const _0x54f03b=_0x4dd5b8['getContainedElement']();if(null!=_0x54f03b&&_0x54f03b['is']('element','table')){if('insertion'==_0x4dd5b8['type']){const _0x863b1c=_0x4dd5b8['getItems']()['filter'](_0x45743a=>_0x45743a['is']('$textProxy'))['map'](_0x28c3bf=>_0x28c3bf['data']);if(_0x863b1c['length'])return{'type':'insertion','content':o(_0x228031,'*Insert:*\x20%0',o(_0x228031,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x863b1c['join']('\x20')+'\x22'))};}if('deletion'==_0x4dd5b8['type']){const _0x4e0311=_0x4dd5b8['getItems']()['filter'](_0x57c03d=>_0x57c03d['is']('$textProxy'))['map'](_0x4698e9=>_0x4698e9['data']);if(_0x4e0311['length'])return{'type':'deletion','content':o(_0x228031,'*Remove:*\x20%0',o(_0x228031,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4e0311['join']('\x20')+'\x22'))};}}}),_0x26b30c['descriptionFactory']['registerDescriptionCallback'](_0x56f2b0=>{if('tableRow'==_0x56f2b0['subType']){const _0x5a8e62=_0x56f2b0['getItems']()['filter'](_0x29959f=>_0x29959f['is']('$textProxy'))['map'](_0x20cd5b=>_0x20cd5b['data']),_0x5098a7=this['_getSuggestionCoords'](_0x56f2b0),_0xc10826=_0x5098a7['maxRow']-_0x5098a7['minRow']+0x1;if('insertion'==_0x56f2b0['type'])return _0x5a8e62['length']?{'type':'insertion','content':o(_0x228031,'*Insert:*\x20%0',o(_0x228031,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xc10826,'\x22'+_0x5a8e62['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x228031,'*Insert:*\x20%0',o(_0x228031,'ELEMENT_TABLE_ROW',_0xc10826))};if('deletion'==_0x56f2b0['type'])return _0x5a8e62['length']?{'type':'deletion','content':o(_0x228031,'*Remove:*\x20%0',o(_0x228031,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xc10826,'\x22'+_0x5a8e62['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x228031,'*Remove:*\x20%0',o(_0x228031,'ELEMENT_TABLE_ROW',_0xc10826))};}if('tableColumn'==_0x56f2b0['subType']){const _0x4209c7=_0x56f2b0['getItems']()['filter'](_0x394979=>_0x394979['is']('$textProxy'))['map'](_0x109fcb=>_0x109fcb['data']),_0x15c4da=this['_getSuggestionCoords'](_0x56f2b0),_0x29e383=_0x15c4da['maxColumn']-_0x15c4da['minColumn']+0x1;if('insertion'==_0x56f2b0['type'])return _0x4209c7['length']?{'type':'insertion','content':o(_0x228031,'*Insert:*\x20%0',o(_0x228031,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x29e383,'\x22'+_0x4209c7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x228031,'*Insert:*\x20%0',o(_0x228031,'ELEMENT_TABLE_COLUMN',_0x29e383))};if('deletion'==_0x56f2b0['type'])return _0x4209c7['length']?{'type':'deletion','content':o(_0x228031,'*Remove:*\x20%0',o(_0x228031,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x29e383,'\x22'+_0x4209c7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x228031,'*Remove:*\x20%0',o(_0x228031,'ELEMENT_TABLE_COLUMN',_0x29e383))};}}),_0x26b30c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1e9d67),_0x26b30c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1e9d67),_0x26b30c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x236f9b),_0x26b30c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x236f9b),_0x26b30c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x542b94),_0x26b30c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x542b94),_0x26b30c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x355855),_0x26b30c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x355855);}['_acceptFormatSuggestionCallbackFactory'](){const _0x261561=this['editor'],_0x1eee8d=_0x261561['model']['document']['selection'];return(_0x1eb928,_0x50c621)=>{_0x261561['model']['change'](_0x4c956c=>{const {commandName:_0x4000be,commandParams:_0x56a27c}=_0x50c621;let _0x501990=_0x1eb928[0x0]['end']['nodeBefore'];_0x56a27c&&_0x56a27c[0x0]&&!0x1===_0x56a27c[0x0]['forceValue']&&(_0x501990=_0x1eb928[0x0]['start']['nodeAfter']);const _0x4c8869=_0x4c956c['createRangeIn'](_0x501990);if('$graveyard'==_0x4c8869['root']['rootName'])return;const _0x48bb3e=Array['from'](_0x1eee8d['getRanges']())['map'](_0x2ba280=>_0x425d25['fromRange'](_0x2ba280));_0x4c956c['setSelection'](_0x4c8869),_0x261561['commands']['get'](_0x4000be)['refresh'](),_0x56a27c['push']({'forceDefaultExecution':!0x0}),_0x261561['execute'](_0x4000be,..._0x56a27c);const _0x3a3ea7=_0x48bb3e['filter'](_0xa64dc0=>'$graveyard'!=_0xa64dc0['root']['rootName']);_0x3a3ea7['length']>0x0&&_0x4c956c['setSelection'](_0x3a3ea7);for(const _0x2dbcbb of _0x48bb3e)_0x2dbcbb['detach']();});};}['_getCoordsForCells'](_0x36e0ab){const _0x2b069a=this['editor']['plugins']['get']('TableUtils');let _0xfdea95=Number['MAX_SAFE_INTEGER'],_0x5c62ad=Number['MIN_SAFE_INTEGER'],_0x1a9361=Number['MAX_SAFE_INTEGER'],_0x96ca87=Number['MIN_SAFE_INTEGER'];for(const _0x29f54f of _0x36e0ab){if('$graveyard'==_0x29f54f['root']['rootName'])continue;const {row:_0x55a4cf,column:_0x323fe6}=_0x2b069a['getCellLocation'](_0x29f54f),_0xe2023f=_0x29f54f['hasAttribute']('rowspan')?_0x29f54f['getAttribute']('rowspan')-0x1:0x0,_0x55b1db=_0x29f54f['hasAttribute']('colspan')?_0x29f54f['getAttribute']('colspan')-0x1:0x0;_0xfdea95=_0x55a4cf<_0xfdea95?_0x55a4cf:_0xfdea95,_0x5c62ad=_0x55a4cf+_0xe2023f>_0x5c62ad?_0x55a4cf+_0xe2023f:_0x5c62ad,_0x1a9361=_0x323fe6<_0x1a9361?_0x323fe6:_0x1a9361,_0x96ca87=_0x323fe6+_0x55b1db>_0x96ca87?_0x323fe6+_0x55b1db:_0x96ca87;}return{'minRow':_0xfdea95,'maxRow':_0x5c62ad,'minColumn':_0x1a9361,'maxColumn':_0x96ca87};}['_setupColumnsRowsFixing'](){const _0x123dd5=this['editor'],_0xfea845=_0x123dd5['plugins']['get']('TrackChangesEditing'),_0x3b2289=_0x123dd5['plugins']['get']('TableUtils');_0x123dd5['model']['document']['on']('change:data',()=>{const _0x3bd797=Array['from'](_0x123dd5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2098a8,data:_0x472fd0}of _0x3bd797){const {group:_0x1d7fbb,id:_0x59cddb,subType:_0xebe852}=_0xfea845['_splitMarkerName'](_0x2098a8);if('suggestion'!=_0x1d7fbb)continue;if(null!=_0x472fd0['oldRange'])continue;const _0x2edf1f=_0xfea845['getSuggestion'](_0x59cddb);this['_tablePostFixingSubtypes']['includes'](_0xebe852)&&this['_tableSuggestions']['add'](_0x2edf1f);}},{'priority':'low'});const _0x2981a5=(_0x57a4d6,_0xca9d50)=>{let _0x54634c=!0x1;const _0x1612b9=_0xca9d50['createRangeOn'](_0x57a4d6),_0x12dbe5=_0x57a4d6['findAncestor']('table'),_0x15ea43=_0x3b2289['getCellLocation'](_0x57a4d6);for(const _0x28c37f of this['_tableSuggestions']){const _0x4eaaef=_0x28c37f['subType'],_0x2e32a4=_0x4eaaef['startsWith']('tablePaste'),_0x8971a6=_0x4eaaef['substr'](_0x2e32a4?0xa:0x5),_0x10dbdb=_0x8971a6['toLowerCase'](),_0x19ae08=_0x10dbdb['substr'](0x0,0x3)+'span',_0x1d883c='min'+_0x8971a6,_0x31aaf7='max'+_0x8971a6;if(!_0x28c37f['isInContent'])continue;if(_0x12dbe5!=_0x28c37f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x28c37f['isIntersectingWithRange'](_0x1612b9))continue;const _0x2535cc=_0x57a4d6['hasAttribute'](_0x19ae08)?_0x57a4d6['getAttribute'](_0x19ae08)-0x1:0x0,_0x4dcfae=this['_getSuggestionCoords'](_0x28c37f),_0x21b773=_0x4dcfae[_0x1d883c],_0x138cba=_0x4dcfae[_0x31aaf7];_0x21b773<=_0x15ea43[_0x10dbdb]&&_0x15ea43[_0x10dbdb]+_0x2535cc<=_0x138cba&&(_0x28c37f['addRange'](_0x1612b9),_0x54634c=!0x0);}return _0x54634c;};_0x123dd5['model']['document']['registerPostFixer'](_0x423d7f=>{let _0x19258c=!0x1;for(const _0x5ac559 of _0x123dd5['model']['document']['differ']['getChanges']())if('insert'==_0x5ac559['type']){if('tableRow'==_0x5ac559['name']){for(const _0x2043ff of _0x5ac559['position']['nodeAfter']['getChildren']())_0x19258c=_0x19258c||_0x2981a5(_0x2043ff,_0x423d7f);}else'tableCell'==_0x5ac559['name']&&(_0x19258c=_0x19258c||_0x2981a5(_0x5ac559['position']['nodeAfter'],_0x423d7f));}return _0x19258c;});}['_getSuggestionCoords'](_0x2a5757){return this['_getCoordsForCells'](_0x2a5757['getRanges']()['map'](_0x1d45f9=>_0x1d45f9['start']['nodeAfter']));}}function be(_0x43b54c){return Array['from'](new Set(_0x43b54c)['values']());}class vt extends _0xd0fe4f{static get['requires'](){return[It];}['afterInit'](){const _0x1e027c=this['editor'],_0x49ea5f=_0x1e027c['model']['document']['selection'],_0x916f61=_0x1e027c['locale'];if(!_0x1e027c['plugins']['has']('TableEditing'))return;const _0x28de6e=_0x1e027c['plugins']['get']('TrackChangesEditing'),_0x59c1fc=_0x1e027c['plugins']['get']('TableUtils'),_0x364669=_0x1e027c['plugins']['get'](It);_0x364669['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x28de6e['enableCommand']('mergeTableCells',()=>{const _0xbab2ce=_0x59c1fc['getSelectionAffectedTableCells'](_0x1e027c['model']['document']['selection']);_0x1e027c['model']['change'](()=>{_0x28de6e['markMultiRangeBlockFormat'](_0xbab2ce,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1e027c['commands']['get']('mergeTableCells')['on']('execute',(_0x1d7ba9,_0x1316b5)=>{_0x1e027c['commands']['get']('trackChanges')['value']&&(_0x1316b5['length']>0x0&&_0x1316b5[_0x1316b5['length']-0x1]&&_0x1316b5[_0x1316b5['length']-0x1]['forceDefaultExecution']||_0x28de6e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1d7ba9['stop']());},{'priority':'highest'});for(const _0x1c8dd0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2d46f3=_0x1e027c['commands']['get'](_0x1c8dd0);_0x28de6e['enableCommand'](_0x1c8dd0,()=>{const _0x1ebd04=_0x1e027c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3b29f2=>_0x3b29f2['is']('element','tableCell')),_0x496c8f=_0x2d46f3['value'];_0x1e027c['model']['change'](()=>{_0x28de6e['markMultiRangeBlockFormat']([_0x1ebd04,_0x496c8f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1a67ce of['splitTableCellVertically','splitTableCellHorizontally']){const _0x56e6ac=_0x1e027c['commands']['get'](_0x1a67ce);_0x28de6e['enableCommand'](_0x1a67ce,()=>{const _0x4e6c4b=_0x59c1fc['getSelectionAffectedTableCells'](_0x1e027c['model']['document']['selection'])[0x0],_0x364858=_0x4e6c4b['findAncestor']('table'),{column:_0xa4e37c,row:_0x540c00}=_0x59c1fc['getCellLocation'](_0x4e6c4b);let _0x261b05=[];if('horizontally'==_0x56e6ac['direction']){const _0x5bd2b9=_0x59c1fc['createTableWalker'](_0x364858,{'startRow':_0x540c00,'endRow':_0x540c00,'includeAllSlots':!0x0});_0x261b05=Array['from'](_0x5bd2b9)['map'](_0xc4c63a=>_0xc4c63a['cell']);}else{const _0xc3059=_0x59c1fc['createTableWalker'](_0x364858,{'column':_0xa4e37c,'includeAllSlots':!0x0});_0x261b05=Array['from'](_0xc3059)['map'](_0x553f1b=>_0x553f1b['cell']);}_0x1e027c['model']['change'](_0x57e6a4=>{_0x28de6e['markBlockFormat'](_0x57e6a4['createRangeOn'](_0x4e6c4b),{'commandName':_0x1a67ce,'commandParams':[]},_0x261b05,_0x1a67ce);});});}_0x28de6e['descriptionFactory']['registerDescriptionCallback'](_0x2f3674=>{if('formatBlock'!=_0x2f3674['type']&&'formatInline'!=_0x2f3674['type'])return;const {data:_0x47e13b}=_0x2f3674;return _0x47e13b&&'mergeTableCells'==_0x47e13b['commandName']?{'type':'format','content':o(_0x916f61,'*Merge\x20cells*')}:void 0x0;}),_0x28de6e['descriptionFactory']['registerDescriptionCallback'](_0x483cf2=>{if('formatBlock'!=_0x483cf2['type']&&'formatInline'!=_0x483cf2['type'])return;const {data:_0x514a95}=_0x483cf2;return _0x514a95?'splitTableCellVertically'==_0x514a95['commandName']?{'type':'format','content':o(_0x916f61,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x514a95['commandName']?{'type':'format','content':o(_0x916f61,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x12df79=_0x364669['_acceptFormatSuggestionCallbackFactory']();for(const _0x15c341 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x28de6e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15c341,'accept',_0x12df79);for(const _0x42ff08 of['splitTableCellVertically','splitTableCellHorizontally'])_0x28de6e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42ff08,'accept',_0x12df79);_0x28de6e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x35a96d=>{_0x1e027c['model']['change'](_0x435716=>{const _0x55033c=Array['from'](_0x49ea5f['getRanges']())['map'](_0x57c2a3=>_0x425d25['fromRange'](_0x57c2a3));_0x435716['setSelection'](_0x35a96d),_0x1e027c['commands']['get']('mergeTableCells')['refresh'](),_0x1e027c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5b0a8c=_0x55033c['filter'](_0x97aaee=>'$graveyard'!=_0x97aaee['root']['rootName']);_0x5b0a8c['length']>0x0&&_0x435716['setSelection'](_0x5b0a8c);for(const _0x417979 of _0x55033c)_0x417979['detach']();});});for(const _0x3c5f0e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3ae53b=_0x1e027c['commands']['get'](_0x3c5f0e);_0x3ae53b['on']('set:isEnabled',(_0x21339a,_0x532ed5,_0x19378b)=>{if(_0x19378b){const _0x3a0ad4=_0x1e027c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x584f07=>_0x584f07['is']('element','tableCell'));this['_areMergableCells'](_0x3ae53b['value'],_0x3a0ad4)||(_0x21339a['return']=!0x1,_0x21339a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1057f0=this['editor']['commands']['get']('mergeTableCells'),_0x33989a=this['editor']['plugins']['get']('TableUtils');if(!_0x1057f0['isEnabled'])return!0x1;const _0x5f370b=_0x33989a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1e5c4f of _0x5f370b)for(const _0x4c854a of _0x5f370b)if(_0x1e5c4f!=_0x4c854a&&!this['_areMergableCells'](_0x1e5c4f,_0x4c854a))return!0x1;return!0x0;}['_areMergableCells'](_0xfd9d21,_0x186ce3){const _0x3e11a4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55559e=this['editor']['model']['createRangeOn'](_0xfd9d21),_0x45c3ce=this['editor']['model']['createRangeOn'](_0x186ce3),_0x522004=new Set(),_0xa22c9b=new Set();for(const _0x45808d of _0x3e11a4['getSuggestions']())if(('insertion'==_0x45808d['type']||'deletion'==_0x45808d['type']||'mergeTableCells'==_0x45808d['subType'])&&_0x45808d['isInContent']){for(const _0x540f8c of _0x45808d['getRanges']())_0x540f8c['containsRange'](_0x55559e,!0x0)&&_0x522004['add'](_0x45808d['type']+':'+_0x45808d['author']['id']),_0x540f8c['containsRange'](_0x45c3ce,!0x0)&&_0xa22c9b['add'](_0x45808d['type']+':'+_0x45808d['author']['id']);}if(_0x522004['size']!=_0xa22c9b['size'])return!0x1;for(const _0x46569d of _0x522004)if(!_0xa22c9b['has'](_0x46569d))return!0x1;return!0x0;}}class Ct extends _0xd0fe4f{static get['requires'](){return[It];}['afterInit'](){const _0x2d438a=this['editor'];if(!_0x2d438a['plugins']['has']('TableEditing'))return;const _0x58ea74=_0x2d438a['locale'],_0x3d45a4=_0x2d438a['plugins']['get']('TrackChangesEditing');_0x3d45a4['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3d45a4['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3d45a4['registerBlockAttribute']('headingRows'),_0x3d45a4['registerBlockAttribute']('headingColumns'),_0x3d45a4['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x58ea74,'FORMAT_HEADER_ROW')),_0x3d45a4['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x58ea74,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2cc6f7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fc27d=this['editor']['plugins']['get']('TableUtils'),_0x19503a=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x40151c({showActiveMarker:_0x27afe3=!0x0,setDataAttribute:_0x2beb6f=!0x0}={}){return(_0xaf5e19,_0xc80571,_0x17d2fb)=>{const {type:_0x122623,id:_0x21abd9}=_0x2cc6f7['_splitMarkerName'](_0xc80571['markerName']),_0x373ce2=_0x2cc6f7['getSuggestion'](_0x21abd9),_0x2b18b2=_0x373ce2['data'];if('formatBlock'!=_0x373ce2['type']||!_0x2b18b2||'setTableColumnHeader'!=_0x2b18b2['commandName'])return;if(_0xc80571['item'])return void _0xaf5e19['stop']();if(!_0x17d2fb['consumable']['consume'](_0xc80571['markerRange'],_0xaf5e19['name']))return;const _0x240357=_0xc80571['markerRange']['start']['nodeAfter'],_0x120c74=_0xc80571['markerRange']['end']['nodeBefore'],_0x582d19=_0x240357['parent']['parent'],{column:_0x388037}=_0x3fc27d['getCellLocation'](_0x240357),{column:_0x38237b}=_0x3fc27d['getCellLocation'](_0x120c74);for(let _0x4ba8cd=_0x388037;_0x4ba8cd<=_0x38237b;_0x4ba8cd++){const _0xffb4ef=_0x3fc27d['createTableWalker'](_0x582d19,{'column':_0x4ba8cd,'includeAllSlots':!0x1});for(const _0x3bda54 of _0xffb4ef){const _0x3bdc21=_0x3bda54['cell'],_0x157830=_0x17d2fb['mapper']['toViewElement'](_0x3bdc21);_0x17d2fb['writer']['addClass']('ck-suggestion-marker-'+_0x122623,_0x157830),_0x2beb6f&&_0x17d2fb['writer']['setAttribute']('data-suggestion',_0x21abd9,_0x157830),_0x17d2fb['mapper']['bindElementToMarker'](_0x157830,_0xc80571['markerName']),_0x27afe3&&(_0x2cc6f7['activeMarkers']['includes'](_0xc80571['markerName'])?_0x17d2fb['writer']['addClass']('ck-suggestion-marker--active',_0x157830):_0x17d2fb['writer']['removeClass']('ck-suggestion-marker--active',_0x157830));}}};}_0x2cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x19503a),_0x2cc6f7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x19503a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x40151c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e6d02,_0x3dfef8,_0x1508e7)=>{_0x1508e7['options']['showSuggestionHighlights']&&_0x40151c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1e6d02,_0x3dfef8,_0x1508e7);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x227abe,_0x4f2053,_0x3d3659)=>{const {type:_0x4f8305,id:_0x6b6098}=_0x2cc6f7['_splitMarkerName'](_0x4f2053['markerName']),_0x252af4=_0x2cc6f7['getSuggestion'](_0x6b6098),_0x33bc1c=_0x252af4['data'];if('formatBlock'!=_0x252af4['type']||!_0x33bc1c||'setTableColumnHeader'!=_0x33bc1c['commandName'])return;const _0xf67e88=_0x3d3659['mapper']['markerNameToElements'](_0x4f2053['markerName']);if(_0xf67e88){for(const _0x401bde of _0xf67e88)_0x3d3659['writer']['removeClass']('ck-suggestion-marker-'+_0x4f8305,_0x401bde),_0x3d3659['writer']['removeClass']('ck-suggestion-marker--active',_0x401bde),_0x3d3659['writer']['removeAttribute']('data-suggestion',_0x401bde),_0x3d3659['mapper']['unbindElementFromMarkerName'](_0x401bde,_0x4f2053['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x552a99=this['editor'],_0x75073f=_0x552a99['locale'];function _0x39de1d(_0x5f28b4){return{'type':'format','content':o(_0x75073f,'*Format:*\x20%0',_0x5f28b4)};}_0x552a99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x434057=>{if('formatBlock'!=_0x434057['type'])return;const {data:_0x26bd86}=_0x434057;if(_0x26bd86){if('setTableRowHeader'==_0x26bd86['commandName']){const _0x26ee12=_0x26bd86['commandParams'][0x0]['forceValue'];return _0x39de1d(o(_0x75073f,_0x26ee12?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x26bd86['commandName']){const _0x1fe400=_0x26bd86['commandParams'][0x0]['forceValue'];return _0x39de1d(o(_0x75073f,_0x1fe400?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x541f91=>[_0x541f91,null]));class _t extends _0xd0fe4f{static get['requires'](){return[It];}['afterInit'](){const _0x2e2ba4=this['editor'];if(!_0x2e2ba4['plugins']['has']('TableClipboard'))return;const _0x3df9c8=_0x2e2ba4['plugins']['get']('TrackChangesEditing'),_0x4a37c6=_0x2e2ba4['plugins']['get']('TableUtils'),_0xde404f=_0x2e2ba4['plugins']['get'](It),_0x11eae2=_0x2e2ba4['plugins']['get']('TableClipboard');_0xde404f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2e2ba4['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2e2ba4['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5397f9=null;_0x2e2ba4['model']['on']('insertContent',(_0x54a7a7,_0x320ff1)=>{const [_0x49c356,_0x11bf99]=_0x320ff1,_0x56e8bc=_0x320ff1[_0x320ff1['length']-0x1];_0x56e8bc&&_0x56e8bc['forceDefaultExecution']||_0x3df9c8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4663ac,_0x7ff3f0,_0x56a2a,_0x5c6b7,_0x15bc45){if(_0x7ff3f0&&!_0x7ff3f0['is']('documentSelection'))return!0x1;const _0x2f3572=_0x15bc45['getTableIfOnlyTableInContent'](_0x4663ac,_0x56a2a);if(!_0x2f3572||!Re(_0x2f3572,void 0x0,_0x5c6b7))return!0x1;const _0x5a5c45=_0x5c6b7['getSelectionAffectedTableCells'](_0x56a2a['document']['selection']);if(!_0x5a5c45['length'])return!0x1;const _0xc16b99=_0x5a5c45[0x0]['findAncestor']('table'),_0x5dca94=_0x5c6b7['getRowIndexes'](_0x5a5c45),_0x5ee650=_0x5c6b7['getColumnIndexes'](_0x5a5c45),_0x2eae94={'startRow':_0x5dca94['first'],'endRow':_0x5dca94['last'],'startColumn':_0x5ee650['first'],'endColumn':_0x5ee650['last']};return 0x1==_0x5a5c45['length']&&(_0x2eae94['endRow']+=_0x5c6b7['getRows'](_0x2f3572)-0x1,_0x2eae94['endColumn']+=_0x5c6b7['getColumns'](_0x2f3572)-0x1),Re(_0xc16b99,_0x2eae94,_0x5c6b7);}(_0x49c356,_0x11bf99,_0x2e2ba4['model'],_0x4a37c6,_0x11eae2)&&(_0x54a7a7['stop'](),_0x5397f9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2e2ba4['model']['change'](()=>{_0x2e2ba4['model']['insertContent'](_0x320ff1[0x0],_0x320ff1[0x1],_0x320ff1[0x2],{'forceDefaultExecution':!0x0});const _0x3d8ec4=_0x2b2341(),{rowInsertionRanges:_0x4fe6bd,columnInsertionRanges:_0x13ab86,insertionRanges:_0x32bc4f,deletionRanges:_0x145d98,cells:_0x2522ea}=_0x5397f9;_0x4fe6bd['length']&&_0x3df9c8['markMultiRangeInsertion'](_0x4fe6bd,'tablePasteRow',{'tablePasteChainId':_0x3d8ec4}),_0x13ab86['length']&&_0x3df9c8['markMultiRangeInsertion'](_0x13ab86,'tablePasteColumn',{'tablePasteChainId':_0x3d8ec4}),_0x32bc4f['length']&&(_0x3df9c8['markMultiRangeInsertion'](_0x32bc4f,'tablePaste',{'tablePasteChainId':_0x3d8ec4,'skipNestingCheck':!0x0}),_0x32bc4f['forEach'](_0x1a4640=>_0x1a4640['detach']?.())),_0x145d98['length']&&(_0x3df9c8['markMultiRangeDeletion'](_0x145d98,'tablePaste',{'tablePasteChainId':_0x3d8ec4,'skipNestingCheck':!0x0}),_0x145d98['forEach'](_0x5574b=>_0x5574b['detach']?.()));const _0x3c03b4=_0x3df9c8['markMultiRangeBlockFormat'](_0x2522ea['map'](({element:_0x5b937b})=>_0x5b937b),{'formatGroupId':_0x2b2341()},[],'tablePasteCell',{'tablePasteChainId':_0x3d8ec4});if(_0x3c03b4){const _0x38135c=_0x3c03b4['getMarkers'](),_0x3b30cc=[];for(const {element:_0x8e2d5,attributes:_0x5102b0}of _0x2522ea){if(!_0x5102b0)continue;const _0xfe6d26=_0x2e2ba4['model']['createRangeOn'](_0x8e2d5),_0x1c9860=_0x38135c['find'](_0x382cd8=>_0x382cd8['getRange']()['isEqual'](_0xfe6d26));_0x1c9860&&_0x3b30cc['push']([_0x1c9860['name'],_0x5102b0]);}_0x3b30cc['length']&&_0x3c03b4['setAttribute']('markerAttributes',Object['fromEntries'](_0x3b30cc));}_0x5397f9=null;}));},{'priority':_0x393348['high']+0xa}),_0x2e2ba4['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4b7c21,_0xd374c0)=>{const [_0x47de86,_0x23b94a,,_0x3c0130]=_0xd374c0;if(!_0x5397f9)return;_0x4b7c21['stop']();const _0x1c815a=_0x47de86['cell'],_0x20e1c2=_0x23b94a,_0x3e48d2=ke(_0x1c815a),_0xccc8dd=ke(_0x20e1c2);_0x4b7c21['return']=_0x1c815a;let _0x1b6dda=null,_0x5aed00=null;if(_0xccc8dd||_0x3e48d2){if(_0x3e48d2&&!_0xccc8dd){_0x3c0130['remove'](_0x1c815a['getChild'](0x0));for(const _0x2e3ca6 of Array['from'](_0x20e1c2['getChildren']()))_0x3c0130['insert'](_0x2e3ca6,_0x1c815a,'end');const _0x143ac1=_0x5397f9['rowInsertionIndexes']['includes'](_0x47de86['row']),_0x36eee3=_0x5397f9['columnInsertionIndexes']['includes'](_0x47de86['column']);_0x143ac1||_0x36eee3||(_0x1b6dda=_0x425d25['fromRange'](_0x3c0130['createRangeIn'](_0x1c815a)));}else _0xccc8dd&&!_0x3e48d2&&(_0x5aed00=_0x3c0130['createRangeIn'](_0x1c815a));}else{const _0x5f016c=_0x3c0130['createElement']('tableCellSuggestion'),_0x5bc01e=_0x3c0130['createElement']('tableCellSuggestion');_0x3c0130['wrap'](_0x3c0130['createRangeIn'](_0x1c815a),_0x5bc01e),_0x3c0130['insert'](_0x5f016c,_0x1c815a,0x0);for(const _0x579e18 of Array['from'](_0x20e1c2['getChildren']()))_0x3c0130['insert'](_0x579e18,_0x5f016c,'end');_0x1b6dda=_0x425d25['fromRange'](_0x3c0130['createRangeOn'](_0x5f016c)),_0x5aed00=_0x425d25['fromRange'](_0x3c0130['createRangeOn'](_0x5bc01e));}const _0x130b3e=Array['from'](_0x20e1c2['getAttributes']())['filter'](([_0x11663c])=>Pe['includes'](_0x11663c));_0x5397f9['cells']['push']({'element':_0x1c815a,'attributes':_0x130b3e['length']?Object['fromEntries'](_0x130b3e):null}),_0x1b6dda&&_0x5397f9['insertionRanges']['push'](_0x1b6dda),_0x5aed00&&_0x5397f9['deletionRanges']['push'](_0x5aed00);},{'priority':'high'}),_0x4a37c6['on']('insertColumns',(_0x1c3028,_0x455def)=>{const [_0x5bd26c,_0x4c6633={}]=_0x455def;if(!_0x5397f9)return;const _0x4b90d9=_0x4c6633['at']||0x0,_0x1da5f3=_0x4c6633['columns']||0x1;_0x5397f9['columnInsertionIndexes']=new Array(_0x1da5f3)['fill'](_0x4b90d9)['map']((_0xad9a90,_0x52c658)=>_0xad9a90+_0x52c658);for(const {cell:_0x5603d5}of _0x4a37c6['createTableWalker'](_0x5bd26c,{'startColumn':_0x4b90d9,'endColumn':_0x4b90d9+_0x1da5f3-0x1}))_0x5397f9['columnInsertionRanges']['push'](_0x2e2ba4['model']['createRangeOn'](_0x5603d5));},{'priority':'low'}),_0x4a37c6['on']('insertRows',(_0x3b039b,_0x6d77b0)=>{const [_0x195a5c,_0x4ba01e={}]=_0x6d77b0;if(!_0x5397f9)return;const _0x36d29e=_0x4ba01e['at']||0x0,_0x5658fa=_0x4ba01e['rows']||0x1;_0x5397f9['rowInsertionIndexes']=new Array(_0x5658fa)['fill'](_0x36d29e)['map']((_0x53f608,_0x2e6723)=>_0x53f608+_0x2e6723);for(const {cell:_0x3d270a}of _0x4a37c6['createTableWalker'](_0x195a5c,{'startRow':_0x36d29e,'endRow':_0x36d29e+_0x5658fa-0x1}))_0x5397f9['rowInsertionRanges']['push'](_0x2e2ba4['model']['createRangeOn'](_0x3d270a));},{'priority':'low'}),_0x3df9c8['descriptionFactory']['registerDescriptionCallback'](_0x361aff=>{if(_0x361aff['subType']&&_0x361aff['subType']['startsWith']('tablePaste'))return _0x361aff['previous']?{}:{'type':'insertion','content':o(_0x2e2ba4['locale'],'*Replace\x20table\x20cells*')};});const _0x213e0e=()=>!0x1;for(const _0x3ba476 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3df9c8['_suggestionFactory']['registerCustomCallback']('insertion',_0x3ba476,'join',_0x213e0e),_0x3df9c8['_suggestionFactory']['registerCustomCallback']('deletion',_0x3ba476,'join',_0x213e0e),_0x3df9c8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ba476,'join',_0x213e0e);_0x3df9c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x213e0e),_0x3df9c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x589258,_0x3d13fb,_0xeb7100)=>{const _0x23602c=_0x589258['map'](_0x3f6dbc=>_0x3f6dbc['getContainedElement']())['filter'](_0x489ef8=>_0x489ef8),_0x1830b8=new Map(_0x23602c['map'](_0xd69140=>[_0xd69140,null]));if(_0x5397f9){for(const {element:_0x392cf3,attributes:_0x49b166}of _0x5397f9['cells'])_0x49b166&&_0x1830b8['set'](_0x392cf3,_0x49b166);}else{if(_0xeb7100&&_0xeb7100['markerAttributes'])for(const [_0x11bc01,_0xd41a72]of Object['entries'](_0xeb7100['markerAttributes'])){const _0x328497=_0x2e2ba4['model']['markers']['get'](_0x11bc01),_0xc0993d=_0x328497?_0x328497['getRange']()['getContainedElement']():null;_0xc0993d&&_0x1830b8['set'](_0xc0993d,_0xd41a72);}}_0x2e2ba4['model']['change'](_0x278b80=>{for(const [_0x4751c4,_0x19068e]of _0x1830b8)_0x278b80['setAttributes']({...we,..._0x19068e},_0x4751c4);});});const _0x26fa3e=(_0x918b05,_0x26b22f)=>{_0x3df9c8['_suggestionFactory']['registerCustomCallback'](_0x918b05,'tablePaste',_0x26b22f,(_0x3d4128,_0x46bde4,_0x4d54ce)=>{_0x2e2ba4['model']['change'](_0x4eaae1=>{const _0x2f8d9e=[];for(const _0x399e95 of _0x3d4128){const _0x9c3fc3=_0x399e95['start']['nodeAfter'];_0x9c3fc3['is']('element','tableCellSuggestion')&&_0x2f8d9e['push'](_0x9c3fc3);}_0x3df9c8['_suggestionFactory']['getSuggestionCallback'](_0x918b05,null,_0x26b22f)(_0x3d4128,_0x46bde4,_0x4d54ce);for(const _0x4a736e of _0x2f8d9e)'$graveyard'!=_0x4a736e['root']['rootName']&&_0x4eaae1['unwrap'](_0x4a736e);});});};_0x26fa3e('insertion','accept'),_0x26fa3e('insertion','discard'),_0x26fa3e('deletion','accept'),_0x26fa3e('deletion','discard'),_0x3df9c8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x20b7e8=>{const _0x13535d=_0x20b7e8['map'](_0x2acc4b=>_0x2acc4b['getContainedElement']()),_0x2d072d=_0x13535d[0x0]['findAncestor']('table'),{minRow:_0x136a6d,maxRow:_0x1bb188}=_0xde404f['_getCoordsForCells'](_0x13535d);_0x4a37c6['removeRows'](_0x2d072d,{'at':_0x136a6d,'rows':_0x1bb188-_0x136a6d+0x1});}),_0x3df9c8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xdf2664=>{const _0x533cac=_0xdf2664['map'](_0x324cc8=>_0x324cc8['getContainedElement']()),_0x3bfaeb=_0x533cac[0x0]['findAncestor']('table'),{minColumn:_0xe5e6e2,maxColumn:_0x4b7e3a}=_0xde404f['_getCoordsForCells'](_0x533cac);_0x4a37c6['removeColumns'](_0x3bfaeb,{'at':_0xe5e6e2,'columns':_0x4b7e3a-_0xe5e6e2+0x1});});const _0x518c78=(_0x2b51ed,_0x39521b)=>{if(!_0x39521b['subType']||!_0x39521b['subType']['startsWith']('tablePaste'))return;const _0x474fc7=_0x39521b['attributes']['tablePasteChainId'],_0x22908d=_0x3df9c8['getSuggestions']()['filter'](_0x5b24ab=>_0x5b24ab['isInContent']&&_0x5b24ab['attributes']&&_0x5b24ab['attributes']['tablePasteChainId']==_0x474fc7);_0x22908d['length']&&_0x39521b['getAllAdjacentSuggestions']()['length']!=_0x22908d['length']&&_0x22908d['reduce']((_0x2b6592,_0x1a5eca)=>(_0x2b6592['next']=_0x1a5eca,_0x1a5eca['previous']=_0x2b6592,_0x1a5eca));};function _0x1040a1(_0x486445,_0xee2d0c=!0x0){const {id:_0x493ad0,authorId:_0x42ef7c}=_0x3df9c8['_splitMarkerName'](_0x486445['markerName']),_0x1a4d70=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x404c62=_0x3df9c8['activeMarkers']['includes'](_0x486445['markerName']);return _0x404c62&&_0x1a4d70['push']('ck-suggestion-marker--active'),{'classes':_0x1a4d70,'attributes':{'data-suggestion':_0x493ad0,'data-author-id':_0x42ef7c},'priority':_0x404c62&&_0xee2d0c?0xbc2:0xbb8};}_0x3df9c8['on']('suggestionLoaded',_0x518c78,{'priority':'high'}),_0x3df9c8['on']('suggestionUnloaded',_0x518c78,{'priority':'high'}),_0x2e2ba4['model']['document']['registerPostFixer'](()=>{let _0x3a6210=!0x1;const _0x40e8f4=Array['from'](_0x2e2ba4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e5ec2,data:_0x9e3da4}of _0x40e8f4){const {group:_0x5df6bf,type:_0x43019e,id:_0xbcf2a7}=_0x3df9c8['_splitMarkerName'](_0x5e5ec2);if('suggestion'!=_0x5df6bf||'deletion'!=_0x43019e||_0x9e3da4['oldRange'])continue;if(!_0x3df9c8['hasSuggestion'](_0xbcf2a7))continue;const _0xed1c76=_0x3df9c8['getSuggestion'](_0xbcf2a7)['getRanges'](),_0x41cd60=_0x2e2ba4['plugins']['get']('Users')['me'];for(const _0x1e7f6a of _0x3df9c8['getSuggestions']()){if(!_0x1e7f6a['isInContent']||_0x1e7f6a['author']!=_0x41cd60)continue;if('formatBlock'!=_0x1e7f6a['type']||'tablePasteCell'!=_0x1e7f6a['subType'])continue;if(_0x1e7f6a['getRanges']()['every'](_0x3db72f=>_0xed1c76['some'](_0x23154e=>_0x23154e['containsRange'](_0x3db72f,!0x0)))){for(const _0x50bca6 of _0x1e7f6a['getAllAdjacentSuggestions']())_0x50bca6['isInContent']&&(_0x50bca6['discard'](),_0x3a6210=!0x0);}}}return _0x3a6210;}),_0x2e2ba4['model']['document']['registerPostFixer'](_0x481a41=>{const _0x202fa8=_0x2e2ba4['commands']['get']('redo');if(!_0x202fa8||!_0x202fa8['_createdBatches']['has'](_0x481a41['batch']))return!0x1;let _0x2423ef=!0x1;const _0x1f91d7=_0x2e2ba4['plugins']['get']('Users')['me'],_0x261bc3=_0x2e2ba4['model']['document']['differ']['getChanges'](),_0x51db3c=Array['from'](_0x2e2ba4['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x508e93,data:_0x519c12})=>{const {group:_0x3f63a2,subType:_0x56a894,authorId:_0x533db7}=_0x3df9c8['_splitMarkerName'](_0x508e93);return'suggestion'==_0x3f63a2&&'tablePaste'==_0x56a894&&_0x533db7==_0x1f91d7['id']&&!_0x519c12['oldRange'];});for(const _0x300cbc of _0x261bc3){if('insert'!=_0x300cbc['type']||'tableCellSuggestion'!=_0x300cbc['name']||0x1!=_0x300cbc['length'])continue;const _0x1c9742=_0x481a41['createRange'](_0x300cbc['position'],_0x300cbc['position']['getShiftedBy'](0x1));if(!_0x51db3c['find'](({data:_0x1566cc})=>_0x1566cc['newRange']['isEqual'](_0x1c9742))){for(const {name:_0xbfc22,data:_0x9b04b0}of _0x51db3c)if(_0x1c9742['containsRange'](_0x9b04b0['newRange'])){_0x481a41['updateMarker'](_0xbfc22,{'range':_0x1c9742}),_0x2423ef=!0x0;break;}}}return _0x2423ef;}),_0x2e2ba4['model']['document']['registerPostFixer'](_0x11f83a=>{let _0x4138af=!0x1;const _0x1e960c=_0x2e2ba4['plugins']['get']('Users')['me'],_0x1cdd0e=_0x3df9c8['getSuggestions']()['filter'](_0x3b497c=>_0x3b497c['isInContent']&&_0x3b497c['author']==_0x1e960c),_0x44bae6=new Set(),_0x55bfc6=new Set();for(const _0x5139c5 of _0x1cdd0e)if('tablePaste'==_0x5139c5['subType'])for(const _0x5459b2 of _0x5139c5['getMarkers']()){const _0x4f1b11=_0x5459b2['getRange']()['getContainedElement']();if(_0x4f1b11){if(_0x4f1b11['is']('element','tableCellSuggestion')&&ke(_0x4f1b11)){_0x5139c5['removeMarker'](_0x5459b2['name']),_0x44bae6['add'](_0x4f1b11),_0x4138af=!0x0;const _0x35976d=_0x4f1b11['nextSibling'],_0x4417d7=_0x4f1b11['previousSibling'],_0x50f701=_0x35976d&&_0x35976d['is']('element','tableCellSuggestion'),_0x26ce06=_0x4417d7&&_0x4417d7['is']('element','tableCellSuggestion');_0x50f701&&!_0x44bae6['has'](_0x35976d)&&_0x55bfc6['add'](_0x35976d),_0x26ce06&&!_0x44bae6['has'](_0x4417d7)&&_0x55bfc6['add'](_0x4417d7);}else _0x4f1b11['is']('element','paragraph')&&_0x4f1b11['isEmpty']&&(_0x5139c5['removeMarker'](_0x5459b2['name']),_0x4138af=!0x0);}}else{if('tablePasteCell'==_0x5139c5['subType']){if(!_0x5139c5['attributes']||!_0x5139c5['attributes']['tablePasteChainId'])continue;const _0x217e76=_0x5139c5['attributes']['markerAttributes'];if(_0x217e76&&Object['keys'](_0x217e76)['length'])continue;const _0x632bc5=_0x5139c5['attributes']['tablePasteChainId'];let _0x1ca9fe=!0x0,_0x39b908=!0x0;for(const _0x346ce3 of _0x1cdd0e)if(_0x346ce3['subType']&&_0x346ce3['subType']['startsWith']('tablePaste')){if(!_0x346ce3['attributes']['tablePasteChainId']){_0x39b908=!0x1;break;}if(_0x346ce3['id']!=_0x5139c5['id']&&_0x346ce3['attributes']['tablePasteChainId']==_0x632bc5){_0x1ca9fe=!0x1;break;}}_0x39b908&&_0x1ca9fe&&(_0x5139c5['removeMarkers'](),_0x4138af=!0x0);}}for(const _0x4ca23c of _0x44bae6)_0x11f83a['remove'](_0x4ca23c);for(const _0x4e4474 of _0x55bfc6)_0x11f83a['unwrap'](_0x4e4474);return _0x4138af;}),_0x2e2ba4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x68ea62=>_0x1040a1(_0x68ea62),'converterPriority':'high'}),_0x2e2ba4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4f3d2d,_0x38277f)=>_0x38277f['options']['showSuggestionHighlights']?_0x1040a1(_0x4f3d2d,!0x1):null,'converterPriority':'high'});const _0x2cdf75=_0x2e2ba4['editing']['view'];this['listenTo'](_0x2cdf75['document'],'clipboardOutput',(_0x5cb0a3,_0x3627cc)=>{const _0x589828=[];for(const _0x20f0fc of _0x2cdf75['createRangeIn'](_0x3627cc['content'])['getItems']())_0x20f0fc['is']('element','suggestion-td')&&_0x589828['push'](_0x20f0fc);_0x2cdf75['change'](_0x2c02ad=>{for(const _0x25f077 of _0x589828)_0x2c02ad['move'](_0x2c02ad['createRangeIn'](_0x25f077),_0x2c02ad['createPositionBefore'](_0x25f077)),_0x2c02ad['remove'](_0x25f077);});});}}function ke(_0x5e9652){if(_0x5e9652['isEmpty'])return!0x0;const _0x4c7073=_0x5e9652['getChild'](0x0);return _0x4c7073['is']('element','paragraph')&&_0x4c7073['isEmpty'];}function Re(_0x37ab1c,_0xb96b38={},_0x3d4db6){for(const {isAnchor:_0x2c3e20,cellHeight:_0x4860f9,cellWidth:_0x2edf70}of _0x3d4db6['createTableWalker'](_0x37ab1c,{'includeAllSlots':!0x0,..._0xb96b38}))if(!_0x2c3e20||0x1!=_0x4860f9||0x1!=_0x2edf70)return!0x1;return!0x0;}class Nt extends _0xd0fe4f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2767da=this['editor']['plugins']['get']('TrackChangesEditing');_0x2767da['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2767da['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2767da['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2767da['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2767da['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2767da['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3218ec,_0x151fbf){const _0x43afed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b30a6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x59d1fb=_0x151fbf['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4fc456=_0x2b30a6['getColumnGroupElement'](_0x59d1fb);let _0x24a387=_0x4fc456?_0x2b30a6['getTableColumnsWidths'](_0x4fc456):null,_0x38c52b=_0x59d1fb['getAttribute']('tableWidth')||null;const _0x296055=_0x151fbf['tableWidth']||_0x38c52b,_0x4382cf=_0x151fbf['columnWidths']||_0x24a387,_0x52a1cd=this['editor']['plugins']['get']('Users')['me'];for(const _0x52da97 of _0x43afed['getSuggestions']()){const _0x402271=_0x52da97['getContainedElement']();if('resizeTable'===_0x52da97['subType']&&_0x402271===_0x59d1fb){_0x52da97['author']!==_0x52a1cd&&_0x52da97['discard']();const _0x3905cd=_0x52da97['data']['commandParams'];_0x38c52b=_0x3905cd[0x0]['tableWidth'],_0x24a387=_0x3905cd[0x0]['columnWidths'];break;}}_0x3218ec({'table':_0x59d1fb,'tableWidth':_0x296055,'columnWidths':_0x4382cf}),_0x43afed['markBlockFormat'](_0x59d1fb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x38c52b,'columnWidths':_0x24a387}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x58ff30){if('formatBlock'!=_0x58ff30['type']&&'formatInline'!=_0x58ff30['type'])return;const {data:_0xa7651e}=_0x58ff30;if(_0xa7651e&&'resizeTable'===_0xa7651e['formatGroupId']){const _0x1cbab1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1cbab1)};}}}class Dt extends _0xd0fe4f{['afterInit'](){const _0x34ee3d=this['editor'];_0x34ee3d['plugins']['has']('Template')&&_0x34ee3d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xd0fe4f{['afterInit'](){const _0x3e47ce=this['editor'];if(!_0x3e47ce['commands']['get']('insertTableOfContents'))return;_0x3e47ce['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x59781f=_0x3e47ce['plugins']['get']('TrackChangesEditing'),_0x1e4d55=_0x3e47ce['locale'];_0x59781f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3f88a1=>o(_0x1e4d55,'ELEMENT_TABLE_OF_CONTENTS',_0x3f88a1));}}class $t extends _0xd0fe4f{['afterInit'](){const _0x1478af=this['editor'];if(!_0x1478af['plugins']['has']('Title'))return;const _0x243d3d=_0x1478af['plugins']['get']('TrackChangesEditing');_0x243d3d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1478af['locale'],'ELEMENT_TITLE')),_0x1478af['model']['document']['registerPostFixer'](_0x43a651=>{let _0x4b5174=!0x1;const _0x1c3046=Array['from'](_0x1478af['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4573b1,data:_0x14da7d}of _0x1c3046){const {group:_0x55605b}=_0x243d3d['_splitMarkerName'](_0x4573b1);if('suggestion'!==_0x55605b||!_0x14da7d['newRange'])continue;const _0x31b4df=_0x14da7d['newRange'],_0x222586=_0x31b4df['end']['nodeBefore'];if(!_0x222586||!_0x222586['is']('element','title-content'))continue;if(!_0x31b4df['start']['isTouching'](_0x31b4df['end']))continue;const _0x47548a=_0x1478af['model']['schema']['getNearestSelectionRange'](_0x31b4df['end'],'forward');if(_0x47548a&&_0x47548a['isCollapsed']){const _0x40ada2=_0x43a651['createRange'](_0x31b4df['start'],_0x47548a['start']);_0x40ada2['isEqual'](_0x31b4df)||(_0x43a651['updateMarker'](_0x4573b1,{'range':_0x40ada2}),_0x4b5174=!0x0);}_0x4b5174||(_0x43a651['removeMarker'](_0x4573b1),_0x4b5174=!0x0);}return _0x4b5174;});}}class Bt extends _0xd0fe4f{['afterInit'](){const _0x100a67=this['editor'],_0x5c7045=_0x100a67['plugins']['get']('TrackChangesEditing');_0x100a67['plugins']['has']('UndoEditing')&&(_0x5c7045['enableCommand']('undo'),_0x5c7045['enableCommand']('redo'));}}class xt extends _0xd0fe4f{static get['requires'](){return[It];}['afterInit'](){const _0x5558fb=this['editor'];if(!_0x5558fb['plugins']['has']('TableCaptionEditing'))return;_0x5558fb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0xd0fe4f{['tableProperties'];['tableCellProperties'];constructor(_0x5e895a){super(_0x5e895a),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';}['afterInit'](){const _0xac6259=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x526f5a of this['tableProperties'])_0xac6259['enableCommand'](_0x526f5a,(_0x407cb6,_0x2ce78e)=>{const _0x2977c8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x526f5a,[_0x2977c8],this['tableProperties'],'tableProperties',_0x407cb6,_0x2ce78e);});_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xac6259['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x51acaa,_0x243872)=>this['handleDiscardAction'](this['tableProperties'],_0x51acaa,_0x243872)),_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x40b42a of this['tableCellProperties'])_0xac6259['enableCommand'](_0x40b42a,(_0x4816b9,_0x9f725d)=>{const _0x2ab497=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x40b42a,_0x2ab497,this['tableCellProperties'],'tableCellProperties',_0x4816b9,_0x9f725d);});_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xac6259['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x50e4b1,_0x3afb93)=>this['handleDiscardAction'](this['tableCellProperties'],_0x50e4b1,_0x3afb93)),_0xac6259['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xac6259['descriptionFactory']['registerDescriptionCallback'](_0x2d72d2=>this['handleSuggestionDescription'](_0x2d72d2));}['_handlePropertyChange'](_0x3f58e7,_0x227901,_0x5474c2,_0xa6b532,_0x5c7cff,_0x258ab8){const _0x20f010=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x258ab8['batch'],()=>{for(const _0xa49e47 of _0x227901){if(this['_getSuggestion'](_0xa49e47,_0xa6b532))_0x5c7cff(_0x258ab8);else{const _0x101a2f={};for(const _0xbf63f4 of _0x5474c2){const _0x4240f7=_0xa49e47['getAttribute'](_0xbf63f4);void 0x0!==_0x4240f7&&(_0x101a2f[_0xbf63f4]=_0x4240f7);}_0x5c7cff(_0x258ab8),_0x20f010['markBlockFormat'](_0xa49e47,{'commandParams':[_0x101a2f]},[],_0xa6b532);}}});}['handleDiscardAction'](_0x1c5d09,_0xbbbd3e,_0x37a362){const _0x2f80ae=_0xbbbd3e[0x0]['start']['nodeAfter'],_0x1ce502=_0x37a362['commandParams'][0x0];this['editor']['model']['change'](_0x473197=>{for(const _0x31d570 of _0x1c5d09)void 0x0!==_0x1ce502[_0x31d570]?_0x473197['setAttribute'](_0x31d570,_0x1ce502[_0x31d570],_0x2f80ae):_0x473197['removeAttribute'](_0x31d570,_0x2f80ae);});}['handleSuggestionDescription'](_0x3c7eb1){if(_0x3c7eb1['data'])switch(_0x3c7eb1['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'](_0x2cec27,_0x1ebcdc){const _0x526307=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x139448 of _0x526307['getSuggestions']({'skipNotAttached':!0x0})){const _0x1d3143=_0x139448['getContainedElement']();if(_0x139448['subType']===_0x1ebcdc&&_0x1d3143===_0x2cec27)return _0x139448;}return null;}}const m='$elementName';class p extends _0xd0fe4f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2a2d95,_0x43e262,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x163934){function _0x574c8f(_0x3520ea){return _0x3520ea['map'](_0x34aa1c=>String['fromCharCode'](_0x34aa1c))['join']('');}super(_0x163934),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xe66889,_0x2a7971,_0x116c0c,_0x31399e)=>{this['_model']['change'](()=>{for(const _0x3ee585 of[..._0x31399e,..._0x116c0c])this['_model']['markers']['has'](_0x3ee585)&&_0x163934['editing']['reconvertMarker'](_0x3ee585);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x163934['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(),_0x163934['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x163934['config']['get']('trackChanges.trackFormatChanges'),_0x163934['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x163934['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x163934,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x574c8f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x574c8f([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x30]);}['init'](){const _0x182e5f=this['editor'],_0x395a7a=(_0x59ad43,_0x403ac3)=>{if('attribute'!=_0x59ad43)return'ck-suggestion-marker-'+_0x59ad43;const _0x9120a8=_0x403ac3['split']('|')[0x0];return this['_isBlockAttribute'](_0x9120a8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x182e5f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x263452=>{const {id:_0x3f15e3,authorId:_0xc8a62e,type:_0x550061,subType:_0x124540}=this['_splitMarkerName'](_0x263452['markerName']),_0x17a7e6=['ck-suggestion-marker',_0x395a7a(_0x550061,_0x124540)];let _0xfa74f8=0xbb8;return this['activeMarkers']['includes'](_0x263452['markerName'])&&(_0x17a7e6['push']('ck-suggestion-marker--active'),_0xfa74f8=0xbc2),'deletion'==_0x550061&&(_0xfa74f8+=0x5),{'classes':_0x17a7e6,'attributes':{'data-suggestion':_0x3f15e3,'data-author-id':_0xc8a62e},'priority':_0xfa74f8};}}),_0x182e5f['conversion']['for']('dataDowncast')['add'](_0x235c81=>{_0x235c81['on']('addMarker:suggestion',(_0x1e4687,_0x20efd0,_0x47856d)=>{if(!_0x47856d['options']['showSuggestionHighlights'])return;const _0x50a947=_0x20efd0['item'];if(!_0x50a947)return;const _0x5da6a1=_0x47856d['mapper']['toViewElement'](_0x50a947);_0x182e5f['model']['schema']['isObject'](_0x50a947)&&_0x5da6a1&&!_0x5da6a1['getCustomProperty']('widget')&&_0x5da6a1['is']('containerElement')&&_0x1846c8(_0x5da6a1,_0x47856d['writer']);},{'priority':'high'});}),_0x182e5f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x16b9a8,_0x1b9ff1)=>{if(!_0x1b9ff1['options']['showSuggestionHighlights'])return null;const {type:_0x24e647,subType:_0x392a90}=this['_splitMarkerName'](_0x16b9a8['markerName']);return{'classes':['ck-suggestion-marker',_0x395a7a(_0x24e647,_0x392a90)],'priority':0xbb8};}});const _0x4376e3=({showActiveMarkers:_0xa22e00=!0x0,isAttributeSuggestion:_0x5d594e=!0x1}={})=>(_0x60eba3,_0x54bf02,_0x2cbb56)=>{if(!_0x54bf02['item'])return;const {id:_0x4be22b,authorId:_0x20db83}=this['_splitMarkerName'](_0x54bf02['markerName']);if(_0x5d594e){const _0x2e4f6b=this['_suggestions']['get'](_0x4be22b),_0x3b47d9=this['_getAttributeKey'](_0x2e4f6b);if(!this['_isBlockAttribute'](_0x3b47d9))return;}if(_0x54bf02['item']['is']('selection'))return void _0x2cbb56['consumable']['consume'](_0x54bf02['item'],_0x60eba3['name']);const _0x4f8e50=_0x2cbb56['mapper']['toViewElement'](_0x54bf02['item']);if(_0x54bf02['item']['is']('element')&&_0x182e5f['model']['schema']['isBlock'](_0x54bf02['item'])&&!_0x4f8e50['getCustomProperty']('addHighlight')){_0x2cbb56['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f8e50),_0x2cbb56['writer']['setAttribute']('data-suggestion',_0x4be22b,_0x4f8e50),_0x2cbb56['writer']['setAttribute']('data-author-id',_0x20db83,_0x4f8e50),_0x2cbb56['mapper']['bindElementToMarker'](_0x4f8e50,_0x54bf02['markerName']),_0xa22e00&&(this['activeMarkers']['includes'](_0x54bf02['markerName'])?_0x2cbb56['writer']['addClass']('ck-suggestion-marker--active',_0x4f8e50):_0x2cbb56['writer']['removeClass']('ck-suggestion-marker--active',_0x4f8e50));for(const _0xb5057f of _0x182e5f['model']['createRangeIn'](_0x54bf02['item'])['getItems']())_0x2cbb56['consumable']['consume'](_0xb5057f,_0x60eba3['name']);_0x2cbb56['consumable']['consume'](_0x54bf02['item'],_0x60eba3['name']);}};_0x182e5f['conversion']['for']('dataDowncast')['add'](_0x1c2ae7=>{_0x1c2ae7['on']('addMarker:suggestion:formatBlock',(_0x23de93,_0x49b18c,_0x36b495)=>{_0x36b495['options']['showSuggestionHighlights']&&_0x4376e3({'showActiveMarkers':!0x1})(_0x23de93,_0x49b18c,_0x36b495);},{'priority':'highest'});}),_0x182e5f['conversion']['for']('dataDowncast')['add'](_0x5f6282=>{_0x5f6282['on']('addMarker:suggestion:attribute',(_0x5d34ba,_0xb20cef,_0x5bbb3c)=>{_0x5bbb3c['options']['showSuggestionHighlights']&&_0x4376e3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5d34ba,_0xb20cef,_0x5bbb3c);},{'priority':'highest'});}),_0x182e5f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x17aeca,_0x4b8756)=>_0x4b8756['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x17aeca['substr'](0xb)}}),_0x182e5f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3c0b0,{writer:_0x3c2f9c})=>{let _0x277bba='suggestion:'+_0x3c0b0['getAttribute']('suggestion-type')+':'+_0x3c0b0['getAttribute']('id');return _0x3c0b0['getAttribute']('marker-count')&&(_0x277bba+=':'+_0x3c0b0['getAttribute']('marker-count')),_0x3c2f9c['createElement']('$marker',{'data-name':_0x277bba});}}),_0x182e5f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x182e5f['conversion']['for']('editingDowncast')['add'](_0x35e522=>{_0x35e522['on']('addMarker:suggestion:formatBlock',_0x4376e3(),{'priority':'high'});}),_0x182e5f['conversion']['for']('editingDowncast')['add'](_0x28cc6c=>{_0x28cc6c['on']('addMarker:suggestion:attribute',_0x4376e3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x182e5f['conversion']['for']('editingDowncast')['add'](_0x9b1c68=>{_0x9b1c68['on']('removeMarker:suggestion:formatBlock',(_0x100360,_0x534d9d,_0x15cd11)=>{const _0x40b595=_0x15cd11['mapper']['markerNameToElements'](_0x534d9d['markerName']);if(_0x40b595){for(const _0x4bd173 of _0x40b595)_0x4bd173['getCustomProperty']('addHighlight')||(_0x15cd11['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4bd173),_0x15cd11['writer']['removeAttribute']('data-suggestion',_0x4bd173),_0x15cd11['writer']['removeAttribute']('data-author-id',_0x4bd173),_0x15cd11['mapper']['unbindElementFromMarkerName'](_0x4bd173,_0x534d9d['markerName']));}},{'priority':'high'});}),_0x182e5f['conversion']['for']('editingDowncast')['add'](_0x4ecf9f=>{_0x4ecf9f['on']('removeMarker:suggestion:attribute',(_0x4e54a1,_0x2c2010,_0x5d35a7)=>{const _0x3f50f5=_0x5d35a7['mapper']['markerNameToElements'](_0x2c2010['markerName']);if(!_0x3f50f5)return;const {id:_0x429f9e}=this['_splitMarkerName'](_0x2c2010['markerName']),_0x24e3d5=this['_suggestions']['get'](_0x429f9e),_0x547925=this['_getAttributeKey'](_0x24e3d5);if(this['_isBlockAttribute'](_0x547925)){for(const _0x2fde5c of _0x3f50f5)_0x2fde5c['getCustomProperty']('addHighlight')||(_0x5d35a7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2fde5c),_0x5d35a7['writer']['removeAttribute']('data-suggestion',_0x2fde5c),_0x5d35a7['writer']['removeAttribute']('data-author-id',_0x2fde5c),_0x5d35a7['mapper']['unbindElementFromMarkerName'](_0x2fde5c,_0x2c2010['markerName']));}},{'priority':'high'});}),_0x182e5f['model']['document']['registerPostFixer'](_0x102ebb=>{let _0x1ea563=!0x1;const _0x28a908=Array['from'](_0x182e5f['model']['document']['differ']['getChangedMarkers']()),_0x223ade=new Set();for(const {name:_0x1f4d05,data:_0x27836f}of _0x28a908){const {group:_0x12d734,type:_0x5a6de2,subType:_0x6c8e41,id:_0x1a3a4b}=this['_splitMarkerName'](_0x1f4d05);if('suggestion'!==_0x12d734)continue;const _0x5348ec=this['_suggestions']['get'](_0x1a3a4b);if(null!=_0x27836f['newRange']){'formatInline'==_0x5a6de2&&(_0x1ea563=_0x1ea563||Ut(_0x27836f['newRange'],_0x1f4d05,_0x102ebb,_0x182e5f['model']['schema']));const _0x48de5f='attribute'==_0x5a6de2&&this['_isBlockAttribute'](_0x6c8e41['split']('|')[0x0]);if(_0x27836f['newRange']['isCollapsed']||'$graveyard'==_0x27836f['newRange']['root']['rootName']||'formatBlock'==_0x5a6de2&&!Ft(_0x27836f['newRange'])||_0x48de5f&&!Ft(_0x27836f['newRange'])||'deletion'==_0x5a6de2&&!(!Vt(_0x451146=_0x27836f['newRange'])&&!function(_0x431477){return _0x431477['start']['parent']==_0x431477['end']['nodeBefore']&&_0x431477['start']['isAtEnd'];}(_0x451146)))_0x102ebb['removeMarker'](_0x1f4d05),_0x1ea563=!0x0;else{if(!_0x5348ec||!_0x5348ec['isInContent'])continue;if(_0x27836f['newRange']&&_0x27836f['oldRange']&&_0x27836f['newRange']['isEqual'](_0x27836f['oldRange']))continue;_0x223ade['add'](_0x5348ec);}}}var _0x451146;return _0x223ade['size']>0x0&&(_0x1ea563=!!this['_joinWithAdjacentSuggestions'](_0x223ade)||_0x1ea563),_0x1ea563;}),_0x182e5f['model']['document']['registerPostFixer'](_0x100c2f=>{let _0xd5677f=!0x1;for(const _0x24c26e of _0x182e5f['model']['document']['differ']['getChanges']())if('insert'==_0x24c26e['type'])for(const _0x4c1222 of this['_suggestions']['values']()){if(_0x4c1222['isMultiRange']||!_0x4c1222['isInContent'])continue;const _0x15831f='formatBlock'==_0x4c1222['type'],_0x248a6c=this['_getAttributeKey'](_0x4c1222),_0x452f6c=_0x248a6c&&this['_isBlockAttribute'](_0x248a6c);if(!_0x15831f&&!_0x452f6c)continue;const _0x15e1cd=_0x4c1222['getFirstRange']();if(_0x15e1cd['start']['parent']!=_0x15e1cd['end']['parent']&&!_0x15e1cd['end']['isAtEnd']){const _0x1842af=_0x182e5f['model']['createPositionAt'](_0x15e1cd['start']['nodeAfter'],'end'),_0x193ec0=_0x182e5f['model']['createRange'](_0x15e1cd['start'],_0x1842af);_0x100c2f['updateMarker'](_0x4c1222['getFirstMarker'](),{'range':_0x193ec0}),_0xd5677f=!0x0;}}return _0xd5677f;}),_0x182e5f['model']['document']['registerPostFixer'](_0x39e37e=>this['_processAttributeChanges'](_0x39e37e)),_0x182e5f['model']['document']['registerPostFixer'](_0xbba8df=>!_0xbba8df['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xbba8df)),_0x182e5f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x182e5f['model']['document']['on']('change:data',(_0x58e104,_0x53a7d6)=>{if(!_0x53a7d6['isLocal']||_0x53a7d6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2c5b7f=_0x182e5f['model']['document']['differ']['getChanges']();if(0x0==_0x2c5b7f['length'])return;const _0x170309=[],_0x45939f=_0x2c5b7f['filter'](_0x16327e=>'attribute'==_0x16327e['type']),_0x339820=_0x2c5b7f['filter'](_0x2e89d2=>'insert'==_0x2e89d2['type']&&'$text'!=_0x2e89d2['name']);for(const _0x2b2e84 of _0x45939f)this['_isRegisteredAttribute'](_0x2b2e84['attributeKey'])&&_0x170309['push']({'key':_0x2b2e84['attributeKey'],'newValue':_0x2b2e84['attributeNewValue'],'oldValue':_0x2b2e84['attributeOldValue'],'range':Pt(_0x2b2e84['range'],_0x182e5f['model'])});for(const _0x494796 of _0x339820){if('rename'!=_0x494796['action']&&'refresh'!=_0x494796['action'])continue;const _0x190b51=Lt(_0x494796['position']['nodeAfter'],_0x182e5f['model']),_0x2bf302=_0x494796['before'];'rename'==_0x494796['action']&&_0x170309['push']({'key':m,'newValue':_0x494796['name'],'oldValue':_0x2bf302['name'],'range':_0x190b51});for(const [_0x37f180,_0x4b72d8]of _0x2bf302['attributes']){if(!this['_isRegisteredAttribute'](_0x37f180))continue;const _0x337d51=_0x494796['attributes']['get'](_0x37f180);_0x4b72d8!==_0x337d51&&_0x170309['push']({'key':_0x37f180,'newValue':_0x337d51,'oldValue':_0x4b72d8,'range':_0x190b51});}for(const [_0x446bd2,_0xc9d7fc]of _0x494796['attributes'])this['_isRegisteredAttribute'](_0x446bd2)&&(_0x2bf302['attributes']['has'](_0x446bd2)||_0x170309['push']({'key':_0x446bd2,'newValue':_0xc9d7fc,'oldValue':null,'range':_0x190b51}));}0x0!=_0x170309['length']&&_0x182e5f['model']['enqueueChange'](_0x53a7d6,_0x269001=>{const _0x152571=_0x2b2341();for(const {range:_0x27366e,key:_0x46a146,oldValue:_0x591683,newValue:_0x476559}of _0x170309)this['markAttributeChange'](_0x27366e,_0x46a146,_0x591683,_0x476559,{'groupId':_0x152571});this['_reduceExistingSuggestions'](_0x269001,_0x170309);});},{'priority':'lowest'}),_0x182e5f['model']['markers']['on']('update:suggestion',(_0x326dd6,_0x45fb52,_0x4673a2)=>{if(null==_0x4673a2){const {id:_0x2f10ce}=this['_splitMarkerName'](_0x45fb52['name']),_0x56c65e=this['_suggestions']['get'](_0x2f10ce);_0x56c65e&&_0x56c65e['addMarkerName'](_0x45fb52['name']);}}),_0x182e5f['model']['document']['on']('change:data',()=>{const _0x4ec54e=Array['from'](_0x182e5f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x174b26=>'suggestion'===this['_splitMarkerName'](_0x174b26['name'])['group']);if(0x0===_0x4ec54e['length'])return;_0x4ec54e['sort']((_0xaa558b,_0x273283)=>{const _0x90607c=_0xaa558b['data']['oldRange'],_0x2fbbfa=_0x273283['data']['oldRange'];return null===_0x90607c&&null===_0x2fbbfa?0x0:null===_0x90607c&&null!==_0x2fbbfa?-0x1:null!==_0x90607c&&null===_0x2fbbfa?0x1:_0x90607c['start']['isBefore'](_0x2fbbfa['start'])?-0x1:0x1;});const _0x40ca0c=new Set(),_0x3caf41=new Set();for(const {name:_0x4d8c77,data:_0x3d2437}of _0x4ec54e){const {id:_0x4afe9d}=this['_splitMarkerName'](_0x4d8c77);if(null===_0x3d2437['oldRange']){const _0x3c52e0=this['_handleNewSuggestionMarker'](_0x4d8c77);_0x3caf41['add'](_0x3c52e0);}else{const _0x30ec08=this['_suggestions']['get'](_0x4afe9d);null!==_0x3d2437['newRange']||_0x30ec08['isInContent']?(_0x40ca0c['add'](_0x30ec08['head']),_0x3caf41['add'](_0x30ec08)):this['_removeSuggestion'](_0x30ec08);}}_0x3caf41['size']>0x0&&this['_refreshSuggestionsChain'](_0x3caf41);for(const _0x549d5e of _0x40ca0c)this['fire']('suggestionChanged',_0x549d5e);}),_0x182e5f['model']['on']('applyOperation',(_0x5e4890,_0xec4617)=>{const _0x2254a9=_0xec4617[0x0];if(!this['_suggestions']['size'])return;if(!_0x2254a9['isDocumentOperation'])return;if(_0x2254a9['batch']['isUndo']||!_0x2254a9['batch']['isLocal'])return;let _0x5b6eca,_0x304ced;switch(_0x2254a9['type']){case'insert':_0x5b6eca=_0x182e5f['model']['createPositionAt'](_0x2254a9['position']),_0x304ced=_0x5b6eca['getShiftedBy'](_0x2254a9['howMany']);break;case'split':_0x5b6eca=_0x182e5f['model']['createPositionAt'](_0x2254a9['splitPosition']),_0x304ced=_0x182e5f['model']['createPositionAt'](_0x2254a9['moveTargetPosition']);break;case'move':_0x5b6eca=_0x182e5f['model']['createPositionAt'](_0x2254a9['targetPosition']),_0x304ced=_0x5b6eca['getShiftedBy'](_0x2254a9['howMany']);break;default:return;}const _0x50cc56=_0x182e5f['model']['createRange'](_0x5b6eca,_0x304ced);_0x182e5f['model']['change'](()=>{for(const {suggestion:_0x50ba4b,meta:_0x8104a}of this['_findSuggestions'](_0x50cc56)){if(_0x50ba4b['isMultiRange'])continue;if('formatInline'==_0x50ba4b['type'])continue;const _0x1cab07=this['_getAttributeKey'](_0x50ba4b);if(_0x1cab07&&this['_isBlockAttribute'](_0x1cab07)&&'split'!=_0x2254a9['type'])continue;const _0x5d1304=_0x50ba4b['data']&&_0x50ba4b['data']['multipleBlocks'];('formatBlock'!=_0x50ba4b['type']||'split'==_0x2254a9['type']&&!_0x5d1304)&&(_0x8104a['containsRangeInObject']||'insertion'==_0x50ba4b['type']&&_0x8104a['isOwn']||_0x50ba4b['getFirstRange']()['containsRange'](_0x50cc56)&&this['_breakSuggestionMarker'](_0x50ba4b,_0x5b6eca,_0x304ced));}});},{'priority':'lowest'}),_0x182e5f['model']['on']('deleteContent',(_0xcc2e18,_0x553efa)=>{const _0x55995d=_0x553efa[0x0],_0x49545f=_0x553efa[0x1];if(_0x49545f&&_0x49545f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x55995d['isCollapsed'])return;const _0x57c5dd=_0x182e5f['model']['schema'],{start:_0x990ba,end:_0x2566f1}=_0x55995d['getFirstRange'](),_0x24b7d7=_0x990ba['nodeAfter']&&_0x57c5dd['isLimit'](_0x990ba['nodeAfter'])?null:_0x57c5dd['getNearestSelectionRange'](_0x990ba,'forward'),_0x4312fe=_0x2566f1['nodeBefore']&&_0x57c5dd['isLimit'](_0x2566f1['nodeBefore'])?null:_0x57c5dd['getNearestSelectionRange'](_0x2566f1,'backward'),_0x369c99=_0x182e5f['model']['createRange'](_0x24b7d7?_0x24b7d7['start']:_0x990ba,_0x4312fe?_0x4312fe['end']:_0x2566f1);_0x182e5f['model']['change'](_0x3069b5=>{this['markDeletion'](_0x369c99);const _0x4e792a=_0x182e5f['model']['schema']['getNearestSelectionRange'](_0x369c99['start']);_0x55995d['is']('documentSelection')?_0x3069b5['setSelection'](_0x4e792a):_0x55995d['setTo'](_0x4e792a);}),_0xcc2e18['stop']();},{'priority':_0x393348['normal']+0xa}),_0x182e5f['model']['on']('insertContent',(_0x46efc4,_0x58ff06)=>{const _0x1268ab=_0x58ff06[_0x58ff06['length']-0x1];_0x1268ab&&_0x1268ab['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x182e5f['model']['change'](()=>{let _0x37d627=_0x182e5f['model']['insertContent'](_0x58ff06[0x0],_0x58ff06[0x1],_0x58ff06[0x2],{'forceDefaultExecution':!0x0});if(!_0x37d627)return;_0x46efc4['return']=_0x37d627['clone']();const _0x4c4311=_0x37d627['end']['nodeBefore'],_0x594976=_0x182e5f['model']['schema'];_0x4c4311&&_0x594976['isBlock'](_0x4c4311)&&!_0x594976['isObject'](_0x4c4311)&&(_0x37d627=_0x182e5f['model']['createRange'](_0x37d627['start'],_0x182e5f['model']['createPositionAt'](_0x4c4311,'end'))),this['markInsertion'](_0x37d627);}),_0x46efc4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x541fdb=new x(_0x182e5f,this['_suggestions']);_0x182e5f['commands']['add']('acceptSuggestion',_0x541fdb),this['enableCommand']('acceptSuggestion');const _0x26ee6a=new R(_0x182e5f,this['_suggestions']);_0x182e5f['commands']['add']('discardSuggestion',_0x26ee6a),this['enableCommand']('discardSuggestion'),_0x182e5f['commands']['add']('acceptAllSuggestions',new E(_0x182e5f,_0x541fdb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x182e5f['commands']['add']('discardAllSuggestions',new E(_0x182e5f,_0x26ee6a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x182e5f['commands']['add']('acceptSelectedSuggestions',new O(_0x182e5f,_0x541fdb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x182e5f['commands']['add']('discardSelectedSuggestions',new O(_0x182e5f,_0x26ee6a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xb4d89d=_0x182e5f['plugins']['get']('CommentsRepository');this['listenTo'](_0xb4d89d,'addComment',(_0x1c2007,{threadId:_0x12f118})=>{const _0x469bd6=this['_suggestions']['get'](_0x12f118);_0x469bd6&&_0x469bd6['commentThread']&&0x1===_0x469bd6['commentThread']['length']&&this['_updateSuggestionData'](_0x12f118,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xb4d89d,'removeComment',(_0x4593bc,{threadId:_0x3d715b})=>{const _0x4bfdcd=this['_suggestions']['get'](_0x3d715b);_0x4bfdcd&&_0x4bfdcd['commentThread']&&!_0x4bfdcd['commentThread']['length']&&this['_updateSuggestionData'](_0x3d715b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3158ec){if(this['_adapter'])throw new _0x10890c('track-changes-adapter-already-set',this);this['_adapter']=_0x3158ec;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3a6d74=!0x1,toJSON:_0x25e1fe=!0x1}={}){const _0x4e77c5=[];for(const _0x31cc9c of this['_suggestions']['values']())_0x3a6d74&&!_0x31cc9c['isInContent']||_0x4e77c5['push'](_0x31cc9c);return _0x25e1fe?_0x4e77c5['map'](_0x3dac6e=>_0x3dac6e['toJSON']()):_0x4e77c5;}['getSuggestion'](_0x182fad){const _0x54da2b=this['_suggestions']['get'](_0x182fad);if(!_0x54da2b)throw new _0x10890c('track-changes-suggestion-not-found',this);return _0x54da2b;}['hasSuggestion'](_0x1e421c){return this['_suggestions']['has'](_0x1e421c);}['addSuggestionData'](_0x3ff5bc){const {authorId:_0x313e08,id:_0x4b0db4,attributes:_0x2a295a}=_0x3ff5bc,[_0x3cfeea,_0x82d2a8]=_0x3ff5bc['type']['split'](':'),_0x45ef5d=this['_suggestions']['get'](_0x4b0db4)||this['_createSuggestion'](_0x3cfeea,_0x82d2a8,_0x4b0db4,_0x313e08,_0x2a295a);if(this['_addThreadToSuggestion'](_0x45ef5d),this['_checkSuggestionCorrectness'](_0x45ef5d,_0x3cfeea,_0x82d2a8||null,_0x313e08),_0x45ef5d['createdAt']=_0x3ff5bc['createdAt'],_0x45ef5d['_isDataLoaded']=!0x0,_0x2a295a&&_0x2a295a['@external']){const _0x19a57f=_0x2a295a['@external'],_0x1f1228=this['_getExternalAuthor'](_0x19a57f['authorName']);_0x45ef5d['authoredAt']=_0x19a57f['createdAt'],_0x45ef5d['author']=_0x1f1228,_0x45ef5d['isExternal']=!0x0;}else _0x45ef5d['authoredAt']=_0x3ff5bc['createdAt'];switch(_0x3ff5bc['data']&&(_0x45ef5d['data']=_0x3ff5bc['data']),_0x3ff5bc['attributes']&&(_0x45ef5d['attributes']=_0x3ff5bc['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x45ef5d['_saved']=!0x0),this['_suggestionState']['get'](_0x45ef5d)){case'notReady':this['_suggestionState']['set'](_0x45ef5d,'dataReady');break;case'markerReady':_0x45ef5d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x45ef5d])),this['_refreshSuggestionsChain'](new Set([_0x45ef5d])),this['_suggestionState']['set'](_0x45ef5d,'ready'),this['fire']('suggestionLoaded',_0x45ef5d)):this['_suggestionState']['set'](_0x45ef5d,'removed');}return _0x45ef5d;}['acceptSuggestion'](_0x1c4e1c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3b082a of _0x1c4e1c['getAllAdjacentSuggestions']())_0x3b082a['accept']();});});}['discardSuggestion'](_0x583a03){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4ac1f0 of _0x583a03['getAllAdjacentSuggestions']())_0x4ac1f0['discard']();});});}['enableCommand'](_0x3b9ca1,_0x217da6){const _0x40a8c9=this['editor']['commands']['get'](_0x3b9ca1);if(!_0x40a8c9)throw new _0x10890c('track-changes-command-not-found',this,{'commandName':_0x3b9ca1});if(this['_enabledCommands']['has'](_0x40a8c9))throw new _0x10890c('track-changes-enable-command-twice',this,{'commandName':_0x3b9ca1});this['_enabledCommands']['add'](_0x40a8c9),_0x217da6&&_0x40a8c9['on']('execute',(_0x43ef70,_0x27094d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x27094d['length']>0x0&&_0x27094d[_0x27094d['length']-0x1]&&_0x27094d[_0x27094d['length']-0x1]['forceDefaultExecution']?_0x27094d['pop']():(_0x43ef70['return']=_0x217da6((..._0x52b423)=>_0x40a8c9['execute'](..._0x52b423,{'forceDefaultExecution':!0x0}),..._0x27094d),_0x43ef70['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5a8af8){let _0x366142,_0x41e82e;const _0x32eb7e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x366142=_0x5a8af8();}catch(_0xc95b53){_0x41e82e=_0xc95b53;}return _0x32eb7e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x41e82e&&_0x10890c['rethrowUnexpectedError'](_0x41e82e,this),_0x366142;}['markInsertion'](_0x2ff2e2,_0x2c9095=null,_0x3fbd60={}){if(_0x2ff2e2['isCollapsed'])return null;const _0x29d9e8=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3ed98f,meta:_0x209985}of this['_findSuggestions'](_0x2ff2e2,'insertion'))if(_0x209985['isOwn']){if(!_0x209985['isNextTo']){if(_0x209985['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x3ed98f,_0x3fbd60))continue;return _0x3ed98f;}if(qt(_0x3ed98f,_0x3fbd60))return _0x3ed98f;this['_breakSuggestionMarker'](_0x3ed98f,_0x2ff2e2['start'],_0x2ff2e2['end']);break;}if(_0x2c9095==_0x3ed98f['subType']&&qt(_0x3ed98f,_0x3fbd60)){const _0x404a17=_0x3ed98f['getFirstRange']();return _0x404a17['start']['isEqual'](_0x2ff2e2['end'])?this['_setSuggestionRange'](_0x3ed98f,this['_model']['createRange'](_0x2ff2e2['start'],_0x404a17['end'])):this['_setSuggestionRange'](_0x3ed98f,this['_model']['createRange'](_0x404a17['start'],_0x2ff2e2['end'])),_0x3ed98f;}}const _0x4daeb4=_0x2b2341(),_0x2d72ea=_0x29d9e8['id'],_0x1c8db2=_0x2c9095?'insertion:'+_0x2c9095:'insertion',_0x22c7c0=this['_setSuggestionData']({'id':_0x4daeb4,'type':_0x1c8db2,'createdAt':new Date(),'authorId':_0x2d72ea,'attributes':_0x3fbd60});return this['_addSuggestionMarker'](_0x1c8db2,_0x4daeb4,_0x2d72ea,_0x2ff2e2),_0x22c7c0;}['markMultiRangeInsertion'](_0x247394,_0xd8cbab='multi',_0x521278={}){const _0x2111e7=this['editor']['plugins']['get']('Users')['me'],_0xc3b643=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xd8cbab,'join');for(const _0x315ef8 of this['getSuggestions']())if(_0x315ef8['author']['id']==_0x2111e7['id']&&'insertion'==_0x315ef8['type']&&_0x315ef8['subType']==_0xd8cbab&&qt(_0x315ef8,_0x521278)&&(_0xc3b643(_0x315ef8['getRanges'](),_0x247394)||_0xc3b643(_0x247394,_0x315ef8['getRanges']()))){for(const _0x3cc8b1 of _0x247394)_0x315ef8['addRange'](_0x3cc8b1);return _0x315ef8;}for(const {suggestion:_0x3b953b,meta:_0x5a55a0}of this['_findSuggestions'](_0x247394,'insertion')){if(!_0x5a55a0['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5a55a0['containsRangeInObject'])continue;if(!qt(_0x3b953b,_0x521278))continue;let _0x4a8104=!0x0;for(const _0x221484 of _0x3b953b['getRanges']())for(const _0x5784df of _0x247394)if(!_0x221484['containsRange'](_0x5784df)){_0x4a8104=!0x1;break;}if(_0x4a8104)return _0x3b953b;}const _0xd796db=_0x2b2341(),_0x332aca=_0x2111e7['id'],_0x3ee73b='insertion:'+_0xd8cbab,_0x47dae2=this['_setSuggestionData']({'id':_0xd796db,'type':_0x3ee73b,'createdAt':new Date(),'authorId':_0x332aca,'attributes':_0x521278});for(const _0x272d31 of _0x247394)this['_addSuggestionMarker'](_0x3ee73b,_0xd796db,_0x332aca,_0x272d31,u['getMultiRangeId']());return _0x47dae2;}['markInlineFormat'](_0x56e189,_0x1cb670,_0x421f8c=null,_0x72ea94={}){if(_0x421f8c=_0x421f8c||Gt(_0x1cb670),_0x56e189['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x151b0c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x421f8c,'accept');return this['forceDefaultExecution'](()=>_0x151b0c([_0x56e189],_0x1cb670,_0x72ea94)),null;}const _0x25a89c=this['editor']['plugins']['get']('Users')['me'],_0x2f4030=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x331ec2,meta:_0x41968e}of this['_findSuggestions'](_0x56e189,'insertion'))_0x41968e['isOwn']&&!_0x41968e['isInsideObject']&&_0x2f4030['push'](..._0x331ec2['getRanges']());}const _0x1ed96c=function(_0x1a1ac5,_0xc12ed6){const _0x1b5f98=[];for(const _0x3137ee of _0xc12ed6){const _0x3f45f6=_0x1a1ac5['getIntersection'](_0x3137ee);_0x3f45f6&&_0x1b5f98['push'](_0x3f45f6);}return _0x1b5f98;}(_0x56e189,_0x2f4030),_0x110e21=function(_0x376d66,_0x170fd6){const _0x39c4f9=[_0x376d66];for(const _0x3f8066 of _0x170fd6){let _0x573825=0x0;for(;_0x573825<_0x39c4f9['length'];){const _0xbb8a32=_0x39c4f9[_0x573825]['getDifference'](_0x3f8066);_0x39c4f9['splice'](_0x573825,0x1,..._0xbb8a32),_0x573825+=_0xbb8a32['length'];}}return _0x39c4f9;}(_0x56e189,_0x2f4030);_0x1ed96c['length']&&this['_model']['change'](()=>{for(const _0x54a792 of _0x1ed96c){const _0x30acf5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x421f8c,'accept');this['forceDefaultExecution'](()=>_0x30acf5([_0x54a792],_0x1cb670,_0x72ea94));}});for(const _0x34a0c9 of _0x110e21){let _0x541f52=null,_0x761d1f=_0x34a0c9['start'],_0x3a6905=_0x34a0c9['end'];for(const {suggestion:_0x26abdf,meta:_0x32873e}of this['_findSuggestions'](_0x34a0c9,'formatInline')){if(!_0x32873e['isOwn'])continue;if(_0x26abdf['subType']!=_0x421f8c)continue;if(!qt(_0x26abdf,_0x72ea94))continue;const _0x48af80=_0x26abdf['getFirstRange']();if(_0x48af80['containsRange'](_0x34a0c9,!0x0))return null;_0x761d1f=_0x761d1f['isBefore'](_0x48af80['start'])?_0x761d1f:_0x48af80['start'],_0x3a6905=_0x3a6905['isAfter'](_0x48af80['end'])?_0x3a6905:_0x48af80['end'],_0x541f52?_0x48af80['start']['isBefore'](_0x541f52['getFirstRange']()['start'])?(_0x541f52['removeMarkers'](),_0x541f52=_0x26abdf):_0x26abdf['removeMarkers']():_0x541f52=_0x26abdf;}const _0x16060=this['_model']['createRange'](_0x761d1f,_0x3a6905);if(_0x541f52)this['_setSuggestionRange'](_0x541f52,_0x16060);else{const _0x5df40f=_0x2b2341(),_0x2ca586=_0x25a89c['id'];this['_setSuggestionData']({'id':_0x5df40f,'type':'formatInline:'+_0x421f8c,'data':_0x1cb670,'createdAt':new Date(),'authorId':_0x2ca586,'attributes':_0x72ea94}),this['_addSuggestionMarker']('formatInline:'+_0x421f8c,_0x5df40f,_0x2ca586,_0x16060);}}return null;}['markBlockFormat'](_0x5bd88f,_0x6829d5,_0x3ae35d=[],_0x147a86=null,_0x193eff={}){_0x6829d5['formatGroupId']||(_0x6829d5['formatGroupId']=_0x6829d5['commandName']),_0x6829d5['multipleBlocks']=_0x5bd88f['is']('range'),_0x147a86=_0x147a86||Gt(_0x6829d5);const _0x1a2c56=_0x3ae35d['map'](_0x9f0f90=>Lt(_0x9f0f90,this['_model'])),_0x20c579=_0x5bd88f['is']('range')?_0x5bd88f:Lt(_0x5bd88f,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1be793=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x147a86,'accept');return this['forceDefaultExecution'](()=>_0x1be793([_0x20c579],_0x6829d5,_0x193eff)),null;}_0x1a2c56['push'](_0x20c579);let _0x254521=!0x0;for(const _0x1067b6 of _0x1a2c56)if(!this['_rangeIsInLocalUserInsertion'](_0x1067b6)){_0x254521=!0x1;break;}if(_0x254521&&'always'!==this['_trackFormatChanges']){const _0x29d3da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x147a86,'accept');return this['forceDefaultExecution'](()=>_0x29d3da([_0x20c579],_0x6829d5,_0x193eff)),null;}let _0x10a83b=null,_0x10b417=_0x20c579['start'],_0x438287=_0x20c579['end'];for(const {suggestion:_0x327274,meta:_0x915cab}of this['_findSuggestions'](_0x20c579,'formatBlock')){if(!_0x915cab['isOwn'])continue;if(_0x915cab['isNextTo']||_0x915cab['containsRangeInObject']||_0x915cab['isInsideObject'])continue;if(_0x327274['data']['formatGroupId']!=_0x6829d5['formatGroupId'])continue;if(!qt(_0x327274,_0x193eff))continue;const _0x52cb40=_0x327274['getFirstRange']();if(_0x327274['subType']==_0x147a86){if(_0x52cb40['containsRange'](_0x20c579,!0x0))return null;_0x10b417=_0x10b417['isBefore'](_0x52cb40['start'])?_0x10b417:_0x52cb40['start'],_0x438287=_0x438287['isAfter'](_0x52cb40['end'])?_0x438287:_0x52cb40['end'],_0x10a83b?_0x52cb40['start']['isBefore'](_0x10a83b['getFirstRange']()['start'])?(_0x10a83b['removeMarkers'](),_0x10a83b=_0x327274):_0x327274['removeMarkers']():_0x10a83b=_0x327274;}else{const _0x1bdddc=_0x20c579['getIntersection'](_0x52cb40);this['_cutOutSuggestionMarker'](_0x327274,_0x1bdddc);}}const _0x25afe1=this['editor']['plugins']['get']('Users')['me'],_0x509edb=_0x2b2341(),_0x281e31=_0x25afe1['id'];if(_0x10a83b)return this['_setSuggestionRange'](_0x10a83b,this['_model']['createRange'](_0x10b417,_0x438287)),_0x10a83b;{const _0x53d9d5=this['_setSuggestionData']({'id':_0x509edb,'type':'formatBlock:'+_0x147a86,'data':_0x6829d5,'createdAt':new Date(),'authorId':_0x281e31,'attributes':_0x193eff});return this['_addSuggestionMarker']('formatBlock:'+_0x147a86,_0x509edb,_0x281e31,this['_model']['createRange'](_0x10b417,_0x438287)),_0x53d9d5;}}['markMultiRangeBlockFormat'](_0x310126,_0x59aac7,_0x2c2b6e=[],_0x4d9726=null,_0x179e69={}){_0x59aac7['formatGroupId']||(_0x59aac7['formatGroupId']=_0x59aac7['commandName']);const _0x5645f4=_0x310126[0x0];_0x59aac7['multipleBlocks']=_0x5645f4['is']('range'),_0x4d9726=_0x4d9726||Gt(_0x59aac7);const _0x28cce5=_0x2c2b6e['map'](_0x2e83a8=>Lt(_0x2e83a8,this['_model'])),_0x55ef38=_0x5645f4['is']('range')?_0x310126:_0x310126['map'](_0x80aa97=>Lt(_0x80aa97,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1ae9ca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d9726,'accept');return this['forceDefaultExecution'](()=>_0x1ae9ca(_0x55ef38,_0x59aac7,_0x179e69)),null;}_0x28cce5['push'](..._0x55ef38);let _0x23629f=!0x0;for(const _0x15e4fd of _0x28cce5)if(!this['_rangeIsInLocalUserInsertion'](_0x15e4fd)){_0x23629f=!0x1;break;}if(_0x23629f&&'always'!==this['_trackFormatChanges']){const _0x3bb221=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d9726,'accept');return this['forceDefaultExecution'](()=>_0x3bb221(_0x55ef38,_0x59aac7,_0x179e69)),null;}const _0x49f41d=this['editor']['plugins']['get']('Users')['me'];for(const _0x509885 of this['getSuggestions']()){if(_0x509885['author']['id']!=_0x49f41d['id'])continue;if('formatBlock'!=_0x509885['type']||_0x509885['data']['formatGroupId']!=_0x59aac7['formatGroupId'])continue;if(!qt(_0x509885,_0x179e69))continue;const _0x504164=_0x509885['subType']==_0x4d9726;for(let _0x4c6653=0x0;_0x4c6653<_0x55ef38['length'];_0x4c6653++){const _0x103134=_0x55ef38[_0x4c6653];for(const _0x468178 of _0x509885['getMarkers']()){const _0x7e6339=_0x468178['getRange']();if(_0x103134['isEqual'](_0x7e6339)){_0x504164?(_0x55ef38['splice'](_0x4c6653,0x1),_0x4c6653--):_0x509885['removeMarker'](_0x468178['name']);break;}}}}if(0x0==_0x55ef38['length'])return null;const _0x1a6bd4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d9726,'join');for(const _0x327c5e of this['getSuggestions']())if(_0x327c5e['author']['id']==_0x49f41d['id']&&'formatBlock'==_0x327c5e['type']&&_0x327c5e['data']['formatGroupId']==_0x59aac7['formatGroupId']&&_0x327c5e['subType']==_0x4d9726&&qt(_0x327c5e,_0x179e69)&&(_0x1a6bd4(_0x327c5e['getRanges'](),_0x55ef38)||_0x1a6bd4(_0x55ef38,_0x327c5e['getRanges']()))){for(const _0x22ccab of _0x55ef38)_0x327c5e['addRange'](_0x22ccab);return _0x327c5e;}const _0x1d6b31=_0x2b2341(),_0x2704dc=_0x49f41d['id'],_0x4e3ea7='formatBlock:'+_0x4d9726,_0x10872c=this['_setSuggestionData']({'id':_0x1d6b31,'type':_0x4e3ea7,'data':_0x59aac7,'createdAt':new Date(),'authorId':_0x2704dc,'attributes':_0x179e69});for(const _0x4c6375 of _0x55ef38)this['_addSuggestionMarker'](_0x4e3ea7,_0x1d6b31,_0x2704dc,_0x4c6375,u['getMultiRangeId']());return _0x10872c;}['markDeletion'](_0x44f638,_0xaa6830=null,_0x286775={}){if(_0x44f638['isCollapsed'])return null;const _0x3da7c9=this['editor']['plugins']['get']('Users')['me'],_0x3581df=new _0x425d25(_0x44f638['start'],_0x44f638['end']);for(const {suggestion:_0x15159f,meta:_0x36b8a2}of this['_findSuggestions'](_0x3581df,'insertion'))if(_0x36b8a2['isOwn']&&!_0x36b8a2['isNextTo']){if(_0x15159f['isMultiRange']){const _0x711e19=_0x15159f['getRanges']()['filter'](_0x5cc4ba=>'$graveyard'!=_0x5cc4ba['root']['rootName']);_0x711e19['every'](_0xa8420d=>_0x3581df['containsRange'](_0xa8420d,!0x0))&&_0x15159f['discard']();if(_0x711e19['some'](_0x3e3ec6=>_0x3e3ec6['containsRange'](_0x3581df,!0x0))){const _0x1e442f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xaa6830,'accept');return this['forceDefaultExecution'](()=>_0x1e442f([_0x3581df],null,_0x286775)),null;}}else{const _0x3d25b8=_0x3581df['getIntersection'](_0x15159f['getFirstRange']());null!==_0x3d25b8&&_0x15159f['_onDiscard']([_0x3d25b8],null,_0x286775);}}if(_0x3581df['detach'](),_0x3581df['isCollapsed']||'$graveyard'==_0x3581df['root']['rootName'])return null;let _0x4cae72=null,_0xaf7f79=_0x3581df['start'],_0x38c507=_0x3581df['end'];const _0x56dd68=this['_findSuggestions'](_0x3581df,'deletion');for(const {suggestion:_0x16a89d,meta:_0x2c1e24}of _0x56dd68){const _0x4714ee=this['_model']['createRange'](_0xaf7f79,_0x38c507);if(_0x2c1e24['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2c1e24['containsRangeInObject']&&!_0x2c1e24['isInsideObject'])){if(_0x16a89d['isMultiRange']){if(!qt(_0x16a89d,_0x286775))continue;let _0x316718=!0x0;for(const _0x55fb5d of _0x16a89d['getRanges']()){if(_0x55fb5d['containsRange'](_0x4714ee,!0x0))return _0x16a89d;_0x4714ee['containsRange'](_0x55fb5d)||(_0x316718=!0x1);}_0x316718&&_0x16a89d['discard']();}else{const _0x47b4f2=_0x16a89d['getFirstRange']();if(_0x47b4f2['containsRange'](_0x4714ee,!0x0))return _0x16a89d;if(!qt(_0x16a89d,_0x286775)){_0x4714ee['containsRange'](_0x47b4f2)?_0x16a89d['removeMarkers']():_0x47b4f2['containsPosition'](_0xaf7f79)?_0xaf7f79=_0x47b4f2['end']:_0x47b4f2['containsPosition'](_0x38c507)&&(_0x38c507=_0x47b4f2['start']);continue;}_0xaf7f79=_0xaf7f79['isBefore'](_0x47b4f2['start'])?_0xaf7f79:_0x47b4f2['start'],_0x38c507=_0x38c507['isAfter'](_0x47b4f2['end'])?_0x38c507:_0x47b4f2['end'],_0x286775=Object['assign']({},_0x16a89d['attributes']),_0x4cae72?_0x47b4f2['start']['isBefore'](_0x4cae72['getFirstRange']()['start'])?(_0x4cae72['removeMarkers'](),_0x4cae72=_0x16a89d):_0x16a89d['removeMarkers']():_0x4cae72=_0x16a89d;}}}if(_0x4cae72)return this['_setSuggestionRange'](_0x4cae72,this['_model']['createRange'](_0xaf7f79,_0x38c507)),_0x4cae72;{const _0x499fac=_0x2b2341(),_0x2ac170=this['_model']['createRange'](_0xaf7f79,_0x38c507),_0x2e4260=_0x3da7c9['id'],_0x1a0138=_0xaa6830?'deletion:'+_0xaa6830:'deletion',_0x411d4a=this['_setSuggestionData']({'id':_0x499fac,'type':_0x1a0138,'createdAt':new Date(),'authorId':_0x2e4260,'attributes':_0x286775});return this['_addSuggestionMarker'](_0x1a0138,_0x499fac,_0x2e4260,_0x2ac170),_0x411d4a;}}['markMultiRangeDeletion'](_0xefbe3c,_0x1189a5='multi',_0x258e12={}){const _0x4e7671=this['editor']['plugins']['get']('Users')['me'],_0x5eda97=_0xefbe3c['map'](_0x4ef7e5=>new _0x425d25(_0x4ef7e5['start'],_0x4ef7e5['end'])),_0x213bd8=new Set();for(const {suggestion:_0x202645,meta:_0x328d03}of this['_findSuggestions'](_0x5eda97,'insertion'))_0x328d03['isOwn']&&!_0x328d03['isNextTo']&&_0x213bd8['add'](_0x202645);for(const _0x2660e5 of _0x213bd8)if(_0x2660e5['isMultiRange']){const _0x34abc7=_0x2660e5['getRanges']();(!_0x2660e5['attributes']||!_0x2660e5['attributes']['skipNestingCheck'])&&(_0x34abc7['every'](_0x361948=>_0x5eda97['some'](_0x39e9a4=>_0x39e9a4['containsRange'](_0x361948,!0x0)))&&_0x2660e5['discard']());if(_0x5eda97['every'](_0x12ac89=>_0x34abc7['some'](_0x2701f8=>_0x2701f8['containsRange'](_0x12ac89,!0x0)))){const _0x366512=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1189a5,'accept');return this['forceDefaultExecution'](()=>_0x366512(_0xefbe3c,null,_0x258e12)),null;}}else{const _0x1d7d78=_0x2660e5['getFirstRange']();_0x5eda97['some'](_0xf41b0d=>_0xf41b0d['containsRange'](_0x1d7d78,!0x0))&&_0x2660e5['discard']();if(_0x5eda97['every'](_0x35404f=>_0x1d7d78['containsRange'](_0x35404f,!0x0))){const _0x5d9aab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1189a5,'accept');return this['forceDefaultExecution'](()=>_0x5d9aab(_0x5eda97,null,_0x258e12)),null;}}const _0x12d86=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1189a5,'join');let _0x3e4043=null;for(const _0x5881e2 of this['getSuggestions']())if(_0x5881e2['author']['id']==_0x4e7671['id']&&_0x5881e2['isInContent']&&'deletion'==_0x5881e2['type']&&_0x5881e2['subType']==_0x1189a5&&qt(_0x5881e2,_0x258e12)&&(_0x12d86(_0x5881e2['getRanges'](),_0x5eda97)||_0x12d86(_0x5eda97,_0x5881e2['getRanges']()))){if(_0x3e4043){if(_0x5881e2['commentThread']&&_0x5881e2['commentThread']['length'])continue;for(const _0x176cbd of _0x5881e2['getRanges']())_0x3e4043['isIntersectingWithRange'](_0x176cbd)||_0x3e4043['addRange'](_0x176cbd);_0x5881e2['removeMarkers']();}else{_0x3e4043=_0x5881e2;for(const _0x17ba2b of _0x5eda97)_0x5881e2['isIntersectingWithRange'](_0x17ba2b)||_0x5881e2['addRange'](_0x17ba2b);}}if(_0x3e4043)return _0x3e4043;_0x213bd8['clear']();for(const {suggestion:_0x186f2c,meta:_0x6f4728}of this['_findSuggestions'](_0x5eda97,'deletion'))_0x6f4728['isOwn']&&(this['_mergeNestedSuggestions']||!_0x6f4728['containsRangeInObject']&&!_0x6f4728['isInsideObject'])&&qt(_0x186f2c,_0x258e12)&&_0x213bd8['add'](_0x186f2c);for(const _0x294118 of _0x213bd8){const _0x302471=_0x294118['getRanges']();if(!_0x258e12||!_0x258e12['skipNestingCheck']){if(_0x5eda97['every'](_0x21e502=>_0x302471['some'](_0x5a9d02=>_0x5a9d02['containsRange'](_0x21e502,!0x0))))return _0x294118;}(!_0x294118['attributes']||!_0x294118['attributes']['skipNestingCheck'])&&(_0x302471['every'](_0x4caf5d=>_0x5eda97['some'](_0x78241e=>_0x78241e['containsRange'](_0x4caf5d,!0x0)))&&_0x294118['discard']());}const _0x21b14a=_0x2b2341(),_0x28bd2b=_0x4e7671['id'],_0x732daf='deletion:'+_0x1189a5,_0x175ea5=this['_setSuggestionData']({'id':_0x21b14a,'type':_0x732daf,'createdAt':new Date(),'authorId':_0x28bd2b,'attributes':_0x258e12});for(const _0x45dffa of _0x5eda97)_0x45dffa['detach'](),_0x45dffa['isCollapsed']||'$graveyard'==_0x45dffa['root']['rootName']||this['_addSuggestionMarker'](_0x732daf,_0x21b14a,_0x28bd2b,_0x45dffa,u['getMultiRangeId']());return _0x175ea5;}['markAttributeChange'](_0x12be07,_0x3e766f,_0x43f31d,_0x5c6928,_0x3d109c){if(_0x12be07['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4f990c=this['editor']['plugins']['get']('Users')['me']['id'],_0x10512c=Array['from'](this['_suggestions']['values']())['filter'](_0x2dfd24=>'attribute'==_0x2dfd24['type']&&_0x2dfd24['data']['key']==_0x3e766f&&_0x2dfd24['isIntersectingWithRange'](_0x12be07));if('default'===this['_trackFormatChanges']){const _0x100939=this['_findSuggestions'](_0x12be07,'insertion')['filter'](({meta:_0x38e0bb})=>_0x38e0bb['isOwn']&&!_0x38e0bb['isInsideObject']&&!_0x38e0bb['isNextTo'])['map'](({suggestion:_0x6ed3b6})=>_0x6ed3b6);_0x10512c['unshift'](..._0x100939);}const _0x45a722=new Map([[_0x12be07,_0x43f31d]]);for(const _0x38f414 of _0x10512c){const _0x5012ab='attribute'==_0x38f414['type']?_0x38f414['data']['oldValue']:void 0x0,_0x4af047=_0x38f414['getFirstRange'](),_0x30744d=Array['from'](_0x45a722['keys']())['find'](_0x45067e=>_0x45067e['isIntersecting'](_0x4af047));if(!_0x30744d)continue;const _0x2f55f1=_0x30744d['getDifference'](_0x4af047);this['_isBlockAttribute'](_0x3e766f)&&'insertion'==_0x38f414['type']&&0x0!=_0x2f55f1['length']||(_0x45a722['delete'](_0x30744d),_0x2f55f1['forEach'](_0x4bdeeb=>{_0x45a722['set'](_0x4bdeeb,_0x43f31d);}),'insertion'!=_0x38f414['type']&&_0x5012ab!=_0x5c6928&&_0x45a722['set'](_0x30744d['getIntersection'](_0x4af047),_0x5012ab));}const _0x4ee400=[];for(const [_0x4197e3,_0x5a6a32]of _0x45a722){const _0x499cab=_0x2b2341(),_0x1f4bf1={'key':_0x3e766f,'oldValue':_0x5a6a32,'newValue':_0x5c6928};_0x3e766f['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':_0x3e766f});const _0x18bfcf=('attribute:'+(_0x3e766f+'|'+Gt({'newValue':_0x5c6928})))['substring'](0x0,0x3c),_0x7d86fd=this['_setSuggestionData']({'id':_0x499cab,'type':_0x18bfcf,'data':_0x1f4bf1,'createdAt':new Date(),'authorId':_0x4f990c,'attributes':_0x3d109c});_0x4ee400['push'](_0x7d86fd),this['_addSuggestionMarker'](_0x18bfcf,_0x499cab,_0x4f990c,_0x4197e3);}return _0x4ee400;}['enableDefaultAttributesIntegration'](_0x4011e3){this['enableCommand'](_0x4011e3,(_0x1a7b7b,..._0x516862)=>{this['_recordAttributeChanges'](()=>{_0x1a7b7b(..._0x516862);});});}['registerBlockAttribute'](_0x188afd){this['_blockAttributeKeys']['add'](_0x188afd);}['registerInlineAttribute'](_0x11b33b){this['_inlineAttributeKeys']['add'](_0x11b33b);}['_getAttributeKey'](_0x5b304f){return'attribute'==_0x5b304f['type']?_0x5b304f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2525bf,_0x38514d){const _0x2387ed=_0x2525bf['getFirstMarker']();this['_model']['change'](_0x4f0603=>{_0x4f0603['updateMarker'](_0x2387ed,{'range':_0x38514d});});}['_addThreadToSuggestion'](_0xbe288e){const _0x5c4f25=_0xbe288e['id'],_0x2f0005=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5c4f25)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2f0005,'threadId':_0x5c4f25,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x37a218=this['_commentsRepository']['getCommentThread'](_0x5c4f25);_0x37a218['unbind']('isRemovable'),_0x37a218['isRemovable']=!0x1,_0xbe288e['commentThread']=_0x37a218;}['_checkSuggestionCorrectness'](_0x2631ca,_0xcdfe5a,_0x3caf42,_0x166558){if(_0x2631ca['type']!=_0xcdfe5a||_0x2631ca['subType']!=_0x3caf42||_0x2631ca['creator']['id']!=_0x166558)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x10890c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x16c7e5,_0x30da28){const _0x53428f=_0x16c7e5['getFirstRange']();if(_0x30da28['isEqual'](_0x53428f))_0x16c7e5['removeMarkers']();else{if(_0x53428f['containsRange'](_0x30da28)){const _0x340e91=this['_model']['createPositionAt'](_0x30da28['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16c7e5,this['_model']['createRange'](_0x53428f['start'],_0x340e91));const _0x27e6d3=_0x2b2341(),_0x5ce054=_0x16c7e5['creator']['id'],_0x1b05fc=_0x16c7e5['type']+':'+_0x16c7e5['subType'];this['_setSuggestionData']({'id':_0x27e6d3,'type':_0x1b05fc,'createdAt':new Date(),'authorId':_0x5ce054,'data':_0x16c7e5['data'],'attributes':_0x16c7e5['attributes']});const _0x1ea755=this['_model']['createPositionAt'](_0x30da28['end']['parent'],'after'),_0x113182=this['_model']['createRange'](_0x1ea755,_0x53428f['end']);this['_addSuggestionMarker'](_0x1b05fc,_0x27e6d3,_0x5ce054,_0x113182);}else{if(_0x53428f['containsPosition'](_0x30da28['start'])){const _0x1bd4b9=this['_model']['createPositionAt'](_0x30da28['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16c7e5,this['_model']['createRange'](_0x53428f['start'],_0x1bd4b9));}else{const _0xc43859=this['_model']['createPositionAt'](_0x30da28['end']['parent'],'after');this['_setSuggestionRange'](_0x16c7e5,this['_model']['createRange'](_0xc43859,_0x53428f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x276f13){for(const {suggestion:_0xe17967,meta:_0x2c966c}of this['_findSuggestions'](_0x276f13,'insertion')){if(!_0x2c966c['isOwn'])continue;const _0x4dc017=_0xe17967['getRanges']();for(const _0x2f3377 of _0x4dc017)if(!_0x276f13['getDifference'](_0x2f3377)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3cd168){const _0x463349=this['editor']['plugins']['get']('Users')['getUser'](_0x3cd168);if(!_0x463349)throw new _0x10890c('track-changes-user-not-found',this);return _0x463349;}['_getExternalAuthor'](_0x273e53){const _0x5f2f6a=this['editor']['plugins']['get']('Users'),_0x54cd41=_0x133608('external:'+_0x273e53),_0x1ccaab=_0x5f2f6a['getUser'](_0x54cd41);return _0x1ccaab||_0x5f2f6a['addUser']({'id':_0x54cd41,'name':_0x273e53});}['_createSuggestion'](_0x381dab,_0x215256,_0xed4aec,_0x544221,_0x13d82c){const _0x349f3c=this['_getAuthorFromId'](_0x544221),_0x42df51=this['_suggestionFactory']['buildSuggestion'](_0x381dab,_0x215256,_0xed4aec,_0x349f3c,_0x13d82c,_0x54732d=>{this['_updateSuggestionData'](_0xed4aec,{'attributes':_0x54732d});const _0x30fd45=this['getSuggestion'](_0xed4aec);this['_joinWithAdjacentSuggestions'](new Set([_0x30fd45])),this['_refreshSuggestionsChain'](new Set([_0x30fd45]));});return this['listenTo'](_0x42df51,'accept',()=>{this['_updateSuggestionData'](_0xed4aec,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x42df51,'discard',()=>{this['_updateSuggestionData'](_0xed4aec,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xed4aec,_0x42df51),this['_suggestionState']['set'](_0x42df51,'notReady'),_0x42df51;}['_splitMarkerName'](_0xd9ddd0){const _0x960ad6=_0xd9ddd0['split'](':');return{'group':_0x960ad6[0x0],'type':_0x960ad6[0x1],'subType':_0x960ad6['length']>=0x5?_0x960ad6[0x2]:null,'id':_0x960ad6['length']<0x5?_0x960ad6[0x2]:_0x960ad6[0x3],'authorId':_0x960ad6['length']<0x5?_0x960ad6[0x3]:_0x960ad6[0x4],'markerCount':0x6==_0x960ad6['length']?_0x960ad6[0x5]:null};}['_breakSuggestionMarker'](_0x15d627,_0x4ca61f,_0x48590f){const _0xd9588f=_0x15d627['getFirstRange'](),_0x2fa6de=_0xd9588f['start'],_0x4f29a5=_0xd9588f['end'];this['_setSuggestionRange'](_0x15d627,this['_model']['createRange'](_0x2fa6de,_0x4ca61f));const _0x385f31=_0x2b2341(),_0x5d4f99=_0x15d627['creator']['id'],_0x31f637=_0x15d627['type']+(_0x15d627['subType']?':'+_0x15d627['subType']:'');this['_setSuggestionData']({'id':_0x385f31,'type':_0x31f637,'createdAt':new Date(),'authorId':_0x5d4f99,'originalSuggestionId':_0x15d627['id'],'attributes':_0x15d627['attributes'],'data':_0x15d627['data']});const _0x3a3cbc=this['_getAttributeKey'](_0x15d627);('formatBlock'==_0x15d627['type']||_0x3a3cbc&&this['_isBlockAttribute'](_0x3a3cbc))&&(_0x48590f=this['_model']['createPositionBefore'](_0x48590f['parent'])),this['_addSuggestionMarker'](_0x31f637,_0x385f31,_0x5d4f99,this['_model']['createRange'](_0x48590f,_0x4f29a5));}['_findSuggestions'](_0x1f6232,_0x3f6289=null){const _0x4d4b9f=[],_0x752d15=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1f6232)||(_0x1f6232=[_0x1f6232]);for(const _0x300960 of this['getSuggestions']()){if(!_0x300960['isInContent'])continue;if(_0x3f6289&&_0x300960['type']!=_0x3f6289)continue;let _0x3087c1=!0x1;for(const _0x3323a1 of _0x300960['getRanges']()){for(const _0x4f169c of _0x1f6232){const _0x4ce42=_0x4f169c['start']['isEqual'](_0x3323a1['end'])||_0x4f169c['end']['isEqual'](_0x3323a1['start']);if(_0x4ce42||_0x4f169c['getIntersection'](_0x3323a1)){const _0x54c756=_0x4f169c['containsRange'](_0x3323a1)&&Ot(this['_model']['schema'],_0x3323a1['start'],_0x4f169c),_0xf31a2b=_0x3323a1['containsRange'](_0x4f169c)&&Ot(this['_model']['schema'],_0x4f169c['start'],_0x3323a1);_0x4d4b9f['push']({'suggestion':_0x300960,'meta':{'isOwn':_0x752d15==_0x300960['author'],'isNextTo':_0x4ce42,'isInsideObject':_0x54c756,'containsRangeInObject':_0xf31a2b}}),_0x3087c1=!0x0;break;}}if(_0x3087c1)break;}}return _0x4d4b9f;}['_addSuggestionMarker'](_0x28f059,_0x447fe8,_0x4f1d73,_0x4da071,_0x1b17a5){this['_model']['change'](_0x300e3c=>{let _0x4c78a6='suggestion:'+_0x28f059+':'+_0x447fe8+':'+_0x4f1d73;_0x1b17a5&&(_0x4c78a6=_0x4c78a6+':'+_0x1b17a5),_0x300e3c['addMarker'](_0x4c78a6,{'range':_0x4da071,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2d9385){const _0x5983b8=_0x2d9385['previous'],_0x5833a8=_0x2d9385['next'];_0x2d9385['previous']=null,_0x2d9385['next']=null,null!=_0x5983b8&&_0x5983b8['next']==_0x2d9385&&(_0x5983b8['next']=_0x5833a8),null!=_0x5833a8&&_0x5833a8['previous']==_0x2d9385&&(_0x5833a8['previous']=_0x5983b8),'ready'==this['_suggestionState']['get'](_0x2d9385)&&(this['_suggestionState']['set'](_0x2d9385,'removed'),this['fire']('suggestionUnloaded',_0x2d9385,_0x5983b8,_0x5833a8));}['_setSuggestionData'](_0x76c266){const _0x52f8b1=_0x76c266['id'],_0x362450=this['addSuggestionData'](_0x76c266);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x34b69c=this['editor']['plugins']['get']('PendingActions'),_0x4a80e3=_0x362450['hasComments'],_0x441922=_0x362450['subType']?_0x362450['type']+':'+_0x362450['subType']:_0x362450['type'],_0x52e025=this['editor']['locale'],_0x5722cf=_0x34b69c['add'](o(_0x52e025,'PENDING_ACTION_SUGGESTION')),_0x296d34={'id':_0x52f8b1,'type':_0x441922,'hasComments':_0x4a80e3,'data':_0x76c266['data']||null,'originalSuggestionId':_0x76c266['originalSuggestionId']||null,'attributes':_0x362450['attributes']};this['_adapter']['addSuggestion'](_0x296d34)['then'](_0x3b3136=>{_0x362450['_saved']=!0x0,_0x34b69c['remove'](_0x5722cf),_0x3b3136&&_0x3b3136['createdAt']&&(this['_suggestions']['get'](_0x52f8b1)['createdAt']=_0x3b3136['createdAt']);})['catch'](_0x2cfead=>{throw _0x1151d8('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x362450['discard']();}),_0x362450['stopListening'](),this['_suggestions']['delete'](_0x362450['id']),this['_suggestionState']['delete'](_0x362450),_0x2cfead;});}return _0x362450;}['_isBlockAttribute'](_0x5ebc28){return this['_blockAttributeKeys']['has'](_0x5ebc28);}['_updateSuggestionData'](_0x3cda9c,_0x3b784c){const _0x41ddff=this['editor']['plugins']['get']('PendingActions'),_0x35cb16=this['getSuggestion'](_0x3cda9c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x35cb16['_saved']){const _0x239ddf=_0x41ddff['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3cda9c,_0x3b784c)['then'](()=>{_0x41ddff['remove'](_0x239ddf);});}else _0x35cb16['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3cda9c,_0x3b784c);});}}['_getSuggestionData'](_0x26a1cc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x10890c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x26a1cc);}['_handleNewSuggestionMarker'](_0x2e26a6){const {id:_0x299b28,type:_0x1a3373,subType:_0x4a024b,authorId:_0x17b171}=this['_splitMarkerName'](_0x2e26a6),_0x1dd212=this['_suggestions']['get'](_0x299b28)||this['_createSuggestion'](_0x1a3373,_0x4a024b,_0x299b28,_0x17b171,{});switch(this['_checkSuggestionCorrectness'](_0x1dd212,_0x1a3373,_0x4a024b,_0x17b171),this['_suggestionState']['get'](_0x1dd212)){case'notReady':this['_getSuggestionData'](_0x299b28)['then'](_0x12fbfc=>{let _0x1e35af=Promise['resolve']();_0x12fbfc['hasComments']&&(_0x1e35af=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x299b28})),_0x1e35af['then'](()=>{this['addSuggestionData'](_0x12fbfc)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1dd212,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x299b28,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1dd212,'ready'),this['fire']('suggestionLoaded',_0x1dd212);break;case'ready':this['fire']('suggestionChanged',_0x1dd212);}return _0x1dd212['addMarkerName'](_0x2e26a6),_0x1dd212;}['_refreshSuggestionsChain'](_0x3fa95f){const _0x130b4f=Array['from'](_0x3fa95f),_0x3225ed=_0x130b4f['filter'](_0x1b6182=>'attribute'==_0x1b6182['type']);this['_refreshAttributeSuggestionsChain'](_0x3225ed);const _0x1d6580=_0x130b4f['filter'](_0x525507=>!_0x525507['isMultiRange']&&'attribute'!=_0x525507['type']),_0x184865=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44d118=>!_0x44d118['isMultiRange']&&'attribute'!=_0x44d118['type']),_0x40d1bf=_0x184865['filter'](_0x262659=>!_0x3fa95f['has'](_0x262659)),_0x5cc055=new Map(_0x184865['map'](_0x46b4c1=>[_0x46b4c1,this['_suggestionFactory']['getSuggestionCallback'](_0x46b4c1['type'],_0x46b4c1['subType'],'chain')])),_0x50fce0=new Map(_0x184865['map'](_0x2670f3=>[_0x2670f3,_0x2670f3['getFirstRange']()])),_0x536600=new Set(),_0x16c994=new Set();for(let _0x47a025=0x0;_0x47a025<_0x1d6580['length'];_0x47a025++)_0x1a1261(_0x1d6580[_0x47a025],_0x1d6580,_0x47a025+0x1);for(let _0x241fbf=0x0;_0x241fbf<_0x1d6580['length'];_0x241fbf++)_0x1a1261(_0x1d6580[_0x241fbf],_0x40d1bf,0x0);const _0x4dacd1=new Set();for(let _0x3af7d3=0x0;_0x3af7d3<_0x1d6580['length'];_0x3af7d3++){const _0x581812=_0x1d6580[_0x3af7d3];!_0x16c994['has'](_0x581812)&&_0x581812['previous']&&(_0x4dacd1['add'](_0x581812['previous']),_0x581812['previous']['next']===_0x581812&&(_0x581812['previous']['next']=null),_0x581812['previous']=null),!_0x536600['has'](_0x581812)&&_0x581812['next']&&(_0x4dacd1['add'](_0x581812['next']),_0x581812['next']['previous']===_0x581812&&(_0x581812['next']['previous']=null),_0x581812['next']=null);}function _0x1a1261(_0x4278d5,_0x5d4641,_0x1dd332){for(let _0x57eb27=_0x1dd332;_0x57eb27<_0x5d4641['length'];_0x57eb27++){const _0x32e3d5=_0x3e6788(_0x4278d5,_0x5d4641[_0x57eb27]);_0x32e3d5&&(_0x32e3d5[0x0]['next']=_0x32e3d5[0x1],_0x32e3d5[0x1]['previous']=_0x32e3d5[0x0],_0x536600['add'](_0x32e3d5[0x0]),_0x16c994['add'](_0x32e3d5[0x1]));}}function _0x3e6788(_0x448d95,_0x308cd3){if(_0x448d95['author']['id']!==_0x308cd3['author']['id'])return null;const _0x569255=_0x5cc055['get'](_0x448d95)(_0x448d95,_0x308cd3,_0x50fce0['get'](_0x448d95),_0x50fce0['get'](_0x308cd3));if(!_0x569255)return null;return _0x5cc055['get'](_0x308cd3)(_0x448d95,_0x308cd3,_0x50fce0['get'](_0x448d95),_0x50fce0['get'](_0x308cd3))?_0x569255[0x1]['commentThread']&&_0x569255[0x1]['commentThread']['length']?null:_0x569255:null;}_0x4dacd1['size']&&this['_refreshSuggestionsChain'](_0x4dacd1);}['_refreshAttributeSuggestionsChain'](_0x2e875b){if(0x0==_0x2e875b['length'])return;const _0x1cf119=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x166bad=>'attribute'==_0x166bad['type']&&_0x166bad['_isDataLoaded']),_0x1f92a6=[],_0x3ffab7=new Map();for(const _0x1580ae of _0x1cf119){const _0x245ec1=_0x133608(_0x1580ae['attributes']);_0x3ffab7['has'](_0x245ec1)||(_0x3ffab7['set'](_0x245ec1,_0x1f92a6['length']),_0x1f92a6['push']([]));const _0xbe966b=_0x3ffab7['get'](_0x245ec1);_0x1f92a6[_0xbe966b]['push'](_0x1580ae);}!(function(){_0x1f92a6['sort']((_0x3c7eb0,_0x5e587a)=>{const _0x4c3b8d=_0x3c7eb0[0x0]['createdAt'],_0x5ed8e6=_0x5e587a[0x0]['createdAt'];return _0x4c3b8d==_0x5ed8e6?_0x3c7eb0[0x0]['attributes']['groupId']<_0x5e587a[0x0]['attributes']['groupId']?-0x1:0x1:_0x4c3b8d<_0x5ed8e6?-0x1:0x1;});for(const _0x513e91 of _0x1f92a6)_0x513e91['sort']((_0x5ba97f,_0x39e302)=>_0x5ba97f['id']<_0x39e302['id']?-0x1:0x1);}());for(let _0x573a29=0x0;_0x573a29<_0x1f92a6['length'];_0x573a29++){if(0x0==_0x1f92a6[_0x573a29]['length'])continue;const _0x5ed6d6=[];for(let _0x461212=_0x573a29+0x1;_0x461212<_0x1f92a6['length'];_0x461212++)0x0!=_0x1f92a6[_0x461212]['length']&&_0x42cf73(_0x1f92a6[_0x573a29],_0x1f92a6[_0x461212])&&_0x5ed6d6['push'](_0x461212);for(const _0xad01aa of _0x5ed6d6)_0x1f92a6[_0x573a29]=_0x1f92a6[_0x573a29]['concat'](_0x1f92a6[_0xad01aa]),_0x1f92a6[_0xad01aa]=[];}for(const _0x2adbc1 of _0x1f92a6)for(let _0x1f3647=0x0;_0x1f3647<_0x2adbc1['length'];_0x1f3647++){const _0x4755aa=_0x2adbc1[_0x1f3647+0x1]||null;_0x2adbc1[_0x1f3647]['next']!==_0x4755aa&&(_0x2adbc1[_0x1f3647]['next']=_0x4755aa);}for(const _0x4d41c6 of _0x1f92a6)for(let _0x8268c5=0x0;_0x8268c5<_0x4d41c6['length'];_0x8268c5++){const _0x55222f=_0x4d41c6[_0x8268c5-0x1]||null;_0x4d41c6[_0x8268c5]['previous']!==_0x55222f&&(_0x4d41c6[_0x8268c5]['previous']=_0x55222f);}function _0x42cf73(_0x2472a9,_0x2c9897){if(_0x2472a9[0x0]['attributes']['groupId']!==_0x2c9897[0x0]['attributes']['groupId']&&_0x2472a9[0x0]['author']!==_0x2c9897[0x0]['author'])return!0x1;if(!function(_0xc3f370,_0x155395){if(!_0xc3f370['hasComments']&&!_0x155395['hasComments'])return!0x0;if(_0xc3f370['hasComments']&&_0x155395['hasComments'])return!0x1;if(_0xc3f370['hasComments']&&_0x155395['createdAt']<_0xc3f370['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x155395['hasComments']&&_0xc3f370['createdAt']<_0x155395['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2472a9[0x0],_0x2c9897[0x0]))return!0x1;const _0x3b8781=Tt(_0x2472a9[0x0]['attributes'],'groupId'),_0x3da24c=Tt(_0x2c9897[0x0]['attributes'],'groupId');if(!_0x7c6596(_0x3b8781,_0x3da24c))return!0x1;return!!_0x2472a9['every'](_0x2c3387=>_0x2c9897['some'](_0x3777f1=>_0x2c3387['getFirstRange']()['isEqual'](_0x3777f1['getFirstRange']())))&&_0x2c9897['every'](_0x44e09b=>_0x2472a9['some'](_0x1ba3c7=>_0x44e09b['getFirstRange']()['isEqual'](_0x1ba3c7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x497b92){const _0x1d919e=Array['from'](_0x497b92),_0x2032cb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x123a2b=_0x2032cb['filter'](_0x23fd75=>!_0x497b92['has'](_0x23fd75)),_0x538778=new Map(_0x1d919e['map'](_0x1abe79=>[_0x1abe79,this['_suggestionFactory']['getSuggestionCallback'](_0x1abe79['type'],_0x1abe79['subType'],'join')])),_0x2570e7=new Map(_0x2032cb['map'](_0x1998d7=>[_0x1998d7,_0x1998d7['getRanges']()]));for(let _0x3c82e9=0x0;_0x3c82e9<_0x1d919e['length'];_0x3c82e9++){if(_0xb98986(this,_0x1d919e[_0x3c82e9],_0x1d919e,_0x3c82e9+0x1))return!0x0;}for(let _0x7ea7a1=0x0;_0x7ea7a1<_0x1d919e['length'];_0x7ea7a1++){if(_0xb98986(this,_0x1d919e[_0x7ea7a1],_0x123a2b,0x0))return!0x0;}return!0x1;function _0xb98986(_0x50817e,_0x3d01ca,_0x40396c,_0x54a183){for(let _0x704f55=_0x54a183;_0x704f55<_0x40396c['length'];_0x704f55++){const _0x32e755=_0x40396c[_0x704f55];if(_0x32e755['type']!==_0x3d01ca['type']||_0x32e755['author']['id']!==_0x3d01ca['author']['id']||_0x32e755['subType']!==_0x3d01ca['subType'])continue;if(!Jt(_0x3d01ca,_0x32e755))continue;if('attribute'==_0x3d01ca['type']&&_0x3d01ca['data']['oldValue']!=_0x32e755['data']['oldValue'])continue;if('attribute'==_0x3d01ca['type']&&_0x50817e['_isBlockAttribute'](_0x3d01ca['data']['key']))continue;if('formatBlock'==_0x3d01ca['type']){const _0x19e947=_0x50817e['editor']['model'],_0x4161a2=_0x3d01ca['getContainedElement']();if(_0x4161a2&&(_0x19e947['schema']['isObject'](_0x4161a2)||_0x19e947['schema']['isLimit'](_0x4161a2)))continue;}const _0x3533f2=_0x538778['get'](_0x3d01ca),_0x3652e5=_0x2570e7['get'](_0x3d01ca),_0x5f4e5c=_0x2570e7['get'](_0x32e755),_0x3cbf53=_0x3d01ca['commentThread']&&_0x3d01ca['commentThread']['length'],_0x5493e3=_0x32e755['commentThread']&&_0x32e755['commentThread']['length'];if(!_0x3cbf53&&_0x3533f2(_0x5f4e5c,_0x3652e5))return _0x50817e['_joinSuggestions'](_0x32e755,_0x3d01ca),_0x2570e7['delete'](_0x3d01ca),!0x0;if(!_0x5493e3&&_0x3533f2(_0x3652e5,_0x5f4e5c))return _0x50817e['_joinSuggestions'](_0x3d01ca,_0x32e755),_0x2570e7['delete'](_0x32e755),!0x0;}return!0x1;}}['_joinSuggestions'](_0x589dd4,_0x38fdea){if(_0x589dd4['isMultiRange']){for(const _0x4f8ea5 of _0x38fdea['getRanges']())_0x589dd4['addRange'](_0x4f8ea5);}else{const _0x543aea=_0x38fdea['getFirstRange']()['end'];this['_setSuggestionRange'](_0x589dd4,this['_model']['createRange'](_0x589dd4['getFirstRange']()['start'],_0x543aea));}_0x38fdea['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4c30eb,_0x2f9533,_0x31e816){const _0x198fe6=_0x4c30eb['startsWith']('format')||_0x4c30eb['startsWith']('attribute')?'FORMATTING':_0x4c30eb['toUpperCase']();return o(this['editor']['locale'],_0x2f9533+'_'+_0x198fe6+'_SUGGESTION_ANNOUNCEMENT',_0x31e816);}['_initAriaMarkerChangeAnnouncements'](){const _0x60a90c=this['editor'];if(!_0x60a90c['ui'])return;const {ariaLiveAnnouncer:_0x164456}=_0x60a90c['ui'];_0x1e6588(this['_model'],({left:_0x18eaa5,entered:_0x3cbbdb})=>{for(const _0xdf028c of _0x18eaa5){const {group:_0x524837,type:_0x17409f}=this['_splitMarkerName'](_0xdf028c['name']);if('suggestion'===_0x524837){_0x164456['announce'](this['_getMarkerAnnouncementText'](_0x17409f,'LEAVE'));break;}}for(const _0x2b45cc of _0x3cbbdb){const {group:_0x342dd1,type:_0x240090}=this['_splitMarkerName'](_0x2b45cc['name']);if('suggestion'===_0x342dd1){_0x164456['announce'](this['_getMarkerAnnouncementText'](_0x240090,'ENTER',_0x169b2b(_0x5aa4d2)));break;}}});}['_processAttributeChanges'](_0x218fee){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2ed486=this['editor'],_0x43ec66=_0x2ed486['model']['document']['differ']['getChanges']();if(0x0==_0x43ec66['length'])return!0x1;const _0x2192bf=[],_0x358771=_0x43ec66['filter'](_0xc76cd5=>'attribute'==_0xc76cd5['type']),_0x441348=_0x43ec66['filter'](_0x398102=>'insert'==_0x398102['type']&&'$text'!=_0x398102['name']),_0x533a7a=_0x43ec66['filter'](_0x39d3ac=>'remove'==_0x39d3ac['type']&&'$text'!=_0x39d3ac['name']);for(const _0x4ddb42 of _0x358771)_0x2192bf['push']({'key':_0x4ddb42['attributeKey'],'newValue':_0x4ddb42['attributeNewValue'],'oldValue':_0x4ddb42['attributeOldValue'],'range':Pt(_0x4ddb42['range'],_0x2ed486['model'])});for(const _0x584e1d of _0x441348){const _0x3235d3=_0x533a7a['find'](_0x537162=>_0x537162['position']['isEqual'](_0x584e1d['position']));_0x3235d3&&_0x2192bf['push']({'key':m,'newValue':_0x584e1d['name'],'oldValue':_0x3235d3['name'],'range':_0x2ed486['model']['createRangeOn'](_0x584e1d['position']['nodeAfter'])});}return 0x0!=_0x2192bf['length']&&this['_reduceExistingSuggestions'](_0x218fee,_0x2192bf);}['_processAttributeSuggestions'](_0xfa281e){let _0x341ba5=!0x1;const _0x33b059=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5d8c0a=>_0x5d8c0a['data']['newRange']&&_0x5d8c0a['name']['startsWith']('suggestion:attribute:'));for(const _0x30ebf3 of _0x33b059){const {subType:_0xc51c65,id:_0x5578c3}=this['_splitMarkerName'](_0x30ebf3['name']),_0x1c992d=_0xc51c65['split']('|')[0x0];for(const _0x1d343a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1d343a['id']!=_0x5578c3&&'attribute'==_0x1d343a['type']&&_0x1d343a['data']&&_0x1d343a['data']['key']==_0x1c992d&&_0x1d343a['getFirstRange']()['isIntersecting'](_0x30ebf3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1d343a,_0x30ebf3['data']['newRange'],_0xfa281e),_0x341ba5=!0x0);}return _0x341ba5;}['_recordAttributeChanges'](_0x5619d6){this['_recordAttributeSuggestions']=!0x0,_0x5619d6();}['_isRegisteredAttribute'](_0x109efe){const _0x3a9dd3=this['_isBlockAttribute'](_0x109efe),_0x22b46f=this['_inlineAttributeKeys']['has'](_0x109efe);return _0x3a9dd3||_0x22b46f;}['_reduceExistingSuggestions'](_0x827a7b,_0x306e4a){if(0x0==_0x306e4a['length'])return!0x1;let _0x196864=!0x1;for(const _0x390ef7 of _0x306e4a){const _0x1d967c=this['_findSuggestions'](_0x390ef7['range'],'attribute')['filter'](_0x50deda=>!_0x50deda['meta']['isNextTo'])['map'](_0x724eb0=>_0x724eb0['suggestion']),_0x513d1e=_0x133608({'newValue':_0x390ef7['newValue']});_0x1d967c['filter'](_0x56032b=>{const [_0x1d1b7d,_0x139976]=_0x56032b['subType']['split']('|');return _0x1d1b7d==_0x390ef7['key']&&_0x139976!=_0x513d1e;})['forEach'](_0x1ffc0=>{this['_reduceSuggestionAttributeRange'](_0x1ffc0,_0x390ef7['range'],_0x827a7b),_0x196864=!0x0;});}return _0x196864;}['_reduceSuggestionAttributeRange'](_0x3d7906,_0x50f60e,_0x2c6bc3){const _0x502350=_0x3d7906['getFirstRange']()['getDifference'](_0x50f60e);0x0!==_0x502350['length']?0x1!==_0x502350['length']?this['_breakSuggestionMarker'](_0x3d7906,_0x50f60e['start'],_0x50f60e['end']):this['_setSuggestionRange'](_0x3d7906,_0x502350[0x0]):_0x2c6bc3['removeMarker'](_0x3d7906['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1bf9a0){this['_editor']=_0x1bf9a0,this['_model']=_0x1bf9a0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4558f9,_0x2a876c,_0x42d694,_0x3d02f4,_0x2aeccb,_0x27edfa){return new u(this['_model'],{'type':_0x4558f9,'subType':_0x2a876c,'id':_0x42d694,'author':_0x3d02f4,'creator':_0x3d02f4,'attributes':_0x2aeccb,'onAttributesChange':_0x27edfa,'onAccept':(..._0x4038b0)=>this['getSuggestionCallback'](_0x4558f9,_0x2a876c,'accept')(..._0x4038b0),'onDiscard':(..._0x43b303)=>this['getSuggestionCallback'](_0x4558f9,_0x2a876c,'discard')(..._0x43b303)});}['registerCustomCallback'](_0x5d8b7f,_0x314d50,_0x309e4f,_0x2f0932){const _0x2a95f3=_0x5d8b7f+':'+_0x314d50+':'+_0x309e4f;this['_customCallbacks']['set'](_0x2a95f3,_0x2f0932);}['getSuggestionCallback'](_0x1be3b1,_0x121384,_0x4e3386){const _0x5df4b3=_0x1be3b1+':'+_0x121384+':'+_0x4e3386;return this['_customCallbacks']['get'](_0x5df4b3)||this['_defaultCallbacks']['get'](_0x1be3b1+':'+_0x4e3386);}['_registerDefaultCallbacks'](){const _0x4cfb65=()=>!0x1,_0x2c2919=_0x1b6328=>{_0x1b6328['sort']((_0x1692fa,_0x477227)=>_0x1692fa['start']['isBefore'](_0x477227['start'])?0x1:-0x1),this['_model']['change'](_0x59fa4b=>{for(const _0x187463 of _0x1b6328){let _0x60a718;_0x60a718=_0x187463['end']['isAtEnd']&&_0x187463['end']['parent']==_0x187463['start']['nodeAfter']?_0x59fa4b['createSelection'](_0x187463['start']['nodeAfter'],'on'):_0x59fa4b['createSelection'](_0x187463),this['_model']['deleteContent'](_0x60a718,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf8ef46=(_0x57c060,_0xa38427)=>{_0xa38427&&this['_model']['change'](_0x234444=>{const {commandName:_0x5313ca,commandParams:_0x3c6cae=[]}=_0xa38427,_0x471c4f=_0x57c060['map'](_0x4347b2=>(Vt(_0x4347b2)&&(_0x4347b2=this['_model']['createRange'](_0x4347b2['end'])),_0x4347b2))['filter'](_0x32549a=>'$graveyard'!==_0x32549a['root']['rootName']);if(_0x471c4f['length']<0x1)return;const _0x1c788b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x44050c=>_0x425d25['fromRange'](_0x44050c));_0x234444['setSelection'](_0x471c4f);for(const _0x2d4322 of this['_editor']['commands']['commands']())_0x2d4322['refresh']();_0x3c6cae['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5313ca,..._0x3c6cae);const _0x492f0b=_0x1c788b['filter'](_0x1b4c30=>'$graveyard'!=_0x1b4c30['root']['rootName']);_0x492f0b['length']>0x0&&_0x234444['setSelection'](_0x492f0b);for(const _0x3e4610 of _0x1c788b)_0x3e4610['detach']();});},_0x380b00=(_0x12dc28,_0x38fbe3)=>0x1==_0x12dc28['length']&&0x1==_0x38fbe3['length']&&_0x12dc28[0x0]['end']['isEqual'](_0x38fbe3[0x0]['start']),_0x12ee3a=(_0x2ddb0e,_0x2014e7,_0xf73a7b,_0x3bd000)=>Ht(_0x2ddb0e,_0x2014e7,_0xf73a7b,_0x3bd000,this['_model'])?[_0x2ddb0e,_0x2014e7]:Ht(_0x2014e7,_0x2ddb0e,_0x3bd000,_0xf73a7b,this['_model'])?[_0x2014e7,_0x2ddb0e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4cfb65),this['_defaultCallbacks']['set']('insertion:discard',_0x2c2919),this['_defaultCallbacks']['set']('insertion:join',_0x380b00),this['_defaultCallbacks']['set']('insertion:chain',_0x12ee3a),this['_defaultCallbacks']['set']('deletion:accept',_0x2c2919),this['_defaultCallbacks']['set']('deletion:discard',_0x4cfb65),this['_defaultCallbacks']['set']('deletion:join',_0x380b00),this['_defaultCallbacks']['set']('deletion:chain',_0x12ee3a),this['_defaultCallbacks']['set']('formatInline:accept',_0xf8ef46),this['_defaultCallbacks']['set']('formatInline:discard',_0x4cfb65),this['_defaultCallbacks']['set']('formatInline:join',_0x380b00),this['_defaultCallbacks']['set']('formatInline:chain',_0x4cfb65),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf8ef46),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4cfb65),this['_defaultCallbacks']['set']('formatBlock:join',_0x380b00),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4cfb65),this['_defaultCallbacks']['set']('attribute:accept',_0x4cfb65),this['_defaultCallbacks']['set']('attribute:discard',(_0x208ff7,_0x43ff88)=>{if(!_0x43ff88)return;const _0x2b94d5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4af484=>{if(_0x43ff88['key']==m)for(const _0x53b433 of _0x208ff7){const _0xa1d2d4=_0x53b433['start']['nodeAfter'],_0x510887=_0x43ff88['oldValue'];_0x4af484['rename'](_0xa1d2d4,_0x510887);}else{if(_0x2b94d5['_isBlockAttribute'](_0x43ff88['key'])){for(const _0x330f08 of _0x208ff7)void 0x0!==_0x43ff88['oldValue']?_0x4af484['setAttribute'](_0x43ff88['key'],_0x43ff88['oldValue'],_0x330f08['start']['nodeAfter']):_0x4af484['removeAttribute'](_0x43ff88['key'],_0x330f08['start']['nodeAfter']);}else{for(const _0xf3646c of _0x208ff7)_0x43ff88['oldValue']?_0x4af484['setAttribute'](_0x43ff88['key'],_0x43ff88['oldValue'],_0xf3646c):_0x4af484['removeAttribute'](_0x43ff88['key'],_0xf3646c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x380b00);}}function Ot(_0x44ebb5,_0x300fdd,_0x110842){for(const _0x122c1e of _0x300fdd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x122c1e['root']==_0x122c1e)return!0x1;if(!_0x110842['containsItem'](_0x122c1e))return!0x1;if(_0x44ebb5['isObject'](_0x122c1e)||_0x44ebb5['isLimit'](_0x122c1e))return!0x0;}return!0x1;}function Vt(_0x1abae2){return _0x1abae2['end']['parent']==_0x1abae2['start']['nodeAfter']&&_0x1abae2['end']['isAtStart'];}function Ut(_0x9bf972,_0x554cc4,_0x3b79f8,_0x24144d){const _0x914a86=_0x35ff03=>!_0x35ff03['item']['is']('$textProxy')&&!_0x24144d['isObject'](_0x35ff03['item']),_0x500e59=_0x9bf972['start']['getLastMatchingPosition'](_0x914a86),_0xece724=_0x9bf972['end']['getLastMatchingPosition'](_0x914a86,{'direction':'backward'});return(!_0x9bf972['start']['isEqual'](_0x500e59)||!_0x9bf972['end']['isEqual'](_0xece724))&&(_0x500e59['isBefore'](_0xece724)?_0x3b79f8['updateMarker'](_0x554cc4,{'range':_0x3b79f8['createRange'](_0x500e59,_0xece724)}):_0x3b79f8['removeMarker'](_0x554cc4),!0x0);}function Gt(_0x313b61){return _0x133608(_0x313b61);}function Ft(_0x336dc6){const _0x5694fe=_0x336dc6['start']['nodeAfter'];return _0x5694fe&&_0x5694fe['is']('element');}function Pt(_0xcfe40e,_0x234b0e){return null==_0xcfe40e['end']['nodeBefore']&&_0xcfe40e['end']['parent']==_0xcfe40e['start']['nodeAfter']?Lt(_0xcfe40e['start']['nodeAfter'],_0x234b0e):_0xcfe40e;}function Lt(_0x5b718e,_0x51207b){const _0x46b594=_0x51207b['schema']['isObject'](_0x5b718e)||_0x51207b['schema']['isSelectable'](_0x5b718e);return _0x51207b['createRange'](_0x51207b['createPositionAt'](_0x5b718e,'before'),_0x46b594?_0x51207b['createPositionAfter'](_0x5b718e):_0x51207b['createPositionAt'](_0x5b718e,'end'));}function Ht(_0x484fad,_0x231449,_0x5c1307,_0x35526d,_0x3146e4){if(_0x484fad['next'])return!0x1;if(!Jt(_0x484fad,_0x231449))return!0x1;if(_0x5c1307['end']['isEqual'](_0x35526d['start']))return!0x0;if(_0x484fad['type']!=_0x231449['type'])return!0x1;if(!_0x5c1307['end']['isTouching'](_0x35526d['start']))return!0x1;const _0x4ec0dd=_0x3146e4['createRange'](_0x5c1307['end'],_0x35526d['start'])['getWalker']();for(const _0x51fa10 of _0x4ec0dd)if(['elementStart','elementEnd']['includes'](_0x51fa10['type'])&&_0x3146e4['schema']['isLimit'](_0x51fa10['item']))return!0x1;return!0x0;}function Jt(_0x33b15c,_0x770793){if(!_0x33b15c['_isDataLoaded']||!_0x770793['_isDataLoaded'])return!0x1;const _0x3de034=new Set(Object['keys'](_0x33b15c['attributes'])),_0x4b41c1=new Set(Object['keys'](_0x770793['attributes']));if(_0x3de034['delete']('groupId'),_0x4b41c1['delete']('groupId'),0x0==_0x3de034['size']&&0x0==_0x4b41c1['size'])return!0x0;if(_0x3de034['size']!=_0x4b41c1['size'])return!0x1;const _0x9906a3={..._0x33b15c['attributes']},_0x415262={..._0x770793['attributes']};return delete _0x9906a3['groupId'],delete _0x415262['groupId'],JSON['stringify'](_0x9906a3)==JSON['stringify'](_0x415262);}function qt(_0x4a4150,_0x56e65b){const _0x1b227f=zt(_0x4a4150['attributes']),_0x18e8fa=zt(_0x56e65b);if(!_0x4a4150['_isDataLoaded'])return!0x1;for(const _0x280f53 of Object['keys'](_0x18e8fa))if(!_0x7c6596(_0x1b227f[_0x280f53],_0x18e8fa[_0x280f53]))return!0x1;return!0x0;}function zt(_0x325bf1){const _0xf3f257=Object['assign']({},_0x325bf1);return delete _0xf3f257['skipNestingCheck'],delete _0xf3f257['tablePasteChainId'],_0xf3f257;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x4d2569(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x474196,_0x2ce570,_0x2a8381,_0x1f9542){super(),this['model']=_0x2ce570,this['view']=_0x2a8381,this['commentThreadController']=_0x1f9542,this['_editor']=_0x474196,this['_acceptCommand']=_0x474196['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x474196['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xfc632,_0x51b46f)=>_0xfc632||_0x51b46f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3db5b4=>_0x3db5b4&&this['_editor']['model']['canEditAt'](_0x2ce570['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4e8ce6=>_0x4e8ce6&&this['_editor']['model']['canEditAt'](_0x2ce570['getRanges']())),this['_pendingAction']=null,_0x2a8381['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2a8381,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2a8381,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2a8381,'change:isDirty',()=>{_0x2a8381['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 _0x3642f9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3642f9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5bb25a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xf20279,_0x6216d4,_0x321154,_0xa89840){super(_0xf20279),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x253816(_0xf20279,o(_0xf20279,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x6216d4['authoredAt']),this['bind']('authoredAt')['to'](_0x6216d4),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',_0x6216d4,'authoredAt',this,'descriptionParts',(_0x4d6b48,_0x443017,_0x3c6c8a)=>{const _0x298733=_0x3c6c8a['map'](_0x39743d=>ls(_0x39743d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4d6b48-0x1,_0x6216d4['author']['name'],_0x443017?_0xa89840['formatDateTime'](_0x443017):'',new DOMParser()['parseFromString'](_0x298733,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4a3579(),this['focusTracker']=new _0x300501(),this['keystrokes']=new _0x47e191(),this['focusCycler']=new _0x16bf8f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2a86b0=>_0x2a86b0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x6216d4,this['_localUser']=_0x321154,this['_config']=_0xa89840,_0xa89840['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x6d2ff4(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x246380}=this['_config'];this['commentsListView']=new _0x246380(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',_0x4d156b=>_0x4d156b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x54b2d9,_0x59db54)=>_0x54b2d9||!!_0x59db54);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x52605c}=this['_config'],_0x49d592=new _0x52605c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2c0e7f=_0x49d592['commentInputView'];return _0x49d592['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2c0e7f,'value',(_0x443875,_0xf57078,_0x5157a3)=>!!_0x5157a3||_0x443875&&!_0xf57078),_0x2c0e7f['on']('submit',(_0x423403,_0x16a545)=>{this['fire']('addComment',_0x16a545),_0x2c0e7f['editor']['setData']('');}),_0x2c0e7f['on']('cancel',()=>this['focus']()),_0x2c0e7f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x49d592;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5b0b84,_0x22597f,_0x587536,_0x17e9c0){super(_0x5b0b84,_0x22597f,_0x587536,_0x17e9c0),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x17ef8e=>_0x17ef8e&&_0x17ef8e[0x0]?_0x17ef8e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3b4945,_0x252d38)=>{let _0x330cd1='';for(const _0x291d7e of _0x3b4945)_0x330cd1+='<p>'+ls(_0x291d7e['content'],_0x291d7e['color'])+'</p>';return _0x252d38?_0x330cd1:_0xb42aa1(_0x330cd1,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x17e9c0['SuggestionView'](_0x5b0b84,_0x22597f,{'formatDateTime':_0x17e9c0['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 _0x1b586a=this['bindTemplate'],_0x3230bb=[this['suggestionView']];return this['commentsListView']&&_0x3230bb['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3230bb['push'](this['commentThreadInputView']),_0x3230bb['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1b586a['if']('isActive','ck-suggestion-wrapper--active'),_0x1b586a['to']('type',_0x2021b6=>'ck-suggestion-'+_0x2021b6),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':_0x1b586a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3230bb};}['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 ce extends _0x5bb25a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x58df79,_0x12b970,_0x3f8876){super(_0x58df79),this['_model']=_0x12b970,this['_config']=_0x3f8876,this['set']('description',''),this['bind']('authoredAt')['to'](_0x12b970),this['acceptButton']=this['_createButton'](o(_0x58df79,'Accept\x20suggestion'),_0xcc8d03['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x58df79,'Discard\x20suggestion'),_0xcc8d03['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x24025d(_0x58df79,_0x12b970['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4a3579([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x300501(),this['keystrokes']=new _0x47e191(),this['focusCycler']=new _0x16bf8f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x55086b=>_0x55086b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x59fdf7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x59fdf7['innerHTML']=this['description'],this['on']('change:description',(_0x3e0726,_0x328844,_0x24d008)=>{_0x59fdf7['innerHTML']=_0x24d008;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3d50b7=this['bindTemplate'],_0x397ac6=[{'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']}},{'tag':'time','attributes':{'datetime':_0x3d50b7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3d50b7['to']('authoredAt',_0x9f9b4b=>this['_config']['formatDateTime'](_0x9f9b4b))}]}]},{'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']&&_0x397ac6['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':_0x397ac6}]};}['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'](_0xaa8ffc,_0x42afb6,_0x102e58,_0x586395,_0x4a7a2f){const _0x55481a=new _0x58bb35(this['locale']);return _0x55481a['set']({'label':_0xaa8ffc,'icon':_0x42afb6,'tooltip':!0x0,'tooltipPosition':_0x4a7a2f}),_0x55481a['extendTemplate']({'attributes':{'class':_0x102e58}}),_0x55481a['on']('execute',()=>{this['fire'](_0x586395,this['_model']['id']);}),_0x55481a;}['_setupKeyboardNavigation'](){const _0x59dd06=this['element'];this['keystrokes']['listenTo'](_0x59dd06);for(const _0x5ed06f of this['focusables'])this['focusTracker']['add'](_0x5ed06f['element']),this['keystrokes']['listenTo'](_0x5ed06f['element']);this['keystrokes']['set']('enter',(_0x13d063,_0x483e08)=>{_0x59dd06===_0x13d063['target']&&(this['focusCycler']['focusFirst'](),_0x483e08());}),this['keystrokes']['set']('esc',(_0x321c30,_0x53f603)=>{_0x59dd06!==_0x321c30['target']&&(this['focus'](),_0x53f603());});}}var he='<!--\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-2024,\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 _0xd0fe4f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2a2d95,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1ac7f4){super(_0x1ac7f4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a5ca3=this['editor']['config'];_0x4a5ca3['define']('trackChanges.SuggestionThreadView',re),_0x4a5ca3['define']('trackChanges.SuggestionView',ce),_0x4a5ca3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a5ca3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x8fc6d2,_0x10cb8b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1e78c6,_0x2a5bed]of this['_handleControllerBuffer']){const _0xc090a0=this['_suggestionToController']['has'](_0x1e78c6);_0xc090a0||_0x2a5bed?_0xc090a0&&_0x2a5bed&&this['_destroyController'](_0x1e78c6):this['_initializeController'](_0x1e78c6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x8fc6d2,_0x10cb8b);}['init'](){const _0x36268e=this['editor'],_0x2793f3=_0x36268e['plugins']['get']('TrackChangesEditing'),_0xdc1317=_0x36268e['plugins']['get']('Annotations'),_0x17fcdd=_0x36268e['plugins']['get']('EditorAnnotations'),_0x554b77=_0x36268e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x17fcdd['addSourceCollector'](()=>{const _0x4f793e=[];for(const [_0x4e4f3c,_0x5d8856]of Array['from'](this['_suggestionToController'])){const _0x1d8401=_0x4e4f3c['getAllAdjacentSuggestions'](),_0x578dd3=[];for(const _0x3d20cb of _0x1d8401){if(!_0x3d20cb['isInContent'])continue;if(_0x3d20cb['isMultiRange']){_0x578dd3['push'](..._0x3d20cb['getRanges']());continue;}const _0x165b4a=_0x3d20cb['getFirstRange']();if(_0x578dd3['length']>0x0){const _0x3ae41b=_0x578dd3[0x0]['getJoined'](_0x165b4a);if(_0x3ae41b){_0x578dd3[0x0]=_0x3ae41b;continue;}}_0x578dd3['push'](_0x165b4a);}_0x4f793e['push']([_0x5d8856['view'],_0x578dd3]);}return _0x4f793e;}),this['listenTo'](_0x2793f3,'suggestionLoaded',(_0x32c821,_0x34c034)=>{this['listenTo'](_0x34c034,'change:previous',(_0x1a056c,_0x4eb8f3,_0x15fc54,_0x4aa75c)=>{_0x34c034['isInContent']&&(null==_0x15fc54?(this['_updateController'](_0x4aa75c['head']),this['_handleSuggestionControllerDelayed'](_0x34c034,!0x1)):(this['_updateController'](_0x15fc54['head']),null==_0x4aa75c&&this['_handleSuggestionControllerDelayed'](_0x34c034,!0x0)));}),null!==_0x34c034['previous']?this['_updateController'](_0x34c034['head']):this['_handleSuggestionControllerDelayed'](_0x34c034,!0x1);}),this['listenTo'](_0x2793f3,'suggestionUnloaded',(_0x5d6f41,_0x237a5c,_0x155ddd)=>{this['stopListening'](_0x237a5c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x237a5c),this['_suggestionToController']['has'](_0x237a5c)&&this['_destroyController'](_0x237a5c),_0x155ddd&&this['_updateController'](_0x155ddd['head']);}),this['listenTo'](_0x2793f3,'suggestionChanged',(_0x253cfa,_0x448a80)=>{this['_updateController'](_0x448a80);}),this['listenTo'](_0xdc1317,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x554b77,'addComment',(_0x5735d0,{threadId:_0x2e9212,isFromAdapter:_0x5d5159})=>{if(_0x5d5159||!_0x2793f3['hasSuggestion'](_0x2e9212))return;const _0x443f28=_0x2793f3['getSuggestion'](_0x2e9212);this['_suggestionToController']['get'](_0x443f28)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4b208e=this['editor']['plugins']['get']('Annotations'),_0x1cf039=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16f3d1=Array['from'](_0x4b208e['activeAnnotations'],_0x52a3c4=>_0x52a3c4['innerView'])['filter'](_0x30077e=>this['_viewToController']['has'](_0x30077e)),_0x2033e5=[];for(const _0x1d5579 of _0x16f3d1){const _0x2db60=this['_viewToController']['get'](_0x1d5579)['model']['getAllAdjacentSuggestions']();_0x2033e5['push'](..._0x2db60['reduce']((_0x5a880f,_0x5b5d8b)=>[..._0x5a880f,..._0x5b5d8b['getMarkerNames']()],[]));}_0x1cf039['activeMarkers']=_0x2033e5;}['_addUIComponentsToFactory'](){const _0x1f70d4=this['editor'],_0x256694=_0x1f70d4['locale'],_0x180e00=o(_0x256694,'Track\x20changes'),_0x46d387=new Wt([{'type':'switchbutton','model':new _0x568c43({'withText':!0x0,'isToggleable':!0x0,'label':_0x180e00,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x568c43({'withText':!0x0,'label':o(_0x256694,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x568c43({'withText':!0x0,'label':o(_0x256694,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x568c43({'withText':!0x0,'label':o(_0x256694,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x568c43({'withText':!0x0,'label':o(_0x256694,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x10d356 of _0x46d387)if(me(_0x10d356)){const _0x16df51=_0x1f70d4['commands']['get'](_0x10d356['model']['commandName']);_0x10d356['model']['bind']('isOn','isEnabled')['to'](_0x16df51,'value','isEnabled');}_0x1f70d4['ui']['componentFactory']['add']('trackChanges',_0x1e9fe=>this['_createToolbarButton'](_0x1e9fe,_0x46d387,_0x180e00)),_0x1f70d4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1f3a63=>this['_createMenuBarMenu'](_0x1f3a63,_0x46d387,_0x180e00));}['_createToolbarButton'](_0x400f67,_0x34d6e1,_0x14a524){const _0x12a295=Qt(_0x400f67,_0x4192af),_0x546487=this['editor']['commands']['get']('trackChanges');_0x12a295['buttonView']['set']({'tooltip':_0x14a524,'label':_0x14a524,'icon':he}),_0x12a295['buttonView']['bind']('isOn')['to'](_0x546487,'value'),_0x12a295['buttonView']['on']('execute',()=>{_0x546487['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x12a295,_0x34d6e1,{'role':'menu'});const _0x52d613=[];for(const _0x52dccb of _0x34d6e1)me(_0x52dccb)&&_0x52d613['push'](this['editor']['commands']['get'](_0x52dccb['model']['commandName']));const _0x2214ab=_0x12a295['buttonView'];return _0x2214ab['actionView']['unbind']('isEnabled'),_0x2214ab['arrowView']['unbind']('isEnabled'),_0x2214ab['actionView']['bind']('isEnabled')['to'](_0x546487,'isEnabled'),_0x2214ab['arrowView']['bind']('isEnabled')['toMany'](_0x52d613,'isEnabled',(..._0x59e740)=>_0x59e740['some'](_0x49109d=>_0x49109d)),_0x12a295['on']('execute',_0x289478=>{this['editor']['execute'](_0x289478['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x12a295;}['_createMenuBarMenu'](_0x584268,_0x44b292,_0x1dbedd){const _0x1640df=new Yt(_0x584268),_0x436c87=this['editor']['commands']['get']('trackChanges');_0x1640df['buttonView']['set']({'label':_0x1dbedd,'icon':he});const _0x37a9d1=new Zt(_0x584268);for(const _0x25f36a of _0x44b292){if('separator'==_0x25f36a['type']){_0x37a9d1['items']['add'](new Xt(_0x584268));continue;}const _0x593de6=new te(_0x584268,_0x1640df),_0x5a8d8a=new _0x169749(_0x584268),_0x84ef34=_0x25f36a['model'];_0x5a8d8a['bind'](...Object['keys'](_0x84ef34))['to'](_0x84ef34),_0x5a8d8a['delegate']('execute')['to'](_0x1640df),_0x5a8d8a['on']('execute',()=>{this['editor']['execute'](_0x84ef34['commandName']),this['editor']['editing']['view']['focus']();}),_0x593de6['children']['add'](_0x5a8d8a),_0x37a9d1['items']['add'](_0x593de6);}return _0x1640df['bind']('isEnabled')['to'](_0x436c87,'isEnabled'),_0x1640df['panelView']['children']['add'](_0x37a9d1),_0x1640df;}['_initializeController'](_0x242d98){const _0x557528=this['editor'],_0x10956=_0x557528['config'],_0x1d5b9a=_0x557528['plugins']['get']('Annotations'),_0x53729a=_0x557528['plugins']['get']('CommentsRepository'),_0x2e1f70=_0x557528['plugins']['get']('EditorAnnotations'),_0xb5564b=_0x557528['plugins']['get'](_0x2a2d95)['me'],_0x3f6951=_0x10956['get']('trackChanges')['SuggestionThreadView'],_0x4dfec1=_0x10956['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3ffd25,CommentThreadInputView:_0x5ea090}=_0x557528['plugins']['get']('CommentsUI');let _0xfaa089,_0x3e44c7,_0x5b3ea4;this['_annotationViews']['has'](_0x242d98['id'])?(_0x3e44c7=this['_annotationViews']['get'](_0x242d98['id']),_0xfaa089=_0x3e44c7['mainView']):(_0xfaa089=new _0x3f6951(_0x557528['locale'],_0x242d98,_0xb5564b,{'disableComments':this['_disableComments'],'editorConfig':_0x10956['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x10956['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x10956['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x10956['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5cadd8(_0x10956['get']('locale')),'CommentView':_0x10956['get']('comments')['CommentView'],'CommentsListView':_0x3ffd25,'CommentThreadInputView':_0x5ea090,'SuggestionView':_0x4dfec1}),_0xfaa089['suggestionView']['acceptButton']['on']('execute',()=>{_0x557528['editing']['view']['focus']();}),_0xfaa089['suggestionView']['discardButton']['on']('execute',()=>{_0x557528['editing']['view']['focus']();}),_0x3e44c7=_0x1d5b9a['createAnnotationView'](this['editor']['locale'],_0xfaa089),_0x3e44c7['bind']('isDirty')['to'](_0xfaa089,'isDirty'),_0x3e44c7['bind']('length')['to'](_0xfaa089),_0x3e44c7['bind']('type')['to'](_0xfaa089,'type',_0x3cfafa=>'suggestion-'+_0x3cfafa),_0xfaa089['on']('escape',()=>{_0x5b3ea4['fire']('escape');}),this['_annotationViews']['set'](_0x242d98['id'],_0x3e44c7));const _0x83e915=_0x53729a['createCommentThreadController'](_0x242d98['commentThread'],_0xfaa089),_0x504092=new ae(_0x557528,_0x242d98,_0xfaa089,_0x83e915),_0x55469b=_0x242d98['getAllAdjacentSuggestions']()['filter'](_0x3e0665=>_0x3e0665['isInContent']);_0xfaa089['descriptionParts']=_0x557528['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x55469b),this['_suggestionToController']['set'](_0x242d98,_0x504092),this['_viewToController']['set'](_0xfaa089,_0x504092),_0x5b3ea4=_0x1d5b9a['createAnnotation']({'view':_0x3e44c7,'target':()=>{const _0xe549c=[],_0x26af39=_0x242d98['getAllAdjacentSuggestions']()['filter'](_0x4730fc=>_0x4730fc['isInContent']);for(const _0x21c39b of _0x26af39)_0xe549c['push'](..._0x21c39b['getMarkers']());return _0x435996(_0x557528['editing'],_0xe549c);},'type':()=>'suggestion-'+_0x504092['view']['type']}),_0x53729a['_bindAnnotationToEditors'](_0xfaa089,_0x5b3ea4),_0x1d5b9a['add'](_0x5b3ea4),_0x2e1f70['registerAnnotation'](_0x5b3ea4);}['_destroyController'](_0xe4ea82){const _0x2cded5=this['editor']['plugins']['get']('CommentsRepository'),_0x5c9b04=this['editor']['plugins']['get']('Annotations'),_0x5de78b=this['_suggestionToController']['get'](_0xe4ea82),_0x501b02=_0x5de78b['view'],_0x531976=_0x5c9b04['getByInnerView'](_0x501b02);_0x2cded5['_unbindEditors'](_0x501b02),_0x531976&&_0x5c9b04['remove'](_0x531976),this['_suggestionToController']['delete'](_0xe4ea82),this['_viewToController']['delete'](_0x501b02),_0x5de78b['destroy']();}['_updateController'](_0x206c19){if(!_0x206c19['isInContent']||!this['_suggestionToController']['has'](_0x206c19))return;const _0x4c6de3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x498adc=this['_suggestionToController']['get'](_0x206c19),_0x1d3436=_0x206c19['getAllAdjacentSuggestions']();_0x498adc['view']['descriptionParts']=_0x4c6de3['descriptionFactory']['getDescriptions'](_0x1d3436);}['destroy'](){for(const _0xa1a440 of this['_suggestionToController']['keys']())this['_destroyController'](_0xa1a440);for(const _0x548bf8 of this['_annotationViews']['values']())_0x548bf8['mainView']['destroy']();super['destroy']();}}function me(_0xe550de){return'model'in _0xe550de;}class k extends _0xd0fe4f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x211ca3){this['editor']['plugins']['get'](p)['adapter']=_0x211ca3;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x34947f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x34947f);}['getSuggestions']({skipNotAttached:_0x278348=!0x1,toJSON:_0x381876=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x278348,'toJSON':_0x381876});}['getSuggestion'](_0x489e7c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x489e7c);}}const T=['Pagination'];class P extends _0xd0fe4f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x11eb86=this['editor'];if(_0x11eb86['config']['define']('trackChangesData.editorCreator',_0x500f61=>{const _0x1ea2ab=_0x11eb86['model']['document']['getRootNames']()['reduce']((_0x1841c2,_0x1ab0c2)=>(_0x1841c2[_0x1ab0c2]='',_0x1841c2),{});return _0x11eb86['constructor']['create'](_0x1ea2ab,_0x500f61);}),'function'!=typeof _0x11eb86['config']['get']('trackChangesData')['editorCreator'])throw new _0x10890c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x53603d){return N(this['editor'],!0x0,_0x53603d);}['getDataWithDiscardedSuggestions'](_0x217fa3){return N(this['editor'],!0x1,_0x217fa3);}}class D extends _0xd0fe4f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3e05ce){super(_0x3e05ce),this['result']='end';}['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 v(_0x23f4de){return void 0x0!==_0x23f4de['getRootsAttributes'];}async function N(_0x4dd035,_0x45e90a,_0x1ddcac){const _0xa5ac8f=_0x2e2961(_0x4dd035,T);_0xa5ac8f['plugins']['push'](p,D),_0xa5ac8f['rootsAttributes']=v(_0x4dd035)?_0x4dd035['getRootsAttributes']():void 0x0;const _0x2264fa=document['createDocumentFragment'](),_0x40cafb=_0x4dd035['config']['get']('trackChangesData')['editorCreator'],_0x48075f=await _0x40cafb(_0xa5ac8f,()=>function(_0x247ac1){const _0x3c3a0f=document['createElement']('div');return _0x247ac1['appendChild'](_0x3c3a0f),_0x3c3a0f;}(_0x2264fa));!function(_0x3e74d2,_0x39434b){const _0x1953dd=_0x3e74d2['model']['document']['getRootNames']()['reduce']((_0x5afdb1,_0x357b7b)=>(_0x5afdb1[_0x357b7b]=_0x3e74d2['data']['get']({'rootName':_0x357b7b}),_0x5afdb1),{}),_0x3dae93=_0x3e74d2['plugins']['get']('Users')['users']['map'](_0xc2ee36=>({'id':_0xc2ee36['id'],'name':_0xc2ee36['name']})),_0x54febd=_0x3e74d2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3e2e7d=_0x3e74d2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4ffeea=_0x39434b['plugins']['get']('Users'),_0x2fb432=_0x39434b['plugins']['get']('TrackChangesEditing'),_0x58e0d8=_0x39434b['plugins']['get']('CommentsRepository');for(const _0x57b045 of _0x58e0d8['getCommentThreads']())_0x57b045['remove']();for(const _0x332046 of _0x3dae93)_0x4ffeea['getUser'](_0x332046['id'])||_0x4ffeea['addUser'](_0x332046);_0x4ffeea['me']||_0x4ffeea['useAnonymousUser']();for(const _0x8e4984 of _0x3e2e7d)_0x58e0d8['addCommentThread'](_0x8e4984);for(const _0x122828 of _0x54febd)_0x2fb432['addSuggestionData'](_0x122828);_0x39434b['data']['set'](_0x1953dd);}(_0x4dd035,_0x48075f),_0x48075f['execute'](_0x45e90a?'acceptAllSuggestions':'discardAllSuggestions');const _0x14ef33=v(_0x48075f)?_0x48075f['getFullData'](_0x1ddcac):_0x48075f['data']['get'](_0x1ddcac);return await _0x48075f['destroy'](),_0x14ef33;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x58a0bc,PendingActions as _0xb7ca76,icons as _0x1d5681}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4ee7fd,ObservableMixin as _0x1ca92d,uid as _0x546e08,insertToPriorityArray as _0x188a5a,priorities as _0x44834d,logWarning as _0x4639c6,getEnvKeystrokeText as _0x1ca498,FocusTracker as _0x5423cf,KeystrokeHandler as _0x4ec4fb,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2f7d63,View as _0xa93036,ViewCollection as _0x3a64bc,FocusCycler as _0x261d2c,ViewModel as _0x590c00,createDropdown as Qt,SplitButtonView as _0x530bd8,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x397c51}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5983d1,hashObject as _0x4bbe82,surroundingMarkersDetector as _0x4f11ef,FOCUS_ANNOTATION_KEYSTROKE as _0x2e5bcc,AriaDescriptionView as _0x2f9985,setupThreadKeyboardNavigation as _0x3e3d09,trimHtml as _0x260589,UserView as _0xd53404,LateFocusButtonView as _0x55410d,getDateTimeFormatter as _0x2fcf1,getAllMarkersDomElementsSorted as _0x4d4b32,sanitizeEditorConfig as _0x4f17fa}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x15e4c1,LiveRange as _0x1ac7bd,LivePosition as _0x3a1667}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x325294,toWidget as _0x3601d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x15bc28,set as _0x75b7dd,isEqual as _0x11af30,unset as _0x47beff,omit as Tt}from'lodash-es';import{Delete as _0x45edbc,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4d33f4,ShiftEnter as _0x210491}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x19a794,_0x55ca76){super(_0x19a794),this['_enabledCommands']=_0x55ca76,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 _0x1b9f71 of this['editor']['commands']['commands']())_0x1b9f71['affectsData']&&!this['_enabledCommands']['has'](_0x1b9f71)&&_0x1b9f71['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3b5e69 of this['editor']['commands']['commands']())_0x3b5e69['affectsData']&&!this['_enabledCommands']['has'](_0x3b5e69)&&_0x3b5e69['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x4027c6,_0x7ea2a7){super(_0x4027c6),this['_suggestions']=_0x7ea2a7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x545188){const _0x4d8cad=this['_suggestions']['get'](_0x545188);if(!_0x4d8cad)throw new _0x4ee7fd('track-changes-accept-suggestion-not-found',this);const _0x14a77b=_0x4d8cad['getRanges']();this['editor']['model']['canEditAt'](_0x14a77b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4d8cad);}}class R extends ts{['_suggestions'];constructor(_0x2f88b6,_0x19e7ea){super(_0x2f88b6),this['_suggestions']=_0x19e7ea,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x353f43){const _0x537aa4=this['_suggestions']['get'](_0x353f43);if(!_0x537aa4)throw new _0x4ee7fd('track-changes-discard-suggestion-not-found',this);const _0x3b7543=_0x537aa4['getRanges']();this['editor']['model']['canEditAt'](_0x3b7543)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x537aa4);}}function ls(_0x4e5485,_0x2ca970){let _0x47a2aa='';return _0x47a2aa+=_0x4e5485['split']('*')['map']((_0x33324a,_0x4af6fb)=>_0x4af6fb%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x33324a)+'</span>':nn(_0x33324a))['join'](''),_0x2ca970&&(_0x47a2aa+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2ca970['value']+'\x22\x20title=\x22'+_0x2ca970['title']+'\x22></span>'),_0x47a2aa;}function nn(_0x466ed6){const _0x22fea3=document['createElement']('span');return _0x22fea3['innerText']=_0x466ed6,_0x22fea3['innerHTML'];}function ss(_0x31db2b){return _0x31db2b['sort']((_0x46b3d3,_0x4d88d4)=>'deletion'==_0x46b3d3['type']&&'deletion'!=_0x4d88d4['type']?-0x1:'deletion'!=_0x46b3d3['type']&&'deletion'==_0x4d88d4['type']?0x1:0x0);}function to(_0x2c60db,_0x17aac5){let _0x5b3915,_0x414cb9=0x0;const _0x131dc5=[],_0x5c396a=_0x17aac5['schema'];for(;_0x414cb9<_0x2c60db['length'];){const _0x6edc32=_0x2c60db[_0x414cb9],_0x3242b6=_0x2c60db[_0x414cb9+0x1];_0x5b3915||(_0x5b3915=_0x17aac5['createPositionBefore'](_0x6edc32)),on(_0x17aac5,_0x6edc32,_0x3242b6)||(_0x131dc5['push'](_0x17aac5['createRange'](_0x5b3915,_0x5c396a['isObject'](_0x6edc32)?_0x17aac5['createPositionAfter'](_0x6edc32):_0x17aac5['createPositionAt'](_0x6edc32,'end'))),_0x5b3915=null),_0x414cb9++;}return _0x131dc5;}function on(_0x4107ad,_0x321cf0,_0x394894){if(!_0x394894)return!0x1;const _0x33732b=_0x4107ad['createPositionAfter'](_0x321cf0),_0x269e82=_0x4107ad['createPositionBefore'](_0x394894);return _0x33732b['isTouching'](_0x269e82);}function rs(_0x4dcec4,_0x3a5d11,_0x3e1f4a){for(;_0x3e1f4a['length'];){const _0x4d9e5e=_0x3e1f4a['splice'](0x0,0x64);_0x4dcec4['change'](()=>{for(const _0x209e66 of _0x4d9e5e)_0x209e66['isInContent']&&_0x3a5d11['execute'](_0x209e66['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x1fe229,_0x58e409,_0x1fa61a){super(_0x1fe229),this['_command']=_0x58e409,this['_suggestions']=_0x1fa61a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5b3c57=Array['from'](this['_suggestions']['values']())['some'](_0x4d7e1f=>_0x4d7e1f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5b3c57;}['execute'](){const _0x349b0c=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1106da of _0x349b0c){const _0x67d9f5=_0x1106da['getRanges']();if(!this['editor']['model']['canEditAt'](_0x67d9f5))return;}rs(this['editor']['model'],this['_command'],_0x349b0c);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5e20f1,_0x6ad0ed,_0x1935e9){super(_0x5e20f1),this['_command']=_0x6ad0ed,this['_suggestions']=_0x1935e9,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x37ca43=this['editor']['model']['document']['selection'],_0x3e39a4=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x54c3cd,_0x16f7e9){const _0xa63681=Array['from'](_0x54c3cd['getRanges']()),_0x32c66b=new Set();for(const _0x147807 of _0x16f7e9)if(_0x147807['isInContent']){for(const _0x14acb3 of _0xa63681)for(const _0x2d6e01 of _0x147807['getRanges']())(_0x14acb3['isIntersecting'](_0x2d6e01)||_0x54c3cd['isCollapsed']&&!_0x147807['isMultiRange']&&_0x147807['next']&&_0x2d6e01['end']['isTouching'](_0x14acb3['start']))&&_0x32c66b['add'](_0x147807);}return _0x32c66b;}(_0x37ca43,_0x3e39a4),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x133041=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4134a7 of _0x133041){const _0x2b5b21=_0x4134a7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2b5b21))return;}rs(this['editor']['model'],this['_command'],_0x133041);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x1ca92d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x71b965,_0x72a87f){super(),this['id']=_0x72a87f['id'],this['type']=_0x72a87f['type'],this['subType']=_0x72a87f['subType']||null,this['author']=_0x72a87f['author'],this['creator']=_0x72a87f['creator']||_0x72a87f['author'],this['isExternal']=Boolean(_0x72a87f['attributes']&&_0x72a87f['attributes']['@external']),this['data']=null,this['_model']=_0x71b965,this['_onAccept']=_0x72a87f['onAccept'],this['_onDiscard']=_0x72a87f['onDiscard'],this['_onAttributesChange']=_0x72a87f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x72a87f['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 _0xaa51ad=this;for(;_0xaa51ad['previous'];)_0xaa51ad=_0xaa51ad['previous'];return _0xaa51ad;}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'](_0x40f225){this['_markerNames']['add'](_0x40f225);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x211b4f=>this['_model']['markers']['get'](_0x211b4f))['filter'](_0x545405=>_0x545405);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2f914c=>{for(const _0x1bfce6 of this['getMarkers']())_0x2f914c['removeMarker'](_0x1bfce6);}),this['_markerNames']['clear']();}['removeMarker'](_0x3ae5ca){this['_model']['change'](_0x145958=>{_0x145958['removeMarker'](_0x3ae5ca);}),this['_markerNames']['delete'](_0x3ae5ca);}['addRange'](_0x579033){const _0x4cd47b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4cd47b),this['_model']['change'](_0x5660b1=>{_0x5660b1['addMarker'](_0x4cd47b,{'range':_0x579033,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x380769){for(const _0x574021 of this['getRanges']())if(_0x574021['isIntersecting'](_0x380769))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xb934f3=>_0xb934f3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2fac57,_0x2878a6)=>[..._0x2fac57,..._0x2878a6['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x314569=this['getRanges']();if(0x1!=_0x314569['length'])return null;const _0x234ffa=_0x314569[0x0],_0x193d98=_0x234ffa['start']['nodeAfter'],_0x1ff95f=_0x234ffa['end']['nodeBefore'];return _0x193d98 instanceof _0x15e4c1?_0x193d98!=_0x1ff95f?null:_0x193d98: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 _0x4c3537=[];let _0x5a149d=this['head'];for(;_0x5a149d;)_0x4c3537['push'](_0x5a149d),_0x5a149d=_0x5a149d['next'];return _0x4c3537;}['setAttribute'](_0x2d4635,_0x324d21){const _0x5c9877=_0x15bc28(this['attributes']);_0x75b7dd(_0x5c9877,_0x2d4635,_0x324d21),_0x11af30(_0x5c9877,this['attributes'])||(this['attributes']=_0x5c9877,this['_onAttributesChange'](_0x5c9877));}['removeAttribute'](_0x42b55f){const _0x3bf159=_0x15bc28(this['attributes']);_0x47beff(_0x3bf159,_0x42b55f),_0x11af30(_0x3bf159,this['attributes'])||(this['attributes']=_0x3bf159,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 _0x546e08()['substr'](0x1,0x5);}}function o(_0x24a8e5,_0x3858c7,_0x23cd92){const t=_0x24a8e5['t'];switch(_0x3858c7){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'*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',_0x23cd92);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x23cd92);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x23cd92);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x23cd92);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x23cd92);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',_0x23cd92);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x23cd92);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x23cd92);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x23cd92);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x23cd92);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x23cd92);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x23cd92);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x23cd92);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x23cd92);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x23cd92);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x23cd92);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x23cd92);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x23cd92);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x23cd92);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x23cd92);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x23cd92);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x23cd92);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x23cd92);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'},_0x23cd92);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x23cd92);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x23cd92);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x23cd92);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x23cd92);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x23cd92);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x23cd92);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x23cd92);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x23cd92);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'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x23cd92);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'},_0x23cd92);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x23cd92);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x23cd92);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'},_0x23cd92);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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x23cd92);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x23cd92);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x23cd92);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'},_0x23cd92);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'},_0x23cd92);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'},_0x23cd92);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3858c7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1279db,_0x2ad7cb){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1279db,this['_locale']=_0x2ad7cb;}['getDescriptions'](_0xdd88b9){const _0x151792=[],_0x304f18=new Set(),_0x43fb86=new Set();for(let _0x53aa6b=0x0;_0x53aa6b<_0xdd88b9['length'];_0x53aa6b++){const _0x540429=_0xdd88b9[_0x53aa6b];if(!_0x540429['isInContent'])continue;const _0x42a73e=this['_handleCustomCallbackDescription'](_0x540429);if(_0x42a73e){if(null!=_0x540429['subType']){if(_0x304f18['has'](_0x540429['subType']))continue;_0x304f18['add'](_0x540429['subType']);}_0x151792['push'](_0x42a73e);}else{if('attribute'!=_0x540429['type'])'insertion'!=_0x540429['type']&&'deletion'!=_0x540429['type']||this['_handleInsertRemoveSuggestionDescription'](_0x151792,_0x540429,_0xdd88b9[_0x53aa6b+0x1]);else{const _0x450465=_0x540429['data']['key'];if(_0x43fb86['has'](_0x450465))continue;_0x43fb86['add'](_0x540429['data']['key']),_0x450465==m?this['_handleRenameSuggestionDescription'](_0x151792,_0x540429):this['_handleAttributeSuggestionDescription'](_0x151792,_0x540429);}}}return this['_resolveDescriptionItems'](_0x151792);}['registerDescriptionCallback'](_0x1a5803){this['_customCallbacks']['push'](_0x1a5803);}['registerElementLabel'](_0x46df27,_0x3bfe99,_0x304c61=_0x44834d['normal']){'function'==typeof _0x46df27?_0x188a5a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x46df27,'label':_0x3bfe99,'priority':_0x304c61}):this['_itemLabels']['set'](_0x46df27,_0x3bfe99);}['registerAttributeLabel'](_0x531620,_0x484ddb){this['_attributeLabels']['set'](_0x531620,_0x484ddb);}['getItemLabel'](_0x40638b,_0xa9fc6a=0x1){let _0x47b007;for(const _0x31137b of this['_itemLabelsCallbacks'])if(_0x31137b['matchingCallback'](_0x40638b)){_0x47b007=_0x31137b['label'];break;}return _0x47b007||(_0x47b007=this['_itemLabels']['get'](_0x40638b['name'])),_0x47b007?_0x47b007(_0xa9fc6a):0x1!==_0xa9fc6a?_0xa9fc6a+'\x20'+_0x40638b['name']+'s':''+_0x40638b['name'];}['_addDescriptionItems'](_0x59df06,_0x1e98c9){const _0x4185ad=_0x1e98c9['getFirstRange']()['getWalker'](),_0x3a10e6='insertion'==_0x1e98c9['type']?'add':'remove';for(const _0x2467c2 of _0x4185ad){const _0x5ee7ce=_0x2467c2['item'],_0x2a8ce5=_0x59df06[_0x59df06['length']-0x1];if(_0x5ee7ce['is']('$textProxy'))_0x2a8ce5&&_0x2a8ce5['type']['indexOf']('Container')>-0x1&&_0x59df06['pop'](),_0x2a8ce5&&'text'==_0x2a8ce5['type']?_0x2a8ce5[_0x3a10e6]+=_0x5ee7ce['data']:_0x59df06['push']({'type':'text','add':'add'==_0x3a10e6?_0x5ee7ce['data']:'','remove':'remove'==_0x3a10e6?_0x5ee7ce['data']:''});else{if(this['_schema']['isObject'](_0x5ee7ce)){const _0x16af4c=_0x5ee7ce;if(_0x2a8ce5&&_0x2a8ce5['type']['indexOf']('Container')>-0x1&&_0x59df06['pop'](),'elementEnd'==_0x2467c2['type'])continue;_0x2a8ce5&&_0x2a8ce5['type']==_0x3a10e6+'Object'&&_0x2a8ce5['element']['name']==_0x16af4c['name']?_0x2a8ce5['quantity']++:_0x59df06['push']({'type':_0x3a10e6+'Object','element':_0x16af4c,'quantity':0x1}),_0x4185ad['skip'](_0x309b50=>!('elementEnd'==_0x309b50['type']&&_0x309b50['item']==_0x5ee7ce));}else{if(this['_schema']['checkChild'](_0x5ee7ce,'$text')||_0x5ee7ce['is']('element','softBreak')){const _0x4a82e5=_0x5ee7ce;if('add'==_0x3a10e6&&'elementStart'==_0x2467c2['type']||'remove'==_0x3a10e6&&'elementEnd'==_0x2467c2['type'])continue;if(_0x2a8ce5&&-0x1==_0x2a8ce5['type']['indexOf']('Container')){'text'==_0x2a8ce5['type']&&(_0x2a8ce5[_0x3a10e6]+='\x0a');continue;}let _0x5d363f;if(_0x5d363f='add'==_0x3a10e6?_0x4a82e5['nextSibling']&&!this['_schema']['isObject'](_0x4a82e5['nextSibling'])?_0x4a82e5['nextSibling']:null:_0x4a82e5['previousSibling']&&!this['_schema']['isObject'](_0x4a82e5['previousSibling'])?_0x4a82e5['previousSibling']:null,_0x4a82e5['isEmpty']||_0x5d363f&&_0x5d363f['isEmpty']){const _0x33cf9a=_0x5d363f&&_0x5d363f['isEmpty']?_0x5d363f:_0x4a82e5;_0x2a8ce5&&_0x2a8ce5['type']==_0x3a10e6+'EmptyContainer'&&_0x2a8ce5['element']['name']==_0x33cf9a['name']?_0x2a8ce5['quantity']++:_0x59df06['push']({'type':_0x3a10e6+'EmptyContainer','element':_0x33cf9a,'quantity':0x1});}else _0x59df06['push']({'type':_0x3a10e6+'Container','element':_0x4a82e5});}}}}}['_resolveDescriptionItems'](_0x2f3744){const _0x113d17=this['_locale'],_0x48d606=[],_0x1cf903=[],_0xe839=[];for(const _0x17b5f5 of _0x2f3744)switch(_0x17b5f5['type']){case'text':if(_0x17b5f5['add']=_0x17b5f5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x17b5f5['remove']=_0x17b5f5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x17b5f5['add']&&''!=_0x17b5f5['remove']){_0x48d606['push']({'type':'replace','content':o(_0x113d17,'REPLACE_TEXT',['\x22'+_0x17b5f5['remove']+'\x22','\x22'+_0x17b5f5['add']+'\x22'])});continue;}if(null!=_0x17b5f5['add']['match'](/^ +$/)){_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Insert:*\x20%0',o(_0x113d17,'ELEMENT_SPACE',_0x17b5f5['add']['length']))});continue;}if(null!=_0x17b5f5['remove']['match'](/^ +$/)){_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Remove:*\x20%0',o(_0x113d17,'ELEMENT_SPACE',_0x17b5f5['remove']['length']))});continue;}if(''!=_0x17b5f5['add']){_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Insert:*\x20%0','\x22'+_0x17b5f5['add']+'\x22')});continue;}_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Remove:*\x20%0','\x22'+_0x17b5f5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Insert:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Remove:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'addContainer':_0x48d606['push']({'type':'insertion','content':o(_0x113d17,'*Split:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'removeContainer':_0x48d606['push']({'type':'deletion','content':o(_0x113d17,'*Merge:*\x20%0',this['getItemLabel'](_0x17b5f5['element'],_0x17b5f5['quantity']))});continue;case'addFormat':_0x1cf903['push'](_0x17b5f5['key']);continue;case'removeFormat':_0xe839['push'](_0x17b5f5['key']);continue;default:_0x48d606['push'](_0x17b5f5);}if(_0x1cf903['length']){const _0x1f3bf4=_0x1cf903['map'](_0x43d59f=>this['_attributeLabels']['has'](_0x43d59f)?this['_attributeLabels']['get'](_0x43d59f):_0x43d59f)['join'](',\x20');_0x48d606['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1f3bf4)});}if(_0xe839['length']){const _0x4e9c36=_0xe839['map'](_0x40110a=>this['_attributeLabels']['has'](_0x40110a)?this['_attributeLabels']['get'](_0x40110a):_0x40110a)['join'](',\x20');_0x48d606['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4e9c36)});}return _0x48d606;}['_handleCustomCallbackDescription'](_0x2a2d95){for(const _0x1e4527 of this['_customCallbacks']){const _0x2fb77c=_0x1e4527(_0x2a2d95);if(_0x2fb77c&&'type'in _0x2fb77c)return _0x2fb77c;}}['_handleAttributeSuggestionDescription'](_0x3a9b3f,_0x4b6656){const _0x515333=_0x4b6656['data'],_0x56f218=void 0x0===_0x515333['newValue']?'removeFormat':'addFormat';_0x3a9b3f['push']({'type':_0x56f218,'key':_0x515333['key']});}['_handleRenameSuggestionDescription'](_0x3ed151,_0xd9ac6a){_0x3ed151['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xd9ac6a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x36ad53,_0x52d379,_0x11937f){if(this['_addDescriptionItems'](_0x36ad53,_0x52d379),_0x11937f&&_0x11937f['getFirstRange']()&&!_0x52d379['getFirstRange']()['end']['isEqual'](_0x11937f['getFirstRange']()['start'])){const _0x4cb727=_0x36ad53[_0x36ad53['length']-0x1],_0x2e306f='insertion'==_0x52d379['type']?'add':'remove';_0x4cb727&&'text'==_0x4cb727['type']&&(_0x4cb727[_0x2e306f]+='\x0a');}}}class V extends _0x58a0bc{['afterInit'](){const _0xd79203=this['editor'],_0x345393=_0xd79203['plugins']['get']('TrackChangesEditing');_0xd79203['commands']['get']('showAIAssistant')&&_0x345393['enableCommand']('showAIAssistant');}}class U extends _0x58a0bc{['afterInit'](){const _0x9190c7=this['editor'],_0x375159=_0x9190c7['locale'];if(!_0x9190c7['plugins']['has']('AlignmentEditing'))return;const _0x5d054f=_0x9190c7['plugins']['get']('TrackChangesEditing');_0x5d054f['enableDefaultAttributesIntegration']('alignment'),_0x5d054f['registerBlockAttribute']('alignment'),_0x5d054f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x375159,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f0ef5=this['editor'],_0x45b0=_0x1f0ef5['locale'];_0x1f0ef5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x350549=>{if('formatBlock'!=_0x350549['type'])return;const {data:_0x3bff25}=_0x350549;if(_0x3bff25&&'alignment'==_0x3bff25['commandName']){const _0x1d2fdd=_0x3bff25['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x45b0,'*Format:*\x20%0',function(_0x16464a){switch(_0x16464a){case'left':return o(_0x45b0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x45b0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x45b0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x45b0,'FORMAT_JUSTIFY_TEXT');}}(_0x1d2fdd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x58a0bc{['afterInit'](){const _0x378933=this['editor'],_0x520339=_0x378933['plugins']['get']('TrackChangesEditing'),_0x42c18a=_0x378933['locale'];for(const _0xe3a9a of ti){if(!_0x378933['plugins']['has'](_0xe3a9a))continue;const _0x4c8403=_0xe3a9a['slice'](0x0,-0x7)['toLowerCase'](),_0x385e88='FORMAT_'+_0x4c8403['toUpperCase']();_0x520339['enableDefaultAttributesIntegration'](_0x4c8403),_0x520339['registerInlineAttribute'](_0x4c8403),_0x520339['descriptionFactory']['registerAttributeLabel'](_0x4c8403,o(_0x42c18a,_0x385e88));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4372cc=this['editor'],_0x4f7661=_0x4372cc['locale'],_0x17fc04=_0x4372cc['plugins']['get']('TrackChangesEditing');function _0x1caca7(_0x32be58,_0x1ea323){_0x17fc04['descriptionFactory']['registerDescriptionCallback'](_0x5e1fde=>{if('formatInline'!=_0x5e1fde['type'])return;const {data:_0x2f34f7}=_0x5e1fde;return _0x2f34f7&&_0x2f34f7['commandName']===_0x32be58?_0x2f34f7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f7661,'*Format:*\x20%0',_0x1ea323)}:{'type':'format','content':o(_0x4f7661,'*Remove\x20format:*\x20%0',_0x1ea323)}:void 0x0;});}_0x1caca7('bold',o(_0x4f7661,'FORMAT_BOLD')),_0x1caca7('italic',o(_0x4f7661,'FORMAT_ITALIC')),_0x1caca7('underline',o(_0x4f7661,'FORMAT_UNDERLINE')),_0x1caca7('code',o(_0x4f7661,'FORMAT_CODE')),_0x1caca7('strikethrough',o(_0x4f7661,'FORMAT_STRIKETHROUGH')),_0x1caca7('subscript',o(_0x4f7661,'FORMAT_SUBSCRIPT')),_0x1caca7('superscript',o(_0x4f7661,'FORMAT_SUPERSCRIPT'));}}class F extends _0x58a0bc{['afterInit'](){const _0x4a6d5f=this['editor'],_0x5f4053=_0x4a6d5f['locale'];if(!_0x4a6d5f['plugins']['has']('BlockQuoteEditing'))return;const _0x35fed7=_0x4a6d5f['plugins']['get']('TrackChangesEditing'),_0x59062f=this['editor']['commands']['get']('blockQuote');_0x35fed7['enableCommand']('blockQuote',(_0x2956a7,_0x427a32={})=>{const _0x52db7d=this['editor']['model']['document']['selection'],_0x14a35b=_0x427a32&&void 0x0!==_0x427a32['forceValue']?_0x427a32['forceValue']:!_0x59062f['value'];let _0x4144f3=[];if(_0x14a35b){const _0x2e35c7=Array['from'](_0x52db7d['getSelectedBlocks']())['filter'](_0x29e544=>oo(_0x29e544)||function(_0x17bf17,_0x15a128){const _0x63b312=_0x15a128['checkChild'](_0x17bf17['parent'],'blockQuote'),_0x430262=_0x15a128['checkChild'](['$root','blockQuote'],_0x17bf17);return _0x63b312&&_0x430262;}(_0x29e544,this['editor']['model']['schema']));_0x4144f3=to(_0x2e35c7,_0x4a6d5f['model']);}else{const _0x4a3480=Array['from'](_0x52db7d['getSelectedBlocks']())['filter'](_0x195323=>oo(_0x195323));_0x4144f3=to(_0x4a3480,_0x4a6d5f['model']);}_0x4a6d5f['model']['change'](()=>{for(const _0x4de5f5 of _0x4144f3)_0x35fed7['markBlockFormat'](_0x4de5f5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x14a35b}]});});}),_0x35fed7['descriptionFactory']['registerDescriptionCallback'](_0x25fe1f=>{const {data:_0xdf65fb}=_0x25fe1f;if(_0xdf65fb&&'blockQuote'==_0xdf65fb['commandName']){const _0x2f7335=o(_0x5f4053,'ELEMENT_BLOCK_QUOTE');return _0xdf65fb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5f4053,'*Set\x20format:*\x20%0',_0x2f7335)}:{'type':'format','content':o(_0x5f4053,'*Remove\x20format:*\x20%0',_0x2f7335)};}});}}function oo(_0x26c9be){return'blockQuote'==_0x26c9be['parent']['name'];}class L extends _0x58a0bc{['afterInit'](){const _0x12eb81=this['editor'];_0x12eb81['plugins']['has']('CaseChange')&&(_0x12eb81['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x12eb81['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x12eb81['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x58a0bc{['afterInit'](){const _0x3760cc=this['editor'];_0x3760cc['commands']['get']('ckbox')&&_0x3760cc['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x58a0bc{['afterInit'](){const _0x42fa55=this['editor'];if(!_0x42fa55['plugins']['has']('CodeBlock'))return;const _0x4ead98=_0x42fa55['plugins']['get']('TrackChangesEditing'),_0x1c7df4=_0x42fa55['locale'],_0x4723c6=_0x42fa55['config']['get']('codeBlock')['languages'],_0x397923=_0x42fa55['commands']['get']('codeBlock');_0x4ead98['enableCommand']('indentCodeBlock'),_0x4ead98['enableCommand']('outdentCodeBlock'),_0x4ead98['enableCommand']('codeBlock',(_0x33bf1a,_0x3e92d1={})=>{const _0x4f654a=_0x42fa55['model'],_0x597344=_0x42fa55['model']['document']['selection'],_0x209480=_0x3e92d1&&void 0x0!==_0x3e92d1['forceValue']?_0x3e92d1['forceValue']:!_0x397923['value'];let _0x1d9bc2;_0x3e92d1['language']||(_0x3e92d1['language']=_0x4723c6[0x0]['language']),_0x1d9bc2=_0x209480?Array['from'](_0x597344['getSelectedBlocks']())['filter'](_0x165f2c=>eo(_0x165f2c)||function(_0x753208,_0x16ae15){if(_0x753208['is']('rootElement')||_0x16ae15['isLimit'](_0x753208))return!0x1;return _0x16ae15['checkChild'](_0x753208['parent'],'codeBlock');}(_0x165f2c,_0x4f654a['schema'])):Array['from'](_0x597344['getSelectedBlocks']())['filter'](_0x277cc0=>eo(_0x277cc0));const _0x51f6e7=to(_0x1d9bc2,_0x4f654a);_0x4f654a['change'](()=>{for(const _0x277e82 of _0x51f6e7)_0x4ead98['markBlockFormat'](_0x277e82,{'commandName':'codeBlock','commandParams':[{..._0x3e92d1,'forceValue':_0x209480}],'formatGroupId':'blockName'});});}),(_0x4ead98['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d81a7=>o(_0x1c7df4,'ELEMENT_CODE_BLOCK',_0x3d81a7)),_0x4ead98['descriptionFactory']['registerDescriptionCallback'](_0x375b33=>{if('formatBlock'!=_0x375b33['type'])return;const _0x43dc96=_0x1c7df4['t'],{data:_0x150a63}=_0x375b33;if(!_0x150a63||'codeBlock'!=_0x150a63['commandName'])return;const _0x33f7af=_0x150a63['commandParams'][0x0]['language'],_0x46e22c=_0x43dc96(_0x4723c6['find'](_0x3695d8=>_0x3695d8['language']===_0x33f7af)['label'])['toLowerCase']();return _0x150a63['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c7df4,'*Set\x20format:*\x20%0',o(_0x1c7df4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x46e22c+')')}:{'type':'format','content':o(_0x1c7df4,'*Remove\x20format:*\x20%0',o(_0x1c7df4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4fc702){return'codeBlock'==_0x4fc702['name'];}class q extends _0x58a0bc{['afterInit'](){const _0x745fb0=this['editor'];if(!_0x745fb0['plugins']['has']('CommentsEditing'))return;_0x745fb0['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x55d811,_0xce3274,_0x176aca){const _0x3061d1=[];for(const _0x172b3c of _0xce3274['getItems']())_0x172b3c['hasAttribute'](_0x55d811)&&_0x3061d1['push'](_0x176aca['createRangeOn'](_0x172b3c));return _0x3061d1;}function _e(_0x13812b,_0x4b32b8,{showActiveMarker:_0x5e0e93=!0x0}={}){const _0x251455=_0x13812b['plugins']['get']('TrackChangesEditing');return(_0x485aea,_0x383596,_0x5b0918)=>{if(!_0x5b0918['consumable']['test'](_0x383596['markerRange'],_0x485aea['name']))return;const _0x582e5a=_0x383596['markerRange']['getWalker'](),_0x24bf9e=_0x383596['markerRange']['start'],_0x5b31c1=_0x13812b['model']['schema'];let _0x3c65d5=null,_0x45970c=null,_0x4e0b3b=!0x1,_0x51747b=!0x1;for(const _0x459942 of _0x582e5a){const _0x21f7d7=_0x459942['item'];_0x4e0b3b=_0x4e0b3b||_0x5b31c1['isContent'](_0x21f7d7);const _0x3db6ad=_0x5b0918['mapper']['toViewElement'](_0x21f7d7);if(_0x3db6ad&&_0x3db6ad['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x459942['type']&&(_0x5b31c1['isBlock'](_0x21f7d7)&&!_0x5b31c1['isLimit'](_0x21f7d7)&&(_0x21f7d7['nextSibling']||_0x24bf9e['isAtEnd']?_0x3c65d5&&_0x3c65d5['parent']==_0x21f7d7||(_0x3c65d5=_0x21f7d7,_0x166791(_0x459942['previousPosition']),_0x51747b=!0x0):_0x45970c=_0x45970c||_0x459942['previousPosition']));}function _0x166791(_0xb5d08a){const {authorId:_0x49cf5c}=_0x251455['_splitMarkerName'](_0x383596['markerName']),_0x231066=_0x5b0918['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b32b8,'data-author-id':_0x49cf5c}),_0x4a7bb5=_0x5b0918['mapper']['toViewPosition'](_0xb5d08a);_0x5e0e93&&_0x251455['activeMarkers']['includes'](_0x383596['markerName'])&&_0x5b0918['writer']['addClass']('ck-suggestion-marker--active',_0x231066),_0x5b0918['writer']['insert'](_0x4a7bb5,_0x231066),_0x5b0918['mapper']['bindElementToMarker'](_0x231066,_0x383596['markerName']);}_0x4e0b3b||_0x51747b||!_0x45970c||_0x166791(_0x45970c);};}class z extends _0x58a0bc{static get['requires'](){return[_0x45edbc];}['init'](){const _0x52a80f=this['editor'],_0x4b0b88=_0x52a80f['plugins']['get']('TrackChangesEditing');_0x4b0b88['enableCommand']('delete');const _0x36ae8d=_0x52a80f['commands']['get']('deleteForward');_0x4b0b88['enableCommand']('deleteForward',(_0x1a5908,_0x9d55f6={})=>{const _0x48de2b=_0x52a80f['model']['createSelection'](_0x52a80f['model']['document']['selection']);_0x48de2b['isCollapsed']&&_0x52a80f['model']['modifySelection'](_0x48de2b,{'direction':'forward','unit':_0x9d55f6['unit']});const _0x5a5535=_0x48de2b['getFirstRange'](),_0x4475f3=_0x1ac7bd['fromRange'](_0x5a5535);let _0x3fb167;_0x1a5908(_0x9d55f6),_0x3fb167='$graveyard'==_0x4475f3['root']['rootName']?_0x52a80f['model']['createRange'](_0x5a5535['start']):_0x52a80f['model']['createRange'](_0x4475f3['start'],_0x4475f3['end']),_0x4475f3['detach'](),_0x52a80f['model']['enqueueChange'](_0x36ae8d['buffer']['batch'],_0x1dda4f=>{_0x36ae8d['buffer']['lock'](),_0x1dda4f['setSelection'](_0x1dda4f['createRange'](_0x3fb167['end'])),_0x36ae8d['buffer']['unlock']();});}),_0x52a80f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x52a80f,'merge'),{'priority':'high'}),_0x52a80f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x546d5e,_0x3d7dd8,_0x33a2fd)=>{_0x33a2fd['options']['showSuggestionHighlights']&&_e(_0x52a80f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x546d5e,_0x3d7dd8,_0x33a2fd);},{'priority':'high'}),_0x52a80f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1237e6,_0x29594a,_0x4c3ff0)=>{const _0x919f0a=_0x4c3ff0['mapper']['markerNameToElements'](_0x29594a['markerName']);if(_0x919f0a){for(const _0x5aa409 of _0x919f0a)_0x5aa409['is']('uiElement')&&(_0x4c3ff0['mapper']['unbindElementFromMarkerName'](_0x5aa409,_0x29594a['markerName']),_0x4c3ff0['writer']['remove'](_0x5aa409));}},{'priority':'high'});}}class K extends _0x58a0bc{['afterInit'](){const _0x4ffa3a=this['editor'];if(!_0x4ffa3a['plugins']['has']('ListEditing'))return;const _0xd4ca3e=_0x4ffa3a['locale'],_0x1c28a7=_0x4ffa3a['plugins']['get']('TrackChangesEditing'),_0x4dbd49=_0x4ffa3a['plugins']['has']('TodoListEditing'),_0x5d5b78=!!_0x4ffa3a['config']['get']('list.multiBlock');function _0xfc5e40(_0x7eede1){return{'type':'format','content':''+o(_0xd4ca3e,'*Set\x20format:*\x20%0',_0x7eede1)};}function _0x7afb95(_0x52dba6){return{'type':'format','content':''+o(_0xd4ca3e,'*Remove\x20format:*\x20%0',_0x52dba6)};}_0x1c28a7['enableDefaultAttributesIntegration']('numberedList'),_0x1c28a7['enableDefaultAttributesIntegration']('bulletedList'),_0x1c28a7['enableDefaultAttributesIntegration']('customNumberedList'),_0x1c28a7['enableDefaultAttributesIntegration']('customBulletedList'),_0x1c28a7['enableDefaultAttributesIntegration']('indentList'),_0x1c28a7['enableDefaultAttributesIntegration']('outdentList'),_0x1c28a7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1c28a7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1c28a7['registerBlockAttribute']('listItemId'),_0x1c28a7['registerBlockAttribute']('listType'),_0x1c28a7['registerBlockAttribute']('listIndent'),_0x5d5b78&&(_0x1c28a7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1c28a7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4dbd49&&(_0x1c28a7['enableDefaultAttributesIntegration']('todoList'),_0x1c28a7['enableDefaultAttributesIntegration']('checkTodoList'),_0x1c28a7['registerBlockAttribute']('todoListChecked'),_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x305348=>{const {data:_0x2faf2f}=_0x305348;if(_0x2faf2f&&'todoListChecked'==_0x2faf2f['key'])return{'type':'format','content':_0x2faf2f['newValue']?o(_0xd4ca3e,'*Check\x20item*'):o(_0xd4ca3e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x24a979=>{if(_0x24a979['batch']['isUndo'])return!0x1;let _0x898d42=!0x1;const _0x44803a=_0x1c28a7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f6e1c=>'todoListChecked'===_0x1c28a7['_getAttributeKey'](_0x4f6e1c));for(const _0x4283c9 of _0x44803a){'todo'!=_0x4283c9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1c28a7['_findSuggestions'](_0x4283c9['getFirstRange'](),'attribute')['find'](_0x242260=>'listType'===_0x1c28a7['_getAttributeKey'](_0x242260['suggestion']))||(_0x24a979['removeMarker'](_0x4283c9['getFirstMarker']()),_0x898d42=!0x0));}return _0x898d42;})),_0x1c28a7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xd4ca3e,'FORMAT_INDENT'));const _0x4fe24f={'type':'format','content':''};_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x2ec71e=>{const {data:_0x17fb25}=_0x2ec71e;if(!_0x17fb25||'listType'!=_0x17fb25['key'])return;let _0x445e61=_0x2ec71e['head'];for(;_0x445e61;){if(_0x445e61['data']&&(('listStyle'==_0x445e61['data']['key']||'listMarkerStyle'==_0x445e61['data']['key'])&&(_0x445e61['data']['newValue']&&'default'!=_0x445e61['data']['newValue']||'default'!=_0x445e61['data']['oldValue']&&!_0x17fb25['newValue'])||!_0x5d5b78&&_0x445e61['data']['key']==m))return _0x4fe24f;_0x445e61=_0x445e61['next'];}if(null==_0x17fb25['newValue'])switch(_0x17fb25['oldValue']){case'bulleted':return _0x7afb95(o(_0xd4ca3e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x7afb95(o(_0xd4ca3e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x7afb95(o(_0xd4ca3e,'ELEMENT_TODO_LIST'));}switch(_0x17fb25['newValue']){case'bulleted':return _0xfc5e40(o(_0xd4ca3e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xfc5e40(o(_0xd4ca3e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xfc5e40(o(_0xd4ca3e,'ELEMENT_TODO_LIST'));}}),_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x384b47=>{const {data:_0x2c3032}=_0x384b47;if(_0x2c3032&&'listIndent'==_0x2c3032['key'])return null==_0x2c3032['newValue']||null==_0x2c3032['oldValue']&&0x0==_0x2c3032['newValue']?_0x4fe24f:void 0x0;}),_0x1c28a7['descriptionFactory']['registerDescriptionCallback'](_0x73d2ea=>{if('attribute'!=_0x73d2ea['type'])return;const {data:_0x7756c9}=_0x73d2ea;if(!_0x7756c9||'listItemId'!=_0x7756c9['key'])return;const _0x1c79bd=Ee(_0x73d2ea);return'newValue'==_0x1c79bd?{'type':'format','content':o(_0xd4ca3e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1c79bd?{'type':'format','content':o(_0xd4ca3e,'*Split:*\x20list\x20item')}:_0x4fe24f;}),_0x4ffa3a['model']['document']['registerPostFixer'](_0xbd9645=>this['listItemIdFixer'](_0xbd9645)),_0x4ffa3a['model']['document']['registerPostFixer'](_0x15513a=>this['noTrackChangesFixer'](_0x15513a)),_0x4ffa3a['model']['document']['on']('change:data',(_0x486ad3,_0x544831)=>{if(_0x544831['isUndo']||!_0x544831['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3caf58){if(_0x3caf58['batch']['isUndo']||!_0x3caf58['batch']['isLocal'])return!0x1;let _0x4eeeab=!0x1;const _0x2ce525=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e23dc=>_0x2e23dc['data']&&'listItemId'==_0x2e23dc['data']['key'])['filter'](_0x16c6a3=>_0x16c6a3['data']['newValue']&&_0x16c6a3['data']['oldValue']);for(const _0x752c59 of _0x2ce525)Ee(_0x752c59)||(_0x3caf58['removeMarker'](_0x752c59['getFirstMarker']()),_0x4eeeab=!0x0);return _0x4eeeab;}['noTrackChangesFixer'](_0x26a5b0){if(_0x26a5b0['batch']['isUndo']||!_0x26a5b0['batch']['isLocal'])return!0x1;const _0x38ff30=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x38ff30['trackChangesCommand']['value'])return!0x1;let _0x433a4b=!0x1;const _0x46db94=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3af897=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x10df70=>'attribute'==_0x10df70['type'])['filter'](_0x383734=>_0x46db94['includes'](_0x383734['attributeKey']));if(0x0==_0x3af897['length'])return _0x433a4b;for(const _0x419b59 of _0x3af897){const _0x224a7b=_0x38ff30['_findSuggestions'](_0x419b59['range'],'attribute')['filter'](_0x28b3aa=>!_0x28b3aa['meta']['isNextTo'])['map'](_0x48ea7b=>_0x48ea7b['suggestion'])['filter'](_0x114d80=>{const _0xe5b75c=_0x38ff30['_getAttributeKey'](_0x114d80);return _0x46db94['includes'](_0xe5b75c);});if(_0x224a7b['length']){for(const _0x1b8654 of _0x224a7b)_0x26a5b0['removeMarker'](_0x1b8654['getFirstMarker']());_0x433a4b=!0x0;}}return _0x433a4b;}['assureChains'](){const _0x5489b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa09ce8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x6615e3;const _0x31cf79=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x45d6cd=>{if(_0x45d6cd['data']['oldRange']||!_0x45d6cd['data']['newRange'])return null;if(!_0x45d6cd['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1917a8}=_0x5489b9['_splitMarkerName'](_0x45d6cd['name']);if(!_0x5489b9['hasSuggestion'](_0x1917a8))return null;const _0x182ee5=_0x5489b9['getSuggestion'](_0x1917a8);return _0xa09ce8['includes'](_0x182ee5['data']['key']);})['map'](_0x5169d8=>{const {id:_0x33d994}=_0x5489b9['_splitMarkerName'](_0x5169d8['name']),_0x17be25=_0x5489b9['getSuggestion'](_0x33d994);return _0x6615e3=_0x17be25['attributes']['groupId'],_0x17be25['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x31cf79['size'])return;const _0x471be3=_0x5489b9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x254897=>'attribute'==_0x254897['type']&&_0x254897['data']&&_0xa09ce8['includes'](_0x254897['data']['key'])&&_0x254897['attributes']['groupId']!=_0x6615e3)['map'](_0x1e3cae=>({'listItem':_0x1e3cae['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1e3cae['attributes']['groupId']})),_0x59ee3f=new Set();for(const {groupId:_0x45c348,listItem:_0x3ef5fa}of _0x471be3)_0x31cf79['has'](_0x3ef5fa)&&_0x59ee3f['add'](_0x45c348);for(const _0x402444 of _0x5489b9['getSuggestions']())_0x59ee3f['has'](_0x402444['attributes']['groupId'])&&_0x402444['setAttribute']('groupId',_0x6615e3);}['_supportLegacySuggestions'](){const _0x3d4a3c=this['editor'],_0x2edfab=_0x3d4a3c['locale'],_0x33af0f=_0x3d4a3c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x33af0f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x377117,_0xcbf6e5){const _0x47dab9=[];for(let _0x1aef17 of _0x377117)_0x1aef17['start']['nodeAfter']===_0x1aef17['end']['parent']&&(_0x1aef17=_0x3d4a3c['model']['createRange'](_0x3d4a3c['model']['createPositionAt'](_0x1aef17['start']['nodeAfter'],0x0))),_0x47dab9['push'](_0x1aef17);_0x3d4a3c['model']['change'](_0x37d0ff=>{const _0x4ee64c=_0x3d4a3c['model']['document']['selection'],_0x23369d=Array['from'](_0x4ee64c['getRanges']())['map'](_0x3139dc=>_0x1ac7bd['fromRange'](_0x3139dc));_0x37d0ff['setSelection'](_0x47dab9),_0x3d4a3c['commands']['get'](_0xcbf6e5['commandName'])['refresh'](),_0xcbf6e5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3d4a3c['execute'](_0xcbf6e5['commandName'],..._0xcbf6e5['commandParams']),_0x37d0ff['setSelection'](_0x23369d);for(const _0x4fecb5 of _0x23369d)_0x4fecb5['detach']();});}),_0x33af0f['descriptionFactory']['registerElementLabel'](function(_0x22360e){const _0x3f641d=!_0x3d4a3c['model']['schema']['isObject'](_0x22360e),_0x433e77=_0x22360e['previousSibling'],_0x117c48=_0x22360e['nextSibling'],_0x14ac0b=_0x22360e['getAttribute']('listItemId'),_0x5aa4a8=!_0x433e77||_0x433e77['getAttribute']('listItemId')!==_0x14ac0b,_0x27021a=!_0x117c48||_0x117c48['getAttribute']('listItemId')!==_0x14ac0b;return _0x3f641d&&Boolean(_0x14ac0b)&&_0x5aa4a8&&_0x27021a;},_0x59e561=>o(_0x2edfab,'ELEMENT_LIST_ITEM',_0x59e561));}['_registerLegacyDescription'](){const _0x447122=this['editor'],_0x56309c=_0x447122['locale'];function _0xf64ae1(_0x1f6b28){const _0x5bfb55=_0x447122['commands']['get']('bulletedList')['value'],_0x466d1e=_0x447122['commands']['get']('numberedList')['value'];return'numberedList'===_0x1f6b28?_0x5bfb55:_0x466d1e;}_0x447122['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3977cd){if('formatBlock'!=_0x3977cd['type'])return;const {data:_0x5a9a7d}=_0x3977cd;if(!_0x5a9a7d)return;let _0x4999d3,_0x408efe,_0x48ce04,_0x2a1cb2;switch(_0x5a9a7d['commandName']){case'bulletedList':_0x48ce04=_0x5a9a7d['commandParams'][0x0]['forceValue'],_0x2a1cb2=_0xf64ae1(_0x5a9a7d['commandName']),_0x4999d3=_0x48ce04?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a1cb2&&_0x447122['config']['get']('list.multiBlock')||(_0x4999d3='*Change\x20to:*\x20%0'),_0x408efe={'type':'format','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x48ce04=_0x5a9a7d['commandParams'][0x0]['forceValue'],_0x2a1cb2=_0xf64ae1(_0x5a9a7d['commandName']),_0x4999d3=_0x48ce04?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a1cb2&&_0x447122['config']['get']('list.multiBlock')||(_0x4999d3='*Change\x20to:*\x20%0'),_0x408efe={'type':'format','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4999d3='*Indent:*\x20%0',_0x408efe={'type':'format','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4999d3=function(_0x5a04e3){const _0x5364f6=_0x5a04e3['getFirstRange']();let _0x393e80=_0x5364f6['start']['nodeAfter'];for(;_0x393e80&&_0x5364f6['containsItem'](_0x393e80);){if(_0x393e80['getAttribute']('listIndent')>0x0)return!0x1;_0x393e80=_0x393e80['nextSibling'];}return!0x0;}(_0x3977cd)?o(_0x56309c,'*Format:*\x20remove\x20from\x20%0',o(_0x56309c,function(_0x3e2fc3){return'ELEMENT_'+_0x3e2fc3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3977cd))):o(_0x56309c,'*Outdent:*\x20%0',o(_0x56309c,'ELEMENT_LIST_ITEM')),_0x408efe={'type':'format','content':_0x4999d3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5a9a7d['multipleBlocks']&&(_0x4999d3='*Merge:*\x20%0',_0x408efe={'type':'deletion','content':o(_0x56309c,_0x4999d3,o(_0x56309c,'ELEMENT_LIST_ITEM'))});}return _0x408efe;});}}function Ee(_0x3a507e){let _0x38b7b3=_0x3a507e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x38b7b3;){const _0x26d8a7=_0x38b7b3['getAttribute']('listItemId');if(!_0x26d8a7)return!0x1;if(_0x26d8a7==_0x3a507e['data']['newValue'])return'newValue';if(_0x26d8a7==_0x3a507e['data']['oldValue'])return'oldValue';_0x38b7b3=_0x38b7b3['previousSibling'];}return!0x1;}class pe extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4c8bbc=this['editor']['config']['get']('list.properties'),_0x54733e=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c8bbc['styles']&&(_0x54733e['enableDefaultAttributesIntegration']('listStyle'),_0x54733e['registerBlockAttribute']('listStyle')),_0x4c8bbc['reversed']&&(_0x54733e['enableDefaultAttributesIntegration']('listReversed'),_0x54733e['registerBlockAttribute']('listReversed')),_0x4c8bbc['startIndex']&&(_0x54733e['enableDefaultAttributesIntegration']('listStart'),_0x54733e['registerBlockAttribute']('listStart'));const _0x2dfafa={'type':'format','content':''};_0x54733e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x15daf5=this['editor']['locale'];_0x54733e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x15daf5,'FORMAT_LIST_REVERSED')),_0x54733e['descriptionFactory']['registerDescriptionCallback'](_0x1d7d97=>{const {data:_0x52247f}=_0x1d7d97;if(_0x52247f&&'listReversed'==_0x52247f['key'])return null==_0x52247f['newValue']||0x0==_0x52247f['newValue']&&null==_0x52247f['oldValue']?_0x2dfafa:void 0x0;}),_0x54733e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x15daf5,'FORMAT_LIST_START')),_0x54733e['descriptionFactory']['registerDescriptionCallback'](_0x43ba27=>{const {data:_0x530963}=_0x43ba27;if(_0x530963&&'listStart'==_0x530963['key'])return null==_0x530963['newValue']||0x1==_0x530963['newValue']&&null==_0x530963['oldValue']?_0x2dfafa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x465877=>{if(_0x465877['batch']['isUndo'])return!0x1;let _0x502a3c=!0x1;const _0x25b495=_0x54733e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x427f07=>{const _0x1628f1=_0x54733e['_getAttributeKey'](_0x427f07);return'listStart'==_0x1628f1||'listReversed'==_0x1628f1;});for(const _0x45afd6 of _0x25b495){const _0x29e525=_0x45afd6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x29e525||'customNumbered'==_0x29e525)continue;_0x54733e['_findSuggestions'](_0x45afd6['getFirstRange'](),'attribute')['find'](_0x25d33b=>'listType'==_0x54733e['_getAttributeKey'](_0x25d33b['suggestion']))||(_0x465877['removeMarker'](_0x45afd6['getFirstMarker']()),_0x502a3c=!0x0);}return _0x502a3c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x360fb8){const _0xd55629=this['editor']['locale'],{data:_0x5904e8}=_0x360fb8,_0x2b5a43={'type':'format','content':''};if(!_0x5904e8||'listStyle'!=_0x5904e8['key'])return;if(!_0x5904e8['oldValue'])return'default'==_0x5904e8['newValue']?_0x2b5a43:{'type':'format','content':''+o(_0xd55629,'*Set\x20format:*\x20%0',o(_0xd55629,this['_getTranslationKeyForListStyle'](_0x5904e8['newValue'])))};if(!_0x5904e8['newValue']){if('default'==_0x5904e8['oldValue'])return _0x2b5a43;let _0x384245=_0x360fb8['head'];for(;_0x384245;){if(_0x384245['data']&&'listType'==_0x384245['data']['key']&&_0x384245['data']['newValue'])return _0x2b5a43;_0x384245=_0x384245['next'];}return{'type':'format','content':''+o(_0xd55629,'*Remove\x20format:*\x20%0',o(_0xd55629,this['_getTranslationKeyForListStyle'](_0x5904e8['oldValue'])))};}if('default'!=_0x5904e8['newValue'])return{'type':'format','content':''+o(_0xd55629,'*Set\x20format:*\x20%0',o(_0xd55629,this['_getTranslationKeyForListStyle'](_0x5904e8['newValue'])))};let _0x1c88ff=_0x360fb8['head'];for(;_0x1c88ff;){if(_0x1c88ff['data']&&'listType'==_0x1c88ff['data']['key']&&_0x1c88ff['data']['newValue']&&_0x1c88ff['data']['oldValue'])return _0x2b5a43;_0x1c88ff=_0x1c88ff['next'];}return{'type':'format','content':o(_0xd55629,'*Set\x20format:*\x20%0',o(_0xd55629,'ELEMENT_'+_0x360fb8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x48b694=this['editor'],_0x5dfca2=_0x48b694['locale'];_0x48b694['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x130c08=>{if('formatBlock'!=_0x130c08['type'])return;const {data:_0x5c0de5}=_0x130c08;if(!_0x5c0de5)return;let _0x43a72b,_0x17628a;switch(_0x5c0de5['commandName']){case'listStyle':_0x43a72b='*Change\x20to:*\x20%0',_0x17628a={'type':'format','content':o(_0x5dfca2,_0x43a72b,o(_0x5dfca2,this['_getTranslationKeyForListStyle'](_0x5c0de5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x43a72b=_0x5c0de5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x17628a={'type':'format','content':o(_0x5dfca2,_0x43a72b)};break;case'listStart':_0x43a72b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x17628a={'type':'format','content':o(_0x5dfca2,_0x43a72b,_0x5c0de5['commandParams'][0x0]['startIndex'])};}return _0x17628a;});}['_getTranslationKeyForListStyle'](_0x300cbc){return'ELEMENT_'+function(_0x2d8ec6){if(ye['includes'](_0x2d8ec6))return'bulleted';if(Se['includes'](_0x2d8ec6))return'numbered';return null;}(_0x300cbc)['toUpperCase']()+'_LIST_'+_0x300cbc['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x58a0bc{static get['requires'](){return[_0x4d33f4];}['init'](){const _0x4864bc=this['editor'],_0x3b963a=_0x4864bc['plugins']['get']('TrackChangesEditing'),_0x86c816=_0x4864bc['commands']['get']('enter');_0x3b963a['enableCommand']('enter',()=>{_0x4864bc['model']['change'](_0xfd5390=>{const _0x5f5d5f=_0x4864bc['model']['document']['selection'],_0x16de63=_0x5f5d5f['getFirstPosition'](),_0x450883=_0x1ac7bd['fromRange'](_0x5f5d5f['getFirstRange']());if(_0x86c816['enterBlock'](_0xfd5390)){const _0x158232=_0x4864bc['model']['createPositionAt'](_0x16de63['parent']['nextSibling'],0x0),_0x1bd0fc=_0xfd5390['createRange'](_0x16de63,_0x158232);_0x3b963a['markInsertion'](_0x1bd0fc);}else _0xfd5390['setSelection'](_0xfd5390['createRange'](_0x450883['end']));_0x450883['detach'](),_0x86c816['fire']('afterExecute',{'writer':_0xfd5390});});}),_0x4864bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4864bc,'split'),{'priority':'high'}),_0x4864bc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5c1a1e,_0x2d682d,_0x506b5a)=>{const _0x44b669=_0x506b5a['mapper']['markerNameToElements'](_0x2d682d['markerName']);if(_0x44b669){for(const _0x16fce9 of _0x44b669)_0x16fce9['hasClass']('ck-suggestion-marker-split')&&(_0x506b5a['mapper']['unbindElementFromMarkerName'](_0x16fce9,_0x2d682d['markerName']),_0x506b5a['writer']['remove'](_0x16fce9));}},{'priority':'high'}),_0x4864bc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x35aa2a,_0x10cb34,_0x43720c)=>{_0x43720c['options']['showSuggestionHighlights']&&_e(_0x4864bc,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x35aa2a,_0x10cb34,_0x43720c);},{'priority':'high'});}}class X extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x348305=this['editor']['plugins']['get']('TrackChangesEditing');_0x348305['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x348305['enableCommand']('findNext'),_0x348305['enableCommand']('findPrevious'),_0x348305['enableCommand']('replace'),_0x348305['enableCommand']('replaceAll');}['handleFindCommand'](_0x646684,_0xb35d3a,_0x2eeb6b={}){const _0x58b54d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x646684(_0x414d22=>{let _0x5dab04=('string'==typeof _0xb35d3a?_0x58b54d['findByTextCallback'](_0xb35d3a,_0x2eeb6b):_0xb35d3a)(_0x414d22);Array['isArray'](_0x5dab04)&&(_0x5dab04={'results':_0x5dab04,'searchText':'string'==typeof _0xb35d3a?_0xb35d3a:''});const _0x4ec505=_0x5dab04['results']['filter'](_0x175ff7=>!0x1===this['_isInDeletionRange'](_0x175ff7,_0x414d22['item']));return{..._0x5dab04,'results':_0x4ec505};},_0x2eeb6b);}['_isInDeletionRange'](_0x2c3386,_0x11fb6b){const _0xfb3774=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11fb6b,_0x2c3386['start']),this['editor']['model']['createPositionAt'](_0x11fb6b,_0x2c3386['end']));for(const _0x4db150 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xfb3774['getIntersection'](_0x4db150['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x58a0bc{['afterInit'](){const _0x168185=this['editor']['locale'],_0xbaa744=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x16bcb1,commandName:_0x2b7243}of ro)this['editor']['plugins']['has'](_0x16bcb1)&&(_0xbaa744['enableDefaultAttributesIntegration'](_0x2b7243),_0xbaa744['registerInlineAttribute'](_0x2b7243));_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x168185,'FORMAT_FONT_SIZE')),_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x168185,'FORMAT_FONT_FAMILY')),_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x168185,'FORMAT_FONT_COLOR')),_0xbaa744['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x168185,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18aaf4=this['editor'],_0x553679=_0x18aaf4['locale'];_0x18aaf4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bcd59=>{const _0x1d6d42=_0x553679['t'];if('formatInline'!=_0x3bcd59['type'])return;const {data:_0x1d890b}=_0x3bcd59;if(null!=_0x1d890b){if('fontSize'==_0x1d890b['commandName']){const _0x48f6bb=_0x1d890b['commandParams'][0x0]['value'];if(_0x48f6bb){const _0x521caa=_0x1d6d42(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xe6c120=>_0xe6c120['model']==_0x48f6bb)['title'])['toLowerCase']();return{'type':'format','content':o(_0x553679,'*Set\x20font\x20size:*\x20%0',_0x521caa)};}return{'type':'format','content':o(_0x553679,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1d890b['commandName']){const _0x403955=_0x1d890b['commandParams'][0x0]['value'];return _0x403955?{'type':'format','content':o(_0x553679,'*Set\x20font\x20family:*\x20%0',_0x403955)}:{'type':'format','content':o(_0x553679,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1d890b['commandName']){const _0x91bfcd=_0x1d890b['commandParams'][0x0]['value'];if(_0x91bfcd){const _0x4b0585=_0x2f7d63(this['editor']['config']['get']('fontColor.colors'))['find'](_0x216c0c=>_0x216c0c['model']==_0x91bfcd);let _0xe7f8cb=_0x91bfcd,_0x1fed99='';return _0x4b0585&&(_0xe7f8cb=_0x4b0585['label'],_0x1fed99=_0x1d6d42(_0xe7f8cb)['toLowerCase']()),{'type':'format','content':o(_0x553679,'*Set\x20font\x20color:*\x20%0',_0x1fed99)['trim'](),'color':{'value':_0x91bfcd,'title':_0x1fed99||_0xe7f8cb}};}return{'type':'format','content':o(_0x553679,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1d890b['commandName']){const _0x11ef99=_0x1d890b['commandParams'][0x0]['value'];if(_0x11ef99){const _0x545304=_0x2f7d63(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x18e07f=>_0x18e07f['model']==_0x11ef99);let _0x2ffbcd=_0x11ef99,_0x15f6eb='';return _0x545304&&(_0x2ffbcd=_0x545304['label'],_0x15f6eb=_0x1d6d42(_0x2ffbcd)['toLowerCase']()),{'type':'format','content':o(_0x553679,'*Set\x20font\x20background\x20color:*\x20%0',_0x15f6eb)['trim'](),'color':{'value':_0x11ef99,'title':_0x15f6eb||_0x2ffbcd}};}return{'type':'format','content':o(_0x553679,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x58a0bc{['afterInit'](){const _0xe7fe86=this['editor'],_0x1e0e9d=_0xe7fe86['plugins']['get']('TrackChangesEditing'),_0x4a92bf=_0xe7fe86['commands']['get']('copyFormat'),_0x3adece=_0xe7fe86['commands']['get']('pasteFormat');_0x4a92bf&&_0x3adece&&(_0x1e0e9d['enableDefaultAttributesIntegration']('pasteFormat'),_0x1e0e9d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x269320=this['editor'],_0x29606f=_0x269320['locale'];_0x269320['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x538f43=>{if('formatBlock'!=_0x538f43['type']&&'formatInline'!=_0x538f43['type'])return;const {data:_0x5ae346}=_0x538f43;if(_0x5ae346&&'pasteFormat'===_0x5ae346['commandName']){const _0x29caed=[],_0x5df0c0=_0x5ae346['commandParams'][0x0];for(const [_0x284da6,_0x2689fb]of Object['entries'](_0x5df0c0))_0x29caed['push'](so(_0x269320,_0x284da6,_0x2689fb));return _0x29caed['length']?{'type':'format','content':o(_0x29606f,'*Set\x20format\x20to:*\x20%0',_0x29caed['join'](',\x20'))}:{'type':'format','content':o(_0x29606f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x59889a,_0x32412c,_0x269df5){const _0x4cdf06=_0x59889a['locale']['t'],_0x3b8e54=_0x32412c['split'](/(?=[A-Z])/)['join']('\x20'),_0x23d0ee=_0x4cdf06(_0x3b8e54['charAt'](0x0)['toUpperCase']()+_0x3b8e54['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x269df5)return _0x23d0ee;if('fontColor'===_0x32412c||'fontBackgroundColor'===_0x32412c){const _0x2c2ce3=_0x2f7d63(_0x59889a['config']['get']('fontColor.colors'))['find'](_0x355b9c=>_0x355b9c['model']==_0x269df5);return _0x23d0ee+'\x20('+(_0x2c2ce3?_0x4cdf06(_0x2c2ce3['label'])['toLowerCase']():_0x269df5)+')';}if('fontSize'===_0x32412c&&isNaN(parseFloat(_0x269df5))){const _0x5f5b11=_0x59889a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x59889a['config']['get']('fontSize.options'))['find'](_0x495ccc=>_0x495ccc['model']==_0x269df5);return _0x23d0ee+'\x20('+(_0x5f5b11?_0x4cdf06(_0x5f5b11['title'])['toLowerCase']():_0x269df5)+')';}return _0x23d0ee+'\x20('+_0x269df5+')';}class tt extends _0x58a0bc{['_headingOptions'];['afterInit'](){const _0x31e1e4=this['editor'];if(!_0x31e1e4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x31e1e4['config']['get']('heading.options');const _0x2812f4=_0x31e1e4['locale'],_0x74b517=_0x31e1e4['plugins']['get']('TrackChangesEditing');_0x74b517['enableDefaultAttributesIntegration']('heading');for(const _0x145bb9 of this['_headingOptions'])'paragraph'!=_0x145bb9['model']&&_0x74b517['descriptionFactory']['registerElementLabel'](_0x145bb9['model'],_0x45ceb0=>{const _0x52778b=this['_getHeadingLevel'](_0x145bb9['model']);return null!==_0x52778b?_0x13ada8(_0x45ceb0,_0x52778b):_0xc03af3(_0x45ceb0,_0x145bb9['title']);});function _0x13ada8(_0x5dd479,_0x3bbacc){return o(_0x2812f4,'ELEMENT_HEADING',[_0x5dd479,_0x3bbacc]);}function _0xc03af3(_0x1cafb5,_0x507f20){return o(_0x2812f4,'ELEMENT_HEADING_CUSTOM',[_0x1cafb5,_0x507f20]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36406f=this['editor'],_0x5142a3=_0x36406f['locale'];function _0x5255b7(_0x3d03af,_0x1219ec){return o(_0x5142a3,'ELEMENT_HEADING_CUSTOM',[_0x3d03af,_0x1219ec]);}_0x36406f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa8af41=>{if('formatBlock'!=_0xa8af41['type'])return;const {data:_0x561d88}=_0xa8af41;if(_0x561d88&&'heading'==_0x561d88['commandName']){const _0x4fcf6d=_0x561d88['commandParams'][0x0]['value'],_0x56e2cb=this['_getHeadingLevel'](_0x4fcf6d);if(null!==_0x56e2cb)return{'type':'format','content':o(_0x5142a3,'*Change\x20to:*\x20%0',(_0x6818ca=0x1,_0x16ba9d=_0x56e2cb,o(_0x5142a3,'ELEMENT_HEADING',[_0x6818ca,_0x16ba9d])))};const _0x121bbc=this['_headingOptions']['find'](_0x4df3af=>_0x4df3af['model']===_0x4fcf6d)['title'];return{'type':'format','content':o(_0x5142a3,'*Change\x20to:*\x20%0',_0x5255b7(0x1,_0x121bbc))};}var _0x6818ca,_0x16ba9d;});}['_getHeadingLevel'](_0x2ebf45){const _0x4ab606=_0x2ebf45['match'](/^heading(\d+)/);if(_0x4ab606)return _0x4ab606[0x1];const _0x16501e=this['_headingOptions']?.['find'](_0x3661c6=>_0x3661c6['model']==_0x2ebf45);if(_0x16501e&&_0x16501e['view']){const _0xdc5d7d=_0x16501e['view'],_0x5d6db5=(_0xdc5d7d['name']??_0xdc5d7d)['match'](/^h(\d+)/);if(_0x5d6db5)return _0x5d6db5[0x1];}return null;}}class et extends _0x58a0bc{['afterInit'](){const _0x4daeb3=this['editor'];if(!_0x4daeb3['plugins']['has']('HighlightEditing'))return;const _0x23ce56=_0x4daeb3['plugins']['get']('TrackChangesEditing'),_0x5542cd=_0x4daeb3['locale'];_0x23ce56['enableDefaultAttributesIntegration']('highlight'),_0x23ce56['registerInlineAttribute']('highlight'),_0x23ce56['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5542cd,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3670e4=this['editor'],_0x499564=_0x3670e4['locale'];_0x3670e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x525c4f=>{if('formatInline'!=_0x525c4f['type'])return;const {data:_0x238e23}=_0x525c4f;if(_0x238e23&&'highlight'==_0x238e23['commandName']){const _0x5624af=_0x499564['t'],_0x4dfe3e=_0x238e23['commandParams'][0x0]['value'];if(_0x4dfe3e){const _0x400a2a=_0x3670e4['config']['get']('highlight.options')['find'](_0x465198=>_0x465198['model']==_0x4dfe3e),_0x41819a=_0x5624af(_0x400a2a['title'])['toLowerCase']();return{'type':'format','content':o(_0x499564,'*Set\x20highlight:*\x20%0',_0x41819a),'color':{'value':_0x400a2a['color'],'title':_0x400a2a['title']}};}return{'type':'format','content':o(_0x499564,'*Remove\x20highlight*',o(_0x499564,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x58a0bc{['afterInit'](){const _0x333570=this['editor'];if(!_0x333570['plugins']['has']('HorizontalLineEditing'))return;_0x333570['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2d083d=_0x333570['plugins']['get']('TrackChangesEditing'),_0x4d670a=_0x333570['locale'];_0x2d083d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x550365=>o(_0x4d670a,'ELEMENT_HORIZONTAL_LINE',_0x550365)),_0x333570['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2563a7,{writer:_0x4a5d0c,options:_0x58f088})=>{if(!_0x58f088['showSuggestionHighlights'])return null;const _0x5c48d8=_0x4a5d0c['createContainerElement']('div'),_0x580899=_0x4a5d0c['createEmptyElement']('hr');return _0x4a5d0c['addClass']('ck-horizontal-line',_0x5c48d8),_0x4a5d0c['insert'](_0x4a5d0c['createPositionAt'](_0x5c48d8,0x0),_0x580899),_0x5c48d8;},'converterPriority':'high'});}}class st extends _0x58a0bc{['afterInit'](){const _0x3d94c5=this['editor'];if(!_0x3d94c5['plugins']['has']('HtmlEmbed'))return;const _0x50be0f=_0x3d94c5['plugins']['get']('TrackChangesEditing'),_0x39fa3e=_0x3d94c5['locale'];_0x50be0f['descriptionFactory']['registerElementLabel']('rawHtml',_0x15317c=>o(_0x39fa3e,'ELEMENT_HTML_EMBED',_0x15317c)),_0x50be0f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x50be0f['registerBlockAttribute']('value'),_0x50be0f['descriptionFactory']['registerDescriptionCallback'](_0x17079c=>{if('attribute'!=_0x17079c['type'])return;const {data:_0x43fcc4}=_0x17079c;if(_0x43fcc4&&'value'==_0x43fcc4['key']&&_0x17079c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x18bd57=o(_0x39fa3e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x39fa3e,'*Change\x20%0\x20content*',_0x18bd57)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3031e2=this['editor'],_0x462be7=_0x3031e2['locale'];_0x3031e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34a727=>{if('formatBlock'!=_0x34a727['type'])return;const {data:_0x32d909}=_0x34a727;if(_0x32d909&&'htmlEmbed'==_0x32d909['commandName']){const _0x3aa3f0=o(_0x462be7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x462be7,'*Change\x20%0\x20content*',_0x3aa3f0)};}});}}class nt extends _0x58a0bc{['afterInit'](){const _0xd55b62=this['editor'];if(!_0xd55b62['plugins']['has']('ImageEditing'))return;const _0x3e7d79=_0xd55b62['plugins']['get']('TrackChangesEditing'),_0x53961f=_0xd55b62['plugins']['get']('ImageUtils'),_0x236b99=_0xd55b62['locale'];_0x3e7d79['enableCommand']('insertImage'),_0x3e7d79['descriptionFactory']['registerElementLabel']('imageBlock',_0x542940=>o(_0x236b99,'ELEMENT_IMAGE',_0x542940)),_0x3e7d79['descriptionFactory']['registerElementLabel']('imageInline',_0x346142=>o(_0x236b99,'ELEMENT_INLINE_IMAGE',_0x346142)),_0x3e7d79['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x236b99,'ELEMENT_CAPTION')),_0xd55b62['plugins']['has']('ImageUploadEditing')&&_0x3e7d79['enableCommand']('uploadImage'),_0xd55b62['plugins']['has']('ImageBlockEditing')&&_0xd55b62['plugins']['has']('ImageInlineEditing')&&(_0x3e7d79['enableCommand']('imageTypeInline',(_0x383915,_0x237365)=>{const _0x31c52c=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']);_0xd55b62['model']['change'](()=>{_0x3e7d79['markBlockFormat'](_0x31c52c,{'commandName':'imageTypeInline','commandParams':[_0x237365]},[],'convertBlockImageToInline');});}),_0x3e7d79['enableCommand']('imageTypeBlock',(_0x1e000a,_0x445b24)=>{_0xd55b62['model']['change'](_0x3d97fd=>{let _0x17befb=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x56796e=_0x3d97fd['createRangeOn'](_0x17befb);const _0x47de15=_0x3a1667['fromPosition'](_0x56796e['start'],'toPrevious'),_0x10e0f1=_0x3a1667['fromPosition'](_0x56796e['end'],'toNext');_0x3e7d79['forceDefaultExecution'](()=>_0x1e000a(_0x445b24)),_0x17befb=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x56796e=_0x3d97fd['createRangeOn'](_0x17befb);const _0x52d098=_0x3d97fd['createRange'](_0x47de15,_0x10e0f1);_0x47de15['detach'](),_0x10e0f1['detach'](),_0x3e7d79['markBlockFormat'](_0x17befb,{'commandName':'imageTypeInline','commandParams':[_0x445b24]},[],'convertInlineImageToBlock'),_0x52d098['start']['isBefore'](_0x56796e['start'])&&_0x3e7d79['markInsertion'](_0x3d97fd['createRange'](_0x52d098['start'],_0x56796e['start']),'convertInlineImageToBlock'),_0x56796e['end']['isBefore'](_0x52d098['end'])&&_0x3e7d79['markInsertion'](_0x3d97fd['createRange'](_0x56796e['end'],_0x52d098['end']),'convertInlineImageToBlock');});}),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3e7d79['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3938ad])=>{const _0x391cfd=_0x3e7d79['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x54c389=_0x3938ad['start'],_0xfb69db=_0x3938ad['end'];const _0x50ed7f=_0xd55b62['model']['schema']['getNearestSelectionRange'](_0x54c389,'backward'),_0x4c8644=_0xd55b62['model']['schema']['getNearestSelectionRange'](_0xfb69db,'forward');_0x50ed7f['isCollapsed']&&(_0x54c389=_0x50ed7f['start']),_0x4c8644['isCollapsed']&&(_0xfb69db=_0x4c8644['end']),_0x391cfd([_0xd55b62['model']['createRange'](_0x54c389,_0xfb69db)]);}),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x781ec3),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x781ec3)),_0xd55b62['plugins']['has']('ImageCaptionEditing')&&(_0x3e7d79['enableCommand']('toggleImageCaption',(_0x267f31,_0x48bfb4)=>{const _0x500750=_0xd55b62['plugins']['get']('ImageCaptionUtils');let _0x335cd0=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x2b14c5=_0x500750['getCaptionFromImageModelElement'](_0x335cd0);_0xd55b62['model']['change'](()=>{if(_0x2b14c5)return void _0x3e7d79['markDeletion'](_0xd55b62['model']['createRangeOn'](_0x2b14c5));const _0x4d64ce=_0x53961f['isBlockImage'](_0x335cd0);_0x267f31(_0x48bfb4),_0x335cd0=_0x53961f['getClosestSelectedImageElement'](_0xd55b62['model']['document']['selection']),_0x2b14c5=_0x500750['getCaptionFromImageModelElement'](_0x335cd0),_0x3e7d79['markInsertion'](_0xd55b62['model']['createRangeOn'](_0x2b14c5),_0x4d64ce?null:'imageCaption');});}),_0x3e7d79['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x781ec3));const _0xa0e3ea=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2fc53f(_0xfbd7c0,_0x1a4961){const _0x25eb54=_0xa0e3ea['findIndex'](({type:_0x126624,subType:_0xd88d87})=>_0xfbd7c0['type']==_0x126624&&_0xfbd7c0['subType']==_0xd88d87),_0x266271=_0xa0e3ea['findIndex'](({type:_0x2fe0b6,subType:_0x55954e})=>_0x1a4961['type']==_0x2fe0b6&&_0x1a4961['subType']==_0x55954e);if(_0x25eb54<0x0||_0x266271<0x0)return!0x1;const _0x59db56=_0xfbd7c0['getFirstRange'](),_0x4c670a=_0x1a4961['getFirstRange']();if((0x0==_0x25eb54||0x1==_0x25eb54)&&0x2==_0x266271&&_0x59db56['isIntersecting'](_0x4c670a))return!0x0;if(0x2==_0x25eb54&&0x3==_0x266271){const _0x2b9b48=_0x3e7d79['_findSuggestions'](_0x59db56,'insertion')['filter'](({suggestion:_0x4151ce,meta:_0x1c18c4})=>_0x1c18c4['isOwn']&&'convertInlineImageToBlock'==_0x4151ce['subType']);if(_0x2b9b48['length']>0x1&&_0x4c670a['end']['isEqual'](_0x59db56['start']))return!0x0;if(0x1==_0x2b9b48['length']&&(_0x59db56['start']['isEqual'](_0x4c670a['end'])||_0x59db56['end']['isEqual'](_0x4c670a['start'])))return!0x0;}if(0x3==_0x25eb54&&0x3==_0x266271&&_0x59db56['start']['isBefore'](_0x4c670a['start'])){const _0x4ffd6c=_0x59db56['end']['nodeAfter'],_0x22b90a=_0x4c670a['start']['nodeBefore'];return _0x53961f['isBlockImage'](_0x4ffd6c)&&_0x4ffd6c===_0x22b90a;}return!0x1;}function _0x781ec3(_0x5eea4d,_0x53a1a5){return _0x2fc53f(_0x5eea4d,_0x53a1a5)?[_0x5eea4d,_0x53a1a5]:_0x2fc53f(_0x53a1a5,_0x5eea4d)?[_0x53a1a5,_0x5eea4d]:null;}_0xd55b62['plugins']['has']('ImageResize')&&(_0x3e7d79['enableDefaultAttributesIntegration']('resizeImage'),_0x3e7d79['registerBlockAttribute']('resizedWidth'),_0x3e7d79['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x236b99,'FORMAT_IMAGE_SIZE'))),_0xd55b62['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3e7d79['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3e7d79['registerBlockAttribute']('alt')),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x36e51c=>{if(!!_0xa0e3ea['find'](({type:_0x6191ac,subType:_0x2161ba})=>_0x36e51c['type']==_0x6191ac&&_0x36e51c['subType']==_0x2161ba))return _0x36e51c['previous']?{}:void 0x0;}),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x233ff5=>{if('insertion'==_0x233ff5['type']||'deletion'==_0x233ff5['type']){const _0x35c4b6=_0x233ff5['getContainedElement']();if(_0x35c4b6&&_0x35c4b6['is']('element','caption'))return{'type':'insertion'==_0x233ff5['type']?'addObject':'removeObject','element':_0x35c4b6,'quantity':0x1};}}),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x3c60e0=>'formatBlock'==_0x3c60e0['type']&&'convertInlineImageToBlock'==_0x3c60e0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3c60e0['type']&&'convertBlockImageToInline'==_0x3c60e0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3e7d79['descriptionFactory']['registerDescriptionCallback'](_0x57d405=>{if('attribute'!=_0x57d405['type'])return;const {data:_0x22484f}=_0x57d405;if(!_0x22484f||'alt'!=_0x22484f['key'])return;const _0x3324f8=_0x22484f['newValue'];return _0x3324f8?{'type':'format','content':o(_0x236b99,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3324f8+'\x22')}:{'type':'format','content':o(_0x236b99,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x521549=this['editor'],_0x21bec5=_0x521549['locale'];_0x521549['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a075b=>{if('formatBlock'!=_0x2a075b['type']&&'formatInline'!=_0x2a075b['type'])return;const {data:_0x3ddf6b}=_0x2a075b;if(_0x3ddf6b){if('imageTextAlternative'==_0x3ddf6b['commandName']){const _0x61a815=_0x3ddf6b['commandParams'][0x0]['newValue'];return _0x61a815?{'type':'format','content':o(_0x21bec5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x61a815+'\x22')}:{'type':'format','content':o(_0x21bec5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3ddf6b['commandName']){const _0x3365ab=_0x3ddf6b['commandParams'][0x0]['width'];return _0x3365ab?{'type':'format','content':o(_0x21bec5,'*Set\x20image\x20width:*\x20%0',_0x3365ab)}:{'type':'format','content':o(_0x21bec5,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x334a0f=this['editor']['locale'],_0x553a07=this['editor']['plugins']['get']('TrackChangesEditing');_0x553a07['enableDefaultAttributesIntegration']('replaceImageSource'),_0x553a07['registerBlockAttribute']('src'),_0x553a07['descriptionFactory']['registerDescriptionCallback'](_0x11ad29=>{if('attribute'!=_0x11ad29['type'])return;const {data:_0xade7d6}=_0x11ad29;return _0xade7d6&&'src'==_0xade7d6['key']?_0xade7d6['newValue']&&_0xade7d6['oldValue']?{'type':'format','content':o(_0x334a0f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x813352=this['editor']['plugins']['get']('TrackChangesEditing');_0x813352['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x813352['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x813352['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x813352['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xac94bd=this['editor'],_0x16c28b=_0xac94bd['locale'];_0xac94bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dff68=>{if('formatBlock'!=_0x3dff68['type']&&'formatInline'!=_0x3dff68['type'])return;const {data:_0x51e6cf}=_0x3dff68;if(!_0x51e6cf||'replaceImageSource'!=_0x51e6cf['commandName'])return;return{'type':'format','content':o(_0x16c28b,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x58a0bc{['afterInit'](){const _0x1746f7=this['editor'];if(!_0x1746f7['plugins']['has']('ImageStyleEditing'))return;const _0xfe5a7f=_0x1746f7['plugins']['get']('TrackChangesEditing'),_0x5a0edc=_0x1746f7['plugins']['get']('ImageUtils'),_0x110f41={};_0xfe5a7f['enableCommand']('imageStyle',(_0x238baa,_0x4afe7e)=>{const _0x26bc1d=_0x1746f7['plugins']['get']('Users')['me'],_0x1a3fb2=_0x1746f7['commands']['get']('imageStyle');let _0x4835fb=_0x5a0edc['getClosestSelectedImageElement'](_0x1746f7['model']['document']['selection']),_0x478ae3=_0x1746f7['model']['createRangeOn'](_0x4835fb),_0x530000=_0x1a3fb2['value'];if(_0x530000==_0x4afe7e['value'])return;const _0x6594c5={'commandName':'imageStyle','commandParams':[_0x4afe7e],'formatGroupId':_0x546e08()};_0x1746f7['model']['change'](()=>{if(_0xfe5a7f['getSuggestions']()['filter'](_0x27664a=>_0x27664a['isInContent']&&_0x26bc1d==_0x27664a['author']&&('formatBlock'==_0x27664a['type']||'formatInline'==_0x27664a['type'])&&('imageStylePreApply'==_0x27664a['subType']||'imageStylePostApply'==_0x27664a['subType'])&&_0x27664a['getFirstRange']()['isEqual'](_0x478ae3))['forEach'](_0x1fb40e=>_0xfe5a7f['discardSuggestion'](_0x1fb40e['head'])),_0x4835fb=_0x5a0edc['getClosestSelectedImageElement'](_0x1746f7['model']['document']['selection']),_0x478ae3=_0x1746f7['model']['createRangeOn'](_0x4835fb),_0x1a3fb2['refresh'](),_0x1746f7['commands']['get']('imageTypeInline')['refresh'](),_0x1746f7['commands']['get']('imageTypeBlock')['refresh'](),_0x530000=_0x1a3fb2['value'],_0x530000!=_0x4afe7e['value'])return _0x5a0edc['isInlineImage'](_0x4835fb)&&_0x1a3fb2['shouldConvertImageType'](_0x4afe7e['value'],_0x4835fb)?(_0x238baa({..._0x4afe7e,'setImageSizes':!0x1}),_0x4835fb=_0x5a0edc['getClosestSelectedImageElement'](_0x1746f7['model']['document']['selection']),void _0xfe5a7f['markBlockFormat'](_0x4835fb,{..._0x6594c5,'commandReversedParams':[{'value':_0x530000||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5a0edc['isBlockImage'](_0x4835fb)?_0xfe5a7f['markBlockFormat'](_0x4835fb,_0x6594c5,[],'imageStylePostApply'):_0xfe5a7f['markInlineFormat'](_0x478ae3,_0x6594c5,'imageStylePostApply'));});});for(const _0x1556aa of _0x1746f7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x110f41[_0x1556aa['name']]=_0x1556aa['title']['toLowerCase']();_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5236e1])=>{_0x5a0edc['setImageNaturalSizeAttributes'](_0x5236e1['getContainedElement']());}),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xaebc9,_0x521093)=>{_0xfe5a7f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xaebc9,{'commandName':_0x521093['commandName'],'commandParams':_0x521093['commandReversedParams']});}),_0xfe5a7f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x386d19,_0x2fd5c7){if(_0x329237(_0x386d19,_0x2fd5c7))return[_0x386d19,_0x2fd5c7];if(_0x329237(_0x2fd5c7,_0x386d19))return[_0x2fd5c7,_0x386d19];return null;});const _0xe952e4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x329237(_0x484297,_0x50491d){const _0xb6f312=_0xe952e4['findIndex'](({type:_0x866077,subType:_0x21868a})=>_0x484297['type']==_0x866077&&_0x484297['subType']==_0x21868a),_0x4298fb=_0xe952e4['findIndex'](({type:_0x1eb9a8,subType:_0x1c1903})=>_0x50491d['type']==_0x1eb9a8&&_0x50491d['subType']==_0x1c1903);if(_0xb6f312<0x0||_0x4298fb<0x0)return!0x1;const _0x3b85af=_0x484297['getFirstRange'](),_0x585e80=_0x50491d['getFirstRange']();if((0x0==_0xb6f312||0x1==_0xb6f312)&&0x2==_0x4298fb&&_0x3b85af['isIntersecting'](_0x585e80))return!0x0;if(0x2==_0xb6f312&&0x3==_0x4298fb){const _0x15e7e8=_0xfe5a7f['_findSuggestions'](_0x3b85af,'insertion')['filter'](({suggestion:_0xd4e47a,meta:_0x40bb77})=>_0x40bb77['isOwn']&&'convertInlineImageToBlock'==_0xd4e47a['subType']);if(_0x15e7e8['length']>0x1&&_0x585e80['end']['isEqual'](_0x3b85af['start']))return!0x0;if(0x1==_0x15e7e8['length']&&(_0x3b85af['start']['isEqual'](_0x585e80['end'])||_0x3b85af['end']['isEqual'](_0x585e80['start'])))return!0x0;}if(0x3==_0xb6f312&&0x3==_0x4298fb&&_0x3b85af['start']['isBefore'](_0x585e80['start'])){const _0xe04d5c=_0x3b85af['end']['nodeAfter'],_0x44adf2=_0x585e80['start']['nodeBefore'];return _0x5a0edc['isBlockImage'](_0xe04d5c)&&_0xe04d5c===_0x44adf2;}return!0x1;}_0x1746f7['model']['document']['registerPostFixer'](()=>{let _0x146cc5=!0x1;const _0x58d727=Array['from'](_0x1746f7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x285171,data:_0x50e345}of _0x58d727){const {group:_0x1a3f81,type:_0x13b3ad,subType:_0x505cef,id:_0x23c4c1}=_0xfe5a7f['_splitMarkerName'](_0x285171);if('suggestion'==_0x1a3f81&&_0xfe5a7f['hasSuggestion'](_0x23c4c1)){if('formatBlock'==_0x13b3ad&&('imageStylePreApply'==_0x505cef||'imageStylePostApply'==_0x505cef)){const _0x1cc085=_0xfe5a7f['getSuggestion'](_0x23c4c1);if(_0x50e345['newRange']){const _0x30783a=_0x1cc085['getFirstRange']()['getContainedElement']();if(_0x5a0edc['isBlockImage'](_0x30783a))continue;_0xfe5a7f['discardSuggestion'](_0x1cc085),_0x146cc5=!0x0;}}if('insertion'==_0x13b3ad&&'imageCaption'==_0x505cef&&!_0x50e345['newRange']){const _0x3b1ea8=_0xfe5a7f['getSuggestion'](_0x23c4c1);_0x3b1ea8['next']&&_0x3b1ea8['next']['isInContent']&&(_0xfe5a7f['discardSuggestion'](_0x3b1ea8['next']),_0x146cc5=!0x0);}}}return _0x146cc5;}),this['_registerLegacyDescription'](_0x110f41);}['_registerLegacyDescription'](_0x9258c9){const _0x1e5dc3=this['editor'],_0x53d4b7=_0x1e5dc3['locale'];_0x1e5dc3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a0a66=>{if('formatBlock'!=_0x2a0a66['type']&&'formatInline'!=_0x2a0a66['type'])return;const {data:_0x4fe6c4}=_0x2a0a66;if(!_0x4fe6c4||'imageStyle'!=_0x4fe6c4['commandName'])return;const _0x2ac869=_0x4fe6c4['commandParams'][0x0]['value'];return _0x58845a('side'===_0x2ac869?o(_0x53d4b7,'FORMAT_SIDE_IMAGE'):_0x9258c9[_0x2ac869]||_0x2ac869);function _0x58845a(_0x5b9723){return{'type':'format','content':o(_0x53d4b7,'*Format:*\x20%0',_0x5b9723)};}});}}class at extends _0x58a0bc{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x8a27fb){super(_0x8a27fb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x58f5f1=this['editor'],_0x5a4233=_0x58f5f1['commands']['get']('importWord'),_0x429a4d=_0x58f5f1['commands']['get']('trackChanges');_0x5a4233&&(_0x5a4233['on']('execute',(_0x17bf5a,[,_0x2212be])=>{this['_trackChangesValueDuringImport']=_0x429a4d['value'],_0x2212be['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5a4233,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5a4233,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x429a4d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x58f5f1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xef55cc,_0x199406){const {suggestions:_0x468e6e}=_0x199406,_0x5b3394=this['editor']['commands']['get']('trackChanges'),_0x3a4ded=_0x5b3394['value'];this['_trackChangesValueDuringImport']!==_0x3a4ded&&(_0x5b3394['execute'](),this['_trackChangesExecuted']=!0x0),_0x468e6e&&_0x468e6e['forEach'](({id:_0x2f765c,type:_0x26aebc,author:_0x12ba1c,created_at:_0x4ad53e})=>{const _0x501aa8={'id':_0x2f765c,'type':_0x26aebc,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x12ba1c,'createdAt':_0x4ad53e?new Date(_0x4ad53e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x501aa8);});}}class ct extends _0x58a0bc{['afterInit'](){const _0xb17b20=this['editor'],_0x338316=_0xb17b20['plugins']['get']('TrackChangesEditing');if(_0xb17b20['plugins']['has']('IndentEditing')&&(_0x338316['enableCommand']('indent'),_0x338316['enableCommand']('outdent')),_0xb17b20['plugins']['has']('IndentBlock')){for(const _0x2b7b07 of['indentBlock','outdentBlock'])_0x338316['enableDefaultAttributesIntegration'](_0x2b7b07);}const _0x34ff7b=_0xb17b20['locale'];_0x338316['registerBlockAttribute']('blockIndent'),_0x338316['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x34ff7b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5647fc=this['editor'],_0x11bcec=_0x5647fc['locale'],_0x28e3f5=_0x5647fc['plugins']['get']('TrackChangesEditing');_0x28e3f5['descriptionFactory']['registerDescriptionCallback'](_0x34c79a=>{if('formatBlock'!=_0x34c79a['type'])return;const {data:_0x59537f}=_0x34c79a;if(!_0x59537f)return;if('indentBlock'!=_0x59537f['commandName']&&'outdentBlock'!=_0x59537f['commandName'])return;const _0x184176=_0x34c79a['getItems']()[0x0],_0x77fe51=_0x28e3f5['descriptionFactory']['getItemLabel'](_0x184176);return'indentBlock'==_0x59537f['commandName']?{'type':'format','content':o(_0x11bcec,'*Indent:*\x20%0',_0x77fe51)}:'outdentBlock'==_0x59537f['commandName']?{'type':'format','content':o(_0x11bcec,'*Outdent:*\x20%0',_0x77fe51)}:void 0x0;});}}class ut extends _0x58a0bc{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x58a0bc{['afterInit'](){const _0x12de99=this['editor'];if(!_0x12de99['plugins']['has']('LinkEditing'))return;const _0x329297=_0x12de99['plugins']['get']('TrackChangesEditing'),_0x4386e6=_0x12de99['commands']['get']('link');_0x329297['enableDefaultAttributesIntegration']('link'),_0x329297['enableDefaultAttributesIntegration']('unlink'),_0x329297['registerInlineAttribute']('linkHref');for(const _0x51e350 of _0x4386e6['manualDecorators'])_0x329297['registerInlineAttribute'](_0x51e350['id']),_0x329297['descriptionFactory']['registerAttributeLabel'](_0x51e350['id'],'link\x20('+_0x51e350['label']['toLowerCase']()+')');_0x329297['descriptionFactory']['registerDescriptionCallback'](_0x3b1f61=>{if('attribute'!=_0x3b1f61['type'])return;const {data:_0x209a63}=_0x3b1f61;if(!_0x209a63||'linkHref'!=_0x209a63['key'])return;const _0x4a5be3=_0x209a63['newValue'],_0x5c8b83=_0x12de99['locale'];return{'type':'format','content':null==_0x4a5be3?o(_0x5c8b83,'*Remove\x20link*'):o(_0x5c8b83,'*Set\x20link:*\x20%0','\x22'+_0x4a5be3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19694a=this['editor'],_0x2c5fdd=_0x19694a['locale'];_0x19694a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38f168=>{if('formatInline'!=_0x38f168['type'])return;const {data:_0x123d4b}=_0x38f168;if(_0x123d4b){if('link'==_0x123d4b['commandName']){const _0xcb2c80=_0x123d4b['commandParams'][0x0];return{'type':'format','content':o(_0x2c5fdd,'*Set\x20link:*\x20%0','\x22'+_0xcb2c80+'\x22')};}return'unlink'==_0x123d4b['commandName']?{'type':'format','content':o(_0x2c5fdd,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x58a0bc{['afterInit'](){const _0xc0ea6a=this['editor'],_0xf4601d=_0xc0ea6a['locale'];if(!_0xc0ea6a['plugins']['has']('LegacyListEditing'))return;const _0x542059=_0xc0ea6a['plugins']['get']('TrackChangesEditing'),_0x6a8c71=_0xc0ea6a['plugins']['has']('LegacyTodoListEditing');function _0x19c954(_0x3c9f7f){return()=>{const _0x30a7fd=_0xc0ea6a['model']['document']['selection'],_0x5d5907=_0xc0ea6a['commands']['get'](_0x3c9f7f);if(_0x5d5907['value'])return void _0xc0ea6a['execute']('paragraph',{});const _0x2f6cbd=_0x3c9f7f['slice'](0x0,-0x4),_0x421656=function(_0x58a2fc,_0x90ae6d,_0x515ff2){let _0x3c9c83=Array['from'](_0x58a2fc)['filter'](_0x4a313e=>function(_0x2a1036,_0x51322f){return _0x51322f['checkChild'](_0x2a1036['parent'],'listItem')&&!_0x51322f['isObject'](_0x2a1036);}(_0x4a313e,_0x515ff2));_0x3c9c83=_0x3c9c83['filter'](_0x10e1d6=>!_0x10e1d6['is']('element','listItem')||_0x10e1d6['getAttribute']('listType')!=_0x90ae6d);const _0x24f132=new Set();for(const _0x414a73 of _0x3c9c83)_0x414a73['is']('element','listItem')?_0x24f132['add'](fe(_0x414a73)):_0x24f132['add'](_0x414a73);return Array['from'](_0x24f132);}(_0x30a7fd['getSelectedBlocks'](),_0x2f6cbd,_0xc0ea6a['model']['schema']);_0xc0ea6a['model']['change'](()=>{for(const _0x578ac5 of _0x421656)_0x542059['markBlockFormat'](_0x578ac5,{'commandName':_0x3c9f7f,'commandParams':[{'forceValue':!_0x5d5907['value']}],'formatGroupId':'blockName'},ue(_0x578ac5));});};}function _0x49ed59(_0x5cbe86){return()=>{const _0x3c7a59=function(_0x506ee2){let _0x3e0257=Array['from'](_0x506ee2);const _0x4f2910=_0x3e0257['findIndex'](_0x2a9ec3=>'listItem'!=_0x2a9ec3['name']);return _0x4f2910>-0x1&&(_0x3e0257=_0x3e0257['slice'](0x0,_0x4f2910)),_0x3e0257;}(_0xc0ea6a['model']['document']['selection']['getSelectedBlocks']()),_0x49751d=_0xc0ea6a['model']['createRange'](_0xc0ea6a['model']['createPositionAt'](_0x3c7a59[0x0],'before'),_0xc0ea6a['model']['createPositionAt'](_0x3c7a59[_0x3c7a59['length']-0x1],'end'));_0xc0ea6a['model']['change'](()=>{_0x542059['markBlockFormat'](_0x49751d,{'commandName':_0x5cbe86,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3aacf4){const _0x196d58=new Set();for(const _0x5f0864 of _0x3aacf4){let _0x1f17c4=_0x5f0864['nextSibling'];for(;_0x1f17c4&&_0x1f17c4['getAttribute']('listIndent')>_0x5f0864['getAttribute']('listIndent');)_0x196d58['add'](_0x1f17c4),_0x1f17c4=_0x1f17c4['nextSibling'];}return Array['from'](_0x196d58);}(_0x3c7a59));});};}_0x542059['enableCommand']('numberedList',_0x19c954('numberedList')),_0x542059['enableCommand']('bulletedList',_0x19c954('bulletedList')),_0x6a8c71&&_0x542059['enableCommand']('todoList',_0x19c954('todoList')),_0x542059['enableCommand']('indentList',_0x49ed59('indentList')),_0x542059['enableCommand']('outdentList',_0x49ed59('outdentList')),_0x6a8c71&&_0x542059['enableCommand']('checkTodoList',()=>{const _0x5476b1=_0xc0ea6a['commands']['get']('checkTodoList'),_0x513d53=Array['from'](_0x5476b1['_selectedElements']);_0x513d53['filter'](_0x15c059=>_0x15c059['getAttribute']('todoListChecked')!=_0x5476b1['value']),_0xc0ea6a['model']['change'](()=>{for(const _0x1097f0 of _0x513d53)_0x542059['markBlockFormat'](_0x1097f0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5476b1['value']}]});});}),_0x542059['descriptionFactory']['registerElementLabel']('listItem',_0x5b33b4=>o(_0xf4601d,'ELEMENT_LIST_ITEM',_0x5b33b4)),_0x542059['descriptionFactory']['registerDescriptionCallback'](_0x34d17e=>{if('formatBlock'!=_0x34d17e['type']&&'formatInline'!=_0x34d17e['type'])return;const {data:_0x5a02ee}=_0x34d17e;if(_0x5a02ee){if('numberedList'==_0x5a02ee['commandName']||'bulletedList'==_0x5a02ee['commandName']||'todoList'==_0x5a02ee['commandName'])switch(_0x5a02ee['commandName']['replace']('List','')){case'bulleted':return _0x32256d(o(_0xf4601d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x32256d(o(_0xf4601d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x32256d(o(_0xf4601d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5a02ee['commandName'])return{'type':'format','content':o(_0xf4601d,'*Indent:*\x20%0',o(_0xf4601d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5a02ee['commandName'])return{'type':'format','content':o(_0xf4601d,'*Outdent:*\x20%0',o(_0xf4601d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5a02ee['commandName'])return _0x5a02ee['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf4601d,'*Check\x20item*')}:{'type':'format','content':o(_0xf4601d,'*Uncheck\x20item*')};}function _0x32256d(_0xa4fa3a){return{'type':'format','content':o(_0xf4601d,'*Change\x20to:*\x20%0',_0xa4fa3a)};}});}}function fe(_0x378d83){const _0x154495=_0x378d83['getAttribute']('listIndent');if(0x0==_0x154495)return _0x378d83;let _0x4e82ef=_0x378d83;for(;_0x378d83['previousSibling']&&_0x378d83['previousSibling']['is']('element','listItem');){const _0x5b6f40=_0x378d83['previousSibling']['getAttribute']('listIndent');if(_0x5b6f40==_0x154495)_0x4e82ef=_0x378d83['previousSibling'];else{if(_0x5b6f40<_0x154495)break;}_0x378d83=_0x378d83['previousSibling'];}return _0x4e82ef;}function ue(_0x2949b1){const _0x398314=[];if(_0x2949b1['is']('element','listItem')&&_0x2949b1['getAttribute']('listIndent')>0x0){let _0x1a84f1=_0x2949b1['nextSibling'];for(;_0x1a84f1&&'listItem'==_0x1a84f1['name']&&_0x1a84f1['getAttribute']('listIndent')==_0x2949b1['getAttribute']('listIndent');)_0x398314['push'](_0x1a84f1),_0x1a84f1=_0x1a84f1['nextSibling'];}return _0x398314;}class W extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1c6da2=this['editor']['config']['get']('list.properties'),_0x504b88=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c6da2['styles']&&_0x504b88['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1c6da2['reversed']&&_0x504b88['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1c6da2['startIndex']&&_0x504b88['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x504b88['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x402adf,_0xfd8ba0={}){const _0x3ae3ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x247b29=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3ae3ba['markMultiRangeBlockFormat'](_0x247b29,{'commandName':'listStyle','commandParams':[{'type':_0xfd8ba0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x261f59,_0x2f0906={}){const _0x40fd29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x376bde=this['_getSuggestionBlocks'](_0x151575=>_0x151575['is']('element','listItem')&&'numbered'===_0x151575['getAttribute']('listType'));if(_0x376bde['length']<0x1)return;const _0x3aba83=_0x376bde['map'](_0x59f48b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x59f48b,'before'),this['editor']['model']['createPositionAt'](_0x59f48b,0x0)));this['editor']['model']['change'](()=>{_0x40fd29['markMultiRangeBlockFormat'](_0x3aba83,{'commandName':'listReversed','commandParams':[{'reversed':_0x2f0906['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x35fda2,_0x45e31e={}){const _0x3652a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17a1fa=this['_getSuggestionBlocks'](_0x2954f4=>_0x2954f4['is']('element','listItem')&&'numbered'===_0x2954f4['getAttribute']('listType'));if(_0x17a1fa['length']<0x1)return;const _0x4f0e4c=_0x17a1fa['map'](_0x5abe85=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5abe85,'before'),this['editor']['model']['createPositionAt'](_0x5abe85,0x0)));this['editor']['model']['change'](()=>{_0x3652a5['markMultiRangeBlockFormat'](_0x4f0e4c,{'commandName':'listStart','commandParams':[{'startIndex':_0x45e31e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xbbc23f){if('formatBlock'!=_0xbbc23f['type']&&'formatInline'!=_0xbbc23f['type'])return;const _0x25c0b1=this['editor']['locale'],{data:_0x23bcc0}=_0xbbc23f;if(!_0x23bcc0)return;let _0x488053,_0x2e7b2e;switch(_0x23bcc0['commandName']){case'listStyle':_0x488053='*Change\x20to:*\x20%0',_0x2e7b2e={'type':'format','content':o(_0x25c0b1,_0x488053,o(_0x25c0b1,this['_getTranslationKeyForListStyle'](_0x23bcc0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x488053=_0x23bcc0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e7b2e={'type':'format','content':o(_0x25c0b1,_0x488053)};break;case'listStart':_0x488053='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e7b2e={'type':'format','content':o(_0x25c0b1,_0x488053,_0x23bcc0['commandParams'][0x0]['startIndex'])};}return _0x2e7b2e;}['_getSuggestionBlocksForListStyle'](){const _0x1da697=this['editor']['plugins']['get']('LegacyListUtils');let _0x31a409=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x31a409[0x0]?.['is']('element','listItem')&&_0x31a409['unshift'](..._0x1da697['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x31a409[_0x31a409['length']-0x1]?.['is']('element','listItem')&&_0x31a409['push'](..._0x1da697['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x31a409=[...new Set(_0x31a409)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x31a409=_0x31a409['filter'](_0x1fb1f4=>_0x1fb1f4['is']('element','listItem'))),_0x31a409;}['_getSuggestionBlocks'](_0x219b16){const _0x1c4750=this['editor']['plugins']['get']('LegacyListUtils');let _0x5f2c49=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x219b16)['map'](_0x77a183=>{const _0x4f06b0=this['editor']['model']['createPositionAt'](_0x77a183,0x0);return[..._0x1c4750['getSiblingNodes'](_0x4f06b0,'backward'),..._0x1c4750['getSiblingNodes'](_0x4f06b0,'forward')];})['flat']();return _0x5f2c49=[...new Set(_0x5f2c49)],_0x5f2c49;}['_getTranslationKeyForListStyle'](_0x5773de){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5773de)||'default')['toUpperCase']()+'_LIST_'+_0x5773de['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x58a0bc{['afterInit'](){const _0x401716=this['editor'];if(!_0x401716['plugins']['has']('MediaEmbedEditing'))return;const _0xaf250a=_0x401716['plugins']['get']('TrackChangesEditing'),_0xcb7402=_0x401716['locale'];_0xaf250a['enableCommand']('mediaEmbed'),_0xaf250a['descriptionFactory']['registerElementLabel']('media',_0x2deb6b=>o(_0xcb7402,'ELEMENT_MEDIA',_0x2deb6b)),_0x401716['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x14bf00,{writer:_0x43725c,options:_0x32fba9})=>{if(_0x32fba9['showSuggestionHighlights'])return _0x43725c['createEmptyElement']('div');},'converterPriority':'high'}),_0x401716['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3bd1d7,_0x308a70,_0xe54e39)=>{_0xe54e39['options']['showSuggestionHighlights']&&_0x3bd1d7['stop']();},{'priority':'high'});}}class mt extends _0x58a0bc{['afterInit'](){const _0x27bb8a=this['editor'];_0x27bb8a['plugins']['has']('MentionEditing')&&_0x27bb8a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x58a0bc{['afterInit'](){const _0x591d4a=this['editor'];if(!_0x591d4a['plugins']['has']('MergeFieldsEditing'))return;_0x591d4a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x591d4a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x26ef07=_0x591d4a['plugins']['get']('TrackChangesEditing'),_0x133461=_0x591d4a['locale'];_0x26ef07['descriptionFactory']['registerElementLabel']('mergeField',_0x24b161=>o(_0x133461,'ELEMENT_MERGE_FIELD',_0x24b161)),_0x26ef07['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x29301a=>o(_0x133461,'ELEMENT_MERGE_FIELD',_0x29301a)),_0x26ef07['descriptionFactory']['registerDescriptionCallback'](_0x39ea15=>{if('insertion'!=_0x39ea15['type']&&'deletion'!=_0x39ea15['type'])return;const _0x31040b=_0x39ea15['getContainedElement']();if(null==_0x31040b)return;if(!_0x31040b['is']('element','mergeField')&&!_0x31040b['is']('element','mergeFieldBlock'))return;const _0x35c289=_0x591d4a['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x31040b['getAttribute']('id'));return'insertion'==_0x39ea15['type']?{'type':'insertion','content':o(_0x133461,'*Insert:*\x20%0','\x22'+_0x35c289+'\x22\x20'+o(_0x133461,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x133461,'*Remove:*\x20%0','\x22'+_0x35c289+'\x22\x20'+o(_0x133461,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x58a0bc{['afterInit'](){const _0x336ffa=this['editor'],_0x187544=_0x336ffa['plugins']['get']('TrackChangesEditing');_0x336ffa['plugins']['has']('MultiLevelList')&&(_0x187544['enableDefaultAttributesIntegration']('multiLevelList'),_0x187544['registerBlockAttribute']('listMarkerStyle'),_0x187544['descriptionFactory']['registerDescriptionCallback'](_0x232d2f=>this['handleDescriptions'](_0x232d2f)));}['handleDescriptions'](_0x585620){const _0x15642c=this['editor']['locale'],{data:_0x3fa22d}=_0x585620,_0x2dd72f={'type':'format','content':''};if(_0x3fa22d&&'listMarkerStyle'==_0x3fa22d['key']){if(!_0x3fa22d['oldValue'])return{'type':'format','content':o(_0x15642c,'*Set\x20format:*\x20%0',o(_0x15642c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fa22d['newValue']+')'};if(!_0x3fa22d['newValue']){let _0x1ffb89=_0x585620['head'];for(;_0x1ffb89;){if(_0x1ffb89['data']&&'listType'==_0x1ffb89['data']['key']&&_0x1ffb89['data']['newValue'])return _0x2dd72f;_0x1ffb89=_0x1ffb89['next'];}return{'type':'format','content':o(_0x15642c,'*Remove\x20format:*\x20%0',o(_0x15642c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fa22d['oldValue']+')'};}}}}class kt extends _0x58a0bc{['afterInit'](){const _0x27e9b1=this['editor'];if(!_0x27e9b1['plugins']['has']('PageBreakEditing'))return;_0x27e9b1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d1b81=_0x27e9b1['plugins']['get']('TrackChangesEditing'),_0xe40d53=_0x27e9b1['locale'];_0x3d1b81['descriptionFactory']['registerElementLabel']('pageBreak',_0x389a66=>o(_0xe40d53,'ELEMENT_PAGE_BREAK',_0x389a66));}}class bt extends _0x58a0bc{['afterInit'](){const _0x4f7be5=this['editor'];if(!_0x4f7be5['plugins']['has']('Paragraph'))return;const _0x11dd5f=_0x4f7be5['locale'],_0x78f442=_0x4f7be5['plugins']['get']('TrackChangesEditing');_0x78f442['descriptionFactory']['registerElementLabel']('paragraph',_0xfadafe=>o(_0x11dd5f,'ELEMENT_PARAGRAPH',_0xfadafe)),_0x78f442['enableDefaultAttributesIntegration']('paragraph'),_0x78f442['enableCommand']('insertParagraph'),_0x4f7be5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4f7be5),{'priority':'highest'}),_0x4f7be5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x32837e,_0x27fe37,_0x4c4d7a)=>{_0x4c4d7a['options']['showSuggestionHighlights']&&nr(_0x4f7be5,{'showActiveMarker':!0x1})(_0x32837e,_0x27fe37,_0x4c4d7a);},{'priority':'highest'});const _0x3874d3=_0x78f442['descriptionFactory'];_0x3874d3['registerDescriptionCallback'](_0x5ef6b2=>{if('insertion'!==_0x5ef6b2['type'])return;const {start:_0x495531,end:_0x4e4207}=_0x5ef6b2['getFirstRange']();if(!_0x495531['isTouching'](_0x4e4207)||!_0x495531['nodeAfter'])return;const _0x38a40e=_0x4f7be5['model']['schema'],_0x1a08cf=_0x495531['nodeAfter'];return _0x38a40e['isBlock'](_0x1a08cf)&&!_0x38a40e['isLimit'](_0x1a08cf)&&_0x38a40e['checkChild'](_0x1a08cf,'$text')?{'type':'insertion','content':o(_0x11dd5f,'*Insert:*\x20%0',_0x3874d3['getItemLabel'](_0x1a08cf,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a218c=this['editor'],_0xd4905d=_0x3a218c['locale'];_0x3a218c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x338a0d=>{if('formatBlock'!=_0x338a0d['type'])return;const {data:_0x4f0597}=_0x338a0d;return _0x4f0597&&'paragraph'==_0x4f0597['commandName']?{'type':'format','content':o(_0xd4905d,'*Change\x20to:*\x20%0',o(_0xd4905d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x220457,{showActiveMarker:_0x27d0df=!0x0}={}){return(_0x152b7d,_0x2a72bc,_0x5e447a)=>{const _0x3dd61f=_0x220457['plugins']['get']('TrackChangesEditing'),_0x297762=_0x2a72bc['markerRange']['start'],_0x348922=_0x2a72bc['markerRange']['end'],_0x503f2d=_0x220457['model']['schema'];if(!_0x297762['isTouching'](_0x348922)||!_0x297762['nodeAfter'])return;const _0x1e00c5=_0x297762['nodeAfter'];if(_0x503f2d['isBlock'](_0x1e00c5)&&!_0x503f2d['isLimit'](_0x1e00c5)&&_0x503f2d['checkChild'](_0x1e00c5,'$text')){if(!_0x5e447a['consumable']['consume'](_0x2a72bc['markerRange'],_0x152b7d['name']))return;const {authorId:_0x410898}=_0x3dd61f['_splitMarkerName'](_0x2a72bc['markerName']),_0x38eebe=_0x5e447a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x410898}),_0x3922b6=_0x5e447a['mapper']['toViewPosition'](_0x348922);_0x27d0df&&_0x3dd61f['activeMarkers']['includes'](_0x2a72bc['markerName'])&&_0x5e447a['writer']['addClass']('ck-suggestion-marker--active',_0x38eebe),_0x5e447a['writer']['insert'](_0x3922b6,_0x38eebe),_0x5e447a['mapper']['bindElementToMarker'](_0x38eebe,_0x2a72bc['markerName']);}};}class wt extends _0x58a0bc{['afterInit'](){const _0x5679fd=this['editor'];if(!_0x5679fd['plugins']['has']('RemoveFormatEditing'))return;_0x5679fd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x102cb6=this['editor'];_0x102cb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37f9e7=>{if('formatBlock'!=_0x37f9e7['type']&&'formatInline'!=_0x37f9e7['type'])return;const {data:_0x54c107}=_0x37f9e7;return _0x54c107&&'removeFormat'==_0x54c107['commandName']?{'type':'format','content':o(_0x102cb6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x58a0bc{['afterInit'](){const _0x4dfa63=this['editor'];if(!_0x4dfa63['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1b53f2=_0x4dfa63['plugins']['get']('TrackChangesEditing');_0x1b53f2['enableCommand']('goToPreviousRestrictedEditingException'),_0x1b53f2['enableCommand']('goToNextRestrictedEditingException');const _0x535ef6=_0x4dfa63['plugins']['get']('RestrictedEditingModeEditing');_0x535ef6['enableCommand']('trackChanges'),_0x535ef6['enableCommand']('acceptSuggestion'),_0x535ef6['enableCommand']('discardSuggestion'),_0x535ef6['enableCommand']('acceptAllSuggestions'),_0x535ef6['enableCommand']('discardAllSuggestions'),_0x535ef6['enableCommand']('acceptSelectedSuggestions'),_0x535ef6['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x58a0bc{static get['requires'](){return[_0x210491];}['init'](){const _0x104ba5=this['editor'],_0x1f9260=_0x104ba5['plugins']['get']('TrackChangesEditing');_0x1f9260['enableCommand']('shiftEnter'),_0x104ba5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x104ba5),{'priority':'high'}),_0x104ba5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x104ba5),{'priority':'high'}),_0x104ba5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x326650,_0x118f2c,_0xe29e32)=>{_0xe29e32['options']['showSuggestionHighlights']&&ge(_0x104ba5,{'showActiveMarker':!0x1})(_0x326650,_0x118f2c,_0xe29e32);}),_0x1f9260['descriptionFactory']['registerElementLabel']('softBreak',_0x4e40d9=>o(_0x104ba5['locale'],'ELEMENT_LINE_BREAK',_0x4e40d9));}}function ge(_0xefd499,{showActiveMarker:_0x3e76ce=!0x0}={}){return(_0x555419,_0x349435,_0x57afc8)=>{const _0x3e42bd=_0xefd499['plugins']['get']('TrackChangesEditing');if(!_0x57afc8['consumable']['test'](_0x349435['markerRange'],_0x555419['name']))return;const _0x2857c3=_0xefd499['model'];for(const _0x95df84 of _0x349435['markerRange']['getItems']()){if(!_0x95df84['is']('element','softBreak'))continue;const _0x2d1bf2='deletion'==_0x349435['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x49496b}=_0x3e42bd['_splitMarkerName'](_0x349435['markerName']),_0x343605=_0x57afc8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d1bf2,'data-author-id':_0x49496b}),_0x4bf886=_0x57afc8['mapper']['toViewPosition'](_0x2857c3['createPositionBefore'](_0x95df84));_0x3e76ce&&_0x3e42bd['activeMarkers']['includes'](_0x349435['markerName'])&&_0x57afc8['writer']['addClass']('ck-suggestion-marker--active',_0x343605),_0x57afc8['writer']['insert'](_0x4bf886,_0x343605),_0x57afc8['mapper']['bindElementToMarker'](_0x343605,_0x349435['markerName']);}};}class St extends _0x58a0bc{['afterInit'](){const _0x1e633c=this['editor'],_0x4d3569=_0x1e633c['model'],_0x5c610b=_0x1e633c['locale'];if(!_0x1e633c['plugins']['has']('StandardEditingModeEditing'))return;const _0x16b5c4=_0x1e633c['plugins']['get']('TrackChangesEditing'),_0xa126c3='restrictedEditingException',_0x406f93=_0x1e633c['commands']['get'](_0xa126c3);_0x16b5c4['enableCommand'](_0xa126c3,(_0x167d48,_0x37df7b={})=>{const _0xed20b5=_0x4d3569['document']['selection'];if(_0xed20b5['isCollapsed'])return void _0x167d48(_0x37df7b);const _0x1eedb2=void 0x0!==_0x37df7b['forceValue']?_0x37df7b['forceValue']:!_0x406f93['value'];_0x4d3569['change'](()=>{const _0x290d63=Array['from'](_0xed20b5['getRanges']());for(const _0x4912dc of _0x290d63){const _0x55c293=_0x1eedb2?[_0x4912dc]:io(_0xa126c3,_0x4912dc,_0x4d3569);for(const _0x282262 of _0x55c293)_0x16b5c4['markInlineFormat'](_0x282262,{'commandName':_0xa126c3,'commandParams':[{'forceValue':_0x1eedb2}]});}});}),_0x16b5c4['descriptionFactory']['registerDescriptionCallback'](_0x51affe=>{if('formatBlock'!=_0x51affe['type']&&'formatInline'!=_0x51affe['type'])return;const {data:_0x41da8f}=_0x51affe;return _0x41da8f&&_0x41da8f['commandName']==_0xa126c3?_0x41da8f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c610b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5c610b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x58a0bc{['afterInit'](){const _0x3d8908=this['editor'];if(!_0x3d8908['plugins']['has']('Style')||!_0x3d8908['plugins']['has']('DataSchema'))return;const _0x53c4e3=_0x3d8908['plugins']['get']('TrackChangesEditing'),_0x597606=_0x3d8908['locale'],_0x46731d=_0x3d8908['config']['get']('style')||{},_0x356bd6=_0x3d8908['plugins']['get']('GeneralHtmlSupport'),_0xa3bd6b=_0x3d8908['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3d8908['plugins']['get']('DataSchema'),_0x46731d['definitions']);_0x53c4e3['enableDefaultAttributesIntegration']('style');const _0x119c5b=new Set();for(const _0x4f1c50 of _0xa3bd6b['block']){const _0x46bb72=_0x356bd6['getGhsAttributeNameForElement'](_0x4f1c50['element']);_0x119c5b['add'](_0x46bb72);}const _0x8e9147=new Set();for(const _0x87b8ee of _0xa3bd6b['inline']){const _0x306e93=_0x356bd6['getGhsAttributeNameForElement'](_0x87b8ee['element']);_0x8e9147['add'](_0x306e93);for(const _0x3dffa3 of _0x87b8ee['ghsAttributes'])_0x8e9147['add'](_0x3dffa3);}for(const _0x2c66d9 of _0x119c5b)_0x53c4e3['registerBlockAttribute'](_0x2c66d9),_0x53c4e3['descriptionFactory']['registerAttributeLabel'](_0x2c66d9,o(_0x597606,'FORMAT_STYLE'));for(const _0x2213c8 of _0x8e9147)_0x53c4e3['registerInlineAttribute'](_0x2213c8),_0x53c4e3['descriptionFactory']['registerAttributeLabel'](_0x2213c8,o(_0x597606,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dc0fc=this['editor'],_0x2cc712=_0x1dc0fc['locale'];_0x1dc0fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178141=>{if('formatBlock'!=_0x178141['type']&&'formatInline'!=_0x178141['type'])return;const {data:_0x28d05d}=_0x178141;return _0x28d05d&&'style'===_0x28d05d['commandName']?_0x28d05d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2cc712,'*Set\x20format:*\x20%0',_0x28d05d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2cc712,'*Remove\x20format:*\x20%0',_0x28d05d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x58a0bc{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1ed687){super(_0x1ed687),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x44ee26=this['editor'],_0x592ded=_0x44ee26['model']['document']['selection'];if(!_0x44ee26['plugins']['has']('TableEditing'))return;const _0x4e66ca=_0x44ee26['locale'],_0x15439c=_0x44ee26['plugins']['get']('TrackChangesEditing'),_0x45dec2=_0x44ee26['plugins']['get']('TableUtils');_0x15439c['descriptionFactory']['registerElementLabel']('table',_0x1f199d=>o(_0x4e66ca,'ELEMENT_TABLE',_0x1f199d)),this['_setupColumnsRowsFixing'](),_0x15439c['enableCommand']('insertTable'),_0x15439c['enableCommand']('selectTableRow'),_0x15439c['enableCommand']('selectTableColumn');for(const _0x261a2b of['insertTableRowAbove','insertTableRowBelow']){const _0x46b58f=_0x44ee26['commands']['get'](_0x261a2b);_0x15439c['enableCommand'](_0x261a2b,_0x59929e=>{_0x44ee26['model']['change'](_0x113ee4=>{_0x59929e();const _0x33f987='above'===_0x46b58f['order'],_0x50459d=_0x45dec2['getSelectionAffectedTableCells'](_0x592ded),_0x52f093=_0x45dec2['getRowIndexes'](_0x50459d),_0x4c9d63=_0x33f987?_0x52f093['first']-0x1:_0x52f093['last']+0x1,_0x5f51a2=_0x50459d[0x0]['findAncestor']('table'),_0x3d1eb3=_0x45dec2['createTableWalker'](_0x5f51a2,{'startRow':_0x4c9d63,'endRow':_0x4c9d63}),_0x4f0a0f=Array['from'](_0x3d1eb3)['map'](_0x1e2709=>_0x113ee4['createRangeOn'](_0x1e2709['cell']));_0x15439c['markMultiRangeInsertion'](_0x4f0a0f,'tableRow');});});}for(const _0x455d76 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2a0aa8=_0x44ee26['commands']['get'](_0x455d76);_0x15439c['enableCommand'](_0x455d76,_0x3f2e5c=>{_0x44ee26['model']['change'](_0x4bf33b=>{_0x3f2e5c();const _0x502c06='left'===_0x2a0aa8['order'],_0x34db84=_0x45dec2['getSelectionAffectedTableCells'](_0x592ded),_0x10971b=_0x45dec2['getColumnIndexes'](_0x34db84),_0x72f355=_0x502c06?_0x10971b['first']-0x1:_0x10971b['last']+0x1,_0x2ba8cc=_0x34db84[0x0]['findAncestor']('table'),_0x137de1=_0x45dec2['createTableWalker'](_0x2ba8cc,{'startRow':0x0,'column':_0x72f355,'includeAllSlots':!0x1}),_0x4bb676=Array['from'](_0x137de1)['map'](_0x46ff0b=>_0x4bf33b['createRangeOn'](_0x46ff0b['cell']));_0x15439c['markMultiRangeInsertion'](_0x4bb676,'tableColumn');});});}for(const _0x39d104 of['removeTableRow','removeTableColumn']){const _0x171449=_0x39d104['substr'](0xb),_0x3af4f7=_0x171449['toLowerCase'](),_0x239697=_0x3af4f7['substr'](0x0,0x3)+'span',_0x2daf89='table'+_0x171449,_0x598aa0='min'+_0x171449,_0x3e14cd='max'+_0x171449;_0x15439c['enableCommand'](_0x39d104,()=>{_0x44ee26['model']['change'](_0x13b246=>{const _0x27e50a=_0x45dec2['getSelectionAffectedTableCells'](_0x592ded),_0x124360=_0x27e50a[0x0]['findAncestor']('table');let _0x335c22;if('removeTableRow'==_0x39d104){const _0x5f3e6f=_0x45dec2['getRowIndexes'](_0x27e50a);_0x335c22={'startRow':_0x5f3e6f['first'],'endRow':_0x5f3e6f['last'],'includeAllSlots':!0x0};}else{const _0x4ff554=_0x45dec2['getColumnIndexes'](_0x27e50a);_0x335c22={'startColumn':_0x4ff554['first'],'endColumn':_0x4ff554['last'],'includeAllSlots':!0x0};}const _0x1945e2=_0x45dec2['createTableWalker'](_0x124360,_0x335c22),_0x1fd7fa=Array['from'](_0x1945e2)['map'](({cell:_0x190831})=>_0x190831),_0xcd0fd1=be(_0x1fd7fa['filter'](_0x27b200=>_0x27b200['hasAttribute'](_0x239697))),_0x24bab3=be(_0x1fd7fa['filter'](_0xd18afd=>!_0xd18afd['hasAttribute'](_0x239697)))['map'](_0x3a0a2c=>_0x13b246['createRangeOn'](_0x3a0a2c)),_0xedc187=_0x15439c['markMultiRangeDeletion'](_0x24bab3,_0x2daf89);if(_0xedc187&&('tableRow'==_0xedc187['subType']||'tableColumn'==_0xedc187['subType'])){const _0x2c7c60=this['_getSuggestionCoords'](_0xedc187);for(const _0x23959c of _0xcd0fd1){const _0x402548=_0x13b246['createRangeOn'](_0x23959c),_0x4e2349=_0x45dec2['getCellLocation'](_0x23959c),_0x12839a=_0x23959c['getAttribute'](_0x239697)-0x1,_0x153939=_0x2c7c60[_0x598aa0],_0x457fd2=_0x2c7c60[_0x3e14cd];_0x153939<=_0x4e2349[_0x3af4f7]&&_0x4e2349[_0x3af4f7]+_0x12839a<=_0x457fd2&&_0xedc187['addRange'](_0x402548);}}});});}function _0x3c9945(_0x2919ec){const _0x381f14=Array['from'](_0x592ded['getRanges']())['map'](_0x57f544=>_0x1ac7bd['fromRange'](_0x57f544));_0x44ee26['model']['change'](_0x1b9cb4=>{const _0x4ebe0e=_0x1b9cb4['batch'];_0x2919ec=_0x2919ec['filter'](_0x538577=>'$graveyard'!=_0x538577['root']['rootName']),_0x1b9cb4['setSelection'](_0x2919ec),_0x44ee26['commands']['get']('removeTableRow')['refresh'](),_0x44ee26['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x44ee26['model']['enqueueChange'](()=>{_0x44ee26['model']['enqueueChange'](_0x4ebe0e,_0xa006df=>{const _0x5411a8=_0x381f14['filter'](_0x3a8f2c=>'$graveyard'!=_0x3a8f2c['root']['rootName']);_0x5411a8['length']>0x0&&_0xa006df['setSelection'](_0x5411a8);for(const _0x5d5851 of _0x381f14)_0x5d5851['detach']();});});});}function _0x1c0b7c(_0x3a1a47){_0x44ee26['model']['change'](_0xbc2cb=>{const _0x22e1ab=Array['from'](_0x592ded['getRanges']())['map'](_0xcf48fe=>_0x1ac7bd['fromRange'](_0xcf48fe)),_0x4fdc89=[];for(const _0x35c3c0 of _0x3a1a47)for(const _0x29ce41 of _0x35c3c0['getItems']({'shallow':!0x0}))_0x4fdc89['push'](_0x29ce41);for(const _0x5ee79d of _0x4fdc89)'$graveyard'!=_0x5ee79d['root']['rootName']&&(_0xbc2cb['setSelection'](_0xbc2cb['createPositionAt'](_0x5ee79d,0x0)),_0x44ee26['commands']['get']('removeTableColumn')['refresh'](),_0x44ee26['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x486aa7=_0x22e1ab['filter'](_0x446abf=>'$graveyard'!=_0x446abf['root']['rootName']);_0x486aa7['length']>0x0&&_0xbc2cb['setSelection'](_0x486aa7);for(const _0x50d32b of _0x22e1ab)_0x50d32b['detach']();});}function _0x50cbcf(_0x4881da,_0x16bf97){return _0x16bf97['every'](_0x2d1555=>_0x4881da['some'](_0x10e9a5=>_0x10e9a5['end']['isEqual'](_0x2d1555['start'])||_0x2d1555['end']['isEqual'](_0x10e9a5['start'])));}function _0x41d1ea(_0x286dab,_0x45fc15){return!_0x286dab['some'](_0x2de629=>_0x45fc15['some'](_0x337774=>_0x2de629['isIntersecting'](_0x337774)))&&_0x286dab['some'](_0x2fc23d=>_0x45fc15['some'](_0x2dc993=>_0x2fc23d['end']['isTouching'](_0x2dc993['start'])));}_0x44ee26['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ad933,_0x53e061,_0x54c6af)=>{if(!_0x54c6af['options']['showSuggestionHighlights'])return;const _0x169a44=_0x53e061['item'];if(!_0x169a44)return;const _0x1b10f9=_0x54c6af['mapper']['toViewElement'](_0x169a44);function _0x4588c7(_0x487231){return Array['isArray'](_0x487231)?_0x487231:[_0x487231];}_0x1b10f9&&'tableCell'===_0x169a44['name']&&_0x325294(_0x1b10f9,_0x54c6af['writer'],(_0x3242a1,_0x22fc59,_0x5c9de8)=>_0x5c9de8['addClass'](_0x4588c7(_0x22fc59['classes']),_0x3242a1),(_0x509e9d,_0x519eb4,_0x3b5eb8)=>_0x3b5eb8['removeClass'](_0x4588c7(_0x519eb4['classes']),_0x509e9d));},{'priority':'highest'}),_0x15439c['descriptionFactory']['registerDescriptionCallback'](_0x532caf=>{if('insertion'!=_0x532caf['type']&&'deletion'!=_0x532caf['type'])return;const _0x2c9c54=_0x532caf['getContainedElement']();if(null!=_0x2c9c54&&_0x2c9c54['is']('element','table')){if('insertion'==_0x532caf['type']){const _0x40d909=_0x532caf['getItems']()['filter'](_0x1d329f=>_0x1d329f['is']('$textProxy'))['map'](_0x26ed78=>_0x26ed78['data']);if(_0x40d909['length'])return{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40d909['join']('\x20')+'\x22'))};}if('deletion'==_0x532caf['type']){const _0x44a191=_0x532caf['getItems']()['filter'](_0x27d004=>_0x27d004['is']('$textProxy'))['map'](_0x3985fc=>_0x3985fc['data']);if(_0x44a191['length'])return{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x44a191['join']('\x20')+'\x22'))};}}}),_0x15439c['descriptionFactory']['registerDescriptionCallback'](_0x48779d=>{if('tableRow'==_0x48779d['subType']){const _0x296216=_0x48779d['getItems']()['filter'](_0x271c18=>_0x271c18['is']('$textProxy'))['map'](_0x57a56c=>_0x57a56c['data']),_0x5be800=this['_getSuggestionCoords'](_0x48779d),_0x44fa92=_0x5be800['maxRow']-_0x5be800['minRow']+0x1;if('insertion'==_0x48779d['type'])return _0x296216['length']?{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44fa92,'\x22'+_0x296216['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW',_0x44fa92))};if('deletion'==_0x48779d['type'])return _0x296216['length']?{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44fa92,'\x22'+_0x296216['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_ROW',_0x44fa92))};}if('tableColumn'==_0x48779d['subType']){const _0x4ea6da=_0x48779d['getItems']()['filter'](_0x20cc08=>_0x20cc08['is']('$textProxy'))['map'](_0x5a832e=>_0x5a832e['data']),_0x4a9a3f=this['_getSuggestionCoords'](_0x48779d),_0x1e4381=_0x4a9a3f['maxColumn']-_0x4a9a3f['minColumn']+0x1;if('insertion'==_0x48779d['type'])return _0x4ea6da['length']?{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e4381,'\x22'+_0x4ea6da['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4e66ca,'*Insert:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN',_0x1e4381))};if('deletion'==_0x48779d['type'])return _0x4ea6da['length']?{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1e4381,'\x22'+_0x4ea6da['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4e66ca,'*Remove:*\x20%0',o(_0x4e66ca,'ELEMENT_TABLE_COLUMN',_0x1e4381))};}}),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3c9945),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3c9945),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1c0b7c),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1c0b7c),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x50cbcf),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x50cbcf),_0x15439c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x41d1ea),_0x15439c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x41d1ea);}['_acceptFormatSuggestionCallbackFactory'](){const _0x24f8ab=this['editor'],_0x2e333a=_0x24f8ab['model']['document']['selection'];return(_0x1b7bb1,_0x54d87a)=>{_0x24f8ab['model']['change'](_0x5d1ee3=>{const {commandName:_0x5f0477,commandParams:_0x21b91f}=_0x54d87a;let _0x631518=_0x1b7bb1[0x0]['end']['nodeBefore'];_0x21b91f&&_0x21b91f[0x0]&&!0x1===_0x21b91f[0x0]['forceValue']&&(_0x631518=_0x1b7bb1[0x0]['start']['nodeAfter']);const _0x239bf4=_0x5d1ee3['createRangeIn'](_0x631518);if('$graveyard'==_0x239bf4['root']['rootName'])return;const _0x4fb99d=Array['from'](_0x2e333a['getRanges']())['map'](_0x4cbcc3=>_0x1ac7bd['fromRange'](_0x4cbcc3));_0x5d1ee3['setSelection'](_0x239bf4),_0x24f8ab['commands']['get'](_0x5f0477)['refresh'](),_0x21b91f['push']({'forceDefaultExecution':!0x0}),_0x24f8ab['execute'](_0x5f0477,..._0x21b91f);const _0x38d8c6=_0x4fb99d['filter'](_0x1e569c=>'$graveyard'!=_0x1e569c['root']['rootName']);_0x38d8c6['length']>0x0&&_0x5d1ee3['setSelection'](_0x38d8c6);for(const _0x1ab956 of _0x4fb99d)_0x1ab956['detach']();});};}['_getCoordsForCells'](_0x38e806){const _0x50d4dd=this['editor']['plugins']['get']('TableUtils');let _0x4f18b5=Number['MAX_SAFE_INTEGER'],_0x11cbda=Number['MIN_SAFE_INTEGER'],_0x147402=Number['MAX_SAFE_INTEGER'],_0x10cdd8=Number['MIN_SAFE_INTEGER'];for(const _0x55e04d of _0x38e806){if('$graveyard'==_0x55e04d['root']['rootName'])continue;const {row:_0x445b32,column:_0x4e7027}=_0x50d4dd['getCellLocation'](_0x55e04d),_0x2bb864=_0x55e04d['hasAttribute']('rowspan')?_0x55e04d['getAttribute']('rowspan')-0x1:0x0,_0x1423b4=_0x55e04d['hasAttribute']('colspan')?_0x55e04d['getAttribute']('colspan')-0x1:0x0;_0x4f18b5=_0x445b32<_0x4f18b5?_0x445b32:_0x4f18b5,_0x11cbda=_0x445b32+_0x2bb864>_0x11cbda?_0x445b32+_0x2bb864:_0x11cbda,_0x147402=_0x4e7027<_0x147402?_0x4e7027:_0x147402,_0x10cdd8=_0x4e7027+_0x1423b4>_0x10cdd8?_0x4e7027+_0x1423b4:_0x10cdd8;}return{'minRow':_0x4f18b5,'maxRow':_0x11cbda,'minColumn':_0x147402,'maxColumn':_0x10cdd8};}['_setupColumnsRowsFixing'](){const _0xffbf2e=this['editor'],_0x31adfe=_0xffbf2e['plugins']['get']('TrackChangesEditing'),_0xdb8e01=_0xffbf2e['plugins']['get']('TableUtils');_0xffbf2e['model']['document']['on']('change:data',()=>{const _0xc4e56c=Array['from'](_0xffbf2e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3fc6e0,data:_0x444b0e}of _0xc4e56c){const {group:_0x456630,id:_0x205174,subType:_0x7774d1}=_0x31adfe['_splitMarkerName'](_0x3fc6e0);if('suggestion'!=_0x456630)continue;if(null!=_0x444b0e['oldRange'])continue;const _0x2323fb=_0x31adfe['getSuggestion'](_0x205174);this['_tablePostFixingSubtypes']['includes'](_0x7774d1)&&this['_tableSuggestions']['add'](_0x2323fb);}},{'priority':'low'});const _0x47725a=(_0x2916d7,_0x308710)=>{let _0x5d0cf7=!0x1;const _0x54deae=_0x308710['createRangeOn'](_0x2916d7),_0x5c37bf=_0x2916d7['findAncestor']('table'),_0x3d19aa=_0xdb8e01['getCellLocation'](_0x2916d7);for(const _0x47d20c of this['_tableSuggestions']){const _0x469cc4=_0x47d20c['subType'],_0x562764=_0x469cc4['startsWith']('tablePaste'),_0x22691c=_0x469cc4['substr'](_0x562764?0xa:0x5),_0x75b909=_0x22691c['toLowerCase'](),_0x387338=_0x75b909['substr'](0x0,0x3)+'span',_0x562c47='min'+_0x22691c,_0x5c1bee='max'+_0x22691c;if(!_0x47d20c['isInContent'])continue;if(_0x5c37bf!=_0x47d20c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x47d20c['isIntersectingWithRange'](_0x54deae))continue;const _0x3e1c9f=_0x2916d7['hasAttribute'](_0x387338)?_0x2916d7['getAttribute'](_0x387338)-0x1:0x0,_0x1702c4=this['_getSuggestionCoords'](_0x47d20c),_0x5b43db=_0x1702c4[_0x562c47],_0x122fb0=_0x1702c4[_0x5c1bee];_0x5b43db<=_0x3d19aa[_0x75b909]&&_0x3d19aa[_0x75b909]+_0x3e1c9f<=_0x122fb0&&(_0x47d20c['addRange'](_0x54deae),_0x5d0cf7=!0x0);}return _0x5d0cf7;};_0xffbf2e['model']['document']['registerPostFixer'](_0x2d0086=>{let _0x5323c2=!0x1;for(const _0x35e850 of _0xffbf2e['model']['document']['differ']['getChanges']())if('insert'==_0x35e850['type']){if('tableRow'==_0x35e850['name']){for(const _0x269eaa of _0x35e850['position']['nodeAfter']['getChildren']())_0x5323c2=_0x5323c2||_0x47725a(_0x269eaa,_0x2d0086);}else'tableCell'==_0x35e850['name']&&(_0x5323c2=_0x5323c2||_0x47725a(_0x35e850['position']['nodeAfter'],_0x2d0086));}return _0x5323c2;});}['_getSuggestionCoords'](_0x1ea51f){return this['_getCoordsForCells'](_0x1ea51f['getRanges']()['map'](_0x8c1241=>_0x8c1241['start']['nodeAfter']));}}function be(_0x4f65a3){return Array['from'](new Set(_0x4f65a3)['values']());}class vt extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x4a29d0=this['editor'],_0x5aa2=_0x4a29d0['model']['document']['selection'],_0x1911af=_0x4a29d0['locale'];if(!_0x4a29d0['plugins']['has']('TableEditing'))return;const _0x3e4ae7=_0x4a29d0['plugins']['get']('TrackChangesEditing'),_0x5422bb=_0x4a29d0['plugins']['get']('TableUtils'),_0x4b18be=_0x4a29d0['plugins']['get'](It);_0x4b18be['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3e4ae7['enableCommand']('mergeTableCells',()=>{const _0x121a62=_0x5422bb['getSelectionAffectedTableCells'](_0x4a29d0['model']['document']['selection']);_0x4a29d0['model']['change'](()=>{_0x3e4ae7['markMultiRangeBlockFormat'](_0x121a62,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4a29d0['commands']['get']('mergeTableCells')['on']('execute',(_0x5c77ae,_0x335b8c)=>{_0x4a29d0['commands']['get']('trackChanges')['value']&&(_0x335b8c['length']>0x0&&_0x335b8c[_0x335b8c['length']-0x1]&&_0x335b8c[_0x335b8c['length']-0x1]['forceDefaultExecution']||_0x3e4ae7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5c77ae['stop']());},{'priority':'highest'});for(const _0x12d5e0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2317c1=_0x4a29d0['commands']['get'](_0x12d5e0);_0x3e4ae7['enableCommand'](_0x12d5e0,()=>{const _0x4efb6b=_0x4a29d0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x33aec6=>_0x33aec6['is']('element','tableCell')),_0x12d56d=_0x2317c1['value'];_0x4a29d0['model']['change'](()=>{_0x3e4ae7['markMultiRangeBlockFormat']([_0x4efb6b,_0x12d56d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4d1db4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x54aa26=_0x4a29d0['commands']['get'](_0x4d1db4);_0x3e4ae7['enableCommand'](_0x4d1db4,()=>{const _0x21a27b=_0x5422bb['getSelectionAffectedTableCells'](_0x4a29d0['model']['document']['selection'])[0x0],_0x2ee604=_0x21a27b['findAncestor']('table'),{column:_0x567048,row:_0x2da829}=_0x5422bb['getCellLocation'](_0x21a27b);let _0xdb2ff=[];if('horizontally'==_0x54aa26['direction']){const _0x22ce65=_0x5422bb['createTableWalker'](_0x2ee604,{'startRow':_0x2da829,'endRow':_0x2da829,'includeAllSlots':!0x0});_0xdb2ff=Array['from'](_0x22ce65)['map'](_0x149efb=>_0x149efb['cell']);}else{const _0x55e8e2=_0x5422bb['createTableWalker'](_0x2ee604,{'column':_0x567048,'includeAllSlots':!0x0});_0xdb2ff=Array['from'](_0x55e8e2)['map'](_0xd5e3d1=>_0xd5e3d1['cell']);}_0x4a29d0['model']['change'](_0x2134d4=>{_0x3e4ae7['markBlockFormat'](_0x2134d4['createRangeOn'](_0x21a27b),{'commandName':_0x4d1db4,'commandParams':[]},_0xdb2ff,_0x4d1db4);});});}_0x3e4ae7['descriptionFactory']['registerDescriptionCallback'](_0xc9f9ef=>{if('formatBlock'!=_0xc9f9ef['type']&&'formatInline'!=_0xc9f9ef['type'])return;const {data:_0x346b70}=_0xc9f9ef;return _0x346b70&&'mergeTableCells'==_0x346b70['commandName']?{'type':'format','content':o(_0x1911af,'*Merge\x20cells*')}:void 0x0;}),_0x3e4ae7['descriptionFactory']['registerDescriptionCallback'](_0x4914b6=>{if('formatBlock'!=_0x4914b6['type']&&'formatInline'!=_0x4914b6['type'])return;const {data:_0x1afe72}=_0x4914b6;return _0x1afe72?'splitTableCellVertically'==_0x1afe72['commandName']?{'type':'format','content':o(_0x1911af,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1afe72['commandName']?{'type':'format','content':o(_0x1911af,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x49f124=_0x4b18be['_acceptFormatSuggestionCallbackFactory']();for(const _0x48bda4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3e4ae7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48bda4,'accept',_0x49f124);for(const _0x5c2cae of['splitTableCellVertically','splitTableCellHorizontally'])_0x3e4ae7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c2cae,'accept',_0x49f124);_0x3e4ae7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2140c1=>{_0x4a29d0['model']['change'](_0x4664f3=>{const _0x11b62e=Array['from'](_0x5aa2['getRanges']())['map'](_0x174188=>_0x1ac7bd['fromRange'](_0x174188));_0x4664f3['setSelection'](_0x2140c1),_0x4a29d0['commands']['get']('mergeTableCells')['refresh'](),_0x4a29d0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x23fc11=_0x11b62e['filter'](_0x3d7919=>'$graveyard'!=_0x3d7919['root']['rootName']);_0x23fc11['length']>0x0&&_0x4664f3['setSelection'](_0x23fc11);for(const _0x3d8a5a of _0x11b62e)_0x3d8a5a['detach']();});});for(const _0x3c3f68 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xa5df0c=_0x4a29d0['commands']['get'](_0x3c3f68);_0xa5df0c['on']('set:isEnabled',(_0x2f9cca,_0x891bd8,_0x164d41)=>{if(_0x164d41){const _0x285f38=_0x4a29d0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x555875=>_0x555875['is']('element','tableCell'));this['_areMergableCells'](_0xa5df0c['value'],_0x285f38)||(_0x2f9cca['return']=!0x1,_0x2f9cca['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1f9423=this['editor']['commands']['get']('mergeTableCells'),_0x4e71b2=this['editor']['plugins']['get']('TableUtils');if(!_0x1f9423['isEnabled'])return!0x1;const _0x30577f=_0x4e71b2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3787fc of _0x30577f)for(const _0x5c4dc3 of _0x30577f)if(_0x3787fc!=_0x5c4dc3&&!this['_areMergableCells'](_0x3787fc,_0x5c4dc3))return!0x1;return!0x0;}['_areMergableCells'](_0x4f510e,_0x554b29){const _0x2472f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa58560=this['editor']['model']['createRangeOn'](_0x4f510e),_0x3fc5f4=this['editor']['model']['createRangeOn'](_0x554b29),_0x1945c1=new Set(),_0x2977a8=new Set();for(const _0x6c6a60 of _0x2472f0['getSuggestions']())if(('insertion'==_0x6c6a60['type']||'deletion'==_0x6c6a60['type']||'mergeTableCells'==_0x6c6a60['subType'])&&_0x6c6a60['isInContent']){for(const _0x41c2db of _0x6c6a60['getRanges']())_0x41c2db['containsRange'](_0xa58560,!0x0)&&_0x1945c1['add'](_0x6c6a60['type']+':'+_0x6c6a60['author']['id']),_0x41c2db['containsRange'](_0x3fc5f4,!0x0)&&_0x2977a8['add'](_0x6c6a60['type']+':'+_0x6c6a60['author']['id']);}if(_0x1945c1['size']!=_0x2977a8['size'])return!0x1;for(const _0x34018d of _0x1945c1)if(!_0x2977a8['has'](_0x34018d))return!0x1;return!0x0;}}class Ct extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x28bdea=this['editor'];if(!_0x28bdea['plugins']['has']('TableEditing'))return;const _0x25da88=_0x28bdea['locale'],_0x332617=_0x28bdea['plugins']['get']('TrackChangesEditing');_0x332617['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x332617['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x332617['registerBlockAttribute']('headingRows'),_0x332617['registerBlockAttribute']('headingColumns'),_0x332617['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x25da88,'FORMAT_HEADER_ROW')),_0x332617['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x25da88,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2d78b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32106d=this['editor']['plugins']['get']('TableUtils'),_0x300377=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x4bb37c({showActiveMarker:_0x446c83=!0x0,setDataAttribute:_0x55e4e7=!0x0}={}){return(_0x20f5c6,_0x355bf5,_0x23d665)=>{const {type:_0x4e6ceb,id:_0x5574fe}=_0x2d78b7['_splitMarkerName'](_0x355bf5['markerName']),_0x19d5a0=_0x2d78b7['getSuggestion'](_0x5574fe),_0x4458e8=_0x19d5a0['data'];if('formatBlock'!=_0x19d5a0['type']||!_0x4458e8||'setTableColumnHeader'!=_0x4458e8['commandName'])return;if(_0x355bf5['item'])return void _0x20f5c6['stop']();if(!_0x23d665['consumable']['consume'](_0x355bf5['markerRange'],_0x20f5c6['name']))return;const _0x2ababf=_0x355bf5['markerRange']['start']['nodeAfter'],_0x568e3e=_0x355bf5['markerRange']['end']['nodeBefore'],_0x194997=_0x2ababf['parent']['parent'],{column:_0x107125}=_0x32106d['getCellLocation'](_0x2ababf),{column:_0x5f0289}=_0x32106d['getCellLocation'](_0x568e3e);for(let _0x2cef86=_0x107125;_0x2cef86<=_0x5f0289;_0x2cef86++){const _0x1c64b1=_0x32106d['createTableWalker'](_0x194997,{'column':_0x2cef86,'includeAllSlots':!0x1});for(const _0x257c8a of _0x1c64b1){const _0x29fe6c=_0x257c8a['cell'],_0x5180ba=_0x23d665['mapper']['toViewElement'](_0x29fe6c);_0x23d665['writer']['addClass']('ck-suggestion-marker-'+_0x4e6ceb,_0x5180ba),_0x55e4e7&&_0x23d665['writer']['setAttribute']('data-suggestion',_0x5574fe,_0x5180ba),_0x23d665['mapper']['bindElementToMarker'](_0x5180ba,_0x355bf5['markerName']),_0x446c83&&(_0x2d78b7['activeMarkers']['includes'](_0x355bf5['markerName'])?_0x23d665['writer']['addClass']('ck-suggestion-marker--active',_0x5180ba):_0x23d665['writer']['removeClass']('ck-suggestion-marker--active',_0x5180ba));}}};}_0x2d78b7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x300377),_0x2d78b7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x300377),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4bb37c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3cd98f,_0x546154,_0x146b4e)=>{_0x146b4e['options']['showSuggestionHighlights']&&_0x4bb37c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3cd98f,_0x546154,_0x146b4e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4cc152,_0x262188,_0x485661)=>{const {type:_0x37790e,id:_0x4ba1e6}=_0x2d78b7['_splitMarkerName'](_0x262188['markerName']),_0x13c487=_0x2d78b7['getSuggestion'](_0x4ba1e6),_0x3d6526=_0x13c487['data'];if('formatBlock'!=_0x13c487['type']||!_0x3d6526||'setTableColumnHeader'!=_0x3d6526['commandName'])return;const _0x202de7=_0x485661['mapper']['markerNameToElements'](_0x262188['markerName']);if(_0x202de7){for(const _0x506ce2 of _0x202de7)_0x485661['writer']['removeClass']('ck-suggestion-marker-'+_0x37790e,_0x506ce2),_0x485661['writer']['removeClass']('ck-suggestion-marker--active',_0x506ce2),_0x485661['writer']['removeAttribute']('data-suggestion',_0x506ce2),_0x485661['mapper']['unbindElementFromMarkerName'](_0x506ce2,_0x262188['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d43e3=this['editor'],_0x1467db=_0x3d43e3['locale'];function _0x15a434(_0x15c5e5){return{'type':'format','content':o(_0x1467db,'*Format:*\x20%0',_0x15c5e5)};}_0x3d43e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20ecfe=>{if('formatBlock'!=_0x20ecfe['type'])return;const {data:_0x33c6f9}=_0x20ecfe;if(_0x33c6f9){if('setTableRowHeader'==_0x33c6f9['commandName']){const _0x3c8c70=_0x33c6f9['commandParams'][0x0]['forceValue'];return _0x15a434(o(_0x1467db,_0x3c8c70?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x33c6f9['commandName']){const _0x244f75=_0x33c6f9['commandParams'][0x0]['forceValue'];return _0x15a434(o(_0x1467db,_0x244f75?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x283c19=>[_0x283c19,null]));class _t extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x5177a3=this['editor'];if(!_0x5177a3['plugins']['has']('TableClipboard'))return;const _0x2c9b06=_0x5177a3['plugins']['get']('TrackChangesEditing'),_0x40a8a0=_0x5177a3['plugins']['get']('TableUtils'),_0x2f727f=_0x5177a3['plugins']['get'](It),_0x1918b5=_0x5177a3['plugins']['get']('TableClipboard');_0x2f727f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5177a3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5177a3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xdf71b=null;_0x5177a3['model']['on']('insertContent',(_0x2cb8d4,_0x3c1fbf)=>{const [_0x9c755a,_0x4dff8f]=_0x3c1fbf,_0x419ecc=_0x3c1fbf[_0x3c1fbf['length']-0x1];_0x419ecc&&_0x419ecc['forceDefaultExecution']||_0x2c9b06['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x203740,_0x1388d8,_0x2890e3,_0x436aee,_0x59e6f0){if(_0x1388d8&&!_0x1388d8['is']('documentSelection'))return!0x1;const _0x8620ba=_0x59e6f0['getTableIfOnlyTableInContent'](_0x203740,_0x2890e3);if(!_0x8620ba||!Re(_0x8620ba,void 0x0,_0x436aee))return!0x1;const _0x258be7=_0x436aee['getSelectionAffectedTableCells'](_0x2890e3['document']['selection']);if(!_0x258be7['length'])return!0x1;const _0x53e1f5=_0x258be7[0x0]['findAncestor']('table'),_0xcfee03=_0x436aee['getRowIndexes'](_0x258be7),_0x15d3a6=_0x436aee['getColumnIndexes'](_0x258be7),_0x1f91e6={'startRow':_0xcfee03['first'],'endRow':_0xcfee03['last'],'startColumn':_0x15d3a6['first'],'endColumn':_0x15d3a6['last']};return 0x1==_0x258be7['length']&&(_0x1f91e6['endRow']+=_0x436aee['getRows'](_0x8620ba)-0x1,_0x1f91e6['endColumn']+=_0x436aee['getColumns'](_0x8620ba)-0x1),Re(_0x53e1f5,_0x1f91e6,_0x436aee);}(_0x9c755a,_0x4dff8f,_0x5177a3['model'],_0x40a8a0,_0x1918b5)&&(_0x2cb8d4['stop'](),_0xdf71b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5177a3['model']['change'](()=>{_0x5177a3['model']['insertContent'](_0x3c1fbf[0x0],_0x3c1fbf[0x1],_0x3c1fbf[0x2],{'forceDefaultExecution':!0x0});const _0x444564=_0x546e08(),{rowInsertionRanges:_0x26a401,columnInsertionRanges:_0x45bd42,insertionRanges:_0x45a47a,deletionRanges:_0xea8e3b,cells:_0xe19a0e}=_0xdf71b;_0x26a401['length']&&_0x2c9b06['markMultiRangeInsertion'](_0x26a401,'tablePasteRow',{'tablePasteChainId':_0x444564}),_0x45bd42['length']&&_0x2c9b06['markMultiRangeInsertion'](_0x45bd42,'tablePasteColumn',{'tablePasteChainId':_0x444564}),_0x45a47a['length']&&(_0x2c9b06['markMultiRangeInsertion'](_0x45a47a,'tablePaste',{'tablePasteChainId':_0x444564,'skipNestingCheck':!0x0}),_0x45a47a['forEach'](_0x408e56=>_0x408e56['detach']?.())),_0xea8e3b['length']&&(_0x2c9b06['markMultiRangeDeletion'](_0xea8e3b,'tablePaste',{'tablePasteChainId':_0x444564,'skipNestingCheck':!0x0}),_0xea8e3b['forEach'](_0x450968=>_0x450968['detach']?.()));const _0x43e7ca=_0x2c9b06['markMultiRangeBlockFormat'](_0xe19a0e['map'](({element:_0x5e9255})=>_0x5e9255),{'formatGroupId':_0x546e08()},[],'tablePasteCell',{'tablePasteChainId':_0x444564});if(_0x43e7ca){const _0x4287c5=_0x43e7ca['getMarkers'](),_0x1d1608=[];for(const {element:_0x6eb79f,attributes:_0x45dc2d}of _0xe19a0e){if(!_0x45dc2d)continue;const _0x271b67=_0x5177a3['model']['createRangeOn'](_0x6eb79f),_0x21e462=_0x4287c5['find'](_0x5935da=>_0x5935da['getRange']()['isEqual'](_0x271b67));_0x21e462&&_0x1d1608['push']([_0x21e462['name'],_0x45dc2d]);}_0x1d1608['length']&&_0x43e7ca['setAttribute']('markerAttributes',Object['fromEntries'](_0x1d1608));}_0xdf71b=null;}));},{'priority':_0x44834d['high']+0xa}),_0x5177a3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3839ff,_0x2945b7)=>{const [_0x4842cb,_0x1579f7,,_0x230db5]=_0x2945b7;if(!_0xdf71b)return;_0x3839ff['stop']();const _0x19d060=_0x4842cb['cell'],_0x1220d6=_0x1579f7,_0x128646=ke(_0x19d060),_0x3dbac7=ke(_0x1220d6);_0x3839ff['return']=_0x19d060;let _0x21fd64=null,_0x9918a3=null;if(_0x3dbac7||_0x128646){if(_0x128646&&!_0x3dbac7){_0x230db5['remove'](_0x19d060['getChild'](0x0));for(const _0x1f2c5d of Array['from'](_0x1220d6['getChildren']()))_0x230db5['insert'](_0x1f2c5d,_0x19d060,'end');const _0x27a7d8=_0xdf71b['rowInsertionIndexes']['includes'](_0x4842cb['row']),_0x4b3230=_0xdf71b['columnInsertionIndexes']['includes'](_0x4842cb['column']);_0x27a7d8||_0x4b3230||(_0x21fd64=_0x1ac7bd['fromRange'](_0x230db5['createRangeIn'](_0x19d060)));}else _0x3dbac7&&!_0x128646&&(_0x9918a3=_0x230db5['createRangeIn'](_0x19d060));}else{const _0x2e7bc0=_0x230db5['createElement']('tableCellSuggestion'),_0x255af1=_0x230db5['createElement']('tableCellSuggestion');_0x230db5['wrap'](_0x230db5['createRangeIn'](_0x19d060),_0x255af1),_0x230db5['insert'](_0x2e7bc0,_0x19d060,0x0);for(const _0x891dbe of Array['from'](_0x1220d6['getChildren']()))_0x230db5['insert'](_0x891dbe,_0x2e7bc0,'end');_0x21fd64=_0x1ac7bd['fromRange'](_0x230db5['createRangeOn'](_0x2e7bc0)),_0x9918a3=_0x1ac7bd['fromRange'](_0x230db5['createRangeOn'](_0x255af1));}const _0xa9112=Array['from'](_0x1220d6['getAttributes']())['filter'](([_0x463244])=>Pe['includes'](_0x463244));_0xdf71b['cells']['push']({'element':_0x19d060,'attributes':_0xa9112['length']?Object['fromEntries'](_0xa9112):null}),_0x21fd64&&_0xdf71b['insertionRanges']['push'](_0x21fd64),_0x9918a3&&_0xdf71b['deletionRanges']['push'](_0x9918a3);},{'priority':'high'}),_0x40a8a0['on']('insertColumns',(_0xc8553c,_0x556edb)=>{const [_0x1ed29e,_0x2c521f={}]=_0x556edb;if(!_0xdf71b)return;const _0x1ab445=_0x2c521f['at']||0x0,_0xf1045a=_0x2c521f['columns']||0x1;_0xdf71b['columnInsertionIndexes']=new Array(_0xf1045a)['fill'](_0x1ab445)['map']((_0x9babea,_0x1bd780)=>_0x9babea+_0x1bd780);for(const {cell:_0x19e36e}of _0x40a8a0['createTableWalker'](_0x1ed29e,{'startColumn':_0x1ab445,'endColumn':_0x1ab445+_0xf1045a-0x1}))_0xdf71b['columnInsertionRanges']['push'](_0x5177a3['model']['createRangeOn'](_0x19e36e));},{'priority':'low'}),_0x40a8a0['on']('insertRows',(_0x201497,_0xb9ec95)=>{const [_0x1aeac8,_0x21a4ac={}]=_0xb9ec95;if(!_0xdf71b)return;const _0x8b8094=_0x21a4ac['at']||0x0,_0x106899=_0x21a4ac['rows']||0x1;_0xdf71b['rowInsertionIndexes']=new Array(_0x106899)['fill'](_0x8b8094)['map']((_0x294a73,_0x48ec6c)=>_0x294a73+_0x48ec6c);for(const {cell:_0x1915f7}of _0x40a8a0['createTableWalker'](_0x1aeac8,{'startRow':_0x8b8094,'endRow':_0x8b8094+_0x106899-0x1}))_0xdf71b['rowInsertionRanges']['push'](_0x5177a3['model']['createRangeOn'](_0x1915f7));},{'priority':'low'}),_0x2c9b06['descriptionFactory']['registerDescriptionCallback'](_0xb4f3ff=>{if(_0xb4f3ff['subType']&&_0xb4f3ff['subType']['startsWith']('tablePaste'))return _0xb4f3ff['previous']?{}:{'type':'insertion','content':o(_0x5177a3['locale'],'*Replace\x20table\x20cells*')};});const _0x43b7cb=()=>!0x1;for(const _0x3d5e7d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2c9b06['_suggestionFactory']['registerCustomCallback']('insertion',_0x3d5e7d,'join',_0x43b7cb),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('deletion',_0x3d5e7d,'join',_0x43b7cb),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d5e7d,'join',_0x43b7cb);_0x2c9b06['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x43b7cb),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc72f4e,_0x1f7697,_0xd6ffc6)=>{const _0x234759=_0xc72f4e['map'](_0x386af5=>_0x386af5['getContainedElement']())['filter'](_0x3915cb=>_0x3915cb),_0x17c386=new Map(_0x234759['map'](_0x3a9433=>[_0x3a9433,null]));if(_0xdf71b){for(const {element:_0x1bef52,attributes:_0x5a3d2b}of _0xdf71b['cells'])_0x5a3d2b&&_0x17c386['set'](_0x1bef52,_0x5a3d2b);}else{if(_0xd6ffc6&&_0xd6ffc6['markerAttributes'])for(const [_0x387ae8,_0xbde9f8]of Object['entries'](_0xd6ffc6['markerAttributes'])){const _0x4d5f72=_0x5177a3['model']['markers']['get'](_0x387ae8),_0x4ab436=_0x4d5f72?_0x4d5f72['getRange']()['getContainedElement']():null;_0x4ab436&&_0x17c386['set'](_0x4ab436,_0xbde9f8);}}_0x5177a3['model']['change'](_0x5acd33=>{for(const [_0x1f6868,_0x33d098]of _0x17c386)_0x5acd33['setAttributes']({...we,..._0x33d098},_0x1f6868);});});const _0x3e0ea9=(_0x239f37,_0x21686a)=>{_0x2c9b06['_suggestionFactory']['registerCustomCallback'](_0x239f37,'tablePaste',_0x21686a,(_0x4648ea,_0x3a7cb4,_0x1f415c)=>{_0x5177a3['model']['change'](_0x566716=>{const _0x1b8628=[];for(const _0x49fcc5 of _0x4648ea){const _0x55e5d1=_0x49fcc5['start']['nodeAfter'];_0x55e5d1['is']('element','tableCellSuggestion')&&_0x1b8628['push'](_0x55e5d1);}_0x2c9b06['_suggestionFactory']['getSuggestionCallback'](_0x239f37,null,_0x21686a)(_0x4648ea,_0x3a7cb4,_0x1f415c);for(const _0x4132ca of _0x1b8628)'$graveyard'!=_0x4132ca['root']['rootName']&&_0x566716['unwrap'](_0x4132ca);});});};_0x3e0ea9('insertion','accept'),_0x3e0ea9('insertion','discard'),_0x3e0ea9('deletion','accept'),_0x3e0ea9('deletion','discard'),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x277fc5=>{const _0x106f37=_0x277fc5['map'](_0x53f199=>_0x53f199['getContainedElement']()),_0x1478f3=_0x106f37[0x0]['findAncestor']('table'),{minRow:_0x3bf7a1,maxRow:_0x1c0c25}=_0x2f727f['_getCoordsForCells'](_0x106f37);_0x40a8a0['removeRows'](_0x1478f3,{'at':_0x3bf7a1,'rows':_0x1c0c25-_0x3bf7a1+0x1});}),_0x2c9b06['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x8fdff0=>{const _0x308288=_0x8fdff0['map'](_0x14d71f=>_0x14d71f['getContainedElement']()),_0x4777b6=_0x308288[0x0]['findAncestor']('table'),{minColumn:_0x44ab2e,maxColumn:_0x3aa2cf}=_0x2f727f['_getCoordsForCells'](_0x308288);_0x40a8a0['removeColumns'](_0x4777b6,{'at':_0x44ab2e,'columns':_0x3aa2cf-_0x44ab2e+0x1});});const _0x1f8a36=(_0x573b27,_0x18f5f8)=>{if(!_0x18f5f8['subType']||!_0x18f5f8['subType']['startsWith']('tablePaste'))return;const _0x40e6d8=_0x18f5f8['attributes']['tablePasteChainId'],_0x2116d6=_0x2c9b06['getSuggestions']()['filter'](_0x5c5971=>_0x5c5971['isInContent']&&_0x5c5971['attributes']&&_0x5c5971['attributes']['tablePasteChainId']==_0x40e6d8);_0x2116d6['length']&&_0x18f5f8['getAllAdjacentSuggestions']()['length']!=_0x2116d6['length']&&_0x2116d6['reduce']((_0x48f581,_0x24c739)=>(_0x48f581['next']=_0x24c739,_0x24c739['previous']=_0x48f581,_0x24c739));};function _0x486b39(_0x2290e2,_0x329979=!0x0){const {id:_0x4c60ba,authorId:_0x20f199}=_0x2c9b06['_splitMarkerName'](_0x2290e2['markerName']),_0x4ebbca=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3c5597=_0x2c9b06['activeMarkers']['includes'](_0x2290e2['markerName']);return _0x3c5597&&_0x4ebbca['push']('ck-suggestion-marker--active'),{'classes':_0x4ebbca,'attributes':{'data-suggestion':_0x4c60ba,'data-author-id':_0x20f199},'priority':_0x3c5597&&_0x329979?0xbc2:0xbb8};}_0x2c9b06['on']('suggestionLoaded',_0x1f8a36,{'priority':'high'}),_0x2c9b06['on']('suggestionUnloaded',_0x1f8a36,{'priority':'high'}),_0x5177a3['model']['document']['registerPostFixer'](()=>{let _0x36595a=!0x1;const _0x576338=Array['from'](_0x5177a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x561583,data:_0x2340ae}of _0x576338){const {group:_0xf4cba2,type:_0x18d563,id:_0xfa8c3a}=_0x2c9b06['_splitMarkerName'](_0x561583);if('suggestion'!=_0xf4cba2||'deletion'!=_0x18d563||_0x2340ae['oldRange'])continue;if(!_0x2c9b06['hasSuggestion'](_0xfa8c3a))continue;const _0x1625b9=_0x2c9b06['getSuggestion'](_0xfa8c3a)['getRanges'](),_0x193722=_0x5177a3['plugins']['get']('Users')['me'];for(const _0x1af384 of _0x2c9b06['getSuggestions']()){if(!_0x1af384['isInContent']||_0x1af384['author']!=_0x193722)continue;if('formatBlock'!=_0x1af384['type']||'tablePasteCell'!=_0x1af384['subType'])continue;if(_0x1af384['getRanges']()['every'](_0xd43d0c=>_0x1625b9['some'](_0x900348=>_0x900348['containsRange'](_0xd43d0c,!0x0)))){for(const _0x39e5e0 of _0x1af384['getAllAdjacentSuggestions']())_0x39e5e0['isInContent']&&(_0x39e5e0['discard'](),_0x36595a=!0x0);}}}return _0x36595a;}),_0x5177a3['model']['document']['registerPostFixer'](_0x45ab04=>{const _0x3ce2e4=_0x5177a3['commands']['get']('redo');if(!_0x3ce2e4||!_0x3ce2e4['_createdBatches']['has'](_0x45ab04['batch']))return!0x1;let _0x37dfe0=!0x1;const _0x5e8c99=_0x5177a3['plugins']['get']('Users')['me'],_0x22cf0c=_0x5177a3['model']['document']['differ']['getChanges'](),_0x458421=Array['from'](_0x5177a3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2df796,data:_0x135119})=>{const {group:_0x5730d1,subType:_0x3fb31b,authorId:_0x128b84}=_0x2c9b06['_splitMarkerName'](_0x2df796);return'suggestion'==_0x5730d1&&'tablePaste'==_0x3fb31b&&_0x128b84==_0x5e8c99['id']&&!_0x135119['oldRange'];});for(const _0x5bc6ec of _0x22cf0c){if('insert'!=_0x5bc6ec['type']||'tableCellSuggestion'!=_0x5bc6ec['name']||0x1!=_0x5bc6ec['length'])continue;const _0x59fe56=_0x45ab04['createRange'](_0x5bc6ec['position'],_0x5bc6ec['position']['getShiftedBy'](0x1));if(!_0x458421['find'](({data:_0x38574f})=>_0x38574f['newRange']['isEqual'](_0x59fe56))){for(const {name:_0x489bb4,data:_0x51c289}of _0x458421)if(_0x59fe56['containsRange'](_0x51c289['newRange'])){_0x45ab04['updateMarker'](_0x489bb4,{'range':_0x59fe56}),_0x37dfe0=!0x0;break;}}}return _0x37dfe0;}),_0x5177a3['model']['document']['registerPostFixer'](_0x40438c=>{let _0x222717=!0x1;const _0x271642=_0x5177a3['plugins']['get']('Users')['me'],_0xa7792a=_0x2c9b06['getSuggestions']()['filter'](_0x2adf9c=>_0x2adf9c['isInContent']&&_0x2adf9c['author']==_0x271642),_0x318ed2=new Set(),_0x502e8f=new Set();for(const _0x298d6c of _0xa7792a)if('tablePaste'==_0x298d6c['subType'])for(const _0x4a5005 of _0x298d6c['getMarkers']()){const _0x208f33=_0x4a5005['getRange']()['getContainedElement']();if(_0x208f33){if(_0x208f33['is']('element','tableCellSuggestion')&&ke(_0x208f33)){_0x298d6c['removeMarker'](_0x4a5005['name']),_0x318ed2['add'](_0x208f33),_0x222717=!0x0;const _0x504ae4=_0x208f33['nextSibling'],_0x3814c0=_0x208f33['previousSibling'],_0x17d477=_0x504ae4&&_0x504ae4['is']('element','tableCellSuggestion'),_0x4e41d6=_0x3814c0&&_0x3814c0['is']('element','tableCellSuggestion');_0x17d477&&!_0x318ed2['has'](_0x504ae4)&&_0x502e8f['add'](_0x504ae4),_0x4e41d6&&!_0x318ed2['has'](_0x3814c0)&&_0x502e8f['add'](_0x3814c0);}else _0x208f33['is']('element','paragraph')&&_0x208f33['isEmpty']&&(_0x298d6c['removeMarker'](_0x4a5005['name']),_0x222717=!0x0);}}else{if('tablePasteCell'==_0x298d6c['subType']){if(!_0x298d6c['attributes']||!_0x298d6c['attributes']['tablePasteChainId'])continue;const _0x29c6fd=_0x298d6c['attributes']['markerAttributes'];if(_0x29c6fd&&Object['keys'](_0x29c6fd)['length'])continue;const _0x5e6aed=_0x298d6c['attributes']['tablePasteChainId'];let _0x4557bf=!0x0,_0x1c5a6b=!0x0;for(const _0x57a2b5 of _0xa7792a)if(_0x57a2b5['subType']&&_0x57a2b5['subType']['startsWith']('tablePaste')){if(!_0x57a2b5['attributes']['tablePasteChainId']){_0x1c5a6b=!0x1;break;}if(_0x57a2b5['id']!=_0x298d6c['id']&&_0x57a2b5['attributes']['tablePasteChainId']==_0x5e6aed){_0x4557bf=!0x1;break;}}_0x1c5a6b&&_0x4557bf&&(_0x298d6c['removeMarkers'](),_0x222717=!0x0);}}for(const _0x162913 of _0x318ed2)_0x40438c['remove'](_0x162913);for(const _0x188695 of _0x502e8f)_0x40438c['unwrap'](_0x188695);return _0x222717;}),_0x5177a3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xd482ac=>_0x486b39(_0xd482ac),'converterPriority':'high'}),_0x5177a3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x625917,_0x529a5b)=>_0x529a5b['options']['showSuggestionHighlights']?_0x486b39(_0x625917,!0x1):null,'converterPriority':'high'});const _0x2b364e=_0x5177a3['editing']['view'];this['listenTo'](_0x2b364e['document'],'clipboardOutput',(_0x2bbca9,_0x4dc075)=>{const _0x4e3540=[];for(const _0x176089 of _0x2b364e['createRangeIn'](_0x4dc075['content'])['getItems']())_0x176089['is']('element','suggestion-td')&&_0x4e3540['push'](_0x176089);_0x2b364e['change'](_0x5bc843=>{for(const _0x55f2f5 of _0x4e3540)_0x5bc843['move'](_0x5bc843['createRangeIn'](_0x55f2f5),_0x5bc843['createPositionBefore'](_0x55f2f5)),_0x5bc843['remove'](_0x55f2f5);});});}}function ke(_0x5eb66f){if(_0x5eb66f['isEmpty'])return!0x0;const _0xf30be9=_0x5eb66f['getChild'](0x0);return _0xf30be9['is']('element','paragraph')&&_0xf30be9['isEmpty'];}function Re(_0x334d49,_0x502c77={},_0x6010de){for(const {isAnchor:_0x56fe6e,cellHeight:_0x456ccd,cellWidth:_0x37a77a}of _0x6010de['createTableWalker'](_0x334d49,{'includeAllSlots':!0x0,..._0x502c77}))if(!_0x56fe6e||0x1!=_0x456ccd||0x1!=_0x37a77a)return!0x1;return!0x0;}class Nt extends _0x58a0bc{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x32891a=this['editor']['plugins']['get']('TrackChangesEditing');_0x32891a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x32891a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x32891a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32891a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x32891a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x32891a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x11336b,_0x2f4eb3){const _0x31111a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4be552=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x472576=_0x2f4eb3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x28298a=_0x4be552['getColumnGroupElement'](_0x472576);let _0x118485=_0x28298a?_0x4be552['getTableColumnsWidths'](_0x28298a):null,_0x11eb0c=_0x472576['getAttribute']('tableWidth')||null;const _0x1c12f6=_0x2f4eb3['tableWidth']||_0x11eb0c,_0x501d2a=_0x2f4eb3['columnWidths']||_0x118485,_0x43db7b=this['editor']['plugins']['get']('Users')['me'];for(const _0xa7d48 of _0x31111a['getSuggestions']()){const _0x17f6a7=_0xa7d48['getContainedElement']();if('resizeTable'===_0xa7d48['subType']&&_0x17f6a7===_0x472576){_0xa7d48['author']!==_0x43db7b&&_0xa7d48['discard']();const _0xb1c952=_0xa7d48['data']['commandParams'];_0x11eb0c=_0xb1c952[0x0]['tableWidth'],_0x118485=_0xb1c952[0x0]['columnWidths'];break;}}_0x11336b({'table':_0x472576,'tableWidth':_0x1c12f6,'columnWidths':_0x501d2a}),_0x31111a['markBlockFormat'](_0x472576,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x11eb0c,'columnWidths':_0x118485}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x327f5a){if('formatBlock'!=_0x327f5a['type']&&'formatInline'!=_0x327f5a['type'])return;const {data:_0x98e8f5}=_0x327f5a;if(_0x98e8f5&&'resizeTable'===_0x98e8f5['formatGroupId']){const _0x47805b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x47805b)};}}}class Dt extends _0x58a0bc{['afterInit'](){const _0x1172ce=this['editor'];_0x1172ce['plugins']['has']('Template')&&_0x1172ce['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x58a0bc{['afterInit'](){const _0x32f262=this['editor'];if(!_0x32f262['commands']['get']('insertTableOfContents'))return;_0x32f262['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xa01781=_0x32f262['plugins']['get']('TrackChangesEditing'),_0xb0808f=_0x32f262['locale'];_0xa01781['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2723b2=>o(_0xb0808f,'ELEMENT_TABLE_OF_CONTENTS',_0x2723b2));}}class $t extends _0x58a0bc{['afterInit'](){const _0x132a6e=this['editor'];if(!_0x132a6e['plugins']['has']('Title'))return;const _0x210539=_0x132a6e['plugins']['get']('TrackChangesEditing');_0x210539['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x132a6e['locale'],'ELEMENT_TITLE')),_0x132a6e['model']['document']['registerPostFixer'](_0x500998=>{let _0x300cb6=!0x1;const _0x281a4a=Array['from'](_0x132a6e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x59a7ed,data:_0x5e45f9}of _0x281a4a){const {group:_0x15aeb3}=_0x210539['_splitMarkerName'](_0x59a7ed);if('suggestion'!==_0x15aeb3||!_0x5e45f9['newRange'])continue;const _0x4e1e4d=_0x5e45f9['newRange'],_0x4772f1=_0x4e1e4d['end']['nodeBefore'];if(!_0x4772f1||!_0x4772f1['is']('element','title-content'))continue;if(!_0x4e1e4d['start']['isTouching'](_0x4e1e4d['end']))continue;const _0x3b4bbd=_0x132a6e['model']['schema']['getNearestSelectionRange'](_0x4e1e4d['end'],'forward');if(_0x3b4bbd&&_0x3b4bbd['isCollapsed']){const _0x59e97c=_0x500998['createRange'](_0x4e1e4d['start'],_0x3b4bbd['start']);_0x59e97c['isEqual'](_0x4e1e4d)||(_0x500998['updateMarker'](_0x59a7ed,{'range':_0x59e97c}),_0x300cb6=!0x0);}_0x300cb6||(_0x500998['removeMarker'](_0x59a7ed),_0x300cb6=!0x0);}return _0x300cb6;});}}class Bt extends _0x58a0bc{['afterInit'](){const _0x2d86ef=this['editor'],_0x243457=_0x2d86ef['plugins']['get']('TrackChangesEditing');_0x2d86ef['plugins']['has']('UndoEditing')&&(_0x243457['enableCommand']('undo'),_0x243457['enableCommand']('redo'));}}class xt extends _0x58a0bc{static get['requires'](){return[It];}['afterInit'](){const _0x4df322=this['editor'];if(!_0x4df322['plugins']['has']('TableCaptionEditing'))return;_0x4df322['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x58a0bc{['tableProperties'];['tableCellProperties'];constructor(_0x453a0c){super(_0x453a0c),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';}['afterInit'](){const _0xb14700=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xb4b3d7 of this['tableProperties'])_0xb14700['enableCommand'](_0xb4b3d7,(_0x159ee7,_0x9b88a5)=>{const _0x267052=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xb4b3d7,[_0x267052],this['tableProperties'],'tableProperties',_0x159ee7,_0x9b88a5);});_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xb14700['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x21f576,_0x2585be)=>this['handleDiscardAction'](this['tableProperties'],_0x21f576,_0x2585be)),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x16a07e of this['tableCellProperties'])_0xb14700['enableCommand'](_0x16a07e,(_0x25b0f3,_0x865cc2)=>{const _0x3ec2f3=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x16a07e,_0x3ec2f3,this['tableCellProperties'],'tableCellProperties',_0x25b0f3,_0x865cc2);});_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xb14700['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4fea0c,_0x477894)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4fea0c,_0x477894)),_0xb14700['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xb14700['descriptionFactory']['registerDescriptionCallback'](_0x3ede64=>this['handleSuggestionDescription'](_0x3ede64));}['_handlePropertyChange'](_0x3399e7,_0x306bc9,_0x3fa48a,_0x47a287,_0x388260,_0x35b27f){const _0x3a5cfd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x35b27f['batch'],()=>{for(const _0x223e81 of _0x306bc9){if(this['_getSuggestion'](_0x223e81,_0x47a287))_0x388260(_0x35b27f);else{const _0x2e5b6b={};for(const _0x23b202 of _0x3fa48a){const _0x4c5719=_0x223e81['getAttribute'](_0x23b202);void 0x0!==_0x4c5719&&(_0x2e5b6b[_0x23b202]=_0x4c5719);}_0x388260(_0x35b27f),_0x3a5cfd['markBlockFormat'](_0x223e81,{'commandParams':[_0x2e5b6b]},[],_0x47a287);}}});}['handleDiscardAction'](_0x23dbef,_0xda3e71,_0x25b416){const _0x23078a=_0xda3e71[0x0]['start']['nodeAfter'],_0x53a0b7=_0x25b416['commandParams'][0x0];this['editor']['model']['change'](_0x37c55d=>{for(const _0x5ed35a of _0x23dbef)void 0x0!==_0x53a0b7[_0x5ed35a]?_0x37c55d['setAttribute'](_0x5ed35a,_0x53a0b7[_0x5ed35a],_0x23078a):_0x37c55d['removeAttribute'](_0x5ed35a,_0x23078a);});}['handleSuggestionDescription'](_0x23f491){if(_0x23f491['data'])switch(_0x23f491['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'](_0x3afb01,_0x45d2d9){const _0x42966b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x228c99 of _0x42966b['getSuggestions']({'skipNotAttached':!0x0})){const _0x3fd677=_0x228c99['getContainedElement']();if(_0x228c99['subType']===_0x45d2d9&&_0x3fd677===_0x3afb01)return _0x228c99;}return null;}}const m='$elementName';class p extends _0x58a0bc{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5983d1,_0xb7ca76,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1c0e3f){function _0x2e5a14(_0x22efd1){return _0x22efd1['map'](_0x485c83=>String['fromCharCode'](_0x485c83))['join']('');}super(_0x1c0e3f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3ba390,_0x363fb4,_0x5f02c6,_0x3ef873)=>{this['_model']['change'](()=>{for(const _0x241d80 of[..._0x3ef873,..._0x5f02c6])this['_model']['markers']['has'](_0x241d80)&&_0x1c0e3f['editing']['reconvertMarker'](_0x241d80);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1c0e3f['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(),_0x1c0e3f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1c0e3f['config']['get']('trackChanges.trackFormatChanges'),_0x1c0e3f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1c0e3f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1c0e3f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2e5a14([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2e5a14([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x34]);}['init'](){const _0x93664=this['editor'],_0x3db84a=(_0x4f3e1a,_0x453be4)=>{if('attribute'!=_0x4f3e1a)return'ck-suggestion-marker-'+_0x4f3e1a;const _0x4ac2a0=_0x453be4['split']('|')[0x0];return this['_isBlockAttribute'](_0x4ac2a0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x93664['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4788ad=>{const {id:_0x19900c,authorId:_0x239e78,type:_0xea588b,subType:_0x2530ca}=this['_splitMarkerName'](_0x4788ad['markerName']),_0x395842=['ck-suggestion-marker',_0x3db84a(_0xea588b,_0x2530ca)];let _0x1e9147=0xbb8;return this['activeMarkers']['includes'](_0x4788ad['markerName'])&&(_0x395842['push']('ck-suggestion-marker--active'),_0x1e9147=0xbc2),'deletion'==_0xea588b&&(_0x1e9147+=0x5),{'classes':_0x395842,'attributes':{'data-suggestion':_0x19900c,'data-author-id':_0x239e78},'priority':_0x1e9147};}}),_0x93664['conversion']['for']('dataDowncast')['add'](_0x3e09d2=>{_0x3e09d2['on']('addMarker:suggestion',(_0x35a362,_0x2e40e1,_0x9f1765)=>{if(!_0x9f1765['options']['showSuggestionHighlights'])return;const _0xea57ce=_0x2e40e1['item'];if(!_0xea57ce)return;const _0x587315=_0x9f1765['mapper']['toViewElement'](_0xea57ce);_0x93664['model']['schema']['isObject'](_0xea57ce)&&_0x587315&&!_0x587315['getCustomProperty']('widget')&&_0x587315['is']('containerElement')&&_0x3601d(_0x587315,_0x9f1765['writer']);},{'priority':'high'});}),_0x93664['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xc4bba7,_0x91ae9c)=>{if(!_0x91ae9c['options']['showSuggestionHighlights'])return null;const {type:_0x9d4f3b,subType:_0x493231}=this['_splitMarkerName'](_0xc4bba7['markerName']);return{'classes':['ck-suggestion-marker',_0x3db84a(_0x9d4f3b,_0x493231)],'priority':0xbb8};}});const _0x2995ee=({showActiveMarkers:_0x203d99=!0x0,isAttributeSuggestion:_0x1ef91a=!0x1}={})=>(_0x5d0b3c,_0x22d411,_0x5e1479)=>{if(!_0x22d411['item'])return;const {id:_0x359fce,authorId:_0x3c11e7}=this['_splitMarkerName'](_0x22d411['markerName']);if(_0x1ef91a){const _0x368ff1=this['_suggestions']['get'](_0x359fce),_0x31e441=this['_getAttributeKey'](_0x368ff1);if(!this['_isBlockAttribute'](_0x31e441))return;}if(_0x22d411['item']['is']('selection'))return void _0x5e1479['consumable']['consume'](_0x22d411['item'],_0x5d0b3c['name']);const _0x25635f=_0x5e1479['mapper']['toViewElement'](_0x22d411['item']);if(_0x22d411['item']['is']('element')&&_0x93664['model']['schema']['isBlock'](_0x22d411['item'])&&!_0x25635f['getCustomProperty']('addHighlight')){_0x5e1479['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x25635f),_0x5e1479['writer']['setAttribute']('data-suggestion',_0x359fce,_0x25635f),_0x5e1479['writer']['setAttribute']('data-author-id',_0x3c11e7,_0x25635f),_0x5e1479['mapper']['bindElementToMarker'](_0x25635f,_0x22d411['markerName']),_0x203d99&&(this['activeMarkers']['includes'](_0x22d411['markerName'])?_0x5e1479['writer']['addClass']('ck-suggestion-marker--active',_0x25635f):_0x5e1479['writer']['removeClass']('ck-suggestion-marker--active',_0x25635f));for(const _0x5aa396 of _0x93664['model']['createRangeIn'](_0x22d411['item'])['getItems']())_0x5e1479['consumable']['consume'](_0x5aa396,_0x5d0b3c['name']);_0x5e1479['consumable']['consume'](_0x22d411['item'],_0x5d0b3c['name']);}};_0x93664['conversion']['for']('dataDowncast')['add'](_0x476b23=>{_0x476b23['on']('addMarker:suggestion:formatBlock',(_0x2354b0,_0x30218c,_0x35f648)=>{_0x35f648['options']['showSuggestionHighlights']&&_0x2995ee({'showActiveMarkers':!0x1})(_0x2354b0,_0x30218c,_0x35f648);},{'priority':'highest'});}),_0x93664['conversion']['for']('dataDowncast')['add'](_0x3989cf=>{_0x3989cf['on']('addMarker:suggestion:attribute',(_0x4481a4,_0x5b92d7,_0x64838d)=>{_0x64838d['options']['showSuggestionHighlights']&&_0x2995ee({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4481a4,_0x5b92d7,_0x64838d);},{'priority':'highest'});}),_0x93664['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x412ed5,_0x556b09)=>_0x556b09['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x412ed5['substr'](0xb)}}),_0x93664['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x316caa,{writer:_0x190ea6})=>{let _0x512da6='suggestion:'+_0x316caa['getAttribute']('suggestion-type')+':'+_0x316caa['getAttribute']('id');return _0x316caa['getAttribute']('marker-count')&&(_0x512da6+=':'+_0x316caa['getAttribute']('marker-count')),_0x190ea6['createElement']('$marker',{'data-name':_0x512da6});}}),_0x93664['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x93664['conversion']['for']('editingDowncast')['add'](_0x30aa84=>{_0x30aa84['on']('addMarker:suggestion:formatBlock',_0x2995ee(),{'priority':'high'});}),_0x93664['conversion']['for']('editingDowncast')['add'](_0x3b006c=>{_0x3b006c['on']('addMarker:suggestion:attribute',_0x2995ee({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x93664['conversion']['for']('editingDowncast')['add'](_0xc12469=>{_0xc12469['on']('removeMarker:suggestion:formatBlock',(_0x57b61d,_0x40916f,_0x2eb805)=>{const _0x2168d1=_0x2eb805['mapper']['markerNameToElements'](_0x40916f['markerName']);if(_0x2168d1){for(const _0x4d8ef2 of _0x2168d1)_0x4d8ef2['getCustomProperty']('addHighlight')||(_0x2eb805['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4d8ef2),_0x2eb805['writer']['removeAttribute']('data-suggestion',_0x4d8ef2),_0x2eb805['writer']['removeAttribute']('data-author-id',_0x4d8ef2),_0x2eb805['mapper']['unbindElementFromMarkerName'](_0x4d8ef2,_0x40916f['markerName']));}},{'priority':'high'});}),_0x93664['conversion']['for']('editingDowncast')['add'](_0x36e674=>{_0x36e674['on']('removeMarker:suggestion:attribute',(_0x2483ab,_0x49f8a6,_0x3886f5)=>{const _0x13f01d=_0x3886f5['mapper']['markerNameToElements'](_0x49f8a6['markerName']);if(!_0x13f01d)return;const {id:_0x25726f}=this['_splitMarkerName'](_0x49f8a6['markerName']),_0x48a27d=this['_suggestions']['get'](_0x25726f),_0x458e3a=this['_getAttributeKey'](_0x48a27d);if(this['_isBlockAttribute'](_0x458e3a)){for(const _0x40e6cb of _0x13f01d)_0x40e6cb['getCustomProperty']('addHighlight')||(_0x3886f5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x40e6cb),_0x3886f5['writer']['removeAttribute']('data-suggestion',_0x40e6cb),_0x3886f5['writer']['removeAttribute']('data-author-id',_0x40e6cb),_0x3886f5['mapper']['unbindElementFromMarkerName'](_0x40e6cb,_0x49f8a6['markerName']));}},{'priority':'high'});}),_0x93664['model']['document']['registerPostFixer'](_0x497b79=>{let _0x5ecbbc=!0x1;const _0x38d59d=Array['from'](_0x93664['model']['document']['differ']['getChangedMarkers']()),_0x1c3916=new Set();for(const {name:_0x1b718e,data:_0x22813e}of _0x38d59d){const {group:_0x3c158b,type:_0x21c3cb,subType:_0xbbed5e,id:_0x530dca}=this['_splitMarkerName'](_0x1b718e);if('suggestion'!==_0x3c158b)continue;const _0x552941=this['_suggestions']['get'](_0x530dca);if(null!=_0x22813e['newRange']){'formatInline'==_0x21c3cb&&(_0x5ecbbc=_0x5ecbbc||Ut(_0x22813e['newRange'],_0x1b718e,_0x497b79,_0x93664['model']['schema']));const _0x29f6bd='attribute'==_0x21c3cb&&this['_isBlockAttribute'](_0xbbed5e['split']('|')[0x0]);if(_0x22813e['newRange']['isCollapsed']||'$graveyard'==_0x22813e['newRange']['root']['rootName']||'formatBlock'==_0x21c3cb&&!Ft(_0x22813e['newRange'])||_0x29f6bd&&!Ft(_0x22813e['newRange'])||'deletion'==_0x21c3cb&&!(!Vt(_0x4e7cda=_0x22813e['newRange'])&&!function(_0x26cad6){return _0x26cad6['start']['parent']==_0x26cad6['end']['nodeBefore']&&_0x26cad6['start']['isAtEnd'];}(_0x4e7cda)))_0x497b79['removeMarker'](_0x1b718e),_0x5ecbbc=!0x0;else{if(!_0x552941||!_0x552941['isInContent'])continue;if(_0x22813e['newRange']&&_0x22813e['oldRange']&&_0x22813e['newRange']['isEqual'](_0x22813e['oldRange']))continue;_0x1c3916['add'](_0x552941);}}}var _0x4e7cda;return _0x1c3916['size']>0x0&&(_0x5ecbbc=!!this['_joinWithAdjacentSuggestions'](_0x1c3916)||_0x5ecbbc),_0x5ecbbc;}),_0x93664['model']['document']['registerPostFixer'](_0x37cd95=>{let _0x46c042=!0x1;for(const _0x9de49b of _0x93664['model']['document']['differ']['getChanges']())if('insert'==_0x9de49b['type'])for(const _0x24bfca of this['_suggestions']['values']()){if(_0x24bfca['isMultiRange']||!_0x24bfca['isInContent'])continue;const _0x44d3b8='formatBlock'==_0x24bfca['type'],_0x312629=this['_getAttributeKey'](_0x24bfca),_0x47a433=_0x312629&&this['_isBlockAttribute'](_0x312629);if(!_0x44d3b8&&!_0x47a433)continue;const _0x5545a5=_0x24bfca['getFirstRange']();if(_0x5545a5['start']['parent']!=_0x5545a5['end']['parent']&&!_0x5545a5['end']['isAtEnd']){const _0x3c412f=_0x93664['model']['createPositionAt'](_0x5545a5['start']['nodeAfter'],'end'),_0x1e3b62=_0x93664['model']['createRange'](_0x5545a5['start'],_0x3c412f);_0x37cd95['updateMarker'](_0x24bfca['getFirstMarker'](),{'range':_0x1e3b62}),_0x46c042=!0x0;}}return _0x46c042;}),_0x93664['model']['document']['registerPostFixer'](_0x21ce4d=>this['_processAttributeChanges'](_0x21ce4d)),_0x93664['model']['document']['registerPostFixer'](_0x3958b3=>!_0x3958b3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3958b3)),_0x93664['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x93664['model']['document']['on']('change:data',(_0x85198a,_0xb5c8d1)=>{if(!_0xb5c8d1['isLocal']||_0xb5c8d1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4b72ec=_0x93664['model']['document']['differ']['getChanges']();if(0x0==_0x4b72ec['length'])return;const _0x24992a=[],_0x995e81=_0x4b72ec['filter'](_0x4a9407=>'attribute'==_0x4a9407['type']),_0x577055=_0x4b72ec['filter'](_0x5d6625=>'insert'==_0x5d6625['type']&&'$text'!=_0x5d6625['name']);for(const _0x1099e5 of _0x995e81)this['_isRegisteredAttribute'](_0x1099e5['attributeKey'])&&_0x24992a['push']({'key':_0x1099e5['attributeKey'],'newValue':_0x1099e5['attributeNewValue'],'oldValue':_0x1099e5['attributeOldValue'],'range':Pt(_0x1099e5['range'],_0x93664['model'])});for(const _0x9471dd of _0x577055){if('rename'!=_0x9471dd['action']&&'refresh'!=_0x9471dd['action'])continue;const _0x33f204=Lt(_0x9471dd['position']['nodeAfter'],_0x93664['model']),_0x32bc93=_0x9471dd['before'];'rename'==_0x9471dd['action']&&_0x24992a['push']({'key':m,'newValue':_0x9471dd['name'],'oldValue':_0x32bc93['name'],'range':_0x33f204});for(const [_0x39385f,_0x5f5b4c]of _0x32bc93['attributes']){if(!this['_isRegisteredAttribute'](_0x39385f))continue;const _0x1e383c=_0x9471dd['attributes']['get'](_0x39385f);_0x5f5b4c!==_0x1e383c&&_0x24992a['push']({'key':_0x39385f,'newValue':_0x1e383c,'oldValue':_0x5f5b4c,'range':_0x33f204});}for(const [_0x282b60,_0x17fb21]of _0x9471dd['attributes'])this['_isRegisteredAttribute'](_0x282b60)&&(_0x32bc93['attributes']['has'](_0x282b60)||_0x24992a['push']({'key':_0x282b60,'newValue':_0x17fb21,'oldValue':null,'range':_0x33f204}));}0x0!=_0x24992a['length']&&_0x93664['model']['enqueueChange'](_0xb5c8d1,_0x5d5e6f=>{const _0x3e8361=_0x546e08();for(const {range:_0x742c00,key:_0x49edf2,oldValue:_0x23cf55,newValue:_0x46e9a1}of _0x24992a)this['markAttributeChange'](_0x742c00,_0x49edf2,_0x23cf55,_0x46e9a1,{'groupId':_0x3e8361});this['_reduceExistingSuggestions'](_0x5d5e6f,_0x24992a);});},{'priority':'lowest'}),_0x93664['model']['markers']['on']('update:suggestion',(_0x13e70e,_0x57fd7b,_0x1c60b8)=>{if(null==_0x1c60b8){const {id:_0x1e9268}=this['_splitMarkerName'](_0x57fd7b['name']),_0x4753c9=this['_suggestions']['get'](_0x1e9268);_0x4753c9&&_0x4753c9['addMarkerName'](_0x57fd7b['name']);}}),_0x93664['model']['document']['on']('change:data',()=>{const _0x2a5862=Array['from'](_0x93664['model']['document']['differ']['getChangedMarkers']())['filter'](_0x414cd7=>'suggestion'===this['_splitMarkerName'](_0x414cd7['name'])['group']);if(0x0===_0x2a5862['length'])return;_0x2a5862['sort']((_0x27c88c,_0x264d43)=>{const _0x2e8dcc=_0x27c88c['data']['oldRange'],_0x1f8079=_0x264d43['data']['oldRange'];return null===_0x2e8dcc&&null===_0x1f8079?0x0:null===_0x2e8dcc&&null!==_0x1f8079?-0x1:null!==_0x2e8dcc&&null===_0x1f8079?0x1:_0x2e8dcc['start']['isBefore'](_0x1f8079['start'])?-0x1:0x1;});const _0xb2b4ab=new Set(),_0x5b827b=new Set();for(const {name:_0x14616f,data:_0x8db754}of _0x2a5862){const {id:_0x30a971}=this['_splitMarkerName'](_0x14616f);if(null===_0x8db754['oldRange']){const _0x3cd933=this['_handleNewSuggestionMarker'](_0x14616f);_0x5b827b['add'](_0x3cd933);}else{const _0x5bfc41=this['_suggestions']['get'](_0x30a971);null!==_0x8db754['newRange']||_0x5bfc41['isInContent']?(_0xb2b4ab['add'](_0x5bfc41['head']),_0x5b827b['add'](_0x5bfc41)):this['_removeSuggestion'](_0x5bfc41);}}_0x5b827b['size']>0x0&&this['_refreshSuggestionsChain'](_0x5b827b);for(const _0x192a81 of _0xb2b4ab)this['fire']('suggestionChanged',_0x192a81);}),_0x93664['model']['on']('applyOperation',(_0x564e65,_0xb6ae6f)=>{const _0xe66e0a=_0xb6ae6f[0x0];if(!this['_suggestions']['size'])return;if(!_0xe66e0a['isDocumentOperation'])return;if(_0xe66e0a['batch']['isUndo']||!_0xe66e0a['batch']['isLocal'])return;let _0x4a2ae0,_0xc8b8e;switch(_0xe66e0a['type']){case'insert':_0x4a2ae0=_0x93664['model']['createPositionAt'](_0xe66e0a['position']),_0xc8b8e=_0x4a2ae0['getShiftedBy'](_0xe66e0a['howMany']);break;case'split':_0x4a2ae0=_0x93664['model']['createPositionAt'](_0xe66e0a['splitPosition']),_0xc8b8e=_0x93664['model']['createPositionAt'](_0xe66e0a['moveTargetPosition']);break;case'move':_0x4a2ae0=_0x93664['model']['createPositionAt'](_0xe66e0a['targetPosition']),_0xc8b8e=_0x4a2ae0['getShiftedBy'](_0xe66e0a['howMany']);break;default:return;}const _0xce8363=_0x93664['model']['createRange'](_0x4a2ae0,_0xc8b8e);_0x93664['model']['change'](()=>{for(const {suggestion:_0x57864b,meta:_0x8d1b83}of this['_findSuggestions'](_0xce8363)){if(_0x57864b['isMultiRange'])continue;if('formatInline'==_0x57864b['type'])continue;const _0x5963f8=this['_getAttributeKey'](_0x57864b);if(_0x5963f8&&this['_isBlockAttribute'](_0x5963f8)&&'split'!=_0xe66e0a['type'])continue;const _0x5b9568=_0x57864b['data']&&_0x57864b['data']['multipleBlocks'];('formatBlock'!=_0x57864b['type']||'split'==_0xe66e0a['type']&&!_0x5b9568)&&(_0x8d1b83['containsRangeInObject']||'insertion'==_0x57864b['type']&&_0x8d1b83['isOwn']||_0x57864b['getFirstRange']()['containsRange'](_0xce8363)&&this['_breakSuggestionMarker'](_0x57864b,_0x4a2ae0,_0xc8b8e));}});},{'priority':'lowest'}),_0x93664['model']['on']('deleteContent',(_0x379058,_0x2c9c98)=>{const _0x118c46=_0x2c9c98[0x0],_0x294d8a=_0x2c9c98[0x1];if(_0x294d8a&&_0x294d8a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x118c46['isCollapsed'])return;const _0x5caae4=_0x93664['model']['schema'],{start:_0x18907c,end:_0x1cd0d7}=_0x118c46['getFirstRange'](),_0x5ab9ac=_0x18907c['nodeAfter']&&_0x5caae4['isLimit'](_0x18907c['nodeAfter'])?null:_0x5caae4['getNearestSelectionRange'](_0x18907c,'forward'),_0x547714=_0x1cd0d7['nodeBefore']&&_0x5caae4['isLimit'](_0x1cd0d7['nodeBefore'])?null:_0x5caae4['getNearestSelectionRange'](_0x1cd0d7,'backward'),_0x41612a=_0x93664['model']['createRange'](_0x5ab9ac?_0x5ab9ac['start']:_0x18907c,_0x547714?_0x547714['end']:_0x1cd0d7);_0x93664['model']['change'](_0x28e186=>{this['markDeletion'](_0x41612a);const _0x2b0846=_0x93664['model']['schema']['getNearestSelectionRange'](_0x41612a['start']);_0x118c46['is']('documentSelection')?_0x28e186['setSelection'](_0x2b0846):_0x118c46['setTo'](_0x2b0846);}),_0x379058['stop']();},{'priority':_0x44834d['normal']+0xa}),_0x93664['model']['on']('insertContent',(_0x18c3e0,_0x3fa0c1)=>{const _0x35876f=_0x3fa0c1[_0x3fa0c1['length']-0x1];_0x35876f&&_0x35876f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x93664['model']['change'](()=>{let _0x213623=_0x93664['model']['insertContent'](_0x3fa0c1[0x0],_0x3fa0c1[0x1],_0x3fa0c1[0x2],{'forceDefaultExecution':!0x0});if(!_0x213623)return;_0x18c3e0['return']=_0x213623['clone']();const _0xc31289=_0x213623['end']['nodeBefore'],_0x32af26=_0x93664['model']['schema'];_0xc31289&&_0x32af26['isBlock'](_0xc31289)&&!_0x32af26['isObject'](_0xc31289)&&(_0x213623=_0x93664['model']['createRange'](_0x213623['start'],_0x93664['model']['createPositionAt'](_0xc31289,'end'))),this['markInsertion'](_0x213623);}),_0x18c3e0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x6af541=new x(_0x93664,this['_suggestions']);_0x93664['commands']['add']('acceptSuggestion',_0x6af541),this['enableCommand']('acceptSuggestion');const _0x33d084=new R(_0x93664,this['_suggestions']);_0x93664['commands']['add']('discardSuggestion',_0x33d084),this['enableCommand']('discardSuggestion'),_0x93664['commands']['add']('acceptAllSuggestions',new E(_0x93664,_0x6af541,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x93664['commands']['add']('discardAllSuggestions',new E(_0x93664,_0x33d084,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x93664['commands']['add']('acceptSelectedSuggestions',new O(_0x93664,_0x6af541,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x93664['commands']['add']('discardSelectedSuggestions',new O(_0x93664,_0x33d084,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x16f29c=_0x93664['plugins']['get']('CommentsRepository');this['listenTo'](_0x16f29c,'addComment',(_0x2c4abc,{threadId:_0xd92d3b})=>{const _0x22805d=this['_suggestions']['get'](_0xd92d3b);_0x22805d&&_0x22805d['commentThread']&&0x1===_0x22805d['commentThread']['length']&&this['_updateSuggestionData'](_0xd92d3b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x16f29c,'removeComment',(_0x18cdf6,{threadId:_0x2e58ce})=>{const _0x423742=this['_suggestions']['get'](_0x2e58ce);_0x423742&&_0x423742['commentThread']&&!_0x423742['commentThread']['length']&&this['_updateSuggestionData'](_0x2e58ce,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x17283d){if(this['_adapter'])throw new _0x4ee7fd('track-changes-adapter-already-set',this);this['_adapter']=_0x17283d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x19db39=!0x1,toJSON:_0x311f39=!0x1}={}){const _0x42a1f2=[];for(const _0xb91945 of this['_suggestions']['values']())_0x19db39&&!_0xb91945['isInContent']||_0x42a1f2['push'](_0xb91945);return _0x311f39?_0x42a1f2['map'](_0x2df00b=>_0x2df00b['toJSON']()):_0x42a1f2;}['getSuggestion'](_0xb62e9e){const _0xfea7=this['_suggestions']['get'](_0xb62e9e);if(!_0xfea7)throw new _0x4ee7fd('track-changes-suggestion-not-found',this);return _0xfea7;}['hasSuggestion'](_0x31d852){return this['_suggestions']['has'](_0x31d852);}['addSuggestionData'](_0x306566){const {authorId:_0x182852,id:_0x275324,attributes:_0x43f843}=_0x306566,[_0xc1ee51,_0x199ebd]=_0x306566['type']['split'](':'),_0x1b5dd6=this['_suggestions']['get'](_0x275324)||this['_createSuggestion'](_0xc1ee51,_0x199ebd,_0x275324,_0x182852,_0x43f843);if(this['_addThreadToSuggestion'](_0x1b5dd6),this['_checkSuggestionCorrectness'](_0x1b5dd6,_0xc1ee51,_0x199ebd||null,_0x182852),_0x1b5dd6['createdAt']=_0x306566['createdAt'],_0x1b5dd6['_isDataLoaded']=!0x0,_0x43f843&&_0x43f843['@external']){const _0x589b8c=_0x43f843['@external'],_0x152754=this['_getExternalAuthor'](_0x589b8c['authorName']);_0x1b5dd6['authoredAt']=_0x589b8c['createdAt'],_0x1b5dd6['author']=_0x152754,_0x1b5dd6['isExternal']=!0x0;}else _0x1b5dd6['authoredAt']=_0x306566['createdAt'];switch(_0x306566['data']&&(_0x1b5dd6['data']=_0x306566['data']),_0x306566['attributes']&&(_0x1b5dd6['attributes']=_0x306566['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1b5dd6['_saved']=!0x0),this['_suggestionState']['get'](_0x1b5dd6)){case'notReady':this['_suggestionState']['set'](_0x1b5dd6,'dataReady');break;case'markerReady':_0x1b5dd6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1b5dd6])),this['_refreshSuggestionsChain'](new Set([_0x1b5dd6])),this['_suggestionState']['set'](_0x1b5dd6,'ready'),this['fire']('suggestionLoaded',_0x1b5dd6)):this['_suggestionState']['set'](_0x1b5dd6,'removed');}return _0x1b5dd6;}['acceptSuggestion'](_0xe06385){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a6bc8 of _0xe06385['getAllAdjacentSuggestions']())_0x4a6bc8['accept']();});});}['discardSuggestion'](_0x595b71){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x58d3e1 of _0x595b71['getAllAdjacentSuggestions']())_0x58d3e1['discard']();});});}['enableCommand'](_0x3f5658,_0x12281e){const _0x3175a5=this['editor']['commands']['get'](_0x3f5658);if(!_0x3175a5)throw new _0x4ee7fd('track-changes-command-not-found',this,{'commandName':_0x3f5658});if(this['_enabledCommands']['has'](_0x3175a5))throw new _0x4ee7fd('track-changes-enable-command-twice',this,{'commandName':_0x3f5658});this['_enabledCommands']['add'](_0x3175a5),_0x12281e&&_0x3175a5['on']('execute',(_0x588dc1,_0x36e9c3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x36e9c3['length']>0x0&&_0x36e9c3[_0x36e9c3['length']-0x1]&&_0x36e9c3[_0x36e9c3['length']-0x1]['forceDefaultExecution']?_0x36e9c3['pop']():(_0x588dc1['return']=_0x12281e((..._0x340436)=>_0x3175a5['execute'](..._0x340436,{'forceDefaultExecution':!0x0}),..._0x36e9c3),_0x588dc1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xf82e4d){let _0x36f956,_0x139d0b;const _0x55a5ed=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x36f956=_0xf82e4d();}catch(_0x34b062){_0x139d0b=_0x34b062;}return _0x55a5ed||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x139d0b&&_0x4ee7fd['rethrowUnexpectedError'](_0x139d0b,this),_0x36f956;}['markInsertion'](_0x2c1981,_0x23dc30=null,_0x1df190={}){if(_0x2c1981['isCollapsed'])return null;const _0x454729=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5ebcac,meta:_0x248753}of this['_findSuggestions'](_0x2c1981,'insertion'))if(_0x248753['isOwn']){if(!_0x248753['isNextTo']){if(_0x248753['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x5ebcac,_0x1df190))continue;return _0x5ebcac;}if(qt(_0x5ebcac,_0x1df190))return _0x5ebcac;this['_breakSuggestionMarker'](_0x5ebcac,_0x2c1981['start'],_0x2c1981['end']);break;}if(_0x23dc30==_0x5ebcac['subType']&&qt(_0x5ebcac,_0x1df190)){const _0x1ec9c3=_0x5ebcac['getFirstRange']();return _0x1ec9c3['start']['isEqual'](_0x2c1981['end'])?this['_setSuggestionRange'](_0x5ebcac,this['_model']['createRange'](_0x2c1981['start'],_0x1ec9c3['end'])):this['_setSuggestionRange'](_0x5ebcac,this['_model']['createRange'](_0x1ec9c3['start'],_0x2c1981['end'])),_0x5ebcac;}}const _0x47d15a=_0x546e08(),_0x5588bb=_0x454729['id'],_0x1d72f5=_0x23dc30?'insertion:'+_0x23dc30:'insertion',_0x1bb88c=this['_setSuggestionData']({'id':_0x47d15a,'type':_0x1d72f5,'createdAt':new Date(),'authorId':_0x5588bb,'attributes':_0x1df190});return this['_addSuggestionMarker'](_0x1d72f5,_0x47d15a,_0x5588bb,_0x2c1981),_0x1bb88c;}['markMultiRangeInsertion'](_0x39ca88,_0x737dcc='multi',_0x557f70={}){const _0x15663a=this['editor']['plugins']['get']('Users')['me'],_0x3113fe=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x737dcc,'join');for(const _0x2f2938 of this['getSuggestions']())if(_0x2f2938['author']['id']==_0x15663a['id']&&'insertion'==_0x2f2938['type']&&_0x2f2938['subType']==_0x737dcc&&qt(_0x2f2938,_0x557f70)&&(_0x3113fe(_0x2f2938['getRanges'](),_0x39ca88)||_0x3113fe(_0x39ca88,_0x2f2938['getRanges']()))){for(const _0x566623 of _0x39ca88)_0x2f2938['addRange'](_0x566623);return _0x2f2938;}for(const {suggestion:_0x4245e3,meta:_0x4e5747}of this['_findSuggestions'](_0x39ca88,'insertion')){if(!_0x4e5747['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4e5747['containsRangeInObject'])continue;if(!qt(_0x4245e3,_0x557f70))continue;let _0x19b687=!0x0;for(const _0x4da519 of _0x4245e3['getRanges']())for(const _0x4d4ca9 of _0x39ca88)if(!_0x4da519['containsRange'](_0x4d4ca9)){_0x19b687=!0x1;break;}if(_0x19b687)return _0x4245e3;}const _0x39057c=_0x546e08(),_0x2eda31=_0x15663a['id'],_0xe6a58c='insertion:'+_0x737dcc,_0x45b71c=this['_setSuggestionData']({'id':_0x39057c,'type':_0xe6a58c,'createdAt':new Date(),'authorId':_0x2eda31,'attributes':_0x557f70});for(const _0x21a965 of _0x39ca88)this['_addSuggestionMarker'](_0xe6a58c,_0x39057c,_0x2eda31,_0x21a965,u['getMultiRangeId']());return _0x45b71c;}['markInlineFormat'](_0x10b66c,_0x4f8483,_0x2f484d=null,_0x1d9fb6={}){if(_0x2f484d=_0x2f484d||Gt(_0x4f8483),_0x10b66c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xd504c9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f484d,'accept');return this['forceDefaultExecution'](()=>_0xd504c9([_0x10b66c],_0x4f8483,_0x1d9fb6)),null;}const _0x24ed79=this['editor']['plugins']['get']('Users')['me'],_0x4f69f0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3feb11,meta:_0x298e78}of this['_findSuggestions'](_0x10b66c,'insertion'))_0x298e78['isOwn']&&!_0x298e78['isInsideObject']&&_0x4f69f0['push'](..._0x3feb11['getRanges']());}const _0xb98759=function(_0x235b45,_0x2eb81f){const _0x59db38=[];for(const _0x354b07 of _0x2eb81f){const _0x1db97a=_0x235b45['getIntersection'](_0x354b07);_0x1db97a&&_0x59db38['push'](_0x1db97a);}return _0x59db38;}(_0x10b66c,_0x4f69f0),_0x58ad74=function(_0x12992a,_0x302223){const _0x410bf6=[_0x12992a];for(const _0x3c89c0 of _0x302223){let _0x897208=0x0;for(;_0x897208<_0x410bf6['length'];){const _0x3d07e4=_0x410bf6[_0x897208]['getDifference'](_0x3c89c0);_0x410bf6['splice'](_0x897208,0x1,..._0x3d07e4),_0x897208+=_0x3d07e4['length'];}}return _0x410bf6;}(_0x10b66c,_0x4f69f0);_0xb98759['length']&&this['_model']['change'](()=>{for(const _0xc83220 of _0xb98759){const _0x2aa2f2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f484d,'accept');this['forceDefaultExecution'](()=>_0x2aa2f2([_0xc83220],_0x4f8483,_0x1d9fb6));}});for(const _0x550e9e of _0x58ad74){let _0x4620bd=null,_0x51d2e3=_0x550e9e['start'],_0x52624b=_0x550e9e['end'];for(const {suggestion:_0x47cfaf,meta:_0x368210}of this['_findSuggestions'](_0x550e9e,'formatInline')){if(!_0x368210['isOwn'])continue;if(_0x47cfaf['subType']!=_0x2f484d)continue;if(!qt(_0x47cfaf,_0x1d9fb6))continue;const _0x143c95=_0x47cfaf['getFirstRange']();if(_0x143c95['containsRange'](_0x550e9e,!0x0))return null;_0x51d2e3=_0x51d2e3['isBefore'](_0x143c95['start'])?_0x51d2e3:_0x143c95['start'],_0x52624b=_0x52624b['isAfter'](_0x143c95['end'])?_0x52624b:_0x143c95['end'],_0x4620bd?_0x143c95['start']['isBefore'](_0x4620bd['getFirstRange']()['start'])?(_0x4620bd['removeMarkers'](),_0x4620bd=_0x47cfaf):_0x47cfaf['removeMarkers']():_0x4620bd=_0x47cfaf;}const _0x2a74d7=this['_model']['createRange'](_0x51d2e3,_0x52624b);if(_0x4620bd)this['_setSuggestionRange'](_0x4620bd,_0x2a74d7);else{const _0x142c4b=_0x546e08(),_0x152000=_0x24ed79['id'];this['_setSuggestionData']({'id':_0x142c4b,'type':'formatInline:'+_0x2f484d,'data':_0x4f8483,'createdAt':new Date(),'authorId':_0x152000,'attributes':_0x1d9fb6}),this['_addSuggestionMarker']('formatInline:'+_0x2f484d,_0x142c4b,_0x152000,_0x2a74d7);}}return null;}['markBlockFormat'](_0x4e72b0,_0x4b06be,_0x52dd55=[],_0x4dc31f=null,_0x21423b={}){_0x4b06be['formatGroupId']||(_0x4b06be['formatGroupId']=_0x4b06be['commandName']),_0x4b06be['multipleBlocks']=_0x4e72b0['is']('range'),_0x4dc31f=_0x4dc31f||Gt(_0x4b06be);const _0x1443f8=_0x52dd55['map'](_0x974bad=>Lt(_0x974bad,this['_model'])),_0x5a2491=_0x4e72b0['is']('range')?_0x4e72b0:Lt(_0x4e72b0,this['_model']);if('never'===this['_trackFormatChanges']){const _0x501cd7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4dc31f,'accept');return this['forceDefaultExecution'](()=>_0x501cd7([_0x5a2491],_0x4b06be,_0x21423b)),null;}_0x1443f8['push'](_0x5a2491);let _0x28aafe=!0x0;for(const _0x1b6950 of _0x1443f8)if(!this['_rangeIsInLocalUserInsertion'](_0x1b6950)){_0x28aafe=!0x1;break;}if(_0x28aafe&&'always'!==this['_trackFormatChanges']){const _0x5808bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4dc31f,'accept');return this['forceDefaultExecution'](()=>_0x5808bf([_0x5a2491],_0x4b06be,_0x21423b)),null;}let _0x1599ac=null,_0x1a61b8=_0x5a2491['start'],_0x297904=_0x5a2491['end'];for(const {suggestion:_0x4a2412,meta:_0x2645c1}of this['_findSuggestions'](_0x5a2491,'formatBlock')){if(!_0x2645c1['isOwn'])continue;if(_0x2645c1['isNextTo']||_0x2645c1['containsRangeInObject']||_0x2645c1['isInsideObject'])continue;if(_0x4a2412['data']['formatGroupId']!=_0x4b06be['formatGroupId'])continue;if(!qt(_0x4a2412,_0x21423b))continue;const _0x833f69=_0x4a2412['getFirstRange']();if(_0x4a2412['subType']==_0x4dc31f){if(_0x833f69['containsRange'](_0x5a2491,!0x0))return null;_0x1a61b8=_0x1a61b8['isBefore'](_0x833f69['start'])?_0x1a61b8:_0x833f69['start'],_0x297904=_0x297904['isAfter'](_0x833f69['end'])?_0x297904:_0x833f69['end'],_0x1599ac?_0x833f69['start']['isBefore'](_0x1599ac['getFirstRange']()['start'])?(_0x1599ac['removeMarkers'](),_0x1599ac=_0x4a2412):_0x4a2412['removeMarkers']():_0x1599ac=_0x4a2412;}else{const _0x4494b5=_0x5a2491['getIntersection'](_0x833f69);this['_cutOutSuggestionMarker'](_0x4a2412,_0x4494b5);}}const _0x123022=this['editor']['plugins']['get']('Users')['me'],_0x4f5be5=_0x546e08(),_0x25eba5=_0x123022['id'];if(_0x1599ac)return this['_setSuggestionRange'](_0x1599ac,this['_model']['createRange'](_0x1a61b8,_0x297904)),_0x1599ac;{const _0xcaafcf=this['_setSuggestionData']({'id':_0x4f5be5,'type':'formatBlock:'+_0x4dc31f,'data':_0x4b06be,'createdAt':new Date(),'authorId':_0x25eba5,'attributes':_0x21423b});return this['_addSuggestionMarker']('formatBlock:'+_0x4dc31f,_0x4f5be5,_0x25eba5,this['_model']['createRange'](_0x1a61b8,_0x297904)),_0xcaafcf;}}['markMultiRangeBlockFormat'](_0x4575a4,_0x501210,_0x3fd6ee=[],_0x798e43=null,_0x37d50b={}){_0x501210['formatGroupId']||(_0x501210['formatGroupId']=_0x501210['commandName']);const _0x48c239=_0x4575a4[0x0];_0x501210['multipleBlocks']=_0x48c239['is']('range'),_0x798e43=_0x798e43||Gt(_0x501210);const _0x2ae3bd=_0x3fd6ee['map'](_0x704829=>Lt(_0x704829,this['_model'])),_0x117d33=_0x48c239['is']('range')?_0x4575a4:_0x4575a4['map'](_0x18a58e=>Lt(_0x18a58e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3deaba=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x798e43,'accept');return this['forceDefaultExecution'](()=>_0x3deaba(_0x117d33,_0x501210,_0x37d50b)),null;}_0x2ae3bd['push'](..._0x117d33);let _0x73ca5c=!0x0;for(const _0x3c86c4 of _0x2ae3bd)if(!this['_rangeIsInLocalUserInsertion'](_0x3c86c4)){_0x73ca5c=!0x1;break;}if(_0x73ca5c&&'always'!==this['_trackFormatChanges']){const _0x98ed85=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x798e43,'accept');return this['forceDefaultExecution'](()=>_0x98ed85(_0x117d33,_0x501210,_0x37d50b)),null;}const _0x59800e=this['editor']['plugins']['get']('Users')['me'];for(const _0x46b5bb of this['getSuggestions']()){if(_0x46b5bb['author']['id']!=_0x59800e['id'])continue;if('formatBlock'!=_0x46b5bb['type']||_0x46b5bb['data']['formatGroupId']!=_0x501210['formatGroupId'])continue;if(!qt(_0x46b5bb,_0x37d50b))continue;const _0x4458ff=_0x46b5bb['subType']==_0x798e43;for(let _0x1db6dc=0x0;_0x1db6dc<_0x117d33['length'];_0x1db6dc++){const _0x1a02ff=_0x117d33[_0x1db6dc];for(const _0xe0aaad of _0x46b5bb['getMarkers']()){const _0x2c84d0=_0xe0aaad['getRange']();if(_0x1a02ff['isEqual'](_0x2c84d0)){_0x4458ff?(_0x117d33['splice'](_0x1db6dc,0x1),_0x1db6dc--):_0x46b5bb['removeMarker'](_0xe0aaad['name']);break;}}}}if(0x0==_0x117d33['length'])return null;const _0x319fb6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x798e43,'join');for(const _0x925261 of this['getSuggestions']())if(_0x925261['author']['id']==_0x59800e['id']&&'formatBlock'==_0x925261['type']&&_0x925261['data']['formatGroupId']==_0x501210['formatGroupId']&&_0x925261['subType']==_0x798e43&&qt(_0x925261,_0x37d50b)&&(_0x319fb6(_0x925261['getRanges'](),_0x117d33)||_0x319fb6(_0x117d33,_0x925261['getRanges']()))){for(const _0x366eb9 of _0x117d33)_0x925261['addRange'](_0x366eb9);return _0x925261;}const _0x2b941c=_0x546e08(),_0x46e2af=_0x59800e['id'],_0x20a7ad='formatBlock:'+_0x798e43,_0x19fcae=this['_setSuggestionData']({'id':_0x2b941c,'type':_0x20a7ad,'data':_0x501210,'createdAt':new Date(),'authorId':_0x46e2af,'attributes':_0x37d50b});for(const _0x464c04 of _0x117d33)this['_addSuggestionMarker'](_0x20a7ad,_0x2b941c,_0x46e2af,_0x464c04,u['getMultiRangeId']());return _0x19fcae;}['markDeletion'](_0x1c6977,_0x495281=null,_0x11c6dc={}){if(_0x1c6977['isCollapsed'])return null;const _0x140be4=this['editor']['plugins']['get']('Users')['me'],_0x266e8b=new _0x1ac7bd(_0x1c6977['start'],_0x1c6977['end']);for(const {suggestion:_0x4abef9,meta:_0x451c8a}of this['_findSuggestions'](_0x266e8b,'insertion'))if(_0x451c8a['isOwn']&&!_0x451c8a['isNextTo']){if(_0x4abef9['isMultiRange']){const _0x54c1c7=_0x4abef9['getRanges']()['filter'](_0x11000c=>'$graveyard'!=_0x11000c['root']['rootName']);_0x54c1c7['every'](_0x1d59c8=>_0x266e8b['containsRange'](_0x1d59c8,!0x0))&&_0x4abef9['discard']();if(_0x54c1c7['some'](_0x3a0b91=>_0x3a0b91['containsRange'](_0x266e8b,!0x0))){const _0x58ecee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x495281,'accept');return this['forceDefaultExecution'](()=>_0x58ecee([_0x266e8b],null,_0x11c6dc)),null;}}else{const _0x13c93c=_0x266e8b['getIntersection'](_0x4abef9['getFirstRange']());null!==_0x13c93c&&_0x4abef9['_onDiscard']([_0x13c93c],null,_0x11c6dc);}}if(_0x266e8b['detach'](),_0x266e8b['isCollapsed']||'$graveyard'==_0x266e8b['root']['rootName'])return null;let _0xcd8a58=null,_0x49df57=_0x266e8b['start'],_0x4550fa=_0x266e8b['end'];const _0x5b94cb=this['_findSuggestions'](_0x266e8b,'deletion');for(const {suggestion:_0x2e0be3,meta:_0x2f891d}of _0x5b94cb){const _0x1ed36=this['_model']['createRange'](_0x49df57,_0x4550fa);if(_0x2f891d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2f891d['containsRangeInObject']&&!_0x2f891d['isInsideObject'])){if(_0x2e0be3['isMultiRange']){if(!qt(_0x2e0be3,_0x11c6dc))continue;let _0x347eb0=!0x0;for(const _0x368e7f of _0x2e0be3['getRanges']()){if(_0x368e7f['containsRange'](_0x1ed36,!0x0))return _0x2e0be3;_0x1ed36['containsRange'](_0x368e7f)||(_0x347eb0=!0x1);}_0x347eb0&&_0x2e0be3['discard']();}else{const _0x2859a7=_0x2e0be3['getFirstRange']();if(_0x2859a7['containsRange'](_0x1ed36,!0x0))return _0x2e0be3;if(!qt(_0x2e0be3,_0x11c6dc)){_0x1ed36['containsRange'](_0x2859a7)?_0x2e0be3['removeMarkers']():_0x2859a7['containsPosition'](_0x49df57)?_0x49df57=_0x2859a7['end']:_0x2859a7['containsPosition'](_0x4550fa)&&(_0x4550fa=_0x2859a7['start']);continue;}_0x49df57=_0x49df57['isBefore'](_0x2859a7['start'])?_0x49df57:_0x2859a7['start'],_0x4550fa=_0x4550fa['isAfter'](_0x2859a7['end'])?_0x4550fa:_0x2859a7['end'],_0x11c6dc=Object['assign']({},_0x2e0be3['attributes']),_0xcd8a58?_0x2859a7['start']['isBefore'](_0xcd8a58['getFirstRange']()['start'])?(_0xcd8a58['removeMarkers'](),_0xcd8a58=_0x2e0be3):_0x2e0be3['removeMarkers']():_0xcd8a58=_0x2e0be3;}}}if(_0xcd8a58)return this['_setSuggestionRange'](_0xcd8a58,this['_model']['createRange'](_0x49df57,_0x4550fa)),_0xcd8a58;{const _0x244435=_0x546e08(),_0x4217b9=this['_model']['createRange'](_0x49df57,_0x4550fa),_0x28679c=_0x140be4['id'],_0x339112=_0x495281?'deletion:'+_0x495281:'deletion',_0xb31888=this['_setSuggestionData']({'id':_0x244435,'type':_0x339112,'createdAt':new Date(),'authorId':_0x28679c,'attributes':_0x11c6dc});return this['_addSuggestionMarker'](_0x339112,_0x244435,_0x28679c,_0x4217b9),_0xb31888;}}['markMultiRangeDeletion'](_0x4e654e,_0xefd25b='multi',_0x22929e={}){const _0x3d5972=this['editor']['plugins']['get']('Users')['me'],_0x22a87f=_0x4e654e['map'](_0x368b9e=>new _0x1ac7bd(_0x368b9e['start'],_0x368b9e['end'])),_0x36a922=new Set();for(const {suggestion:_0x5b3be8,meta:_0x5a9978}of this['_findSuggestions'](_0x22a87f,'insertion'))_0x5a9978['isOwn']&&!_0x5a9978['isNextTo']&&_0x36a922['add'](_0x5b3be8);for(const _0x26eeab of _0x36a922)if(_0x26eeab['isMultiRange']){const _0xeae78c=_0x26eeab['getRanges']();(!_0x26eeab['attributes']||!_0x26eeab['attributes']['skipNestingCheck'])&&(_0xeae78c['every'](_0x412075=>_0x22a87f['some'](_0x126443=>_0x126443['containsRange'](_0x412075,!0x0)))&&_0x26eeab['discard']());if(_0x22a87f['every'](_0x28604d=>_0xeae78c['some'](_0x15505f=>_0x15505f['containsRange'](_0x28604d,!0x0)))){const _0x17e5ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xefd25b,'accept');return this['forceDefaultExecution'](()=>_0x17e5ba(_0x4e654e,null,_0x22929e)),null;}}else{const _0x106ea=_0x26eeab['getFirstRange']();_0x22a87f['some'](_0x3f0858=>_0x3f0858['containsRange'](_0x106ea,!0x0))&&_0x26eeab['discard']();if(_0x22a87f['every'](_0xb29a78=>_0x106ea['containsRange'](_0xb29a78,!0x0))){const _0xda8f66=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xefd25b,'accept');return this['forceDefaultExecution'](()=>_0xda8f66(_0x22a87f,null,_0x22929e)),null;}}const _0x26d8dd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xefd25b,'join');let _0xce5ce=null;for(const _0x180dc8 of this['getSuggestions']())if(_0x180dc8['author']['id']==_0x3d5972['id']&&_0x180dc8['isInContent']&&'deletion'==_0x180dc8['type']&&_0x180dc8['subType']==_0xefd25b&&qt(_0x180dc8,_0x22929e)&&(_0x26d8dd(_0x180dc8['getRanges'](),_0x22a87f)||_0x26d8dd(_0x22a87f,_0x180dc8['getRanges']()))){if(_0xce5ce){if(_0x180dc8['commentThread']&&_0x180dc8['commentThread']['length'])continue;for(const _0x84761b of _0x180dc8['getRanges']())_0xce5ce['isIntersectingWithRange'](_0x84761b)||_0xce5ce['addRange'](_0x84761b);_0x180dc8['removeMarkers']();}else{_0xce5ce=_0x180dc8;for(const _0x3e8bc7 of _0x22a87f)_0x180dc8['isIntersectingWithRange'](_0x3e8bc7)||_0x180dc8['addRange'](_0x3e8bc7);}}if(_0xce5ce)return _0xce5ce;_0x36a922['clear']();for(const {suggestion:_0x4260cd,meta:_0x543011}of this['_findSuggestions'](_0x22a87f,'deletion'))_0x543011['isOwn']&&(this['_mergeNestedSuggestions']||!_0x543011['containsRangeInObject']&&!_0x543011['isInsideObject'])&&qt(_0x4260cd,_0x22929e)&&_0x36a922['add'](_0x4260cd);for(const _0x6aab5e of _0x36a922){const _0x19901a=_0x6aab5e['getRanges']();if(!_0x22929e||!_0x22929e['skipNestingCheck']){if(_0x22a87f['every'](_0x54788c=>_0x19901a['some'](_0x4a0e2d=>_0x4a0e2d['containsRange'](_0x54788c,!0x0))))return _0x6aab5e;}(!_0x6aab5e['attributes']||!_0x6aab5e['attributes']['skipNestingCheck'])&&(_0x19901a['every'](_0xb4ee10=>_0x22a87f['some'](_0x10e06d=>_0x10e06d['containsRange'](_0xb4ee10,!0x0)))&&_0x6aab5e['discard']());}const _0x27af77=_0x546e08(),_0x52041c=_0x3d5972['id'],_0x53c37b='deletion:'+_0xefd25b,_0x47b3c1=this['_setSuggestionData']({'id':_0x27af77,'type':_0x53c37b,'createdAt':new Date(),'authorId':_0x52041c,'attributes':_0x22929e});for(const _0x246460 of _0x22a87f)_0x246460['detach'](),_0x246460['isCollapsed']||'$graveyard'==_0x246460['root']['rootName']||this['_addSuggestionMarker'](_0x53c37b,_0x27af77,_0x52041c,_0x246460,u['getMultiRangeId']());return _0x47b3c1;}['markAttributeChange'](_0x1aae48,_0x98c35a,_0x768b46,_0x27a9fd,_0xfc4a7){if(_0x1aae48['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1749ac=this['editor']['plugins']['get']('Users')['me']['id'],_0x3b4c74=Array['from'](this['_suggestions']['values']())['filter'](_0x32a31f=>'attribute'==_0x32a31f['type']&&_0x32a31f['data']['key']==_0x98c35a&&_0x32a31f['isIntersectingWithRange'](_0x1aae48));if('default'===this['_trackFormatChanges']){const _0xfd4aac=this['_findSuggestions'](_0x1aae48,'insertion')['filter'](({meta:_0x4689a5})=>_0x4689a5['isOwn']&&!_0x4689a5['isInsideObject']&&!_0x4689a5['isNextTo'])['map'](({suggestion:_0x35b7bb})=>_0x35b7bb);_0x3b4c74['unshift'](..._0xfd4aac);}const _0x308827=new Map([[_0x1aae48,_0x768b46]]);for(const _0x4c5bad of _0x3b4c74){const _0x1c1b8d='attribute'==_0x4c5bad['type']?_0x4c5bad['data']['oldValue']:void 0x0,_0x568940=_0x4c5bad['getFirstRange'](),_0x2f9560=Array['from'](_0x308827['keys']())['find'](_0x12f8b8=>_0x12f8b8['isIntersecting'](_0x568940));if(!_0x2f9560)continue;const _0x12f5f1=_0x2f9560['getDifference'](_0x568940);this['_isBlockAttribute'](_0x98c35a)&&'insertion'==_0x4c5bad['type']&&0x0!=_0x12f5f1['length']||(_0x308827['delete'](_0x2f9560),_0x12f5f1['forEach'](_0x2edd14=>{_0x308827['set'](_0x2edd14,_0x768b46);}),'insertion'!=_0x4c5bad['type']&&_0x1c1b8d!=_0x27a9fd&&_0x308827['set'](_0x2f9560['getIntersection'](_0x568940),_0x1c1b8d));}const _0x235354=[];for(const [_0x532f96,_0xd42de9]of _0x308827){const _0x59205c=_0x546e08(),_0x2535d3={'key':_0x98c35a,'oldValue':_0xd42de9,'newValue':_0x27a9fd};_0x98c35a['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':_0x98c35a});const _0x3e0c83=('attribute:'+(_0x98c35a+'|'+Gt({'newValue':_0x27a9fd})))['substring'](0x0,0x3c),_0x459061=this['_setSuggestionData']({'id':_0x59205c,'type':_0x3e0c83,'data':_0x2535d3,'createdAt':new Date(),'authorId':_0x1749ac,'attributes':_0xfc4a7});_0x235354['push'](_0x459061),this['_addSuggestionMarker'](_0x3e0c83,_0x59205c,_0x1749ac,_0x532f96);}return _0x235354;}['enableDefaultAttributesIntegration'](_0x46bfdb){this['enableCommand'](_0x46bfdb,(_0x110403,..._0x1fbdb9)=>{this['_recordAttributeChanges'](()=>{_0x110403(..._0x1fbdb9);});});}['registerBlockAttribute'](_0x143935){this['_blockAttributeKeys']['add'](_0x143935);}['registerInlineAttribute'](_0x55a84e){this['_inlineAttributeKeys']['add'](_0x55a84e);}['_getAttributeKey'](_0x2739f7){return'attribute'==_0x2739f7['type']?_0x2739f7['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x57fb27,_0x4fb7f6){const _0x2c7fda=_0x57fb27['getFirstMarker']();this['_model']['change'](_0x4ff37d=>{_0x4ff37d['updateMarker'](_0x2c7fda,{'range':_0x4fb7f6});});}['_addThreadToSuggestion'](_0x34db6c){const _0x3d9072=_0x34db6c['id'],_0x40057d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3d9072)||this['_commentsRepository']['addCommentThread']({'channelId':_0x40057d,'threadId':_0x3d9072,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2dde39=this['_commentsRepository']['getCommentThread'](_0x3d9072);_0x2dde39['unbind']('isRemovable'),_0x2dde39['isRemovable']=!0x1,_0x34db6c['commentThread']=_0x2dde39;}['_checkSuggestionCorrectness'](_0x2d8d98,_0x31932d,_0x4ea82a,_0x16824a){if(_0x2d8d98['type']!=_0x31932d||_0x2d8d98['subType']!=_0x4ea82a||_0x2d8d98['creator']['id']!=_0x16824a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4ee7fd('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1e11c7,_0x5a8500){const _0x47dfaf=_0x1e11c7['getFirstRange']();if(_0x5a8500['isEqual'](_0x47dfaf))_0x1e11c7['removeMarkers']();else{if(_0x47dfaf['containsRange'](_0x5a8500)){const _0x436408=this['_model']['createPositionAt'](_0x5a8500['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1e11c7,this['_model']['createRange'](_0x47dfaf['start'],_0x436408));const _0x19ba49=_0x546e08(),_0x2d510f=_0x1e11c7['creator']['id'],_0xb9c08e=_0x1e11c7['type']+':'+_0x1e11c7['subType'];this['_setSuggestionData']({'id':_0x19ba49,'type':_0xb9c08e,'createdAt':new Date(),'authorId':_0x2d510f,'data':_0x1e11c7['data'],'attributes':_0x1e11c7['attributes']});const _0x2bd2d4=this['_model']['createPositionAt'](_0x5a8500['end']['parent'],'after'),_0x177e48=this['_model']['createRange'](_0x2bd2d4,_0x47dfaf['end']);this['_addSuggestionMarker'](_0xb9c08e,_0x19ba49,_0x2d510f,_0x177e48);}else{if(_0x47dfaf['containsPosition'](_0x5a8500['start'])){const _0x5c5369=this['_model']['createPositionAt'](_0x5a8500['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1e11c7,this['_model']['createRange'](_0x47dfaf['start'],_0x5c5369));}else{const _0x267053=this['_model']['createPositionAt'](_0x5a8500['end']['parent'],'after');this['_setSuggestionRange'](_0x1e11c7,this['_model']['createRange'](_0x267053,_0x47dfaf['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xe99f07){for(const {suggestion:_0x5ac2d9,meta:_0x272be0}of this['_findSuggestions'](_0xe99f07,'insertion')){if(!_0x272be0['isOwn'])continue;const _0x127897=_0x5ac2d9['getRanges']();for(const _0x1d605c of _0x127897)if(!_0xe99f07['getDifference'](_0x1d605c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x35c70b){const _0x26a055=this['editor']['plugins']['get']('Users')['getUser'](_0x35c70b);if(!_0x26a055)throw new _0x4ee7fd('track-changes-user-not-found',this);return _0x26a055;}['_getExternalAuthor'](_0x284101){const _0x2894e8=this['editor']['plugins']['get']('Users'),_0x244a7b=_0x4bbe82('external:'+_0x284101),_0xeb8cc1=_0x2894e8['getUser'](_0x244a7b);return _0xeb8cc1||_0x2894e8['addUser']({'id':_0x244a7b,'name':_0x284101});}['_createSuggestion'](_0x5bb76c,_0x4b38a8,_0x5865ee,_0x5281a9,_0x14b928){const _0x1fdb5a=this['_getAuthorFromId'](_0x5281a9),_0x195a2d=this['_suggestionFactory']['buildSuggestion'](_0x5bb76c,_0x4b38a8,_0x5865ee,_0x1fdb5a,_0x14b928,_0x58f347=>{this['_updateSuggestionData'](_0x5865ee,{'attributes':_0x58f347});const _0x72018c=this['getSuggestion'](_0x5865ee);this['_joinWithAdjacentSuggestions'](new Set([_0x72018c])),this['_refreshSuggestionsChain'](new Set([_0x72018c]));});return this['listenTo'](_0x195a2d,'accept',()=>{this['_updateSuggestionData'](_0x5865ee,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x195a2d,'discard',()=>{this['_updateSuggestionData'](_0x5865ee,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5865ee,_0x195a2d),this['_suggestionState']['set'](_0x195a2d,'notReady'),_0x195a2d;}['_splitMarkerName'](_0x57a3a6){const _0xfe81e1=_0x57a3a6['split'](':');return{'group':_0xfe81e1[0x0],'type':_0xfe81e1[0x1],'subType':_0xfe81e1['length']>=0x5?_0xfe81e1[0x2]:null,'id':_0xfe81e1['length']<0x5?_0xfe81e1[0x2]:_0xfe81e1[0x3],'authorId':_0xfe81e1['length']<0x5?_0xfe81e1[0x3]:_0xfe81e1[0x4],'markerCount':0x6==_0xfe81e1['length']?_0xfe81e1[0x5]:null};}['_breakSuggestionMarker'](_0x36a94c,_0x1ae112,_0x1ed9a7){const _0x366f2b=_0x36a94c['getFirstRange'](),_0x1c6ec6=_0x366f2b['start'],_0x46adcb=_0x366f2b['end'];this['_setSuggestionRange'](_0x36a94c,this['_model']['createRange'](_0x1c6ec6,_0x1ae112));const _0x275cbd=_0x546e08(),_0x38cb25=_0x36a94c['creator']['id'],_0x36e1ba=_0x36a94c['type']+(_0x36a94c['subType']?':'+_0x36a94c['subType']:'');this['_setSuggestionData']({'id':_0x275cbd,'type':_0x36e1ba,'createdAt':new Date(),'authorId':_0x38cb25,'originalSuggestionId':_0x36a94c['id'],'attributes':_0x36a94c['attributes'],'data':_0x36a94c['data']});const _0x2ea4a2=this['_getAttributeKey'](_0x36a94c);('formatBlock'==_0x36a94c['type']||_0x2ea4a2&&this['_isBlockAttribute'](_0x2ea4a2))&&(_0x1ed9a7=this['_model']['createPositionBefore'](_0x1ed9a7['parent'])),this['_addSuggestionMarker'](_0x36e1ba,_0x275cbd,_0x38cb25,this['_model']['createRange'](_0x1ed9a7,_0x46adcb));}['_findSuggestions'](_0x51c3a9,_0x2aad3f=null){const _0x3ad251=[],_0x11a52b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x51c3a9)||(_0x51c3a9=[_0x51c3a9]);for(const _0xfc0cfc of this['getSuggestions']()){if(!_0xfc0cfc['isInContent'])continue;if(_0x2aad3f&&_0xfc0cfc['type']!=_0x2aad3f)continue;let _0x5dbeec=!0x1;for(const _0x19d1f of _0xfc0cfc['getRanges']()){for(const _0x56d6f5 of _0x51c3a9){const _0x39c848=_0x56d6f5['start']['isEqual'](_0x19d1f['end'])||_0x56d6f5['end']['isEqual'](_0x19d1f['start']);if(_0x39c848||_0x56d6f5['getIntersection'](_0x19d1f)){const _0x487e1f=_0x56d6f5['containsRange'](_0x19d1f)&&Ot(this['_model']['schema'],_0x19d1f['start'],_0x56d6f5),_0x2cd468=_0x19d1f['containsRange'](_0x56d6f5)&&Ot(this['_model']['schema'],_0x56d6f5['start'],_0x19d1f);_0x3ad251['push']({'suggestion':_0xfc0cfc,'meta':{'isOwn':_0x11a52b==_0xfc0cfc['author'],'isNextTo':_0x39c848,'isInsideObject':_0x487e1f,'containsRangeInObject':_0x2cd468}}),_0x5dbeec=!0x0;break;}}if(_0x5dbeec)break;}}return _0x3ad251;}['_addSuggestionMarker'](_0x5531ad,_0x1a9264,_0x2d5d40,_0x3b2934,_0x5da893){this['_model']['change'](_0xa41882=>{let _0x4440cc='suggestion:'+_0x5531ad+':'+_0x1a9264+':'+_0x2d5d40;_0x5da893&&(_0x4440cc=_0x4440cc+':'+_0x5da893),_0xa41882['addMarker'](_0x4440cc,{'range':_0x3b2934,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x197975){const _0x541cf9=_0x197975['previous'],_0x5a1795=_0x197975['next'];_0x197975['previous']=null,_0x197975['next']=null,null!=_0x541cf9&&_0x541cf9['next']==_0x197975&&(_0x541cf9['next']=_0x5a1795),null!=_0x5a1795&&_0x5a1795['previous']==_0x197975&&(_0x5a1795['previous']=_0x541cf9),'ready'==this['_suggestionState']['get'](_0x197975)&&(this['_suggestionState']['set'](_0x197975,'removed'),this['fire']('suggestionUnloaded',_0x197975,_0x541cf9,_0x5a1795));}['_setSuggestionData'](_0x3c3337){const _0x7bd63b=_0x3c3337['id'],_0x2cdd2c=this['addSuggestionData'](_0x3c3337);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x465c53=this['editor']['plugins']['get']('PendingActions'),_0x2a3402=_0x2cdd2c['hasComments'],_0x2faff0=_0x2cdd2c['subType']?_0x2cdd2c['type']+':'+_0x2cdd2c['subType']:_0x2cdd2c['type'],_0x20cf87=this['editor']['locale'],_0x47b5e3=_0x465c53['add'](o(_0x20cf87,'PENDING_ACTION_SUGGESTION')),_0x548ddd={'id':_0x7bd63b,'type':_0x2faff0,'hasComments':_0x2a3402,'data':_0x3c3337['data']||null,'originalSuggestionId':_0x3c3337['originalSuggestionId']||null,'attributes':_0x2cdd2c['attributes']};this['_adapter']['addSuggestion'](_0x548ddd)['then'](_0x36ea1e=>{_0x2cdd2c['_saved']=!0x0,_0x465c53['remove'](_0x47b5e3),_0x36ea1e&&_0x36ea1e['createdAt']&&(this['_suggestions']['get'](_0x7bd63b)['createdAt']=_0x36ea1e['createdAt']);})['catch'](_0x559f01=>{throw _0x4639c6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2cdd2c['discard']();}),_0x2cdd2c['stopListening'](),this['_suggestions']['delete'](_0x2cdd2c['id']),this['_suggestionState']['delete'](_0x2cdd2c),_0x559f01;});}return _0x2cdd2c;}['_isBlockAttribute'](_0x566485){return this['_blockAttributeKeys']['has'](_0x566485);}['_updateSuggestionData'](_0x429122,_0x47a31f){const _0x1a2c73=this['editor']['plugins']['get']('PendingActions'),_0x582eb0=this['getSuggestion'](_0x429122);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x582eb0['_saved']){const _0x2da2ea=_0x1a2c73['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x429122,_0x47a31f)['then'](()=>{_0x1a2c73['remove'](_0x2da2ea);});}else _0x582eb0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x429122,_0x47a31f);});}}['_getSuggestionData'](_0x3e76ea){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4ee7fd('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3e76ea);}['_handleNewSuggestionMarker'](_0x4de0be){const {id:_0x364501,type:_0x135c24,subType:_0xabe19b,authorId:_0x4fd53d}=this['_splitMarkerName'](_0x4de0be),_0x51231e=this['_suggestions']['get'](_0x364501)||this['_createSuggestion'](_0x135c24,_0xabe19b,_0x364501,_0x4fd53d,{});switch(this['_checkSuggestionCorrectness'](_0x51231e,_0x135c24,_0xabe19b,_0x4fd53d),this['_suggestionState']['get'](_0x51231e)){case'notReady':this['_getSuggestionData'](_0x364501)['then'](_0x3ba1e2=>{let _0x24b8c7=Promise['resolve']();_0x3ba1e2['hasComments']&&(_0x24b8c7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x364501})),_0x24b8c7['then'](()=>{this['addSuggestionData'](_0x3ba1e2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x51231e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x364501,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x51231e,'ready'),this['fire']('suggestionLoaded',_0x51231e);break;case'ready':this['fire']('suggestionChanged',_0x51231e);}return _0x51231e['addMarkerName'](_0x4de0be),_0x51231e;}['_refreshSuggestionsChain'](_0x213d27){const _0x11065e=Array['from'](_0x213d27),_0x1e78f1=_0x11065e['filter'](_0x587407=>'attribute'==_0x587407['type']);this['_refreshAttributeSuggestionsChain'](_0x1e78f1);const _0x5d1c1d=_0x11065e['filter'](_0x276ca4=>!_0x276ca4['isMultiRange']&&'attribute'!=_0x276ca4['type']),_0x3b0354=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc2bfb5=>!_0xc2bfb5['isMultiRange']&&'attribute'!=_0xc2bfb5['type']),_0x3855f8=_0x3b0354['filter'](_0x205adb=>!_0x213d27['has'](_0x205adb)),_0x530c52=new Map(_0x3b0354['map'](_0x4ecf25=>[_0x4ecf25,this['_suggestionFactory']['getSuggestionCallback'](_0x4ecf25['type'],_0x4ecf25['subType'],'chain')])),_0xc3c749=new Map(_0x3b0354['map'](_0x3dda7f=>[_0x3dda7f,_0x3dda7f['getFirstRange']()])),_0x1bf7cd=new Set(),_0x45e27b=new Set();for(let _0x2addb2=0x0;_0x2addb2<_0x5d1c1d['length'];_0x2addb2++)_0x91b33d(_0x5d1c1d[_0x2addb2],_0x5d1c1d,_0x2addb2+0x1);for(let _0x31fc5a=0x0;_0x31fc5a<_0x5d1c1d['length'];_0x31fc5a++)_0x91b33d(_0x5d1c1d[_0x31fc5a],_0x3855f8,0x0);const _0x55b994=new Set();for(let _0x5560cf=0x0;_0x5560cf<_0x5d1c1d['length'];_0x5560cf++){const _0x304f73=_0x5d1c1d[_0x5560cf];!_0x45e27b['has'](_0x304f73)&&_0x304f73['previous']&&(_0x55b994['add'](_0x304f73['previous']),_0x304f73['previous']['next']===_0x304f73&&(_0x304f73['previous']['next']=null),_0x304f73['previous']=null),!_0x1bf7cd['has'](_0x304f73)&&_0x304f73['next']&&(_0x55b994['add'](_0x304f73['next']),_0x304f73['next']['previous']===_0x304f73&&(_0x304f73['next']['previous']=null),_0x304f73['next']=null);}function _0x91b33d(_0x26a3ad,_0x5d7b14,_0x49437d){for(let _0x47f9d9=_0x49437d;_0x47f9d9<_0x5d7b14['length'];_0x47f9d9++){const _0x3ea18e=_0x2b6ccb(_0x26a3ad,_0x5d7b14[_0x47f9d9]);_0x3ea18e&&(_0x3ea18e[0x0]['next']=_0x3ea18e[0x1],_0x3ea18e[0x1]['previous']=_0x3ea18e[0x0],_0x1bf7cd['add'](_0x3ea18e[0x0]),_0x45e27b['add'](_0x3ea18e[0x1]));}}function _0x2b6ccb(_0x3ac6fb,_0x4eec77){if(_0x3ac6fb['author']['id']!==_0x4eec77['author']['id'])return null;const _0x56a0e0=_0x530c52['get'](_0x3ac6fb)(_0x3ac6fb,_0x4eec77,_0xc3c749['get'](_0x3ac6fb),_0xc3c749['get'](_0x4eec77));if(!_0x56a0e0)return null;return _0x530c52['get'](_0x4eec77)(_0x3ac6fb,_0x4eec77,_0xc3c749['get'](_0x3ac6fb),_0xc3c749['get'](_0x4eec77))?_0x56a0e0[0x1]['commentThread']&&_0x56a0e0[0x1]['commentThread']['length']?null:_0x56a0e0:null;}_0x55b994['size']&&this['_refreshSuggestionsChain'](_0x55b994);}['_refreshAttributeSuggestionsChain'](_0x1e07ce){if(0x0==_0x1e07ce['length'])return;const _0x243297=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45e8d5=>'attribute'==_0x45e8d5['type']&&_0x45e8d5['_isDataLoaded']),_0x4a985c=[],_0x44cfb7=new Map();for(const _0x53e889 of _0x243297){const _0x16d887=_0x4bbe82(_0x53e889['attributes']);_0x44cfb7['has'](_0x16d887)||(_0x44cfb7['set'](_0x16d887,_0x4a985c['length']),_0x4a985c['push']([]));const _0x5cb38c=_0x44cfb7['get'](_0x16d887);_0x4a985c[_0x5cb38c]['push'](_0x53e889);}!(function(){_0x4a985c['sort']((_0x175656,_0xd43869)=>{const _0x543a07=_0x175656[0x0]['createdAt'],_0x118df5=_0xd43869[0x0]['createdAt'];return _0x543a07==_0x118df5?_0x175656[0x0]['attributes']['groupId']<_0xd43869[0x0]['attributes']['groupId']?-0x1:0x1:_0x543a07<_0x118df5?-0x1:0x1;});for(const _0x1f445a of _0x4a985c)_0x1f445a['sort']((_0x50bf98,_0x20120e)=>_0x50bf98['id']<_0x20120e['id']?-0x1:0x1);}());for(let _0x227226=0x0;_0x227226<_0x4a985c['length'];_0x227226++){if(0x0==_0x4a985c[_0x227226]['length'])continue;const _0x942332=[];for(let _0x27673f=_0x227226+0x1;_0x27673f<_0x4a985c['length'];_0x27673f++)0x0!=_0x4a985c[_0x27673f]['length']&&_0x151123(_0x4a985c[_0x227226],_0x4a985c[_0x27673f])&&_0x942332['push'](_0x27673f);for(const _0x3e31ab of _0x942332)_0x4a985c[_0x227226]=_0x4a985c[_0x227226]['concat'](_0x4a985c[_0x3e31ab]),_0x4a985c[_0x3e31ab]=[];}for(const _0x188d13 of _0x4a985c)for(let _0xf83b=0x0;_0xf83b<_0x188d13['length'];_0xf83b++){const _0x1f7a62=_0x188d13[_0xf83b+0x1]||null;_0x188d13[_0xf83b]['next']!==_0x1f7a62&&(_0x188d13[_0xf83b]['next']=_0x1f7a62);}for(const _0x4fbe09 of _0x4a985c)for(let _0x4fa6df=0x0;_0x4fa6df<_0x4fbe09['length'];_0x4fa6df++){const _0xffbc5=_0x4fbe09[_0x4fa6df-0x1]||null;_0x4fbe09[_0x4fa6df]['previous']!==_0xffbc5&&(_0x4fbe09[_0x4fa6df]['previous']=_0xffbc5);}function _0x151123(_0x2160b7,_0x5bedd7){if(_0x2160b7[0x0]['attributes']['groupId']!==_0x5bedd7[0x0]['attributes']['groupId']&&_0x2160b7[0x0]['author']!==_0x5bedd7[0x0]['author'])return!0x1;if(!function(_0x188900,_0xe783c6){if(!_0x188900['hasComments']&&!_0xe783c6['hasComments'])return!0x0;if(_0x188900['hasComments']&&_0xe783c6['hasComments'])return!0x1;if(_0x188900['hasComments']&&_0xe783c6['createdAt']<_0x188900['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xe783c6['hasComments']&&_0x188900['createdAt']<_0xe783c6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2160b7[0x0],_0x5bedd7[0x0]))return!0x1;const _0x444f0e=Tt(_0x2160b7[0x0]['attributes'],'groupId'),_0x31cbfe=Tt(_0x5bedd7[0x0]['attributes'],'groupId');if(!_0x11af30(_0x444f0e,_0x31cbfe))return!0x1;return!!_0x2160b7['every'](_0xb5c1c6=>_0x5bedd7['some'](_0x180aa9=>_0xb5c1c6['getFirstRange']()['isEqual'](_0x180aa9['getFirstRange']())))&&_0x5bedd7['every'](_0x21c423=>_0x2160b7['some'](_0x14524b=>_0x21c423['getFirstRange']()['isEqual'](_0x14524b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x42af53){const _0x1be0e7=Array['from'](_0x42af53),_0x43968b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5535c2=_0x43968b['filter'](_0x1dde22=>!_0x42af53['has'](_0x1dde22)),_0x54e3d7=new Map(_0x1be0e7['map'](_0x5078f6=>[_0x5078f6,this['_suggestionFactory']['getSuggestionCallback'](_0x5078f6['type'],_0x5078f6['subType'],'join')])),_0xf371ff=new Map(_0x43968b['map'](_0x4d1d13=>[_0x4d1d13,_0x4d1d13['getRanges']()]));for(let _0x39ee57=0x0;_0x39ee57<_0x1be0e7['length'];_0x39ee57++){if(_0x2914d6(this,_0x1be0e7[_0x39ee57],_0x1be0e7,_0x39ee57+0x1))return!0x0;}for(let _0x28ccdd=0x0;_0x28ccdd<_0x1be0e7['length'];_0x28ccdd++){if(_0x2914d6(this,_0x1be0e7[_0x28ccdd],_0x5535c2,0x0))return!0x0;}return!0x1;function _0x2914d6(_0x4b9b35,_0x33f7a3,_0x13a770,_0x875bbe){for(let _0x2bca5d=_0x875bbe;_0x2bca5d<_0x13a770['length'];_0x2bca5d++){const _0x46902a=_0x13a770[_0x2bca5d];if(_0x46902a['type']!==_0x33f7a3['type']||_0x46902a['author']['id']!==_0x33f7a3['author']['id']||_0x46902a['subType']!==_0x33f7a3['subType'])continue;if(!Jt(_0x33f7a3,_0x46902a))continue;if('attribute'==_0x33f7a3['type']&&_0x33f7a3['data']['oldValue']!=_0x46902a['data']['oldValue'])continue;if('attribute'==_0x33f7a3['type']&&_0x4b9b35['_isBlockAttribute'](_0x33f7a3['data']['key']))continue;if('formatBlock'==_0x33f7a3['type']){const _0x43aa6a=_0x4b9b35['editor']['model'],_0x5e424a=_0x33f7a3['getContainedElement']();if(_0x5e424a&&(_0x43aa6a['schema']['isObject'](_0x5e424a)||_0x43aa6a['schema']['isLimit'](_0x5e424a)))continue;}const _0x4d2261=_0x54e3d7['get'](_0x33f7a3),_0x84905d=_0xf371ff['get'](_0x33f7a3),_0x95ed52=_0xf371ff['get'](_0x46902a),_0x4e5e93=_0x33f7a3['commentThread']&&_0x33f7a3['commentThread']['length'],_0x25ba30=_0x46902a['commentThread']&&_0x46902a['commentThread']['length'];if(!_0x4e5e93&&_0x4d2261(_0x95ed52,_0x84905d))return _0x4b9b35['_joinSuggestions'](_0x46902a,_0x33f7a3),_0xf371ff['delete'](_0x33f7a3),!0x0;if(!_0x25ba30&&_0x4d2261(_0x84905d,_0x95ed52))return _0x4b9b35['_joinSuggestions'](_0x33f7a3,_0x46902a),_0xf371ff['delete'](_0x46902a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x46bc8b,_0xbaebe){if(_0x46bc8b['isMultiRange']){for(const _0x198216 of _0xbaebe['getRanges']())_0x46bc8b['addRange'](_0x198216);}else{const _0x2a85d0=_0xbaebe['getFirstRange']()['end'];this['_setSuggestionRange'](_0x46bc8b,this['_model']['createRange'](_0x46bc8b['getFirstRange']()['start'],_0x2a85d0));}_0xbaebe['removeMarkers']();}['_getMarkerAnnouncementText'](_0x327275,_0x325515,_0x8a40d5){const _0x61f472=_0x327275['startsWith']('format')||_0x327275['startsWith']('attribute')?'FORMATTING':_0x327275['toUpperCase']();return o(this['editor']['locale'],_0x325515+'_'+_0x61f472+'_SUGGESTION_ANNOUNCEMENT',_0x8a40d5);}['_initAriaMarkerChangeAnnouncements'](){const _0x19c706=this['editor'];if(!_0x19c706['ui'])return;const {ariaLiveAnnouncer:_0x4fa14e}=_0x19c706['ui'];_0x4f11ef(this['_model'],({left:_0x1c5ede,entered:_0x5b6380})=>{for(const _0x319506 of _0x1c5ede){const {group:_0x346dd8,type:_0x2419bf}=this['_splitMarkerName'](_0x319506['name']);if('suggestion'===_0x346dd8){_0x4fa14e['announce'](this['_getMarkerAnnouncementText'](_0x2419bf,'LEAVE'));break;}}for(const _0x16477e of _0x5b6380){const {group:_0x4b2885,type:_0x416860}=this['_splitMarkerName'](_0x16477e['name']);if('suggestion'===_0x4b2885){_0x4fa14e['announce'](this['_getMarkerAnnouncementText'](_0x416860,'ENTER',_0x1ca498(_0x2e5bcc)));break;}}});}['_processAttributeChanges'](_0x228f2b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4d92cb=this['editor'],_0x4a6082=_0x4d92cb['model']['document']['differ']['getChanges']();if(0x0==_0x4a6082['length'])return!0x1;const _0x521628=[],_0x9591ad=_0x4a6082['filter'](_0x2849bd=>'attribute'==_0x2849bd['type']),_0x48afd6=_0x4a6082['filter'](_0x43b9a4=>'insert'==_0x43b9a4['type']&&'$text'!=_0x43b9a4['name']),_0x502225=_0x4a6082['filter'](_0x316847=>'remove'==_0x316847['type']&&'$text'!=_0x316847['name']);for(const _0x74117f of _0x9591ad)_0x521628['push']({'key':_0x74117f['attributeKey'],'newValue':_0x74117f['attributeNewValue'],'oldValue':_0x74117f['attributeOldValue'],'range':Pt(_0x74117f['range'],_0x4d92cb['model'])});for(const _0x3edccd of _0x48afd6){const _0x7a4278=_0x502225['find'](_0x2b6dfb=>_0x2b6dfb['position']['isEqual'](_0x3edccd['position']));_0x7a4278&&_0x521628['push']({'key':m,'newValue':_0x3edccd['name'],'oldValue':_0x7a4278['name'],'range':_0x4d92cb['model']['createRangeOn'](_0x3edccd['position']['nodeAfter'])});}return 0x0!=_0x521628['length']&&this['_reduceExistingSuggestions'](_0x228f2b,_0x521628);}['_processAttributeSuggestions'](_0xf8243){let _0xb09222=!0x1;const _0x2503a2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x252a29=>_0x252a29['data']['newRange']&&_0x252a29['name']['startsWith']('suggestion:attribute:'));for(const _0x1e6958 of _0x2503a2){const {subType:_0x4bc2b3,id:_0x212a5a}=this['_splitMarkerName'](_0x1e6958['name']),_0x5a67ce=_0x4bc2b3['split']('|')[0x0];for(const _0x5935af of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5935af['id']!=_0x212a5a&&'attribute'==_0x5935af['type']&&_0x5935af['data']&&_0x5935af['data']['key']==_0x5a67ce&&_0x5935af['getFirstRange']()['isIntersecting'](_0x1e6958['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5935af,_0x1e6958['data']['newRange'],_0xf8243),_0xb09222=!0x0);}return _0xb09222;}['_recordAttributeChanges'](_0xaa83fa){this['_recordAttributeSuggestions']=!0x0,_0xaa83fa();}['_isRegisteredAttribute'](_0x167be6){const _0x135cb3=this['_isBlockAttribute'](_0x167be6),_0xfc61ad=this['_inlineAttributeKeys']['has'](_0x167be6);return _0x135cb3||_0xfc61ad;}['_reduceExistingSuggestions'](_0x5297b6,_0x47a5e1){if(0x0==_0x47a5e1['length'])return!0x1;let _0x513ce1=!0x1;for(const _0x238ef0 of _0x47a5e1){const _0x25fea8=this['_findSuggestions'](_0x238ef0['range'],'attribute')['filter'](_0x1e0926=>!_0x1e0926['meta']['isNextTo'])['map'](_0x14ba5c=>_0x14ba5c['suggestion']),_0x3e820c=_0x4bbe82({'newValue':_0x238ef0['newValue']});_0x25fea8['filter'](_0x3796be=>{const [_0x3ea1e9,_0x48dc25]=_0x3796be['subType']['split']('|');return _0x3ea1e9==_0x238ef0['key']&&_0x48dc25!=_0x3e820c;})['forEach'](_0x599435=>{this['_reduceSuggestionAttributeRange'](_0x599435,_0x238ef0['range'],_0x5297b6),_0x513ce1=!0x0;});}return _0x513ce1;}['_reduceSuggestionAttributeRange'](_0x323f4b,_0x527b07,_0x49fc63){const _0x57cb70=_0x323f4b['getFirstRange']()['getDifference'](_0x527b07);0x0!==_0x57cb70['length']?0x1!==_0x57cb70['length']?this['_breakSuggestionMarker'](_0x323f4b,_0x527b07['start'],_0x527b07['end']):this['_setSuggestionRange'](_0x323f4b,_0x57cb70[0x0]):_0x49fc63['removeMarker'](_0x323f4b['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4ba9f8){this['_editor']=_0x4ba9f8,this['_model']=_0x4ba9f8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2298a8,_0x274a6b,_0x41a6a1,_0x38081a,_0xaa0d4d,_0x46b9c4){return new u(this['_model'],{'type':_0x2298a8,'subType':_0x274a6b,'id':_0x41a6a1,'author':_0x38081a,'creator':_0x38081a,'attributes':_0xaa0d4d,'onAttributesChange':_0x46b9c4,'onAccept':(..._0x526a07)=>this['getSuggestionCallback'](_0x2298a8,_0x274a6b,'accept')(..._0x526a07),'onDiscard':(..._0x57431c)=>this['getSuggestionCallback'](_0x2298a8,_0x274a6b,'discard')(..._0x57431c)});}['registerCustomCallback'](_0x4e548f,_0x4905d2,_0x344f49,_0x3d9930){const _0xb16781=_0x4e548f+':'+_0x4905d2+':'+_0x344f49;this['_customCallbacks']['set'](_0xb16781,_0x3d9930);}['getSuggestionCallback'](_0x334e17,_0x28a020,_0xa9b4b5){const _0x1a99d8=_0x334e17+':'+_0x28a020+':'+_0xa9b4b5;return this['_customCallbacks']['get'](_0x1a99d8)||this['_defaultCallbacks']['get'](_0x334e17+':'+_0xa9b4b5);}['_registerDefaultCallbacks'](){const _0x58a252=()=>!0x1,_0x2a8cbf=_0x1b0a3a=>{_0x1b0a3a['sort']((_0x5da7d6,_0x5949d2)=>_0x5da7d6['start']['isBefore'](_0x5949d2['start'])?0x1:-0x1),this['_model']['change'](_0x2c0f31=>{for(const _0xa208fa of _0x1b0a3a){let _0xd93cd7;_0xd93cd7=_0xa208fa['end']['isAtEnd']&&_0xa208fa['end']['parent']==_0xa208fa['start']['nodeAfter']?_0x2c0f31['createSelection'](_0xa208fa['start']['nodeAfter'],'on'):_0x2c0f31['createSelection'](_0xa208fa),this['_model']['deleteContent'](_0xd93cd7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x259b43=(_0x253da2,_0x399221)=>{_0x399221&&this['_model']['change'](_0x444f8b=>{const {commandName:_0x1474c2,commandParams:_0x351fda=[]}=_0x399221,_0x14979b=_0x253da2['map'](_0x18d2e4=>(Vt(_0x18d2e4)&&(_0x18d2e4=this['_model']['createRange'](_0x18d2e4['end'])),_0x18d2e4))['filter'](_0x5b8694=>'$graveyard'!==_0x5b8694['root']['rootName']);if(_0x14979b['length']<0x1)return;const _0x27d2fb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x49ce25=>_0x1ac7bd['fromRange'](_0x49ce25));_0x444f8b['setSelection'](_0x14979b);for(const _0x3a6ab4 of this['_editor']['commands']['commands']())_0x3a6ab4['refresh']();_0x351fda['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1474c2,..._0x351fda);const _0x492598=_0x27d2fb['filter'](_0x246636=>'$graveyard'!=_0x246636['root']['rootName']);_0x492598['length']>0x0&&_0x444f8b['setSelection'](_0x492598);for(const _0x4e9e7a of _0x27d2fb)_0x4e9e7a['detach']();});},_0x27be88=(_0x26f64d,_0x4700fd)=>0x1==_0x26f64d['length']&&0x1==_0x4700fd['length']&&_0x26f64d[0x0]['end']['isEqual'](_0x4700fd[0x0]['start']),_0x24d5a0=(_0x2bf9fc,_0x24b0d4,_0x267ed8,_0xf073d)=>Ht(_0x2bf9fc,_0x24b0d4,_0x267ed8,_0xf073d,this['_model'])?[_0x2bf9fc,_0x24b0d4]:Ht(_0x24b0d4,_0x2bf9fc,_0xf073d,_0x267ed8,this['_model'])?[_0x24b0d4,_0x2bf9fc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x58a252),this['_defaultCallbacks']['set']('insertion:discard',_0x2a8cbf),this['_defaultCallbacks']['set']('insertion:join',_0x27be88),this['_defaultCallbacks']['set']('insertion:chain',_0x24d5a0),this['_defaultCallbacks']['set']('deletion:accept',_0x2a8cbf),this['_defaultCallbacks']['set']('deletion:discard',_0x58a252),this['_defaultCallbacks']['set']('deletion:join',_0x27be88),this['_defaultCallbacks']['set']('deletion:chain',_0x24d5a0),this['_defaultCallbacks']['set']('formatInline:accept',_0x259b43),this['_defaultCallbacks']['set']('formatInline:discard',_0x58a252),this['_defaultCallbacks']['set']('formatInline:join',_0x27be88),this['_defaultCallbacks']['set']('formatInline:chain',_0x58a252),this['_defaultCallbacks']['set']('formatBlock:accept',_0x259b43),this['_defaultCallbacks']['set']('formatBlock:discard',_0x58a252),this['_defaultCallbacks']['set']('formatBlock:join',_0x27be88),this['_defaultCallbacks']['set']('formatBlock:chain',_0x58a252),this['_defaultCallbacks']['set']('attribute:accept',_0x58a252),this['_defaultCallbacks']['set']('attribute:discard',(_0x5d1266,_0x1ce3e7)=>{if(!_0x1ce3e7)return;const _0x3ab4fb=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xd39420=>{if(_0x1ce3e7['key']==m)for(const _0x546d0c of _0x5d1266){const _0x1931d3=_0x546d0c['start']['nodeAfter'],_0x1c44fa=_0x1ce3e7['oldValue'];_0xd39420['rename'](_0x1931d3,_0x1c44fa);}else{if(_0x3ab4fb['_isBlockAttribute'](_0x1ce3e7['key'])){for(const _0x1ea7ab of _0x5d1266)void 0x0!==_0x1ce3e7['oldValue']?_0xd39420['setAttribute'](_0x1ce3e7['key'],_0x1ce3e7['oldValue'],_0x1ea7ab['start']['nodeAfter']):_0xd39420['removeAttribute'](_0x1ce3e7['key'],_0x1ea7ab['start']['nodeAfter']);}else{for(const _0x35052b of _0x5d1266)_0x1ce3e7['oldValue']?_0xd39420['setAttribute'](_0x1ce3e7['key'],_0x1ce3e7['oldValue'],_0x35052b):_0xd39420['removeAttribute'](_0x1ce3e7['key'],_0x35052b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x27be88);}}function Ot(_0x504e7c,_0x4a3c76,_0xa61175){for(const _0x4410da of _0x4a3c76['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4410da['root']==_0x4410da)return!0x1;if(!_0xa61175['containsItem'](_0x4410da))return!0x1;if(_0x504e7c['isObject'](_0x4410da)||_0x504e7c['isLimit'](_0x4410da))return!0x0;}return!0x1;}function Vt(_0x273687){return _0x273687['end']['parent']==_0x273687['start']['nodeAfter']&&_0x273687['end']['isAtStart'];}function Ut(_0x32e960,_0x525055,_0x4ddfba,_0x388a26){const _0x59a53a=_0x18bef3=>!_0x18bef3['item']['is']('$textProxy')&&!_0x388a26['isObject'](_0x18bef3['item']),_0x1e95c2=_0x32e960['start']['getLastMatchingPosition'](_0x59a53a),_0x45e81b=_0x32e960['end']['getLastMatchingPosition'](_0x59a53a,{'direction':'backward'});return(!_0x32e960['start']['isEqual'](_0x1e95c2)||!_0x32e960['end']['isEqual'](_0x45e81b))&&(_0x1e95c2['isBefore'](_0x45e81b)?_0x4ddfba['updateMarker'](_0x525055,{'range':_0x4ddfba['createRange'](_0x1e95c2,_0x45e81b)}):_0x4ddfba['removeMarker'](_0x525055),!0x0);}function Gt(_0x3adaf2){return _0x4bbe82(_0x3adaf2);}function Ft(_0x4a3101){const _0x4a7f62=_0x4a3101['start']['nodeAfter'];return _0x4a7f62&&_0x4a7f62['is']('element');}function Pt(_0x3deef7,_0x438bb1){return null==_0x3deef7['end']['nodeBefore']&&_0x3deef7['end']['parent']==_0x3deef7['start']['nodeAfter']?Lt(_0x3deef7['start']['nodeAfter'],_0x438bb1):_0x3deef7;}function Lt(_0x5f4645,_0x4b4b33){const _0xe9c9a=_0x4b4b33['schema']['isObject'](_0x5f4645)||_0x4b4b33['schema']['isSelectable'](_0x5f4645);return _0x4b4b33['createRange'](_0x4b4b33['createPositionAt'](_0x5f4645,'before'),_0xe9c9a?_0x4b4b33['createPositionAfter'](_0x5f4645):_0x4b4b33['createPositionAt'](_0x5f4645,'end'));}function Ht(_0x55508e,_0x430175,_0x104a13,_0x2d9b18,_0xfed64e){if(_0x55508e['next'])return!0x1;if(!Jt(_0x55508e,_0x430175))return!0x1;if(_0x104a13['end']['isEqual'](_0x2d9b18['start']))return!0x0;if(_0x55508e['type']!=_0x430175['type'])return!0x1;if(!_0x104a13['end']['isTouching'](_0x2d9b18['start']))return!0x1;const _0x3a2ca3=_0xfed64e['createRange'](_0x104a13['end'],_0x2d9b18['start'])['getWalker']();for(const _0xe2e11a of _0x3a2ca3)if(['elementStart','elementEnd']['includes'](_0xe2e11a['type'])&&_0xfed64e['schema']['isLimit'](_0xe2e11a['item']))return!0x1;return!0x0;}function Jt(_0x252f35,_0xb79ac0){if(!_0x252f35['_isDataLoaded']||!_0xb79ac0['_isDataLoaded'])return!0x1;const _0x48a509=new Set(Object['keys'](_0x252f35['attributes'])),_0x55809a=new Set(Object['keys'](_0xb79ac0['attributes']));if(_0x48a509['delete']('groupId'),_0x55809a['delete']('groupId'),0x0==_0x48a509['size']&&0x0==_0x55809a['size'])return!0x0;if(_0x48a509['size']!=_0x55809a['size'])return!0x1;const _0x169f38={..._0x252f35['attributes']},_0x87a57f={..._0xb79ac0['attributes']};return delete _0x169f38['groupId'],delete _0x87a57f['groupId'],JSON['stringify'](_0x169f38)==JSON['stringify'](_0x87a57f);}function qt(_0x5f135b,_0x56c339){const _0x4402e0=zt(_0x5f135b['attributes']),_0x19d001=zt(_0x56c339);if(!_0x5f135b['_isDataLoaded'])return!0x1;for(const _0x3143e4 of Object['keys'](_0x19d001))if(!_0x11af30(_0x4402e0[_0x3143e4],_0x19d001[_0x3143e4]))return!0x1;return!0x0;}function zt(_0x67a1d5){const _0x4a4d28=Object['assign']({},_0x67a1d5);return delete _0x4a4d28['skipNestingCheck'],delete _0x4a4d28['tablePasteChainId'],_0x4a4d28;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x1ca92d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x106a7e,_0x35078e,_0x48cce7,_0xdfcf59){super(),this['model']=_0x35078e,this['view']=_0x48cce7,this['commentThreadController']=_0xdfcf59,this['_editor']=_0x106a7e,this['_acceptCommand']=_0x106a7e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x106a7e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x277c80,_0x20958a)=>_0x277c80||_0x20958a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x11400f=>_0x11400f&&this['_editor']['model']['canEditAt'](_0x35078e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xd09068=>_0xd09068&&this['_editor']['model']['canEditAt'](_0x35078e['getRanges']())),this['_pendingAction']=null,_0x48cce7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x48cce7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x48cce7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x48cce7,'change:isDirty',()=>{_0x48cce7['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 _0x231a46=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x231a46);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0xa93036{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1dd139,_0x54d8c9,_0x43e0be,_0x3a0907){super(_0x1dd139),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2f9985(_0x1dd139,o(_0x1dd139,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x54d8c9['authoredAt']),this['bind']('authoredAt')['to'](_0x54d8c9),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',_0x54d8c9,'authoredAt',this,'descriptionParts',(_0x26480c,_0x4cfe9a,_0x551289)=>{const _0x48130d=_0x551289['map'](_0x1dec1f=>ls(_0x1dec1f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x26480c-0x1,_0x54d8c9['author']['name'],_0x4cfe9a?_0x3a0907['formatDateTime'](_0x4cfe9a):'',new DOMParser()['parseFromString'](_0x48130d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3a64bc(),this['focusTracker']=new _0x5423cf(),this['keystrokes']=new _0x4ec4fb(),this['focusCycler']=new _0x261d2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2c460b=>_0x2c460b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x54d8c9,this['_localUser']=_0x43e0be,this['_config']=_0x3a0907,_0x3a0907['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3e3d09(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x338ebc}=this['_config'];this['commentsListView']=new _0x338ebc(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',_0x3833ef=>_0x3833ef+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4e2d61,_0x34ad54)=>_0x4e2d61||!!_0x34ad54);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xaf9fe1}=this['_config'],_0x549fc1=new _0xaf9fe1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x13a2d9=_0x549fc1['commentInputView'];return _0x549fc1['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x13a2d9,'value',(_0x98d1f8,_0x5e92e3,_0x2f6eaa)=>!!_0x2f6eaa||_0x98d1f8&&!_0x5e92e3),_0x13a2d9['on']('submit',(_0x554d31,_0x32da81)=>{this['fire']('addComment',_0x32da81),_0x13a2d9['editor']['setData']('');}),_0x13a2d9['on']('cancel',()=>this['focus']()),_0x13a2d9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x549fc1;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x267ca9,_0x132fef,_0x49972a,_0x33181d){super(_0x267ca9,_0x132fef,_0x49972a,_0x33181d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5abdc1=>_0x5abdc1&&_0x5abdc1[0x0]?_0x5abdc1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x45de27,_0x3c623e)=>{let _0x1d0f90='';for(const _0x1a022c of _0x45de27)_0x1d0f90+='<p>'+ls(_0x1a022c['content'],_0x1a022c['color'])+'</p>';return _0x3c623e?_0x1d0f90:_0x260589(_0x1d0f90,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x33181d['SuggestionView'](_0x267ca9,_0x132fef,{'formatDateTime':_0x33181d['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 _0x1f6955=this['bindTemplate'],_0x4c72ff=[this['suggestionView']];return this['commentsListView']&&_0x4c72ff['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4c72ff['push'](this['commentThreadInputView']),_0x4c72ff['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1f6955['if']('isActive','ck-suggestion-wrapper--active'),_0x1f6955['to']('type',_0x34eef8=>'ck-suggestion-'+_0x34eef8),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':_0x1f6955['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4c72ff};}['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 ce extends _0xa93036{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xa65ddc,_0x50f623,_0x381185){super(_0xa65ddc),this['_model']=_0x50f623,this['_config']=_0x381185,this['set']('description',''),this['bind']('authoredAt')['to'](_0x50f623),this['acceptButton']=this['_createButton'](o(_0xa65ddc,'Accept\x20suggestion'),_0x1d5681['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xa65ddc,'Discard\x20suggestion'),_0x1d5681['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xd53404(_0xa65ddc,_0x50f623['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3a64bc([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5423cf(),this['keystrokes']=new _0x4ec4fb(),this['focusCycler']=new _0x261d2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4f71f3=>_0x4f71f3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x50b55b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x50b55b['innerHTML']=this['description'],this['on']('change:description',(_0x297ec5,_0x2de049,_0x2c849c)=>{_0x50b55b['innerHTML']=_0x2c849c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5224f0=this['bindTemplate'],_0x342cad=[{'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']}},{'tag':'time','attributes':{'datetime':_0x5224f0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5224f0['to']('authoredAt',_0x4461cb=>this['_config']['formatDateTime'](_0x4461cb))}]}]},{'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']&&_0x342cad['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':_0x342cad}]};}['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'](_0x2ff8ad,_0x1fbd88,_0x193c53,_0x524e45,_0x589e59){const _0x216c06=new _0x55410d(this['locale']);return _0x216c06['set']({'label':_0x2ff8ad,'icon':_0x1fbd88,'tooltip':!0x0,'tooltipPosition':_0x589e59}),_0x216c06['extendTemplate']({'attributes':{'class':_0x193c53}}),_0x216c06['on']('execute',()=>{this['fire'](_0x524e45,this['_model']['id']);}),_0x216c06;}['_setupKeyboardNavigation'](){const _0x26f0ae=this['element'];this['keystrokes']['listenTo'](_0x26f0ae);for(const _0x4fd66c of this['focusables'])this['focusTracker']['add'](_0x4fd66c['element']),this['keystrokes']['listenTo'](_0x4fd66c['element']);this['keystrokes']['set']('enter',(_0x8ab4ec,_0x45521c)=>{_0x26f0ae===_0x8ab4ec['target']&&(this['focusCycler']['focusFirst'](),_0x45521c());}),this['keystrokes']['set']('esc',(_0x5169f4,_0x164b99)=>{_0x26f0ae!==_0x5169f4['target']&&(this['focus'](),_0x164b99());});}}var he='<!--\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-2024,\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 _0x58a0bc{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5983d1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1bb86d){super(_0x1bb86d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x15a466=this['editor']['config'];_0x15a466['define']('trackChanges.SuggestionThreadView',re),_0x15a466['define']('trackChanges.SuggestionView',ce),_0x15a466['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x15a466['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x187673,_0x480658){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xe83021,_0x4d3c34]of this['_handleControllerBuffer']){const _0x271995=this['_suggestionToController']['has'](_0xe83021);_0x271995||_0x4d3c34?_0x271995&&_0x4d3c34&&this['_destroyController'](_0xe83021):this['_initializeController'](_0xe83021);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x187673,_0x480658);}['init'](){const _0x5e12f7=this['editor'],_0x2d7d5f=_0x5e12f7['plugins']['get']('TrackChangesEditing'),_0x42509f=_0x5e12f7['plugins']['get']('Annotations'),_0x3f419e=_0x5e12f7['plugins']['get']('EditorAnnotations'),_0x35af6d=_0x5e12f7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3f419e['addSourceCollector'](()=>{const _0x22d4a2=[];for(const [_0x2631d8,_0x1fa5bb]of Array['from'](this['_suggestionToController'])){const _0xa941a2=_0x2631d8['getAllAdjacentSuggestions'](),_0x441b71=[];for(const _0x4644b9 of _0xa941a2){if(!_0x4644b9['isInContent'])continue;if(_0x4644b9['isMultiRange']){_0x441b71['push'](..._0x4644b9['getRanges']());continue;}const _0x54517c=_0x4644b9['getFirstRange']();if(_0x441b71['length']>0x0){const _0x24bbfa=_0x441b71[0x0]['getJoined'](_0x54517c);if(_0x24bbfa){_0x441b71[0x0]=_0x24bbfa;continue;}}_0x441b71['push'](_0x54517c);}_0x22d4a2['push']([_0x1fa5bb['view'],_0x441b71]);}return _0x22d4a2;}),this['listenTo'](_0x2d7d5f,'suggestionLoaded',(_0x44a26a,_0x2d0151)=>{this['listenTo'](_0x2d0151,'change:previous',(_0x227f7d,_0x1d0cc4,_0x159bb7,_0x29b9af)=>{_0x2d0151['isInContent']&&(null==_0x159bb7?(this['_updateController'](_0x29b9af['head']),this['_handleSuggestionControllerDelayed'](_0x2d0151,!0x1)):(this['_updateController'](_0x159bb7['head']),null==_0x29b9af&&this['_handleSuggestionControllerDelayed'](_0x2d0151,!0x0)));}),null!==_0x2d0151['previous']?this['_updateController'](_0x2d0151['head']):this['_handleSuggestionControllerDelayed'](_0x2d0151,!0x1);}),this['listenTo'](_0x2d7d5f,'suggestionUnloaded',(_0x2f208f,_0x395203,_0x386cab)=>{this['stopListening'](_0x395203,'change:previous'),this['_handleControllerBuffer']['delete'](_0x395203),this['_suggestionToController']['has'](_0x395203)&&this['_destroyController'](_0x395203),_0x386cab&&this['_updateController'](_0x386cab['head']);}),this['listenTo'](_0x2d7d5f,'suggestionChanged',(_0x308139,_0x915d95)=>{this['_updateController'](_0x915d95);}),this['listenTo'](_0x42509f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x35af6d,'addComment',(_0x361713,{threadId:_0x17d410,isFromAdapter:_0x2551b1})=>{if(_0x2551b1||!_0x2d7d5f['hasSuggestion'](_0x17d410))return;const _0x3089d8=_0x2d7d5f['getSuggestion'](_0x17d410);this['_suggestionToController']['get'](_0x3089d8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x40d064=this['editor']['plugins']['get']('Annotations'),_0x231616=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c903f=Array['from'](_0x40d064['activeAnnotations'],_0x167d4b=>_0x167d4b['innerView'])['filter'](_0x5123cb=>this['_viewToController']['has'](_0x5123cb)),_0xc51385=[];for(const _0x435c1c of _0x1c903f){const _0x1552c8=this['_viewToController']['get'](_0x435c1c)['model']['getAllAdjacentSuggestions']();_0xc51385['push'](..._0x1552c8['reduce']((_0x18f3f,_0x39719c)=>[..._0x18f3f,..._0x39719c['getMarkerNames']()],[]));}_0x231616['activeMarkers']=_0xc51385;}['_addUIComponentsToFactory'](){const _0x5bd407=this['editor'],_0x413514=_0x5bd407['locale'],_0x2582fb=o(_0x413514,'Track\x20changes'),_0x2b9063=new Wt([{'type':'switchbutton','model':new _0x590c00({'withText':!0x0,'isToggleable':!0x0,'label':_0x2582fb,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x590c00({'withText':!0x0,'label':o(_0x413514,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x551a0a of _0x2b9063)if(me(_0x551a0a)){const _0xe3359d=_0x5bd407['commands']['get'](_0x551a0a['model']['commandName']);_0x551a0a['model']['bind']('isOn','isEnabled')['to'](_0xe3359d,'value','isEnabled');}_0x5bd407['ui']['componentFactory']['add']('trackChanges',_0x2e83d6=>this['_createToolbarButton'](_0x2e83d6,_0x2b9063,_0x2582fb)),_0x5bd407['ui']['componentFactory']['add']('menuBar:trackChanges',_0x503e6d=>this['_createMenuBarMenu'](_0x503e6d,_0x2b9063,_0x2582fb));}['_createToolbarButton'](_0x130431,_0x583121,_0x243eac){const _0x55b241=Qt(_0x130431,_0x530bd8),_0x8ceea3=this['editor']['commands']['get']('trackChanges');_0x55b241['buttonView']['set']({'tooltip':_0x243eac,'label':_0x243eac,'icon':he}),_0x55b241['buttonView']['bind']('isOn')['to'](_0x8ceea3,'value'),_0x55b241['buttonView']['on']('execute',()=>{_0x8ceea3['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x55b241,_0x583121,{'role':'menu'});const _0x124d61=[];for(const _0x16df26 of _0x583121)me(_0x16df26)&&_0x124d61['push'](this['editor']['commands']['get'](_0x16df26['model']['commandName']));const _0x11e5ff=_0x55b241['buttonView'];return _0x11e5ff['actionView']['unbind']('isEnabled'),_0x11e5ff['arrowView']['unbind']('isEnabled'),_0x11e5ff['actionView']['bind']('isEnabled')['to'](_0x8ceea3,'isEnabled'),_0x11e5ff['arrowView']['bind']('isEnabled')['toMany'](_0x124d61,'isEnabled',(..._0x294fee)=>_0x294fee['some'](_0x176f5a=>_0x176f5a)),_0x55b241['on']('execute',_0x527e5f=>{this['editor']['execute'](_0x527e5f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x55b241;}['_createMenuBarMenu'](_0x276bb4,_0x2805c9,_0x380515){const _0x364773=new Yt(_0x276bb4),_0x8c6740=this['editor']['commands']['get']('trackChanges');_0x364773['buttonView']['set']({'label':_0x380515,'icon':he});const _0x532a18=new Zt(_0x276bb4);for(const _0x44c153 of _0x2805c9){if('separator'==_0x44c153['type']){_0x532a18['items']['add'](new Xt(_0x276bb4));continue;}const _0x593b12=new te(_0x276bb4,_0x364773),_0x57b4b4=new _0x397c51(_0x276bb4),_0x15beb8=_0x44c153['model'];_0x57b4b4['bind'](...Object['keys'](_0x15beb8))['to'](_0x15beb8),_0x57b4b4['delegate']('execute')['to'](_0x364773),_0x57b4b4['on']('execute',()=>{this['editor']['execute'](_0x15beb8['commandName']),this['editor']['editing']['view']['focus']();}),_0x593b12['children']['add'](_0x57b4b4),_0x532a18['items']['add'](_0x593b12);}return _0x364773['bind']('isEnabled')['to'](_0x8c6740,'isEnabled'),_0x364773['panelView']['children']['add'](_0x532a18),_0x364773;}['_initializeController'](_0x17bc29){const _0x5be430=this['editor'],_0x2b7a12=_0x5be430['config'],_0x2457a1=_0x5be430['plugins']['get']('Annotations'),_0x2c7d98=_0x5be430['plugins']['get']('CommentsRepository'),_0x4107c5=_0x5be430['plugins']['get']('EditorAnnotations'),_0x4d8123=_0x5be430['plugins']['get'](_0x5983d1)['me'],_0x5e8302=_0x2b7a12['get']('trackChanges')['SuggestionThreadView'],_0x22d68e=_0x2b7a12['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3a215b,CommentThreadInputView:_0x472c0e}=_0x5be430['plugins']['get']('CommentsUI');let _0x3bd8eb,_0x34231f,_0x2add01;this['_annotationViews']['has'](_0x17bc29['id'])?(_0x34231f=this['_annotationViews']['get'](_0x17bc29['id']),_0x3bd8eb=_0x34231f['mainView']):(_0x3bd8eb=new _0x5e8302(_0x5be430['locale'],_0x17bc29,_0x4d8123,{'disableComments':this['_disableComments'],'editorConfig':_0x2b7a12['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2b7a12['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2b7a12['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2b7a12['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2fcf1(_0x2b7a12['get']('locale')),'CommentView':_0x2b7a12['get']('comments')['CommentView'],'CommentsListView':_0x3a215b,'CommentThreadInputView':_0x472c0e,'SuggestionView':_0x22d68e}),_0x3bd8eb['suggestionView']['acceptButton']['on']('execute',()=>{_0x5be430['editing']['view']['focus']();}),_0x3bd8eb['suggestionView']['discardButton']['on']('execute',()=>{_0x5be430['editing']['view']['focus']();}),_0x34231f=_0x2457a1['createAnnotationView'](this['editor']['locale'],_0x3bd8eb),_0x34231f['bind']('isDirty')['to'](_0x3bd8eb,'isDirty'),_0x34231f['bind']('length')['to'](_0x3bd8eb),_0x34231f['bind']('type')['to'](_0x3bd8eb,'type',_0x14851a=>'suggestion-'+_0x14851a),_0x3bd8eb['on']('escape',()=>{_0x2add01['fire']('escape');}),this['_annotationViews']['set'](_0x17bc29['id'],_0x34231f));const _0x106093=_0x2c7d98['createCommentThreadController'](_0x17bc29['commentThread'],_0x3bd8eb),_0x2cfc57=new ae(_0x5be430,_0x17bc29,_0x3bd8eb,_0x106093),_0x2201f2=_0x17bc29['getAllAdjacentSuggestions']()['filter'](_0x99e336=>_0x99e336['isInContent']);_0x3bd8eb['descriptionParts']=_0x5be430['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2201f2),this['_suggestionToController']['set'](_0x17bc29,_0x2cfc57),this['_viewToController']['set'](_0x3bd8eb,_0x2cfc57),_0x2add01=_0x2457a1['createAnnotation']({'view':_0x34231f,'target':()=>{const _0x55502c=[],_0x543ea1=_0x17bc29['getAllAdjacentSuggestions']()['filter'](_0x4ba5c9=>_0x4ba5c9['isInContent']);for(const _0x12867f of _0x543ea1)_0x55502c['push'](..._0x12867f['getMarkers']());return _0x4d4b32(_0x5be430['editing'],_0x55502c);},'type':()=>'suggestion-'+_0x2cfc57['view']['type']}),_0x2c7d98['_bindAnnotationToEditors'](_0x3bd8eb,_0x2add01),_0x2457a1['add'](_0x2add01),_0x4107c5['registerAnnotation'](_0x2add01);}['_destroyController'](_0x308ddd){const _0x79d3a5=this['editor']['plugins']['get']('CommentsRepository'),_0x4baaf8=this['editor']['plugins']['get']('Annotations'),_0x38b52d=this['_suggestionToController']['get'](_0x308ddd),_0x3e862a=_0x38b52d['view'],_0x37f47f=_0x4baaf8['getByInnerView'](_0x3e862a);_0x79d3a5['_unbindEditors'](_0x3e862a),_0x37f47f&&_0x4baaf8['remove'](_0x37f47f),this['_suggestionToController']['delete'](_0x308ddd),this['_viewToController']['delete'](_0x3e862a),_0x38b52d['destroy']();}['_updateController'](_0x5ddcc0){if(!_0x5ddcc0['isInContent']||!this['_suggestionToController']['has'](_0x5ddcc0))return;const _0x19ab56=this['editor']['plugins']['get']('TrackChangesEditing'),_0x387fb7=this['_suggestionToController']['get'](_0x5ddcc0),_0x2a3e35=_0x5ddcc0['getAllAdjacentSuggestions']();_0x387fb7['view']['descriptionParts']=_0x19ab56['descriptionFactory']['getDescriptions'](_0x2a3e35);}['destroy'](){for(const _0xb72456 of this['_suggestionToController']['keys']())this['_destroyController'](_0xb72456);for(const _0x55004a of this['_annotationViews']['values']())_0x55004a['mainView']['destroy']();super['destroy']();}}function me(_0x38c5e){return'model'in _0x38c5e;}class k extends _0x58a0bc{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x44dcd0){this['editor']['plugins']['get'](p)['adapter']=_0x44dcd0;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x11c8b5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x11c8b5);}['getSuggestions']({skipNotAttached:_0x195b40=!0x1,toJSON:_0x20c296=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x195b40,'toJSON':_0x20c296});}['getSuggestion'](_0x53ce69){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x53ce69);}}const T=['Pagination'];class P extends _0x58a0bc{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4f2eef=this['editor'];if(_0x4f2eef['config']['define']('trackChangesData.editorCreator',_0x2e1ac0=>{const _0xc399ee=_0x4f2eef['model']['document']['getRootNames']()['reduce']((_0x240d01,_0x47aa6f)=>(_0x240d01[_0x47aa6f]='',_0x240d01),{});return _0x4f2eef['constructor']['create'](_0xc399ee,_0x2e1ac0);}),'function'!=typeof _0x4f2eef['config']['get']('trackChangesData')['editorCreator'])throw new _0x4ee7fd('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2ba9df){return N(this['editor'],!0x0,_0x2ba9df);}['getDataWithDiscardedSuggestions'](_0x475904){return N(this['editor'],!0x1,_0x475904);}}class D extends _0x58a0bc{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x106abe){super(_0x106abe),this['result']='end';}['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 v(_0x15f1f4){return void 0x0!==_0x15f1f4['getRootsAttributes'];}async function N(_0x47f191,_0x9b6ab2,_0x22eea0){const _0x1172e5=_0x4f17fa(_0x47f191,T);_0x1172e5['plugins']['push'](p,D),_0x1172e5['rootsAttributes']=v(_0x47f191)?_0x47f191['getRootsAttributes']():void 0x0;const _0x4a5e9a=document['createDocumentFragment'](),_0x1fe845=_0x47f191['config']['get']('trackChangesData')['editorCreator'],_0x57e437=await _0x1fe845(_0x1172e5,()=>function(_0x36b25f){const _0x1af75b=document['createElement']('div');return _0x36b25f['appendChild'](_0x1af75b),_0x1af75b;}(_0x4a5e9a));!function(_0x20cf04,_0x31b7ef){const _0x1a73e5=_0x20cf04['model']['document']['getRootNames']()['reduce']((_0x235535,_0x1196f1)=>(_0x235535[_0x1196f1]=_0x20cf04['data']['get']({'rootName':_0x1196f1}),_0x235535),{}),_0x1ddb3c=_0x20cf04['plugins']['get']('Users')['users']['map'](_0x47d2eb=>({'id':_0x47d2eb['id'],'name':_0x47d2eb['name']})),_0x3ce849=_0x20cf04['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1bba73=_0x20cf04['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x341cae=_0x31b7ef['plugins']['get']('Users'),_0x43597e=_0x31b7ef['plugins']['get']('TrackChangesEditing'),_0xcde51b=_0x31b7ef['plugins']['get']('CommentsRepository');for(const _0x472209 of _0xcde51b['getCommentThreads']())_0x472209['remove']();for(const _0x442b27 of _0x1ddb3c)_0x341cae['getUser'](_0x442b27['id'])||_0x341cae['addUser'](_0x442b27);_0x341cae['me']||_0x341cae['useAnonymousUser']();for(const _0x5b9436 of _0x1bba73)_0xcde51b['addCommentThread'](_0x5b9436);for(const _0xba5e3c of _0x3ce849)_0x43597e['addSuggestionData'](_0xba5e3c);_0x31b7ef['data']['set'](_0x1a73e5);}(_0x47f191,_0x57e437),_0x57e437['execute'](_0x9b6ab2?'acceptAllSuggestions':'discardAllSuggestions');const _0x3a873f=v(_0x57e437)?_0x57e437['getFullData'](_0x22eea0):_0x57e437['data']['get'](_0x22eea0);return await _0x57e437['destroy'](),_0x3a873f;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};