@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240509.0 → 0.0.0-nightly-20240511.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +1 -1
  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 +3 -3
  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/multilevellist.js +1 -1
  136. package/src/integrations/pagebreak.js +1 -1
  137. package/src/integrations/paragraph.js +1 -1
  138. package/src/integrations/removeformat.js +1 -1
  139. package/src/integrations/restrictededitingmode.js +1 -1
  140. package/src/integrations/shiftentercommand.js +1 -1
  141. package/src/integrations/standardeditingmode.js +1 -1
  142. package/src/integrations/style.js +1 -1
  143. package/src/integrations/table.js +1 -1
  144. package/src/integrations/tablecaption.js +1 -1
  145. package/src/integrations/tableclipboard.js +1 -1
  146. package/src/integrations/tablecolumnresize.js +1 -1
  147. package/src/integrations/tableheadings.js +1 -1
  148. package/src/integrations/tablemergesplit.js +1 -1
  149. package/src/integrations/tableofcontents.js +1 -1
  150. package/src/integrations/tableproperties.js +1 -1
  151. package/src/integrations/template.js +1 -1
  152. package/src/integrations/title.js +1 -1
  153. package/src/integrations/undo.js +1 -1
  154. package/src/integrations/utils.js +1 -1
  155. package/src/suggestion.js +1 -1
  156. package/src/suggestiondescriptionfactory.js +1 -1
  157. package/src/trackchanges.js +1 -1
  158. package/src/trackchangesdata.js +1 -1
  159. package/src/trackchangesediting.js +1 -1
  160. package/src/trackchangesui.js +1 -1
  161. package/src/ui/suggestioncontroller.js +1 -1
  162. package/src/ui/view/basesuggestionthreadview.js +1 -1
  163. package/src/ui/view/suggestionthreadview.js +1 -1
  164. package/src/utils/common-translations.js +1 -1
  165. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x4ea64e,PendingActions as _0x15b297,icons as _0x31adb5}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x28358a,ObservableMixin as _0x236e12,uid as _0x13da88,insertToPriorityArray as _0x26c1ba,priorities as _0x2272e7,logWarning as _0x2fc05e,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x548bb8,View as _0x3a62b0,ButtonView as _0x362833,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2d92f3,hashObject as _0x2e1087,surroundingMarkersDetector as _0x1d63d1,trimHtml as _0x449dae,UserView as _0x542ed4,getDateTimeFormatter as _0x404552,getAllMarkersDomElementsSorted as _0x3276dc,sanitizeEditorConfig as _0x4eabac}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1dcff6,LiveRange as _0xf2dec5,LivePosition as _0x28b466}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x39e6ef,toWidget as _0x3dd3ff}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x378f31,set as _0xb325a3,isEqual as _0x5873ca,unset as _0x24f39c,omit as Bt}from'lodash-es';import{Delete as _0x427833,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x54508c,ShiftEnter as _0x20f197}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x1f5097 of this['editor']['commands']['commands']())_0x1f5097['affectsData']&&!this['_enabledCommands']['has'](_0x1f5097)&&_0x1f5097['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5c4fc2 of this['editor']['commands']['commands']())_0x5c4fc2['affectsData']&&!this['_enabledCommands']['has'](_0x5c4fc2)&&_0x5c4fc2['clearForceDisabled']('TrackChangesCommand');}constructor(_0x1f94e1,_0x1bec5d){super(_0x1f94e1),this['_enabledCommands']=_0x1bec5d,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x15e63e){const _0x202e73=this['_suggestions']['get'](_0x15e63e);if(!_0x202e73)throw new _0x28358a('track-changes-accept-suggestion-not-found',this);const _0x100a3e=_0x202e73['getRanges']();this['editor']['model']['canEditAt'](_0x100a3e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x202e73);}constructor(_0x537bd5,_0x20e643){super(_0x537bd5),this['_suggestions']=_0x20e643,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x474a31){const _0x5e2de2=this['_suggestions']['get'](_0x474a31);if(!_0x5e2de2)throw new _0x28358a('track-changes-discard-suggestion-not-found',this);const _0x833762=_0x5e2de2['getRanges']();this['editor']['model']['canEditAt'](_0x833762)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5e2de2);}constructor(_0x20edb8,_0x21cb5a){super(_0x20edb8),this['_suggestions']=_0x21cb5a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x2b5bc2){return _0x2b5bc2['sort']((_0x543f6a,_0x2169ed)=>'deletion'==_0x543f6a['type']&&'deletion'!=_0x2169ed['type']?-0x1:'deletion'!=_0x543f6a['type']&&'deletion'==_0x2169ed['type']?0x1:0x0);}function to(_0x1d40e8,_0x577560){let _0x5b2c8b,_0x676737=0x0;const _0x3339c5=[],_0x3cbfaf=_0x577560['schema'];for(;_0x676737<_0x1d40e8['length'];){const _0x877a0e=_0x1d40e8[_0x676737],_0x4bbc5f=_0x1d40e8[_0x676737+0x1];_0x5b2c8b||(_0x5b2c8b=_0x577560['createPositionBefore'](_0x877a0e)),co(_0x577560,_0x877a0e,_0x4bbc5f)||(_0x3339c5['push'](_0x577560['createRange'](_0x5b2c8b,_0x3cbfaf['isObject'](_0x877a0e)?_0x577560['createPositionAfter'](_0x877a0e):_0x577560['createPositionAt'](_0x877a0e,'end'))),_0x5b2c8b=null),_0x676737++;}return _0x3339c5;}function co(_0x55800d,_0x5c2d3c,_0x7a7a9b){if(!_0x7a7a9b)return!0x1;const _0x53f01f=_0x55800d['createPositionAfter'](_0x5c2d3c),_0x2039d6=_0x55800d['createPositionBefore'](_0x7a7a9b);return _0x53f01f['isTouching'](_0x2039d6);}function rs(_0x19c6d0,_0x4603ca,_0x54eeaf){for(;_0x54eeaf['length'];){const _0x39092a=_0x54eeaf['splice'](0x0,0x64);_0x19c6d0['change'](()=>{for(const _0x4c93bf of _0x39092a)_0x4c93bf['isInContent']&&_0x4603ca['execute'](_0x4c93bf['id']);});}}class x extends ts{['refresh'](){const _0x237899=Array['from'](this['_suggestions']['values']())['some'](_0x6d63d9=>_0x6d63d9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x237899;}['execute'](){const _0xddf62d=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1f4818 of _0xddf62d){const _0xaeba7=_0x1f4818['getRanges']();if(!this['editor']['model']['canEditAt'](_0xaeba7))return;}rs(this['editor']['model'],this['_command'],_0xddf62d);}constructor(_0xf933cf,_0x123b3e,_0x5efa91){super(_0xf933cf),this['_command']=_0x123b3e,this['_suggestions']=_0x5efa91,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x152574=this['editor']['model']['document']['selection'],_0x29905e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4d2945,_0x4adc77){const _0x1a9a8d=Array['from'](_0x4d2945['getRanges']()),_0x580e5=new Set();for(const _0x58174d of _0x4adc77)if(_0x58174d['isInContent']){for(const _0x24bf60 of _0x1a9a8d)for(const _0x3835e3 of _0x58174d['getRanges']())(_0x24bf60['isIntersecting'](_0x3835e3)||_0x4d2945['isCollapsed']&&!_0x58174d['isMultiRange']&&_0x58174d['next']&&_0x3835e3['end']['isTouching'](_0x24bf60['start']))&&_0x580e5['add'](_0x58174d);}return _0x580e5;}(_0x152574,_0x29905e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1b0fa3=ss(Array['from'](this['_selectedSuggestions']));for(const _0x57a282 of _0x1b0fa3){const _0x1deaa4=_0x57a282['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1deaa4))return;}rs(this['editor']['model'],this['_command'],_0x1b0fa3);}constructor(_0x32113a,_0x2759c9,_0x126fa7){super(_0x32113a),this['_command']=_0x2759c9,this['_suggestions']=_0x126fa7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x236e12(){get['head'](){let _0x549117=this;for(;_0x549117['previous'];)_0x549117=_0x549117['previous'];return _0x549117;}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'](_0x47d971){this['_markerNames']['add'](_0x47d971);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x45690e=>this['_model']['markers']['get'](_0x45690e))['filter'](_0x42a64d=>_0x42a64d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x48b9e6=>{for(const _0x15135d of this['getMarkers']())_0x48b9e6['removeMarker'](_0x15135d);}),this['_markerNames']['clear']();}['removeMarker'](_0x2e9c4e){this['_model']['change'](_0x40a741=>{_0x40a741['removeMarker'](_0x2e9c4e);}),this['_markerNames']['delete'](_0x2e9c4e);}['addRange'](_0x163b26){const _0x291e3d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x291e3d),this['_model']['change'](_0x13224c=>{_0x13224c['addMarker'](_0x291e3d,{'range':_0x163b26,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x322348){for(const _0xdace74 of this['getRanges']())if(_0xdace74['isIntersecting'](_0x322348))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1d8fad=>_0x1d8fad['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x433ffe,_0x260cbc)=>[..._0x433ffe,..._0x260cbc['getItems']()],[]);}['getFirstRange'](){var _0x2ef2fd;return(null===(_0x2ef2fd=this['getFirstMarker']())||void 0x0===_0x2ef2fd?void 0x0:_0x2ef2fd['getRange']())||null;}['getContainedElement'](){const _0x427be6=this['getRanges']();if(0x1!=_0x427be6['length'])return null;const _0x49aae0=_0x427be6[0x0],_0x1a0684=_0x49aae0['start']['nodeAfter'],_0x11af4d=_0x49aae0['end']['nodeBefore'];return _0x1a0684 instanceof _0x1dcff6?_0x1a0684!=_0x11af4d?null:_0x1a0684: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 _0x3052e5=[];let _0x2b1749=this['head'];for(;_0x2b1749;)_0x3052e5['push'](_0x2b1749),_0x2b1749=_0x2b1749['next'];return _0x3052e5;}['setAttribute'](_0x38c1d7,_0x2e29b2){const _0x2edc58=_0x378f31(this['attributes']);_0xb325a3(_0x2edc58,_0x38c1d7,_0x2e29b2),_0x5873ca(_0x2edc58,this['attributes'])||(this['attributes']=_0x2edc58,this['_onAttributesChange'](_0x2edc58));}['removeAttribute'](_0x474e29){const _0x15fd15=_0x378f31(this['attributes']);_0x24f39c(_0x15fd15,_0x474e29),_0x5873ca(_0x15fd15,this['attributes'])||(this['attributes']=_0x15fd15,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 _0x13da88()['substr'](0x1,0x5);}constructor(_0x354478,_0x51b310){super(),this['_isDataLoaded']=!0x1,this['id']=_0x51b310['id'],this['type']=_0x51b310['type'],this['subType']=_0x51b310['subType']||null,this['author']=_0x51b310['author'],this['creator']=_0x51b310['creator']||_0x51b310['author'],this['isExternal']=Boolean(_0x51b310['attributes']&&_0x51b310['attributes']['@external']),this['data']=null,this['_model']=_0x354478,this['_onAccept']=_0x51b310['onAccept'],this['_onDiscard']=_0x51b310['onDiscard'],this['_onAttributesChange']=_0x51b310['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x51b310['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x76f51d,_0x1642cb,_0x3fe1da){const t=_0x76f51d['t'];switch(_0x1642cb){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',_0x3fe1da);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3fe1da);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3fe1da);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3fe1da);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3fe1da);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',_0x3fe1da);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3fe1da);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',_0x3fe1da);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3fe1da);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3fe1da);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3fe1da);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3fe1da);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3fe1da);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3fe1da);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3fe1da);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3fe1da);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3fe1da);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3fe1da);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3fe1da);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3fe1da);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3fe1da);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3fe1da);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3fe1da);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'},_0x3fe1da);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3fe1da);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3fe1da);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3fe1da);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3fe1da);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3fe1da);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'},_0x3fe1da);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3fe1da);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3fe1da);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3fe1da);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3fe1da);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'},_0x3fe1da);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3fe1da);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'},_0x3fe1da);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'},_0x3fe1da);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3fe1da);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'},_0x3fe1da);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3fe1da);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'},_0x3fe1da);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3fe1da);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3fe1da);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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'},_0x3fe1da);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'},_0x3fe1da);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x1642cb;}}class f{['getDescriptions'](_0x8e6668){const _0x5e3b6c=[],_0x1748fe=new Set(),_0x5289a3=new Set();for(let _0x1ac8e9=0x0;_0x1ac8e9<_0x8e6668['length'];_0x1ac8e9++){const _0x48d213=_0x8e6668[_0x1ac8e9];if(!_0x48d213['isInContent'])continue;const _0x557d99=this['_handleCustomCallbackDescription'](_0x48d213);if(_0x557d99){if(null!=_0x48d213['subType']){if(_0x1748fe['has'](_0x48d213['subType']))continue;_0x1748fe['add'](_0x48d213['subType']);}_0x5e3b6c['push'](_0x557d99);}else{if('attribute'!=_0x48d213['type'])'insertion'!=_0x48d213['type']&&'deletion'!=_0x48d213['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5e3b6c,_0x48d213,_0x8e6668[_0x1ac8e9+0x1]);else{const _0x444627=_0x48d213['data']['key'];if(_0x5289a3['has'](_0x444627))continue;_0x5289a3['add'](_0x48d213['data']['key']),_0x444627==m?this['_handleRenameSuggestionDescription'](_0x5e3b6c,_0x48d213):this['_handleAttributeSuggestionDescription'](_0x5e3b6c,_0x48d213);}}}return this['_resolveDescriptionItems'](_0x5e3b6c);}['registerDescriptionCallback'](_0x52448f){this['_customCallbacks']['push'](_0x52448f);}['registerElementLabel'](_0x1e12cb,_0x3752de,_0x430a19=_0x2272e7['normal']){'function'==typeof _0x1e12cb?_0x26c1ba(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1e12cb,'label':_0x3752de,'priority':_0x430a19}):this['_itemLabels']['set'](_0x1e12cb,_0x3752de);}['registerAttributeLabel'](_0x42a145,_0x163aec){this['_attributeLabels']['set'](_0x42a145,_0x163aec);}['getItemLabel'](_0xe14567,_0x5d2673=0x1){let _0x3fdc8d;for(const _0x982916 of this['_itemLabelsCallbacks'])if(_0x982916['matchingCallback'](_0xe14567)){_0x3fdc8d=_0x982916['label'];break;}return _0x3fdc8d||(_0x3fdc8d=this['_itemLabels']['get'](_0xe14567['name'])),_0x3fdc8d?_0x3fdc8d(_0x5d2673):0x1!==_0x5d2673?_0x5d2673+'\x20'+_0xe14567['name']+'s':''+_0xe14567['name'];}['_addDescriptionItems'](_0x29c223,_0x3c02f8){const _0x599068=_0x3c02f8['getFirstRange']()['getWalker'](),_0x310e13='insertion'==_0x3c02f8['type']?'add':'remove';for(const _0x21a2aa of _0x599068){const _0xaa4f11=_0x21a2aa['item'],_0x4843a5=_0x29c223[_0x29c223['length']-0x1];if(_0xaa4f11['is']('$textProxy'))_0x4843a5&&_0x4843a5['type']['indexOf']('Container')>-0x1&&_0x29c223['pop'](),_0x4843a5&&'text'==_0x4843a5['type']?_0x4843a5[_0x310e13]+=_0xaa4f11['data']:_0x29c223['push']({'type':'text','add':'add'==_0x310e13?_0xaa4f11['data']:'','remove':'remove'==_0x310e13?_0xaa4f11['data']:''});else{if(this['_schema']['isObject'](_0xaa4f11)){const _0x246f62=_0xaa4f11;if(_0x4843a5&&_0x4843a5['type']['indexOf']('Container')>-0x1&&_0x29c223['pop'](),'elementEnd'==_0x21a2aa['type'])continue;_0x4843a5&&_0x4843a5['type']==_0x310e13+'Object'&&_0x4843a5['element']['name']==_0x246f62['name']?_0x4843a5['quantity']++:_0x29c223['push']({'type':_0x310e13+'Object','element':_0x246f62,'quantity':0x1}),_0x599068['skip'](_0x51e42b=>!('elementEnd'==_0x51e42b['type']&&_0x51e42b['item']==_0xaa4f11));}else{if(this['_schema']['checkChild'](_0xaa4f11,'$text')||_0xaa4f11['is']('element','softBreak')){const _0xa68645=_0xaa4f11;if('add'==_0x310e13&&'elementStart'==_0x21a2aa['type']||'remove'==_0x310e13&&'elementEnd'==_0x21a2aa['type'])continue;if(_0x4843a5&&-0x1==_0x4843a5['type']['indexOf']('Container')){'text'==_0x4843a5['type']&&(_0x4843a5[_0x310e13]+='\x0a');continue;}let _0x3747e7;if(_0x3747e7='add'==_0x310e13?_0xa68645['nextSibling']&&!this['_schema']['isObject'](_0xa68645['nextSibling'])?_0xa68645['nextSibling']:null:_0xa68645['previousSibling']&&!this['_schema']['isObject'](_0xa68645['previousSibling'])?_0xa68645['previousSibling']:null,_0xa68645['isEmpty']||_0x3747e7&&_0x3747e7['isEmpty']){const _0x9f17=_0x3747e7&&_0x3747e7['isEmpty']?_0x3747e7:_0xa68645;_0x4843a5&&_0x4843a5['type']==_0x310e13+'EmptyContainer'&&_0x4843a5['element']['name']==_0x9f17['name']?_0x4843a5['quantity']++:_0x29c223['push']({'type':_0x310e13+'EmptyContainer','element':_0x9f17,'quantity':0x1});}else _0x29c223['push']({'type':_0x310e13+'Container','element':_0xa68645});}}}}}['_resolveDescriptionItems'](_0x216697){const _0x44ae67=this['_locale'],_0x48a5a4=[],_0x3b2cc0=[],_0x515cf0=[];for(const _0x33e5c4 of _0x216697)switch(_0x33e5c4['type']){case'text':if(_0x33e5c4['add']=_0x33e5c4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x33e5c4['remove']=_0x33e5c4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x33e5c4['add']&&''!=_0x33e5c4['remove']){_0x48a5a4['push']({'type':'replace','content':o(_0x44ae67,'REPLACE_TEXT',['\x22'+_0x33e5c4['remove']+'\x22','\x22'+_0x33e5c4['add']+'\x22'])});continue;}if(null!=_0x33e5c4['add']['match'](/^ +$/)){_0x48a5a4['push']({'type':'insertion','content':o(_0x44ae67,'*Insert:*\x20%0',o(_0x44ae67,'ELEMENT_SPACE',_0x33e5c4['add']['length']))});continue;}if(null!=_0x33e5c4['remove']['match'](/^ +$/)){_0x48a5a4['push']({'type':'deletion','content':o(_0x44ae67,'*Remove:*\x20%0',o(_0x44ae67,'ELEMENT_SPACE',_0x33e5c4['remove']['length']))});continue;}if(''!=_0x33e5c4['add']){_0x48a5a4['push']({'type':'insertion','content':o(_0x44ae67,'*Insert:*\x20%0','\x22'+_0x33e5c4['add']+'\x22')});continue;}_0x48a5a4['push']({'type':'deletion','content':o(_0x44ae67,'*Remove:*\x20%0','\x22'+_0x33e5c4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x48a5a4['push']({'type':'insertion','content':o(_0x44ae67,'*Insert:*\x20%0',this['getItemLabel'](_0x33e5c4['element'],_0x33e5c4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x48a5a4['push']({'type':'deletion','content':o(_0x44ae67,'*Remove:*\x20%0',this['getItemLabel'](_0x33e5c4['element'],_0x33e5c4['quantity']))});continue;case'addContainer':_0x48a5a4['push']({'type':'insertion','content':o(_0x44ae67,'*Split:*\x20%0',this['getItemLabel'](_0x33e5c4['element'],_0x33e5c4['quantity']))});continue;case'removeContainer':_0x48a5a4['push']({'type':'deletion','content':o(_0x44ae67,'*Merge:*\x20%0',this['getItemLabel'](_0x33e5c4['element'],_0x33e5c4['quantity']))});continue;case'addFormat':_0x3b2cc0['push'](_0x33e5c4['key']);continue;case'removeFormat':_0x515cf0['push'](_0x33e5c4['key']);continue;default:_0x48a5a4['push'](_0x33e5c4);}if(_0x3b2cc0['length']){const _0x3aeed0=_0x3b2cc0['map'](_0x1dfc64=>this['_attributeLabels']['has'](_0x1dfc64)?this['_attributeLabels']['get'](_0x1dfc64):_0x1dfc64)['join'](',\x20');_0x48a5a4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3aeed0)});}if(_0x515cf0['length']){const _0x36d264=_0x515cf0['map'](_0x493f13=>this['_attributeLabels']['has'](_0x493f13)?this['_attributeLabels']['get'](_0x493f13):_0x493f13)['join'](',\x20');_0x48a5a4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x36d264)});}return _0x48a5a4;}['_handleCustomCallbackDescription'](_0x56c17b){for(const _0x2e9a6f of this['_customCallbacks']){const _0x5da187=_0x2e9a6f(_0x56c17b);if(_0x5da187&&'type'in _0x5da187)return _0x5da187;}}['_handleAttributeSuggestionDescription'](_0x1266bb,_0x4846bf){const _0x35e4b0=_0x4846bf['data'],_0x423785=void 0x0===_0x35e4b0['newValue']?'removeFormat':'addFormat';_0x1266bb['push']({'type':_0x423785,'key':_0x35e4b0['key']});}['_handleRenameSuggestionDescription'](_0x305db6,_0x5d70d8){_0x305db6['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5d70d8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1d4170,_0x50f2c3,_0x5e2054){if(this['_addDescriptionItems'](_0x1d4170,_0x50f2c3),_0x5e2054&&_0x5e2054['getFirstRange']()&&!_0x50f2c3['getFirstRange']()['end']['isEqual'](_0x5e2054['getFirstRange']()['start'])){const _0x574525=_0x1d4170[_0x1d4170['length']-0x1],_0x5aef3c='insertion'==_0x50f2c3['type']?'add':'remove';_0x574525&&'text'==_0x574525['type']&&(_0x574525[_0x5aef3c]+='\x0a');}}constructor(_0x2acdfc,_0x75bdf8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2acdfc,this['_locale']=_0x75bdf8;}}class E extends _0x4ea64e{['afterInit'](){const _0x2513b5=this['editor'],_0x250c41=_0x2513b5['plugins']['get']('TrackChangesEditing');_0x2513b5['commands']['get']('showAIAssistant')&&_0x250c41['enableCommand']('showAIAssistant');}}class V extends _0x4ea64e{['afterInit'](){const _0x5959c7=this['editor'],_0x15bb26=_0x5959c7['locale'];if(!_0x5959c7['plugins']['has']('AlignmentEditing'))return;const _0xa63b7d=_0x5959c7['plugins']['get']('TrackChangesEditing');_0xa63b7d['enableDefaultAttributesIntegration']('alignment'),_0xa63b7d['registerBlockAttribute']('alignment'),_0xa63b7d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x15bb26,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4701b8=this['editor'],_0x4f7f84=_0x4701b8['locale'];_0x4701b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe6e240=>{if('formatBlock'!=_0xe6e240['type'])return;const {data:_0x42f0db}=_0xe6e240;if(_0x42f0db&&'alignment'==_0x42f0db['commandName']){const _0x1c6b79=_0x42f0db['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4f7f84,'*Format:*\x20%0',function(_0x4021e7){switch(_0x4021e7){case'left':return o(_0x4f7f84,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4f7f84,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4f7f84,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4f7f84,'FORMAT_JUSTIFY_TEXT');}}(_0x1c6b79))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4ea64e{['afterInit'](){const _0x109e01=this['editor'],_0x59a36b=_0x109e01['plugins']['get']('TrackChangesEditing'),_0x354781=_0x109e01['locale'];for(const _0x5a09d0 of ti){if(!_0x109e01['plugins']['has'](_0x5a09d0))continue;const _0x4b264c=_0x5a09d0['slice'](0x0,-0x7)['toLowerCase'](),_0x2cdfd2='FORMAT_'+_0x4b264c['toUpperCase']();_0x59a36b['enableDefaultAttributesIntegration'](_0x4b264c),_0x59a36b['registerInlineAttribute'](_0x4b264c),_0x59a36b['descriptionFactory']['registerAttributeLabel'](_0x4b264c,o(_0x354781,_0x2cdfd2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x554007=this['editor'],_0x4f4a4b=_0x554007['locale'],_0x1f819d=_0x554007['plugins']['get']('TrackChangesEditing');function _0x38b12c(_0x4f5e4e,_0xa45dc3){_0x1f819d['descriptionFactory']['registerDescriptionCallback'](_0x5d9469=>{if('formatInline'!=_0x5d9469['type'])return;const {data:_0x3b7144}=_0x5d9469;return _0x3b7144&&_0x3b7144['commandName']===_0x4f5e4e?_0x3b7144['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f4a4b,'*Format:*\x20%0',_0xa45dc3)}:{'type':'format','content':o(_0x4f4a4b,'*Remove\x20format:*\x20%0',_0xa45dc3)}:void 0x0;});}_0x38b12c('bold',o(_0x4f4a4b,'FORMAT_BOLD')),_0x38b12c('italic',o(_0x4f4a4b,'FORMAT_ITALIC')),_0x38b12c('underline',o(_0x4f4a4b,'FORMAT_UNDERLINE')),_0x38b12c('code',o(_0x4f4a4b,'FORMAT_CODE')),_0x38b12c('strikethrough',o(_0x4f4a4b,'FORMAT_STRIKETHROUGH')),_0x38b12c('subscript',o(_0x4f4a4b,'FORMAT_SUBSCRIPT')),_0x38b12c('superscript',o(_0x4f4a4b,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4ea64e{['afterInit'](){const _0x3188e4=this['editor'],_0x1dbce5=_0x3188e4['locale'];if(!_0x3188e4['plugins']['has']('BlockQuoteEditing'))return;const _0x456d39=_0x3188e4['plugins']['get']('TrackChangesEditing'),_0x9db73b=this['editor']['commands']['get']('blockQuote');_0x456d39['enableCommand']('blockQuote',(_0x7feb1,_0x5789c5={})=>{const _0x2eccde=this['editor']['model']['document']['selection'],_0x3d118d=_0x5789c5&&void 0x0!==_0x5789c5['forceValue']?_0x5789c5['forceValue']:!_0x9db73b['value'];let _0x333e1f=[];if(_0x3d118d){const _0x40d73f=Array['from'](_0x2eccde['getSelectedBlocks']())['filter'](_0x562da1=>oo(_0x562da1)||function(_0x232bf7,_0x2806cf){const _0x3cf536=_0x2806cf['checkChild'](_0x232bf7['parent'],'blockQuote'),_0x1599a1=_0x2806cf['checkChild'](['$root','blockQuote'],_0x232bf7);return _0x3cf536&&_0x1599a1;}(_0x562da1,this['editor']['model']['schema']));_0x333e1f=to(_0x40d73f,_0x3188e4['model']);}else{const _0xb5e1d9=Array['from'](_0x2eccde['getSelectedBlocks']())['filter'](_0x205836=>oo(_0x205836));_0x333e1f=to(_0xb5e1d9,_0x3188e4['model']);}_0x3188e4['model']['change'](()=>{for(const _0x24c4a8 of _0x333e1f)_0x456d39['markBlockFormat'](_0x24c4a8,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3d118d}]});});}),_0x456d39['descriptionFactory']['registerDescriptionCallback'](_0x518e74=>{const {data:_0x3b6e91}=_0x518e74;if(_0x3b6e91&&'blockQuote'==_0x3b6e91['commandName']){const _0x2fbf8a=o(_0x1dbce5,'ELEMENT_BLOCK_QUOTE');return _0x3b6e91['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1dbce5,'*Set\x20format:*\x20%0',_0x2fbf8a)}:{'type':'format','content':o(_0x1dbce5,'*Remove\x20format:*\x20%0',_0x2fbf8a)};}});}}function oo(_0x537c9a){return'blockQuote'==_0x537c9a['parent']['name'];}class F extends _0x4ea64e{['afterInit'](){const _0x141ffa=this['editor'];_0x141ffa['plugins']['has']('CaseChange')&&(_0x141ffa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x141ffa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x141ffa['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x4ea64e{['afterInit'](){const _0x5cf522=this['editor'];_0x5cf522['commands']['get']('ckbox')&&_0x5cf522['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4ea64e{['afterInit'](){const _0x30160c=this['editor'];if(!_0x30160c['plugins']['has']('CodeBlock'))return;const _0x6f3fab=_0x30160c['plugins']['get']('TrackChangesEditing'),_0x5746b2=_0x30160c['locale'],_0x2e9298=_0x30160c['config']['get']('codeBlock')['languages'],_0x22fd20=_0x30160c['commands']['get']('codeBlock');_0x6f3fab['enableCommand']('indentCodeBlock'),_0x6f3fab['enableCommand']('outdentCodeBlock'),_0x6f3fab['enableCommand']('codeBlock',(_0x2bf714,_0x589cdd={})=>{const _0x29bf89=_0x30160c['model'],_0x2c8970=_0x30160c['model']['document']['selection'],_0x41cd0e=_0x589cdd&&void 0x0!==_0x589cdd['forceValue']?_0x589cdd['forceValue']:!_0x22fd20['value'];let _0xd7ba5c;_0x589cdd['language']||(_0x589cdd['language']=_0x2e9298[0x0]['language']),_0xd7ba5c=_0x41cd0e?Array['from'](_0x2c8970['getSelectedBlocks']())['filter'](_0x2f1b83=>eo(_0x2f1b83)||function(_0x5340dd,_0x2595ca){if(_0x5340dd['is']('rootElement')||_0x2595ca['isLimit'](_0x5340dd))return!0x1;return _0x2595ca['checkChild'](_0x5340dd['parent'],'codeBlock');}(_0x2f1b83,_0x29bf89['schema'])):Array['from'](_0x2c8970['getSelectedBlocks']())['filter'](_0x1ff6d1=>eo(_0x1ff6d1));const _0x32dfd0=to(_0xd7ba5c,_0x29bf89);_0x29bf89['change'](()=>{for(const _0x1fd7df of _0x32dfd0)_0x6f3fab['markBlockFormat'](_0x1fd7df,{'commandName':'codeBlock','commandParams':[{..._0x589cdd,'forceValue':_0x41cd0e}],'formatGroupId':'blockName'});});}),(_0x6f3fab['descriptionFactory']['registerElementLabel']('codeBlock',_0x10fabf=>o(_0x5746b2,'ELEMENT_CODE_BLOCK',_0x10fabf)),_0x6f3fab['descriptionFactory']['registerDescriptionCallback'](_0x52b39a=>{if('formatBlock'!=_0x52b39a['type'])return;const _0x558698=_0x5746b2['t'],{data:_0xdab58e}=_0x52b39a;if(!_0xdab58e||'codeBlock'!=_0xdab58e['commandName'])return;const _0x577b7b=_0xdab58e['commandParams'][0x0]['language'],_0x174e32=_0x558698(_0x2e9298['find'](_0x5de48a=>_0x5de48a['language']===_0x577b7b)['label'])['toLowerCase']();return _0xdab58e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5746b2,'*Set\x20format:*\x20%0',o(_0x5746b2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x174e32+')')}:{'type':'format','content':o(_0x5746b2,'*Remove\x20format:*\x20%0',o(_0x5746b2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x221e7c){return'codeBlock'==_0x221e7c['name'];}class H extends _0x4ea64e{['afterInit'](){const _0x30bfef=this['editor'];if(!_0x30bfef['plugins']['has']('CommentsEditing'))return;_0x30bfef['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4de799,_0x20e421,_0x148cba){const _0x247f06=[];for(const _0x4bedb2 of _0x20e421['getItems']())_0x4bedb2['hasAttribute'](_0x4de799)&&_0x247f06['push'](_0x148cba['createRangeOn'](_0x4bedb2));return _0x247f06;}function _e(_0x4ee717,_0x3e1982,{showActiveMarker:_0x1dc1c0=!0x0}={}){const _0x1a9c20=_0x4ee717['plugins']['get']('TrackChangesEditing');return(_0xc42c18,_0x4298bd,_0x2b1572)=>{if(!_0x2b1572['consumable']['test'](_0x4298bd['markerRange'],_0xc42c18['name']))return;const _0x11ffa3=_0x4298bd['markerRange']['getWalker'](),_0x5a66f4=_0x4298bd['markerRange']['start'],_0x2a3ba4=_0x4ee717['model']['schema'];let _0xd6c3fd=null,_0x4f8a6c=null,_0x5404c3=!0x1,_0x1d7007=!0x1;for(const _0x223651 of _0x11ffa3){const _0x1c08c4=_0x223651['item'];_0x5404c3=_0x5404c3||_0x2a3ba4['isContent'](_0x1c08c4);const _0x9bd289=_0x2b1572['mapper']['toViewElement'](_0x1c08c4);if(_0x9bd289&&_0x9bd289['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x223651['type']&&(_0x2a3ba4['isBlock'](_0x1c08c4)&&!_0x2a3ba4['isLimit'](_0x1c08c4)&&(_0x1c08c4['nextSibling']||_0x5a66f4['isAtEnd']?_0xd6c3fd&&_0xd6c3fd['parent']==_0x1c08c4||(_0xd6c3fd=_0x1c08c4,_0x2067b9(_0x223651['previousPosition']),_0x1d7007=!0x0):_0x4f8a6c=_0x4f8a6c||_0x223651['previousPosition']));}function _0x2067b9(_0x4c02e3){const _0x1aa73e=_0x2b1572['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3e1982}),_0x3a54fc=_0x2b1572['mapper']['toViewPosition'](_0x4c02e3);_0x1dc1c0&&_0x1a9c20['activeMarkers']['includes'](_0x4298bd['markerName'])&&_0x2b1572['writer']['addClass']('ck-suggestion-marker--active',_0x1aa73e),_0x2b1572['writer']['insert'](_0x3a54fc,_0x1aa73e),_0x2b1572['mapper']['bindElementToMarker'](_0x1aa73e,_0x4298bd['markerName']);}_0x5404c3||_0x1d7007||!_0x4f8a6c||_0x2067b9(_0x4f8a6c);};}class q extends _0x4ea64e{static get['requires'](){return[_0x427833];}['init'](){const _0x5e55d4=this['editor'],_0x44fac6=_0x5e55d4['plugins']['get']('TrackChangesEditing');_0x44fac6['enableCommand']('delete');const _0x35b5f2=_0x5e55d4['commands']['get']('deleteForward');_0x44fac6['enableCommand']('deleteForward',(_0x1831c7,_0x11e22b={})=>{const _0x270ad4=_0x5e55d4['model']['createSelection'](_0x5e55d4['model']['document']['selection']);_0x270ad4['isCollapsed']&&_0x5e55d4['model']['modifySelection'](_0x270ad4,{'direction':'forward','unit':_0x11e22b['unit']});const _0x4c51a5=_0x270ad4['getFirstRange'](),_0x22dfb3=_0xf2dec5['fromRange'](_0x4c51a5);let _0x45f6e8;_0x1831c7(_0x11e22b),_0x45f6e8='$graveyard'==_0x22dfb3['root']['rootName']?_0x5e55d4['model']['createRange'](_0x4c51a5['start']):_0x5e55d4['model']['createRange'](_0x22dfb3['start'],_0x22dfb3['end']),_0x22dfb3['detach'](),_0x5e55d4['model']['enqueueChange'](_0x35b5f2['buffer']['batch'],_0x8d1016=>{_0x35b5f2['buffer']['lock'](),_0x8d1016['setSelection'](_0x8d1016['createRange'](_0x45f6e8['end'])),_0x35b5f2['buffer']['unlock']();});}),_0x5e55d4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5e55d4,'merge'),{'priority':'high'}),_0x5e55d4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3fe349,_0xc322cc,_0x3c7cd8)=>{_0x3c7cd8['options']['showSuggestionHighlights']&&_e(_0x5e55d4,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3fe349,_0xc322cc,_0x3c7cd8);},{'priority':'high'}),_0x5e55d4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2cd754,_0x2d5699,_0x41fa11)=>{const _0xe169ce=_0x41fa11['mapper']['markerNameToElements'](_0x2d5699['markerName']);if(_0xe169ce){for(const _0x5efeb8 of _0xe169ce)_0x5efeb8['is']('uiElement')&&(_0x41fa11['mapper']['unbindElementFromMarkerName'](_0x5efeb8,_0x2d5699['markerName']),_0x41fa11['writer']['remove'](_0x5efeb8));}},{'priority':'high'});}}class z extends _0x4ea64e{['afterInit'](){const _0xb2f26c=this['editor'];if(!_0xb2f26c['plugins']['has']('ListEditing'))return;const _0x292f37=_0xb2f26c['locale'],_0x438736=_0xb2f26c['plugins']['get']('TrackChangesEditing'),_0xe9cad6=_0xb2f26c['plugins']['has']('TodoListEditing'),_0x19c291=!!_0xb2f26c['config']['get']('list.multiBlock');function _0x21f86e(_0x29a8e6){return{'type':'format','content':''+o(_0x292f37,'*Set\x20format:*\x20%0',_0x29a8e6)};}function _0x5cf53f(_0x3806d4){return{'type':'format','content':''+o(_0x292f37,'*Remove\x20format:*\x20%0',_0x3806d4)};}_0x438736['enableDefaultAttributesIntegration']('numberedList'),_0x438736['enableDefaultAttributesIntegration']('bulletedList'),_0x438736['enableDefaultAttributesIntegration']('customNumberedList'),_0x438736['enableDefaultAttributesIntegration']('customBulletedList'),_0x438736['enableDefaultAttributesIntegration']('indentList'),_0x438736['enableDefaultAttributesIntegration']('outdentList'),_0x438736['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x438736['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x438736['registerBlockAttribute']('listItemId'),_0x438736['registerBlockAttribute']('listType'),_0x438736['registerBlockAttribute']('listIndent'),_0x19c291&&(_0x438736['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x438736['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xe9cad6&&(_0x438736['enableDefaultAttributesIntegration']('todoList'),_0x438736['enableDefaultAttributesIntegration']('checkTodoList'),_0x438736['registerBlockAttribute']('todoListChecked'),_0x438736['descriptionFactory']['registerDescriptionCallback'](_0x2a53f1=>{const {data:_0x52777c}=_0x2a53f1;if(_0x52777c&&'todoListChecked'==_0x52777c['key'])return{'type':'format','content':_0x52777c['newValue']?o(_0x292f37,'*Check\x20item*'):o(_0x292f37,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1c868f=>{if(_0x1c868f['batch']['isUndo'])return!0x1;let _0x108a83=!0x1;const _0x45e449=_0x438736['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ff107=>'todoListChecked'===_0x438736['_getAttributeKey'](_0x1ff107));for(const _0x250638 of _0x45e449){'todo'!=_0x250638['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x438736['_findSuggestions'](_0x250638['getFirstRange'](),'attribute')['find'](_0x4969e5=>'listType'===_0x438736['_getAttributeKey'](_0x4969e5['suggestion']))||(_0x1c868f['removeMarker'](_0x250638['getFirstMarker']()),_0x108a83=!0x0));}return _0x108a83;})),_0x438736['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x292f37,'FORMAT_INDENT'));const _0xa103b7={'type':'format','content':''};_0x438736['descriptionFactory']['registerDescriptionCallback'](_0xb9488b=>{const {data:_0xe95bf}=_0xb9488b;if(!_0xe95bf||'listType'!=_0xe95bf['key'])return;let _0xfd2d12=_0xb9488b['head'];for(;_0xfd2d12;){if(_0xfd2d12['data']&&(('listStyle'==_0xfd2d12['data']['key']||'listMarkerStyle'==_0xfd2d12['data']['key'])&&(_0xfd2d12['data']['newValue']&&'default'!=_0xfd2d12['data']['newValue']||'default'!=_0xfd2d12['data']['oldValue']&&!_0xe95bf['newValue'])||!_0x19c291&&_0xfd2d12['data']['key']==m))return _0xa103b7;_0xfd2d12=_0xfd2d12['next'];}if(null==_0xe95bf['newValue'])switch(_0xe95bf['oldValue']){case'bulleted':return _0x5cf53f(o(_0x292f37,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5cf53f(o(_0x292f37,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5cf53f(o(_0x292f37,'ELEMENT_TODO_LIST'));}switch(_0xe95bf['newValue']){case'bulleted':return _0x21f86e(o(_0x292f37,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x21f86e(o(_0x292f37,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x21f86e(o(_0x292f37,'ELEMENT_TODO_LIST'));}}),_0x438736['descriptionFactory']['registerDescriptionCallback'](_0x2e0fc4=>{const {data:_0x16ac27}=_0x2e0fc4;if(_0x16ac27&&'listIndent'==_0x16ac27['key'])return null==_0x16ac27['newValue']||null==_0x16ac27['oldValue']&&0x0==_0x16ac27['newValue']?_0xa103b7:void 0x0;}),_0x438736['descriptionFactory']['registerDescriptionCallback'](_0x43e07a=>{if('attribute'!=_0x43e07a['type'])return;const {data:_0x5a16e6}=_0x43e07a;if(!_0x5a16e6||'listItemId'!=_0x5a16e6['key'])return;const _0x43ec80=le(_0x43e07a);return'newValue'==_0x43ec80?{'type':'format','content':o(_0x292f37,'*Merge:*\x20list\x20item')}:'oldValue'==_0x43ec80?{'type':'format','content':o(_0x292f37,'*Split:*\x20list\x20item')}:_0xa103b7;}),_0xb2f26c['model']['document']['registerPostFixer'](_0x143fe0=>this['listItemIdFixer'](_0x143fe0)),_0xb2f26c['model']['document']['registerPostFixer'](_0x405485=>this['noTrackChangesFixer'](_0x405485)),_0xb2f26c['model']['document']['registerPostFixer'](_0x364fe2=>this['assureChains'](_0x364fe2)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x8abf3a){if(_0x8abf3a['batch']['isUndo']||!_0x8abf3a['batch']['isLocal'])return!0x1;let _0x248eff=!0x1;const _0xdc14f2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b7513=>_0x2b7513['data']&&'listItemId'==_0x2b7513['data']['key'])['filter'](_0xf59067=>_0xf59067['data']['newValue']&&_0xf59067['data']['oldValue']);for(const _0x3e1a94 of _0xdc14f2)le(_0x3e1a94)||(_0x8abf3a['removeMarker'](_0x3e1a94['getFirstMarker']()),_0x248eff=!0x0);return _0x248eff;}['noTrackChangesFixer'](_0x3767ce){if(_0x3767ce['batch']['isUndo']||!_0x3767ce['batch']['isLocal'])return!0x1;const _0x5c34da=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5c34da['trackChangesCommand']['value'])return!0x1;let _0x3ac7d7=!0x1;const _0x14be7c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3dce71=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4d0e12=>'attribute'==_0x4d0e12['type'])['filter'](_0x422f1e=>_0x14be7c['includes'](_0x422f1e['attributeKey']));if(0x0==_0x3dce71['length'])return _0x3ac7d7;for(const _0x171883 of _0x3dce71){const _0x4612e2=_0x5c34da['_findSuggestions'](_0x171883['range'],'attribute')['filter'](_0x100340=>!_0x100340['meta']['isNextTo'])['map'](_0x5a38e2=>_0x5a38e2['suggestion'])['filter'](_0x5ced8c=>{const _0x164bf6=_0x5c34da['_getAttributeKey'](_0x5ced8c);return _0x14be7c['includes'](_0x164bf6);});if(_0x4612e2['length']){for(const _0xc6f7e8 of _0x4612e2)_0x3767ce['removeMarker'](_0xc6f7e8['getFirstMarker']());_0x3ac7d7=!0x0;}}return _0x3ac7d7;}['assureChains'](_0x1b24c8){if(_0x1b24c8['batch']['isUndo']||!_0x1b24c8['batch']['isLocal'])return!0x1;const _0x23d2d4=this['editor']['plugins']['get']('TrackChangesEditing');let _0x3b8aec=!0x1;const _0x3e0866=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5c89e9 of _0x23d2d4['getSuggestions']({'skipNotAttached':!0x0})){const _0x596c24=_0x23d2d4['_findSuggestions'](_0x5c89e9['getFirstRange'](),'attribute')['map'](_0x308977=>_0x308977['suggestion'])['filter'](_0x5b1e18=>_0x5b1e18['data']&&_0x3e0866['includes'](_0x5b1e18['data']['key']));if(!_0x596c24['length'])continue;const _0x59ac4d=_0x596c24[0x0]['head']['attributes']['groupId'];if(!_0x596c24['every'](_0x5b1597=>_0x5b1597['attributes']['groupId']===_0x59ac4d)){for(const _0x3c9831 of _0x596c24)_0x31763e(_0x3c9831,_0x59ac4d)&&(_0x3b8aec=!0x0);}}return _0x3b8aec;function _0x240fc0(_0x110432,_0x37f60c){for(const _0x1b1442 of _0x23d2d4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17fe20=>'attribute'==_0x17fe20['type']&&_0x17fe20['attributes']['groupId']==_0x110432))_0x1b1442['setAttribute']('groupId',_0x37f60c);}function _0x31763e(_0x7b479,_0x592857){let _0x246d23=_0x7b479['head'],_0x40f8cf=!0x1;for(;_0x246d23;)_0x246d23['attributes']['groupId']!=_0x592857&&(_0x240fc0(_0x246d23['attributes']['groupId'],_0x592857),_0x246d23['setAttribute']('groupId',_0x592857),_0x40f8cf=!0x0),_0x246d23=_0x246d23['next'];return _0x40f8cf;}}['_supportLegacySuggestions'](){const _0x2ed5ff=this['editor'],_0x350838=_0x2ed5ff['locale'],_0x489c49=_0x2ed5ff['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x489c49['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2de2ba,_0x2c56b2){const _0x25c123=[];for(let _0x18a9ea of _0x2de2ba)_0x18a9ea['start']['nodeAfter']===_0x18a9ea['end']['parent']&&(_0x18a9ea=_0x2ed5ff['model']['createRange'](_0x2ed5ff['model']['createPositionAt'](_0x18a9ea['start']['nodeAfter'],0x0))),_0x25c123['push'](_0x18a9ea);_0x2ed5ff['model']['change'](_0x15bdf9=>{const _0x4bc20=_0x2ed5ff['model']['document']['selection'],_0x337d96=Array['from'](_0x4bc20['getRanges']())['map'](_0xec8acf=>_0xf2dec5['fromRange'](_0xec8acf));_0x15bdf9['setSelection'](_0x25c123),_0x2ed5ff['commands']['get'](_0x2c56b2['commandName'])['refresh'](),_0x2c56b2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2ed5ff['execute'](_0x2c56b2['commandName'],..._0x2c56b2['commandParams']),_0x15bdf9['setSelection'](_0x337d96);for(const _0x16527f of _0x337d96)_0x16527f['detach']();});}),_0x489c49['descriptionFactory']['registerElementLabel'](function(_0x13ef8c){const _0xa9e175=!_0x2ed5ff['model']['schema']['isObject'](_0x13ef8c),_0x5d74d4=_0x13ef8c['previousSibling'],_0x407c37=_0x13ef8c['nextSibling'],_0x4c2c80=_0x13ef8c['getAttribute']('listItemId'),_0x115b7e=!_0x5d74d4||_0x5d74d4['getAttribute']('listItemId')!==_0x4c2c80,_0x30b902=!_0x407c37||_0x407c37['getAttribute']('listItemId')!==_0x4c2c80;return _0xa9e175&&Boolean(_0x4c2c80)&&_0x115b7e&&_0x30b902;},_0x72d4dd=>o(_0x350838,'ELEMENT_LIST_ITEM',_0x72d4dd));}['_registerLegacyDescription'](){const _0x51d6b9=this['editor'],_0xbbe7aa=_0x51d6b9['locale'];function _0x445dfe(_0x2663e1){const _0x5b6bc6=_0x51d6b9['commands']['get']('bulletedList')['value'],_0x1f5baa=_0x51d6b9['commands']['get']('numberedList')['value'];return'numberedList'===_0x2663e1?_0x5b6bc6:_0x1f5baa;}_0x51d6b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4b0486){if('formatBlock'!=_0x4b0486['type'])return;const {data:_0x52404e}=_0x4b0486;if(!_0x52404e)return;let _0x17adb2,_0x26926e,_0x44718a,_0x3afa6e;switch(_0x52404e['commandName']){case'bulletedList':_0x44718a=_0x52404e['commandParams'][0x0]['forceValue'],_0x3afa6e=_0x445dfe(_0x52404e['commandName']),_0x17adb2=_0x44718a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3afa6e&&_0x51d6b9['config']['get']('list.multiBlock')||(_0x17adb2='*Change\x20to:*\x20%0'),_0x26926e={'type':'format','content':o(_0xbbe7aa,_0x17adb2,o(_0xbbe7aa,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x44718a=_0x52404e['commandParams'][0x0]['forceValue'],_0x3afa6e=_0x445dfe(_0x52404e['commandName']),_0x17adb2=_0x44718a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3afa6e&&_0x51d6b9['config']['get']('list.multiBlock')||(_0x17adb2='*Change\x20to:*\x20%0'),_0x26926e={'type':'format','content':o(_0xbbe7aa,_0x17adb2,o(_0xbbe7aa,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x17adb2='*Indent:*\x20%0',_0x26926e={'type':'format','content':o(_0xbbe7aa,_0x17adb2,o(_0xbbe7aa,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x17adb2=function(_0x19cd1e){const _0x2f0526=_0x19cd1e['getFirstRange']();let _0xf3b7fe=_0x2f0526['start']['nodeAfter'];for(;_0xf3b7fe&&_0x2f0526['containsItem'](_0xf3b7fe);){if(_0xf3b7fe['getAttribute']('listIndent')>0x0)return!0x1;_0xf3b7fe=_0xf3b7fe['nextSibling'];}return!0x0;}(_0x4b0486)?o(_0xbbe7aa,'*Format:*\x20remove\x20from\x20%0',o(_0xbbe7aa,function(_0x40e76b){return'ELEMENT_'+_0x40e76b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4b0486))):o(_0xbbe7aa,'*Outdent:*\x20%0',o(_0xbbe7aa,'ELEMENT_LIST_ITEM')),_0x26926e={'type':'format','content':_0x17adb2};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x52404e['multipleBlocks']&&(_0x17adb2='*Merge:*\x20%0',_0x26926e={'type':'deletion','content':o(_0xbbe7aa,_0x17adb2,o(_0xbbe7aa,'ELEMENT_LIST_ITEM'))});}return _0x26926e;});}}function le(_0x4b7c2a){let _0x3006c8=_0x4b7c2a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3006c8;){const _0x59ce48=_0x3006c8['getAttribute']('listItemId');if(!_0x59ce48)return!0x1;if(_0x59ce48==_0x4b7c2a['data']['newValue'])return'newValue';if(_0x59ce48==_0x4b7c2a['data']['oldValue'])return'oldValue';_0x3006c8=_0x3006c8['previousSibling'];}return!0x1;}class ue extends _0x4ea64e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3f9a5f=this['editor']['config']['get']('list.properties'),_0x5ea7a1=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f9a5f['styles']&&(_0x5ea7a1['enableDefaultAttributesIntegration']('listStyle'),_0x5ea7a1['registerBlockAttribute']('listStyle')),_0x3f9a5f['reversed']&&(_0x5ea7a1['enableDefaultAttributesIntegration']('listReversed'),_0x5ea7a1['registerBlockAttribute']('listReversed')),_0x3f9a5f['startIndex']&&(_0x5ea7a1['enableDefaultAttributesIntegration']('listStart'),_0x5ea7a1['registerBlockAttribute']('listStart'));const _0x5afbb3={'type':'format','content':''};_0x5ea7a1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2c5330=this['editor']['locale'];_0x5ea7a1['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2c5330,'FORMAT_LIST_REVERSED')),_0x5ea7a1['descriptionFactory']['registerDescriptionCallback'](_0x45ec8d=>{const {data:_0x1d92be}=_0x45ec8d;if(_0x1d92be&&'listReversed'==_0x1d92be['key'])return null==_0x1d92be['newValue']||0x0==_0x1d92be['newValue']&&null==_0x1d92be['oldValue']?_0x5afbb3:void 0x0;}),_0x5ea7a1['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2c5330,'FORMAT_LIST_START')),_0x5ea7a1['descriptionFactory']['registerDescriptionCallback'](_0x462e1a=>{const {data:_0x247cf3}=_0x462e1a;if(_0x247cf3&&'listStart'==_0x247cf3['key'])return null==_0x247cf3['newValue']||0x1==_0x247cf3['newValue']&&null==_0x247cf3['oldValue']?_0x5afbb3:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2eecf1=>{if(_0x2eecf1['batch']['isUndo'])return!0x1;let _0x15663d=!0x1;const _0x5b2984=_0x5ea7a1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x323647=>{const _0x1d00fd=_0x5ea7a1['_getAttributeKey'](_0x323647);return'listStart'==_0x1d00fd||'listReversed'==_0x1d00fd;});for(const _0x393d8b of _0x5b2984){const _0x2ea305=_0x393d8b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2ea305||'customNumbered'==_0x2ea305)continue;_0x5ea7a1['_findSuggestions'](_0x393d8b['getFirstRange'](),'attribute')['find'](_0x42c93f=>'listType'==_0x5ea7a1['_getAttributeKey'](_0x42c93f['suggestion']))||(_0x2eecf1['removeMarker'](_0x393d8b['getFirstMarker']()),_0x15663d=!0x0);}return _0x15663d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x909b3){const _0x33f5a6=this['editor']['locale'],{data:_0x4fcc88}=_0x909b3,_0x132331={'type':'format','content':''};if(!_0x4fcc88||'listStyle'!=_0x4fcc88['key'])return;if(!_0x4fcc88['oldValue'])return'default'==_0x4fcc88['newValue']?_0x132331:{'type':'format','content':''+o(_0x33f5a6,'*Set\x20format:*\x20%0',o(_0x33f5a6,this['_getTranslationKeyForListStyle'](_0x4fcc88['newValue'])))};if(!_0x4fcc88['newValue']){if('default'==_0x4fcc88['oldValue'])return _0x132331;let _0x311189=_0x909b3['head'];for(;_0x311189;){if(_0x311189['data']&&'listType'==_0x311189['data']['key']&&_0x311189['data']['newValue'])return _0x132331;_0x311189=_0x311189['next'];}return{'type':'format','content':''+o(_0x33f5a6,'*Remove\x20format:*\x20%0',o(_0x33f5a6,this['_getTranslationKeyForListStyle'](_0x4fcc88['oldValue'])))};}if('default'!=_0x4fcc88['newValue'])return{'type':'format','content':''+o(_0x33f5a6,'*Set\x20format:*\x20%0',o(_0x33f5a6,this['_getTranslationKeyForListStyle'](_0x4fcc88['newValue'])))};let _0x30fb23=_0x909b3['head'];for(;_0x30fb23;){if(_0x30fb23['data']&&'listType'==_0x30fb23['data']['key']&&_0x30fb23['data']['newValue']&&_0x30fb23['data']['oldValue'])return _0x132331;_0x30fb23=_0x30fb23['next'];}return{'type':'format','content':o(_0x33f5a6,'*Set\x20format:*\x20%0',o(_0x33f5a6,'ELEMENT_'+_0x909b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x330196=this['editor'],_0x100a6b=_0x330196['locale'];_0x330196['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e2119=>{if('formatBlock'!=_0x3e2119['type'])return;const {data:_0x1c0904}=_0x3e2119;if(!_0x1c0904)return;let _0xff08e8,_0xa9db95;switch(_0x1c0904['commandName']){case'listStyle':_0xff08e8='*Change\x20to:*\x20%0',_0xa9db95={'type':'format','content':o(_0x100a6b,_0xff08e8,o(_0x100a6b,this['_getTranslationKeyForListStyle'](_0x1c0904['commandParams'][0x0]['type'])))};break;case'listReversed':_0xff08e8=_0x1c0904['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xa9db95={'type':'format','content':o(_0x100a6b,_0xff08e8)};break;case'listStart':_0xff08e8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xa9db95={'type':'format','content':o(_0x100a6b,_0xff08e8,_0x1c0904['commandParams'][0x0]['startIndex'])};}return _0xa9db95;});}['_getTranslationKeyForListStyle'](_0x2addbb){return'ELEMENT_'+function(_0x486214){if(pe['includes'](_0x486214))return'bulleted';if(ye['includes'](_0x486214))return'numbered';return null;}(_0x2addbb)['toUpperCase']()+'_LIST_'+_0x2addbb['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4ea64e{static get['requires'](){return[_0x54508c];}['init'](){const _0xcf1c1c=this['editor'],_0x32b6a4=_0xcf1c1c['plugins']['get']('TrackChangesEditing'),_0x230df4=_0xcf1c1c['commands']['get']('enter');_0x32b6a4['enableCommand']('enter',()=>{_0xcf1c1c['model']['change'](_0x125f8e=>{const _0x215081=_0xcf1c1c['model']['document']['selection'],_0x25d055=_0x215081['getFirstPosition'](),_0x47c43a=_0xf2dec5['fromRange'](_0x215081['getFirstRange']());if(_0x230df4['enterBlock'](_0x125f8e)){const _0x1ce65f=_0xcf1c1c['model']['createPositionAt'](_0x25d055['parent']['nextSibling'],0x0),_0x4738ef=_0x125f8e['createRange'](_0x25d055,_0x1ce65f);_0x32b6a4['markInsertion'](_0x4738ef);}else _0x125f8e['setSelection'](_0x125f8e['createRange'](_0x47c43a['end']));_0x47c43a['detach'](),_0x230df4['fire']('afterExecute',{'writer':_0x125f8e});});}),_0xcf1c1c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xcf1c1c,'split'),{'priority':'high'}),_0xcf1c1c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x12a8cd,_0x3db547,_0x27e547)=>{const _0x202ef4=_0x27e547['mapper']['markerNameToElements'](_0x3db547['markerName']);if(_0x202ef4){for(const _0x111c0a of _0x202ef4)_0x111c0a['hasClass']('ck-suggestion-marker-split')&&(_0x27e547['mapper']['unbindElementFromMarkerName'](_0x111c0a,_0x3db547['markerName']),_0x27e547['writer']['remove'](_0x111c0a));}},{'priority':'high'}),_0xcf1c1c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x34dd4b,_0x223085,_0x4599db)=>{_0x4599db['options']['showSuggestionHighlights']&&_e(_0xcf1c1c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x34dd4b,_0x223085,_0x4599db);},{'priority':'high'});}}class J extends _0x4ea64e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x39d47e=this['editor']['plugins']['get']('TrackChangesEditing');_0x39d47e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x39d47e['enableCommand']('findNext'),_0x39d47e['enableCommand']('findPrevious'),_0x39d47e['enableCommand']('replace'),_0x39d47e['enableCommand']('replaceAll');}['handleFindCommand'](_0x510916,_0x12b642,_0x5df6b7={}){const _0x1fe786=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x510916(_0x21bc63=>('string'==typeof _0x12b642?_0x1fe786['findByTextCallback'](_0x12b642,_0x5df6b7):_0x12b642)(_0x21bc63)['filter'](_0x4d1e0e=>!0x1===this['_isInDeletionRange'](_0x4d1e0e,_0x21bc63['item'])),_0x5df6b7);}['_isInDeletionRange'](_0xff1e61,_0x4aee9e){const _0x12a15e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4aee9e,_0xff1e61['start']),this['editor']['model']['createPositionAt'](_0x4aee9e,_0xff1e61['end']));for(const _0x1ea586 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x12a15e['getIntersection'](_0x1ea586['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x4ea64e{['afterInit'](){const _0x54165d=this['editor']['locale'],_0x12611e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x506db7,commandName:_0x2fb51e}of ro)this['editor']['plugins']['has'](_0x506db7)&&(_0x12611e['enableDefaultAttributesIntegration'](_0x2fb51e),_0x12611e['registerInlineAttribute'](_0x2fb51e));_0x54165d['t'],_0x12611e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x54165d,'FORMAT_FONT_SIZE')),_0x12611e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x54165d,'FORMAT_FONT_FAMILY')),_0x12611e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x54165d,'FORMAT_FONT_COLOR')),_0x12611e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x54165d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x565264=this['editor'],_0x1b2c40=_0x565264['locale'];_0x565264['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2938a2=>{const _0x22a389=_0x1b2c40['t'];if('formatInline'!=_0x2938a2['type'])return;const {data:_0x12bc7d}=_0x2938a2;if(null!=_0x12bc7d){if('fontSize'==_0x12bc7d['commandName']){const _0x4c1e4d=_0x12bc7d['commandParams'][0x0]['value'];if(_0x4c1e4d){const _0x2d751a=_0x22a389(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1ebbb0=>_0x1ebbb0['model']==_0x4c1e4d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b2c40,'*Set\x20font\x20size:*\x20%0',_0x2d751a)};}return{'type':'format','content':o(_0x1b2c40,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x12bc7d['commandName']){const _0x1cc9e1=_0x12bc7d['commandParams'][0x0]['value'];return _0x1cc9e1?{'type':'format','content':o(_0x1b2c40,'*Set\x20font\x20family:*\x20%0',_0x1cc9e1)}:{'type':'format','content':o(_0x1b2c40,'*Reset\x20font\x20family*')};}if('fontColor'==_0x12bc7d['commandName']){const _0x2f5e4b=_0x12bc7d['commandParams'][0x0]['value'];if(_0x2f5e4b){const _0x508e10=_0x548bb8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4978f4=>_0x4978f4['model']==_0x2f5e4b);let _0x272831=_0x2f5e4b,_0x110b36='';return _0x508e10&&(_0x272831=_0x508e10['label'],_0x110b36=_0x22a389(_0x272831)['toLowerCase']()),{'type':'format','content':o(_0x1b2c40,'*Set\x20font\x20color:*\x20%0',_0x110b36)['trim'](),'color':{'value':_0x2f5e4b,'title':_0x110b36||_0x272831}};}return{'type':'format','content':o(_0x1b2c40,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x12bc7d['commandName']){const _0x3be2f4=_0x12bc7d['commandParams'][0x0]['value'];if(_0x3be2f4){const _0x4b356c=_0x548bb8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x169a64=>_0x169a64['model']==_0x3be2f4);let _0x56a187=_0x3be2f4,_0x2135f9='';return _0x4b356c&&(_0x56a187=_0x4b356c['label'],_0x2135f9=_0x22a389(_0x56a187)['toLowerCase']()),{'type':'format','content':o(_0x1b2c40,'*Set\x20font\x20background\x20color:*\x20%0',_0x2135f9)['trim'](),'color':{'value':_0x3be2f4,'title':_0x2135f9||_0x56a187}};}return{'type':'format','content':o(_0x1b2c40,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4ea64e{['afterInit'](){const _0x10f4bc=this['editor'],_0x20072e=_0x10f4bc['plugins']['get']('TrackChangesEditing'),_0x2042c6=_0x10f4bc['commands']['get']('copyFormat'),_0x2c2498=_0x10f4bc['commands']['get']('pasteFormat');_0x2042c6&&_0x2c2498&&(_0x20072e['enableDefaultAttributesIntegration']('pasteFormat'),_0x20072e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x30e02b=this['editor'],_0x3f378d=_0x30e02b['locale'];_0x30e02b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1daa1e=>{if('formatBlock'!=_0x1daa1e['type']&&'formatInline'!=_0x1daa1e['type'])return;const {data:_0x312c68}=_0x1daa1e;if(_0x312c68&&'pasteFormat'===_0x312c68['commandName']){const _0x4022b9=[],_0x23c305=_0x312c68['commandParams'][0x0];for(const [_0x44bba5,_0x469113]of Object['entries'](_0x23c305))_0x4022b9['push'](so(_0x30e02b,_0x44bba5,_0x469113));return _0x4022b9['length']?{'type':'format','content':o(_0x3f378d,'*Set\x20format\x20to:*\x20%0',_0x4022b9['join'](',\x20'))}:{'type':'format','content':o(_0x3f378d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2b167a,_0x29c4e2,_0x130f25){const _0x18168e=_0x2b167a['locale']['t'],_0x5ebec2=_0x29c4e2['split'](/(?=[A-Z])/)['join']('\x20'),_0x5b3126=_0x18168e(_0x5ebec2['charAt'](0x0)['toUpperCase']()+_0x5ebec2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x130f25)return _0x5b3126;if('fontColor'===_0x29c4e2||'fontBackgroundColor'===_0x29c4e2){const _0x379714=_0x548bb8(_0x2b167a['config']['get']('fontColor.colors'))['find'](_0x3766f9=>_0x3766f9['model']==_0x130f25);return _0x5b3126+'\x20('+(_0x379714?_0x18168e(_0x379714['label'])['toLowerCase']():_0x130f25)+')';}if('fontSize'===_0x29c4e2&&isNaN(parseFloat(_0x130f25))){const _0x55d04e=_0x2b167a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2b167a['config']['get']('fontSize.options'))['find'](_0x2f1667=>_0x2f1667['model']==_0x130f25);return _0x5b3126+'\x20('+(_0x55d04e?_0x18168e(_0x55d04e['title'])['toLowerCase']():_0x130f25)+')';}return _0x5b3126+'\x20('+_0x130f25+')';}class Y extends _0x4ea64e{['afterInit'](){const _0x16214d=this['editor'];if(!_0x16214d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x16214d['config']['get']('heading.options');const _0x3b0117=_0x16214d['locale'],_0x31fc54=_0x16214d['plugins']['get']('TrackChangesEditing');_0x31fc54['enableDefaultAttributesIntegration']('heading');for(const _0x5cce8a of this['_headingOptions'])'paragraph'!=_0x5cce8a['model']&&_0x31fc54['descriptionFactory']['registerElementLabel'](_0x5cce8a['model'],_0x9febf7=>{const _0x400887=this['_getHeadingLevel'](_0x5cce8a['model']);return null!==_0x400887?_0x5d8bbf(_0x9febf7,_0x400887):_0x3e55b8(_0x9febf7,_0x5cce8a['title']);});function _0x5d8bbf(_0xe22b35,_0x2ede69){return o(_0x3b0117,'ELEMENT_HEADING',[_0xe22b35,_0x2ede69]);}function _0x3e55b8(_0x32e430,_0x3e5091){return o(_0x3b0117,'ELEMENT_HEADING_CUSTOM',[_0x32e430,_0x3e5091]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34bc0e=this['editor'],_0x523d6b=_0x34bc0e['locale'];function _0x478ce5(_0xe478d4,_0x40fd69){return o(_0x523d6b,'ELEMENT_HEADING_CUSTOM',[_0xe478d4,_0x40fd69]);}_0x34bc0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e8971=>{if('formatBlock'!=_0x1e8971['type'])return;const {data:_0x29242f}=_0x1e8971;if(_0x29242f&&'heading'==_0x29242f['commandName']){const _0x31bac4=_0x29242f['commandParams'][0x0]['value'],_0x4c25b9=this['_getHeadingLevel'](_0x31bac4);if(null!==_0x4c25b9)return{'type':'format','content':o(_0x523d6b,'*Change\x20to:*\x20%0',(_0x56179c=0x1,_0x5a6ff1=_0x4c25b9,o(_0x523d6b,'ELEMENT_HEADING',[_0x56179c,_0x5a6ff1])))};const _0x2d418a=this['_headingOptions']['find'](_0x2875e3=>_0x2875e3['model']===_0x31bac4)['title'];return{'type':'format','content':o(_0x523d6b,'*Change\x20to:*\x20%0',_0x478ce5(0x1,_0x2d418a))};}var _0x56179c,_0x5a6ff1;});}['_getHeadingLevel'](_0x31a65a){var _0x3fd2b3,_0x3dae9b;const _0x174269=_0x31a65a['match'](/^heading(\d+)/);if(_0x174269)return _0x174269[0x1];const _0x18d194=null===(_0x3fd2b3=this['_headingOptions'])||void 0x0===_0x3fd2b3?void 0x0:_0x3fd2b3['find'](_0x237de6=>_0x237de6['model']==_0x31a65a);if(_0x18d194&&_0x18d194['view']){const _0x1bc74e=_0x18d194['view'],_0x716a4e=(null!==(_0x3dae9b=_0x1bc74e['name'])&&void 0x0!==_0x3dae9b?_0x3dae9b:_0x1bc74e)['match'](/^h(\d+)/);if(_0x716a4e)return _0x716a4e[0x1];}return null;}}class Z extends _0x4ea64e{['afterInit'](){const _0x56a742=this['editor'];if(!_0x56a742['plugins']['has']('HighlightEditing'))return;const _0xa5414f=_0x56a742['plugins']['get']('TrackChangesEditing'),_0x598c2d=_0x56a742['locale'];_0xa5414f['enableDefaultAttributesIntegration']('highlight'),_0xa5414f['registerInlineAttribute']('highlight'),_0xa5414f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x598c2d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49282e=this['editor'],_0x12764f=_0x49282e['locale'];_0x49282e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ac525=>{if('formatInline'!=_0x1ac525['type'])return;const {data:_0x333a42}=_0x1ac525;if(_0x333a42&&'highlight'==_0x333a42['commandName']){const _0x36c29b=_0x12764f['t'],_0x67beb8=_0x333a42['commandParams'][0x0]['value'];if(_0x67beb8){const _0x24b318=_0x49282e['config']['get']('highlight.options')['find'](_0x56e9ca=>_0x56e9ca['model']==_0x67beb8),_0x212c48=_0x36c29b(_0x24b318['title'])['toLowerCase']();return{'type':'format','content':o(_0x12764f,'*Set\x20highlight:*\x20%0',_0x212c48),'color':{'value':_0x24b318['color'],'title':_0x24b318['title']}};}return{'type':'format','content':o(_0x12764f,'*Remove\x20highlight*',o(_0x12764f,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4ea64e{['afterInit'](){const _0x4e7359=this['editor'];if(!_0x4e7359['plugins']['has']('HorizontalLineEditing'))return;_0x4e7359['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a72ce=_0x4e7359['plugins']['get']('TrackChangesEditing'),_0x5d39a5=_0x4e7359['locale'];_0x4a72ce['descriptionFactory']['registerElementLabel']('horizontalLine',_0x13f06f=>o(_0x5d39a5,'ELEMENT_HORIZONTAL_LINE',_0x13f06f)),_0x4e7359['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3e5262,{writer:_0x33919d,options:_0x22e22c})=>{if(!_0x22e22c['showSuggestionHighlights'])return null;const _0x504df0=_0x33919d['createContainerElement']('div'),_0x106f42=_0x33919d['createEmptyElement']('hr');return _0x33919d['addClass']('ck-horizontal-line',_0x504df0),_0x33919d['insert'](_0x33919d['createPositionAt'](_0x504df0,0x0),_0x106f42),_0x504df0;},'converterPriority':'high'});}}class et extends _0x4ea64e{['afterInit'](){const _0x37a9b4=this['editor'];if(!_0x37a9b4['plugins']['has']('HtmlEmbed'))return;const _0x13e511=_0x37a9b4['plugins']['get']('TrackChangesEditing'),_0x34195f=_0x37a9b4['locale'];_0x13e511['descriptionFactory']['registerElementLabel']('rawHtml',_0x21764d=>o(_0x34195f,'ELEMENT_HTML_EMBED',_0x21764d)),_0x13e511['enableDefaultAttributesIntegration']('htmlEmbed'),_0x13e511['registerBlockAttribute']('value'),_0x13e511['descriptionFactory']['registerDescriptionCallback'](_0x2309f6=>{if('attribute'!=_0x2309f6['type'])return;const {data:_0x53ab23}=_0x2309f6;if(_0x53ab23&&'value'==_0x53ab23['key']&&_0x2309f6['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xcbcdf1=o(_0x34195f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x34195f,'*Change\x20%0\x20content*',_0xcbcdf1)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c4df3=this['editor'],_0x5b49cf=_0x3c4df3['locale'];_0x3c4df3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bb067=>{if('formatBlock'!=_0x1bb067['type'])return;const {data:_0x4b8c54}=_0x1bb067;if(_0x4b8c54&&'htmlEmbed'==_0x4b8c54['commandName']){const _0x58a531=o(_0x5b49cf,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5b49cf,'*Change\x20%0\x20content*',_0x58a531)};}});}}class it extends _0x4ea64e{['afterInit'](){const _0x24750d=this['editor'];if(!_0x24750d['plugins']['has']('ImageEditing'))return;const _0x36ae46=_0x24750d['plugins']['get']('TrackChangesEditing'),_0x4c046d=_0x24750d['plugins']['get']('ImageUtils'),_0x1a318c=_0x24750d['locale'];_0x36ae46['enableCommand']('insertImage'),_0x36ae46['descriptionFactory']['registerElementLabel']('imageBlock',_0x55f8a=>o(_0x1a318c,'ELEMENT_IMAGE',_0x55f8a)),_0x36ae46['descriptionFactory']['registerElementLabel']('imageInline',_0x77f895=>o(_0x1a318c,'ELEMENT_INLINE_IMAGE',_0x77f895)),_0x36ae46['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1a318c,'ELEMENT_CAPTION')),_0x24750d['plugins']['has']('ImageUploadEditing')&&_0x36ae46['enableCommand']('uploadImage'),_0x24750d['plugins']['has']('ImageBlockEditing')&&_0x24750d['plugins']['has']('ImageInlineEditing')&&(_0x36ae46['enableCommand']('imageTypeInline',(_0x1473d9,_0x352095)=>{const _0x18cb6e=_0x4c046d['getClosestSelectedImageElement'](_0x24750d['model']['document']['selection']);_0x24750d['model']['change'](()=>{_0x36ae46['markBlockFormat'](_0x18cb6e,{'commandName':'imageTypeInline','commandParams':[_0x352095]},[],'convertBlockImageToInline');});}),_0x36ae46['enableCommand']('imageTypeBlock',(_0x20ef38,_0x1caefa)=>{_0x24750d['model']['change'](_0x3c2f6e=>{let _0x1eed69=_0x4c046d['getClosestSelectedImageElement'](_0x24750d['model']['document']['selection']),_0x1bfbbd=_0x3c2f6e['createRangeOn'](_0x1eed69);const _0x477351=_0x28b466['fromPosition'](_0x1bfbbd['start'],'toPrevious'),_0x4cc98d=_0x28b466['fromPosition'](_0x1bfbbd['end'],'toNext');_0x36ae46['forceDefaultExecution'](()=>_0x20ef38(_0x1caefa)),_0x1eed69=_0x4c046d['getClosestSelectedImageElement'](_0x24750d['model']['document']['selection']),_0x1bfbbd=_0x3c2f6e['createRangeOn'](_0x1eed69);const _0xf9045f=_0x3c2f6e['createRange'](_0x477351,_0x4cc98d);_0x477351['detach'](),_0x4cc98d['detach'](),_0x36ae46['markBlockFormat'](_0x1eed69,{'commandName':'imageTypeInline','commandParams':[_0x1caefa]},[],'convertInlineImageToBlock'),_0xf9045f['start']['isBefore'](_0x1bfbbd['start'])&&_0x36ae46['markInsertion'](_0x3c2f6e['createRange'](_0xf9045f['start'],_0x1bfbbd['start']),'convertInlineImageToBlock'),_0x1bfbbd['end']['isBefore'](_0xf9045f['end'])&&_0x36ae46['markInsertion'](_0x3c2f6e['createRange'](_0x1bfbbd['end'],_0xf9045f['end']),'convertInlineImageToBlock');});}),_0x36ae46['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x36ae46['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x36ae46['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x36ae46['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x36ae46['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x36ae46['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x156ad8])=>{const _0x13423d=_0x36ae46['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2c3803=_0x156ad8['start'],_0x452b7f=_0x156ad8['end'];const _0x3e59ff=_0x24750d['model']['schema']['getNearestSelectionRange'](_0x2c3803,'backward'),_0x55d9c7=_0x24750d['model']['schema']['getNearestSelectionRange'](_0x452b7f,'forward');_0x3e59ff['isCollapsed']&&(_0x2c3803=_0x3e59ff['start']),_0x55d9c7['isCollapsed']&&(_0x452b7f=_0x55d9c7['end']),_0x13423d([_0x24750d['model']['createRange'](_0x2c3803,_0x452b7f)]);}),_0x36ae46['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x365808),_0x36ae46['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x365808)),_0x24750d['plugins']['has']('ImageCaptionEditing')&&(_0x36ae46['enableCommand']('toggleImageCaption',(_0x26efac,_0x1e4e22)=>{const _0x333d27=_0x24750d['plugins']['get']('ImageCaptionUtils');let _0x2e4e48=_0x4c046d['getClosestSelectedImageElement'](_0x24750d['model']['document']['selection']),_0x2d72e6=_0x333d27['getCaptionFromImageModelElement'](_0x2e4e48);_0x24750d['model']['change'](()=>{if(_0x2d72e6)return void _0x36ae46['markDeletion'](_0x24750d['model']['createRangeOn'](_0x2d72e6));const _0xf55ba4=_0x4c046d['isBlockImage'](_0x2e4e48);_0x26efac(_0x1e4e22),_0x2e4e48=_0x4c046d['getClosestSelectedImageElement'](_0x24750d['model']['document']['selection']),_0x2d72e6=_0x333d27['getCaptionFromImageModelElement'](_0x2e4e48),_0x36ae46['markInsertion'](_0x24750d['model']['createRangeOn'](_0x2d72e6),_0xf55ba4?null:'imageCaption');});}),_0x36ae46['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x365808));const _0x4ddecb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x13bb48(_0x56f24a,_0x4d0c6b){const _0x584bec=_0x4ddecb['findIndex'](({type:_0x368470,subType:_0x448ed4})=>_0x56f24a['type']==_0x368470&&_0x56f24a['subType']==_0x448ed4),_0x1aa00c=_0x4ddecb['findIndex'](({type:_0x4f43c0,subType:_0x46efae})=>_0x4d0c6b['type']==_0x4f43c0&&_0x4d0c6b['subType']==_0x46efae);if(_0x584bec<0x0||_0x1aa00c<0x0)return!0x1;const _0x50ea75=_0x56f24a['getFirstRange'](),_0x27c209=_0x4d0c6b['getFirstRange']();if((0x0==_0x584bec||0x1==_0x584bec)&&0x2==_0x1aa00c&&_0x50ea75['isIntersecting'](_0x27c209))return!0x0;if(0x2==_0x584bec&&0x3==_0x1aa00c){const _0x33b5ab=_0x36ae46['_findSuggestions'](_0x50ea75,'insertion')['filter'](({suggestion:_0x25bedd,meta:_0x551bba})=>_0x551bba['isOwn']&&'convertInlineImageToBlock'==_0x25bedd['subType']);if(_0x33b5ab['length']>0x1&&_0x27c209['end']['isEqual'](_0x50ea75['start']))return!0x0;if(0x1==_0x33b5ab['length']&&(_0x50ea75['start']['isEqual'](_0x27c209['end'])||_0x50ea75['end']['isEqual'](_0x27c209['start'])))return!0x0;}if(0x3==_0x584bec&&0x3==_0x1aa00c&&_0x50ea75['start']['isBefore'](_0x27c209['start'])){const _0xd85175=_0x50ea75['end']['nodeAfter'],_0x151222=_0x27c209['start']['nodeBefore'];return _0x4c046d['isBlockImage'](_0xd85175)&&_0xd85175===_0x151222;}return!0x1;}function _0x365808(_0x234735,_0x5c6670){return _0x13bb48(_0x234735,_0x5c6670)?[_0x234735,_0x5c6670]:_0x13bb48(_0x5c6670,_0x234735)?[_0x5c6670,_0x234735]:null;}_0x24750d['plugins']['has']('ImageResize')&&(_0x36ae46['enableDefaultAttributesIntegration']('resizeImage'),_0x36ae46['registerBlockAttribute']('resizedWidth'),_0x36ae46['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1a318c,'FORMAT_IMAGE_SIZE'))),_0x24750d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x36ae46['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x36ae46['registerBlockAttribute']('alt')),_0x36ae46['descriptionFactory']['registerDescriptionCallback'](_0x1c6e57=>{if(!!_0x4ddecb['find'](({type:_0xa059a9,subType:_0x2e2848})=>_0x1c6e57['type']==_0xa059a9&&_0x1c6e57['subType']==_0x2e2848))return _0x1c6e57['previous']?{}:void 0x0;}),_0x36ae46['descriptionFactory']['registerDescriptionCallback'](_0x542041=>{if('insertion'==_0x542041['type']||'deletion'==_0x542041['type']){const _0xd8be1=_0x542041['getContainedElement']();if(_0xd8be1&&_0xd8be1['is']('element','caption'))return{'type':'insertion'==_0x542041['type']?'addObject':'removeObject','element':_0xd8be1,'quantity':0x1};}}),_0x36ae46['descriptionFactory']['registerDescriptionCallback'](_0x3ea727=>'formatBlock'==_0x3ea727['type']&&'convertInlineImageToBlock'==_0x3ea727['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3ea727['type']&&'convertBlockImageToInline'==_0x3ea727['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x36ae46['descriptionFactory']['registerDescriptionCallback'](_0x56f7d0=>{if('attribute'!=_0x56f7d0['type'])return;const {data:_0x34741c}=_0x56f7d0;if(!_0x34741c||'alt'!=_0x34741c['key'])return;const _0x7bbaf5=_0x34741c['newValue'];return _0x7bbaf5?{'type':'format','content':o(_0x1a318c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7bbaf5+'\x22')}:{'type':'format','content':o(_0x1a318c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x231a24=this['editor'],_0x6acfa9=_0x231a24['locale'];_0x231a24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c08d8=>{if('formatBlock'!=_0x1c08d8['type']&&'formatInline'!=_0x1c08d8['type'])return;const {data:_0x52158d}=_0x1c08d8;if(_0x52158d){if('imageTextAlternative'==_0x52158d['commandName']){const _0xc06c3b=_0x52158d['commandParams'][0x0]['newValue'];return _0xc06c3b?{'type':'format','content':o(_0x6acfa9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xc06c3b+'\x22')}:{'type':'format','content':o(_0x6acfa9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x52158d['commandName']){const _0x34712c=_0x52158d['commandParams'][0x0]['width'];return _0x34712c?{'type':'format','content':o(_0x6acfa9,'*Set\x20image\x20width:*\x20%0',_0x34712c)}:{'type':'format','content':o(_0x6acfa9,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4ea64e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3cfec8=this['editor']['locale'],_0x162da2=this['editor']['plugins']['get']('TrackChangesEditing');_0x162da2['enableDefaultAttributesIntegration']('replaceImageSource'),_0x162da2['registerBlockAttribute']('src'),_0x162da2['descriptionFactory']['registerDescriptionCallback'](_0x1af2b1=>{if('attribute'!=_0x1af2b1['type'])return;const {data:_0x37bbed}=_0x1af2b1;return _0x37bbed&&'src'==_0x37bbed['key']?_0x37bbed['newValue']&&_0x37bbed['oldValue']?{'type':'format','content':o(_0x3cfec8,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48d985=this['editor']['plugins']['get']('TrackChangesEditing');_0x48d985['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x48d985['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48d985['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x48d985['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b6f94=this['editor'],_0x1e5e01=_0x2b6f94['locale'];_0x2b6f94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd89250=>{if('formatBlock'!=_0xd89250['type']&&'formatInline'!=_0xd89250['type'])return;const {data:_0x5929d1}=_0xd89250;if(!_0x5929d1||'replaceImageSource'!=_0x5929d1['commandName'])return;return{'type':'format','content':o(_0x1e5e01,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4ea64e{['afterInit'](){const _0x24e4e7=this['editor'];if(!_0x24e4e7['plugins']['has']('ImageStyleEditing'))return;const _0x595299=_0x24e4e7['plugins']['get']('TrackChangesEditing'),_0x2be587=_0x24e4e7['plugins']['get']('ImageUtils'),_0x258dce={};_0x595299['enableCommand']('imageStyle',(_0x4de7f6,_0x4c28ce)=>{const _0x18b650=_0x24e4e7['plugins']['get']('Users')['me'],_0x20bfec=_0x24e4e7['commands']['get']('imageStyle');let _0x361504=_0x2be587['getClosestSelectedImageElement'](_0x24e4e7['model']['document']['selection']),_0x39bdb5=_0x24e4e7['model']['createRangeOn'](_0x361504),_0x2ea52c=_0x20bfec['value'];if(_0x2ea52c==_0x4c28ce['value'])return;const _0x2952c8={'commandName':'imageStyle','commandParams':[_0x4c28ce],'formatGroupId':_0x13da88()};_0x24e4e7['model']['change'](()=>{if(_0x595299['getSuggestions']()['filter'](_0x2aadd2=>_0x2aadd2['isInContent']&&_0x18b650==_0x2aadd2['author']&&('formatBlock'==_0x2aadd2['type']||'formatInline'==_0x2aadd2['type'])&&('imageStylePreApply'==_0x2aadd2['subType']||'imageStylePostApply'==_0x2aadd2['subType'])&&_0x2aadd2['getFirstRange']()['isEqual'](_0x39bdb5))['forEach'](_0xe5a8d0=>_0x595299['discardSuggestion'](_0xe5a8d0['head'])),_0x361504=_0x2be587['getClosestSelectedImageElement'](_0x24e4e7['model']['document']['selection']),_0x39bdb5=_0x24e4e7['model']['createRangeOn'](_0x361504),_0x20bfec['refresh'](),_0x24e4e7['commands']['get']('imageTypeInline')['refresh'](),_0x24e4e7['commands']['get']('imageTypeBlock')['refresh'](),_0x2ea52c=_0x20bfec['value'],_0x2ea52c!=_0x4c28ce['value'])return _0x2be587['isInlineImage'](_0x361504)&&_0x20bfec['shouldConvertImageType'](_0x4c28ce['value'],_0x361504)?(_0x4de7f6({..._0x4c28ce,'setImageSizes':!0x1}),_0x361504=_0x2be587['getClosestSelectedImageElement'](_0x24e4e7['model']['document']['selection']),void _0x595299['markBlockFormat'](_0x361504,{..._0x2952c8,'commandReversedParams':[{'value':_0x2ea52c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2be587['isBlockImage'](_0x361504)?_0x595299['markBlockFormat'](_0x361504,_0x2952c8,[],'imageStylePostApply'):_0x595299['markInlineFormat'](_0x39bdb5,_0x2952c8,'imageStylePostApply'));});});for(const _0x306f36 of _0x24e4e7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x258dce[_0x306f36['name']]=_0x306f36['title']['toLowerCase']();_0x595299['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x595299['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x595299['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x595299['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1b0e44])=>{_0x2be587['setImageNaturalSizeAttributes'](_0x1b0e44['getContainedElement']());}),_0x595299['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x6d3c45,_0xca18ef)=>{_0x595299['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x6d3c45,{'commandName':_0xca18ef['commandName'],'commandParams':_0xca18ef['commandReversedParams']});}),_0x595299['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3fbc28,_0x3538a5){if(_0x1499e3(_0x3fbc28,_0x3538a5))return[_0x3fbc28,_0x3538a5];if(_0x1499e3(_0x3538a5,_0x3fbc28))return[_0x3538a5,_0x3fbc28];return null;});const _0x274617=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1499e3(_0x3d4797,_0x3d3790){const _0x20d53b=_0x274617['findIndex'](({type:_0x56453b,subType:_0x44be3d})=>_0x3d4797['type']==_0x56453b&&_0x3d4797['subType']==_0x44be3d),_0x49ff24=_0x274617['findIndex'](({type:_0x1670c3,subType:_0xe944ae})=>_0x3d3790['type']==_0x1670c3&&_0x3d3790['subType']==_0xe944ae);if(_0x20d53b<0x0||_0x49ff24<0x0)return!0x1;const _0x5e146d=_0x3d4797['getFirstRange'](),_0x5aa54c=_0x3d3790['getFirstRange']();if((0x0==_0x20d53b||0x1==_0x20d53b)&&0x2==_0x49ff24&&_0x5e146d['isIntersecting'](_0x5aa54c))return!0x0;if(0x2==_0x20d53b&&0x3==_0x49ff24){const _0x2b90f9=_0x595299['_findSuggestions'](_0x5e146d,'insertion')['filter'](({suggestion:_0x132bef,meta:_0x2cc621})=>_0x2cc621['isOwn']&&'convertInlineImageToBlock'==_0x132bef['subType']);if(_0x2b90f9['length']>0x1&&_0x5aa54c['end']['isEqual'](_0x5e146d['start']))return!0x0;if(0x1==_0x2b90f9['length']&&(_0x5e146d['start']['isEqual'](_0x5aa54c['end'])||_0x5e146d['end']['isEqual'](_0x5aa54c['start'])))return!0x0;}if(0x3==_0x20d53b&&0x3==_0x49ff24&&_0x5e146d['start']['isBefore'](_0x5aa54c['start'])){const _0x3e8f50=_0x5e146d['end']['nodeAfter'],_0x1504f3=_0x5aa54c['start']['nodeBefore'];return _0x2be587['isBlockImage'](_0x3e8f50)&&_0x3e8f50===_0x1504f3;}return!0x1;}_0x24e4e7['model']['document']['registerPostFixer'](()=>{let _0x4322d5=!0x1;const _0x331f8d=Array['from'](_0x24e4e7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x353c96,data:_0x450d72}of _0x331f8d){const {group:_0x28b74b,type:_0x2d4efe,subType:_0x3c1aa1,id:_0x15293c}=_0x595299['_splitMarkerName'](_0x353c96);if('suggestion'==_0x28b74b&&_0x595299['hasSuggestion'](_0x15293c)){if('formatBlock'==_0x2d4efe&&('imageStylePreApply'==_0x3c1aa1||'imageStylePostApply'==_0x3c1aa1)){const _0x5f1542=_0x595299['getSuggestion'](_0x15293c);if(_0x450d72['newRange']){const _0x294e59=_0x5f1542['getFirstRange']()['getContainedElement']();if(_0x2be587['isBlockImage'](_0x294e59))continue;_0x595299['discardSuggestion'](_0x5f1542),_0x4322d5=!0x0;}}if('insertion'==_0x2d4efe&&'imageCaption'==_0x3c1aa1&&!_0x450d72['newRange']){const _0x5283b8=_0x595299['getSuggestion'](_0x15293c);_0x5283b8['next']&&_0x5283b8['next']['isInContent']&&(_0x595299['discardSuggestion'](_0x5283b8['next']),_0x4322d5=!0x0);}}}return _0x4322d5;}),this['_registerLegacyDescription'](_0x258dce);}['_registerLegacyDescription'](_0x244c3b){const _0x410ca7=this['editor'],_0x47ce0a=_0x410ca7['locale'];_0x410ca7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a713d=>{if('formatBlock'!=_0x5a713d['type']&&'formatInline'!=_0x5a713d['type'])return;const {data:_0x76ca39}=_0x5a713d;if(!_0x76ca39||'imageStyle'!=_0x76ca39['commandName'])return;const _0x3149ce=_0x76ca39['commandParams'][0x0]['value'];return _0x4ad1a4('side'===_0x3149ce?o(_0x47ce0a,'FORMAT_SIDE_IMAGE'):_0x244c3b[_0x3149ce]||_0x3149ce);function _0x4ad1a4(_0x2ca8db){return{'type':'format','content':o(_0x47ce0a,'*Format:*\x20%0',_0x2ca8db)};}});}}class ot extends _0x4ea64e{['afterInit'](){const _0x1f9830=this['editor'],_0x52e577=_0x1f9830['commands']['get']('importWord'),_0x39f043=_0x1f9830['commands']['get']('trackChanges');_0x52e577&&(_0x52e577['on']('execute',(_0x2438e2,[,_0x2217c1])=>{this['_trackChangesValueDuringImport']=_0x39f043['value'],_0x2217c1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x52e577,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x52e577,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x39f043['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1f9830['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x284efb,_0x5da58d){const {suggestions:_0x38f046}=_0x5da58d,_0x59b3d6=this['editor']['commands']['get']('trackChanges'),_0x2f983b=_0x59b3d6['value'];this['_trackChangesValueDuringImport']!==_0x2f983b&&(_0x59b3d6['execute'](),this['_trackChangesExecuted']=!0x0),_0x38f046&&_0x38f046['forEach'](({id:_0x40a508,type:_0x3e46fd,author:_0x5e40d2,created_at:_0x4c79a5})=>{const _0x1915a8={'id':_0x40a508,'type':_0x3e46fd,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5e40d2,'createdAt':_0x4c79a5?new Date(_0x4c79a5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1915a8);});}constructor(_0x357c12){super(_0x357c12),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x4ea64e{['afterInit'](){const _0x527191=this['editor'],_0x26221c=_0x527191['plugins']['get']('TrackChangesEditing');if(_0x527191['plugins']['has']('IndentEditing')&&(_0x26221c['enableCommand']('indent'),_0x26221c['enableCommand']('outdent')),_0x527191['plugins']['has']('IndentBlock')){for(const _0xe983c0 of['indentBlock','outdentBlock'])_0x26221c['enableDefaultAttributesIntegration'](_0xe983c0);}const _0x519b0c=_0x527191['locale'];_0x26221c['registerBlockAttribute']('blockIndent'),_0x26221c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x519b0c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x872112=this['editor'],_0x4af51f=_0x872112['locale'],_0x2e3321=_0x872112['plugins']['get']('TrackChangesEditing');_0x2e3321['descriptionFactory']['registerDescriptionCallback'](_0x3f589b=>{if('formatBlock'!=_0x3f589b['type'])return;const {data:_0x52202b}=_0x3f589b;if(!_0x52202b)return;if('indentBlock'!=_0x52202b['commandName']&&'outdentBlock'!=_0x52202b['commandName'])return;const _0x27f9b5=_0x3f589b['getItems']()[0x0],_0x6ff761=_0x2e3321['descriptionFactory']['getItemLabel'](_0x27f9b5);return'indentBlock'==_0x52202b['commandName']?{'type':'format','content':o(_0x4af51f,'*Indent:*\x20%0',_0x6ff761)}:'outdentBlock'==_0x52202b['commandName']?{'type':'format','content':o(_0x4af51f,'*Outdent:*\x20%0',_0x6ff761)}:void 0x0;});}}class at extends _0x4ea64e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4ea64e{['afterInit'](){const _0x4f9757=this['editor'];if(!_0x4f9757['plugins']['has']('LinkEditing'))return;const _0x54223e=_0x4f9757['plugins']['get']('TrackChangesEditing'),_0x50d036=_0x4f9757['commands']['get']('link');_0x54223e['enableDefaultAttributesIntegration']('link'),_0x54223e['enableDefaultAttributesIntegration']('unlink'),_0x54223e['registerInlineAttribute']('linkHref');for(const _0x47d9e9 of _0x50d036['manualDecorators'])_0x54223e['registerInlineAttribute'](_0x47d9e9['id']),_0x54223e['descriptionFactory']['registerAttributeLabel'](_0x47d9e9['id'],'link\x20('+_0x47d9e9['label']['toLowerCase']()+')');_0x54223e['descriptionFactory']['registerDescriptionCallback'](_0x2a2548=>{if('attribute'!=_0x2a2548['type'])return;const {data:_0x456285}=_0x2a2548;if(!_0x456285||'linkHref'!=_0x456285['key'])return;const _0x58a1fc=_0x456285['newValue'],_0x5c32b2=_0x4f9757['locale'];return{'type':'format','content':null==_0x58a1fc?o(_0x5c32b2,'*Remove\x20link*'):o(_0x5c32b2,'*Set\x20link:*\x20%0','\x22'+_0x58a1fc+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a619c=this['editor'],_0x6f5470=_0x4a619c['locale'];_0x4a619c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e0553=>{if('formatInline'!=_0x3e0553['type'])return;const {data:_0x59235b}=_0x3e0553;if(_0x59235b){if('link'==_0x59235b['commandName']){const _0x5970ad=_0x59235b['commandParams'][0x0];return{'type':'format','content':o(_0x6f5470,'*Set\x20link:*\x20%0','\x22'+_0x5970ad+'\x22')};}return'unlink'==_0x59235b['commandName']?{'type':'format','content':o(_0x6f5470,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4ea64e{['afterInit'](){const _0xf30c5a=this['editor'],_0x35d2cf=_0xf30c5a['locale'];if(!_0xf30c5a['plugins']['has']('LegacyListEditing'))return;const _0x12b612=_0xf30c5a['plugins']['get']('TrackChangesEditing'),_0x5f0b0b=_0xf30c5a['plugins']['has']('LegacyTodoListEditing');function _0x18f1e0(_0xc0deb9){return()=>{const _0x5b7408=_0xf30c5a['model']['document']['selection'],_0xe01c23=_0xf30c5a['commands']['get'](_0xc0deb9);if(_0xe01c23['value'])return void _0xf30c5a['execute']('paragraph',{});const _0x4d3506=_0xc0deb9['slice'](0x0,-0x4),_0x410c9c=function(_0x5dc77b,_0x588e51,_0x174a18){let _0x2b399c=Array['from'](_0x5dc77b)['filter'](_0x16e597=>function(_0x5c600b,_0x322b1b){return _0x322b1b['checkChild'](_0x5c600b['parent'],'listItem')&&!_0x322b1b['isObject'](_0x5c600b);}(_0x16e597,_0x174a18));_0x2b399c=_0x2b399c['filter'](_0xb72c0b=>!_0xb72c0b['is']('element','listItem')||_0xb72c0b['getAttribute']('listType')!=_0x588e51);const _0x3e20af=new Set();for(const _0x188da4 of _0x2b399c)_0x188da4['is']('element','listItem')?_0x3e20af['add'](me(_0x188da4)):_0x3e20af['add'](_0x188da4);return Array['from'](_0x3e20af);}(_0x5b7408['getSelectedBlocks'](),_0x4d3506,_0xf30c5a['model']['schema']);_0xf30c5a['model']['change'](()=>{for(const _0x1a6ea5 of _0x410c9c)_0x12b612['markBlockFormat'](_0x1a6ea5,{'commandName':_0xc0deb9,'commandParams':[{'forceValue':!_0xe01c23['value']}],'formatGroupId':'blockName'},fe(_0x1a6ea5));});};}function _0x13be26(_0x37c550){return()=>{const _0xc15549=function(_0x2c9bae){let _0x29f88c=Array['from'](_0x2c9bae);const _0x317807=_0x29f88c['findIndex'](_0x399e38=>'listItem'!=_0x399e38['name']);return _0x317807>-0x1&&(_0x29f88c=_0x29f88c['slice'](0x0,_0x317807)),_0x29f88c;}(_0xf30c5a['model']['document']['selection']['getSelectedBlocks']()),_0x175de8=_0xf30c5a['model']['createRange'](_0xf30c5a['model']['createPositionAt'](_0xc15549[0x0],'before'),_0xf30c5a['model']['createPositionAt'](_0xc15549[_0xc15549['length']-0x1],'end'));_0xf30c5a['model']['change'](()=>{_0x12b612['markBlockFormat'](_0x175de8,{'commandName':_0x37c550,'commandParams':[],'formatGroupId':'listIndent'},function(_0x18d48d){const _0x192549=new Set();for(const _0x5250c4 of _0x18d48d){let _0x3c4185=_0x5250c4['nextSibling'];for(;_0x3c4185&&_0x3c4185['getAttribute']('listIndent')>_0x5250c4['getAttribute']('listIndent');)_0x192549['add'](_0x3c4185),_0x3c4185=_0x3c4185['nextSibling'];}return Array['from'](_0x192549);}(_0xc15549));});};}_0x12b612['enableCommand']('numberedList',_0x18f1e0('numberedList')),_0x12b612['enableCommand']('bulletedList',_0x18f1e0('bulletedList')),_0x5f0b0b&&_0x12b612['enableCommand']('todoList',_0x18f1e0('todoList')),_0x12b612['enableCommand']('indentList',_0x13be26('indentList')),_0x12b612['enableCommand']('outdentList',_0x13be26('outdentList')),_0x5f0b0b&&_0x12b612['enableCommand']('checkTodoList',()=>{const _0x77ee3c=_0xf30c5a['commands']['get']('checkTodoList'),_0x1b8c27=Array['from'](_0x77ee3c['_selectedElements']);_0x1b8c27['filter'](_0x337b7b=>_0x337b7b['getAttribute']('todoListChecked')!=_0x77ee3c['value']),_0xf30c5a['model']['change'](()=>{for(const _0x4ac25b of _0x1b8c27)_0x12b612['markBlockFormat'](_0x4ac25b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x77ee3c['value']}]});});}),_0x12b612['descriptionFactory']['registerElementLabel']('listItem',_0x1af9d0=>o(_0x35d2cf,'ELEMENT_LIST_ITEM',_0x1af9d0)),_0x12b612['descriptionFactory']['registerDescriptionCallback'](_0x1b8c0e=>{if('formatBlock'!=_0x1b8c0e['type']&&'formatInline'!=_0x1b8c0e['type'])return;const {data:_0x37649a}=_0x1b8c0e;if(_0x37649a){if('numberedList'==_0x37649a['commandName']||'bulletedList'==_0x37649a['commandName']||'todoList'==_0x37649a['commandName'])switch(_0x37649a['commandName']['replace']('List','')){case'bulleted':return _0x417170(o(_0x35d2cf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x417170(o(_0x35d2cf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x417170(o(_0x35d2cf,'ELEMENT_TODO_LIST'));}if('indentList'==_0x37649a['commandName'])return{'type':'format','content':o(_0x35d2cf,'*Indent:*\x20%0',o(_0x35d2cf,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x37649a['commandName'])return{'type':'format','content':o(_0x35d2cf,'*Outdent:*\x20%0',o(_0x35d2cf,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x37649a['commandName'])return _0x37649a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x35d2cf,'*Check\x20item*')}:{'type':'format','content':o(_0x35d2cf,'*Uncheck\x20item*')};}function _0x417170(_0x43c68b){return{'type':'format','content':o(_0x35d2cf,'*Change\x20to:*\x20%0',_0x43c68b)};}});}}function me(_0x2f77f9){const _0x38efb2=_0x2f77f9['getAttribute']('listIndent');if(0x0==_0x38efb2)return _0x2f77f9;let _0x45ea92=_0x2f77f9;for(;_0x2f77f9['previousSibling']&&_0x2f77f9['previousSibling']['is']('element','listItem');){const _0x231d23=_0x2f77f9['previousSibling']['getAttribute']('listIndent');if(_0x231d23==_0x38efb2)_0x45ea92=_0x2f77f9['previousSibling'];else{if(_0x231d23<_0x38efb2)break;}_0x2f77f9=_0x2f77f9['previousSibling'];}return _0x45ea92;}function fe(_0x470d22){const _0x4d6326=[];if(_0x470d22['is']('element','listItem')&&_0x470d22['getAttribute']('listIndent')>0x0){let _0x474761=_0x470d22['nextSibling'];for(;_0x474761&&'listItem'==_0x474761['name']&&_0x474761['getAttribute']('listIndent')==_0x470d22['getAttribute']('listIndent');)_0x4d6326['push'](_0x474761),_0x474761=_0x474761['nextSibling'];}return _0x4d6326;}class K extends _0x4ea64e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x72883a=this['editor']['config']['get']('list.properties'),_0x74fe39=this['editor']['plugins']['get']('TrackChangesEditing');_0x72883a['styles']&&_0x74fe39['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x72883a['reversed']&&_0x74fe39['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x72883a['startIndex']&&_0x74fe39['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x74fe39['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3d36ff,_0x35fe58={}){const _0x30c0cb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d2c90=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x30c0cb['markMultiRangeBlockFormat'](_0x5d2c90,{'commandName':'listStyle','commandParams':[{'type':_0x35fe58['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1ddb17,_0x4fc1a2={}){const _0x3db051=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4188c6=this['_getSuggestionBlocks'](_0x548623=>_0x548623['is']('element','listItem')&&'numbered'===_0x548623['getAttribute']('listType'));if(_0x4188c6['length']<0x1)return;const _0x3c740b=_0x4188c6['map'](_0x4604cf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4604cf,'before'),this['editor']['model']['createPositionAt'](_0x4604cf,0x0)));this['editor']['model']['change'](()=>{_0x3db051['markMultiRangeBlockFormat'](_0x3c740b,{'commandName':'listReversed','commandParams':[{'reversed':_0x4fc1a2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x160d16,_0x382fb4={}){const _0x295d77=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19177d=this['_getSuggestionBlocks'](_0x19eee5=>_0x19eee5['is']('element','listItem')&&'numbered'===_0x19eee5['getAttribute']('listType'));if(_0x19177d['length']<0x1)return;const _0xdcceb3=_0x19177d['map'](_0x494459=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x494459,'before'),this['editor']['model']['createPositionAt'](_0x494459,0x0)));this['editor']['model']['change'](()=>{_0x295d77['markMultiRangeBlockFormat'](_0xdcceb3,{'commandName':'listStart','commandParams':[{'startIndex':_0x382fb4['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x15d1be){if('formatBlock'!=_0x15d1be['type']&&'formatInline'!=_0x15d1be['type'])return;const _0x51b820=this['editor']['locale'],{data:_0x3beeba}=_0x15d1be;if(!_0x3beeba)return;let _0x221e9e,_0x46ef40;switch(_0x3beeba['commandName']){case'listStyle':_0x221e9e='*Change\x20to:*\x20%0',_0x46ef40={'type':'format','content':o(_0x51b820,_0x221e9e,o(_0x51b820,this['_getTranslationKeyForListStyle'](_0x3beeba['commandParams'][0x0]['type'])))};break;case'listReversed':_0x221e9e=_0x3beeba['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x46ef40={'type':'format','content':o(_0x51b820,_0x221e9e)};break;case'listStart':_0x221e9e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x46ef40={'type':'format','content':o(_0x51b820,_0x221e9e,_0x3beeba['commandParams'][0x0]['startIndex'])};}return _0x46ef40;}['_getSuggestionBlocksForListStyle'](){var _0x3e36ac,_0x24df8a,_0x42db9a,_0xde9670;const _0x3c99f4=this['editor']['plugins']['get']('LegacyListUtils');let _0x4305f3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x3e36ac=_0x4305f3[0x0])||void 0x0===_0x3e36ac?void 0x0:_0x3e36ac['is']('element','listItem'))&&_0x4305f3['unshift'](..._0x3c99f4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x24df8a=_0x4305f3[_0x4305f3['length']-0x1])||void 0x0===_0x24df8a?void 0x0:_0x24df8a['is']('element','listItem'))&&_0x4305f3['push'](..._0x3c99f4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4305f3=[...new Set(_0x4305f3)],(null===(_0xde9670=null===(_0x42db9a=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x42db9a?void 0x0:_0x42db9a['parent'])||void 0x0===_0xde9670?void 0x0:_0xde9670['is']('element','listItem'))&&(_0x4305f3=_0x4305f3['filter'](_0x8cbc4=>_0x8cbc4['is']('element','listItem'))),_0x4305f3;}['_getSuggestionBlocks'](_0x240ded){const _0x543931=this['editor']['plugins']['get']('LegacyListUtils');let _0x11936c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x240ded)['map'](_0x5222ec=>{const _0x62d60d=this['editor']['model']['createPositionAt'](_0x5222ec,0x0);return[..._0x543931['getSiblingNodes'](_0x62d60d,'backward'),..._0x543931['getSiblingNodes'](_0x62d60d,'forward')];})['flat']();return _0x11936c=[...new Set(_0x11936c)],_0x11936c;}['_getTranslationKeyForListStyle'](_0x4d0485){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4d0485)||'default')['toUpperCase']()+'_LIST_'+_0x4d0485['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4ea64e{['afterInit'](){const _0x505882=this['editor'];if(!_0x505882['plugins']['has']('MediaEmbedEditing'))return;const _0x4453cd=_0x505882['plugins']['get']('TrackChangesEditing'),_0x2faf7e=_0x505882['locale'];_0x4453cd['enableCommand']('mediaEmbed'),_0x4453cd['descriptionFactory']['registerElementLabel']('media',_0x39f491=>o(_0x2faf7e,'ELEMENT_MEDIA',_0x39f491)),_0x505882['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x48a122,{writer:_0x113713,options:_0x270711})=>{if(_0x270711['showSuggestionHighlights'])return _0x113713['createEmptyElement']('div');},'converterPriority':'high'}),_0x505882['data']['downcastDispatcher']['on']('attribute:url:media',(_0x453ca5,_0x1d0e90,_0x26a82f)=>{_0x26a82f['options']['showSuggestionHighlights']&&_0x453ca5['stop']();},{'priority':'high'});}}class gt extends _0x4ea64e{['afterInit'](){const _0x54918c=this['editor'];_0x54918c['plugins']['has']('MentionEditing')&&_0x54918c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4ea64e{['afterInit'](){const _0x1edb7f=this['editor'],_0x4924e2=_0x1edb7f['plugins']['get']('TrackChangesEditing');_0x1edb7f['plugins']['has']('MultiLevelList')&&(_0x4924e2['enableDefaultAttributesIntegration']('multiLevelList'),_0x4924e2['registerBlockAttribute']('listMarkerStyle'),_0x4924e2['descriptionFactory']['registerDescriptionCallback'](_0x2b40ea=>this['handleDescriptions'](_0x2b40ea)));}['handleDescriptions'](_0x266818){const _0x216b4e=this['editor']['locale'],{data:_0x54268d}=_0x266818,_0x28de4b={'type':'format','content':''};if(_0x54268d&&'listMarkerStyle'==_0x54268d['key']){if(!_0x54268d['oldValue'])return{'type':'format','content':o(_0x216b4e,'*Set\x20format:*\x20%0',o(_0x216b4e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x54268d['newValue']+')'};if(!_0x54268d['newValue']){let _0x21b543=_0x266818['head'];for(;_0x21b543;){if(_0x21b543['data']&&'listType'==_0x21b543['data']['key']&&_0x21b543['data']['newValue'])return _0x28de4b;_0x21b543=_0x21b543['next'];}return{'type':'format','content':o(_0x216b4e,'*Remove\x20format:*\x20%0',o(_0x216b4e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x54268d['oldValue']+')'};}}}}class mt extends _0x4ea64e{['afterInit'](){const _0x2fe255=this['editor'];if(!_0x2fe255['plugins']['has']('PageBreakEditing'))return;_0x2fe255['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5a281b=_0x2fe255['plugins']['get']('TrackChangesEditing'),_0x236422=_0x2fe255['locale'];_0x5a281b['descriptionFactory']['registerElementLabel']('pageBreak',_0x385d0e=>o(_0x236422,'ELEMENT_PAGE_BREAK',_0x385d0e));}}class dt extends _0x4ea64e{['afterInit'](){const _0x2c3459=this['editor'];if(!_0x2c3459['plugins']['has']('Paragraph'))return;const _0x163192=_0x2c3459['locale'],_0x36ce0c=_0x2c3459['plugins']['get']('TrackChangesEditing');_0x36ce0c['descriptionFactory']['registerElementLabel']('paragraph',_0x5592c6=>o(_0x163192,'ELEMENT_PARAGRAPH',_0x5592c6)),_0x36ce0c['enableDefaultAttributesIntegration']('paragraph'),_0x36ce0c['enableCommand']('insertParagraph'),_0x2c3459['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2c3459),{'priority':'highest'}),_0x2c3459['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3acbeb,_0x5bcd02,_0x127642)=>{_0x127642['options']['showSuggestionHighlights']&&nr(_0x2c3459,{'showActiveMarker':!0x1})(_0x3acbeb,_0x5bcd02,_0x127642);},{'priority':'highest'});const _0x35ae87=_0x36ce0c['descriptionFactory'];_0x35ae87['registerDescriptionCallback'](_0x484d5f=>{if('insertion'!==_0x484d5f['type'])return;const {start:_0x10248a,end:_0x3cb087}=_0x484d5f['getFirstRange']();if(!_0x10248a['isTouching'](_0x3cb087)||!_0x10248a['nodeAfter'])return;const _0x5aba79=_0x2c3459['model']['schema'],_0x13d70c=_0x10248a['nodeAfter'];return _0x5aba79['isBlock'](_0x13d70c)&&!_0x5aba79['isLimit'](_0x13d70c)&&_0x5aba79['checkChild'](_0x13d70c,'$text')?{'type':'insertion','content':o(_0x163192,'*Insert:*\x20%0',_0x35ae87['getItemLabel'](_0x13d70c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47294b=this['editor'],_0x5d2e5c=_0x47294b['locale'];_0x47294b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12cd4d=>{if('formatBlock'!=_0x12cd4d['type'])return;const {data:_0x53a809}=_0x12cd4d;return _0x53a809&&'paragraph'==_0x53a809['commandName']?{'type':'format','content':o(_0x5d2e5c,'*Change\x20to:*\x20%0',o(_0x5d2e5c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x540735,{showActiveMarker:_0x115b41=!0x0}={}){return(_0x409a12,_0xc1ecb,_0x618c40)=>{const _0x14a549=_0x540735['plugins']['get']('TrackChangesEditing'),_0x1b2f3a=_0xc1ecb['markerRange']['start'],_0x34a552=_0xc1ecb['markerRange']['end'],_0x3eef2b=_0x540735['model']['schema'];if(!_0x1b2f3a['isTouching'](_0x34a552)||!_0x1b2f3a['nodeAfter'])return;const _0x5ee06d=_0x1b2f3a['nodeAfter'];if(_0x3eef2b['isBlock'](_0x5ee06d)&&!_0x3eef2b['isLimit'](_0x5ee06d)&&_0x3eef2b['checkChild'](_0x5ee06d,'$text')){if(!_0x618c40['consumable']['consume'](_0xc1ecb['markerRange'],_0x409a12['name']))return;const _0x37452a=_0x618c40['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x3121a1=_0x618c40['mapper']['toViewPosition'](_0x34a552);_0x115b41&&_0x14a549['activeMarkers']['includes'](_0xc1ecb['markerName'])&&_0x618c40['writer']['addClass']('ck-suggestion-marker--active',_0x37452a),_0x618c40['writer']['insert'](_0x3121a1,_0x37452a),_0x618c40['mapper']['bindElementToMarker'](_0x37452a,_0xc1ecb['markerName']);}};}class pt extends _0x4ea64e{['afterInit'](){const _0x315161=this['editor'];if(!_0x315161['plugins']['has']('RemoveFormatEditing'))return;_0x315161['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13573d=this['editor'];_0x13573d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36f595=>{if('formatBlock'!=_0x36f595['type']&&'formatInline'!=_0x36f595['type'])return;const {data:_0x223edc}=_0x36f595;return _0x223edc&&'removeFormat'==_0x223edc['commandName']?{'type':'format','content':o(_0x13573d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4ea64e{['afterInit'](){const _0x120f93=this['editor'];if(!_0x120f93['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1813ef=_0x120f93['plugins']['get']('TrackChangesEditing');_0x1813ef['enableCommand']('goToPreviousRestrictedEditingException'),_0x1813ef['enableCommand']('goToNextRestrictedEditingException');const _0x5b59b8=_0x120f93['plugins']['get']('RestrictedEditingModeEditing');_0x5b59b8['enableCommand']('trackChanges'),_0x5b59b8['enableCommand']('acceptSuggestion'),_0x5b59b8['enableCommand']('discardSuggestion'),_0x5b59b8['enableCommand']('acceptAllSuggestions'),_0x5b59b8['enableCommand']('discardAllSuggestions'),_0x5b59b8['enableCommand']('acceptSelectedSuggestions'),_0x5b59b8['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4ea64e{static get['requires'](){return[_0x20f197];}['init'](){const _0x5e7b99=this['editor'],_0x5b4274=_0x5e7b99['plugins']['get']('TrackChangesEditing');_0x5b4274['enableCommand']('shiftEnter'),_0x5e7b99['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x5e7b99),{'priority':'high'}),_0x5e7b99['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x5e7b99),{'priority':'high'}),_0x5e7b99['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ccf12,_0xc56f1f,_0x21086a)=>{_0x21086a['options']['showSuggestionHighlights']&&de(_0x5e7b99,{'showActiveMarker':!0x1})(_0x4ccf12,_0xc56f1f,_0x21086a);}),_0x5b4274['descriptionFactory']['registerElementLabel']('softBreak',_0x1bcd9d=>o(_0x5e7b99['locale'],'ELEMENT_LINE_BREAK',_0x1bcd9d));}}function de(_0x1e468a,{showActiveMarker:_0x5cba5b=!0x0}={}){return(_0x10643c,_0x39a0cb,_0x2f509c)=>{const _0x5213cf=_0x1e468a['plugins']['get']('TrackChangesEditing');if(!_0x2f509c['consumable']['test'](_0x39a0cb['markerRange'],_0x10643c['name']))return;const _0x279511=_0x1e468a['model'];for(const _0x58c576 of _0x39a0cb['markerRange']['getItems']()){if(!_0x58c576['is']('element','softBreak'))continue;const _0x27cec8='deletion'==_0x39a0cb['markerName']['split'](':')[0x1]?'merge':'split',_0x18290c=_0x2f509c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x27cec8}),_0x30b4cc=_0x2f509c['mapper']['toViewPosition'](_0x279511['createPositionBefore'](_0x58c576));_0x5cba5b&&_0x5213cf['activeMarkers']['includes'](_0x39a0cb['markerName'])&&_0x2f509c['writer']['addClass']('ck-suggestion-marker--active',_0x18290c),_0x2f509c['writer']['insert'](_0x30b4cc,_0x18290c),_0x2f509c['mapper']['bindElementToMarker'](_0x18290c,_0x39a0cb['markerName']);}};}class wt extends _0x4ea64e{['afterInit'](){const _0x39e648=this['editor'],_0x36a8bc=_0x39e648['model'],_0x245a1b=_0x39e648['locale'];if(!_0x39e648['plugins']['has']('StandardEditingModeEditing'))return;const _0x5ca091=_0x39e648['plugins']['get']('TrackChangesEditing'),_0x42a285='restrictedEditingException',_0x24de0b=_0x39e648['commands']['get'](_0x42a285);_0x5ca091['enableCommand'](_0x42a285,(_0x4f291b,_0x316b8a={})=>{const _0x4d7d1f=_0x36a8bc['document']['selection'];if(_0x4d7d1f['isCollapsed'])return void _0x4f291b(_0x316b8a);const _0x15101c=void 0x0!==_0x316b8a['forceValue']?_0x316b8a['forceValue']:!_0x24de0b['value'];_0x36a8bc['change'](()=>{const _0x2ec625=Array['from'](_0x4d7d1f['getRanges']());for(const _0x5a9f74 of _0x2ec625){const _0x5ba9d7=_0x15101c?[_0x5a9f74]:io(_0x42a285,_0x5a9f74,_0x36a8bc);for(const _0x2236dd of _0x5ba9d7)_0x5ca091['markInlineFormat'](_0x2236dd,{'commandName':_0x42a285,'commandParams':[{'forceValue':_0x15101c}]});}});}),_0x5ca091['descriptionFactory']['registerDescriptionCallback'](_0x1da57d=>{if('formatBlock'!=_0x1da57d['type']&&'formatInline'!=_0x1da57d['type'])return;const {data:_0x82d14d}=_0x1da57d;return _0x82d14d&&_0x82d14d['commandName']==_0x42a285?_0x82d14d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x245a1b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x245a1b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4ea64e{['afterInit'](){const _0x488bc0=this['editor'];if(!_0x488bc0['plugins']['has']('Style')||!_0x488bc0['plugins']['has']('DataSchema'))return;const _0x276975=_0x488bc0['plugins']['get']('TrackChangesEditing'),_0x261f99=_0x488bc0['locale'],_0x118a63=_0x488bc0['config']['get']('style')||{},_0xe94810=_0x488bc0['plugins']['get']('GeneralHtmlSupport'),_0x289015=_0x488bc0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x488bc0['plugins']['get']('DataSchema'),_0x118a63['definitions']);_0x276975['enableDefaultAttributesIntegration']('style');const _0x18ccc9=new Set();for(const _0x2343ed of _0x289015['block']){const _0x547c3e=_0xe94810['getGhsAttributeNameForElement'](_0x2343ed['element']);_0x18ccc9['add'](_0x547c3e);}const _0x2f68d9=new Set();for(const _0xcac25e of _0x289015['inline']){const _0x3cc9d9=_0xe94810['getGhsAttributeNameForElement'](_0xcac25e['element']);_0x2f68d9['add'](_0x3cc9d9);for(const _0x3ef8e1 of _0xcac25e['ghsAttributes'])_0x2f68d9['add'](_0x3ef8e1);}for(const _0x441971 of _0x18ccc9)_0x276975['registerBlockAttribute'](_0x441971),_0x276975['descriptionFactory']['registerAttributeLabel'](_0x441971,o(_0x261f99,'FORMAT_STYLE'));for(const _0x3a66f4 of _0x2f68d9)_0x276975['registerInlineAttribute'](_0x3a66f4),_0x276975['descriptionFactory']['registerAttributeLabel'](_0x3a66f4,o(_0x261f99,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35fa11=this['editor'],_0x5d766f=_0x35fa11['locale'];_0x35fa11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x385ea5=>{if('formatBlock'!=_0x385ea5['type']&&'formatInline'!=_0x385ea5['type'])return;const {data:_0x26ae45}=_0x385ea5;return _0x26ae45&&'style'===_0x26ae45['commandName']?_0x26ae45['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d766f,'*Set\x20format:*\x20%0',_0x26ae45['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5d766f,'*Remove\x20format:*\x20%0',_0x26ae45['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4ea64e{['afterInit'](){const _0xc365d=this['editor'],_0x26699c=_0xc365d['model']['document']['selection'];if(!_0xc365d['plugins']['has']('TableEditing'))return;const _0x122bc9=_0xc365d['locale'],_0x37f5ed=_0xc365d['plugins']['get']('TrackChangesEditing'),_0x3542a0=_0xc365d['plugins']['get']('TableUtils');_0x37f5ed['descriptionFactory']['registerElementLabel']('table',_0x48b64a=>o(_0x122bc9,'ELEMENT_TABLE',_0x48b64a)),this['_setupColumnsRowsFixing'](),_0x37f5ed['enableCommand']('insertTable'),_0x37f5ed['enableCommand']('selectTableRow'),_0x37f5ed['enableCommand']('selectTableColumn');for(const _0x172c85 of['insertTableRowAbove','insertTableRowBelow']){const _0x12134a=_0xc365d['commands']['get'](_0x172c85);_0x37f5ed['enableCommand'](_0x172c85,_0x3b11e4=>{_0xc365d['model']['change'](_0x285e00=>{_0x3b11e4();const _0x3833db='above'===_0x12134a['order'],_0x1e5f5d=_0x3542a0['getSelectionAffectedTableCells'](_0x26699c),_0x2b7499=_0x3542a0['getRowIndexes'](_0x1e5f5d),_0x445a1e=_0x3833db?_0x2b7499['first']-0x1:_0x2b7499['last']+0x1,_0x41b1cb=_0x1e5f5d[0x0]['findAncestor']('table'),_0x5397fc=_0x3542a0['createTableWalker'](_0x41b1cb,{'startRow':_0x445a1e,'endRow':_0x445a1e}),_0x17fdb4=Array['from'](_0x5397fc)['map'](_0x46ecb9=>_0x285e00['createRangeOn'](_0x46ecb9['cell']));_0x37f5ed['markMultiRangeInsertion'](_0x17fdb4,'tableRow');});});}for(const _0x20990b of['insertTableColumnLeft','insertTableColumnRight']){const _0x57731d=_0xc365d['commands']['get'](_0x20990b);_0x37f5ed['enableCommand'](_0x20990b,_0x41c79e=>{_0xc365d['model']['change'](_0x508117=>{_0x41c79e();const _0x31f6ae='left'===_0x57731d['order'],_0x558c38=_0x3542a0['getSelectionAffectedTableCells'](_0x26699c),_0x4d430a=_0x3542a0['getColumnIndexes'](_0x558c38),_0x56e123=_0x31f6ae?_0x4d430a['first']-0x1:_0x4d430a['last']+0x1,_0x50e064=_0x558c38[0x0]['findAncestor']('table'),_0x130635=_0x3542a0['createTableWalker'](_0x50e064,{'startRow':0x0,'column':_0x56e123,'includeAllSlots':!0x1}),_0x1a40ef=Array['from'](_0x130635)['map'](_0x3d1eb4=>_0x508117['createRangeOn'](_0x3d1eb4['cell']));_0x37f5ed['markMultiRangeInsertion'](_0x1a40ef,'tableColumn');});});}for(const _0x176133 of['removeTableRow','removeTableColumn']){const _0x4cb0bb=_0x176133['substr'](0xb),_0x1c27a2=_0x4cb0bb['toLowerCase'](),_0x27c7f2=_0x1c27a2['substr'](0x0,0x3)+'span',_0x2a82a3='table'+_0x4cb0bb,_0x1c92c4='min'+_0x4cb0bb,_0x2f7f07='max'+_0x4cb0bb;_0x37f5ed['enableCommand'](_0x176133,()=>{_0xc365d['model']['change'](_0x3ff25d=>{const _0x3e6407=_0x3542a0['getSelectionAffectedTableCells'](_0x26699c),_0x5e01bf=_0x3e6407[0x0]['findAncestor']('table');let _0x3e0854;if('removeTableRow'==_0x176133){const _0x4af2cf=_0x3542a0['getRowIndexes'](_0x3e6407);_0x3e0854={'startRow':_0x4af2cf['first'],'endRow':_0x4af2cf['last'],'includeAllSlots':!0x0};}else{const _0xdbc4aa=_0x3542a0['getColumnIndexes'](_0x3e6407);_0x3e0854={'startColumn':_0xdbc4aa['first'],'endColumn':_0xdbc4aa['last'],'includeAllSlots':!0x0};}const _0x356edd=_0x3542a0['createTableWalker'](_0x5e01bf,_0x3e0854),_0x12b64d=Array['from'](_0x356edd)['map'](({cell:_0x21f0c8})=>_0x21f0c8),_0xead927=Ee(_0x12b64d['filter'](_0x56b1a8=>_0x56b1a8['hasAttribute'](_0x27c7f2))),_0x401190=Ee(_0x12b64d['filter'](_0x16e37b=>!_0x16e37b['hasAttribute'](_0x27c7f2)))['map'](_0x385add=>_0x3ff25d['createRangeOn'](_0x385add)),_0x675ead=_0x37f5ed['markMultiRangeDeletion'](_0x401190,_0x2a82a3);if(_0x675ead&&('tableRow'==_0x675ead['subType']||'tableColumn'==_0x675ead['subType'])){const _0x46a9b8=this['_getSuggestionCoords'](_0x675ead);for(const _0x395736 of _0xead927){const _0x145418=_0x3ff25d['createRangeOn'](_0x395736),_0x448748=_0x3542a0['getCellLocation'](_0x395736),_0x5e9dcc=_0x395736['getAttribute'](_0x27c7f2)-0x1,_0x39d67c=_0x46a9b8[_0x1c92c4],_0x10242a=_0x46a9b8[_0x2f7f07];_0x39d67c<=_0x448748[_0x1c27a2]&&_0x448748[_0x1c27a2]+_0x5e9dcc<=_0x10242a&&_0x675ead['addRange'](_0x145418);}}});});}function _0x2a263d(_0x4ea5a0){const _0x2c39f4=Array['from'](_0x26699c['getRanges']())['map'](_0x2865e9=>_0xf2dec5['fromRange'](_0x2865e9));_0xc365d['model']['change'](_0x322dd0=>{const _0x466886=_0x322dd0['batch'];_0x4ea5a0=_0x4ea5a0['filter'](_0x1a4664=>'$graveyard'!=_0x1a4664['root']['rootName']),_0x322dd0['setSelection'](_0x4ea5a0),_0xc365d['commands']['get']('removeTableRow')['refresh'](),_0xc365d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xc365d['model']['enqueueChange'](()=>{_0xc365d['model']['enqueueChange'](_0x466886,_0x16095d=>{const _0x51f4ab=_0x2c39f4['filter'](_0x39b604=>'$graveyard'!=_0x39b604['root']['rootName']);_0x51f4ab['length']>0x0&&_0x16095d['setSelection'](_0x51f4ab);for(const _0x1fab89 of _0x2c39f4)_0x1fab89['detach']();});});});}function _0x45c514(_0x50ee75){_0xc365d['model']['change'](_0x437365=>{const _0x406820=Array['from'](_0x26699c['getRanges']())['map'](_0x50e8d4=>_0xf2dec5['fromRange'](_0x50e8d4)),_0x3c0f50=[];for(const _0x1d9d4b of _0x50ee75)for(const _0x3eeb03 of _0x1d9d4b['getItems']({'shallow':!0x0}))_0x3c0f50['push'](_0x3eeb03);for(const _0x5dd947 of _0x3c0f50)'$graveyard'!=_0x5dd947['root']['rootName']&&(_0x437365['setSelection'](_0x437365['createPositionAt'](_0x5dd947,0x0)),_0xc365d['commands']['get']('removeTableColumn')['refresh'](),_0xc365d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x327f90=_0x406820['filter'](_0x2a9817=>'$graveyard'!=_0x2a9817['root']['rootName']);_0x327f90['length']>0x0&&_0x437365['setSelection'](_0x327f90);for(const _0x3ef1a6 of _0x406820)_0x3ef1a6['detach']();});}function _0x4d7309(_0x4be554,_0x2e5e82){return _0x2e5e82['every'](_0x4c46d7=>_0x4be554['some'](_0x4238dd=>_0x4238dd['end']['isEqual'](_0x4c46d7['start'])||_0x4c46d7['end']['isEqual'](_0x4238dd['start'])));}function _0x34f4b0(_0x25b07c,_0x310ea5){return _0x25b07c['some'](_0x2fa84a=>_0x310ea5['some'](_0x236c9e=>_0x2fa84a['end']['isTouching'](_0x236c9e['start'])));}_0xc365d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x57e865,_0xf843c0,_0x1d6b8a)=>{if(!_0x1d6b8a['options']['showSuggestionHighlights'])return;const _0x3a694c=_0xf843c0['item'];if(!_0x3a694c)return;const _0x59682c=_0x1d6b8a['mapper']['toViewElement'](_0x3a694c);function _0x3e265f(_0x31c8eb){return Array['isArray'](_0x31c8eb)?_0x31c8eb:[_0x31c8eb];}_0x59682c&&'tableCell'===_0x3a694c['name']&&_0x39e6ef(_0x59682c,_0x1d6b8a['writer'],(_0x49a9d7,_0x4c6cf6,_0x469574)=>_0x469574['addClass'](_0x3e265f(_0x4c6cf6['classes']),_0x49a9d7),(_0x1bfb5c,_0x54ac5e,_0x392e5)=>_0x392e5['removeClass'](_0x3e265f(_0x54ac5e['classes']),_0x1bfb5c));},{'priority':'highest'}),_0x37f5ed['descriptionFactory']['registerDescriptionCallback'](_0x553abf=>{if('insertion'!=_0x553abf['type']&&'deletion'!=_0x553abf['type'])return;const _0x4791c2=_0x553abf['getContainedElement']();if(null!=_0x4791c2&&_0x4791c2['is']('element','table')){if('insertion'==_0x553abf['type']){const _0x38c969=_0x553abf['getItems']()['filter'](_0x3bad49=>_0x3bad49['is']('$textProxy'))['map'](_0x4fd98f=>_0x4fd98f['data']);if(_0x38c969['length'])return{'type':'insertion','content':o(_0x122bc9,'*Insert:*\x20%0',o(_0x122bc9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x38c969['join']('\x20')+'\x22'))};}if('deletion'==_0x553abf['type']){const _0x3a0f8d=_0x553abf['getItems']()['filter'](_0x7eb5c5=>_0x7eb5c5['is']('$textProxy'))['map'](_0x408c42=>_0x408c42['data']);if(_0x3a0f8d['length'])return{'type':'deletion','content':o(_0x122bc9,'*Remove:*\x20%0',o(_0x122bc9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a0f8d['join']('\x20')+'\x22'))};}}}),_0x37f5ed['descriptionFactory']['registerDescriptionCallback'](_0x278cda=>{if('tableRow'==_0x278cda['subType']){const _0x151e57=_0x278cda['getItems']()['filter'](_0x5bb33f=>_0x5bb33f['is']('$textProxy'))['map'](_0x5eb685=>_0x5eb685['data']),_0x31cc42=this['_getSuggestionCoords'](_0x278cda),_0x557619=_0x31cc42['maxRow']-_0x31cc42['minRow']+0x1;if('insertion'==_0x278cda['type'])return _0x151e57['length']?{'type':'insertion','content':o(_0x122bc9,'*Insert:*\x20%0',o(_0x122bc9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x557619,'\x22'+_0x151e57['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x122bc9,'*Insert:*\x20%0',o(_0x122bc9,'ELEMENT_TABLE_ROW',_0x557619))};if('deletion'==_0x278cda['type'])return _0x151e57['length']?{'type':'deletion','content':o(_0x122bc9,'*Remove:*\x20%0',o(_0x122bc9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x557619,'\x22'+_0x151e57['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x122bc9,'*Remove:*\x20%0',o(_0x122bc9,'ELEMENT_TABLE_ROW',_0x557619))};}if('tableColumn'==_0x278cda['subType']){const _0x2a6d39=_0x278cda['getItems']()['filter'](_0x32f3ff=>_0x32f3ff['is']('$textProxy'))['map'](_0x230fab=>_0x230fab['data']),_0x59befb=this['_getSuggestionCoords'](_0x278cda),_0x35705c=_0x59befb['maxColumn']-_0x59befb['minColumn']+0x1;if('insertion'==_0x278cda['type'])return _0x2a6d39['length']?{'type':'insertion','content':o(_0x122bc9,'*Insert:*\x20%0',o(_0x122bc9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x35705c,'\x22'+_0x2a6d39['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x122bc9,'*Insert:*\x20%0',o(_0x122bc9,'ELEMENT_TABLE_COLUMN',_0x35705c))};if('deletion'==_0x278cda['type'])return _0x2a6d39['length']?{'type':'deletion','content':o(_0x122bc9,'*Remove:*\x20%0',o(_0x122bc9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x35705c,'\x22'+_0x2a6d39['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x122bc9,'*Remove:*\x20%0',o(_0x122bc9,'ELEMENT_TABLE_COLUMN',_0x35705c))};}}),_0x37f5ed['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2a263d),_0x37f5ed['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2a263d),_0x37f5ed['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x45c514),_0x37f5ed['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x45c514),_0x37f5ed['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4d7309),_0x37f5ed['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4d7309),_0x37f5ed['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x34f4b0),_0x37f5ed['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x34f4b0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x51b542=this['editor'],_0x47bdb7=_0x51b542['model']['document']['selection'];return(_0x3cc5b2,_0x440956)=>{_0x51b542['model']['change'](_0x1d0b12=>{const {commandName:_0x5a33cd,commandParams:_0x3d55c9}=_0x440956;let _0xe5414c=_0x3cc5b2[0x0]['end']['nodeBefore'];_0x3d55c9&&_0x3d55c9[0x0]&&!0x1===_0x3d55c9[0x0]['forceValue']&&(_0xe5414c=_0x3cc5b2[0x0]['start']['nodeAfter']);const _0x222841=_0x1d0b12['createRangeIn'](_0xe5414c);if('$graveyard'==_0x222841['root']['rootName'])return;const _0x426c7b=Array['from'](_0x47bdb7['getRanges']())['map'](_0x313aec=>_0xf2dec5['fromRange'](_0x313aec));_0x1d0b12['setSelection'](_0x222841),_0x51b542['commands']['get'](_0x5a33cd)['refresh'](),_0x3d55c9['push']({'forceDefaultExecution':!0x0}),_0x51b542['execute'](_0x5a33cd,..._0x3d55c9);const _0x290a53=_0x426c7b['filter'](_0x5dcfa4=>'$graveyard'!=_0x5dcfa4['root']['rootName']);_0x290a53['length']>0x0&&_0x1d0b12['setSelection'](_0x290a53);for(const _0x4889b2 of _0x426c7b)_0x4889b2['detach']();});};}['_getCoordsForCells'](_0x482243){const _0x174498=this['editor']['plugins']['get']('TableUtils');let _0x423c0b=Number['MAX_SAFE_INTEGER'],_0x3f2534=Number['MIN_SAFE_INTEGER'],_0x37be59=Number['MAX_SAFE_INTEGER'],_0x1196b0=Number['MIN_SAFE_INTEGER'];for(const _0x475d9f of _0x482243){if('$graveyard'==_0x475d9f['root']['rootName'])continue;const {row:_0x5772f5,column:_0x9022be}=_0x174498['getCellLocation'](_0x475d9f),_0x3d52b1=_0x475d9f['hasAttribute']('rowspan')?_0x475d9f['getAttribute']('rowspan')-0x1:0x0,_0x232bbe=_0x475d9f['hasAttribute']('colspan')?_0x475d9f['getAttribute']('colspan')-0x1:0x0;_0x423c0b=_0x5772f5<_0x423c0b?_0x5772f5:_0x423c0b,_0x3f2534=_0x5772f5+_0x3d52b1>_0x3f2534?_0x5772f5+_0x3d52b1:_0x3f2534,_0x37be59=_0x9022be<_0x37be59?_0x9022be:_0x37be59,_0x1196b0=_0x9022be+_0x232bbe>_0x1196b0?_0x9022be+_0x232bbe:_0x1196b0;}return{'minRow':_0x423c0b,'maxRow':_0x3f2534,'minColumn':_0x37be59,'maxColumn':_0x1196b0};}['_setupColumnsRowsFixing'](){const _0x3501cc=this['editor'],_0x18f4f1=_0x3501cc['plugins']['get']('TrackChangesEditing'),_0x33e0a5=_0x3501cc['plugins']['get']('TableUtils');_0x3501cc['model']['document']['on']('change:data',()=>{const _0x3f6fa4=Array['from'](_0x3501cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1fa705,data:_0x4a16f4}of _0x3f6fa4){const {group:_0x3d6506,id:_0x186ad1,subType:_0x55a68e}=_0x18f4f1['_splitMarkerName'](_0x1fa705);if('suggestion'!=_0x3d6506)continue;if(null!=_0x4a16f4['oldRange'])continue;const _0x3c91e9=_0x18f4f1['getSuggestion'](_0x186ad1);this['_tablePostFixingSubtypes']['includes'](_0x55a68e)&&this['_tableSuggestions']['add'](_0x3c91e9);}},{'priority':'low'});const _0x28eb05=(_0x3480ab,_0x5a6d9d)=>{let _0x18f740=!0x1;const _0x115e4d=_0x5a6d9d['createRangeOn'](_0x3480ab),_0xaf517e=_0x3480ab['findAncestor']('table'),_0xcc9b38=_0x33e0a5['getCellLocation'](_0x3480ab);for(const _0x2fae14 of this['_tableSuggestions']){const _0x4520c1=_0x2fae14['subType'],_0x19c9c5=_0x4520c1['startsWith']('tablePaste'),_0x3bf26c=_0x4520c1['substr'](_0x19c9c5?0xa:0x5),_0x12ec32=_0x3bf26c['toLowerCase'](),_0x57a93b=_0x12ec32['substr'](0x0,0x3)+'span',_0x5cea63='min'+_0x3bf26c,_0x3e9a68='max'+_0x3bf26c;if(!_0x2fae14['isInContent'])continue;if(_0xaf517e!=_0x2fae14['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2fae14['isIntersectingWithRange'](_0x115e4d))continue;const _0x12e829=_0x3480ab['hasAttribute'](_0x57a93b)?_0x3480ab['getAttribute'](_0x57a93b)-0x1:0x0,_0x147ffa=this['_getSuggestionCoords'](_0x2fae14),_0x532180=_0x147ffa[_0x5cea63],_0x263029=_0x147ffa[_0x3e9a68];_0x532180<=_0xcc9b38[_0x12ec32]&&_0xcc9b38[_0x12ec32]+_0x12e829<=_0x263029&&(_0x2fae14['addRange'](_0x115e4d),_0x18f740=!0x0);}return _0x18f740;};_0x3501cc['model']['document']['registerPostFixer'](_0x2081c7=>{let _0xb3a366=!0x1;for(const _0x347d72 of _0x3501cc['model']['document']['differ']['getChanges']())if('insert'==_0x347d72['type']){if('tableRow'==_0x347d72['name']){for(const _0x3ac119 of _0x347d72['position']['nodeAfter']['getChildren']())_0xb3a366=_0xb3a366||_0x28eb05(_0x3ac119,_0x2081c7);}else'tableCell'==_0x347d72['name']&&(_0xb3a366=_0xb3a366||_0x28eb05(_0x347d72['position']['nodeAfter'],_0x2081c7));}return _0xb3a366;});}['_getSuggestionCoords'](_0x551229){return this['_getCoordsForCells'](_0x551229['getRanges']()['map'](_0x5b4137=>_0x5b4137['start']['nodeAfter']));}constructor(_0x280981){super(_0x280981),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x467d54){return Array['from'](new Set(_0x467d54)['values']());}class St extends _0x4ea64e{static get['requires'](){return[jt];}['afterInit'](){const _0x535eca=this['editor'],_0x2e24a7=_0x535eca['model']['document']['selection'],_0x59250a=_0x535eca['locale'];if(!_0x535eca['plugins']['has']('TableEditing'))return;const _0x4b1113=_0x535eca['plugins']['get']('TrackChangesEditing'),_0x536982=_0x535eca['plugins']['get']('TableUtils'),_0x2585d3=_0x535eca['plugins']['get'](jt);_0x2585d3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4b1113['enableCommand']('mergeTableCells',()=>{const _0x18aeb5=_0x536982['getSelectionAffectedTableCells'](_0x535eca['model']['document']['selection']);_0x535eca['model']['change'](()=>{_0x4b1113['markMultiRangeBlockFormat'](_0x18aeb5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x535eca['commands']['get']('mergeTableCells')['on']('execute',(_0x124dca,_0x46657f)=>{_0x535eca['commands']['get']('trackChanges')['value']&&(_0x46657f['length']>0x0&&_0x46657f[_0x46657f['length']-0x1]&&_0x46657f[_0x46657f['length']-0x1]['forceDefaultExecution']||_0x4b1113['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x124dca['stop']());},{'priority':'highest'});for(const _0x138c65 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x14a4f7=_0x535eca['commands']['get'](_0x138c65);_0x4b1113['enableCommand'](_0x138c65,()=>{const _0x344cc2=_0x535eca['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4b79a0=>_0x4b79a0['is']('element','tableCell')),_0x2f6a08=_0x14a4f7['value'];_0x535eca['model']['change'](()=>{_0x4b1113['markMultiRangeBlockFormat']([_0x344cc2,_0x2f6a08],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4e2835 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xf3969=_0x535eca['commands']['get'](_0x4e2835);_0x4b1113['enableCommand'](_0x4e2835,()=>{const _0x357100=_0x536982['getSelectionAffectedTableCells'](_0x535eca['model']['document']['selection'])[0x0],_0x52bb23=_0x357100['findAncestor']('table'),{column:_0x122f3b,row:_0x1e8150}=_0x536982['getCellLocation'](_0x357100);let _0x8b6fc0=[];if('horizontally'==_0xf3969['direction']){const _0x3f99b7=_0x536982['createTableWalker'](_0x52bb23,{'startRow':_0x1e8150,'endRow':_0x1e8150,'includeAllSlots':!0x0});_0x8b6fc0=Array['from'](_0x3f99b7)['map'](_0x52e174=>_0x52e174['cell']);}else{const _0x10d858=_0x536982['createTableWalker'](_0x52bb23,{'column':_0x122f3b,'includeAllSlots':!0x0});_0x8b6fc0=Array['from'](_0x10d858)['map'](_0x4fdec9=>_0x4fdec9['cell']);}_0x535eca['model']['change'](_0x2f2182=>{_0x4b1113['markBlockFormat'](_0x2f2182['createRangeOn'](_0x357100),{'commandName':_0x4e2835,'commandParams':[]},_0x8b6fc0,_0x4e2835);});});}_0x4b1113['descriptionFactory']['registerDescriptionCallback'](_0x1c13ca=>{if('formatBlock'!=_0x1c13ca['type']&&'formatInline'!=_0x1c13ca['type'])return;const {data:_0x122540}=_0x1c13ca;return _0x122540&&'mergeTableCells'==_0x122540['commandName']?{'type':'format','content':o(_0x59250a,'*Merge\x20cells*')}:void 0x0;}),_0x4b1113['descriptionFactory']['registerDescriptionCallback'](_0x1355f6=>{if('formatBlock'!=_0x1355f6['type']&&'formatInline'!=_0x1355f6['type'])return;const {data:_0x467813}=_0x1355f6;return _0x467813?'splitTableCellVertically'==_0x467813['commandName']?{'type':'format','content':o(_0x59250a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x467813['commandName']?{'type':'format','content':o(_0x59250a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x399e75=_0x2585d3['_acceptFormatSuggestionCallbackFactory']();for(const _0x3465ee of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4b1113['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3465ee,'accept',_0x399e75);for(const _0x1df440 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4b1113['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1df440,'accept',_0x399e75);_0x4b1113['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x24f1c3=>{_0x535eca['model']['change'](_0x3f338d=>{const _0x8750cf=Array['from'](_0x2e24a7['getRanges']())['map'](_0x14298b=>_0xf2dec5['fromRange'](_0x14298b));_0x3f338d['setSelection'](_0x24f1c3),_0x535eca['commands']['get']('mergeTableCells')['refresh'](),_0x535eca['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x280deb=_0x8750cf['filter'](_0x224188=>'$graveyard'!=_0x224188['root']['rootName']);_0x280deb['length']>0x0&&_0x3f338d['setSelection'](_0x280deb);for(const _0x259a7c of _0x8750cf)_0x259a7c['detach']();});});for(const _0x1e7249 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2d0856=_0x535eca['commands']['get'](_0x1e7249);_0x2d0856['on']('set:isEnabled',(_0x3f8c66,_0x5f27e8,_0x3db9a1)=>{if(_0x3db9a1){const _0x151984=_0x535eca['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x405e5c=>_0x405e5c['is']('element','tableCell'));this['_areMergableCells'](_0x2d0856['value'],_0x151984)||(_0x3f8c66['return']=!0x1,_0x3f8c66['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1706cd=this['editor']['commands']['get']('mergeTableCells'),_0x40c121=this['editor']['plugins']['get']('TableUtils');if(!_0x1706cd['isEnabled'])return!0x1;const _0x4561b6=_0x40c121['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x45b304 of _0x4561b6)for(const _0x38c80 of _0x4561b6)if(_0x45b304!=_0x38c80&&!this['_areMergableCells'](_0x45b304,_0x38c80))return!0x1;return!0x0;}['_areMergableCells'](_0x255efd,_0x13f074){const _0x586140=this['editor']['plugins']['get']('TrackChangesEditing'),_0x276c65=this['editor']['model']['createRangeOn'](_0x255efd),_0x1c3495=this['editor']['model']['createRangeOn'](_0x13f074),_0x28d331=new Set(),_0x41b9ec=new Set();for(const _0x3f1e1c of _0x586140['getSuggestions']())if(('insertion'==_0x3f1e1c['type']||'deletion'==_0x3f1e1c['type']||'mergeTableCells'==_0x3f1e1c['subType'])&&_0x3f1e1c['isInContent']){for(const _0x3010ea of _0x3f1e1c['getRanges']())_0x3010ea['containsRange'](_0x276c65,!0x0)&&_0x28d331['add'](_0x3f1e1c['type']+':'+_0x3f1e1c['author']['id']),_0x3010ea['containsRange'](_0x1c3495,!0x0)&&_0x41b9ec['add'](_0x3f1e1c['type']+':'+_0x3f1e1c['author']['id']);}if(_0x28d331['size']!=_0x41b9ec['size'])return!0x1;for(const _0x1fbb55 of _0x28d331)if(!_0x41b9ec['has'](_0x1fbb55))return!0x1;return!0x0;}}class At extends _0x4ea64e{static get['requires'](){return[jt];}['afterInit'](){const _0x140a2b=this['editor'];if(!_0x140a2b['plugins']['has']('TableEditing'))return;const _0x534c40=_0x140a2b['locale'],_0x55c08a=_0x140a2b['plugins']['get']('TrackChangesEditing');_0x55c08a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x55c08a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x55c08a['registerBlockAttribute']('headingRows'),_0x55c08a['registerBlockAttribute']('headingColumns'),_0x55c08a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x534c40,'FORMAT_HEADER_ROW')),_0x55c08a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x534c40,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x36fcd9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3eed26=this['editor']['plugins']['get']('TableUtils'),_0x36036b=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x32cfa1({showActiveMarker:_0x637dbf=!0x0,setDataAttribute:_0x2ef959=!0x0}={}){return(_0x446696,_0x5910b1,_0x167b1a)=>{const {type:_0x4f0a98,id:_0x4b7c9d}=_0x36fcd9['_splitMarkerName'](_0x5910b1['markerName']),_0x298ff4=_0x36fcd9['getSuggestion'](_0x4b7c9d),_0x43d506=_0x298ff4['data'];if('formatBlock'!=_0x298ff4['type']||!_0x43d506||'setTableColumnHeader'!=_0x43d506['commandName'])return;if(_0x5910b1['item'])return void _0x446696['stop']();if(!_0x167b1a['consumable']['consume'](_0x5910b1['markerRange'],_0x446696['name']))return;const _0xb14bb7=_0x5910b1['markerRange']['start']['nodeAfter'],_0x34c147=_0x5910b1['markerRange']['end']['nodeBefore'],_0x24a673=_0xb14bb7['parent']['parent'],{column:_0x470e20}=_0x3eed26['getCellLocation'](_0xb14bb7),{column:_0x3d394e}=_0x3eed26['getCellLocation'](_0x34c147);for(let _0x2fdcca=_0x470e20;_0x2fdcca<=_0x3d394e;_0x2fdcca++){const _0x45383b=_0x3eed26['createTableWalker'](_0x24a673,{'column':_0x2fdcca,'includeAllSlots':!0x1});for(const _0x1a61cf of _0x45383b){const _0x5bc847=_0x1a61cf['cell'],_0x2aab48=_0x167b1a['mapper']['toViewElement'](_0x5bc847);_0x167b1a['writer']['addClass']('ck-suggestion-marker-'+_0x4f0a98,_0x2aab48),_0x2ef959&&_0x167b1a['writer']['setAttribute']('data-suggestion',_0x4b7c9d,_0x2aab48),_0x167b1a['mapper']['bindElementToMarker'](_0x2aab48,_0x5910b1['markerName']),_0x637dbf&&(_0x36fcd9['activeMarkers']['includes'](_0x5910b1['markerName'])?_0x167b1a['writer']['addClass']('ck-suggestion-marker--active',_0x2aab48):_0x167b1a['writer']['removeClass']('ck-suggestion-marker--active',_0x2aab48));}}};}_0x36fcd9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36036b),_0x36fcd9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36036b),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x32cfa1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5b02a3,_0xa1cf46,_0x186707)=>{_0x186707['options']['showSuggestionHighlights']&&_0x32cfa1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5b02a3,_0xa1cf46,_0x186707);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x562865,_0x2778ca,_0x27a719)=>{const {type:_0x42c855,id:_0xa5570b}=_0x36fcd9['_splitMarkerName'](_0x2778ca['markerName']),_0x18562b=_0x36fcd9['getSuggestion'](_0xa5570b),_0x41370e=_0x18562b['data'];if('formatBlock'!=_0x18562b['type']||!_0x41370e||'setTableColumnHeader'!=_0x41370e['commandName'])return;const _0xb43e02=_0x27a719['mapper']['markerNameToElements'](_0x2778ca['markerName']);if(_0xb43e02){for(const _0x58ee81 of _0xb43e02)_0x27a719['writer']['removeClass']('ck-suggestion-marker-'+_0x42c855,_0x58ee81),_0x27a719['writer']['removeClass']('ck-suggestion-marker--active',_0x58ee81),_0x27a719['writer']['removeAttribute']('data-suggestion',_0x58ee81),_0x27a719['mapper']['unbindElementFromMarkerName'](_0x58ee81,_0x2778ca['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcfc06d=this['editor'],_0x4283ff=_0xcfc06d['locale'];function _0x3475c4(_0x32e0d6){return{'type':'format','content':o(_0x4283ff,'*Format:*\x20%0',_0x32e0d6)};}_0xcfc06d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54d754=>{if('formatBlock'!=_0x54d754['type'])return;const {data:_0x1b420b}=_0x54d754;if(_0x1b420b){if('setTableRowHeader'==_0x1b420b['commandName']){const _0x4083c7=_0x1b420b['commandParams'][0x0]['forceValue'];return _0x3475c4(o(_0x4283ff,_0x4083c7?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1b420b['commandName']){const _0x3e8bf3=_0x1b420b['commandParams'][0x0]['forceValue'];return _0x3475c4(o(_0x4283ff,_0x3e8bf3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x547f94=>[_0x547f94,null]));class It extends _0x4ea64e{static get['requires'](){return[jt];}['afterInit'](){const _0x43b0d9=this['editor'];if(!_0x43b0d9['plugins']['has']('TableClipboard'))return;const _0x59bb71=_0x43b0d9['plugins']['get']('TrackChangesEditing'),_0x2bb2d6=_0x43b0d9['plugins']['get']('TableUtils'),_0x10f0c=_0x43b0d9['plugins']['get'](jt),_0x29bd77=_0x43b0d9['plugins']['get']('TableClipboard');_0x10f0c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x43b0d9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x43b0d9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xde46a6=null;_0x43b0d9['model']['on']('insertContent',(_0x1b6158,_0x181f7a)=>{const [_0x258431,_0x3a5fdd]=_0x181f7a,_0x1cafbd=_0x181f7a[_0x181f7a['length']-0x1];_0x1cafbd&&_0x1cafbd['forceDefaultExecution']||_0x59bb71['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1c98d4,_0x6bba2f,_0x4bf5a7,_0x225729,_0x58aa6d){if(_0x6bba2f&&!_0x6bba2f['is']('documentSelection'))return!0x1;const _0x1dd9df=_0x58aa6d['getTableIfOnlyTableInContent'](_0x1c98d4,_0x4bf5a7);if(!_0x1dd9df||!he(_0x1dd9df,void 0x0,_0x225729))return!0x1;const _0x164bf3=_0x225729['getSelectionAffectedTableCells'](_0x4bf5a7['document']['selection']);if(!_0x164bf3['length'])return!0x1;const _0x3bc3e5=_0x164bf3[0x0]['findAncestor']('table'),_0x204ba7=_0x225729['getRowIndexes'](_0x164bf3),_0x9c5bc8=_0x225729['getColumnIndexes'](_0x164bf3),_0x41d447={'startRow':_0x204ba7['first'],'endRow':_0x204ba7['last'],'startColumn':_0x9c5bc8['first'],'endColumn':_0x9c5bc8['last']};return 0x1==_0x164bf3['length']&&(_0x41d447['endRow']+=_0x225729['getRows'](_0x1dd9df)-0x1,_0x41d447['endColumn']+=_0x225729['getColumns'](_0x1dd9df)-0x1),he(_0x3bc3e5,_0x41d447,_0x225729);}(_0x258431,_0x3a5fdd,_0x43b0d9['model'],_0x2bb2d6,_0x29bd77)&&(_0x1b6158['stop'](),_0xde46a6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x43b0d9['model']['change'](()=>{_0x43b0d9['model']['insertContent'](_0x181f7a[0x0],_0x181f7a[0x1],_0x181f7a[0x2],{'forceDefaultExecution':!0x0});const _0x3bb74d=_0x13da88(),{rowInsertionRanges:_0x3a6910,columnInsertionRanges:_0x5a08ea,insertionRanges:_0x411932,deletionRanges:_0x3151a3,cells:_0x231d2b}=_0xde46a6;_0x3a6910['length']&&_0x59bb71['markMultiRangeInsertion'](_0x3a6910,'tablePasteRow',{'tablePasteChainId':_0x3bb74d}),_0x5a08ea['length']&&_0x59bb71['markMultiRangeInsertion'](_0x5a08ea,'tablePasteColumn',{'tablePasteChainId':_0x3bb74d}),_0x411932['length']&&(_0x59bb71['markMultiRangeInsertion'](_0x411932,'tablePaste',{'tablePasteChainId':_0x3bb74d,'skipNestingCheck':!0x0}),_0x411932['forEach'](_0x551c78=>{var _0xd9c74e;return null===(_0xd9c74e=_0x551c78['detach'])||void 0x0===_0xd9c74e?void 0x0:_0xd9c74e['call'](_0x551c78);})),_0x3151a3['length']&&(_0x59bb71['markMultiRangeDeletion'](_0x3151a3,'tablePaste',{'tablePasteChainId':_0x3bb74d,'skipNestingCheck':!0x0}),_0x3151a3['forEach'](_0x7354d7=>{var _0x2faac0;return null===(_0x2faac0=_0x7354d7['detach'])||void 0x0===_0x2faac0?void 0x0:_0x2faac0['call'](_0x7354d7);}));const _0xd4bc26=_0x59bb71['markMultiRangeBlockFormat'](_0x231d2b['map'](({element:_0x27e561})=>_0x27e561),{'formatGroupId':_0x13da88()},[],'tablePasteCell',{'tablePasteChainId':_0x3bb74d});if(_0xd4bc26){const _0x5a7f43=_0xd4bc26['getMarkers'](),_0x5cf978=[];for(const {element:_0x40f165,attributes:_0x42186d}of _0x231d2b){if(!_0x42186d)continue;const _0x476442=_0x43b0d9['model']['createRangeOn'](_0x40f165),_0x43591c=_0x5a7f43['find'](_0x377c82=>_0x377c82['getRange']()['isEqual'](_0x476442));_0x43591c&&_0x5cf978['push']([_0x43591c['name'],_0x42186d]);}_0x5cf978['length']&&_0xd4bc26['setAttribute']('markerAttributes',Object['fromEntries'](_0x5cf978));}_0xde46a6=null;}));},{'priority':_0x2272e7['high']+0xa}),_0x43b0d9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x162d72,_0x516751)=>{const [_0x3790b5,_0x2eb665,,_0x22a84a]=_0x516751;if(!_0xde46a6)return;_0x162d72['stop']();const _0x3fa427=_0x3790b5['cell'],_0x27bf00=_0x2eb665,_0x4c1702=Pe(_0x3fa427),_0x4b2d08=Pe(_0x27bf00);_0x162d72['return']=_0x3fa427;let _0x45ac53=null,_0x4928cf=null;if(_0x4b2d08||_0x4c1702){if(_0x4c1702&&!_0x4b2d08){_0x22a84a['remove'](_0x3fa427['getChild'](0x0));for(const _0x504526 of Array['from'](_0x27bf00['getChildren']()))_0x22a84a['insert'](_0x504526,_0x3fa427,'end');const _0xf3e51a=_0xde46a6['rowInsertionIndexes']['includes'](_0x3790b5['row']),_0x32f13b=_0xde46a6['columnInsertionIndexes']['includes'](_0x3790b5['column']);_0xf3e51a||_0x32f13b||(_0x45ac53=_0xf2dec5['fromRange'](_0x22a84a['createRangeIn'](_0x3fa427)));}else _0x4b2d08&&!_0x4c1702&&(_0x4928cf=_0x22a84a['createRangeIn'](_0x3fa427));}else{const _0x210aba=_0x22a84a['createElement']('tableCellSuggestion'),_0x39a24b=_0x22a84a['createElement']('tableCellSuggestion');_0x22a84a['wrap'](_0x22a84a['createRangeIn'](_0x3fa427),_0x39a24b),_0x22a84a['insert'](_0x210aba,_0x3fa427,0x0);for(const _0x24f2a5 of Array['from'](_0x27bf00['getChildren']()))_0x22a84a['insert'](_0x24f2a5,_0x210aba,'end');_0x45ac53=_0xf2dec5['fromRange'](_0x22a84a['createRangeOn'](_0x210aba)),_0x4928cf=_0xf2dec5['fromRange'](_0x22a84a['createRangeOn'](_0x39a24b));}const _0x4ed960=Array['from'](_0x27bf00['getAttributes']())['filter'](([_0x589904])=>ge['includes'](_0x589904));_0xde46a6['cells']['push']({'element':_0x3fa427,'attributes':_0x4ed960['length']?Object['fromEntries'](_0x4ed960):null}),_0x45ac53&&_0xde46a6['insertionRanges']['push'](_0x45ac53),_0x4928cf&&_0xde46a6['deletionRanges']['push'](_0x4928cf);},{'priority':'high'}),_0x2bb2d6['on']('insertColumns',(_0x3ad695,_0x5aa69c)=>{const [_0x2ac5b2,_0x4c6e4b={}]=_0x5aa69c;if(!_0xde46a6)return;const _0x1a60ab=_0x4c6e4b['at']||0x0,_0x2ff8a8=_0x4c6e4b['columns']||0x1;_0xde46a6['columnInsertionIndexes']=new Array(_0x2ff8a8)['fill'](_0x1a60ab)['map']((_0x570c20,_0x227eb1)=>_0x570c20+_0x227eb1);for(const {cell:_0xc17caf}of _0x2bb2d6['createTableWalker'](_0x2ac5b2,{'startColumn':_0x1a60ab,'endColumn':_0x1a60ab+_0x2ff8a8-0x1}))_0xde46a6['columnInsertionRanges']['push'](_0x43b0d9['model']['createRangeOn'](_0xc17caf));},{'priority':'low'}),_0x2bb2d6['on']('insertRows',(_0x455b92,_0x190e75)=>{const [_0x757021,_0x512465={}]=_0x190e75;if(!_0xde46a6)return;const _0x9a5432=_0x512465['at']||0x0,_0x3fb534=_0x512465['rows']||0x1;_0xde46a6['rowInsertionIndexes']=new Array(_0x3fb534)['fill'](_0x9a5432)['map']((_0x322a44,_0x13cbb4)=>_0x322a44+_0x13cbb4);for(const {cell:_0x14da0d}of _0x2bb2d6['createTableWalker'](_0x757021,{'startRow':_0x9a5432,'endRow':_0x9a5432+_0x3fb534-0x1}))_0xde46a6['rowInsertionRanges']['push'](_0x43b0d9['model']['createRangeOn'](_0x14da0d));},{'priority':'low'}),_0x59bb71['descriptionFactory']['registerDescriptionCallback'](_0x1c5b30=>{if(_0x1c5b30['subType']&&_0x1c5b30['subType']['startsWith']('tablePaste'))return _0x1c5b30['previous']?{}:{'type':'insertion','content':o(_0x43b0d9['locale'],'*Replace\x20table\x20cells*')};});const _0x234066=()=>!0x1;for(const _0x5640da of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x59bb71['_suggestionFactory']['registerCustomCallback']('insertion',_0x5640da,'join',_0x234066),_0x59bb71['_suggestionFactory']['registerCustomCallback']('deletion',_0x5640da,'join',_0x234066),_0x59bb71['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5640da,'join',_0x234066);_0x59bb71['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x234066),_0x59bb71['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x847a56,_0x1cbfae,_0x5d94b6)=>{const _0x136687=_0x847a56['map'](_0xc99846=>_0xc99846['getContainedElement']())['filter'](_0x4027f7=>_0x4027f7),_0x4890f6=new Map(_0x136687['map'](_0x285a24=>[_0x285a24,null]));if(_0xde46a6){for(const {element:_0xe9f7ea,attributes:_0x19fe88}of _0xde46a6['cells'])_0x19fe88&&_0x4890f6['set'](_0xe9f7ea,_0x19fe88);}else{if(_0x5d94b6&&_0x5d94b6['markerAttributes'])for(const [_0x1e6601,_0x4a31b6]of Object['entries'](_0x5d94b6['markerAttributes'])){const _0x3d0d97=_0x43b0d9['model']['markers']['get'](_0x1e6601),_0x2f06da=_0x3d0d97?_0x3d0d97['getRange']()['getContainedElement']():null;_0x2f06da&&_0x4890f6['set'](_0x2f06da,_0x4a31b6);}}_0x43b0d9['model']['change'](_0x3eb19d=>{for(const [_0x3987ff,_0x3d9137]of _0x4890f6)_0x3eb19d['setAttributes']({...Ce,..._0x3d9137},_0x3987ff);});});const _0x216a9e=(_0x4dbe35,_0x33cfad)=>{_0x59bb71['_suggestionFactory']['registerCustomCallback'](_0x4dbe35,'tablePaste',_0x33cfad,(_0x4f986a,_0x2b940c,_0x3c5391)=>{_0x43b0d9['model']['change'](_0x150b11=>{const _0x5ec9fa=[];for(const _0x5672c4 of _0x4f986a){const _0x15d593=_0x5672c4['start']['nodeAfter'];_0x15d593['is']('element','tableCellSuggestion')&&_0x5ec9fa['push'](_0x15d593);}_0x59bb71['_suggestionFactory']['getSuggestionCallback'](_0x4dbe35,null,_0x33cfad)(_0x4f986a,_0x2b940c,_0x3c5391);for(const _0x5181d9 of _0x5ec9fa)'$graveyard'!=_0x5181d9['root']['rootName']&&_0x150b11['unwrap'](_0x5181d9);});});};_0x216a9e('insertion','accept'),_0x216a9e('insertion','discard'),_0x216a9e('deletion','accept'),_0x216a9e('deletion','discard'),_0x59bb71['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5de33f=>{const _0x1b3501=_0x5de33f['map'](_0x12212d=>_0x12212d['getContainedElement']()),_0x29318a=_0x1b3501[0x0]['findAncestor']('table'),{minRow:_0x33c43d,maxRow:_0x4c79b6}=_0x10f0c['_getCoordsForCells'](_0x1b3501);_0x2bb2d6['removeRows'](_0x29318a,{'at':_0x33c43d,'rows':_0x4c79b6-_0x33c43d+0x1});}),_0x59bb71['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x247e8f=>{const _0x589361=_0x247e8f['map'](_0xe1530f=>_0xe1530f['getContainedElement']()),_0x31fd83=_0x589361[0x0]['findAncestor']('table'),{minColumn:_0x31765a,maxColumn:_0x5135f8}=_0x10f0c['_getCoordsForCells'](_0x589361);_0x2bb2d6['removeColumns'](_0x31fd83,{'at':_0x31765a,'columns':_0x5135f8-_0x31765a+0x1});});const _0x418efe=(_0x15614b,_0x306485)=>{if(!_0x306485['subType']||!_0x306485['subType']['startsWith']('tablePaste'))return;const _0x4ab72f=_0x306485['attributes']['tablePasteChainId'],_0x16d525=_0x59bb71['getSuggestions']()['filter'](_0x22e528=>_0x22e528['isInContent']&&_0x22e528['attributes']&&_0x22e528['attributes']['tablePasteChainId']==_0x4ab72f);_0x16d525['length']&&_0x306485['getAllAdjacentSuggestions']()['length']!=_0x16d525['length']&&_0x16d525['reduce']((_0x78fb89,_0x2d935d)=>(_0x78fb89['next']=_0x2d935d,_0x2d935d['previous']=_0x78fb89,_0x2d935d));};function _0x3279c5(_0x306875,_0x147019=!0x0){const {id:_0x32687b}=_0x59bb71['_splitMarkerName'](_0x306875['markerName']),_0x23fe26=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x255eb8=_0x59bb71['activeMarkers']['includes'](_0x306875['markerName']);return _0x255eb8&&_0x23fe26['push']('ck-suggestion-marker--active'),{'classes':_0x23fe26,'attributes':{'data-suggestion':_0x32687b},'priority':_0x255eb8&&_0x147019?0xbc2:0xbb8};}_0x59bb71['on']('suggestionLoaded',_0x418efe,{'priority':'high'}),_0x59bb71['on']('suggestionUnloaded',_0x418efe,{'priority':'high'}),_0x43b0d9['model']['document']['registerPostFixer'](()=>{let _0x4d3ef1=!0x1;const _0x2c6815=Array['from'](_0x43b0d9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9327f5,data:_0x35a668}of _0x2c6815){const {group:_0x359354,type:_0x1c6bc0,id:_0x5712a5}=_0x59bb71['_splitMarkerName'](_0x9327f5);if('suggestion'!=_0x359354||'deletion'!=_0x1c6bc0||_0x35a668['oldRange'])continue;if(!_0x59bb71['hasSuggestion'](_0x5712a5))continue;const _0xd37978=_0x59bb71['getSuggestion'](_0x5712a5)['getRanges'](),_0x31e257=_0x43b0d9['plugins']['get']('Users')['me'];for(const _0xb4f36 of _0x59bb71['getSuggestions']()){if(!_0xb4f36['isInContent']||_0xb4f36['author']!=_0x31e257)continue;if('formatBlock'!=_0xb4f36['type']||'tablePasteCell'!=_0xb4f36['subType'])continue;if(_0xb4f36['getRanges']()['every'](_0x1f3bd3=>_0xd37978['some'](_0x563fed=>_0x563fed['containsRange'](_0x1f3bd3,!0x0)))){for(const _0x3746f0 of _0xb4f36['getAllAdjacentSuggestions']())_0x3746f0['isInContent']&&(_0x3746f0['discard'](),_0x4d3ef1=!0x0);}}}return _0x4d3ef1;}),_0x43b0d9['model']['document']['registerPostFixer'](_0xb13683=>{const _0x19666f=_0x43b0d9['commands']['get']('redo');if(!_0x19666f||!_0x19666f['_createdBatches']['has'](_0xb13683['batch']))return!0x1;let _0x141a3c=!0x1;const _0x3163e1=_0x43b0d9['plugins']['get']('Users')['me'],_0x21fc61=_0x43b0d9['model']['document']['differ']['getChanges'](),_0x19f120=Array['from'](_0x43b0d9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x431086,data:_0x5d4ea1})=>{const {group:_0x4f200c,subType:_0x76fa7a,authorId:_0x2edfd7}=_0x59bb71['_splitMarkerName'](_0x431086);return'suggestion'==_0x4f200c&&'tablePaste'==_0x76fa7a&&_0x2edfd7==_0x3163e1['id']&&!_0x5d4ea1['oldRange'];});for(const _0x3e12b9 of _0x21fc61){if('insert'!=_0x3e12b9['type']||'tableCellSuggestion'!=_0x3e12b9['name']||0x1!=_0x3e12b9['length'])continue;const _0x2ee097=_0xb13683['createRange'](_0x3e12b9['position'],_0x3e12b9['position']['getShiftedBy'](0x1));if(!_0x19f120['find'](({data:_0x5e6ccd})=>_0x5e6ccd['newRange']['isEqual'](_0x2ee097))){for(const {name:_0x38092f,data:_0x2942dc}of _0x19f120)if(_0x2ee097['containsRange'](_0x2942dc['newRange'])){_0xb13683['updateMarker'](_0x38092f,{'range':_0x2ee097}),_0x141a3c=!0x0;break;}}}return _0x141a3c;}),_0x43b0d9['model']['document']['registerPostFixer'](_0x17502e=>{let _0x4a9d4a=!0x1;const _0x1d7228=_0x43b0d9['plugins']['get']('Users')['me'],_0x476469=_0x59bb71['getSuggestions']()['filter'](_0x3df0f7=>_0x3df0f7['isInContent']&&_0x3df0f7['author']==_0x1d7228),_0x3df4ee=new Set(),_0x374151=new Set();for(const _0x1da12c of _0x476469)if('tablePaste'==_0x1da12c['subType'])for(const _0x2d5b1e of _0x1da12c['getMarkers']()){const _0x2577f3=_0x2d5b1e['getRange']()['getContainedElement']();if(_0x2577f3){if(_0x2577f3['is']('element','tableCellSuggestion')&&Pe(_0x2577f3)){_0x1da12c['removeMarker'](_0x2d5b1e['name']),_0x3df4ee['add'](_0x2577f3),_0x4a9d4a=!0x0;const _0x3959ac=_0x2577f3['nextSibling'],_0x3a46ce=_0x2577f3['previousSibling'],_0x322748=_0x3959ac&&_0x3959ac['is']('element','tableCellSuggestion'),_0x55090b=_0x3a46ce&&_0x3a46ce['is']('element','tableCellSuggestion');_0x322748&&!_0x3df4ee['has'](_0x3959ac)&&_0x374151['add'](_0x3959ac),_0x55090b&&!_0x3df4ee['has'](_0x3a46ce)&&_0x374151['add'](_0x3a46ce);}else _0x2577f3['is']('element','paragraph')&&_0x2577f3['isEmpty']&&(_0x1da12c['removeMarker'](_0x2d5b1e['name']),_0x4a9d4a=!0x0);}}else{if('tablePasteCell'==_0x1da12c['subType']){if(!_0x1da12c['attributes']||!_0x1da12c['attributes']['tablePasteChainId'])continue;const _0x50a9ab=_0x1da12c['attributes']['markerAttributes'];if(_0x50a9ab&&Object['keys'](_0x50a9ab)['length'])continue;const _0x37d165=_0x1da12c['attributes']['tablePasteChainId'];let _0x2def5c=!0x0,_0x31a451=!0x0;for(const _0x533f78 of _0x476469)if(_0x533f78['subType']&&_0x533f78['subType']['startsWith']('tablePaste')){if(!_0x533f78['attributes']['tablePasteChainId']){_0x31a451=!0x1;break;}if(_0x533f78['id']!=_0x1da12c['id']&&_0x533f78['attributes']['tablePasteChainId']==_0x37d165){_0x2def5c=!0x1;break;}}_0x31a451&&_0x2def5c&&(_0x1da12c['removeMarkers'](),_0x4a9d4a=!0x0);}}for(const _0x10ebfc of _0x3df4ee)_0x17502e['remove'](_0x10ebfc);for(const _0x1db6b1 of _0x374151)_0x17502e['unwrap'](_0x1db6b1);return _0x4a9d4a;}),_0x43b0d9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xbc8955,_0x220aad)=>_0x3279c5(_0xbc8955),'converterPriority':'high'}),_0x43b0d9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1da668,_0x20b0f5)=>_0x20b0f5['options']['showSuggestionHighlights']?_0x3279c5(_0x1da668,!0x1):null,'converterPriority':'high'});const _0x5d9274=_0x43b0d9['editing']['view'];this['listenTo'](_0x5d9274['document'],'clipboardOutput',(_0x6fc32b,_0x332819)=>{const _0x18ae78=[];for(const _0xeaf709 of _0x5d9274['createRangeIn'](_0x332819['content'])['getItems']())_0xeaf709['is']('element','suggestion-td')&&_0x18ae78['push'](_0xeaf709);_0x5d9274['change'](_0x2f3a28=>{for(const _0x595680 of _0x18ae78)_0x2f3a28['move'](_0x2f3a28['createRangeIn'](_0x595680),_0x2f3a28['createPositionBefore'](_0x595680)),_0x2f3a28['remove'](_0x595680);});});}}function Pe(_0x3a4602){if(_0x3a4602['isEmpty'])return!0x0;const _0x31d4e0=_0x3a4602['getChild'](0x0);return _0x31d4e0['is']('element','paragraph')&&_0x31d4e0['isEmpty'];}function he(_0x3a7be1,_0x1ac2c6={},_0x256f83){for(const {isAnchor:_0x4e79c8,cellHeight:_0x34629c,cellWidth:_0x158f4d}of _0x256f83['createTableWalker'](_0x3a7be1,{'includeAllSlots':!0x0,..._0x1ac2c6}))if(!_0x4e79c8||0x1!=_0x34629c||0x1!=_0x158f4d)return!0x1;return!0x0;}class vt extends _0x4ea64e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x440d0d=this['editor']['plugins']['get']('TrackChangesEditing');_0x440d0d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x440d0d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x440d0d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x440d0d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x440d0d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x440d0d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x9d75da,_0x5659c3){const _0x37288a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3794e3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x36d9d0=_0x5659c3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x42f02e=_0x3794e3['getColumnGroupElement'](_0x36d9d0);let _0x39a52d=_0x42f02e?_0x3794e3['getTableColumnsWidths'](_0x42f02e):null,_0x561142=_0x36d9d0['getAttribute']('tableWidth')||null;const _0x827e46=_0x5659c3['tableWidth']||_0x561142,_0x381f42=_0x5659c3['columnWidths']||_0x39a52d,_0x5dfc78=this['editor']['plugins']['get']('Users')['me'];for(const _0x9c37ab of _0x37288a['getSuggestions']()){const _0x28880c=_0x9c37ab['getContainedElement']();if('resizeTable'===_0x9c37ab['subType']&&_0x28880c===_0x36d9d0){_0x9c37ab['author']!==_0x5dfc78&&_0x9c37ab['discard']();const _0x428250=_0x9c37ab['data']['commandParams'];_0x561142=_0x428250[0x0]['tableWidth'],_0x39a52d=_0x428250[0x0]['columnWidths'];break;}}_0x9d75da({'table':_0x36d9d0,'tableWidth':_0x827e46,'columnWidths':_0x381f42}),_0x37288a['markBlockFormat'](_0x36d9d0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x561142,'columnWidths':_0x39a52d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x10ba07){if('formatBlock'!=_0x10ba07['type']&&'formatInline'!=_0x10ba07['type'])return;const {data:_0x2ebd65}=_0x10ba07;if(_0x2ebd65&&'resizeTable'===_0x2ebd65['formatGroupId']){const _0x3da424='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3da424)};}}}class _t extends _0x4ea64e{['afterInit'](){const _0x2303bd=this['editor'];_0x2303bd['plugins']['has']('Template')&&_0x2303bd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x4ea64e{['afterInit'](){const _0x3e98ab=this['editor'];if(!_0x3e98ab['commands']['get']('insertTableOfContents'))return;_0x3e98ab['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5b54d5=_0x3e98ab['plugins']['get']('TrackChangesEditing'),_0x1f9aa2=_0x3e98ab['locale'];_0x5b54d5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x25cc21=>o(_0x1f9aa2,'ELEMENT_TABLE_OF_CONTENTS',_0x25cc21));}}class Dt extends _0x4ea64e{['afterInit'](){const _0x570314=this['editor'];if(!_0x570314['plugins']['has']('Title'))return;const _0x3e070c=_0x570314['plugins']['get']('TrackChangesEditing');_0x3e070c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x570314['locale'],'ELEMENT_TITLE')),_0x570314['model']['document']['registerPostFixer'](_0x5a90f4=>{let _0xf4dac0=!0x1;const _0x499a35=Array['from'](_0x570314['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3cc7b7,data:_0x591518}of _0x499a35){const {group:_0x5932c8}=_0x3e070c['_splitMarkerName'](_0x3cc7b7);if('suggestion'!==_0x5932c8||!_0x591518['newRange'])continue;const _0x1eeff3=_0x591518['newRange'],_0x5afed8=_0x1eeff3['end']['nodeBefore'];if(!_0x5afed8||!_0x5afed8['is']('element','title-content'))continue;if(!_0x1eeff3['start']['isTouching'](_0x1eeff3['end']))continue;const _0x2ac7b6=_0x570314['model']['schema']['getNearestSelectionRange'](_0x1eeff3['end'],'forward');if(_0x2ac7b6&&_0x2ac7b6['isCollapsed']){const _0x432653=_0x5a90f4['createRange'](_0x1eeff3['start'],_0x2ac7b6['start']);_0x432653['isEqual'](_0x1eeff3)||(_0x5a90f4['updateMarker'](_0x3cc7b7,{'range':_0x432653}),_0xf4dac0=!0x0);}_0xf4dac0||(_0x5a90f4['removeMarker'](_0x3cc7b7),_0xf4dac0=!0x0);}return _0xf4dac0;});}}class Nt extends _0x4ea64e{['afterInit'](){const _0x19d3e1=this['editor'],_0x562e36=_0x19d3e1['plugins']['get']('TrackChangesEditing');_0x19d3e1['plugins']['has']('UndoEditing')&&(_0x562e36['enableCommand']('undo'),_0x562e36['enableCommand']('redo'));}}class Mt extends _0x4ea64e{static get['requires'](){return[jt];}['afterInit'](){const _0x4af443=this['editor'];if(!_0x4af443['plugins']['has']('TableCaptionEditing'))return;_0x4af443['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4ea64e{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0xb9eaee=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5f180c of this['tableProperties'])_0xb9eaee['enableCommand'](_0x5f180c,(_0xebf3f0,_0x2ec2e4)=>{const _0x3b3fb8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5f180c,[_0x3b3fb8],this['tableProperties'],'tableProperties',_0xebf3f0,_0x2ec2e4);});_0xb9eaee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xb9eaee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb9eaee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x14761f,_0x796431)=>this['handleDiscardAction'](this['tableProperties'],_0x14761f,_0x796431)),_0xb9eaee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1d98c7 of this['tableCellProperties'])_0xb9eaee['enableCommand'](_0x1d98c7,(_0xbabd16,_0x3c4f46)=>{const _0x4757b2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1d98c7,_0x4757b2,this['tableCellProperties'],'tableCellProperties',_0xbabd16,_0x3c4f46);});_0xb9eaee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xb9eaee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb9eaee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x214547,_0x3f5ada)=>this['handleDiscardAction'](this['tableCellProperties'],_0x214547,_0x3f5ada)),_0xb9eaee['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xb9eaee['descriptionFactory']['registerDescriptionCallback'](_0x6c055e=>this['handleSuggestionDescription'](_0x6c055e));}['_handlePropertyChange'](_0x14f405,_0x2d8f7e,_0x22595a,_0x258a0b,_0x1522f5,_0x6f79ae){const _0x486e1d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x6f79ae['batch'],()=>{for(const _0x1ffcf8 of _0x2d8f7e){if(this['_getSuggestion'](_0x1ffcf8,_0x258a0b))_0x1522f5(_0x6f79ae);else{const _0x2db4af={};for(const _0x387d45 of _0x22595a){const _0x3bf549=_0x1ffcf8['getAttribute'](_0x387d45);void 0x0!==_0x3bf549&&(_0x2db4af[_0x387d45]=_0x3bf549);}_0x1522f5(_0x6f79ae),_0x486e1d['markBlockFormat'](_0x1ffcf8,{'commandParams':[_0x2db4af]},[],_0x258a0b);}}});}['handleDiscardAction'](_0x3974ef,_0x141624,_0x109ea5){const _0x5169ff=_0x141624[0x0]['start']['nodeAfter'],_0xdb6072=_0x109ea5['commandParams'][0x0];this['editor']['model']['change'](_0x112440=>{for(const _0xbdf45e of _0x3974ef)void 0x0!==_0xdb6072[_0xbdf45e]?_0x112440['setAttribute'](_0xbdf45e,_0xdb6072[_0xbdf45e],_0x5169ff):_0x112440['removeAttribute'](_0xbdf45e,_0x5169ff);});}['handleSuggestionDescription'](_0x1a94e2){if(_0x1a94e2['data'])switch(_0x1a94e2['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'](_0x2c0884,_0x5863e4){const _0x1bf781=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x496f66 of _0x1bf781['getSuggestions']({'skipNotAttached':!0x0})){const _0x43ed8e=_0x496f66['getContainedElement']();if(_0x496f66['subType']===_0x5863e4&&_0x43ed8e===_0x2c0884)return _0x496f66;}return null;}constructor(_0x4d4bc4){super(_0x4d4bc4),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x4ea64e{static get['requires'](){return['CommentsRepository',_0x2d92f3,_0x15b297,E,V,U,O,G,F,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}['init'](){const _0x55348d=this['editor'],_0xdf2152=(_0x58bd2e,_0x4d38d7)=>{if('attribute'!=_0x58bd2e)return'ck-suggestion-marker-'+_0x58bd2e;const _0x39ceca=_0x4d38d7['split']('|')[0x0];return this['_isBlockAttribute'](_0x39ceca)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x55348d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1d7fc8=>{const {id:_0x22886d,type:_0x391884,subType:_0x403dc6}=this['_splitMarkerName'](_0x1d7fc8['markerName']),_0x5c4f5b=['ck-suggestion-marker',_0xdf2152(_0x391884,_0x403dc6)];let _0x47bac1=0xbb8;return this['activeMarkers']['includes'](_0x1d7fc8['markerName'])&&(_0x5c4f5b['push']('ck-suggestion-marker--active'),_0x47bac1=0xbc2),'deletion'==_0x391884&&(_0x47bac1+=0x5),{'classes':_0x5c4f5b,'attributes':{'data-suggestion':_0x22886d},'priority':_0x47bac1};}}),_0x55348d['conversion']['for']('dataDowncast')['add'](_0x28c69d=>{_0x28c69d['on']('addMarker:suggestion',(_0x3d32de,_0x567078,_0x2d76b0)=>{if(!_0x2d76b0['options']['showSuggestionHighlights'])return;const _0xe6c1bd=_0x567078['item'];if(!_0xe6c1bd)return;const _0x49d3c1=_0x2d76b0['mapper']['toViewElement'](_0xe6c1bd);_0x55348d['model']['schema']['isObject'](_0xe6c1bd)&&_0x49d3c1&&!_0x49d3c1['getCustomProperty']('widget')&&_0x49d3c1['is']('containerElement')&&_0x3dd3ff(_0x49d3c1,_0x2d76b0['writer']);},{'priority':'high'});}),_0x55348d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x597b62,_0x3e6d9a)=>{if(!_0x3e6d9a['options']['showSuggestionHighlights'])return null;const {type:_0x69a10a,subType:_0x4309a3}=this['_splitMarkerName'](_0x597b62['markerName']);return{'classes':['ck-suggestion-marker',_0xdf2152(_0x69a10a,_0x4309a3)],'priority':0xbb8};}});const _0x533d9b=({showActiveMarkers:_0x4977df=!0x0,isAttributeSuggestion:_0x58e7b6=!0x1}={})=>(_0x408998,_0x5ae2d8,_0x3c2255)=>{if(!_0x5ae2d8['item'])return;const {id:_0x49c3c1}=this['_splitMarkerName'](_0x5ae2d8['markerName']);if(_0x58e7b6){const _0x2bbae0=this['_suggestions']['get'](_0x49c3c1),_0x5bf79f=this['_getAttributeKey'](_0x2bbae0);if(!this['_isBlockAttribute'](_0x5bf79f))return;}if(_0x5ae2d8['item']['is']('selection'))return void _0x3c2255['consumable']['consume'](_0x5ae2d8['item'],_0x408998['name']);const _0x117424=_0x3c2255['mapper']['toViewElement'](_0x5ae2d8['item']);if(_0x5ae2d8['item']['is']('element')&&_0x55348d['model']['schema']['isBlock'](_0x5ae2d8['item'])&&!_0x117424['getCustomProperty']('addHighlight')){_0x3c2255['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x117424),_0x3c2255['writer']['setAttribute']('data-suggestion',_0x49c3c1,_0x117424),_0x3c2255['mapper']['bindElementToMarker'](_0x117424,_0x5ae2d8['markerName']),_0x4977df&&(this['activeMarkers']['includes'](_0x5ae2d8['markerName'])?_0x3c2255['writer']['addClass']('ck-suggestion-marker--active',_0x117424):_0x3c2255['writer']['removeClass']('ck-suggestion-marker--active',_0x117424));for(const _0x3f8dd0 of _0x55348d['model']['createRangeIn'](_0x5ae2d8['item'])['getItems']())_0x3c2255['consumable']['consume'](_0x3f8dd0,_0x408998['name']);_0x3c2255['consumable']['consume'](_0x5ae2d8['item'],_0x408998['name']);}};_0x55348d['conversion']['for']('dataDowncast')['add'](_0x5044e8=>{_0x5044e8['on']('addMarker:suggestion:formatBlock',(_0x174752,_0xa8c263,_0x3e5b3e)=>{_0x3e5b3e['options']['showSuggestionHighlights']&&_0x533d9b({'showActiveMarkers':!0x1})(_0x174752,_0xa8c263,_0x3e5b3e);},{'priority':'highest'});}),_0x55348d['conversion']['for']('dataDowncast')['add'](_0x4d1cdb=>{_0x4d1cdb['on']('addMarker:suggestion:attribute',(_0x4a7c48,_0x17b9bc,_0x56d14e)=>{_0x56d14e['options']['showSuggestionHighlights']&&_0x533d9b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4a7c48,_0x17b9bc,_0x56d14e);},{'priority':'highest'});}),_0x55348d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2d7a2f,_0x23e272)=>_0x23e272['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2d7a2f['substr'](0xb)}}),_0x55348d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3adadd,{writer:_0x367d9c})=>{let _0x33b1bd='suggestion:'+_0x3adadd['getAttribute']('suggestion-type')+':'+_0x3adadd['getAttribute']('id');return _0x3adadd['getAttribute']('marker-count')&&(_0x33b1bd+=':'+_0x3adadd['getAttribute']('marker-count')),_0x367d9c['createElement']('$marker',{'data-name':_0x33b1bd});}}),_0x55348d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x55348d['conversion']['for']('editingDowncast')['add'](_0x59e7bc=>{_0x59e7bc['on']('addMarker:suggestion:formatBlock',_0x533d9b(),{'priority':'high'});}),_0x55348d['conversion']['for']('editingDowncast')['add'](_0x3807f1=>{_0x3807f1['on']('addMarker:suggestion:attribute',_0x533d9b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x55348d['conversion']['for']('editingDowncast')['add'](_0x4df675=>{_0x4df675['on']('removeMarker:suggestion:formatBlock',(_0x568d22,_0x5b7829,_0x58a5e0)=>{const _0x5a61d1=_0x58a5e0['mapper']['markerNameToElements'](_0x5b7829['markerName']);if(_0x5a61d1){for(const _0x437fc6 of _0x5a61d1)_0x437fc6['getCustomProperty']('addHighlight')||(_0x58a5e0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x437fc6),_0x58a5e0['writer']['removeAttribute']('data-suggestion',_0x437fc6),_0x58a5e0['mapper']['unbindElementFromMarkerName'](_0x437fc6,_0x5b7829['markerName']));}},{'priority':'high'});}),_0x55348d['conversion']['for']('editingDowncast')['add'](_0x1eab37=>{_0x1eab37['on']('removeMarker:suggestion:attribute',(_0x403a9c,_0x5d439c,_0x34b84e)=>{const _0x28ea1b=_0x34b84e['mapper']['markerNameToElements'](_0x5d439c['markerName']);if(!_0x28ea1b)return;const {id:_0x1db621}=this['_splitMarkerName'](_0x5d439c['markerName']),_0xe5393c=this['_suggestions']['get'](_0x1db621),_0xf1002e=this['_getAttributeKey'](_0xe5393c);if(this['_isBlockAttribute'](_0xf1002e)){for(const _0x3101b9 of _0x28ea1b)_0x3101b9['getCustomProperty']('addHighlight')||(_0x34b84e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3101b9),_0x34b84e['writer']['removeAttribute']('data-suggestion',_0x3101b9),_0x34b84e['mapper']['unbindElementFromMarkerName'](_0x3101b9,_0x5d439c['markerName']));}},{'priority':'high'});}),_0x55348d['model']['document']['registerPostFixer'](_0x29f9ab=>{let _0xc5b643=!0x1;const _0x361c82=Array['from'](_0x55348d['model']['document']['differ']['getChangedMarkers']()),_0x5b3d13=new Set();for(const {name:_0x283744,data:_0x4a89ce}of _0x361c82){const {group:_0x3be701,type:_0x2b3473,subType:_0x4c0d38,id:_0xa2e6a9}=this['_splitMarkerName'](_0x283744);if('suggestion'!==_0x3be701)continue;const _0x4cfb15=this['_suggestions']['get'](_0xa2e6a9);if(null!=_0x4a89ce['newRange']){'formatInline'==_0x2b3473&&(_0xc5b643=_0xc5b643||Et(_0x4a89ce['newRange'],_0x283744,_0x29f9ab,_0x55348d['model']['schema']));const _0x21e220='attribute'==_0x2b3473&&this['_isBlockAttribute'](_0x4c0d38['split']('|')[0x0]);if(_0x4a89ce['newRange']['isCollapsed']||'$graveyard'==_0x4a89ce['newRange']['root']['rootName']||'formatBlock'==_0x2b3473&&!Ut(_0x4a89ce['newRange'])||_0x21e220&&!Ut(_0x4a89ce['newRange'])||'deletion'==_0x2b3473&&!(!Tt(_0x416d20=_0x4a89ce['newRange'])&&!function(_0x25e3e9){return _0x25e3e9['start']['parent']==_0x25e3e9['end']['nodeBefore']&&_0x25e3e9['start']['isAtEnd'];}(_0x416d20)))_0x29f9ab['removeMarker'](_0x283744),_0xc5b643=!0x0;else{if(!_0x4cfb15||!_0x4cfb15['isInContent'])continue;_0x5b3d13['add'](_0x4cfb15);}}}var _0x416d20;return _0x5b3d13['size']>0x0&&(_0xc5b643=!!this['_joinWithAdjacentSuggestions'](_0x5b3d13)||_0xc5b643),_0xc5b643;}),_0x55348d['model']['document']['registerPostFixer'](_0x467281=>{let _0x5072b3=!0x1;for(const _0x3f76b9 of _0x55348d['model']['document']['differ']['getChanges']())if('insert'==_0x3f76b9['type'])for(const _0x281b83 of this['_suggestions']['values']()){if(_0x281b83['isMultiRange']||!_0x281b83['isInContent'])continue;const _0x500464='formatBlock'==_0x281b83['type'],_0x8a88f=this['_getAttributeKey'](_0x281b83),_0x5c2835=_0x8a88f&&this['_isBlockAttribute'](_0x8a88f);if(!_0x500464&&!_0x5c2835)continue;const _0x37a72c=_0x281b83['getFirstRange']();if(_0x37a72c['start']['parent']!=_0x37a72c['end']['parent']&&!_0x37a72c['end']['isAtEnd']){const _0x2a5b9d=_0x55348d['model']['createPositionAt'](_0x37a72c['start']['nodeAfter'],'end'),_0x1c6974=_0x55348d['model']['createRange'](_0x37a72c['start'],_0x2a5b9d);_0x467281['updateMarker'](_0x281b83['getFirstMarker'](),{'range':_0x1c6974}),_0x5072b3=!0x0;}}return _0x5072b3;}),_0x55348d['model']['document']['registerPostFixer'](_0x32b4c4=>this['_processAttributeChanges'](_0x32b4c4)),_0x55348d['model']['document']['registerPostFixer'](_0x272d3c=>!_0x272d3c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x272d3c)),_0x55348d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x55348d['model']['document']['on']('change:data',(_0xe152dc,_0x2b17a0)=>{if(!_0x2b17a0['isLocal']||_0x2b17a0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2d5d95=_0x55348d['model']['document']['differ']['getChanges']();if(0x0==_0x2d5d95['length'])return;const _0x509a8a=[],_0x5ef14c=_0x2d5d95['filter'](_0x107db6=>'attribute'==_0x107db6['type']),_0x331e63=_0x2d5d95['filter'](_0x4d05e6=>'insert'==_0x4d05e6['type']&&'$text'!=_0x4d05e6['name']),_0x361fbd=_0x2d5d95['filter'](_0x14611b=>'remove'==_0x14611b['type']&&'$text'!=_0x14611b['name']);for(const _0x1d4f09 of _0x5ef14c)this['_isRegisteredAttribute'](_0x1d4f09['attributeKey'])&&_0x509a8a['push']({'key':_0x1d4f09['attributeKey'],'newValue':_0x1d4f09['attributeNewValue'],'oldValue':_0x1d4f09['attributeOldValue'],'range':Ot(_0x1d4f09['range'],_0x55348d['model'])});for(const _0x1b5c88 of _0x331e63){const _0x4f52dc=_0x361fbd['find'](_0x13e177=>_0x13e177['_element']===_0x1b5c88['_element']);if(_0x4f52dc){const _0x358369=Ft(_0x1b5c88['position']['nodeAfter'],_0x55348d['model']);_0x4f52dc['name']!==_0x1b5c88['name']&&_0x509a8a['push']({'key':m,'newValue':_0x1b5c88['name'],'oldValue':_0x4f52dc['name'],'range':_0x358369});for(const [_0x1e957c,_0x487aea]of _0x4f52dc['attributes']){if(!this['_isRegisteredAttribute'](_0x1e957c))continue;const _0x57c326=_0x1b5c88['attributes']['get'](_0x1e957c);_0x487aea!==_0x57c326&&_0x509a8a['push']({'key':_0x1e957c,'newValue':_0x57c326,'oldValue':_0x487aea,'range':_0x358369});}for(const [_0x4cf1d8,_0x17a457]of _0x1b5c88['attributes'])this['_isRegisteredAttribute'](_0x4cf1d8)&&(_0x4f52dc['attributes']['has'](_0x4cf1d8)||_0x509a8a['push']({'key':_0x4cf1d8,'newValue':_0x17a457,'oldValue':null,'range':_0x358369}));}}0x0!=_0x509a8a['length']&&_0x55348d['model']['enqueueChange'](_0x2b17a0,_0x5f33e4=>{const _0x49cc7c=_0x13da88();for(const {range:_0x5bf1a1,key:_0x47018b,oldValue:_0xd89ae9,newValue:_0x1283a4}of _0x509a8a)this['markAttributeChange'](_0x5bf1a1,_0x47018b,_0xd89ae9,_0x1283a4,{'groupId':_0x49cc7c});this['_reduceExistingSuggestions'](_0x5f33e4,_0x509a8a);});},{'priority':'lowest'}),_0x55348d['model']['markers']['on']('update:suggestion',(_0x175745,_0x42d1ce,_0x4138d3)=>{if(null==_0x4138d3){const {id:_0x5a958b}=this['_splitMarkerName'](_0x42d1ce['name']),_0x577d6e=this['_suggestions']['get'](_0x5a958b);_0x577d6e&&_0x577d6e['addMarkerName'](_0x42d1ce['name']);}}),_0x55348d['model']['document']['on']('change:data',()=>{const _0x5ea863=Array['from'](_0x55348d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x23e7eb=>'suggestion'===this['_splitMarkerName'](_0x23e7eb['name'])['group']);if(0x0===_0x5ea863['length'])return;_0x5ea863['sort']((_0x51f2be,_0x273f6e)=>{const _0x3e91d1=_0x51f2be['data']['oldRange'],_0xc09f07=_0x273f6e['data']['oldRange'];return null===_0x3e91d1&&null===_0xc09f07?0x0:null===_0x3e91d1&&null!==_0xc09f07?-0x1:null!==_0x3e91d1&&null===_0xc09f07?0x1:_0x3e91d1['start']['isBefore'](_0xc09f07['start'])?-0x1:0x1;});const _0x34feec=new Set(),_0x21f7f8=new Set();for(const {name:_0xfba42b,data:_0x153f77}of _0x5ea863){const {id:_0x5da971}=this['_splitMarkerName'](_0xfba42b);if(null===_0x153f77['oldRange']){const _0x584e41=this['_handleNewSuggestionMarker'](_0xfba42b);_0x21f7f8['add'](_0x584e41);}else{const _0x140f9f=this['_suggestions']['get'](_0x5da971);null!==_0x153f77['newRange']||_0x140f9f['isInContent']?(_0x34feec['add'](_0x140f9f['head']),_0x21f7f8['add'](_0x140f9f)):this['_removeSuggestion'](_0x140f9f);}}_0x21f7f8['size']>0x0&&this['_refreshSuggestionsChain'](_0x21f7f8);for(const _0x195c89 of _0x34feec)this['fire']('suggestionChanged',_0x195c89);}),_0x55348d['model']['on']('applyOperation',(_0x135fc6,_0x261f1d)=>{const _0x9835dd=_0x261f1d[0x0];if(!this['_suggestions']['size'])return;if(!_0x9835dd['isDocumentOperation'])return;if(_0x9835dd['batch']['isUndo']||!_0x9835dd['batch']['isLocal'])return;let _0xf280c6,_0x2fad39;switch(_0x9835dd['type']){case'insert':_0xf280c6=_0x55348d['model']['createPositionAt'](_0x9835dd['position']),_0x2fad39=_0xf280c6['getShiftedBy'](_0x9835dd['howMany']);break;case'split':_0xf280c6=_0x55348d['model']['createPositionAt'](_0x9835dd['splitPosition']),_0x2fad39=_0x55348d['model']['createPositionAt'](_0x9835dd['moveTargetPosition']);break;case'move':_0xf280c6=_0x55348d['model']['createPositionAt'](_0x9835dd['targetPosition']),_0x2fad39=_0xf280c6['getShiftedBy'](_0x9835dd['howMany']);break;default:return;}const _0xf959be=_0x55348d['model']['createRange'](_0xf280c6,_0x2fad39);_0x55348d['model']['change'](()=>{for(const {suggestion:_0x1a8b47,meta:_0x42c77b}of this['_findSuggestions'](_0xf959be)){if(_0x1a8b47['isMultiRange'])continue;if('formatInline'==_0x1a8b47['type'])continue;const _0x52d5d5=this['_getAttributeKey'](_0x1a8b47);if(_0x52d5d5&&this['_isBlockAttribute'](_0x52d5d5)&&'split'!=_0x9835dd['type'])continue;const _0x36d911=_0x1a8b47['data']&&_0x1a8b47['data']['multipleBlocks'];('formatBlock'!=_0x1a8b47['type']||'split'==_0x9835dd['type']&&!_0x36d911)&&(_0x42c77b['containsRangeInObject']||'insertion'==_0x1a8b47['type']&&_0x42c77b['isOwn']||_0x1a8b47['getFirstRange']()['containsRange'](_0xf959be)&&this['_breakSuggestionMarker'](_0x1a8b47,_0xf280c6,_0x2fad39));}});},{'priority':'lowest'}),_0x55348d['model']['on']('deleteContent',(_0x1baf54,_0x12ce53)=>{const _0x5785f9=_0x12ce53[0x0],_0x55b863=_0x12ce53[0x1];if(_0x55b863&&_0x55b863['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5785f9['isCollapsed'])return;const _0x2d7b00=_0x55348d['model']['schema'],{start:_0x5d2049,end:_0x58d506}=_0x5785f9['getFirstRange'](),_0x134fb4=_0x5d2049['nodeAfter']&&_0x2d7b00['isLimit'](_0x5d2049['nodeAfter'])?null:_0x2d7b00['getNearestSelectionRange'](_0x5d2049,'forward'),_0x36ff71=_0x58d506['nodeBefore']&&_0x2d7b00['isLimit'](_0x58d506['nodeBefore'])?null:_0x2d7b00['getNearestSelectionRange'](_0x58d506,'backward'),_0x27dd9e=_0x55348d['model']['createRange'](_0x134fb4?_0x134fb4['start']:_0x5d2049,_0x36ff71?_0x36ff71['end']:_0x58d506);_0x55348d['model']['change'](_0x1f08bb=>{this['markDeletion'](_0x27dd9e);const _0xcbd9d5=_0x55348d['model']['schema']['getNearestSelectionRange'](_0x27dd9e['start']);_0x5785f9['is']('documentSelection')?_0x1f08bb['setSelection'](_0xcbd9d5):_0x5785f9['setTo'](_0xcbd9d5);}),_0x1baf54['stop']();},{'priority':_0x2272e7['normal']+0xa}),_0x55348d['model']['on']('insertContent',(_0x1dd8a1,_0x22a653)=>{const _0x226d96=_0x22a653[_0x22a653['length']-0x1];_0x226d96&&_0x226d96['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x55348d['model']['change'](()=>{let _0x2a0b06=_0x55348d['model']['insertContent'](_0x22a653[0x0],_0x22a653[0x1],_0x22a653[0x2],{'forceDefaultExecution':!0x0});if(!_0x2a0b06)return;_0x1dd8a1['return']=_0x2a0b06['clone']();const _0x5e9623=_0x2a0b06['end']['nodeBefore'],_0x3267d0=_0x55348d['model']['schema'];_0x5e9623&&_0x3267d0['isBlock'](_0x5e9623)&&!_0x3267d0['isObject'](_0x5e9623)&&(_0x2a0b06=_0x55348d['model']['createRange'](_0x2a0b06['start'],_0x55348d['model']['createPositionAt'](_0x5e9623,'end'))),this['markInsertion'](_0x2a0b06);}),_0x1dd8a1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2975ae=new $(_0x55348d,this['_suggestions']);_0x55348d['commands']['add']('acceptSuggestion',_0x2975ae),this['enableCommand']('acceptSuggestion');const _0xeda71c=new B(_0x55348d,this['_suggestions']);_0x55348d['commands']['add']('discardSuggestion',_0xeda71c),this['enableCommand']('discardSuggestion'),_0x55348d['commands']['add']('acceptAllSuggestions',new x(_0x55348d,_0x2975ae,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x55348d['commands']['add']('discardAllSuggestions',new x(_0x55348d,_0xeda71c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x55348d['commands']['add']('acceptSelectedSuggestions',new R(_0x55348d,_0x2975ae,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x55348d['commands']['add']('discardSelectedSuggestions',new R(_0x55348d,_0xeda71c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x288328=_0x55348d['plugins']['get']('CommentsRepository');this['listenTo'](_0x288328,'addComment',(_0x493972,{threadId:_0x37a86f})=>{const _0x2e42bd=this['_suggestions']['get'](_0x37a86f);_0x2e42bd&&_0x2e42bd['commentThread']&&0x1===_0x2e42bd['commentThread']['length']&&this['_updateSuggestionData'](_0x37a86f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x288328,'removeComment',(_0x252235,{threadId:_0x58feb6})=>{const _0x2b81d0=this['_suggestions']['get'](_0x58feb6);_0x2b81d0&&_0x2b81d0['commentThread']&&!_0x2b81d0['commentThread']['length']&&this['_updateSuggestionData'](_0x58feb6,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5a0d6c){if(this['_adapter'])throw new _0x28358a('track-changes-adapter-already-set',this);this['_adapter']=_0x5a0d6c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1c71e0=!0x1,toJSON:_0x2072ff=!0x1}={}){const _0x17f465=[];for(const _0x1198a7 of this['_suggestions']['values']())_0x1c71e0&&!_0x1198a7['isInContent']||_0x17f465['push'](_0x1198a7);return _0x2072ff?_0x17f465['map'](_0x35d490=>_0x35d490['toJSON']()):_0x17f465;}['getSuggestion'](_0x2e4513){const _0x22fab5=this['_suggestions']['get'](_0x2e4513);if(!_0x22fab5)throw new _0x28358a('track-changes-suggestion-not-found',this);return _0x22fab5;}['hasSuggestion'](_0x54108b){return this['_suggestions']['has'](_0x54108b);}['addSuggestionData'](_0x4769a9){const {authorId:_0x3f9c45,id:_0x4e8f99,attributes:_0x403a06}=_0x4769a9,[_0x3793e7,_0x4bc7b4]=_0x4769a9['type']['split'](':'),_0x16e3a0=this['_suggestions']['get'](_0x4e8f99)||this['_createSuggestion'](_0x3793e7,_0x4bc7b4,_0x4e8f99,_0x3f9c45,_0x403a06);if(this['_addThreadToSuggestion'](_0x16e3a0),this['_checkSuggestionCorrectness'](_0x16e3a0,_0x3793e7,_0x4bc7b4||null,_0x3f9c45),_0x16e3a0['createdAt']=_0x4769a9['createdAt'],_0x16e3a0['_isDataLoaded']=!0x0,_0x403a06&&_0x403a06['@external']){const _0x1dfb79=_0x403a06['@external'],_0x598f03=this['_getExternalAuthor'](_0x1dfb79['authorName']);_0x16e3a0['authoredAt']=_0x1dfb79['createdAt'],_0x16e3a0['author']=_0x598f03,_0x16e3a0['isExternal']=!0x0;}else _0x16e3a0['authoredAt']=_0x4769a9['createdAt'];switch(_0x4769a9['data']&&(_0x16e3a0['data']=_0x4769a9['data']),_0x4769a9['attributes']&&(_0x16e3a0['attributes']=_0x4769a9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x16e3a0['_saved']=!0x0),this['_suggestionState']['get'](_0x16e3a0)){case'notReady':this['_suggestionState']['set'](_0x16e3a0,'dataReady');break;case'markerReady':_0x16e3a0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x16e3a0])),this['_refreshSuggestionsChain'](new Set([_0x16e3a0])),this['_suggestionState']['set'](_0x16e3a0,'ready'),this['fire']('suggestionLoaded',_0x16e3a0)):this['_suggestionState']['set'](_0x16e3a0,'removed');}return _0x16e3a0;}['acceptSuggestion'](_0xd5c06d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x937a1b of _0xd5c06d['getAllAdjacentSuggestions']())_0x937a1b['accept']();});});}['discardSuggestion'](_0x106b70){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x29dcc4 of _0x106b70['getAllAdjacentSuggestions']())_0x29dcc4['discard']();});});}['enableCommand'](_0x446198,_0x46ded1){const _0x113d94=this['editor']['commands']['get'](_0x446198);if(!_0x113d94)throw new _0x28358a('track-changes-command-not-found',this,{'commandName':_0x446198});if(this['_enabledCommands']['has'](_0x113d94))throw new _0x28358a('track-changes-enable-command-twice',this,{'commandName':_0x446198});this['_enabledCommands']['add'](_0x113d94),_0x46ded1&&_0x113d94['on']('execute',(_0x5c8250,_0x275cf5)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x275cf5['length']>0x0&&_0x275cf5[_0x275cf5['length']-0x1]&&_0x275cf5[_0x275cf5['length']-0x1]['forceDefaultExecution']?_0x275cf5['pop']():(_0x5c8250['return']=_0x46ded1((..._0x2c5aee)=>_0x113d94['execute'](..._0x2c5aee,{'forceDefaultExecution':!0x0}),..._0x275cf5),_0x5c8250['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5591a5){let _0x15cd32,_0x5a0146;const _0x1ff988=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x15cd32=_0x5591a5();}catch(_0x2b9536){_0x5a0146=_0x2b9536;}return _0x1ff988||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5a0146&&_0x28358a['rethrowUnexpectedError'](_0x5a0146,this),_0x15cd32;}['markInsertion'](_0x2e6b9a,_0x2b90d5=null,_0xcd7f0e={}){if(_0x2e6b9a['isCollapsed'])return null;const _0x13f4cd=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3639e6,meta:_0x2d610a}of this['_findSuggestions'](_0x2e6b9a,'insertion'))if(_0x2d610a['isOwn']){if(!_0x2d610a['isNextTo']){if(_0x2d610a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x3639e6,_0xcd7f0e))continue;return _0x3639e6;}if(Lt(_0x3639e6,_0xcd7f0e))return _0x3639e6;this['_breakSuggestionMarker'](_0x3639e6,_0x2e6b9a['start'],_0x2e6b9a['end']);break;}if(_0x2b90d5==_0x3639e6['subType']&&Lt(_0x3639e6,_0xcd7f0e)){const _0x3af952=_0x3639e6['getFirstRange']();return _0x3af952['start']['isEqual'](_0x2e6b9a['end'])?this['_setSuggestionRange'](_0x3639e6,this['_model']['createRange'](_0x2e6b9a['start'],_0x3af952['end'])):this['_setSuggestionRange'](_0x3639e6,this['_model']['createRange'](_0x3af952['start'],_0x2e6b9a['end'])),_0x3639e6;}}const _0x1a8cb9=_0x13da88(),_0x581df4=_0x13f4cd['id'],_0x2df93a=_0x2b90d5?'insertion:'+_0x2b90d5:'insertion',_0x438ce2=this['_setSuggestionData']({'id':_0x1a8cb9,'type':_0x2df93a,'createdAt':new Date(),'authorId':_0x581df4,'attributes':_0xcd7f0e});return this['_addSuggestionMarker'](_0x2df93a,_0x1a8cb9,_0x581df4,_0x2e6b9a),_0x438ce2;}['markMultiRangeInsertion'](_0x3f04cb,_0x2fa99a='multi',_0x5e4584={}){const _0x5ad2cb=this['editor']['plugins']['get']('Users')['me'],_0x30ec43=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2fa99a,'join');for(const _0xdfe4cd of this['getSuggestions']())if(_0xdfe4cd['author']['id']==_0x5ad2cb['id']&&'insertion'==_0xdfe4cd['type']&&_0xdfe4cd['subType']==_0x2fa99a&&Lt(_0xdfe4cd,_0x5e4584)&&(_0x30ec43(_0xdfe4cd['getRanges'](),_0x3f04cb)||_0x30ec43(_0x3f04cb,_0xdfe4cd['getRanges']()))){for(const _0x27a0bf of _0x3f04cb)_0xdfe4cd['addRange'](_0x27a0bf);return _0xdfe4cd;}for(const {suggestion:_0x373179,meta:_0x15e9f1}of this['_findSuggestions'](_0x3f04cb,'insertion')){if(!_0x15e9f1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x15e9f1['containsRangeInObject'])continue;if(!Lt(_0x373179,_0x5e4584))continue;let _0x14e8f7=!0x0;for(const _0xa5f56f of _0x373179['getRanges']())for(const _0x2d49ac of _0x3f04cb)if(!_0xa5f56f['containsRange'](_0x2d49ac)){_0x14e8f7=!0x1;break;}if(_0x14e8f7)return _0x373179;}const _0x22fee9=_0x13da88(),_0x2e3da3=_0x5ad2cb['id'],_0x5cc00b='insertion:'+_0x2fa99a,_0x18ae87=this['_setSuggestionData']({'id':_0x22fee9,'type':_0x5cc00b,'createdAt':new Date(),'authorId':_0x2e3da3,'attributes':_0x5e4584});for(const _0x5224cc of _0x3f04cb)this['_addSuggestionMarker'](_0x5cc00b,_0x22fee9,_0x2e3da3,_0x5224cc,u['getMultiRangeId']());return _0x18ae87;}['markInlineFormat'](_0xca32fc,_0x79ff88,_0x2284a4=null,_0x10bcdd={}){if(_0x2284a4=_0x2284a4||Vt(_0x79ff88),_0xca32fc['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5cbbb3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2284a4,'accept');return this['forceDefaultExecution'](()=>_0x5cbbb3([_0xca32fc],_0x79ff88,_0x10bcdd)),null;}const _0x2507e=this['editor']['plugins']['get']('Users')['me'],_0x5b74a9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3dbfe3,meta:_0x3b4799}of this['_findSuggestions'](_0xca32fc,'insertion'))_0x3b4799['isOwn']&&!_0x3b4799['isInsideObject']&&_0x5b74a9['push'](..._0x3dbfe3['getRanges']());}const _0x289d8c=function(_0x50857f,_0x213f0f){const _0x4a6b25=[];for(const _0x4fb767 of _0x213f0f){const _0x4778e4=_0x50857f['getIntersection'](_0x4fb767);_0x4778e4&&_0x4a6b25['push'](_0x4778e4);}return _0x4a6b25;}(_0xca32fc,_0x5b74a9),_0x36e4bc=function(_0x25e7e9,_0x33e998){const _0x47ad25=[_0x25e7e9];for(const _0x4f48dc of _0x33e998){let _0x2ae7af=0x0;for(;_0x2ae7af<_0x47ad25['length'];){const _0x5e63af=_0x47ad25[_0x2ae7af]['getDifference'](_0x4f48dc);_0x47ad25['splice'](_0x2ae7af,0x1,..._0x5e63af),_0x2ae7af+=_0x5e63af['length'];}}return _0x47ad25;}(_0xca32fc,_0x5b74a9);_0x289d8c['length']&&this['_model']['change'](()=>{for(const _0x55c177 of _0x289d8c){const _0x5953a5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2284a4,'accept');this['forceDefaultExecution'](()=>_0x5953a5([_0x55c177],_0x79ff88,_0x10bcdd));}});for(const _0xf47d6b of _0x36e4bc){let _0x243b81=null,_0x31d1c4=_0xf47d6b['start'],_0x43a407=_0xf47d6b['end'];for(const {suggestion:_0xe9f95c,meta:_0x4fd02a}of this['_findSuggestions'](_0xf47d6b,'formatInline')){if(!_0x4fd02a['isOwn'])continue;if(_0xe9f95c['subType']!=_0x2284a4)continue;if(!Lt(_0xe9f95c,_0x10bcdd))continue;const _0x8b5668=_0xe9f95c['getFirstRange']();if(_0x8b5668['containsRange'](_0xf47d6b,!0x0))return null;_0x31d1c4=_0x31d1c4['isBefore'](_0x8b5668['start'])?_0x31d1c4:_0x8b5668['start'],_0x43a407=_0x43a407['isAfter'](_0x8b5668['end'])?_0x43a407:_0x8b5668['end'],_0x243b81?_0x8b5668['start']['isBefore'](_0x243b81['getFirstRange']()['start'])?(_0x243b81['removeMarkers'](),_0x243b81=_0xe9f95c):_0xe9f95c['removeMarkers']():_0x243b81=_0xe9f95c;}const _0x1b5109=this['_model']['createRange'](_0x31d1c4,_0x43a407);if(_0x243b81)this['_setSuggestionRange'](_0x243b81,_0x1b5109);else{const _0x9be09f=_0x13da88(),_0x430b0d=_0x2507e['id'];this['_setSuggestionData']({'id':_0x9be09f,'type':'formatInline:'+_0x2284a4,'data':_0x79ff88,'createdAt':new Date(),'authorId':_0x430b0d,'attributes':_0x10bcdd}),this['_addSuggestionMarker']('formatInline:'+_0x2284a4,_0x9be09f,_0x430b0d,_0x1b5109);}}return null;}['markBlockFormat'](_0x4f676e,_0x3c12b3,_0x6ba4ad=[],_0x5621a6=null,_0xb2de94={}){_0x3c12b3['formatGroupId']||(_0x3c12b3['formatGroupId']=_0x3c12b3['commandName']),_0x3c12b3['multipleBlocks']=_0x4f676e['is']('range'),_0x5621a6=_0x5621a6||Vt(_0x3c12b3);const _0xe41d75=_0x6ba4ad['map'](_0x351b19=>Ft(_0x351b19,this['_model'])),_0x16abee=_0x4f676e['is']('range')?_0x4f676e:Ft(_0x4f676e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4b0d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5621a6,'accept');return this['forceDefaultExecution'](()=>_0x4b0d0([_0x16abee],_0x3c12b3,_0xb2de94)),null;}_0xe41d75['push'](_0x16abee);let _0x5a6ef4=!0x0;for(const _0x3d3788 of _0xe41d75)if(!this['_rangeIsInLocalUserInsertion'](_0x3d3788)){_0x5a6ef4=!0x1;break;}if(_0x5a6ef4&&'always'!==this['_trackFormatChanges']){const _0x366d48=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5621a6,'accept');return this['forceDefaultExecution'](()=>_0x366d48([_0x16abee],_0x3c12b3,_0xb2de94)),null;}let _0x38e350=null,_0x3fd6b6=_0x16abee['start'],_0x340201=_0x16abee['end'];for(const {suggestion:_0x4e0edc,meta:_0x1b4644}of this['_findSuggestions'](_0x16abee,'formatBlock')){if(!_0x1b4644['isOwn'])continue;if(_0x1b4644['isNextTo']||_0x1b4644['containsRangeInObject']||_0x1b4644['isInsideObject'])continue;if(_0x4e0edc['data']['formatGroupId']!=_0x3c12b3['formatGroupId'])continue;if(!Lt(_0x4e0edc,_0xb2de94))continue;const _0x39eb95=_0x4e0edc['getFirstRange']();if(_0x4e0edc['subType']==_0x5621a6){if(_0x39eb95['containsRange'](_0x16abee,!0x0))return null;_0x3fd6b6=_0x3fd6b6['isBefore'](_0x39eb95['start'])?_0x3fd6b6:_0x39eb95['start'],_0x340201=_0x340201['isAfter'](_0x39eb95['end'])?_0x340201:_0x39eb95['end'],_0x38e350?_0x39eb95['start']['isBefore'](_0x38e350['getFirstRange']()['start'])?(_0x38e350['removeMarkers'](),_0x38e350=_0x4e0edc):_0x4e0edc['removeMarkers']():_0x38e350=_0x4e0edc;}else{const _0x1fee8e=_0x16abee['getIntersection'](_0x39eb95);this['_cutOutSuggestionMarker'](_0x4e0edc,_0x1fee8e);}}const _0x35b75f=this['editor']['plugins']['get']('Users')['me'],_0x3242b4=_0x13da88(),_0x471e8b=_0x35b75f['id'];if(_0x38e350)return this['_setSuggestionRange'](_0x38e350,this['_model']['createRange'](_0x3fd6b6,_0x340201)),_0x38e350;{const _0x1c7185=this['_setSuggestionData']({'id':_0x3242b4,'type':'formatBlock:'+_0x5621a6,'data':_0x3c12b3,'createdAt':new Date(),'authorId':_0x471e8b,'attributes':_0xb2de94});return this['_addSuggestionMarker']('formatBlock:'+_0x5621a6,_0x3242b4,_0x471e8b,this['_model']['createRange'](_0x3fd6b6,_0x340201)),_0x1c7185;}}['markMultiRangeBlockFormat'](_0x5ed9f3,_0x42c550,_0x58e5f3=[],_0x5c0195=null,_0x3d46cf={}){_0x42c550['formatGroupId']||(_0x42c550['formatGroupId']=_0x42c550['commandName']);const _0x37b806=_0x5ed9f3[0x0];_0x42c550['multipleBlocks']=_0x37b806['is']('range'),_0x5c0195=_0x5c0195||Vt(_0x42c550);const _0x5a1086=_0x58e5f3['map'](_0x438d43=>Ft(_0x438d43,this['_model'])),_0x3699a3=_0x37b806['is']('range')?_0x5ed9f3:_0x5ed9f3['map'](_0x332b9c=>Ft(_0x332b9c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x190d59=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c0195,'accept');return this['forceDefaultExecution'](()=>_0x190d59(_0x3699a3,_0x42c550,_0x3d46cf)),null;}_0x5a1086['push'](..._0x3699a3);let _0x373ae1=!0x0;for(const _0x4f0898 of _0x5a1086)if(!this['_rangeIsInLocalUserInsertion'](_0x4f0898)){_0x373ae1=!0x1;break;}if(_0x373ae1&&'always'!==this['_trackFormatChanges']){const _0x39c000=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c0195,'accept');return this['forceDefaultExecution'](()=>_0x39c000(_0x3699a3,_0x42c550,_0x3d46cf)),null;}const _0x284b8d=this['editor']['plugins']['get']('Users')['me'];for(const _0x38cdc6 of this['getSuggestions']()){if(_0x38cdc6['author']['id']!=_0x284b8d['id'])continue;if('formatBlock'!=_0x38cdc6['type']||_0x38cdc6['data']['formatGroupId']!=_0x42c550['formatGroupId'])continue;if(!Lt(_0x38cdc6,_0x3d46cf))continue;const _0xf7f297=_0x38cdc6['subType']==_0x5c0195;for(let _0x24c9b1=0x0;_0x24c9b1<_0x3699a3['length'];_0x24c9b1++){const _0x42288b=_0x3699a3[_0x24c9b1];for(const _0x1c4701 of _0x38cdc6['getMarkers']()){const _0x33d71a=_0x1c4701['getRange']();if(_0x42288b['isEqual'](_0x33d71a)){_0xf7f297?(_0x3699a3['splice'](_0x24c9b1,0x1),_0x24c9b1--):_0x38cdc6['removeMarker'](_0x1c4701['name']);break;}}}}if(0x0==_0x3699a3['length'])return null;const _0x4fe2da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c0195,'join');for(const _0x5d3eca of this['getSuggestions']())if(_0x5d3eca['author']['id']==_0x284b8d['id']&&'formatBlock'==_0x5d3eca['type']&&_0x5d3eca['data']['formatGroupId']==_0x42c550['formatGroupId']&&_0x5d3eca['subType']==_0x5c0195&&Lt(_0x5d3eca,_0x3d46cf)&&(_0x4fe2da(_0x5d3eca['getRanges'](),_0x3699a3)||_0x4fe2da(_0x3699a3,_0x5d3eca['getRanges']()))){for(const _0x4fbbff of _0x3699a3)_0x5d3eca['addRange'](_0x4fbbff);return _0x5d3eca;}const _0x3bce60=_0x13da88(),_0xa425c=_0x284b8d['id'],_0x2cfd2b='formatBlock:'+_0x5c0195,_0x20442f=this['_setSuggestionData']({'id':_0x3bce60,'type':_0x2cfd2b,'data':_0x42c550,'createdAt':new Date(),'authorId':_0xa425c,'attributes':_0x3d46cf});for(const _0x29f10e of _0x3699a3)this['_addSuggestionMarker'](_0x2cfd2b,_0x3bce60,_0xa425c,_0x29f10e,u['getMultiRangeId']());return _0x20442f;}['markDeletion'](_0x223383,_0x449207=null,_0x225921={}){if(_0x223383['isCollapsed'])return null;const _0x564fe3=this['editor']['plugins']['get']('Users')['me'],_0x5ba0c5=new _0xf2dec5(_0x223383['start'],_0x223383['end']);for(const {suggestion:_0x38ba19,meta:_0xe39e81}of this['_findSuggestions'](_0x5ba0c5,'insertion'))if(_0xe39e81['isOwn']&&!_0xe39e81['isNextTo']){if(_0x38ba19['isMultiRange']){const _0x1135ab=_0x38ba19['getRanges']()['filter'](_0x464adf=>'$graveyard'!=_0x464adf['root']['rootName']);_0x1135ab['every'](_0x51497a=>_0x5ba0c5['containsRange'](_0x51497a,!0x0))&&_0x38ba19['discard']();if(_0x1135ab['some'](_0x2dd3c3=>_0x2dd3c3['containsRange'](_0x5ba0c5,!0x0))){const _0x44a659=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x449207,'accept');return this['forceDefaultExecution'](()=>_0x44a659([_0x5ba0c5],null,_0x225921)),null;}}else{const _0x2dac4a=_0x5ba0c5['getIntersection'](_0x38ba19['getFirstRange']());null!==_0x2dac4a&&_0x38ba19['_onDiscard']([_0x2dac4a],null,_0x225921);}}if(_0x5ba0c5['detach'](),_0x5ba0c5['isCollapsed']||'$graveyard'==_0x5ba0c5['root']['rootName'])return null;let _0x44d7dd=null,_0x4ffa9f=_0x5ba0c5['start'],_0x396750=_0x5ba0c5['end'];const _0x5380e7=this['_findSuggestions'](_0x5ba0c5,'deletion');for(const {suggestion:_0x36cbc8,meta:_0x5cc5e2}of _0x5380e7){const _0x45a7ac=this['_model']['createRange'](_0x4ffa9f,_0x396750);if(_0x5cc5e2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5cc5e2['containsRangeInObject']&&!_0x5cc5e2['isInsideObject'])){if(_0x36cbc8['isMultiRange']){if(!Lt(_0x36cbc8,_0x225921))continue;let _0x2b2c35=!0x0;for(const _0xca9370 of _0x36cbc8['getRanges']()){if(_0xca9370['containsRange'](_0x45a7ac,!0x0))return _0x36cbc8;_0x45a7ac['containsRange'](_0xca9370)||(_0x2b2c35=!0x1);}_0x2b2c35&&_0x36cbc8['discard']();}else{const _0x1e1fc4=_0x36cbc8['getFirstRange']();if(_0x1e1fc4['containsRange'](_0x45a7ac,!0x0))return _0x36cbc8;if(!Lt(_0x36cbc8,_0x225921)){_0x45a7ac['containsRange'](_0x1e1fc4)?_0x36cbc8['removeMarkers']():_0x1e1fc4['containsPosition'](_0x4ffa9f)?_0x4ffa9f=_0x1e1fc4['end']:_0x1e1fc4['containsPosition'](_0x396750)&&(_0x396750=_0x1e1fc4['start']);continue;}_0x4ffa9f=_0x4ffa9f['isBefore'](_0x1e1fc4['start'])?_0x4ffa9f:_0x1e1fc4['start'],_0x396750=_0x396750['isAfter'](_0x1e1fc4['end'])?_0x396750:_0x1e1fc4['end'],_0x225921=Object['assign']({},_0x36cbc8['attributes']),_0x44d7dd?_0x1e1fc4['start']['isBefore'](_0x44d7dd['getFirstRange']()['start'])?(_0x44d7dd['removeMarkers'](),_0x44d7dd=_0x36cbc8):_0x36cbc8['removeMarkers']():_0x44d7dd=_0x36cbc8;}}}if(_0x44d7dd)return this['_setSuggestionRange'](_0x44d7dd,this['_model']['createRange'](_0x4ffa9f,_0x396750)),_0x44d7dd;{const _0x2dadb9=_0x13da88(),_0x35dc59=this['_model']['createRange'](_0x4ffa9f,_0x396750),_0x22863f=_0x564fe3['id'],_0x2499ac=_0x449207?'deletion:'+_0x449207:'deletion',_0xc844ef=this['_setSuggestionData']({'id':_0x2dadb9,'type':_0x2499ac,'createdAt':new Date(),'authorId':_0x22863f,'attributes':_0x225921});return this['_addSuggestionMarker'](_0x2499ac,_0x2dadb9,_0x22863f,_0x35dc59),_0xc844ef;}}['markMultiRangeDeletion'](_0x2e064e,_0x189801='multi',_0x2c7c42={}){const _0x33a834=this['editor']['plugins']['get']('Users')['me'],_0x1d48cf=_0x2e064e['map'](_0x5b321e=>new _0xf2dec5(_0x5b321e['start'],_0x5b321e['end'])),_0x2b292b=new Set();for(const {suggestion:_0x44b25c,meta:_0x217aa3}of this['_findSuggestions'](_0x1d48cf,'insertion'))_0x217aa3['isOwn']&&!_0x217aa3['isNextTo']&&_0x2b292b['add'](_0x44b25c);for(const _0x1f4660 of _0x2b292b)if(_0x1f4660['isMultiRange']){const _0x2bbf29=_0x1f4660['getRanges']();(!_0x1f4660['attributes']||!_0x1f4660['attributes']['skipNestingCheck'])&&(_0x2bbf29['every'](_0x93b5f7=>_0x1d48cf['some'](_0x249934=>_0x249934['containsRange'](_0x93b5f7,!0x0)))&&_0x1f4660['discard']());if(_0x1d48cf['every'](_0x5c172f=>_0x2bbf29['some'](_0x537355=>_0x537355['containsRange'](_0x5c172f,!0x0)))){const _0xf8d00f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x189801,'accept');return this['forceDefaultExecution'](()=>_0xf8d00f(_0x2e064e,null,_0x2c7c42)),null;}}else{const _0x293e88=_0x1f4660['getFirstRange']();_0x1d48cf['some'](_0x44b171=>_0x44b171['containsRange'](_0x293e88,!0x0))&&_0x1f4660['discard']();if(_0x1d48cf['every'](_0x257c25=>_0x293e88['containsRange'](_0x257c25,!0x0))){const _0x177730=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x189801,'accept');return this['forceDefaultExecution'](()=>_0x177730(_0x1d48cf,null,_0x2c7c42)),null;}}const _0x1c16dc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x189801,'join');let _0x3a17e3=null;for(const _0x41b564 of this['getSuggestions']())if(_0x41b564['author']['id']==_0x33a834['id']&&_0x41b564['isInContent']&&'deletion'==_0x41b564['type']&&_0x41b564['subType']==_0x189801&&Lt(_0x41b564,_0x2c7c42)&&(_0x1c16dc(_0x41b564['getRanges'](),_0x1d48cf)||_0x1c16dc(_0x1d48cf,_0x41b564['getRanges']()))){if(_0x3a17e3){if(_0x41b564['commentThread']&&_0x41b564['commentThread']['length'])continue;for(const _0x208d95 of _0x41b564['getRanges']())_0x3a17e3['isIntersectingWithRange'](_0x208d95)||_0x3a17e3['addRange'](_0x208d95);_0x41b564['removeMarkers']();}else{_0x3a17e3=_0x41b564;for(const _0x5be841 of _0x1d48cf)_0x41b564['isIntersectingWithRange'](_0x5be841)||_0x41b564['addRange'](_0x5be841);}}if(_0x3a17e3)return _0x3a17e3;_0x2b292b['clear']();for(const {suggestion:_0x3a8e03,meta:_0x2dfa97}of this['_findSuggestions'](_0x1d48cf,'deletion'))_0x2dfa97['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2dfa97['containsRangeInObject']&&!_0x2dfa97['isInsideObject'])&&Lt(_0x3a8e03,_0x2c7c42)&&_0x2b292b['add'](_0x3a8e03);for(const _0x3c880d of _0x2b292b){const _0x360c3d=_0x3c880d['getRanges']();if(!_0x2c7c42||!_0x2c7c42['skipNestingCheck']){if(_0x1d48cf['every'](_0x2d6439=>_0x360c3d['some'](_0x5589a8=>_0x5589a8['containsRange'](_0x2d6439,!0x0))))return _0x3c880d;}(!_0x3c880d['attributes']||!_0x3c880d['attributes']['skipNestingCheck'])&&(_0x360c3d['every'](_0x391c96=>_0x1d48cf['some'](_0x45a889=>_0x45a889['containsRange'](_0x391c96,!0x0)))&&_0x3c880d['discard']());}const _0x214598=_0x13da88(),_0x56a491=_0x33a834['id'],_0x2f3821='deletion:'+_0x189801,_0x45789c=this['_setSuggestionData']({'id':_0x214598,'type':_0x2f3821,'createdAt':new Date(),'authorId':_0x56a491,'attributes':_0x2c7c42});for(const _0x572131 of _0x1d48cf)_0x572131['detach'](),_0x572131['isCollapsed']||'$graveyard'==_0x572131['root']['rootName']||this['_addSuggestionMarker'](_0x2f3821,_0x214598,_0x56a491,_0x572131,u['getMultiRangeId']());return _0x45789c;}['markAttributeChange'](_0x643745,_0x41098a,_0x436571,_0x1644b3,_0x131af2){if(_0x643745['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x160e7b=this['editor']['plugins']['get']('Users')['me']['id'],_0x43af65=Array['from'](this['_suggestions']['values']())['filter'](_0x270b55=>'attribute'==_0x270b55['type']&&_0x270b55['data']['key']==_0x41098a&&_0x270b55['isIntersectingWithRange'](_0x643745));if('default'===this['_trackFormatChanges']){const _0x45ca52=this['_findSuggestions'](_0x643745,'insertion')['filter'](({meta:_0x48de39})=>_0x48de39['isOwn']&&!_0x48de39['isInsideObject']&&!_0x48de39['isNextTo'])['map'](({suggestion:_0x515079})=>_0x515079);_0x43af65['unshift'](..._0x45ca52);}const _0x5f4d7f=new Map([[_0x643745,_0x436571]]);for(const _0x122b5d of _0x43af65){const _0x231a84='attribute'==_0x122b5d['type']?_0x122b5d['data']['oldValue']:void 0x0,_0x13f2f2=_0x122b5d['getFirstRange'](),_0x1838b8=Array['from'](_0x5f4d7f['keys']())['find'](_0x47d643=>_0x47d643['isIntersecting'](_0x13f2f2));if(!_0x1838b8)continue;const _0x455ed2=_0x1838b8['getDifference'](_0x13f2f2);this['_isBlockAttribute'](_0x41098a)&&'insertion'==_0x122b5d['type']&&0x0!=_0x455ed2['length']||(_0x5f4d7f['delete'](_0x1838b8),_0x455ed2['forEach'](_0x20c24b=>{_0x5f4d7f['set'](_0x20c24b,_0x436571);}),'insertion'!=_0x122b5d['type']&&_0x231a84!=_0x1644b3&&_0x5f4d7f['set'](_0x1838b8['getIntersection'](_0x13f2f2),_0x231a84));}const _0x175927=[];for(const [_0x234052,_0x4e6e63]of _0x5f4d7f){const _0x504f09=_0x13da88(),_0x504d6f={'key':_0x41098a,'oldValue':_0x4e6e63,'newValue':_0x1644b3};_0x41098a['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':_0x41098a});const _0x2528d0=('attribute:'+(_0x41098a+'|'+Vt({'newValue':_0x1644b3})))['substring'](0x0,0x3c),_0x13cba4=this['_setSuggestionData']({'id':_0x504f09,'type':_0x2528d0,'data':_0x504d6f,'createdAt':new Date(),'authorId':_0x160e7b,'attributes':_0x131af2});_0x175927['push'](_0x13cba4),this['_addSuggestionMarker'](_0x2528d0,_0x504f09,_0x160e7b,_0x234052);}return _0x175927;}['enableDefaultAttributesIntegration'](_0x3cf10b){this['enableCommand'](_0x3cf10b,(_0xf5190a,..._0x4ea0d2)=>{this['_recordAttributeChanges'](()=>{_0xf5190a(..._0x4ea0d2);});});}['registerBlockAttribute'](_0x1b89fe){this['_blockAttributeKeys']['add'](_0x1b89fe);}['registerInlineAttribute'](_0x3aef44){this['_inlineAttributeKeys']['add'](_0x3aef44);}['_getAttributeKey'](_0x1dbda3){return'attribute'==_0x1dbda3['type']?_0x1dbda3['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5859b0,_0x3c80bd){const _0x2712ec=_0x5859b0['getFirstMarker']();this['_model']['change'](_0x131248=>{_0x131248['updateMarker'](_0x2712ec,{'range':_0x3c80bd});});}['_addThreadToSuggestion'](_0x16562b){const _0x1b2030=_0x16562b['id'],_0x530d89=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1b2030)||this['_commentsRepository']['addCommentThread']({'channelId':_0x530d89,'threadId':_0x1b2030,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x47ec44=this['_commentsRepository']['getCommentThread'](_0x1b2030);_0x47ec44['unbind']('isRemovable'),_0x47ec44['isRemovable']=!0x1,_0x16562b['commentThread']=_0x47ec44;}['_checkSuggestionCorrectness'](_0x4afc6b,_0x11cfe9,_0x20eba9,_0x4926cc){if(_0x4afc6b['type']!=_0x11cfe9||_0x4afc6b['subType']!=_0x20eba9||_0x4afc6b['creator']['id']!=_0x4926cc)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x28358a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x161cb2,_0x29a5b4){const _0x4e18de=_0x161cb2['getFirstRange']();if(_0x29a5b4['isEqual'](_0x4e18de))_0x161cb2['removeMarkers']();else{if(_0x4e18de['containsRange'](_0x29a5b4)){const _0x5d03f7=this['_model']['createPositionAt'](_0x29a5b4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x161cb2,this['_model']['createRange'](_0x4e18de['start'],_0x5d03f7));const _0x1773b1=_0x13da88(),_0x3850bd=_0x161cb2['creator']['id'],_0x1b548d=_0x161cb2['type']+':'+_0x161cb2['subType'];this['_setSuggestionData']({'id':_0x1773b1,'type':_0x1b548d,'createdAt':new Date(),'authorId':_0x3850bd,'data':_0x161cb2['data'],'attributes':_0x161cb2['attributes']});const _0x55bda7=this['_model']['createPositionAt'](_0x29a5b4['end']['parent'],'after'),_0x49777b=this['_model']['createRange'](_0x55bda7,_0x4e18de['end']);this['_addSuggestionMarker'](_0x1b548d,_0x1773b1,_0x3850bd,_0x49777b);}else{if(_0x4e18de['containsPosition'](_0x29a5b4['start'])){const _0x317d52=this['_model']['createPositionAt'](_0x29a5b4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x161cb2,this['_model']['createRange'](_0x4e18de['start'],_0x317d52));}else{const _0x38d052=this['_model']['createPositionAt'](_0x29a5b4['end']['parent'],'after');this['_setSuggestionRange'](_0x161cb2,this['_model']['createRange'](_0x38d052,_0x4e18de['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xf4027e){for(const {suggestion:_0x2c6c1b,meta:_0xa35323}of this['_findSuggestions'](_0xf4027e,'insertion')){if(!_0xa35323['isOwn'])continue;const _0x3b90d=_0x2c6c1b['getRanges']();for(const _0x99ce7d of _0x3b90d)if(!_0xf4027e['getDifference'](_0x99ce7d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1f6851){const _0x1b4cb6=this['editor']['plugins']['get']('Users')['getUser'](_0x1f6851);if(!_0x1b4cb6)throw new _0x28358a('track-changes-user-not-found',this);return _0x1b4cb6;}['_getExternalAuthor'](_0x174945){const _0x37007f=this['editor']['plugins']['get']('Users'),_0x3ded40=_0x2e1087('external:'+_0x174945),_0x1d1bd5=_0x37007f['getUser'](_0x3ded40);return _0x1d1bd5||_0x37007f['addUser']({'id':_0x3ded40,'name':_0x174945});}['_createSuggestion'](_0x5969ad,_0x5123e7,_0x3caf5a,_0x1f3407,_0x41b96f){const _0x313abc=this['_getAuthorFromId'](_0x1f3407),_0x4398d1=this['_suggestionFactory']['buildSuggestion'](_0x5969ad,_0x5123e7,_0x3caf5a,_0x313abc,_0x41b96f,_0x4a5384=>{this['_updateSuggestionData'](_0x3caf5a,{'attributes':_0x4a5384});const _0x4f67ec=this['getSuggestion'](_0x3caf5a);this['_joinWithAdjacentSuggestions'](new Set([_0x4f67ec])),this['_refreshSuggestionsChain'](new Set([_0x4f67ec]));});return this['listenTo'](_0x4398d1,'accept',()=>{this['_updateSuggestionData'](_0x3caf5a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4398d1,'discard',()=>{this['_updateSuggestionData'](_0x3caf5a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3caf5a,_0x4398d1),this['_suggestionState']['set'](_0x4398d1,'notReady'),_0x4398d1;}['_splitMarkerName'](_0xa752c2){const _0x130da5=_0xa752c2['split'](':');return{'group':_0x130da5[0x0],'type':_0x130da5[0x1],'subType':_0x130da5['length']>=0x5?_0x130da5[0x2]:null,'id':_0x130da5['length']<0x5?_0x130da5[0x2]:_0x130da5[0x3],'authorId':_0x130da5['length']<0x5?_0x130da5[0x3]:_0x130da5[0x4],'markerCount':0x6==_0x130da5['length']?_0x130da5[0x5]:null};}['_breakSuggestionMarker'](_0x452e59,_0x357a94,_0x42e9f8){const _0x2e39ba=_0x452e59['getFirstRange'](),_0x51b66e=_0x2e39ba['start'],_0x5a80c6=_0x2e39ba['end'];this['_setSuggestionRange'](_0x452e59,this['_model']['createRange'](_0x51b66e,_0x357a94));const _0x26816d=_0x13da88(),_0x23dedc=_0x452e59['creator']['id'],_0x18bde5=_0x452e59['type']+(_0x452e59['subType']?':'+_0x452e59['subType']:'');this['_setSuggestionData']({'id':_0x26816d,'type':_0x18bde5,'createdAt':new Date(),'authorId':_0x23dedc,'originalSuggestionId':_0x452e59['id'],'attributes':_0x452e59['attributes'],'data':_0x452e59['data']});const _0x4f9fce=this['_getAttributeKey'](_0x452e59);('formatBlock'==_0x452e59['type']||_0x4f9fce&&this['_isBlockAttribute'](_0x4f9fce))&&(_0x42e9f8=this['_model']['createPositionBefore'](_0x42e9f8['parent'])),this['_addSuggestionMarker'](_0x18bde5,_0x26816d,_0x23dedc,this['_model']['createRange'](_0x42e9f8,_0x5a80c6));}['_findSuggestions'](_0x5aa531,_0x13aa92=null){const _0x16a24d=[],_0x6d9873=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5aa531)||(_0x5aa531=[_0x5aa531]);for(const _0xbabc2c of this['getSuggestions']()){if(!_0xbabc2c['isInContent'])continue;if(_0x13aa92&&_0xbabc2c['type']!=_0x13aa92)continue;let _0x5efc86=!0x1;for(const _0x3d23f2 of _0xbabc2c['getRanges']()){for(const _0x27a060 of _0x5aa531){const _0x5da1af=_0x27a060['start']['isEqual'](_0x3d23f2['end'])||_0x27a060['end']['isEqual'](_0x3d23f2['start']);if(_0x5da1af||_0x27a060['getIntersection'](_0x3d23f2)){const _0x22165c=_0x27a060['containsRange'](_0x3d23f2)&&Rt(this['_model']['schema'],_0x3d23f2['start'],_0x27a060),_0x15f8e2=_0x3d23f2['containsRange'](_0x27a060)&&Rt(this['_model']['schema'],_0x27a060['start'],_0x3d23f2);_0x16a24d['push']({'suggestion':_0xbabc2c,'meta':{'isOwn':_0x6d9873==_0xbabc2c['author'],'isNextTo':_0x5da1af,'isInsideObject':_0x22165c,'containsRangeInObject':_0x15f8e2}}),_0x5efc86=!0x0;break;}}if(_0x5efc86)break;}}return _0x16a24d;}['_addSuggestionMarker'](_0x381f75,_0xaf25f9,_0x5dfd1c,_0x170d40,_0x18b737){this['_model']['change'](_0xaa3ef=>{let _0x10b8c7='suggestion:'+_0x381f75+':'+_0xaf25f9+':'+_0x5dfd1c;_0x18b737&&(_0x10b8c7=_0x10b8c7+':'+_0x18b737),_0xaa3ef['addMarker'](_0x10b8c7,{'range':_0x170d40,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2c8fc7){const _0x5d102d=_0x2c8fc7['previous'],_0x5a95ce=_0x2c8fc7['next'];_0x2c8fc7['previous']=null,_0x2c8fc7['next']=null,null!=_0x5d102d&&_0x5d102d['next']==_0x2c8fc7&&(_0x5d102d['next']=_0x5a95ce),null!=_0x5a95ce&&_0x5a95ce['previous']==_0x2c8fc7&&(_0x5a95ce['previous']=_0x5d102d),'ready'==this['_suggestionState']['get'](_0x2c8fc7)&&(this['_suggestionState']['set'](_0x2c8fc7,'removed'),this['fire']('suggestionUnloaded',_0x2c8fc7,_0x5d102d,_0x5a95ce));}['_setSuggestionData'](_0x1308e3){const _0x268788=_0x1308e3['id'],_0x1a0256=this['addSuggestionData'](_0x1308e3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x11c476=this['editor']['plugins']['get']('PendingActions'),_0x5302c0=_0x1a0256['hasComments'],_0x2d65c5=_0x1a0256['subType']?_0x1a0256['type']+':'+_0x1a0256['subType']:_0x1a0256['type'],_0x11548d=this['editor']['locale'],_0x12427b=_0x11c476['add'](o(_0x11548d,'PENDING_ACTION_SUGGESTION')),_0x180db5={'id':_0x268788,'type':_0x2d65c5,'hasComments':_0x5302c0,'data':_0x1308e3['data']||null,'originalSuggestionId':_0x1308e3['originalSuggestionId']||null,'attributes':_0x1a0256['attributes']};this['_adapter']['addSuggestion'](_0x180db5)['then'](_0x5163f5=>{_0x1a0256['_saved']=!0x0,_0x11c476['remove'](_0x12427b),_0x5163f5&&_0x5163f5['createdAt']&&(this['_suggestions']['get'](_0x268788)['createdAt']=_0x5163f5['createdAt']);})['catch'](_0x417e10=>{throw _0x2fc05e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1a0256['discard']();}),_0x1a0256['stopListening'](),this['_suggestions']['delete'](_0x1a0256['id']),this['_suggestionState']['delete'](_0x1a0256),_0x417e10;});}return _0x1a0256;}['_isBlockAttribute'](_0x1f0c4c){return this['_blockAttributeKeys']['has'](_0x1f0c4c);}['_updateSuggestionData'](_0xcc7b75,_0x416296){const _0x2044f3=this['editor']['plugins']['get']('PendingActions'),_0x3a350d=this['getSuggestion'](_0xcc7b75);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3a350d['_saved']){const _0x20f7fe=_0x2044f3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xcc7b75,_0x416296)['then'](()=>{_0x2044f3['remove'](_0x20f7fe);});}else _0x3a350d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xcc7b75,_0x416296);});}}['_getSuggestionData'](_0x2eb96c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x28358a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2eb96c);}['_handleNewSuggestionMarker'](_0x2c65cd){const {id:_0x41b790,type:_0x36cd41,subType:_0x57d55b,authorId:_0x33d37e}=this['_splitMarkerName'](_0x2c65cd),_0x329cdd=this['_suggestions']['get'](_0x41b790)||this['_createSuggestion'](_0x36cd41,_0x57d55b,_0x41b790,_0x33d37e,{});switch(this['_checkSuggestionCorrectness'](_0x329cdd,_0x36cd41,_0x57d55b,_0x33d37e),this['_suggestionState']['get'](_0x329cdd)){case'notReady':this['_getSuggestionData'](_0x41b790)['then'](_0x1a0f36=>{let _0x366343=Promise['resolve']();_0x1a0f36['hasComments']&&(_0x366343=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x41b790})),_0x366343['then'](()=>{this['addSuggestionData'](_0x1a0f36)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x329cdd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x41b790,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x329cdd,'ready'),this['fire']('suggestionLoaded',_0x329cdd);break;case'ready':this['fire']('suggestionChanged',_0x329cdd);}return _0x329cdd['addMarkerName'](_0x2c65cd),_0x329cdd;}['_refreshSuggestionsChain'](_0x288873){const _0x3578e1=Array['from'](_0x288873),_0x41f0ec=_0x3578e1['filter'](_0x3274cf=>'attribute'==_0x3274cf['type']);this['_refreshAttributeSuggestionsChain'](_0x41f0ec);const _0x3d8b7a=_0x3578e1['filter'](_0x208a59=>!_0x208a59['isMultiRange']&&'attribute'!=_0x208a59['type']),_0x45de83=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43b9a6=>!_0x43b9a6['isMultiRange']&&'attribute'!=_0x43b9a6['type']),_0x41b423=_0x45de83['filter'](_0x270aa1=>!_0x288873['has'](_0x270aa1)),_0x39b868=new Map(_0x45de83['map'](_0x34b4d6=>[_0x34b4d6,this['_suggestionFactory']['getSuggestionCallback'](_0x34b4d6['type'],_0x34b4d6['subType'],'chain')])),_0x1b9a39=new Map(_0x45de83['map'](_0x5213f2=>[_0x5213f2,_0x5213f2['getFirstRange']()])),_0x4b7888=new Set(),_0x22f961=new Set();for(let _0x540767=0x0;_0x540767<_0x3d8b7a['length'];_0x540767++)_0x3e90c1(_0x3d8b7a[_0x540767],_0x3d8b7a,_0x540767+0x1);for(let _0x3d70e4=0x0;_0x3d70e4<_0x3d8b7a['length'];_0x3d70e4++)_0x3e90c1(_0x3d8b7a[_0x3d70e4],_0x41b423,0x0);const _0x426eab=new Set();for(let _0x3a4362=0x0;_0x3a4362<_0x3d8b7a['length'];_0x3a4362++){const _0x1c078e=_0x3d8b7a[_0x3a4362];!_0x22f961['has'](_0x1c078e)&&_0x1c078e['previous']&&(_0x426eab['add'](_0x1c078e['previous']),_0x1c078e['previous']['next']===_0x1c078e&&(_0x1c078e['previous']['next']=null),_0x1c078e['previous']=null),!_0x4b7888['has'](_0x1c078e)&&_0x1c078e['next']&&(_0x426eab['add'](_0x1c078e['next']),_0x1c078e['next']['previous']===_0x1c078e&&(_0x1c078e['next']['previous']=null),_0x1c078e['next']=null);}function _0x3e90c1(_0x23b9f1,_0x526bd5,_0x434421){for(let _0x11aacb=_0x434421;_0x11aacb<_0x526bd5['length'];_0x11aacb++){const _0x1f6b25=_0x4f7730(_0x23b9f1,_0x526bd5[_0x11aacb]);_0x1f6b25&&(_0x1f6b25[0x0]['next']=_0x1f6b25[0x1],_0x1f6b25[0x1]['previous']=_0x1f6b25[0x0],_0x4b7888['add'](_0x1f6b25[0x0]),_0x22f961['add'](_0x1f6b25[0x1]));}}function _0x4f7730(_0xa0b20b,_0x1fb299){if(_0xa0b20b['author']['id']!==_0x1fb299['author']['id'])return null;const _0x2e0de4=_0x39b868['get'](_0xa0b20b)(_0xa0b20b,_0x1fb299,_0x1b9a39['get'](_0xa0b20b),_0x1b9a39['get'](_0x1fb299));if(!_0x2e0de4)return null;return _0x39b868['get'](_0x1fb299)(_0xa0b20b,_0x1fb299,_0x1b9a39['get'](_0xa0b20b),_0x1b9a39['get'](_0x1fb299))?_0x2e0de4[0x1]['commentThread']&&_0x2e0de4[0x1]['commentThread']['length']?null:_0x2e0de4:null;}_0x426eab['size']&&this['_refreshSuggestionsChain'](_0x426eab);}['_refreshAttributeSuggestionsChain'](_0x4a2ae9){if(0x0==_0x4a2ae9['length'])return;const _0x13f67d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8a1858=>'attribute'==_0x8a1858['type']&&_0x8a1858['_isDataLoaded']),_0xad3519=[],_0x45dbf8=new Map();for(const _0x5ded69 of _0x13f67d){const _0x231a9f=_0x2e1087(_0x5ded69['attributes']);_0x45dbf8['has'](_0x231a9f)||(_0x45dbf8['set'](_0x231a9f,_0xad3519['length']),_0xad3519['push']([]));const _0x2e96c0=_0x45dbf8['get'](_0x231a9f);_0xad3519[_0x2e96c0]['push'](_0x5ded69);}!(function(){_0xad3519['sort']((_0x200ff1,_0x5e5c30)=>{const _0x48ecbc=_0x200ff1[0x0]['createdAt'],_0x58e17e=_0x5e5c30[0x0]['createdAt'];return _0x48ecbc==_0x58e17e?_0x200ff1[0x0]['attributes']['groupId']<_0x5e5c30[0x0]['attributes']['groupId']?-0x1:0x1:_0x48ecbc<_0x58e17e?-0x1:0x1;});for(const _0xb56d3a of _0xad3519)_0xb56d3a['sort']((_0x44f6d9,_0x420fe0)=>_0x44f6d9['id']<_0x420fe0['id']?-0x1:0x1);}());for(let _0xe194ec=0x0;_0xe194ec<_0xad3519['length'];_0xe194ec++){if(0x0==_0xad3519[_0xe194ec]['length'])continue;const _0x36ae97=[];for(let _0x4d95a6=_0xe194ec+0x1;_0x4d95a6<_0xad3519['length'];_0x4d95a6++)0x0!=_0xad3519[_0x4d95a6]['length']&&_0x37cfcd(_0xad3519[_0xe194ec],_0xad3519[_0x4d95a6])&&_0x36ae97['push'](_0x4d95a6);for(const _0x4701cf of _0x36ae97)_0xad3519[_0xe194ec]=_0xad3519[_0xe194ec]['concat'](_0xad3519[_0x4701cf]),_0xad3519[_0x4701cf]=[];}for(const _0x4cabd1 of _0xad3519)for(let _0x3b0974=0x0;_0x3b0974<_0x4cabd1['length'];_0x3b0974++)_0x4cabd1[_0x3b0974]['next']=_0x4cabd1[_0x3b0974+0x1]||null;for(const _0x1acc92 of _0xad3519)for(let _0x2916e3=0x0;_0x2916e3<_0x1acc92['length'];_0x2916e3++)_0x1acc92[_0x2916e3]['previous']=_0x1acc92[_0x2916e3-0x1]||null;function _0x37cfcd(_0xbae2c1,_0x376293){if(_0xbae2c1[0x0]['attributes']['groupId']!==_0x376293[0x0]['attributes']['groupId']&&_0xbae2c1[0x0]['author']!==_0x376293[0x0]['author'])return!0x1;if(!function(_0x1bd339,_0x3feb64){if(!_0x1bd339['hasComments']&&!_0x3feb64['hasComments'])return!0x0;if(_0x1bd339['hasComments']&&_0x3feb64['hasComments'])return!0x1;if(_0x1bd339['hasComments']&&_0x3feb64['createdAt']<_0x1bd339['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3feb64['hasComments']&&_0x1bd339['createdAt']<_0x3feb64['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xbae2c1[0x0],_0x376293[0x0]))return!0x1;const _0x3dc015=Bt(_0xbae2c1[0x0]['attributes'],'groupId'),_0x25dc59=Bt(_0x376293[0x0]['attributes'],'groupId');if(!_0x5873ca(_0x3dc015,_0x25dc59))return!0x1;return!!_0xbae2c1['every'](_0x54d6fb=>_0x376293['some'](_0x48adc5=>_0x54d6fb['getFirstRange']()['isEqual'](_0x48adc5['getFirstRange']())))&&_0x376293['every'](_0x53bef4=>_0xbae2c1['some'](_0x125b1b=>_0x53bef4['getFirstRange']()['isEqual'](_0x125b1b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x18391b){const _0x5799df=Array['from'](_0x18391b),_0x5d675e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x49c1d2=_0x5d675e['filter'](_0x1ad5a6=>!_0x18391b['has'](_0x1ad5a6)),_0x2754f2=new Map(_0x5799df['map'](_0x4de71c=>[_0x4de71c,this['_suggestionFactory']['getSuggestionCallback'](_0x4de71c['type'],_0x4de71c['subType'],'join')])),_0x16a71c=new Map(_0x5d675e['map'](_0x54a9df=>[_0x54a9df,_0x54a9df['getRanges']()]));for(let _0x2acf59=0x0;_0x2acf59<_0x5799df['length'];_0x2acf59++){if(_0x5e26d8(this,_0x5799df[_0x2acf59],_0x5799df,_0x2acf59+0x1))return!0x0;}for(let _0x3c7fcf=0x0;_0x3c7fcf<_0x5799df['length'];_0x3c7fcf++){if(_0x5e26d8(this,_0x5799df[_0x3c7fcf],_0x49c1d2,0x0))return!0x0;}return!0x1;function _0x5e26d8(_0x4d0a00,_0x199a67,_0x56807b,_0x19d044){for(let _0x1a4301=_0x19d044;_0x1a4301<_0x56807b['length'];_0x1a4301++){const _0x4fb29c=_0x56807b[_0x1a4301];if(_0x4fb29c['type']!==_0x199a67['type']||_0x4fb29c['author']['id']!==_0x199a67['author']['id']||_0x4fb29c['subType']!==_0x199a67['subType'])continue;if(!Pt(_0x199a67,_0x4fb29c,['groupId']))continue;if('attribute'==_0x199a67['type']&&_0x199a67['data']['oldValue']!=_0x4fb29c['data']['oldValue'])continue;if('attribute'==_0x199a67['type']&&_0x4d0a00['_isBlockAttribute'](_0x199a67['data']['key']))continue;if('formatBlock'==_0x199a67['type']){const _0x4baa08=_0x4d0a00['editor']['model'],_0x1d84b0=_0x199a67['getContainedElement']();if(_0x1d84b0&&(_0x4baa08['schema']['isObject'](_0x1d84b0)||_0x4baa08['schema']['isLimit'](_0x1d84b0)))continue;}const _0x33e836=_0x2754f2['get'](_0x199a67),_0x88ae50=_0x16a71c['get'](_0x199a67),_0x4756d5=_0x16a71c['get'](_0x4fb29c),_0x5a2ea8=_0x199a67['commentThread']&&_0x199a67['commentThread']['length'],_0x196c54=_0x4fb29c['commentThread']&&_0x4fb29c['commentThread']['length'];if(!_0x5a2ea8&&_0x33e836(_0x4756d5,_0x88ae50))return _0x4d0a00['_joinSuggestions'](_0x4fb29c,_0x199a67),_0x16a71c['delete'](_0x199a67),!0x0;if(!_0x196c54&&_0x33e836(_0x88ae50,_0x4756d5))return _0x4d0a00['_joinSuggestions'](_0x199a67,_0x4fb29c),_0x16a71c['delete'](_0x4fb29c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x46c585,_0x23fa25){if(_0x46c585['isMultiRange']){for(const _0x5a3f6d of _0x23fa25['getRanges']())_0x46c585['addRange'](_0x5a3f6d);}else{const _0x186bcf=_0x23fa25['getFirstRange']()['end'];this['_setSuggestionRange'](_0x46c585,this['_model']['createRange'](_0x46c585['getFirstRange']()['start'],_0x186bcf));}_0x23fa25['removeMarkers']();}['_getMarkerAnnouncementText'](_0x87edac,_0x263985){const _0x3a0e7f=_0x87edac['startsWith']('format')||_0x87edac['startsWith']('attribute')?'FORMATTING':_0x87edac['toUpperCase']();return o(this['editor']['locale'],_0x263985+'_'+_0x3a0e7f+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4bf4b7=this['editor'];if(!_0x4bf4b7['ui'])return;const {ariaLiveAnnouncer:_0x219f94}=_0x4bf4b7['ui'];_0x1d63d1(this['_model'],({left:_0x51b220,entered:_0x3a2b0d})=>{for(const _0x5079d8 of _0x51b220){const {group:_0x4099b7,type:_0x17c441}=this['_splitMarkerName'](_0x5079d8['name']);if('suggestion'===_0x4099b7){_0x219f94['announce'](this['_getMarkerAnnouncementText'](_0x17c441,'LEAVE'));break;}}for(const _0x11e326 of _0x3a2b0d){const {group:_0x53b617,type:_0x3bb74c}=this['_splitMarkerName'](_0x11e326['name']);if('suggestion'===_0x53b617){_0x219f94['announce'](this['_getMarkerAnnouncementText'](_0x3bb74c,'ENTER'));break;}}});}['_processAttributeChanges'](_0x4dced8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x418612=this['editor'],_0x2f14d2=_0x418612['model']['document']['differ']['getChanges']();if(0x0==_0x2f14d2['length'])return!0x1;const _0xffadbd=[],_0x1103ed=_0x2f14d2['filter'](_0x2dad02=>'attribute'==_0x2dad02['type']),_0x114a69=_0x2f14d2['filter'](_0x3d8af0=>'insert'==_0x3d8af0['type']&&'$text'!=_0x3d8af0['name']),_0x139918=_0x2f14d2['filter'](_0x4a7f05=>'remove'==_0x4a7f05['type']&&'$text'!=_0x4a7f05['name']);for(const _0x478342 of _0x1103ed)_0xffadbd['push']({'key':_0x478342['attributeKey'],'newValue':_0x478342['attributeNewValue'],'oldValue':_0x478342['attributeOldValue'],'range':Ot(_0x478342['range'],_0x418612['model'])});for(const _0x35d83d of _0x114a69){const _0x56fe27=_0x139918['find'](_0x25e347=>_0x25e347['position']['isEqual'](_0x35d83d['position']));_0x56fe27&&_0xffadbd['push']({'key':m,'newValue':_0x35d83d['name'],'oldValue':_0x56fe27['name'],'range':_0x418612['model']['createRangeOn'](_0x35d83d['position']['nodeAfter'])});}return 0x0!=_0xffadbd['length']&&this['_reduceExistingSuggestions'](_0x4dced8,_0xffadbd);}['_processAttributeSuggestions'](_0x45cb1c){let _0x3e673b=!0x1;const _0x4493c7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4b93ad=>_0x4b93ad['data']['newRange']&&_0x4b93ad['name']['startsWith']('suggestion:attribute:'));for(const _0x57f77a of _0x4493c7){const {subType:_0x13a121,id:_0x216ec9}=this['_splitMarkerName'](_0x57f77a['name']),_0x35979e=_0x13a121['split']('|')[0x0];for(const _0x47ee32 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x47ee32['id']!=_0x216ec9&&'attribute'==_0x47ee32['type']&&_0x47ee32['data']&&_0x47ee32['data']['key']==_0x35979e&&_0x47ee32['getFirstRange']()['isIntersecting'](_0x57f77a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x47ee32,_0x57f77a['data']['newRange'],_0x45cb1c),_0x3e673b=!0x0);}return _0x3e673b;}['_recordAttributeChanges'](_0xdfa268){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0xdfa268();}['_isRegisteredAttribute'](_0x5d84ac){const _0x387df0=this['_isBlockAttribute'](_0x5d84ac),_0x50a81c=this['_inlineAttributeKeys']['has'](_0x5d84ac);return _0x387df0||_0x50a81c;}['_reduceExistingSuggestions'](_0x349eae,_0x1a0f31){if(0x0==_0x1a0f31['length'])return!0x1;let _0x477604=!0x1;for(const _0x1f02aa of _0x1a0f31){const _0x65973c=this['_findSuggestions'](_0x1f02aa['range'],'attribute')['filter'](_0x305766=>!_0x305766['meta']['isNextTo'])['map'](_0x33e6c6=>_0x33e6c6['suggestion']),_0x3de4a1=_0x2e1087({'newValue':_0x1f02aa['newValue']});_0x65973c['filter'](_0x1ab791=>{const [_0x22128f,_0x4b37b6]=_0x1ab791['subType']['split']('|');return _0x22128f==_0x1f02aa['key']&&_0x4b37b6!=_0x3de4a1;})['forEach'](_0x2dab02=>{this['_reduceSuggestionAttributeRange'](_0x2dab02,_0x1f02aa['range'],_0x349eae),_0x477604=!0x0;});}return _0x477604;}['_reduceSuggestionAttributeRange'](_0x2dde16,_0x94d451,_0x594c27){const _0x14ba99=_0x2dde16['getFirstRange']()['getDifference'](_0x94d451);0x0!==_0x14ba99['length']?0x1!==_0x14ba99['length']?this['_breakSuggestionMarker'](_0x2dde16,_0x94d451['start'],_0x94d451['end']):this['_setSuggestionRange'](_0x2dde16,_0x14ba99[0x0]):_0x594c27['removeMarker'](_0x2dde16['getFirstMarker']());}constructor(_0x1eaee6){function _0x25c296(_0x26915f){return _0x26915f['map'](_0x1b5769=>String['fromCharCode'](_0x1b5769))['join']('');}super(_0x1eaee6),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x16d8e5,_0x3fa33c,_0x3ac703,_0x27e863)=>{this['_model']['change'](()=>{for(const _0x9fe280 of[..._0x27e863,..._0x3ac703])this['_model']['markers']['has'](_0x9fe280)&&_0x1eaee6['editing']['reconvertMarker'](_0x9fe280);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1eaee6['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(),_0x1eaee6['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1eaee6['config']['get']('trackChanges.trackFormatChanges'),_0x1eaee6['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1eaee6['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1eaee6,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x25c296([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x25c296([0x34,0x30,0x34,0x38,0x31,0x30,0x31,0x38]);}}class xt{['buildSuggestion'](_0xcd3981,_0xe9a563,_0x21eff5,_0x13ad9d,_0x45920f,_0x47e3b0){return new u(this['_model'],{'type':_0xcd3981,'subType':_0xe9a563,'id':_0x21eff5,'author':_0x13ad9d,'creator':_0x13ad9d,'attributes':_0x45920f,'onAttributesChange':_0x47e3b0,'onAccept':(..._0x371b92)=>this['getSuggestionCallback'](_0xcd3981,_0xe9a563,'accept')(..._0x371b92),'onDiscard':(..._0x4dede8)=>this['getSuggestionCallback'](_0xcd3981,_0xe9a563,'discard')(..._0x4dede8)});}['registerCustomCallback'](_0x31b5af,_0xf470bc,_0x35ce26,_0x172fd2){const _0x1481c6=_0x31b5af+':'+_0xf470bc+':'+_0x35ce26;this['_customCallbacks']['set'](_0x1481c6,_0x172fd2);}['getSuggestionCallback'](_0x259873,_0x278a84,_0x2727aa){const _0x1a2c00=_0x259873+':'+_0x278a84+':'+_0x2727aa;return this['_customCallbacks']['get'](_0x1a2c00)||this['_defaultCallbacks']['get'](_0x259873+':'+_0x2727aa);}['_registerDefaultCallbacks'](){const _0x559b98=()=>!0x1,_0x24dcaa=_0x3a8561=>{_0x3a8561['sort']((_0x5b63d6,_0x331c73)=>_0x5b63d6['start']['isBefore'](_0x331c73['start'])?0x1:-0x1),this['_model']['change'](_0x3ff80b=>{for(const _0x55688c of _0x3a8561){let _0x14e07f;_0x14e07f=_0x55688c['end']['isAtEnd']&&_0x55688c['end']['parent']==_0x55688c['start']['nodeAfter']?_0x3ff80b['createSelection'](_0x55688c['start']['nodeAfter'],'on'):_0x3ff80b['createSelection'](_0x55688c),this['_model']['deleteContent'](_0x14e07f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x579e4f=(_0x442ea1,_0x50d478)=>{_0x50d478&&this['_model']['change'](_0x50af48=>{const {commandName:_0x3598ad,commandParams:_0x44b867=[]}=_0x50d478,_0x5e3a54=_0x442ea1['map'](_0x584848=>(Tt(_0x584848)&&(_0x584848=this['_model']['createRange'](_0x584848['end'])),_0x584848))['filter'](_0x9a169b=>'$graveyard'!==_0x9a169b['root']['rootName']);if(_0x5e3a54['length']<0x1)return;const _0xcf4e03=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5148f6=>_0xf2dec5['fromRange'](_0x5148f6));_0x50af48['setSelection'](_0x5e3a54);for(const _0x107f1b of this['_editor']['commands']['commands']())_0x107f1b['refresh']();_0x44b867['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3598ad,..._0x44b867);const _0x4e56c5=_0xcf4e03['filter'](_0x59f0b8=>'$graveyard'!=_0x59f0b8['root']['rootName']);_0x4e56c5['length']>0x0&&_0x50af48['setSelection'](_0x4e56c5);for(const _0x52772a of _0xcf4e03)_0x52772a['detach']();});},_0x352f45=(_0x21199c,_0x2fe5b9)=>0x1==_0x21199c['length']&&0x1==_0x2fe5b9['length']&&_0x21199c[0x0]['end']['isEqual'](_0x2fe5b9[0x0]['start']),_0x77bebc=(_0x1cc074,_0x160ab1,_0x5cbaae,_0x2b1db3)=>Gt(_0x1cc074,_0x160ab1,_0x5cbaae,_0x2b1db3,this['_model'])?[_0x1cc074,_0x160ab1]:Gt(_0x160ab1,_0x1cc074,_0x2b1db3,_0x5cbaae,this['_model'])?[_0x160ab1,_0x1cc074]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x559b98),this['_defaultCallbacks']['set']('insertion:discard',_0x24dcaa),this['_defaultCallbacks']['set']('insertion:join',_0x352f45),this['_defaultCallbacks']['set']('insertion:chain',_0x77bebc),this['_defaultCallbacks']['set']('deletion:accept',_0x24dcaa),this['_defaultCallbacks']['set']('deletion:discard',_0x559b98),this['_defaultCallbacks']['set']('deletion:join',_0x352f45),this['_defaultCallbacks']['set']('deletion:chain',_0x77bebc),this['_defaultCallbacks']['set']('formatInline:accept',_0x579e4f),this['_defaultCallbacks']['set']('formatInline:discard',_0x559b98),this['_defaultCallbacks']['set']('formatInline:join',_0x352f45),this['_defaultCallbacks']['set']('formatInline:chain',_0x559b98),this['_defaultCallbacks']['set']('formatBlock:accept',_0x579e4f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x559b98),this['_defaultCallbacks']['set']('formatBlock:join',_0x352f45),this['_defaultCallbacks']['set']('formatBlock:chain',_0x559b98),this['_defaultCallbacks']['set']('attribute:accept',_0x559b98),this['_defaultCallbacks']['set']('attribute:discard',(_0x5cf043,_0x46379e)=>{if(!_0x46379e)return;const _0x1b94a1=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xa096f5=>{if(_0x46379e['key']==m)for(const _0x5759b5 of _0x5cf043){const _0x32c3f7=_0x5759b5['start']['nodeAfter'],_0x49c341=_0x46379e['oldValue'];_0xa096f5['rename'](_0x32c3f7,_0x49c341);}else{if(_0x1b94a1['_isBlockAttribute'](_0x46379e['key'])){for(const _0x3bb91a of _0x5cf043)void 0x0!==_0x46379e['oldValue']?_0xa096f5['setAttribute'](_0x46379e['key'],_0x46379e['oldValue'],_0x3bb91a['start']['nodeAfter']):_0xa096f5['removeAttribute'](_0x46379e['key'],_0x3bb91a['start']['nodeAfter']);}else{for(const _0xe18df4 of _0x5cf043)_0x46379e['oldValue']?_0xa096f5['setAttribute'](_0x46379e['key'],_0x46379e['oldValue'],_0xe18df4):_0xa096f5['removeAttribute'](_0x46379e['key'],_0xe18df4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x352f45);}constructor(_0x1133e0){this['_editor']=_0x1133e0,this['_model']=_0x1133e0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x48ae3e,_0x2bfa23,_0x121298){for(const _0x209841 of _0x2bfa23['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x209841['root']==_0x209841)return!0x1;if(!_0x121298['containsItem'](_0x209841))return!0x1;if(_0x48ae3e['isObject'](_0x209841)||_0x48ae3e['isLimit'](_0x209841))return!0x0;}return!0x1;}function Tt(_0x1d03f7){return _0x1d03f7['end']['parent']==_0x1d03f7['start']['nodeAfter']&&_0x1d03f7['end']['isAtStart'];}function Et(_0x544fd3,_0x494911,_0x161c8a,_0x4d9d7e){const _0x382fe1=_0x5e02fd=>!_0x5e02fd['item']['is']('$textProxy')&&!_0x4d9d7e['isObject'](_0x5e02fd['item']),_0x569aee=_0x544fd3['start']['getLastMatchingPosition'](_0x382fe1),_0x1eaaeb=_0x544fd3['end']['getLastMatchingPosition'](_0x382fe1,{'direction':'backward'});return(!_0x544fd3['start']['isEqual'](_0x569aee)||!_0x544fd3['end']['isEqual'](_0x1eaaeb))&&(_0x569aee['isBefore'](_0x1eaaeb)?_0x161c8a['updateMarker'](_0x494911,{'range':_0x161c8a['createRange'](_0x569aee,_0x1eaaeb)}):_0x161c8a['removeMarker'](_0x494911),!0x0);}function Vt(_0x467d61){return _0x2e1087(_0x467d61);}function Ut(_0x141921){const _0xc4600d=_0x141921['start']['nodeAfter'];return _0xc4600d&&_0xc4600d['is']('element');}function Ot(_0x5627ae,_0xaa70ab){return null==_0x5627ae['end']['nodeBefore']&&_0x5627ae['end']['parent']==_0x5627ae['start']['nodeAfter']?Ft(_0x5627ae['start']['nodeAfter'],_0xaa70ab):_0x5627ae;}function Ft(_0x3f3a5e,_0x2fa8ce){const _0x4b9993=_0x2fa8ce['schema']['isObject'](_0x3f3a5e)||_0x2fa8ce['schema']['isSelectable'](_0x3f3a5e);return _0x2fa8ce['createRange'](_0x2fa8ce['createPositionAt'](_0x3f3a5e,'before'),_0x4b9993?_0x2fa8ce['createPositionAfter'](_0x3f3a5e):_0x2fa8ce['createPositionAt'](_0x3f3a5e,'end'));}function Gt(_0x52b23d,_0x20c395,_0xf2be58,_0x3784b8,_0x5a2437){if(!Pt(_0x52b23d,_0x20c395))return!0x1;if(_0xf2be58['end']['isEqual'](_0x3784b8['start']))return!0x0;if(_0x52b23d['type']!=_0x20c395['type'])return!0x1;if(!_0xf2be58['end']['isTouching'](_0x3784b8['start']))return!0x1;const _0x16ecf0=_0x5a2437['createRange'](_0xf2be58['end'],_0x3784b8['start'])['getWalker']();for(const _0x1a7d72 of _0x16ecf0)if(['elementStart','elementEnd']['includes'](_0x1a7d72['type'])&&_0x5a2437['schema']['isLimit'](_0x1a7d72['item']))return!0x1;return!0x0;}function Pt(_0x3bbd4d,_0x35dedf,_0x2a312f=[]){return!(!_0x3bbd4d['_isDataLoaded']||!_0x35dedf['_isDataLoaded'])&&_0x5873ca(Bt(_0x3bbd4d['attributes'],_0x2a312f),Bt(_0x35dedf['attributes'],_0x2a312f));}function Lt(_0x274884,_0x26e07a){const _0x478bb2=Ht(_0x274884['attributes']),_0x474e52=Ht(_0x26e07a);if(!_0x274884['_isDataLoaded'])return!0x1;for(const _0xc376ac of Object['keys'](_0x474e52))if(!_0x5873ca(_0x478bb2[_0xc376ac],_0x474e52[_0xc376ac]))return!0x1;return!0x0;}function Ht(_0x5dd95a){const _0x4b47aa=Object['assign']({},_0x5dd95a);return delete _0x4b47aa['skipNestingCheck'],delete _0x4b47aa['tablePasteChainId'],_0x4b47aa;}class oe extends _0x236e12(){['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 _0x3292b0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3292b0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x388d81,_0x5512bf,_0x2c03d1,_0x3bea63){super(),this['model']=_0x5512bf,this['view']=_0x2c03d1,this['commentThreadController']=_0x3bea63,this['_editor']=_0x388d81,this['_acceptCommand']=_0x388d81['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x388d81['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1f7926,_0x2cce3e)=>_0x1f7926||_0x2cce3e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x196f5f=>_0x196f5f&&this['_editor']['model']['canEditAt'](_0x5512bf['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5e28e5=>_0x5e28e5&&this['_editor']['model']['canEditAt'](_0x5512bf['getRanges']())),this['_pendingAction']=null,_0x2c03d1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2c03d1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2c03d1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2c03d1,'change:isDirty',()=>{_0x2c03d1['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x3a62b0{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x455331}=this['_config'];this['commentsListView']=new _0x455331(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',_0x445b4a=>_0x445b4a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x53abc3,_0x31d14f)=>_0x53abc3||!!_0x31d14f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xc5f9c2}=this['_config'],_0x4c7157=new _0xc5f9c2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1c186d=_0x4c7157['commentInputView'];return _0x4c7157['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1c186d,'value',(_0x27b686,_0x3dd127,_0x27e079)=>!!_0x27e079||_0x27b686&&!_0x3dd127),_0x1c186d['on']('submit',(_0x251de2,_0x1e738a)=>{this['fire']('addComment',_0x1e738a),_0x1c186d['editor']['setData']('');}),_0x1c186d['on']('cancel',()=>this['focus']()),_0x1c186d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4c7157;}constructor(_0x927ed0,_0x21fb2b,_0x1fbfa2,_0x27f00d){super(_0x927ed0),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x21fb2b['authoredAt']),this['bind']('authoredAt')['to'](_0x21fb2b),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x21fb2b,this['_localUser']=_0x1fbfa2,this['_config']=_0x27f00d,_0x27f00d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x1635ba=this['bindTemplate'],_0x3b0ff7=[{'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':_0x1635ba['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1635ba['to']('authoredAt',_0x1530c2=>this['_config']['formatDateTime'](_0x1530c2))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x3b0ff7['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1befeb={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x1635ba['if']('isActive','ck-suggestion-wrapper--active'),_0x1635ba['to']('type',_0x20fb3e=>'ck-suggestion-'+_0x20fb3e),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x3b0ff7}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1befeb['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x1befeb;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x563b84,_0x16b19a,_0x3f5324)=>{this['_descriptionElement']['innerHTML']=_0x3f5324;});}['_createButton'](_0x4135b2,_0x7a629f,_0x2b6757,_0x2b4635,_0x525abe){const _0x344f60=new _0x362833(this['locale']);return _0x344f60['set']({'label':_0x4135b2,'icon':_0x7a629f,'tooltip':!0x0,'tooltipPosition':_0x525abe}),_0x344f60['extendTemplate']({'attributes':{'class':_0x2b6757}}),_0x344f60['on']('execute',()=>{this['fire'](_0x2b4635,this['_model']['id']);}),_0x344f60;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}constructor(_0x5a51b5,_0x3d8398,_0x296ac5,_0x554aa6){super(_0x5a51b5,_0x3d8398,_0x296ac5,_0x554aa6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x341d16=>_0x341d16&&_0x341d16[0x0]?_0x341d16[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x56fc93,_0x53f8ac)=>{let _0x42cf0a='';for(const _0x21ee31 of _0x56fc93)_0x42cf0a+='<p>'+ds(_0x21ee31['content'],_0x21ee31['color'])+'</p>';return _0x53f8ac?_0x42cf0a:_0x449dae(_0x42cf0a,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5a51b5,'Accept\x20suggestion'),_0x31adb5['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5a51b5,'Discard\x20suggestion'),_0x31adb5['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x542ed4(_0x5a51b5,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x2b51b5,_0x319ba7){let _0x3d02fd='';return _0x3d02fd+=_0x2b51b5['split']('*')['map']((_0x38420a,_0x1b3a22)=>_0x1b3a22%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x38420a)+'</span>':us(_0x38420a))['join'](''),_0x319ba7&&(_0x3d02fd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x319ba7['value']+'\x22\x20title=\x22'+_0x319ba7['title']+'\x22></span>'),_0x3d02fd;}function us(_0x725cdd){const _0x40ab96=document['createElement']('span');return _0x40ab96['innerText']=_0x725cdd,_0x40ab96['innerHTML'];}var ie='<!--\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\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x4ea64e{static get['requires'](){return[p,_0x2d92f3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x3e0d8e,_0x1decdf){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x65b359,_0x1009a0]of this['_handleControllerBuffer']){const _0x5e8ee0=this['_suggestionToController']['has'](_0x65b359);_0x5e8ee0||_0x1009a0?_0x5e8ee0&&_0x1009a0&&this['_destroyController'](_0x65b359):this['_initializeController'](_0x65b359);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3e0d8e,_0x1decdf);}['init'](){const _0x35966f=this['editor'],_0x377a32=_0x35966f['plugins']['get']('TrackChangesEditing'),_0x45357b=_0x35966f['plugins']['get']('Annotations'),_0x36000e=_0x35966f['plugins']['get']('EditorAnnotations'),_0x6dc3b7=_0x35966f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x36000e['addSourceCollector'](()=>{const _0x5ce7ce=[];for(const [_0x10da4f,_0x4132a4]of Array['from'](this['_suggestionToController'])){const _0x367474=_0x10da4f['getAllAdjacentSuggestions'](),_0x28dd38=[];for(const _0x17c228 of _0x367474){if(!_0x17c228['isInContent'])continue;if(_0x17c228['isMultiRange']){_0x28dd38['push'](..._0x17c228['getRanges']());continue;}const _0x2d99d4=_0x17c228['getFirstRange']();if(_0x28dd38['length']>0x0){const _0x5f4774=_0x28dd38[0x0]['getJoined'](_0x2d99d4);if(_0x5f4774){_0x28dd38[0x0]=_0x5f4774;continue;}}_0x28dd38['push'](_0x2d99d4);}_0x5ce7ce['push']([_0x4132a4['view'],_0x28dd38]);}return _0x5ce7ce;}),this['listenTo'](_0x377a32,'suggestionLoaded',(_0x469fbe,_0x372b27)=>{this['listenTo'](_0x372b27,'change:previous',(_0x76674f,_0x1a96fb,_0x29162b,_0x2756c5)=>{_0x372b27['isInContent']&&(null==_0x29162b?(this['_updateController'](_0x2756c5['head']),this['_handleSuggestionControllerDelayed'](_0x372b27,!0x1)):(this['_updateController'](_0x29162b['head']),null==_0x2756c5&&this['_handleSuggestionControllerDelayed'](_0x372b27,!0x0)));}),null!==_0x372b27['previous']?this['_updateController'](_0x372b27['head']):this['_handleSuggestionControllerDelayed'](_0x372b27,!0x1);}),this['listenTo'](_0x377a32,'suggestionUnloaded',(_0x28a789,_0x3fa7f8,_0x516997)=>{this['stopListening'](_0x3fa7f8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3fa7f8),this['_suggestionToController']['has'](_0x3fa7f8)&&this['_destroyController'](_0x3fa7f8),_0x516997&&this['_updateController'](_0x516997['head']);}),this['listenTo'](_0x377a32,'suggestionChanged',(_0x40824c,_0x4c5bc6)=>{this['_updateController'](_0x4c5bc6);}),this['listenTo'](_0x45357b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x6dc3b7,'addComment',(_0x393881,{threadId:_0x3aaf46,isFromAdapter:_0x4595ba})=>{if(_0x4595ba||!_0x377a32['hasSuggestion'](_0x3aaf46))return;const _0x21b043=_0x377a32['getSuggestion'](_0x3aaf46);this['_suggestionToController']['get'](_0x21b043)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x282167=this['editor']['plugins']['get']('Annotations'),_0x32b68f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x401995=Array['from'](_0x282167['activeAnnotations'],_0x3e9484=>_0x3e9484['innerView'])['filter'](_0x463571=>this['_viewToController']['has'](_0x463571)),_0x82fc23=[];for(const _0x22220e of _0x401995){const _0x30cc9d=this['_viewToController']['get'](_0x22220e)['model']['getAllAdjacentSuggestions']();_0x82fc23['push'](..._0x30cc9d['reduce']((_0x17b084,_0x1f720c)=>[..._0x17b084,..._0x1f720c['getMarkerNames']()],[]));}_0x32b68f['activeMarkers']=_0x82fc23;}['_addUIComponentsToFactory'](){const _0x1fc61a=this['editor'],_0x3e20b2=_0x1fc61a['locale'],_0x2f148d=o(_0x3e20b2,'Track\x20changes'),_0x172687=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x2f148d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3e20b2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3e20b2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3e20b2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3e20b2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3deb23 of _0x172687)if(ae(_0x3deb23)){const _0x5c2e22=_0x1fc61a['commands']['get'](_0x3deb23['model']['commandName']);_0x3deb23['model']['bind']('isOn','isEnabled')['to'](_0x5c2e22,'value','isEnabled');}_0x1fc61a['ui']['componentFactory']['add']('trackChanges',_0x161cc2=>this['_createToolbarButton'](_0x161cc2,_0x172687,_0x2f148d)),_0x1fc61a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x37a36f=>this['_createMenuBarMenu'](_0x37a36f,_0x172687,_0x2f148d));}['_createToolbarButton'](_0x9ec19d,_0x1cf58f,_0x5b90c8){const _0x7bcbc=zt(_0x9ec19d,Zt),_0x26725e=this['editor']['commands']['get']('trackChanges');_0x7bcbc['buttonView']['set']({'tooltip':_0x5b90c8,'label':_0x5b90c8,'icon':ie}),_0x7bcbc['buttonView']['bind']('isOn')['to'](_0x26725e,'value'),_0x7bcbc['buttonView']['on']('execute',()=>{_0x26725e['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x7bcbc,_0x1cf58f,{'role':'menu'});const _0xa6b02d=[];for(const _0x4f7670 of _0x1cf58f)ae(_0x4f7670)&&_0xa6b02d['push'](this['editor']['commands']['get'](_0x4f7670['model']['commandName']));const _0x2bbbb7=_0x7bcbc['buttonView'];return _0x2bbbb7['actionView']['unbind']('isEnabled'),_0x2bbbb7['arrowView']['unbind']('isEnabled'),_0x2bbbb7['actionView']['bind']('isEnabled')['to'](_0x26725e,'isEnabled'),_0x2bbbb7['arrowView']['bind']('isEnabled')['toMany'](_0xa6b02d,'isEnabled',(..._0x93d5bd)=>_0x93d5bd['some'](_0x57947e=>_0x57947e)),_0x7bcbc['on']('execute',_0x245680=>{this['editor']['execute'](_0x245680['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x7bcbc;}['_createMenuBarMenu'](_0x5b763f,_0x1ca09a,_0x25dde3){const _0x11f114=new Kt(_0x5b763f),_0xdc2663=this['editor']['commands']['get']('trackChanges');_0x11f114['buttonView']['set']({'label':_0x25dde3,'icon':ie});const _0x200644=new Qt(_0x5b763f);for(const _0x524eca of _0x1ca09a){if('separator'==_0x524eca['type']){_0x200644['items']['add'](new Jt(_0x5b763f));continue;}const _0x51808e=new Xt(_0x5b763f,_0x11f114),_0x5bc3d3=new Yt(_0x5b763f),_0xacd13b=_0x524eca['model'];_0x5bc3d3['bind'](...Object['keys'](_0xacd13b))['to'](_0xacd13b),_0x5bc3d3['delegate']('execute')['to'](_0x11f114),_0x5bc3d3['on']('execute',()=>{this['editor']['execute'](_0xacd13b['commandName']),this['editor']['editing']['view']['focus']();}),_0x51808e['children']['add'](_0x5bc3d3),_0x200644['items']['add'](_0x51808e);}return _0x11f114['bind']('isEnabled')['to'](_0xdc2663,'isEnabled'),_0x11f114['panelView']['children']['add'](_0x200644),_0x11f114;}['_initializeController'](_0x4c474d){const _0x4d2319=this['editor'],_0x10cd39=_0x4d2319['config'],_0x42f48e=_0x4d2319['plugins']['get']('Annotations'),_0x810615=_0x4d2319['plugins']['get']('CommentsRepository'),_0x5e86ce=_0x4d2319['plugins']['get']('EditorAnnotations'),_0x5b4816=_0x4d2319['plugins']['get'](_0x2d92f3)['me'],_0x118dc6=_0x10cd39['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1fac4e,CommentThreadInputView:_0x4e2b6d}=_0x4d2319['plugins']['get']('CommentsUI');let _0x4e3e18,_0x544369;this['_annotationViews']['has'](_0x4c474d['id'])?(_0x544369=this['_annotationViews']['get'](_0x4c474d['id']),_0x4e3e18=_0x544369['mainView']):(_0x4e3e18=new _0x118dc6(_0x4d2319['locale'],_0x4c474d,_0x5b4816,{'disableComments':this['_disableComments'],'editorConfig':_0x10cd39['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x10cd39['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x10cd39['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x10cd39['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x404552(_0x10cd39['get']('locale')),'CommentView':_0x10cd39['get']('comments')['CommentView'],'CommentsListView':_0x1fac4e,'CommentThreadInputView':_0x4e2b6d}),_0x4e3e18['acceptButton']['on']('execute',()=>{_0x4d2319['editing']['view']['focus']();}),_0x4e3e18['discardButton']['on']('execute',()=>{_0x4d2319['editing']['view']['focus']();}),_0x544369=_0x42f48e['createAnnotationView'](this['editor']['locale'],_0x4e3e18),_0x544369['bind']('isDirty')['to'](_0x4e3e18,'isDirty'),_0x544369['bind']('length')['to'](_0x4e3e18),_0x544369['bind']('type')['to'](_0x4e3e18,'type',_0x279f25=>'suggestion-'+_0x279f25),this['_annotationViews']['set'](_0x4c474d['id'],_0x544369));const _0x10ddf1=_0x810615['createCommentThreadController'](_0x4c474d['commentThread'],_0x4e3e18),_0xb9ce6a=new oe(_0x4d2319,_0x4c474d,_0x4e3e18,_0x10ddf1),_0x48748a=_0x4c474d['getAllAdjacentSuggestions']()['filter'](_0x5e7230=>_0x5e7230['isInContent']);_0x4e3e18['descriptionParts']=_0x4d2319['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x48748a),this['_suggestionToController']['set'](_0x4c474d,_0xb9ce6a),this['_viewToController']['set'](_0x4e3e18,_0xb9ce6a);const _0x1dd74a=_0x42f48e['createAnnotation']({'view':_0x544369,'target':()=>{const _0x488efd=[],_0x558988=_0x4c474d['getAllAdjacentSuggestions']()['filter'](_0x457058=>_0x457058['isInContent']);for(const _0x34c008 of _0x558988)_0x488efd['push'](..._0x34c008['getMarkers']());return _0x3276dc(_0x4d2319['editing'],_0x488efd);},'type':()=>'suggestion-'+_0xb9ce6a['view']['type']});_0x810615['_bindAnnotationToEditors'](_0x4e3e18,_0x1dd74a),_0x42f48e['add'](_0x1dd74a),_0x5e86ce['registerAnnotation'](_0x1dd74a);}['_destroyController'](_0x41ce8d){const _0x48c556=this['editor']['plugins']['get']('CommentsRepository'),_0x23a241=this['editor']['plugins']['get']('Annotations'),_0x5bfe57=this['_suggestionToController']['get'](_0x41ce8d),_0x16b9d3=_0x5bfe57['view'],_0x51d53b=_0x23a241['getByInnerView'](_0x16b9d3);_0x48c556['_unbindEditors'](_0x16b9d3),_0x51d53b&&_0x23a241['remove'](_0x51d53b),this['_suggestionToController']['delete'](_0x41ce8d),this['_viewToController']['delete'](_0x16b9d3),_0x5bfe57['destroy']();}['_updateController'](_0x1c9346){if(!_0x1c9346['isInContent']||!this['_suggestionToController']['has'](_0x1c9346))return;const _0x17ea29=this['editor']['plugins']['get']('TrackChangesEditing'),_0x508946=this['_suggestionToController']['get'](_0x1c9346),_0x339e58=_0x1c9346['getAllAdjacentSuggestions']();_0x508946['view']['descriptionParts']=_0x17ea29['descriptionFactory']['getDescriptions'](_0x339e58);}['destroy'](){for(const _0x488417 of this['_suggestionToController']['keys']())this['_destroyController'](_0x488417);for(const _0x5532e4 of this['_annotationViews']['values']())_0x5532e4['mainView']['destroy']();super['destroy']();}constructor(_0x3c554c){super(_0x3c554c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x106d9f=this['editor']['config'];_0x106d9f['define']('trackChanges.SuggestionThreadView',ne),_0x106d9f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x106d9f['get']('trackChanges.disableComments');}}function ae(_0x3c7f91){return'model'in _0x3c7f91;}class k extends _0x4ea64e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x167565){this['editor']['plugins']['get'](p)['adapter']=_0x167565;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x12e0c4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x12e0c4);}['getSuggestions']({skipNotAttached:_0x80f8ce=!0x1,toJSON:_0x37e9d4=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x80f8ce,'toJSON':_0x37e9d4});}['getSuggestion'](_0xa4cbbe){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xa4cbbe);}}const T=['Pagination'];class P extends _0x4ea64e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4d1090=this['editor'];if(_0x4d1090['config']['define']('trackChangesData.editorCreator',_0x19b9ad=>{const _0x2c547e=_0x4d1090['model']['document']['getRootNames']()['reduce']((_0x12908e,_0x1c4a46)=>(_0x12908e[_0x1c4a46]='',_0x12908e),{});return _0x4d1090['constructor']['create'](_0x2c547e,_0x19b9ad);}),'function'!=typeof _0x4d1090['config']['get']('trackChangesData')['editorCreator'])throw new _0x28358a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2207cd){return N(this['editor'],!0x0,_0x2207cd);}['getDataWithDiscardedSuggestions'](_0x4dc1a5){return N(this['editor'],!0x1,_0x4dc1a5);}}class D extends _0x4ea64e{static get['pluginName'](){return'TrackChangesDataGetter';}['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;}constructor(_0x44f26f){super(_0x44f26f),this['result']='end';}}function v(_0x1840a8){return void 0x0!==_0x1840a8['getRootsAttributes'];}async function N(_0x3df6b7,_0x45cdc4,_0x4bb887){const _0x43fd50=_0x4eabac(_0x3df6b7,T);_0x43fd50['plugins']['push'](p,D),_0x43fd50['rootsAttributes']=v(_0x3df6b7)?_0x3df6b7['getRootsAttributes']():void 0x0;const _0x335a20=document['createDocumentFragment'](),_0x5489c9=_0x3df6b7['config']['get']('trackChangesData')['editorCreator'],_0x2c7ced=await _0x5489c9(_0x43fd50,()=>function(_0x25e49c){const _0x34e442=document['createElement']('div');return _0x25e49c['appendChild'](_0x34e442),_0x34e442;}(_0x335a20));!function(_0x177018,_0x34b33b){const _0x110829=_0x177018['model']['document']['getRootNames']()['reduce']((_0x1e977f,_0x5c36dc)=>(_0x1e977f[_0x5c36dc]=_0x177018['data']['get']({'rootName':_0x5c36dc}),_0x1e977f),{}),_0x5a0a13=_0x177018['plugins']['get']('Users')['users']['map'](_0x30e28b=>({'id':_0x30e28b['id'],'name':_0x30e28b['name']})),_0x2a0957=_0x177018['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1a49eb=_0x177018['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1c200c=_0x34b33b['plugins']['get']('Users'),_0x466c60=_0x34b33b['plugins']['get']('TrackChangesEditing'),_0x53008f=_0x34b33b['plugins']['get']('CommentsRepository');for(const _0x597351 of _0x5a0a13)_0x1c200c['getUser'](_0x597351['id'])||_0x1c200c['addUser'](_0x597351);_0x1c200c['me']||_0x1c200c['useAnonymousUser']();for(const _0x789f3b of _0x2a0957)_0x466c60['addSuggestionData'](_0x789f3b);for(const _0x789dd3 of _0x1a49eb)_0x53008f['addCommentThread'](_0x789dd3);_0x34b33b['data']['set'](_0x110829);}(_0x3df6b7,_0x2c7ced),_0x2c7ced['execute'](_0x45cdc4?'acceptAllSuggestions':'discardAllSuggestions');const _0x220014=v(_0x2c7ced)?_0x2c7ced['getFullData'](_0x4bb887):_0x2c7ced['data']['get'](_0x4bb887);return await _0x2c7ced['destroy'](),_0x220014;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x2ef393,PendingActions as _0x293611,icons as _0xc5487c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x57467d,ObservableMixin as _0x1fbb42,uid as _0x37bf61,insertToPriorityArray as _0x195f01,priorities as _0x529bfa,logWarning as _0x1be2bd,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x47fc59,View as _0x5a4139,ButtonView as _0x405d1e,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x359423,hashObject as _0x16805c,surroundingMarkersDetector as _0x2809e4,trimHtml as _0x58daaa,UserView as _0x4222b5,getDateTimeFormatter as _0x526bdb,getAllMarkersDomElementsSorted as _0x2d56fb,sanitizeEditorConfig as _0x89ed30}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4f0c3a,LiveRange as _0x4ca244,LivePosition as _0x248e3d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5acf6d,toWidget as _0x1227da}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x44736c,set as _0xad096e,isEqual as _0x35d9e3,unset as _0x404e3a,omit as Bt}from'lodash-es';import{Delete as _0x277b62,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x13bfa0,ShiftEnter as _0x13c919}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x368218,_0x20c991){super(_0x368218),this['_enabledCommands']=_0x20c991,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 _0x4393e2 of this['editor']['commands']['commands']())_0x4393e2['affectsData']&&!this['_enabledCommands']['has'](_0x4393e2)&&_0x4393e2['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x48cfb2 of this['editor']['commands']['commands']())_0x48cfb2['affectsData']&&!this['_enabledCommands']['has'](_0x48cfb2)&&_0x48cfb2['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x272ab0,_0x2b332c){super(_0x272ab0),this['_suggestions']=_0x2b332c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa6ff80){const _0x4f46de=this['_suggestions']['get'](_0xa6ff80);if(!_0x4f46de)throw new _0x57467d('track-changes-accept-suggestion-not-found',this);const _0x279ae5=_0x4f46de['getRanges']();this['editor']['model']['canEditAt'](_0x279ae5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4f46de);}}class B extends ts{['_suggestions'];constructor(_0x2c644e,_0x25ec00){super(_0x2c644e),this['_suggestions']=_0x25ec00,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5f0e11){const _0xe69c75=this['_suggestions']['get'](_0x5f0e11);if(!_0xe69c75)throw new _0x57467d('track-changes-discard-suggestion-not-found',this);const _0x2fb6b5=_0xe69c75['getRanges']();this['editor']['model']['canEditAt'](_0x2fb6b5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xe69c75);}}function ss(_0x373d75){return _0x373d75['sort']((_0x15cb45,_0x3ae9a4)=>'deletion'==_0x15cb45['type']&&'deletion'!=_0x3ae9a4['type']?-0x1:'deletion'!=_0x15cb45['type']&&'deletion'==_0x3ae9a4['type']?0x1:0x0);}function to(_0x7223bc,_0x45fae3){let _0x362930,_0x2784a6=0x0;const _0x3b48ad=[],_0x5765de=_0x45fae3['schema'];for(;_0x2784a6<_0x7223bc['length'];){const _0x389bb6=_0x7223bc[_0x2784a6],_0x20ab76=_0x7223bc[_0x2784a6+0x1];_0x362930||(_0x362930=_0x45fae3['createPositionBefore'](_0x389bb6)),co(_0x45fae3,_0x389bb6,_0x20ab76)||(_0x3b48ad['push'](_0x45fae3['createRange'](_0x362930,_0x5765de['isObject'](_0x389bb6)?_0x45fae3['createPositionAfter'](_0x389bb6):_0x45fae3['createPositionAt'](_0x389bb6,'end'))),_0x362930=null),_0x2784a6++;}return _0x3b48ad;}function co(_0x59f35d,_0x5b82b6,_0x5c1ea8){if(!_0x5c1ea8)return!0x1;const _0x28c52d=_0x59f35d['createPositionAfter'](_0x5b82b6),_0x1d236c=_0x59f35d['createPositionBefore'](_0x5c1ea8);return _0x28c52d['isTouching'](_0x1d236c);}function rs(_0x3cb3d1,_0x476ba7,_0x3af5fd){for(;_0x3af5fd['length'];){const _0x3b8238=_0x3af5fd['splice'](0x0,0x64);_0x3cb3d1['change'](()=>{for(const _0x18bfb2 of _0x3b8238)_0x18bfb2['isInContent']&&_0x476ba7['execute'](_0x18bfb2['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x144281,_0x1e7347,_0x1acf01){super(_0x144281),this['_command']=_0x1e7347,this['_suggestions']=_0x1acf01,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1070bb=Array['from'](this['_suggestions']['values']())['some'](_0x55f5a1=>_0x55f5a1['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1070bb;}['execute'](){const _0x3936c2=ss(Array['from'](this['_suggestions']['values']()));for(const _0x369e22 of _0x3936c2){const _0x8f8a0=_0x369e22['getRanges']();if(!this['editor']['model']['canEditAt'](_0x8f8a0))return;}rs(this['editor']['model'],this['_command'],_0x3936c2);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x35928d,_0x2acd32,_0xc147a5){super(_0x35928d),this['_command']=_0x2acd32,this['_suggestions']=_0xc147a5,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x356e72=this['editor']['model']['document']['selection'],_0x8aa9ea=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x452816,_0x13f827){const _0x3a4417=Array['from'](_0x452816['getRanges']()),_0x3849a7=new Set();for(const _0x5b4175 of _0x13f827)if(_0x5b4175['isInContent']){for(const _0x3a43ae of _0x3a4417)for(const _0x2d7156 of _0x5b4175['getRanges']())(_0x3a43ae['isIntersecting'](_0x2d7156)||_0x452816['isCollapsed']&&!_0x5b4175['isMultiRange']&&_0x5b4175['next']&&_0x2d7156['end']['isTouching'](_0x3a43ae['start']))&&_0x3849a7['add'](_0x5b4175);}return _0x3849a7;}(_0x356e72,_0x8aa9ea),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2e4136=ss(Array['from'](this['_selectedSuggestions']));for(const _0xd0ff6 of _0x2e4136){const _0x55b348=_0xd0ff6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x55b348))return;}rs(this['editor']['model'],this['_command'],_0x2e4136);}}class u extends _0x1fbb42(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x521f1e,_0x1fa6e8){super(),this['id']=_0x1fa6e8['id'],this['type']=_0x1fa6e8['type'],this['subType']=_0x1fa6e8['subType']||null,this['author']=_0x1fa6e8['author'],this['creator']=_0x1fa6e8['creator']||_0x1fa6e8['author'],this['isExternal']=Boolean(_0x1fa6e8['attributes']&&_0x1fa6e8['attributes']['@external']),this['data']=null,this['_model']=_0x521f1e,this['_onAccept']=_0x1fa6e8['onAccept'],this['_onDiscard']=_0x1fa6e8['onDiscard'],this['_onAttributesChange']=_0x1fa6e8['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1fa6e8['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 _0x2aab17=this;for(;_0x2aab17['previous'];)_0x2aab17=_0x2aab17['previous'];return _0x2aab17;}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'](_0x2ac4ed){this['_markerNames']['add'](_0x2ac4ed);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1228df=>this['_model']['markers']['get'](_0x1228df))['filter'](_0x40f51d=>_0x40f51d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x492478=>{for(const _0x386995 of this['getMarkers']())_0x492478['removeMarker'](_0x386995);}),this['_markerNames']['clear']();}['removeMarker'](_0x468fd1){this['_model']['change'](_0x1f7389=>{_0x1f7389['removeMarker'](_0x468fd1);}),this['_markerNames']['delete'](_0x468fd1);}['addRange'](_0x5dd6c4){const _0x164454='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x164454),this['_model']['change'](_0x55af51=>{_0x55af51['addMarker'](_0x164454,{'range':_0x5dd6c4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x311ecc){for(const _0x4d0e94 of this['getRanges']())if(_0x4d0e94['isIntersecting'](_0x311ecc))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x412427=>_0x412427['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x9f9961,_0x482797)=>[..._0x9f9961,..._0x482797['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xfb9487=this['getRanges']();if(0x1!=_0xfb9487['length'])return null;const _0x2177f1=_0xfb9487[0x0],_0x2b1d26=_0x2177f1['start']['nodeAfter'],_0x2bba65=_0x2177f1['end']['nodeBefore'];return _0x2b1d26 instanceof _0x4f0c3a?_0x2b1d26!=_0x2bba65?null:_0x2b1d26: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 _0x227d51=[];let _0x1dc904=this['head'];for(;_0x1dc904;)_0x227d51['push'](_0x1dc904),_0x1dc904=_0x1dc904['next'];return _0x227d51;}['setAttribute'](_0xbb23e9,_0x361ddd){const _0x17233d=_0x44736c(this['attributes']);_0xad096e(_0x17233d,_0xbb23e9,_0x361ddd),_0x35d9e3(_0x17233d,this['attributes'])||(this['attributes']=_0x17233d,this['_onAttributesChange'](_0x17233d));}['removeAttribute'](_0x43e184){const _0x62acde=_0x44736c(this['attributes']);_0x404e3a(_0x62acde,_0x43e184),_0x35d9e3(_0x62acde,this['attributes'])||(this['attributes']=_0x62acde,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 _0x37bf61()['substr'](0x1,0x5);}}function o(_0x513668,_0xfd8912,_0x31bead){const t=_0x513668['t'];switch(_0xfd8912){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',_0x31bead);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x31bead);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x31bead);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x31bead);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x31bead);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',_0x31bead);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x31bead);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',_0x31bead);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x31bead);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x31bead);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x31bead);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x31bead);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x31bead);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x31bead);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x31bead);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x31bead);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x31bead);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x31bead);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x31bead);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x31bead);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x31bead);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x31bead);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x31bead);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'},_0x31bead);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x31bead);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x31bead);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x31bead);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x31bead);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x31bead);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'},_0x31bead);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x31bead);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x31bead);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x31bead);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x31bead);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'},_0x31bead);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x31bead);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'},_0x31bead);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'},_0x31bead);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x31bead);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'},_0x31bead);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x31bead);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'},_0x31bead);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x31bead);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x31bead);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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'},_0x31bead);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'},_0x31bead);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0xfd8912;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x14d451,_0x38ee2a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x14d451,this['_locale']=_0x38ee2a;}['getDescriptions'](_0x278832){const _0x22ad0f=[],_0x52eb62=new Set(),_0x43a04b=new Set();for(let _0x3eb679=0x0;_0x3eb679<_0x278832['length'];_0x3eb679++){const _0x247606=_0x278832[_0x3eb679];if(!_0x247606['isInContent'])continue;const _0x5ebd9b=this['_handleCustomCallbackDescription'](_0x247606);if(_0x5ebd9b){if(null!=_0x247606['subType']){if(_0x52eb62['has'](_0x247606['subType']))continue;_0x52eb62['add'](_0x247606['subType']);}_0x22ad0f['push'](_0x5ebd9b);}else{if('attribute'!=_0x247606['type'])'insertion'!=_0x247606['type']&&'deletion'!=_0x247606['type']||this['_handleInsertRemoveSuggestionDescription'](_0x22ad0f,_0x247606,_0x278832[_0x3eb679+0x1]);else{const _0x46d47f=_0x247606['data']['key'];if(_0x43a04b['has'](_0x46d47f))continue;_0x43a04b['add'](_0x247606['data']['key']),_0x46d47f==m?this['_handleRenameSuggestionDescription'](_0x22ad0f,_0x247606):this['_handleAttributeSuggestionDescription'](_0x22ad0f,_0x247606);}}}return this['_resolveDescriptionItems'](_0x22ad0f);}['registerDescriptionCallback'](_0x3237d0){this['_customCallbacks']['push'](_0x3237d0);}['registerElementLabel'](_0x208f73,_0x587c2c,_0x319a2d=_0x529bfa['normal']){'function'==typeof _0x208f73?_0x195f01(this['_itemLabelsCallbacks'],{'matchingCallback':_0x208f73,'label':_0x587c2c,'priority':_0x319a2d}):this['_itemLabels']['set'](_0x208f73,_0x587c2c);}['registerAttributeLabel'](_0x5d491a,_0x2c8c0c){this['_attributeLabels']['set'](_0x5d491a,_0x2c8c0c);}['getItemLabel'](_0x40b342,_0x21a3a5=0x1){let _0x11d360;for(const _0x10301a of this['_itemLabelsCallbacks'])if(_0x10301a['matchingCallback'](_0x40b342)){_0x11d360=_0x10301a['label'];break;}return _0x11d360||(_0x11d360=this['_itemLabels']['get'](_0x40b342['name'])),_0x11d360?_0x11d360(_0x21a3a5):0x1!==_0x21a3a5?_0x21a3a5+'\x20'+_0x40b342['name']+'s':''+_0x40b342['name'];}['_addDescriptionItems'](_0x32509f,_0x3521c1){const _0x475269=_0x3521c1['getFirstRange']()['getWalker'](),_0x3bde8d='insertion'==_0x3521c1['type']?'add':'remove';for(const _0x48ebca of _0x475269){const _0xf0dba8=_0x48ebca['item'],_0x565f0e=_0x32509f[_0x32509f['length']-0x1];if(_0xf0dba8['is']('$textProxy'))_0x565f0e&&_0x565f0e['type']['indexOf']('Container')>-0x1&&_0x32509f['pop'](),_0x565f0e&&'text'==_0x565f0e['type']?_0x565f0e[_0x3bde8d]+=_0xf0dba8['data']:_0x32509f['push']({'type':'text','add':'add'==_0x3bde8d?_0xf0dba8['data']:'','remove':'remove'==_0x3bde8d?_0xf0dba8['data']:''});else{if(this['_schema']['isObject'](_0xf0dba8)){const _0x5a28bb=_0xf0dba8;if(_0x565f0e&&_0x565f0e['type']['indexOf']('Container')>-0x1&&_0x32509f['pop'](),'elementEnd'==_0x48ebca['type'])continue;_0x565f0e&&_0x565f0e['type']==_0x3bde8d+'Object'&&_0x565f0e['element']['name']==_0x5a28bb['name']?_0x565f0e['quantity']++:_0x32509f['push']({'type':_0x3bde8d+'Object','element':_0x5a28bb,'quantity':0x1}),_0x475269['skip'](_0x28777b=>!('elementEnd'==_0x28777b['type']&&_0x28777b['item']==_0xf0dba8));}else{if(this['_schema']['checkChild'](_0xf0dba8,'$text')||_0xf0dba8['is']('element','softBreak')){const _0x1720c8=_0xf0dba8;if('add'==_0x3bde8d&&'elementStart'==_0x48ebca['type']||'remove'==_0x3bde8d&&'elementEnd'==_0x48ebca['type'])continue;if(_0x565f0e&&-0x1==_0x565f0e['type']['indexOf']('Container')){'text'==_0x565f0e['type']&&(_0x565f0e[_0x3bde8d]+='\x0a');continue;}let _0x4ff60d;if(_0x4ff60d='add'==_0x3bde8d?_0x1720c8['nextSibling']&&!this['_schema']['isObject'](_0x1720c8['nextSibling'])?_0x1720c8['nextSibling']:null:_0x1720c8['previousSibling']&&!this['_schema']['isObject'](_0x1720c8['previousSibling'])?_0x1720c8['previousSibling']:null,_0x1720c8['isEmpty']||_0x4ff60d&&_0x4ff60d['isEmpty']){const _0x26bde8=_0x4ff60d&&_0x4ff60d['isEmpty']?_0x4ff60d:_0x1720c8;_0x565f0e&&_0x565f0e['type']==_0x3bde8d+'EmptyContainer'&&_0x565f0e['element']['name']==_0x26bde8['name']?_0x565f0e['quantity']++:_0x32509f['push']({'type':_0x3bde8d+'EmptyContainer','element':_0x26bde8,'quantity':0x1});}else _0x32509f['push']({'type':_0x3bde8d+'Container','element':_0x1720c8});}}}}}['_resolveDescriptionItems'](_0x46fdc4){const _0x348108=this['_locale'],_0x5e33fd=[],_0x2f2f80=[],_0x33f7c6=[];for(const _0x1e391f of _0x46fdc4)switch(_0x1e391f['type']){case'text':if(_0x1e391f['add']=_0x1e391f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1e391f['remove']=_0x1e391f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1e391f['add']&&''!=_0x1e391f['remove']){_0x5e33fd['push']({'type':'replace','content':o(_0x348108,'REPLACE_TEXT',['\x22'+_0x1e391f['remove']+'\x22','\x22'+_0x1e391f['add']+'\x22'])});continue;}if(null!=_0x1e391f['add']['match'](/^ +$/)){_0x5e33fd['push']({'type':'insertion','content':o(_0x348108,'*Insert:*\x20%0',o(_0x348108,'ELEMENT_SPACE',_0x1e391f['add']['length']))});continue;}if(null!=_0x1e391f['remove']['match'](/^ +$/)){_0x5e33fd['push']({'type':'deletion','content':o(_0x348108,'*Remove:*\x20%0',o(_0x348108,'ELEMENT_SPACE',_0x1e391f['remove']['length']))});continue;}if(''!=_0x1e391f['add']){_0x5e33fd['push']({'type':'insertion','content':o(_0x348108,'*Insert:*\x20%0','\x22'+_0x1e391f['add']+'\x22')});continue;}_0x5e33fd['push']({'type':'deletion','content':o(_0x348108,'*Remove:*\x20%0','\x22'+_0x1e391f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5e33fd['push']({'type':'insertion','content':o(_0x348108,'*Insert:*\x20%0',this['getItemLabel'](_0x1e391f['element'],_0x1e391f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5e33fd['push']({'type':'deletion','content':o(_0x348108,'*Remove:*\x20%0',this['getItemLabel'](_0x1e391f['element'],_0x1e391f['quantity']))});continue;case'addContainer':_0x5e33fd['push']({'type':'insertion','content':o(_0x348108,'*Split:*\x20%0',this['getItemLabel'](_0x1e391f['element'],_0x1e391f['quantity']))});continue;case'removeContainer':_0x5e33fd['push']({'type':'deletion','content':o(_0x348108,'*Merge:*\x20%0',this['getItemLabel'](_0x1e391f['element'],_0x1e391f['quantity']))});continue;case'addFormat':_0x2f2f80['push'](_0x1e391f['key']);continue;case'removeFormat':_0x33f7c6['push'](_0x1e391f['key']);continue;default:_0x5e33fd['push'](_0x1e391f);}if(_0x2f2f80['length']){const _0x4a142c=_0x2f2f80['map'](_0x251437=>this['_attributeLabels']['has'](_0x251437)?this['_attributeLabels']['get'](_0x251437):_0x251437)['join'](',\x20');_0x5e33fd['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4a142c)});}if(_0x33f7c6['length']){const _0x7d9e6e=_0x33f7c6['map'](_0x452a27=>this['_attributeLabels']['has'](_0x452a27)?this['_attributeLabels']['get'](_0x452a27):_0x452a27)['join'](',\x20');_0x5e33fd['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x7d9e6e)});}return _0x5e33fd;}['_handleCustomCallbackDescription'](_0x456925){for(const _0x54ff5a of this['_customCallbacks']){const _0x184530=_0x54ff5a(_0x456925);if(_0x184530&&'type'in _0x184530)return _0x184530;}}['_handleAttributeSuggestionDescription'](_0x3d7b82,_0x27a43a){const _0x349f26=_0x27a43a['data'],_0x5fffad=void 0x0===_0x349f26['newValue']?'removeFormat':'addFormat';_0x3d7b82['push']({'type':_0x5fffad,'key':_0x349f26['key']});}['_handleRenameSuggestionDescription'](_0x2f5e35,_0x254e83){_0x2f5e35['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x254e83['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x133e32,_0x1a5686,_0x27f07a){if(this['_addDescriptionItems'](_0x133e32,_0x1a5686),_0x27f07a&&_0x27f07a['getFirstRange']()&&!_0x1a5686['getFirstRange']()['end']['isEqual'](_0x27f07a['getFirstRange']()['start'])){const _0x982f3f=_0x133e32[_0x133e32['length']-0x1],_0x4b8640='insertion'==_0x1a5686['type']?'add':'remove';_0x982f3f&&'text'==_0x982f3f['type']&&(_0x982f3f[_0x4b8640]+='\x0a');}}}class E extends _0x2ef393{['afterInit'](){const _0x4d7d5c=this['editor'],_0x44dfb5=_0x4d7d5c['plugins']['get']('TrackChangesEditing');_0x4d7d5c['commands']['get']('showAIAssistant')&&_0x44dfb5['enableCommand']('showAIAssistant');}}class V extends _0x2ef393{['afterInit'](){const _0x6cd92c=this['editor'],_0x584963=_0x6cd92c['locale'];if(!_0x6cd92c['plugins']['has']('AlignmentEditing'))return;const _0x9b73a7=_0x6cd92c['plugins']['get']('TrackChangesEditing');_0x9b73a7['enableDefaultAttributesIntegration']('alignment'),_0x9b73a7['registerBlockAttribute']('alignment'),_0x9b73a7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x584963,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a3dea=this['editor'],_0x426d2d=_0x3a3dea['locale'];_0x3a3dea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5aae31=>{if('formatBlock'!=_0x5aae31['type'])return;const {data:_0x35c0da}=_0x5aae31;if(_0x35c0da&&'alignment'==_0x35c0da['commandName']){const _0x5f273e=_0x35c0da['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x426d2d,'*Format:*\x20%0',function(_0xef7503){switch(_0xef7503){case'left':return o(_0x426d2d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x426d2d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x426d2d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x426d2d,'FORMAT_JUSTIFY_TEXT');}}(_0x5f273e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x2ef393{['afterInit'](){const _0x3112e8=this['editor'],_0x4bf848=_0x3112e8['plugins']['get']('TrackChangesEditing'),_0x79a34c=_0x3112e8['locale'];for(const _0x47219d of ti){if(!_0x3112e8['plugins']['has'](_0x47219d))continue;const _0x46e6d9=_0x47219d['slice'](0x0,-0x7)['toLowerCase'](),_0x30781a='FORMAT_'+_0x46e6d9['toUpperCase']();_0x4bf848['enableDefaultAttributesIntegration'](_0x46e6d9),_0x4bf848['registerInlineAttribute'](_0x46e6d9),_0x4bf848['descriptionFactory']['registerAttributeLabel'](_0x46e6d9,o(_0x79a34c,_0x30781a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x561d55=this['editor'],_0x3d039c=_0x561d55['locale'],_0x42a672=_0x561d55['plugins']['get']('TrackChangesEditing');function _0x426a5f(_0x2acc33,_0x3152c4){_0x42a672['descriptionFactory']['registerDescriptionCallback'](_0x432ea2=>{if('formatInline'!=_0x432ea2['type'])return;const {data:_0x2eece2}=_0x432ea2;return _0x2eece2&&_0x2eece2['commandName']===_0x2acc33?_0x2eece2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3d039c,'*Format:*\x20%0',_0x3152c4)}:{'type':'format','content':o(_0x3d039c,'*Remove\x20format:*\x20%0',_0x3152c4)}:void 0x0;});}_0x426a5f('bold',o(_0x3d039c,'FORMAT_BOLD')),_0x426a5f('italic',o(_0x3d039c,'FORMAT_ITALIC')),_0x426a5f('underline',o(_0x3d039c,'FORMAT_UNDERLINE')),_0x426a5f('code',o(_0x3d039c,'FORMAT_CODE')),_0x426a5f('strikethrough',o(_0x3d039c,'FORMAT_STRIKETHROUGH')),_0x426a5f('subscript',o(_0x3d039c,'FORMAT_SUBSCRIPT')),_0x426a5f('superscript',o(_0x3d039c,'FORMAT_SUPERSCRIPT'));}}class O extends _0x2ef393{['afterInit'](){const _0x40cdf5=this['editor'],_0xcce57f=_0x40cdf5['locale'];if(!_0x40cdf5['plugins']['has']('BlockQuoteEditing'))return;const _0x35a4ae=_0x40cdf5['plugins']['get']('TrackChangesEditing'),_0x570f3c=this['editor']['commands']['get']('blockQuote');_0x35a4ae['enableCommand']('blockQuote',(_0x47524e,_0xdde91b={})=>{const _0x402725=this['editor']['model']['document']['selection'],_0x4f4ce0=_0xdde91b&&void 0x0!==_0xdde91b['forceValue']?_0xdde91b['forceValue']:!_0x570f3c['value'];let _0x46abcf=[];if(_0x4f4ce0){const _0x4bb2d9=Array['from'](_0x402725['getSelectedBlocks']())['filter'](_0x54c201=>oo(_0x54c201)||function(_0x305ac5,_0x1fcdf3){const _0x3acfec=_0x1fcdf3['checkChild'](_0x305ac5['parent'],'blockQuote'),_0x5bede7=_0x1fcdf3['checkChild'](['$root','blockQuote'],_0x305ac5);return _0x3acfec&&_0x5bede7;}(_0x54c201,this['editor']['model']['schema']));_0x46abcf=to(_0x4bb2d9,_0x40cdf5['model']);}else{const _0x10decb=Array['from'](_0x402725['getSelectedBlocks']())['filter'](_0x4cfda5=>oo(_0x4cfda5));_0x46abcf=to(_0x10decb,_0x40cdf5['model']);}_0x40cdf5['model']['change'](()=>{for(const _0x41658c of _0x46abcf)_0x35a4ae['markBlockFormat'](_0x41658c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4f4ce0}]});});}),_0x35a4ae['descriptionFactory']['registerDescriptionCallback'](_0x2a82a4=>{const {data:_0x5e91da}=_0x2a82a4;if(_0x5e91da&&'blockQuote'==_0x5e91da['commandName']){const _0x40fdee=o(_0xcce57f,'ELEMENT_BLOCK_QUOTE');return _0x5e91da['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xcce57f,'*Set\x20format:*\x20%0',_0x40fdee)}:{'type':'format','content':o(_0xcce57f,'*Remove\x20format:*\x20%0',_0x40fdee)};}});}}function oo(_0x16c984){return'blockQuote'==_0x16c984['parent']['name'];}class F extends _0x2ef393{['afterInit'](){const _0x82f31e=this['editor'];_0x82f31e['plugins']['has']('CaseChange')&&(_0x82f31e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x82f31e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x82f31e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x2ef393{['afterInit'](){const _0x558a17=this['editor'];_0x558a17['commands']['get']('ckbox')&&_0x558a17['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2ef393{['afterInit'](){const _0x2f3b97=this['editor'];if(!_0x2f3b97['plugins']['has']('CodeBlock'))return;const _0x22c323=_0x2f3b97['plugins']['get']('TrackChangesEditing'),_0x156503=_0x2f3b97['locale'],_0x34655d=_0x2f3b97['config']['get']('codeBlock')['languages'],_0x52bba0=_0x2f3b97['commands']['get']('codeBlock');_0x22c323['enableCommand']('indentCodeBlock'),_0x22c323['enableCommand']('outdentCodeBlock'),_0x22c323['enableCommand']('codeBlock',(_0x46b210,_0x13580c={})=>{const _0x5eeb9a=_0x2f3b97['model'],_0x101d9d=_0x2f3b97['model']['document']['selection'],_0x2aa623=_0x13580c&&void 0x0!==_0x13580c['forceValue']?_0x13580c['forceValue']:!_0x52bba0['value'];let _0x303bca;_0x13580c['language']||(_0x13580c['language']=_0x34655d[0x0]['language']),_0x303bca=_0x2aa623?Array['from'](_0x101d9d['getSelectedBlocks']())['filter'](_0x510a91=>eo(_0x510a91)||function(_0x3129d6,_0x59ec1f){if(_0x3129d6['is']('rootElement')||_0x59ec1f['isLimit'](_0x3129d6))return!0x1;return _0x59ec1f['checkChild'](_0x3129d6['parent'],'codeBlock');}(_0x510a91,_0x5eeb9a['schema'])):Array['from'](_0x101d9d['getSelectedBlocks']())['filter'](_0x4e444a=>eo(_0x4e444a));const _0x2f82f=to(_0x303bca,_0x5eeb9a);_0x5eeb9a['change'](()=>{for(const _0x39a16c of _0x2f82f)_0x22c323['markBlockFormat'](_0x39a16c,{'commandName':'codeBlock','commandParams':[{..._0x13580c,'forceValue':_0x2aa623}],'formatGroupId':'blockName'});});}),(_0x22c323['descriptionFactory']['registerElementLabel']('codeBlock',_0x4dab42=>o(_0x156503,'ELEMENT_CODE_BLOCK',_0x4dab42)),_0x22c323['descriptionFactory']['registerDescriptionCallback'](_0x3095ca=>{if('formatBlock'!=_0x3095ca['type'])return;const _0x16415e=_0x156503['t'],{data:_0x40fdd0}=_0x3095ca;if(!_0x40fdd0||'codeBlock'!=_0x40fdd0['commandName'])return;const _0x1000e6=_0x40fdd0['commandParams'][0x0]['language'],_0x2a76d1=_0x16415e(_0x34655d['find'](_0x29d9b9=>_0x29d9b9['language']===_0x1000e6)['label'])['toLowerCase']();return _0x40fdd0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x156503,'*Set\x20format:*\x20%0',o(_0x156503,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2a76d1+')')}:{'type':'format','content':o(_0x156503,'*Remove\x20format:*\x20%0',o(_0x156503,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3d75d9){return'codeBlock'==_0x3d75d9['name'];}class H extends _0x2ef393{['afterInit'](){const _0x378997=this['editor'];if(!_0x378997['plugins']['has']('CommentsEditing'))return;_0x378997['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x45a006,_0x4d512c,_0x48f759){const _0x4ec2e3=[];for(const _0x16b9a2 of _0x4d512c['getItems']())_0x16b9a2['hasAttribute'](_0x45a006)&&_0x4ec2e3['push'](_0x48f759['createRangeOn'](_0x16b9a2));return _0x4ec2e3;}function _e(_0x100f5f,_0x5743d8,{showActiveMarker:_0x36b9c6=!0x0}={}){const _0x1f9def=_0x100f5f['plugins']['get']('TrackChangesEditing');return(_0x394514,_0x4d3c61,_0x128dc)=>{if(!_0x128dc['consumable']['test'](_0x4d3c61['markerRange'],_0x394514['name']))return;const _0xfd64b4=_0x4d3c61['markerRange']['getWalker'](),_0x5dff0f=_0x4d3c61['markerRange']['start'],_0x4eea51=_0x100f5f['model']['schema'];let _0x56a3a5=null,_0x53f97f=null,_0x30fffc=!0x1,_0x4e7540=!0x1;for(const _0x39bbe0 of _0xfd64b4){const _0x273947=_0x39bbe0['item'];_0x30fffc=_0x30fffc||_0x4eea51['isContent'](_0x273947);const _0x551997=_0x128dc['mapper']['toViewElement'](_0x273947);if(_0x551997&&_0x551997['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x39bbe0['type']&&(_0x4eea51['isBlock'](_0x273947)&&!_0x4eea51['isLimit'](_0x273947)&&(_0x273947['nextSibling']||_0x5dff0f['isAtEnd']?_0x56a3a5&&_0x56a3a5['parent']==_0x273947||(_0x56a3a5=_0x273947,_0x57f4dd(_0x39bbe0['previousPosition']),_0x4e7540=!0x0):_0x53f97f=_0x53f97f||_0x39bbe0['previousPosition']));}function _0x57f4dd(_0x485a35){const _0x14d101=_0x128dc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5743d8}),_0x2a6912=_0x128dc['mapper']['toViewPosition'](_0x485a35);_0x36b9c6&&_0x1f9def['activeMarkers']['includes'](_0x4d3c61['markerName'])&&_0x128dc['writer']['addClass']('ck-suggestion-marker--active',_0x14d101),_0x128dc['writer']['insert'](_0x2a6912,_0x14d101),_0x128dc['mapper']['bindElementToMarker'](_0x14d101,_0x4d3c61['markerName']);}_0x30fffc||_0x4e7540||!_0x53f97f||_0x57f4dd(_0x53f97f);};}class q extends _0x2ef393{static get['requires'](){return[_0x277b62];}['init'](){const _0x48f001=this['editor'],_0x5877f1=_0x48f001['plugins']['get']('TrackChangesEditing');_0x5877f1['enableCommand']('delete');const _0x5310c0=_0x48f001['commands']['get']('deleteForward');_0x5877f1['enableCommand']('deleteForward',(_0x1bb002,_0x5dfb72={})=>{const _0x2bf51e=_0x48f001['model']['createSelection'](_0x48f001['model']['document']['selection']);_0x2bf51e['isCollapsed']&&_0x48f001['model']['modifySelection'](_0x2bf51e,{'direction':'forward','unit':_0x5dfb72['unit']});const _0x50b555=_0x2bf51e['getFirstRange'](),_0x38e85e=_0x4ca244['fromRange'](_0x50b555);let _0x2a18d1;_0x1bb002(_0x5dfb72),_0x2a18d1='$graveyard'==_0x38e85e['root']['rootName']?_0x48f001['model']['createRange'](_0x50b555['start']):_0x48f001['model']['createRange'](_0x38e85e['start'],_0x38e85e['end']),_0x38e85e['detach'](),_0x48f001['model']['enqueueChange'](_0x5310c0['buffer']['batch'],_0x21f0e7=>{_0x5310c0['buffer']['lock'](),_0x21f0e7['setSelection'](_0x21f0e7['createRange'](_0x2a18d1['end'])),_0x5310c0['buffer']['unlock']();});}),_0x48f001['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x48f001,'merge'),{'priority':'high'}),_0x48f001['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xf1a35f,_0x5f4167,_0xcdaf41)=>{_0xcdaf41['options']['showSuggestionHighlights']&&_e(_0x48f001,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xf1a35f,_0x5f4167,_0xcdaf41);},{'priority':'high'}),_0x48f001['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xaca707,_0x225e80,_0x53768d)=>{const _0xcf6b56=_0x53768d['mapper']['markerNameToElements'](_0x225e80['markerName']);if(_0xcf6b56){for(const _0x25b281 of _0xcf6b56)_0x25b281['is']('uiElement')&&(_0x53768d['mapper']['unbindElementFromMarkerName'](_0x25b281,_0x225e80['markerName']),_0x53768d['writer']['remove'](_0x25b281));}},{'priority':'high'});}}class z extends _0x2ef393{['afterInit'](){const _0x29365d=this['editor'];if(!_0x29365d['plugins']['has']('ListEditing'))return;const _0x1d198c=_0x29365d['locale'],_0x54714f=_0x29365d['plugins']['get']('TrackChangesEditing'),_0x5a84ae=_0x29365d['plugins']['has']('TodoListEditing'),_0x2181eb=!!_0x29365d['config']['get']('list.multiBlock');function _0x48ca9a(_0x329384){return{'type':'format','content':''+o(_0x1d198c,'*Set\x20format:*\x20%0',_0x329384)};}function _0x1ff26f(_0x1bc39b){return{'type':'format','content':''+o(_0x1d198c,'*Remove\x20format:*\x20%0',_0x1bc39b)};}_0x54714f['enableDefaultAttributesIntegration']('numberedList'),_0x54714f['enableDefaultAttributesIntegration']('bulletedList'),_0x54714f['enableDefaultAttributesIntegration']('customNumberedList'),_0x54714f['enableDefaultAttributesIntegration']('customBulletedList'),_0x54714f['enableDefaultAttributesIntegration']('indentList'),_0x54714f['enableDefaultAttributesIntegration']('outdentList'),_0x54714f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x54714f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x54714f['registerBlockAttribute']('listItemId'),_0x54714f['registerBlockAttribute']('listType'),_0x54714f['registerBlockAttribute']('listIndent'),_0x2181eb&&(_0x54714f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x54714f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5a84ae&&(_0x54714f['enableDefaultAttributesIntegration']('todoList'),_0x54714f['enableDefaultAttributesIntegration']('checkTodoList'),_0x54714f['registerBlockAttribute']('todoListChecked'),_0x54714f['descriptionFactory']['registerDescriptionCallback'](_0x12c7e9=>{const {data:_0x2d8d58}=_0x12c7e9;if(_0x2d8d58&&'todoListChecked'==_0x2d8d58['key'])return{'type':'format','content':_0x2d8d58['newValue']?o(_0x1d198c,'*Check\x20item*'):o(_0x1d198c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x276fd1=>{if(_0x276fd1['batch']['isUndo'])return!0x1;let _0x7efd07=!0x1;const _0x3eed8c=_0x54714f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4af71d=>'todoListChecked'===_0x54714f['_getAttributeKey'](_0x4af71d));for(const _0x1bb178 of _0x3eed8c){'todo'!=_0x1bb178['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x54714f['_findSuggestions'](_0x1bb178['getFirstRange'](),'attribute')['find'](_0x506abb=>'listType'===_0x54714f['_getAttributeKey'](_0x506abb['suggestion']))||(_0x276fd1['removeMarker'](_0x1bb178['getFirstMarker']()),_0x7efd07=!0x0));}return _0x7efd07;})),_0x54714f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1d198c,'FORMAT_INDENT'));const _0x4abf30={'type':'format','content':''};_0x54714f['descriptionFactory']['registerDescriptionCallback'](_0x2169e8=>{const {data:_0x38e398}=_0x2169e8;if(!_0x38e398||'listType'!=_0x38e398['key'])return;let _0x171733=_0x2169e8['head'];for(;_0x171733;){if(_0x171733['data']&&(('listStyle'==_0x171733['data']['key']||'listMarkerStyle'==_0x171733['data']['key'])&&(_0x171733['data']['newValue']&&'default'!=_0x171733['data']['newValue']||'default'!=_0x171733['data']['oldValue']&&!_0x38e398['newValue'])||!_0x2181eb&&_0x171733['data']['key']==m))return _0x4abf30;_0x171733=_0x171733['next'];}if(null==_0x38e398['newValue'])switch(_0x38e398['oldValue']){case'bulleted':return _0x1ff26f(o(_0x1d198c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1ff26f(o(_0x1d198c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1ff26f(o(_0x1d198c,'ELEMENT_TODO_LIST'));}switch(_0x38e398['newValue']){case'bulleted':return _0x48ca9a(o(_0x1d198c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48ca9a(o(_0x1d198c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48ca9a(o(_0x1d198c,'ELEMENT_TODO_LIST'));}}),_0x54714f['descriptionFactory']['registerDescriptionCallback'](_0x9e26d9=>{const {data:_0x4cdbfc}=_0x9e26d9;if(_0x4cdbfc&&'listIndent'==_0x4cdbfc['key'])return null==_0x4cdbfc['newValue']||null==_0x4cdbfc['oldValue']&&0x0==_0x4cdbfc['newValue']?_0x4abf30:void 0x0;}),_0x54714f['descriptionFactory']['registerDescriptionCallback'](_0x2518b5=>{if('attribute'!=_0x2518b5['type'])return;const {data:_0x17235a}=_0x2518b5;if(!_0x17235a||'listItemId'!=_0x17235a['key'])return;const _0x51ccf3=le(_0x2518b5);return'newValue'==_0x51ccf3?{'type':'format','content':o(_0x1d198c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x51ccf3?{'type':'format','content':o(_0x1d198c,'*Split:*\x20list\x20item')}:_0x4abf30;}),_0x29365d['model']['document']['registerPostFixer'](_0x4b8500=>this['listItemIdFixer'](_0x4b8500)),_0x29365d['model']['document']['registerPostFixer'](_0x44144f=>this['noTrackChangesFixer'](_0x44144f)),_0x29365d['model']['document']['registerPostFixer'](_0x3bbf5c=>this['assureChains'](_0x3bbf5c)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5b1f74){if(_0x5b1f74['batch']['isUndo']||!_0x5b1f74['batch']['isLocal'])return!0x1;let _0x1f74fc=!0x1;const _0x39f7ce=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf5725f=>_0xf5725f['data']&&'listItemId'==_0xf5725f['data']['key'])['filter'](_0x4af371=>_0x4af371['data']['newValue']&&_0x4af371['data']['oldValue']);for(const _0xececdf of _0x39f7ce)le(_0xececdf)||(_0x5b1f74['removeMarker'](_0xececdf['getFirstMarker']()),_0x1f74fc=!0x0);return _0x1f74fc;}['noTrackChangesFixer'](_0x344088){if(_0x344088['batch']['isUndo']||!_0x344088['batch']['isLocal'])return!0x1;const _0x3c9a75=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3c9a75['trackChangesCommand']['value'])return!0x1;let _0x1af1b8=!0x1;const _0x5b669a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x218a4e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x61778b=>'attribute'==_0x61778b['type'])['filter'](_0x211e9f=>_0x5b669a['includes'](_0x211e9f['attributeKey']));if(0x0==_0x218a4e['length'])return _0x1af1b8;for(const _0xa22822 of _0x218a4e){const _0x5b7637=_0x3c9a75['_findSuggestions'](_0xa22822['range'],'attribute')['filter'](_0x2eaf92=>!_0x2eaf92['meta']['isNextTo'])['map'](_0x37e9c2=>_0x37e9c2['suggestion'])['filter'](_0x573120=>{const _0x290656=_0x3c9a75['_getAttributeKey'](_0x573120);return _0x5b669a['includes'](_0x290656);});if(_0x5b7637['length']){for(const _0x4f01a3 of _0x5b7637)_0x344088['removeMarker'](_0x4f01a3['getFirstMarker']());_0x1af1b8=!0x0;}}return _0x1af1b8;}['assureChains'](_0x1487dd){if(_0x1487dd['batch']['isUndo']||!_0x1487dd['batch']['isLocal'])return!0x1;const _0x1e284f=this['editor']['plugins']['get']('TrackChangesEditing');let _0x8929ea=!0x1;const _0x1bf240=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x2842e4 of _0x1e284f['getSuggestions']({'skipNotAttached':!0x0})){const _0x158f92=_0x1e284f['_findSuggestions'](_0x2842e4['getFirstRange'](),'attribute')['map'](_0x19dd9c=>_0x19dd9c['suggestion'])['filter'](_0x3de93c=>_0x3de93c['data']&&_0x1bf240['includes'](_0x3de93c['data']['key']));if(!_0x158f92['length'])continue;const _0x357d86=_0x158f92[0x0]['head']['attributes']['groupId'];if(!_0x158f92['every'](_0x50cd22=>_0x50cd22['attributes']['groupId']===_0x357d86)){for(const _0x365a25 of _0x158f92)_0x2fdf65(_0x365a25,_0x357d86)&&(_0x8929ea=!0x0);}}return _0x8929ea;function _0x4920c0(_0x1a3e37,_0x27ae0b){for(const _0x25b4b4 of _0x1e284f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b9754=>'attribute'==_0x1b9754['type']&&_0x1b9754['attributes']['groupId']==_0x1a3e37))_0x25b4b4['setAttribute']('groupId',_0x27ae0b);}function _0x2fdf65(_0xb0cb3,_0x44e83a){let _0x4182ed=_0xb0cb3['head'],_0x801e8f=!0x1;for(;_0x4182ed;)_0x4182ed['attributes']['groupId']!=_0x44e83a&&(_0x4920c0(_0x4182ed['attributes']['groupId'],_0x44e83a),_0x4182ed['setAttribute']('groupId',_0x44e83a),_0x801e8f=!0x0),_0x4182ed=_0x4182ed['next'];return _0x801e8f;}}['_supportLegacySuggestions'](){const _0x12432a=this['editor'],_0x3bc011=_0x12432a['locale'],_0x5b3470=_0x12432a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5b3470['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x39f8c5,_0x53864b){const _0x4b5206=[];for(let _0x18fbbd of _0x39f8c5)_0x18fbbd['start']['nodeAfter']===_0x18fbbd['end']['parent']&&(_0x18fbbd=_0x12432a['model']['createRange'](_0x12432a['model']['createPositionAt'](_0x18fbbd['start']['nodeAfter'],0x0))),_0x4b5206['push'](_0x18fbbd);_0x12432a['model']['change'](_0x5d9d0f=>{const _0x3d7f6c=_0x12432a['model']['document']['selection'],_0xd6a544=Array['from'](_0x3d7f6c['getRanges']())['map'](_0x2ce036=>_0x4ca244['fromRange'](_0x2ce036));_0x5d9d0f['setSelection'](_0x4b5206),_0x12432a['commands']['get'](_0x53864b['commandName'])['refresh'](),_0x53864b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x12432a['execute'](_0x53864b['commandName'],..._0x53864b['commandParams']),_0x5d9d0f['setSelection'](_0xd6a544);for(const _0x23cefd of _0xd6a544)_0x23cefd['detach']();});}),_0x5b3470['descriptionFactory']['registerElementLabel'](function(_0x5d9321){const _0x17a4cb=!_0x12432a['model']['schema']['isObject'](_0x5d9321),_0xae3fa1=_0x5d9321['previousSibling'],_0x327ed3=_0x5d9321['nextSibling'],_0x27c67c=_0x5d9321['getAttribute']('listItemId'),_0x45979e=!_0xae3fa1||_0xae3fa1['getAttribute']('listItemId')!==_0x27c67c,_0x3f23b4=!_0x327ed3||_0x327ed3['getAttribute']('listItemId')!==_0x27c67c;return _0x17a4cb&&Boolean(_0x27c67c)&&_0x45979e&&_0x3f23b4;},_0x441ca7=>o(_0x3bc011,'ELEMENT_LIST_ITEM',_0x441ca7));}['_registerLegacyDescription'](){const _0x516f70=this['editor'],_0x547ded=_0x516f70['locale'];function _0x494654(_0x29915d){const _0x1b3bbe=_0x516f70['commands']['get']('bulletedList')['value'],_0x489a05=_0x516f70['commands']['get']('numberedList')['value'];return'numberedList'===_0x29915d?_0x1b3bbe:_0x489a05;}_0x516f70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3bc9d0){if('formatBlock'!=_0x3bc9d0['type'])return;const {data:_0x3cef87}=_0x3bc9d0;if(!_0x3cef87)return;let _0x539160,_0x17e8ee,_0x3b8bde,_0x1c5b57;switch(_0x3cef87['commandName']){case'bulletedList':_0x3b8bde=_0x3cef87['commandParams'][0x0]['forceValue'],_0x1c5b57=_0x494654(_0x3cef87['commandName']),_0x539160=_0x3b8bde?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1c5b57&&_0x516f70['config']['get']('list.multiBlock')||(_0x539160='*Change\x20to:*\x20%0'),_0x17e8ee={'type':'format','content':o(_0x547ded,_0x539160,o(_0x547ded,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3b8bde=_0x3cef87['commandParams'][0x0]['forceValue'],_0x1c5b57=_0x494654(_0x3cef87['commandName']),_0x539160=_0x3b8bde?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1c5b57&&_0x516f70['config']['get']('list.multiBlock')||(_0x539160='*Change\x20to:*\x20%0'),_0x17e8ee={'type':'format','content':o(_0x547ded,_0x539160,o(_0x547ded,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x539160='*Indent:*\x20%0',_0x17e8ee={'type':'format','content':o(_0x547ded,_0x539160,o(_0x547ded,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x539160=function(_0x11b012){const _0x2eda5d=_0x11b012['getFirstRange']();let _0x50e8dd=_0x2eda5d['start']['nodeAfter'];for(;_0x50e8dd&&_0x2eda5d['containsItem'](_0x50e8dd);){if(_0x50e8dd['getAttribute']('listIndent')>0x0)return!0x1;_0x50e8dd=_0x50e8dd['nextSibling'];}return!0x0;}(_0x3bc9d0)?o(_0x547ded,'*Format:*\x20remove\x20from\x20%0',o(_0x547ded,function(_0x1a96be){return'ELEMENT_'+_0x1a96be['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3bc9d0))):o(_0x547ded,'*Outdent:*\x20%0',o(_0x547ded,'ELEMENT_LIST_ITEM')),_0x17e8ee={'type':'format','content':_0x539160};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3cef87['multipleBlocks']&&(_0x539160='*Merge:*\x20%0',_0x17e8ee={'type':'deletion','content':o(_0x547ded,_0x539160,o(_0x547ded,'ELEMENT_LIST_ITEM'))});}return _0x17e8ee;});}}function le(_0x2167e8){let _0x24b9ce=_0x2167e8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x24b9ce;){const _0x10e352=_0x24b9ce['getAttribute']('listItemId');if(!_0x10e352)return!0x1;if(_0x10e352==_0x2167e8['data']['newValue'])return'newValue';if(_0x10e352==_0x2167e8['data']['oldValue'])return'oldValue';_0x24b9ce=_0x24b9ce['previousSibling'];}return!0x1;}class ue extends _0x2ef393{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2c3f92=this['editor']['config']['get']('list.properties'),_0x425d3b=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c3f92['styles']&&(_0x425d3b['enableDefaultAttributesIntegration']('listStyle'),_0x425d3b['registerBlockAttribute']('listStyle')),_0x2c3f92['reversed']&&(_0x425d3b['enableDefaultAttributesIntegration']('listReversed'),_0x425d3b['registerBlockAttribute']('listReversed')),_0x2c3f92['startIndex']&&(_0x425d3b['enableDefaultAttributesIntegration']('listStart'),_0x425d3b['registerBlockAttribute']('listStart'));const _0x573e4e={'type':'format','content':''};_0x425d3b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x370f6e=this['editor']['locale'];_0x425d3b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x370f6e,'FORMAT_LIST_REVERSED')),_0x425d3b['descriptionFactory']['registerDescriptionCallback'](_0x1d6eaf=>{const {data:_0x5c0840}=_0x1d6eaf;if(_0x5c0840&&'listReversed'==_0x5c0840['key'])return null==_0x5c0840['newValue']||0x0==_0x5c0840['newValue']&&null==_0x5c0840['oldValue']?_0x573e4e:void 0x0;}),_0x425d3b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x370f6e,'FORMAT_LIST_START')),_0x425d3b['descriptionFactory']['registerDescriptionCallback'](_0x611529=>{const {data:_0x9240bb}=_0x611529;if(_0x9240bb&&'listStart'==_0x9240bb['key'])return null==_0x9240bb['newValue']||0x1==_0x9240bb['newValue']&&null==_0x9240bb['oldValue']?_0x573e4e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x6982cd=>{if(_0x6982cd['batch']['isUndo'])return!0x1;let _0x2048d2=!0x1;const _0x456023=_0x425d3b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15e91f=>{const _0x295165=_0x425d3b['_getAttributeKey'](_0x15e91f);return'listStart'==_0x295165||'listReversed'==_0x295165;});for(const _0xdaedbe of _0x456023){const _0x5e6a04=_0xdaedbe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5e6a04||'customNumbered'==_0x5e6a04)continue;_0x425d3b['_findSuggestions'](_0xdaedbe['getFirstRange'](),'attribute')['find'](_0x2a9a8a=>'listType'==_0x425d3b['_getAttributeKey'](_0x2a9a8a['suggestion']))||(_0x6982cd['removeMarker'](_0xdaedbe['getFirstMarker']()),_0x2048d2=!0x0);}return _0x2048d2;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x35508b){const _0x37e32a=this['editor']['locale'],{data:_0x5f20b3}=_0x35508b,_0xeaef28={'type':'format','content':''};if(!_0x5f20b3||'listStyle'!=_0x5f20b3['key'])return;if(!_0x5f20b3['oldValue'])return'default'==_0x5f20b3['newValue']?_0xeaef28:{'type':'format','content':''+o(_0x37e32a,'*Set\x20format:*\x20%0',o(_0x37e32a,this['_getTranslationKeyForListStyle'](_0x5f20b3['newValue'])))};if(!_0x5f20b3['newValue']){if('default'==_0x5f20b3['oldValue'])return _0xeaef28;let _0x44bfa0=_0x35508b['head'];for(;_0x44bfa0;){if(_0x44bfa0['data']&&'listType'==_0x44bfa0['data']['key']&&_0x44bfa0['data']['newValue'])return _0xeaef28;_0x44bfa0=_0x44bfa0['next'];}return{'type':'format','content':''+o(_0x37e32a,'*Remove\x20format:*\x20%0',o(_0x37e32a,this['_getTranslationKeyForListStyle'](_0x5f20b3['oldValue'])))};}if('default'!=_0x5f20b3['newValue'])return{'type':'format','content':''+o(_0x37e32a,'*Set\x20format:*\x20%0',o(_0x37e32a,this['_getTranslationKeyForListStyle'](_0x5f20b3['newValue'])))};let _0x43853b=_0x35508b['head'];for(;_0x43853b;){if(_0x43853b['data']&&'listType'==_0x43853b['data']['key']&&_0x43853b['data']['newValue']&&_0x43853b['data']['oldValue'])return _0xeaef28;_0x43853b=_0x43853b['next'];}return{'type':'format','content':o(_0x37e32a,'*Set\x20format:*\x20%0',o(_0x37e32a,'ELEMENT_'+_0x35508b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x54629a=this['editor'],_0x3f00f2=_0x54629a['locale'];_0x54629a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d58d9=>{if('formatBlock'!=_0x4d58d9['type'])return;const {data:_0x4e860c}=_0x4d58d9;if(!_0x4e860c)return;let _0x3b429a,_0x139fea;switch(_0x4e860c['commandName']){case'listStyle':_0x3b429a='*Change\x20to:*\x20%0',_0x139fea={'type':'format','content':o(_0x3f00f2,_0x3b429a,o(_0x3f00f2,this['_getTranslationKeyForListStyle'](_0x4e860c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3b429a=_0x4e860c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x139fea={'type':'format','content':o(_0x3f00f2,_0x3b429a)};break;case'listStart':_0x3b429a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x139fea={'type':'format','content':o(_0x3f00f2,_0x3b429a,_0x4e860c['commandParams'][0x0]['startIndex'])};}return _0x139fea;});}['_getTranslationKeyForListStyle'](_0x35e98c){return'ELEMENT_'+function(_0x26ba6b){if(pe['includes'](_0x26ba6b))return'bulleted';if(ye['includes'](_0x26ba6b))return'numbered';return null;}(_0x35e98c)['toUpperCase']()+'_LIST_'+_0x35e98c['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x2ef393{static get['requires'](){return[_0x13bfa0];}['init'](){const _0x59b8ae=this['editor'],_0x449d6e=_0x59b8ae['plugins']['get']('TrackChangesEditing'),_0x1e76ce=_0x59b8ae['commands']['get']('enter');_0x449d6e['enableCommand']('enter',()=>{_0x59b8ae['model']['change'](_0x27cbbf=>{const _0x47acf0=_0x59b8ae['model']['document']['selection'],_0x32d482=_0x47acf0['getFirstPosition'](),_0x26ebd5=_0x4ca244['fromRange'](_0x47acf0['getFirstRange']());if(_0x1e76ce['enterBlock'](_0x27cbbf)){const _0x5887e2=_0x59b8ae['model']['createPositionAt'](_0x32d482['parent']['nextSibling'],0x0),_0x267884=_0x27cbbf['createRange'](_0x32d482,_0x5887e2);_0x449d6e['markInsertion'](_0x267884);}else _0x27cbbf['setSelection'](_0x27cbbf['createRange'](_0x26ebd5['end']));_0x26ebd5['detach'](),_0x1e76ce['fire']('afterExecute',{'writer':_0x27cbbf});});}),_0x59b8ae['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x59b8ae,'split'),{'priority':'high'}),_0x59b8ae['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1788eb,_0x32469a,_0x2d4a17)=>{const _0x315b5d=_0x2d4a17['mapper']['markerNameToElements'](_0x32469a['markerName']);if(_0x315b5d){for(const _0x14abac of _0x315b5d)_0x14abac['hasClass']('ck-suggestion-marker-split')&&(_0x2d4a17['mapper']['unbindElementFromMarkerName'](_0x14abac,_0x32469a['markerName']),_0x2d4a17['writer']['remove'](_0x14abac));}},{'priority':'high'}),_0x59b8ae['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x17e88c,_0x5989e6,_0x47ee3f)=>{_0x47ee3f['options']['showSuggestionHighlights']&&_e(_0x59b8ae,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x17e88c,_0x5989e6,_0x47ee3f);},{'priority':'high'});}}class J extends _0x2ef393{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4c241f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c241f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4c241f['enableCommand']('findNext'),_0x4c241f['enableCommand']('findPrevious'),_0x4c241f['enableCommand']('replace'),_0x4c241f['enableCommand']('replaceAll');}['handleFindCommand'](_0x50cfed,_0x1ea5d9,_0x57b337={}){const _0x4b68c3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x50cfed(_0x46e775=>('string'==typeof _0x1ea5d9?_0x4b68c3['findByTextCallback'](_0x1ea5d9,_0x57b337):_0x1ea5d9)(_0x46e775)['filter'](_0x8987e4=>!0x1===this['_isInDeletionRange'](_0x8987e4,_0x46e775['item'])),_0x57b337);}['_isInDeletionRange'](_0x2fbfaa,_0x3bdf7b){const _0x5e9e65=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bdf7b,_0x2fbfaa['start']),this['editor']['model']['createPositionAt'](_0x3bdf7b,_0x2fbfaa['end']));for(const _0x579e6c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5e9e65['getIntersection'](_0x579e6c['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x2ef393{['afterInit'](){const _0x57b074=this['editor']['locale'],_0x527623=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x442b86,commandName:_0x7e4154}of ro)this['editor']['plugins']['has'](_0x442b86)&&(_0x527623['enableDefaultAttributesIntegration'](_0x7e4154),_0x527623['registerInlineAttribute'](_0x7e4154));_0x57b074['t'],_0x527623['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x57b074,'FORMAT_FONT_SIZE')),_0x527623['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x57b074,'FORMAT_FONT_FAMILY')),_0x527623['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x57b074,'FORMAT_FONT_COLOR')),_0x527623['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x57b074,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x460927=this['editor'],_0x3a1a8f=_0x460927['locale'];_0x460927['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56d7e8=>{const _0x5024a6=_0x3a1a8f['t'];if('formatInline'!=_0x56d7e8['type'])return;const {data:_0x34869d}=_0x56d7e8;if(null!=_0x34869d){if('fontSize'==_0x34869d['commandName']){const _0x1ca328=_0x34869d['commandParams'][0x0]['value'];if(_0x1ca328){const _0x2c7988=_0x5024a6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1ec770=>_0x1ec770['model']==_0x1ca328)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3a1a8f,'*Set\x20font\x20size:*\x20%0',_0x2c7988)};}return{'type':'format','content':o(_0x3a1a8f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x34869d['commandName']){const _0x1d20c7=_0x34869d['commandParams'][0x0]['value'];return _0x1d20c7?{'type':'format','content':o(_0x3a1a8f,'*Set\x20font\x20family:*\x20%0',_0x1d20c7)}:{'type':'format','content':o(_0x3a1a8f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x34869d['commandName']){const _0x4600ba=_0x34869d['commandParams'][0x0]['value'];if(_0x4600ba){const _0x53a147=_0x47fc59(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2c260e=>_0x2c260e['model']==_0x4600ba);let _0x185c2a=_0x4600ba,_0x3b066e='';return _0x53a147&&(_0x185c2a=_0x53a147['label'],_0x3b066e=_0x5024a6(_0x185c2a)['toLowerCase']()),{'type':'format','content':o(_0x3a1a8f,'*Set\x20font\x20color:*\x20%0',_0x3b066e)['trim'](),'color':{'value':_0x4600ba,'title':_0x3b066e||_0x185c2a}};}return{'type':'format','content':o(_0x3a1a8f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x34869d['commandName']){const _0x3be0a5=_0x34869d['commandParams'][0x0]['value'];if(_0x3be0a5){const _0x5eb25b=_0x47fc59(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4b518f=>_0x4b518f['model']==_0x3be0a5);let _0x170635=_0x3be0a5,_0x41e52c='';return _0x5eb25b&&(_0x170635=_0x5eb25b['label'],_0x41e52c=_0x5024a6(_0x170635)['toLowerCase']()),{'type':'format','content':o(_0x3a1a8f,'*Set\x20font\x20background\x20color:*\x20%0',_0x41e52c)['trim'](),'color':{'value':_0x3be0a5,'title':_0x41e52c||_0x170635}};}return{'type':'format','content':o(_0x3a1a8f,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x2ef393{['afterInit'](){const _0xcea53=this['editor'],_0x1b6a54=_0xcea53['plugins']['get']('TrackChangesEditing'),_0x3db8b1=_0xcea53['commands']['get']('copyFormat'),_0x4de979=_0xcea53['commands']['get']('pasteFormat');_0x3db8b1&&_0x4de979&&(_0x1b6a54['enableDefaultAttributesIntegration']('pasteFormat'),_0x1b6a54['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x389678=this['editor'],_0x3f86af=_0x389678['locale'];_0x389678['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e05e4=>{if('formatBlock'!=_0x5e05e4['type']&&'formatInline'!=_0x5e05e4['type'])return;const {data:_0x1c6441}=_0x5e05e4;if(_0x1c6441&&'pasteFormat'===_0x1c6441['commandName']){const _0x556529=[],_0x4ae719=_0x1c6441['commandParams'][0x0];for(const [_0x16fcfa,_0x4faec1]of Object['entries'](_0x4ae719))_0x556529['push'](so(_0x389678,_0x16fcfa,_0x4faec1));return _0x556529['length']?{'type':'format','content':o(_0x3f86af,'*Set\x20format\x20to:*\x20%0',_0x556529['join'](',\x20'))}:{'type':'format','content':o(_0x3f86af,'*Remove\x20all\x20formatting*')};}});}}function so(_0xa7b669,_0x43df65,_0x530e2d){const _0x2f128f=_0xa7b669['locale']['t'],_0x489853=_0x43df65['split'](/(?=[A-Z])/)['join']('\x20'),_0x4668db=_0x2f128f(_0x489853['charAt'](0x0)['toUpperCase']()+_0x489853['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x530e2d)return _0x4668db;if('fontColor'===_0x43df65||'fontBackgroundColor'===_0x43df65){const _0x33e87c=_0x47fc59(_0xa7b669['config']['get']('fontColor.colors'))['find'](_0x37a890=>_0x37a890['model']==_0x530e2d);return _0x4668db+'\x20('+(_0x33e87c?_0x2f128f(_0x33e87c['label'])['toLowerCase']():_0x530e2d)+')';}if('fontSize'===_0x43df65&&isNaN(parseFloat(_0x530e2d))){const _0x14a4fa=_0xa7b669['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xa7b669['config']['get']('fontSize.options'))['find'](_0x4741de=>_0x4741de['model']==_0x530e2d);return _0x4668db+'\x20('+(_0x14a4fa?_0x2f128f(_0x14a4fa['title'])['toLowerCase']():_0x530e2d)+')';}return _0x4668db+'\x20('+_0x530e2d+')';}class Y extends _0x2ef393{['_headingOptions'];['afterInit'](){const _0x528c52=this['editor'];if(!_0x528c52['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x528c52['config']['get']('heading.options');const _0x5b3e3d=_0x528c52['locale'],_0x2de637=_0x528c52['plugins']['get']('TrackChangesEditing');_0x2de637['enableDefaultAttributesIntegration']('heading');for(const _0x2ff4e6 of this['_headingOptions'])'paragraph'!=_0x2ff4e6['model']&&_0x2de637['descriptionFactory']['registerElementLabel'](_0x2ff4e6['model'],_0x4a118b=>{const _0x110da5=this['_getHeadingLevel'](_0x2ff4e6['model']);return null!==_0x110da5?_0xc04bd9(_0x4a118b,_0x110da5):_0x175d56(_0x4a118b,_0x2ff4e6['title']);});function _0xc04bd9(_0x5c1817,_0x1cfd2a){return o(_0x5b3e3d,'ELEMENT_HEADING',[_0x5c1817,_0x1cfd2a]);}function _0x175d56(_0x23cccf,_0x201c33){return o(_0x5b3e3d,'ELEMENT_HEADING_CUSTOM',[_0x23cccf,_0x201c33]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40707d=this['editor'],_0x201853=_0x40707d['locale'];function _0x3da403(_0x5578df,_0x14fed0){return o(_0x201853,'ELEMENT_HEADING_CUSTOM',[_0x5578df,_0x14fed0]);}_0x40707d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48d640=>{if('formatBlock'!=_0x48d640['type'])return;const {data:_0x13275f}=_0x48d640;if(_0x13275f&&'heading'==_0x13275f['commandName']){const _0xab0c4f=_0x13275f['commandParams'][0x0]['value'],_0x782ec1=this['_getHeadingLevel'](_0xab0c4f);if(null!==_0x782ec1)return{'type':'format','content':o(_0x201853,'*Change\x20to:*\x20%0',(_0x264945=0x1,_0x213421=_0x782ec1,o(_0x201853,'ELEMENT_HEADING',[_0x264945,_0x213421])))};const _0x384274=this['_headingOptions']['find'](_0x3a432e=>_0x3a432e['model']===_0xab0c4f)['title'];return{'type':'format','content':o(_0x201853,'*Change\x20to:*\x20%0',_0x3da403(0x1,_0x384274))};}var _0x264945,_0x213421;});}['_getHeadingLevel'](_0x14348d){const _0x57a915=_0x14348d['match'](/^heading(\d+)/);if(_0x57a915)return _0x57a915[0x1];const _0x2da9fb=this['_headingOptions']?.['find'](_0x4a8db0=>_0x4a8db0['model']==_0x14348d);if(_0x2da9fb&&_0x2da9fb['view']){const _0x2d6dc4=_0x2da9fb['view'],_0x498244=(_0x2d6dc4['name']??_0x2d6dc4)['match'](/^h(\d+)/);if(_0x498244)return _0x498244[0x1];}return null;}}class Z extends _0x2ef393{['afterInit'](){const _0x19c26d=this['editor'];if(!_0x19c26d['plugins']['has']('HighlightEditing'))return;const _0x18573b=_0x19c26d['plugins']['get']('TrackChangesEditing'),_0x1fbcde=_0x19c26d['locale'];_0x18573b['enableDefaultAttributesIntegration']('highlight'),_0x18573b['registerInlineAttribute']('highlight'),_0x18573b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1fbcde,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cd028=this['editor'],_0x2a1995=_0x4cd028['locale'];_0x4cd028['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25251d=>{if('formatInline'!=_0x25251d['type'])return;const {data:_0x1ebf5e}=_0x25251d;if(_0x1ebf5e&&'highlight'==_0x1ebf5e['commandName']){const _0x1d945f=_0x2a1995['t'],_0x3f80f9=_0x1ebf5e['commandParams'][0x0]['value'];if(_0x3f80f9){const _0x52721a=_0x4cd028['config']['get']('highlight.options')['find'](_0x4e2171=>_0x4e2171['model']==_0x3f80f9),_0x5cb5a4=_0x1d945f(_0x52721a['title'])['toLowerCase']();return{'type':'format','content':o(_0x2a1995,'*Set\x20highlight:*\x20%0',_0x5cb5a4),'color':{'value':_0x52721a['color'],'title':_0x52721a['title']}};}return{'type':'format','content':o(_0x2a1995,'*Remove\x20highlight*',o(_0x2a1995,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x2ef393{['afterInit'](){const _0x56c5ce=this['editor'];if(!_0x56c5ce['plugins']['has']('HorizontalLineEditing'))return;_0x56c5ce['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x650819=_0x56c5ce['plugins']['get']('TrackChangesEditing'),_0x3326fb=_0x56c5ce['locale'];_0x650819['descriptionFactory']['registerElementLabel']('horizontalLine',_0x443551=>o(_0x3326fb,'ELEMENT_HORIZONTAL_LINE',_0x443551)),_0x56c5ce['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1754db,{writer:_0x1a515a,options:_0x37dd7d})=>{if(!_0x37dd7d['showSuggestionHighlights'])return null;const _0x38fc36=_0x1a515a['createContainerElement']('div'),_0x31b269=_0x1a515a['createEmptyElement']('hr');return _0x1a515a['addClass']('ck-horizontal-line',_0x38fc36),_0x1a515a['insert'](_0x1a515a['createPositionAt'](_0x38fc36,0x0),_0x31b269),_0x38fc36;},'converterPriority':'high'});}}class et extends _0x2ef393{['afterInit'](){const _0x534420=this['editor'];if(!_0x534420['plugins']['has']('HtmlEmbed'))return;const _0x188db8=_0x534420['plugins']['get']('TrackChangesEditing'),_0x1f47a4=_0x534420['locale'];_0x188db8['descriptionFactory']['registerElementLabel']('rawHtml',_0x58dc57=>o(_0x1f47a4,'ELEMENT_HTML_EMBED',_0x58dc57)),_0x188db8['enableDefaultAttributesIntegration']('htmlEmbed'),_0x188db8['registerBlockAttribute']('value'),_0x188db8['descriptionFactory']['registerDescriptionCallback'](_0x1c2750=>{if('attribute'!=_0x1c2750['type'])return;const {data:_0x584624}=_0x1c2750;if(_0x584624&&'value'==_0x584624['key']&&_0x1c2750['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x44fa82=o(_0x1f47a4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1f47a4,'*Change\x20%0\x20content*',_0x44fa82)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbb6985=this['editor'],_0x114574=_0xbb6985['locale'];_0xbb6985['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ebc5c=>{if('formatBlock'!=_0x1ebc5c['type'])return;const {data:_0x587519}=_0x1ebc5c;if(_0x587519&&'htmlEmbed'==_0x587519['commandName']){const _0x277262=o(_0x114574,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x114574,'*Change\x20%0\x20content*',_0x277262)};}});}}class it extends _0x2ef393{['afterInit'](){const _0x61197f=this['editor'];if(!_0x61197f['plugins']['has']('ImageEditing'))return;const _0x56f789=_0x61197f['plugins']['get']('TrackChangesEditing'),_0x20e8d1=_0x61197f['plugins']['get']('ImageUtils'),_0x4ec19c=_0x61197f['locale'];_0x56f789['enableCommand']('insertImage'),_0x56f789['descriptionFactory']['registerElementLabel']('imageBlock',_0xb91ee0=>o(_0x4ec19c,'ELEMENT_IMAGE',_0xb91ee0)),_0x56f789['descriptionFactory']['registerElementLabel']('imageInline',_0x24429c=>o(_0x4ec19c,'ELEMENT_INLINE_IMAGE',_0x24429c)),_0x56f789['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4ec19c,'ELEMENT_CAPTION')),_0x61197f['plugins']['has']('ImageUploadEditing')&&_0x56f789['enableCommand']('uploadImage'),_0x61197f['plugins']['has']('ImageBlockEditing')&&_0x61197f['plugins']['has']('ImageInlineEditing')&&(_0x56f789['enableCommand']('imageTypeInline',(_0xfb22de,_0x85064c)=>{const _0x165f2c=_0x20e8d1['getClosestSelectedImageElement'](_0x61197f['model']['document']['selection']);_0x61197f['model']['change'](()=>{_0x56f789['markBlockFormat'](_0x165f2c,{'commandName':'imageTypeInline','commandParams':[_0x85064c]},[],'convertBlockImageToInline');});}),_0x56f789['enableCommand']('imageTypeBlock',(_0xfc1cb5,_0x52ca8e)=>{_0x61197f['model']['change'](_0x2d5014=>{let _0x21bb69=_0x20e8d1['getClosestSelectedImageElement'](_0x61197f['model']['document']['selection']),_0x2bcdbb=_0x2d5014['createRangeOn'](_0x21bb69);const _0x329c65=_0x248e3d['fromPosition'](_0x2bcdbb['start'],'toPrevious'),_0x2feee2=_0x248e3d['fromPosition'](_0x2bcdbb['end'],'toNext');_0x56f789['forceDefaultExecution'](()=>_0xfc1cb5(_0x52ca8e)),_0x21bb69=_0x20e8d1['getClosestSelectedImageElement'](_0x61197f['model']['document']['selection']),_0x2bcdbb=_0x2d5014['createRangeOn'](_0x21bb69);const _0x1b8423=_0x2d5014['createRange'](_0x329c65,_0x2feee2);_0x329c65['detach'](),_0x2feee2['detach'](),_0x56f789['markBlockFormat'](_0x21bb69,{'commandName':'imageTypeInline','commandParams':[_0x52ca8e]},[],'convertInlineImageToBlock'),_0x1b8423['start']['isBefore'](_0x2bcdbb['start'])&&_0x56f789['markInsertion'](_0x2d5014['createRange'](_0x1b8423['start'],_0x2bcdbb['start']),'convertInlineImageToBlock'),_0x2bcdbb['end']['isBefore'](_0x1b8423['end'])&&_0x56f789['markInsertion'](_0x2d5014['createRange'](_0x2bcdbb['end'],_0x1b8423['end']),'convertInlineImageToBlock');});}),_0x56f789['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x56f789['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x56f789['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x56f789['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x56f789['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x56f789['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3e0b40])=>{const _0x3c57c8=_0x56f789['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x7cc466=_0x3e0b40['start'],_0x8e1cb6=_0x3e0b40['end'];const _0x2f5950=_0x61197f['model']['schema']['getNearestSelectionRange'](_0x7cc466,'backward'),_0x29ea27=_0x61197f['model']['schema']['getNearestSelectionRange'](_0x8e1cb6,'forward');_0x2f5950['isCollapsed']&&(_0x7cc466=_0x2f5950['start']),_0x29ea27['isCollapsed']&&(_0x8e1cb6=_0x29ea27['end']),_0x3c57c8([_0x61197f['model']['createRange'](_0x7cc466,_0x8e1cb6)]);}),_0x56f789['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4c535c),_0x56f789['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4c535c)),_0x61197f['plugins']['has']('ImageCaptionEditing')&&(_0x56f789['enableCommand']('toggleImageCaption',(_0x39fc14,_0x18d259)=>{const _0x3ad092=_0x61197f['plugins']['get']('ImageCaptionUtils');let _0x2a8c55=_0x20e8d1['getClosestSelectedImageElement'](_0x61197f['model']['document']['selection']),_0x566423=_0x3ad092['getCaptionFromImageModelElement'](_0x2a8c55);_0x61197f['model']['change'](()=>{if(_0x566423)return void _0x56f789['markDeletion'](_0x61197f['model']['createRangeOn'](_0x566423));const _0x939bdc=_0x20e8d1['isBlockImage'](_0x2a8c55);_0x39fc14(_0x18d259),_0x2a8c55=_0x20e8d1['getClosestSelectedImageElement'](_0x61197f['model']['document']['selection']),_0x566423=_0x3ad092['getCaptionFromImageModelElement'](_0x2a8c55),_0x56f789['markInsertion'](_0x61197f['model']['createRangeOn'](_0x566423),_0x939bdc?null:'imageCaption');});}),_0x56f789['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4c535c));const _0x5edc71=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1efd0c(_0x2f0e4a,_0x3f94e6){const _0x3e1f3f=_0x5edc71['findIndex'](({type:_0x555a56,subType:_0x31a1f2})=>_0x2f0e4a['type']==_0x555a56&&_0x2f0e4a['subType']==_0x31a1f2),_0x5203d7=_0x5edc71['findIndex'](({type:_0x39ef3f,subType:_0x2f6810})=>_0x3f94e6['type']==_0x39ef3f&&_0x3f94e6['subType']==_0x2f6810);if(_0x3e1f3f<0x0||_0x5203d7<0x0)return!0x1;const _0x44016a=_0x2f0e4a['getFirstRange'](),_0x40438e=_0x3f94e6['getFirstRange']();if((0x0==_0x3e1f3f||0x1==_0x3e1f3f)&&0x2==_0x5203d7&&_0x44016a['isIntersecting'](_0x40438e))return!0x0;if(0x2==_0x3e1f3f&&0x3==_0x5203d7){const _0x17fad8=_0x56f789['_findSuggestions'](_0x44016a,'insertion')['filter'](({suggestion:_0x42a357,meta:_0x4387c0})=>_0x4387c0['isOwn']&&'convertInlineImageToBlock'==_0x42a357['subType']);if(_0x17fad8['length']>0x1&&_0x40438e['end']['isEqual'](_0x44016a['start']))return!0x0;if(0x1==_0x17fad8['length']&&(_0x44016a['start']['isEqual'](_0x40438e['end'])||_0x44016a['end']['isEqual'](_0x40438e['start'])))return!0x0;}if(0x3==_0x3e1f3f&&0x3==_0x5203d7&&_0x44016a['start']['isBefore'](_0x40438e['start'])){const _0x5d6a7c=_0x44016a['end']['nodeAfter'],_0x5662dd=_0x40438e['start']['nodeBefore'];return _0x20e8d1['isBlockImage'](_0x5d6a7c)&&_0x5d6a7c===_0x5662dd;}return!0x1;}function _0x4c535c(_0x3bb849,_0x1419f8){return _0x1efd0c(_0x3bb849,_0x1419f8)?[_0x3bb849,_0x1419f8]:_0x1efd0c(_0x1419f8,_0x3bb849)?[_0x1419f8,_0x3bb849]:null;}_0x61197f['plugins']['has']('ImageResize')&&(_0x56f789['enableDefaultAttributesIntegration']('resizeImage'),_0x56f789['registerBlockAttribute']('resizedWidth'),_0x56f789['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4ec19c,'FORMAT_IMAGE_SIZE'))),_0x61197f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x56f789['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x56f789['registerBlockAttribute']('alt')),_0x56f789['descriptionFactory']['registerDescriptionCallback'](_0x20888e=>{if(!!_0x5edc71['find'](({type:_0x55d955,subType:_0x41a634})=>_0x20888e['type']==_0x55d955&&_0x20888e['subType']==_0x41a634))return _0x20888e['previous']?{}:void 0x0;}),_0x56f789['descriptionFactory']['registerDescriptionCallback'](_0x50ed6d=>{if('insertion'==_0x50ed6d['type']||'deletion'==_0x50ed6d['type']){const _0x296767=_0x50ed6d['getContainedElement']();if(_0x296767&&_0x296767['is']('element','caption'))return{'type':'insertion'==_0x50ed6d['type']?'addObject':'removeObject','element':_0x296767,'quantity':0x1};}}),_0x56f789['descriptionFactory']['registerDescriptionCallback'](_0x4f4762=>'formatBlock'==_0x4f4762['type']&&'convertInlineImageToBlock'==_0x4f4762['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4f4762['type']&&'convertBlockImageToInline'==_0x4f4762['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x56f789['descriptionFactory']['registerDescriptionCallback'](_0x44ebd8=>{if('attribute'!=_0x44ebd8['type'])return;const {data:_0x2cde6e}=_0x44ebd8;if(!_0x2cde6e||'alt'!=_0x2cde6e['key'])return;const _0x3f0a87=_0x2cde6e['newValue'];return _0x3f0a87?{'type':'format','content':o(_0x4ec19c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3f0a87+'\x22')}:{'type':'format','content':o(_0x4ec19c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43afd2=this['editor'],_0x3a7451=_0x43afd2['locale'];_0x43afd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47f95f=>{if('formatBlock'!=_0x47f95f['type']&&'formatInline'!=_0x47f95f['type'])return;const {data:_0x2d20ab}=_0x47f95f;if(_0x2d20ab){if('imageTextAlternative'==_0x2d20ab['commandName']){const _0x14946b=_0x2d20ab['commandParams'][0x0]['newValue'];return _0x14946b?{'type':'format','content':o(_0x3a7451,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x14946b+'\x22')}:{'type':'format','content':o(_0x3a7451,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2d20ab['commandName']){const _0x5cdb3c=_0x2d20ab['commandParams'][0x0]['width'];return _0x5cdb3c?{'type':'format','content':o(_0x3a7451,'*Set\x20image\x20width:*\x20%0',_0x5cdb3c)}:{'type':'format','content':o(_0x3a7451,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2ef393{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x20431b=this['editor']['locale'],_0x1d899f=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d899f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1d899f['registerBlockAttribute']('src'),_0x1d899f['descriptionFactory']['registerDescriptionCallback'](_0x54fb84=>{if('attribute'!=_0x54fb84['type'])return;const {data:_0x24b5c3}=_0x54fb84;return _0x24b5c3&&'src'==_0x24b5c3['key']?_0x24b5c3['newValue']&&_0x24b5c3['oldValue']?{'type':'format','content':o(_0x20431b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x13ca3a=this['editor']['plugins']['get']('TrackChangesEditing');_0x13ca3a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x13ca3a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13ca3a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x13ca3a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31f172=this['editor'],_0x429b82=_0x31f172['locale'];_0x31f172['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x282a4a=>{if('formatBlock'!=_0x282a4a['type']&&'formatInline'!=_0x282a4a['type'])return;const {data:_0x2d611b}=_0x282a4a;if(!_0x2d611b||'replaceImageSource'!=_0x2d611b['commandName'])return;return{'type':'format','content':o(_0x429b82,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x2ef393{['afterInit'](){const _0x2b6e93=this['editor'];if(!_0x2b6e93['plugins']['has']('ImageStyleEditing'))return;const _0x28d950=_0x2b6e93['plugins']['get']('TrackChangesEditing'),_0x3e47be=_0x2b6e93['plugins']['get']('ImageUtils'),_0x49aa62={};_0x28d950['enableCommand']('imageStyle',(_0x16e28f,_0x201146)=>{const _0x19bbef=_0x2b6e93['plugins']['get']('Users')['me'],_0x21531b=_0x2b6e93['commands']['get']('imageStyle');let _0x30b29d=_0x3e47be['getClosestSelectedImageElement'](_0x2b6e93['model']['document']['selection']),_0x179977=_0x2b6e93['model']['createRangeOn'](_0x30b29d),_0x19888b=_0x21531b['value'];if(_0x19888b==_0x201146['value'])return;const _0x51fe25={'commandName':'imageStyle','commandParams':[_0x201146],'formatGroupId':_0x37bf61()};_0x2b6e93['model']['change'](()=>{if(_0x28d950['getSuggestions']()['filter'](_0x3b26a2=>_0x3b26a2['isInContent']&&_0x19bbef==_0x3b26a2['author']&&('formatBlock'==_0x3b26a2['type']||'formatInline'==_0x3b26a2['type'])&&('imageStylePreApply'==_0x3b26a2['subType']||'imageStylePostApply'==_0x3b26a2['subType'])&&_0x3b26a2['getFirstRange']()['isEqual'](_0x179977))['forEach'](_0x737300=>_0x28d950['discardSuggestion'](_0x737300['head'])),_0x30b29d=_0x3e47be['getClosestSelectedImageElement'](_0x2b6e93['model']['document']['selection']),_0x179977=_0x2b6e93['model']['createRangeOn'](_0x30b29d),_0x21531b['refresh'](),_0x2b6e93['commands']['get']('imageTypeInline')['refresh'](),_0x2b6e93['commands']['get']('imageTypeBlock')['refresh'](),_0x19888b=_0x21531b['value'],_0x19888b!=_0x201146['value'])return _0x3e47be['isInlineImage'](_0x30b29d)&&_0x21531b['shouldConvertImageType'](_0x201146['value'],_0x30b29d)?(_0x16e28f({..._0x201146,'setImageSizes':!0x1}),_0x30b29d=_0x3e47be['getClosestSelectedImageElement'](_0x2b6e93['model']['document']['selection']),void _0x28d950['markBlockFormat'](_0x30b29d,{..._0x51fe25,'commandReversedParams':[{'value':_0x19888b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3e47be['isBlockImage'](_0x30b29d)?_0x28d950['markBlockFormat'](_0x30b29d,_0x51fe25,[],'imageStylePostApply'):_0x28d950['markInlineFormat'](_0x179977,_0x51fe25,'imageStylePostApply'));});});for(const _0x4939f2 of _0x2b6e93['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x49aa62[_0x4939f2['name']]=_0x4939f2['title']['toLowerCase']();_0x28d950['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x28d950['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x28d950['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x28d950['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3421c7])=>{_0x3e47be['setImageNaturalSizeAttributes'](_0x3421c7['getContainedElement']());}),_0x28d950['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3138dc,_0x305e25)=>{_0x28d950['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3138dc,{'commandName':_0x305e25['commandName'],'commandParams':_0x305e25['commandReversedParams']});}),_0x28d950['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x19ed7d,_0x294c7e){if(_0x568092(_0x19ed7d,_0x294c7e))return[_0x19ed7d,_0x294c7e];if(_0x568092(_0x294c7e,_0x19ed7d))return[_0x294c7e,_0x19ed7d];return null;});const _0x5b9bed=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x568092(_0x446a0,_0x36b8bd){const _0x3f2667=_0x5b9bed['findIndex'](({type:_0xef1065,subType:_0x4bbf9e})=>_0x446a0['type']==_0xef1065&&_0x446a0['subType']==_0x4bbf9e),_0x53f3d9=_0x5b9bed['findIndex'](({type:_0xe1897a,subType:_0x3a2996})=>_0x36b8bd['type']==_0xe1897a&&_0x36b8bd['subType']==_0x3a2996);if(_0x3f2667<0x0||_0x53f3d9<0x0)return!0x1;const _0x568528=_0x446a0['getFirstRange'](),_0x226eec=_0x36b8bd['getFirstRange']();if((0x0==_0x3f2667||0x1==_0x3f2667)&&0x2==_0x53f3d9&&_0x568528['isIntersecting'](_0x226eec))return!0x0;if(0x2==_0x3f2667&&0x3==_0x53f3d9){const _0x27c00a=_0x28d950['_findSuggestions'](_0x568528,'insertion')['filter'](({suggestion:_0x57e0a3,meta:_0x41d1c8})=>_0x41d1c8['isOwn']&&'convertInlineImageToBlock'==_0x57e0a3['subType']);if(_0x27c00a['length']>0x1&&_0x226eec['end']['isEqual'](_0x568528['start']))return!0x0;if(0x1==_0x27c00a['length']&&(_0x568528['start']['isEqual'](_0x226eec['end'])||_0x568528['end']['isEqual'](_0x226eec['start'])))return!0x0;}if(0x3==_0x3f2667&&0x3==_0x53f3d9&&_0x568528['start']['isBefore'](_0x226eec['start'])){const _0x1f8816=_0x568528['end']['nodeAfter'],_0x5164c6=_0x226eec['start']['nodeBefore'];return _0x3e47be['isBlockImage'](_0x1f8816)&&_0x1f8816===_0x5164c6;}return!0x1;}_0x2b6e93['model']['document']['registerPostFixer'](()=>{let _0x564f80=!0x1;const _0x4e77ec=Array['from'](_0x2b6e93['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3175e2,data:_0x2276a1}of _0x4e77ec){const {group:_0x408cb3,type:_0x4832ab,subType:_0x5a83ab,id:_0xc75337}=_0x28d950['_splitMarkerName'](_0x3175e2);if('suggestion'==_0x408cb3&&_0x28d950['hasSuggestion'](_0xc75337)){if('formatBlock'==_0x4832ab&&('imageStylePreApply'==_0x5a83ab||'imageStylePostApply'==_0x5a83ab)){const _0x58a05c=_0x28d950['getSuggestion'](_0xc75337);if(_0x2276a1['newRange']){const _0x22ebf5=_0x58a05c['getFirstRange']()['getContainedElement']();if(_0x3e47be['isBlockImage'](_0x22ebf5))continue;_0x28d950['discardSuggestion'](_0x58a05c),_0x564f80=!0x0;}}if('insertion'==_0x4832ab&&'imageCaption'==_0x5a83ab&&!_0x2276a1['newRange']){const _0x4ce720=_0x28d950['getSuggestion'](_0xc75337);_0x4ce720['next']&&_0x4ce720['next']['isInContent']&&(_0x28d950['discardSuggestion'](_0x4ce720['next']),_0x564f80=!0x0);}}}return _0x564f80;}),this['_registerLegacyDescription'](_0x49aa62);}['_registerLegacyDescription'](_0x275958){const _0x2be664=this['editor'],_0x2d3ddb=_0x2be664['locale'];_0x2be664['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36518a=>{if('formatBlock'!=_0x36518a['type']&&'formatInline'!=_0x36518a['type'])return;const {data:_0x37d4fc}=_0x36518a;if(!_0x37d4fc||'imageStyle'!=_0x37d4fc['commandName'])return;const _0x5042cd=_0x37d4fc['commandParams'][0x0]['value'];return _0x3a677a('side'===_0x5042cd?o(_0x2d3ddb,'FORMAT_SIDE_IMAGE'):_0x275958[_0x5042cd]||_0x5042cd);function _0x3a677a(_0x1a3fbb){return{'type':'format','content':o(_0x2d3ddb,'*Format:*\x20%0',_0x1a3fbb)};}});}}class ot extends _0x2ef393{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x886746){super(_0x886746),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x466371=this['editor'],_0x13f94a=_0x466371['commands']['get']('importWord'),_0x2181e8=_0x466371['commands']['get']('trackChanges');_0x13f94a&&(_0x13f94a['on']('execute',(_0x5b856f,[,_0x2c636f])=>{this['_trackChangesValueDuringImport']=_0x2181e8['value'],_0x2c636f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x13f94a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x13f94a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2181e8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x466371['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x44e75f,_0xf2fe6){const {suggestions:_0x16ff12}=_0xf2fe6,_0x44a2be=this['editor']['commands']['get']('trackChanges'),_0x5df7da=_0x44a2be['value'];this['_trackChangesValueDuringImport']!==_0x5df7da&&(_0x44a2be['execute'](),this['_trackChangesExecuted']=!0x0),_0x16ff12&&_0x16ff12['forEach'](({id:_0x50a8cd,type:_0x23d6ad,author:_0x4754f7,created_at:_0x2e5cbb})=>{const _0x420de6={'id':_0x50a8cd,'type':_0x23d6ad,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4754f7,'createdAt':_0x2e5cbb?new Date(_0x2e5cbb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x420de6);});}}class rt extends _0x2ef393{['afterInit'](){const _0x1e27c4=this['editor'],_0x6c281e=_0x1e27c4['plugins']['get']('TrackChangesEditing');if(_0x1e27c4['plugins']['has']('IndentEditing')&&(_0x6c281e['enableCommand']('indent'),_0x6c281e['enableCommand']('outdent')),_0x1e27c4['plugins']['has']('IndentBlock')){for(const _0x3f5920 of['indentBlock','outdentBlock'])_0x6c281e['enableDefaultAttributesIntegration'](_0x3f5920);}const _0x206dc2=_0x1e27c4['locale'];_0x6c281e['registerBlockAttribute']('blockIndent'),_0x6c281e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x206dc2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b940e=this['editor'],_0x1a4f99=_0x4b940e['locale'],_0x2d4734=_0x4b940e['plugins']['get']('TrackChangesEditing');_0x2d4734['descriptionFactory']['registerDescriptionCallback'](_0x1e740e=>{if('formatBlock'!=_0x1e740e['type'])return;const {data:_0x3efc7c}=_0x1e740e;if(!_0x3efc7c)return;if('indentBlock'!=_0x3efc7c['commandName']&&'outdentBlock'!=_0x3efc7c['commandName'])return;const _0x337b33=_0x1e740e['getItems']()[0x0],_0x2b1251=_0x2d4734['descriptionFactory']['getItemLabel'](_0x337b33);return'indentBlock'==_0x3efc7c['commandName']?{'type':'format','content':o(_0x1a4f99,'*Indent:*\x20%0',_0x2b1251)}:'outdentBlock'==_0x3efc7c['commandName']?{'type':'format','content':o(_0x1a4f99,'*Outdent:*\x20%0',_0x2b1251)}:void 0x0;});}}class at extends _0x2ef393{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x2ef393{['afterInit'](){const _0x46e459=this['editor'];if(!_0x46e459['plugins']['has']('LinkEditing'))return;const _0x1703fa=_0x46e459['plugins']['get']('TrackChangesEditing'),_0xa668c4=_0x46e459['commands']['get']('link');_0x1703fa['enableDefaultAttributesIntegration']('link'),_0x1703fa['enableDefaultAttributesIntegration']('unlink'),_0x1703fa['registerInlineAttribute']('linkHref');for(const _0x233882 of _0xa668c4['manualDecorators'])_0x1703fa['registerInlineAttribute'](_0x233882['id']),_0x1703fa['descriptionFactory']['registerAttributeLabel'](_0x233882['id'],'link\x20('+_0x233882['label']['toLowerCase']()+')');_0x1703fa['descriptionFactory']['registerDescriptionCallback'](_0xcb1bc9=>{if('attribute'!=_0xcb1bc9['type'])return;const {data:_0x479cfc}=_0xcb1bc9;if(!_0x479cfc||'linkHref'!=_0x479cfc['key'])return;const _0x2ed49b=_0x479cfc['newValue'],_0x2f4688=_0x46e459['locale'];return{'type':'format','content':null==_0x2ed49b?o(_0x2f4688,'*Remove\x20link*'):o(_0x2f4688,'*Set\x20link:*\x20%0','\x22'+_0x2ed49b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x509af2=this['editor'],_0x18e04e=_0x509af2['locale'];_0x509af2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19a834=>{if('formatInline'!=_0x19a834['type'])return;const {data:_0x1a9e95}=_0x19a834;if(_0x1a9e95){if('link'==_0x1a9e95['commandName']){const _0x1453b2=_0x1a9e95['commandParams'][0x0];return{'type':'format','content':o(_0x18e04e,'*Set\x20link:*\x20%0','\x22'+_0x1453b2+'\x22')};}return'unlink'==_0x1a9e95['commandName']?{'type':'format','content':o(_0x18e04e,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x2ef393{['afterInit'](){const _0x3ea8f4=this['editor'],_0x4f4157=_0x3ea8f4['locale'];if(!_0x3ea8f4['plugins']['has']('LegacyListEditing'))return;const _0x294168=_0x3ea8f4['plugins']['get']('TrackChangesEditing'),_0x58ef3f=_0x3ea8f4['plugins']['has']('LegacyTodoListEditing');function _0x3d6ee9(_0xa5de77){return()=>{const _0x504852=_0x3ea8f4['model']['document']['selection'],_0xa71cf4=_0x3ea8f4['commands']['get'](_0xa5de77);if(_0xa71cf4['value'])return void _0x3ea8f4['execute']('paragraph',{});const _0x19efab=_0xa5de77['slice'](0x0,-0x4),_0x2be068=function(_0xb7de0b,_0x4068c2,_0x3d4977){let _0x115dd4=Array['from'](_0xb7de0b)['filter'](_0x34b101=>function(_0x5007fe,_0x491e15){return _0x491e15['checkChild'](_0x5007fe['parent'],'listItem')&&!_0x491e15['isObject'](_0x5007fe);}(_0x34b101,_0x3d4977));_0x115dd4=_0x115dd4['filter'](_0x1e77cb=>!_0x1e77cb['is']('element','listItem')||_0x1e77cb['getAttribute']('listType')!=_0x4068c2);const _0x315cb5=new Set();for(const _0x94b9bf of _0x115dd4)_0x94b9bf['is']('element','listItem')?_0x315cb5['add'](me(_0x94b9bf)):_0x315cb5['add'](_0x94b9bf);return Array['from'](_0x315cb5);}(_0x504852['getSelectedBlocks'](),_0x19efab,_0x3ea8f4['model']['schema']);_0x3ea8f4['model']['change'](()=>{for(const _0x4eacb4 of _0x2be068)_0x294168['markBlockFormat'](_0x4eacb4,{'commandName':_0xa5de77,'commandParams':[{'forceValue':!_0xa71cf4['value']}],'formatGroupId':'blockName'},fe(_0x4eacb4));});};}function _0x350380(_0x395501){return()=>{const _0x2859f2=function(_0x14be28){let _0x50d94e=Array['from'](_0x14be28);const _0x72c8af=_0x50d94e['findIndex'](_0x45e103=>'listItem'!=_0x45e103['name']);return _0x72c8af>-0x1&&(_0x50d94e=_0x50d94e['slice'](0x0,_0x72c8af)),_0x50d94e;}(_0x3ea8f4['model']['document']['selection']['getSelectedBlocks']()),_0x1c4875=_0x3ea8f4['model']['createRange'](_0x3ea8f4['model']['createPositionAt'](_0x2859f2[0x0],'before'),_0x3ea8f4['model']['createPositionAt'](_0x2859f2[_0x2859f2['length']-0x1],'end'));_0x3ea8f4['model']['change'](()=>{_0x294168['markBlockFormat'](_0x1c4875,{'commandName':_0x395501,'commandParams':[],'formatGroupId':'listIndent'},function(_0x20a398){const _0x30e87a=new Set();for(const _0x5201a8 of _0x20a398){let _0x15a3a3=_0x5201a8['nextSibling'];for(;_0x15a3a3&&_0x15a3a3['getAttribute']('listIndent')>_0x5201a8['getAttribute']('listIndent');)_0x30e87a['add'](_0x15a3a3),_0x15a3a3=_0x15a3a3['nextSibling'];}return Array['from'](_0x30e87a);}(_0x2859f2));});};}_0x294168['enableCommand']('numberedList',_0x3d6ee9('numberedList')),_0x294168['enableCommand']('bulletedList',_0x3d6ee9('bulletedList')),_0x58ef3f&&_0x294168['enableCommand']('todoList',_0x3d6ee9('todoList')),_0x294168['enableCommand']('indentList',_0x350380('indentList')),_0x294168['enableCommand']('outdentList',_0x350380('outdentList')),_0x58ef3f&&_0x294168['enableCommand']('checkTodoList',()=>{const _0x2bd03d=_0x3ea8f4['commands']['get']('checkTodoList'),_0x20680e=Array['from'](_0x2bd03d['_selectedElements']);_0x20680e['filter'](_0x5e7e30=>_0x5e7e30['getAttribute']('todoListChecked')!=_0x2bd03d['value']),_0x3ea8f4['model']['change'](()=>{for(const _0x3f565f of _0x20680e)_0x294168['markBlockFormat'](_0x3f565f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2bd03d['value']}]});});}),_0x294168['descriptionFactory']['registerElementLabel']('listItem',_0x21e5ce=>o(_0x4f4157,'ELEMENT_LIST_ITEM',_0x21e5ce)),_0x294168['descriptionFactory']['registerDescriptionCallback'](_0xc44f59=>{if('formatBlock'!=_0xc44f59['type']&&'formatInline'!=_0xc44f59['type'])return;const {data:_0x4c5fad}=_0xc44f59;if(_0x4c5fad){if('numberedList'==_0x4c5fad['commandName']||'bulletedList'==_0x4c5fad['commandName']||'todoList'==_0x4c5fad['commandName'])switch(_0x4c5fad['commandName']['replace']('List','')){case'bulleted':return _0x5ac82b(o(_0x4f4157,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ac82b(o(_0x4f4157,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ac82b(o(_0x4f4157,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4c5fad['commandName'])return{'type':'format','content':o(_0x4f4157,'*Indent:*\x20%0',o(_0x4f4157,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4c5fad['commandName'])return{'type':'format','content':o(_0x4f4157,'*Outdent:*\x20%0',o(_0x4f4157,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4c5fad['commandName'])return _0x4c5fad['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f4157,'*Check\x20item*')}:{'type':'format','content':o(_0x4f4157,'*Uncheck\x20item*')};}function _0x5ac82b(_0x30c974){return{'type':'format','content':o(_0x4f4157,'*Change\x20to:*\x20%0',_0x30c974)};}});}}function me(_0x3285f8){const _0x57fa5b=_0x3285f8['getAttribute']('listIndent');if(0x0==_0x57fa5b)return _0x3285f8;let _0x260772=_0x3285f8;for(;_0x3285f8['previousSibling']&&_0x3285f8['previousSibling']['is']('element','listItem');){const _0xf6d84a=_0x3285f8['previousSibling']['getAttribute']('listIndent');if(_0xf6d84a==_0x57fa5b)_0x260772=_0x3285f8['previousSibling'];else{if(_0xf6d84a<_0x57fa5b)break;}_0x3285f8=_0x3285f8['previousSibling'];}return _0x260772;}function fe(_0x1289f8){const _0x38cac7=[];if(_0x1289f8['is']('element','listItem')&&_0x1289f8['getAttribute']('listIndent')>0x0){let _0x9f3708=_0x1289f8['nextSibling'];for(;_0x9f3708&&'listItem'==_0x9f3708['name']&&_0x9f3708['getAttribute']('listIndent')==_0x1289f8['getAttribute']('listIndent');)_0x38cac7['push'](_0x9f3708),_0x9f3708=_0x9f3708['nextSibling'];}return _0x38cac7;}class K extends _0x2ef393{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2afc41=this['editor']['config']['get']('list.properties'),_0x2be88a=this['editor']['plugins']['get']('TrackChangesEditing');_0x2afc41['styles']&&_0x2be88a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2afc41['reversed']&&_0x2be88a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2afc41['startIndex']&&_0x2be88a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2be88a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xece2b8,_0x4d409b={}){const _0x4a0ae0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52a70d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4a0ae0['markMultiRangeBlockFormat'](_0x52a70d,{'commandName':'listStyle','commandParams':[{'type':_0x4d409b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2fb374,_0x2e4e8b={}){const _0x257f69=this['editor']['plugins']['get']('TrackChangesEditing'),_0x525b88=this['_getSuggestionBlocks'](_0x88bdff=>_0x88bdff['is']('element','listItem')&&'numbered'===_0x88bdff['getAttribute']('listType'));if(_0x525b88['length']<0x1)return;const _0x3229c2=_0x525b88['map'](_0x4d6663=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d6663,'before'),this['editor']['model']['createPositionAt'](_0x4d6663,0x0)));this['editor']['model']['change'](()=>{_0x257f69['markMultiRangeBlockFormat'](_0x3229c2,{'commandName':'listReversed','commandParams':[{'reversed':_0x2e4e8b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4d889d,_0x287dd0={}){const _0x53d6c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ab47b=this['_getSuggestionBlocks'](_0x98771e=>_0x98771e['is']('element','listItem')&&'numbered'===_0x98771e['getAttribute']('listType'));if(_0x2ab47b['length']<0x1)return;const _0x34af4b=_0x2ab47b['map'](_0x29901a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x29901a,'before'),this['editor']['model']['createPositionAt'](_0x29901a,0x0)));this['editor']['model']['change'](()=>{_0x53d6c9['markMultiRangeBlockFormat'](_0x34af4b,{'commandName':'listStart','commandParams':[{'startIndex':_0x287dd0['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x40f969){if('formatBlock'!=_0x40f969['type']&&'formatInline'!=_0x40f969['type'])return;const _0x51d227=this['editor']['locale'],{data:_0x1e90e1}=_0x40f969;if(!_0x1e90e1)return;let _0x49c716,_0x54dd7b;switch(_0x1e90e1['commandName']){case'listStyle':_0x49c716='*Change\x20to:*\x20%0',_0x54dd7b={'type':'format','content':o(_0x51d227,_0x49c716,o(_0x51d227,this['_getTranslationKeyForListStyle'](_0x1e90e1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x49c716=_0x1e90e1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x54dd7b={'type':'format','content':o(_0x51d227,_0x49c716)};break;case'listStart':_0x49c716='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x54dd7b={'type':'format','content':o(_0x51d227,_0x49c716,_0x1e90e1['commandParams'][0x0]['startIndex'])};}return _0x54dd7b;}['_getSuggestionBlocksForListStyle'](){const _0x59782f=this['editor']['plugins']['get']('LegacyListUtils');let _0x318ba4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x318ba4[0x0]?.['is']('element','listItem')&&_0x318ba4['unshift'](..._0x59782f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x318ba4[_0x318ba4['length']-0x1]?.['is']('element','listItem')&&_0x318ba4['push'](..._0x59782f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x318ba4=[...new Set(_0x318ba4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x318ba4=_0x318ba4['filter'](_0x961c0e=>_0x961c0e['is']('element','listItem'))),_0x318ba4;}['_getSuggestionBlocks'](_0x3e7933){const _0x1eddbe=this['editor']['plugins']['get']('LegacyListUtils');let _0x5c0274=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3e7933)['map'](_0x338fbe=>{const _0xfc19aa=this['editor']['model']['createPositionAt'](_0x338fbe,0x0);return[..._0x1eddbe['getSiblingNodes'](_0xfc19aa,'backward'),..._0x1eddbe['getSiblingNodes'](_0xfc19aa,'forward')];})['flat']();return _0x5c0274=[...new Set(_0x5c0274)],_0x5c0274;}['_getTranslationKeyForListStyle'](_0x1ff2fc){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1ff2fc)||'default')['toUpperCase']()+'_LIST_'+_0x1ff2fc['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x2ef393{['afterInit'](){const _0x37cb9e=this['editor'];if(!_0x37cb9e['plugins']['has']('MediaEmbedEditing'))return;const _0x527919=_0x37cb9e['plugins']['get']('TrackChangesEditing'),_0x1fc368=_0x37cb9e['locale'];_0x527919['enableCommand']('mediaEmbed'),_0x527919['descriptionFactory']['registerElementLabel']('media',_0x189eba=>o(_0x1fc368,'ELEMENT_MEDIA',_0x189eba)),_0x37cb9e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x34dfb8,{writer:_0x364242,options:_0x5228de})=>{if(_0x5228de['showSuggestionHighlights'])return _0x364242['createEmptyElement']('div');},'converterPriority':'high'}),_0x37cb9e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1f8337,_0x2d20a0,_0x1f4068)=>{_0x1f4068['options']['showSuggestionHighlights']&&_0x1f8337['stop']();},{'priority':'high'});}}class gt extends _0x2ef393{['afterInit'](){const _0x101004=this['editor'];_0x101004['plugins']['has']('MentionEditing')&&_0x101004['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x2ef393{['afterInit'](){const _0x527554=this['editor'],_0x5f2bb9=_0x527554['plugins']['get']('TrackChangesEditing');_0x527554['plugins']['has']('MultiLevelList')&&(_0x5f2bb9['enableDefaultAttributesIntegration']('multiLevelList'),_0x5f2bb9['registerBlockAttribute']('listMarkerStyle'),_0x5f2bb9['descriptionFactory']['registerDescriptionCallback'](_0x4fb258=>this['handleDescriptions'](_0x4fb258)));}['handleDescriptions'](_0x2582bc){const _0x1b84c8=this['editor']['locale'],{data:_0x5172d7}=_0x2582bc,_0x15d0ee={'type':'format','content':''};if(_0x5172d7&&'listMarkerStyle'==_0x5172d7['key']){if(!_0x5172d7['oldValue'])return{'type':'format','content':o(_0x1b84c8,'*Set\x20format:*\x20%0',o(_0x1b84c8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5172d7['newValue']+')'};if(!_0x5172d7['newValue']){let _0x1f89f7=_0x2582bc['head'];for(;_0x1f89f7;){if(_0x1f89f7['data']&&'listType'==_0x1f89f7['data']['key']&&_0x1f89f7['data']['newValue'])return _0x15d0ee;_0x1f89f7=_0x1f89f7['next'];}return{'type':'format','content':o(_0x1b84c8,'*Remove\x20format:*\x20%0',o(_0x1b84c8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5172d7['oldValue']+')'};}}}}class mt extends _0x2ef393{['afterInit'](){const _0xda7fb1=this['editor'];if(!_0xda7fb1['plugins']['has']('PageBreakEditing'))return;_0xda7fb1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xc24006=_0xda7fb1['plugins']['get']('TrackChangesEditing'),_0x24181d=_0xda7fb1['locale'];_0xc24006['descriptionFactory']['registerElementLabel']('pageBreak',_0x476c5c=>o(_0x24181d,'ELEMENT_PAGE_BREAK',_0x476c5c));}}class dt extends _0x2ef393{['afterInit'](){const _0x1b95b8=this['editor'];if(!_0x1b95b8['plugins']['has']('Paragraph'))return;const _0x4b3883=_0x1b95b8['locale'],_0x20c58b=_0x1b95b8['plugins']['get']('TrackChangesEditing');_0x20c58b['descriptionFactory']['registerElementLabel']('paragraph',_0x1f1ac1=>o(_0x4b3883,'ELEMENT_PARAGRAPH',_0x1f1ac1)),_0x20c58b['enableDefaultAttributesIntegration']('paragraph'),_0x20c58b['enableCommand']('insertParagraph'),_0x1b95b8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1b95b8),{'priority':'highest'}),_0x1b95b8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1877a6,_0x26a27f,_0x59b271)=>{_0x59b271['options']['showSuggestionHighlights']&&nr(_0x1b95b8,{'showActiveMarker':!0x1})(_0x1877a6,_0x26a27f,_0x59b271);},{'priority':'highest'});const _0x318abf=_0x20c58b['descriptionFactory'];_0x318abf['registerDescriptionCallback'](_0x52558f=>{if('insertion'!==_0x52558f['type'])return;const {start:_0x42c7e6,end:_0x545960}=_0x52558f['getFirstRange']();if(!_0x42c7e6['isTouching'](_0x545960)||!_0x42c7e6['nodeAfter'])return;const _0x251669=_0x1b95b8['model']['schema'],_0x336aec=_0x42c7e6['nodeAfter'];return _0x251669['isBlock'](_0x336aec)&&!_0x251669['isLimit'](_0x336aec)&&_0x251669['checkChild'](_0x336aec,'$text')?{'type':'insertion','content':o(_0x4b3883,'*Insert:*\x20%0',_0x318abf['getItemLabel'](_0x336aec,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x361380=this['editor'],_0x50404b=_0x361380['locale'];_0x361380['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x483808=>{if('formatBlock'!=_0x483808['type'])return;const {data:_0x3c5375}=_0x483808;return _0x3c5375&&'paragraph'==_0x3c5375['commandName']?{'type':'format','content':o(_0x50404b,'*Change\x20to:*\x20%0',o(_0x50404b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x12cf44,{showActiveMarker:_0x191b21=!0x0}={}){return(_0x144942,_0x4364d6,_0x1778bc)=>{const _0x2ddb8b=_0x12cf44['plugins']['get']('TrackChangesEditing'),_0x542c60=_0x4364d6['markerRange']['start'],_0xce9eaf=_0x4364d6['markerRange']['end'],_0xbf13fd=_0x12cf44['model']['schema'];if(!_0x542c60['isTouching'](_0xce9eaf)||!_0x542c60['nodeAfter'])return;const _0x2caaff=_0x542c60['nodeAfter'];if(_0xbf13fd['isBlock'](_0x2caaff)&&!_0xbf13fd['isLimit'](_0x2caaff)&&_0xbf13fd['checkChild'](_0x2caaff,'$text')){if(!_0x1778bc['consumable']['consume'](_0x4364d6['markerRange'],_0x144942['name']))return;const _0x354381=_0x1778bc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x37ed26=_0x1778bc['mapper']['toViewPosition'](_0xce9eaf);_0x191b21&&_0x2ddb8b['activeMarkers']['includes'](_0x4364d6['markerName'])&&_0x1778bc['writer']['addClass']('ck-suggestion-marker--active',_0x354381),_0x1778bc['writer']['insert'](_0x37ed26,_0x354381),_0x1778bc['mapper']['bindElementToMarker'](_0x354381,_0x4364d6['markerName']);}};}class pt extends _0x2ef393{['afterInit'](){const _0xf06043=this['editor'];if(!_0xf06043['plugins']['has']('RemoveFormatEditing'))return;_0xf06043['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c41c1=this['editor'];_0x4c41c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1855af=>{if('formatBlock'!=_0x1855af['type']&&'formatInline'!=_0x1855af['type'])return;const {data:_0x333db4}=_0x1855af;return _0x333db4&&'removeFormat'==_0x333db4['commandName']?{'type':'format','content':o(_0x4c41c1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x2ef393{['afterInit'](){const _0x589d04=this['editor'];if(!_0x589d04['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4d5376=_0x589d04['plugins']['get']('TrackChangesEditing');_0x4d5376['enableCommand']('goToPreviousRestrictedEditingException'),_0x4d5376['enableCommand']('goToNextRestrictedEditingException');const _0x4391b6=_0x589d04['plugins']['get']('RestrictedEditingModeEditing');_0x4391b6['enableCommand']('trackChanges'),_0x4391b6['enableCommand']('acceptSuggestion'),_0x4391b6['enableCommand']('discardSuggestion'),_0x4391b6['enableCommand']('acceptAllSuggestions'),_0x4391b6['enableCommand']('discardAllSuggestions'),_0x4391b6['enableCommand']('acceptSelectedSuggestions'),_0x4391b6['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x2ef393{static get['requires'](){return[_0x13c919];}['init'](){const _0x29854f=this['editor'],_0xa3f367=_0x29854f['plugins']['get']('TrackChangesEditing');_0xa3f367['enableCommand']('shiftEnter'),_0x29854f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x29854f),{'priority':'high'}),_0x29854f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x29854f),{'priority':'high'}),_0x29854f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xa7856e,_0x31249c,_0x46aa0e)=>{_0x46aa0e['options']['showSuggestionHighlights']&&de(_0x29854f,{'showActiveMarker':!0x1})(_0xa7856e,_0x31249c,_0x46aa0e);}),_0xa3f367['descriptionFactory']['registerElementLabel']('softBreak',_0x1fc4e1=>o(_0x29854f['locale'],'ELEMENT_LINE_BREAK',_0x1fc4e1));}}function de(_0x23ed8c,{showActiveMarker:_0x2efe66=!0x0}={}){return(_0x2aed9a,_0x361dec,_0x408cea)=>{const _0x2cfc83=_0x23ed8c['plugins']['get']('TrackChangesEditing');if(!_0x408cea['consumable']['test'](_0x361dec['markerRange'],_0x2aed9a['name']))return;const _0x334c55=_0x23ed8c['model'];for(const _0x4fd3af of _0x361dec['markerRange']['getItems']()){if(!_0x4fd3af['is']('element','softBreak'))continue;const _0xd7e9e2='deletion'==_0x361dec['markerName']['split'](':')[0x1]?'merge':'split',_0x4a32d5=_0x408cea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xd7e9e2}),_0x3106ae=_0x408cea['mapper']['toViewPosition'](_0x334c55['createPositionBefore'](_0x4fd3af));_0x2efe66&&_0x2cfc83['activeMarkers']['includes'](_0x361dec['markerName'])&&_0x408cea['writer']['addClass']('ck-suggestion-marker--active',_0x4a32d5),_0x408cea['writer']['insert'](_0x3106ae,_0x4a32d5),_0x408cea['mapper']['bindElementToMarker'](_0x4a32d5,_0x361dec['markerName']);}};}class wt extends _0x2ef393{['afterInit'](){const _0x5252cc=this['editor'],_0x1eb789=_0x5252cc['model'],_0x10742e=_0x5252cc['locale'];if(!_0x5252cc['plugins']['has']('StandardEditingModeEditing'))return;const _0x144152=_0x5252cc['plugins']['get']('TrackChangesEditing'),_0x3e48bd='restrictedEditingException',_0x7fb892=_0x5252cc['commands']['get'](_0x3e48bd);_0x144152['enableCommand'](_0x3e48bd,(_0x1e7b2a,_0x5820b7={})=>{const _0x344a18=_0x1eb789['document']['selection'];if(_0x344a18['isCollapsed'])return void _0x1e7b2a(_0x5820b7);const _0xf5f24c=void 0x0!==_0x5820b7['forceValue']?_0x5820b7['forceValue']:!_0x7fb892['value'];_0x1eb789['change'](()=>{const _0x71e033=Array['from'](_0x344a18['getRanges']());for(const _0x5b463e of _0x71e033){const _0x160719=_0xf5f24c?[_0x5b463e]:io(_0x3e48bd,_0x5b463e,_0x1eb789);for(const _0x4093c8 of _0x160719)_0x144152['markInlineFormat'](_0x4093c8,{'commandName':_0x3e48bd,'commandParams':[{'forceValue':_0xf5f24c}]});}});}),_0x144152['descriptionFactory']['registerDescriptionCallback'](_0x2e5e91=>{if('formatBlock'!=_0x2e5e91['type']&&'formatInline'!=_0x2e5e91['type'])return;const {data:_0x4df1b4}=_0x2e5e91;return _0x4df1b4&&_0x4df1b4['commandName']==_0x3e48bd?_0x4df1b4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10742e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x10742e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x2ef393{['afterInit'](){const _0x7e7eea=this['editor'];if(!_0x7e7eea['plugins']['has']('Style')||!_0x7e7eea['plugins']['has']('DataSchema'))return;const _0x59bd41=_0x7e7eea['plugins']['get']('TrackChangesEditing'),_0x336896=_0x7e7eea['locale'],_0x964b5a=_0x7e7eea['config']['get']('style')||{},_0x57505b=_0x7e7eea['plugins']['get']('GeneralHtmlSupport'),_0x11584f=_0x7e7eea['plugins']['get']('StyleUtils')['normalizeConfig'](_0x7e7eea['plugins']['get']('DataSchema'),_0x964b5a['definitions']);_0x59bd41['enableDefaultAttributesIntegration']('style');const _0x2e3d4f=new Set();for(const _0xced237 of _0x11584f['block']){const _0x133cac=_0x57505b['getGhsAttributeNameForElement'](_0xced237['element']);_0x2e3d4f['add'](_0x133cac);}const _0x56bc35=new Set();for(const _0x4f4dab of _0x11584f['inline']){const _0x1fe7d6=_0x57505b['getGhsAttributeNameForElement'](_0x4f4dab['element']);_0x56bc35['add'](_0x1fe7d6);for(const _0x314eb3 of _0x4f4dab['ghsAttributes'])_0x56bc35['add'](_0x314eb3);}for(const _0x1b7a4a of _0x2e3d4f)_0x59bd41['registerBlockAttribute'](_0x1b7a4a),_0x59bd41['descriptionFactory']['registerAttributeLabel'](_0x1b7a4a,o(_0x336896,'FORMAT_STYLE'));for(const _0x3c03c7 of _0x56bc35)_0x59bd41['registerInlineAttribute'](_0x3c03c7),_0x59bd41['descriptionFactory']['registerAttributeLabel'](_0x3c03c7,o(_0x336896,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44a45a=this['editor'],_0x195c4c=_0x44a45a['locale'];_0x44a45a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e7ed2=>{if('formatBlock'!=_0x1e7ed2['type']&&'formatInline'!=_0x1e7ed2['type'])return;const {data:_0x59f1bd}=_0x1e7ed2;return _0x59f1bd&&'style'===_0x59f1bd['commandName']?_0x59f1bd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x195c4c,'*Set\x20format:*\x20%0',_0x59f1bd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x195c4c,'*Remove\x20format:*\x20%0',_0x59f1bd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x2ef393{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x926e09){super(_0x926e09),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xb7e9af=this['editor'],_0x473cb1=_0xb7e9af['model']['document']['selection'];if(!_0xb7e9af['plugins']['has']('TableEditing'))return;const _0x24cf65=_0xb7e9af['locale'],_0x5e3ebf=_0xb7e9af['plugins']['get']('TrackChangesEditing'),_0x4e1a5b=_0xb7e9af['plugins']['get']('TableUtils');_0x5e3ebf['descriptionFactory']['registerElementLabel']('table',_0x26ea96=>o(_0x24cf65,'ELEMENT_TABLE',_0x26ea96)),this['_setupColumnsRowsFixing'](),_0x5e3ebf['enableCommand']('insertTable'),_0x5e3ebf['enableCommand']('selectTableRow'),_0x5e3ebf['enableCommand']('selectTableColumn');for(const _0x4eec77 of['insertTableRowAbove','insertTableRowBelow']){const _0x4874ed=_0xb7e9af['commands']['get'](_0x4eec77);_0x5e3ebf['enableCommand'](_0x4eec77,_0x4c86e3=>{_0xb7e9af['model']['change'](_0x456ed3=>{_0x4c86e3();const _0x52208b='above'===_0x4874ed['order'],_0x401b4f=_0x4e1a5b['getSelectionAffectedTableCells'](_0x473cb1),_0x3a08e1=_0x4e1a5b['getRowIndexes'](_0x401b4f),_0x47b180=_0x52208b?_0x3a08e1['first']-0x1:_0x3a08e1['last']+0x1,_0x57a20a=_0x401b4f[0x0]['findAncestor']('table'),_0x69706d=_0x4e1a5b['createTableWalker'](_0x57a20a,{'startRow':_0x47b180,'endRow':_0x47b180}),_0x11e693=Array['from'](_0x69706d)['map'](_0x103e09=>_0x456ed3['createRangeOn'](_0x103e09['cell']));_0x5e3ebf['markMultiRangeInsertion'](_0x11e693,'tableRow');});});}for(const _0x1dd663 of['insertTableColumnLeft','insertTableColumnRight']){const _0x18d8f1=_0xb7e9af['commands']['get'](_0x1dd663);_0x5e3ebf['enableCommand'](_0x1dd663,_0x15ec25=>{_0xb7e9af['model']['change'](_0x18204a=>{_0x15ec25();const _0xc47e26='left'===_0x18d8f1['order'],_0x968fe0=_0x4e1a5b['getSelectionAffectedTableCells'](_0x473cb1),_0x1ab0cb=_0x4e1a5b['getColumnIndexes'](_0x968fe0),_0x5b4477=_0xc47e26?_0x1ab0cb['first']-0x1:_0x1ab0cb['last']+0x1,_0x4b101e=_0x968fe0[0x0]['findAncestor']('table'),_0x3081d8=_0x4e1a5b['createTableWalker'](_0x4b101e,{'startRow':0x0,'column':_0x5b4477,'includeAllSlots':!0x1}),_0x200666=Array['from'](_0x3081d8)['map'](_0x5064e7=>_0x18204a['createRangeOn'](_0x5064e7['cell']));_0x5e3ebf['markMultiRangeInsertion'](_0x200666,'tableColumn');});});}for(const _0x52e1ef of['removeTableRow','removeTableColumn']){const _0x33e0b3=_0x52e1ef['substr'](0xb),_0x40cc31=_0x33e0b3['toLowerCase'](),_0x2272f4=_0x40cc31['substr'](0x0,0x3)+'span',_0x1eea3a='table'+_0x33e0b3,_0x529c7a='min'+_0x33e0b3,_0x2b2b3b='max'+_0x33e0b3;_0x5e3ebf['enableCommand'](_0x52e1ef,()=>{_0xb7e9af['model']['change'](_0xc31c14=>{const _0x3494da=_0x4e1a5b['getSelectionAffectedTableCells'](_0x473cb1),_0x15884a=_0x3494da[0x0]['findAncestor']('table');let _0x5e623b;if('removeTableRow'==_0x52e1ef){const _0x22f55c=_0x4e1a5b['getRowIndexes'](_0x3494da);_0x5e623b={'startRow':_0x22f55c['first'],'endRow':_0x22f55c['last'],'includeAllSlots':!0x0};}else{const _0x2c87cc=_0x4e1a5b['getColumnIndexes'](_0x3494da);_0x5e623b={'startColumn':_0x2c87cc['first'],'endColumn':_0x2c87cc['last'],'includeAllSlots':!0x0};}const _0x30ecb5=_0x4e1a5b['createTableWalker'](_0x15884a,_0x5e623b),_0x13b9aa=Array['from'](_0x30ecb5)['map'](({cell:_0x119a8f})=>_0x119a8f),_0x50da72=Ee(_0x13b9aa['filter'](_0x164ff5=>_0x164ff5['hasAttribute'](_0x2272f4))),_0x2c21f5=Ee(_0x13b9aa['filter'](_0x41b38a=>!_0x41b38a['hasAttribute'](_0x2272f4)))['map'](_0x4b9595=>_0xc31c14['createRangeOn'](_0x4b9595)),_0x2b3b36=_0x5e3ebf['markMultiRangeDeletion'](_0x2c21f5,_0x1eea3a);if(_0x2b3b36&&('tableRow'==_0x2b3b36['subType']||'tableColumn'==_0x2b3b36['subType'])){const _0x16487=this['_getSuggestionCoords'](_0x2b3b36);for(const _0x724605 of _0x50da72){const _0x4ffc56=_0xc31c14['createRangeOn'](_0x724605),_0x5e5b39=_0x4e1a5b['getCellLocation'](_0x724605),_0x591560=_0x724605['getAttribute'](_0x2272f4)-0x1,_0x38b3c6=_0x16487[_0x529c7a],_0x3cec63=_0x16487[_0x2b2b3b];_0x38b3c6<=_0x5e5b39[_0x40cc31]&&_0x5e5b39[_0x40cc31]+_0x591560<=_0x3cec63&&_0x2b3b36['addRange'](_0x4ffc56);}}});});}function _0x60afa2(_0x3aa63f){const _0x59768e=Array['from'](_0x473cb1['getRanges']())['map'](_0x2f69d7=>_0x4ca244['fromRange'](_0x2f69d7));_0xb7e9af['model']['change'](_0x1eb474=>{const _0x44ed50=_0x1eb474['batch'];_0x3aa63f=_0x3aa63f['filter'](_0x285480=>'$graveyard'!=_0x285480['root']['rootName']),_0x1eb474['setSelection'](_0x3aa63f),_0xb7e9af['commands']['get']('removeTableRow')['refresh'](),_0xb7e9af['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xb7e9af['model']['enqueueChange'](()=>{_0xb7e9af['model']['enqueueChange'](_0x44ed50,_0x3b87e0=>{const _0x2ec111=_0x59768e['filter'](_0x5bf07c=>'$graveyard'!=_0x5bf07c['root']['rootName']);_0x2ec111['length']>0x0&&_0x3b87e0['setSelection'](_0x2ec111);for(const _0x357380 of _0x59768e)_0x357380['detach']();});});});}function _0x55bb23(_0x4b2162){_0xb7e9af['model']['change'](_0x11004c=>{const _0xcce8ac=Array['from'](_0x473cb1['getRanges']())['map'](_0x2d1c0d=>_0x4ca244['fromRange'](_0x2d1c0d)),_0x515328=[];for(const _0x247c83 of _0x4b2162)for(const _0x2782ea of _0x247c83['getItems']({'shallow':!0x0}))_0x515328['push'](_0x2782ea);for(const _0xfc1437 of _0x515328)'$graveyard'!=_0xfc1437['root']['rootName']&&(_0x11004c['setSelection'](_0x11004c['createPositionAt'](_0xfc1437,0x0)),_0xb7e9af['commands']['get']('removeTableColumn')['refresh'](),_0xb7e9af['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4e8d69=_0xcce8ac['filter'](_0x599eeb=>'$graveyard'!=_0x599eeb['root']['rootName']);_0x4e8d69['length']>0x0&&_0x11004c['setSelection'](_0x4e8d69);for(const _0x1c6e7b of _0xcce8ac)_0x1c6e7b['detach']();});}function _0x5b944c(_0x44dfc7,_0x279917){return _0x279917['every'](_0x57eae5=>_0x44dfc7['some'](_0x5c9dd9=>_0x5c9dd9['end']['isEqual'](_0x57eae5['start'])||_0x57eae5['end']['isEqual'](_0x5c9dd9['start'])));}function _0x3cd50c(_0x101bbb,_0x1869ad){return _0x101bbb['some'](_0x39b17d=>_0x1869ad['some'](_0x3d0577=>_0x39b17d['end']['isTouching'](_0x3d0577['start'])));}_0xb7e9af['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x49a34c,_0xdf1876,_0x3d2f7e)=>{if(!_0x3d2f7e['options']['showSuggestionHighlights'])return;const _0x20c152=_0xdf1876['item'];if(!_0x20c152)return;const _0x56eab6=_0x3d2f7e['mapper']['toViewElement'](_0x20c152);function _0x7d3bfa(_0x2909db){return Array['isArray'](_0x2909db)?_0x2909db:[_0x2909db];}_0x56eab6&&'tableCell'===_0x20c152['name']&&_0x5acf6d(_0x56eab6,_0x3d2f7e['writer'],(_0x1105bc,_0x2f3036,_0x304fa2)=>_0x304fa2['addClass'](_0x7d3bfa(_0x2f3036['classes']),_0x1105bc),(_0x45b191,_0x321988,_0x452a5e)=>_0x452a5e['removeClass'](_0x7d3bfa(_0x321988['classes']),_0x45b191));},{'priority':'highest'}),_0x5e3ebf['descriptionFactory']['registerDescriptionCallback'](_0x96f895=>{if('insertion'!=_0x96f895['type']&&'deletion'!=_0x96f895['type'])return;const _0x5890d2=_0x96f895['getContainedElement']();if(null!=_0x5890d2&&_0x5890d2['is']('element','table')){if('insertion'==_0x96f895['type']){const _0x324dc4=_0x96f895['getItems']()['filter'](_0x58592e=>_0x58592e['is']('$textProxy'))['map'](_0x2d717c=>_0x2d717c['data']);if(_0x324dc4['length'])return{'type':'insertion','content':o(_0x24cf65,'*Insert:*\x20%0',o(_0x24cf65,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x324dc4['join']('\x20')+'\x22'))};}if('deletion'==_0x96f895['type']){const _0x4da68a=_0x96f895['getItems']()['filter'](_0x432bf4=>_0x432bf4['is']('$textProxy'))['map'](_0x47b242=>_0x47b242['data']);if(_0x4da68a['length'])return{'type':'deletion','content':o(_0x24cf65,'*Remove:*\x20%0',o(_0x24cf65,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4da68a['join']('\x20')+'\x22'))};}}}),_0x5e3ebf['descriptionFactory']['registerDescriptionCallback'](_0x8530c5=>{if('tableRow'==_0x8530c5['subType']){const _0x11321e=_0x8530c5['getItems']()['filter'](_0x5c1c8d=>_0x5c1c8d['is']('$textProxy'))['map'](_0x311cc0=>_0x311cc0['data']),_0x56e105=this['_getSuggestionCoords'](_0x8530c5),_0x3847bd=_0x56e105['maxRow']-_0x56e105['minRow']+0x1;if('insertion'==_0x8530c5['type'])return _0x11321e['length']?{'type':'insertion','content':o(_0x24cf65,'*Insert:*\x20%0',o(_0x24cf65,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3847bd,'\x22'+_0x11321e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x24cf65,'*Insert:*\x20%0',o(_0x24cf65,'ELEMENT_TABLE_ROW',_0x3847bd))};if('deletion'==_0x8530c5['type'])return _0x11321e['length']?{'type':'deletion','content':o(_0x24cf65,'*Remove:*\x20%0',o(_0x24cf65,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3847bd,'\x22'+_0x11321e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x24cf65,'*Remove:*\x20%0',o(_0x24cf65,'ELEMENT_TABLE_ROW',_0x3847bd))};}if('tableColumn'==_0x8530c5['subType']){const _0x1cebb9=_0x8530c5['getItems']()['filter'](_0x589c73=>_0x589c73['is']('$textProxy'))['map'](_0x1da654=>_0x1da654['data']),_0x19f5af=this['_getSuggestionCoords'](_0x8530c5),_0x562cb2=_0x19f5af['maxColumn']-_0x19f5af['minColumn']+0x1;if('insertion'==_0x8530c5['type'])return _0x1cebb9['length']?{'type':'insertion','content':o(_0x24cf65,'*Insert:*\x20%0',o(_0x24cf65,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x562cb2,'\x22'+_0x1cebb9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x24cf65,'*Insert:*\x20%0',o(_0x24cf65,'ELEMENT_TABLE_COLUMN',_0x562cb2))};if('deletion'==_0x8530c5['type'])return _0x1cebb9['length']?{'type':'deletion','content':o(_0x24cf65,'*Remove:*\x20%0',o(_0x24cf65,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x562cb2,'\x22'+_0x1cebb9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x24cf65,'*Remove:*\x20%0',o(_0x24cf65,'ELEMENT_TABLE_COLUMN',_0x562cb2))};}}),_0x5e3ebf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x60afa2),_0x5e3ebf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x60afa2),_0x5e3ebf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x55bb23),_0x5e3ebf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x55bb23),_0x5e3ebf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5b944c),_0x5e3ebf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5b944c),_0x5e3ebf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3cd50c),_0x5e3ebf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3cd50c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x259869=this['editor'],_0x2ed550=_0x259869['model']['document']['selection'];return(_0x33cfe0,_0x3217d5)=>{_0x259869['model']['change'](_0x536a9e=>{const {commandName:_0x109a7c,commandParams:_0x53fd73}=_0x3217d5;let _0x9ee593=_0x33cfe0[0x0]['end']['nodeBefore'];_0x53fd73&&_0x53fd73[0x0]&&!0x1===_0x53fd73[0x0]['forceValue']&&(_0x9ee593=_0x33cfe0[0x0]['start']['nodeAfter']);const _0x43181c=_0x536a9e['createRangeIn'](_0x9ee593);if('$graveyard'==_0x43181c['root']['rootName'])return;const _0x2b105b=Array['from'](_0x2ed550['getRanges']())['map'](_0x4f9c43=>_0x4ca244['fromRange'](_0x4f9c43));_0x536a9e['setSelection'](_0x43181c),_0x259869['commands']['get'](_0x109a7c)['refresh'](),_0x53fd73['push']({'forceDefaultExecution':!0x0}),_0x259869['execute'](_0x109a7c,..._0x53fd73);const _0x844546=_0x2b105b['filter'](_0x526f25=>'$graveyard'!=_0x526f25['root']['rootName']);_0x844546['length']>0x0&&_0x536a9e['setSelection'](_0x844546);for(const _0x4dbe44 of _0x2b105b)_0x4dbe44['detach']();});};}['_getCoordsForCells'](_0x5a0b0e){const _0x5995c6=this['editor']['plugins']['get']('TableUtils');let _0x5e8a9d=Number['MAX_SAFE_INTEGER'],_0x131ab7=Number['MIN_SAFE_INTEGER'],_0x7a6f55=Number['MAX_SAFE_INTEGER'],_0x4e5a9b=Number['MIN_SAFE_INTEGER'];for(const _0x5a1d31 of _0x5a0b0e){if('$graveyard'==_0x5a1d31['root']['rootName'])continue;const {row:_0x476d25,column:_0x2fff6d}=_0x5995c6['getCellLocation'](_0x5a1d31),_0x2e619b=_0x5a1d31['hasAttribute']('rowspan')?_0x5a1d31['getAttribute']('rowspan')-0x1:0x0,_0x47a3ad=_0x5a1d31['hasAttribute']('colspan')?_0x5a1d31['getAttribute']('colspan')-0x1:0x0;_0x5e8a9d=_0x476d25<_0x5e8a9d?_0x476d25:_0x5e8a9d,_0x131ab7=_0x476d25+_0x2e619b>_0x131ab7?_0x476d25+_0x2e619b:_0x131ab7,_0x7a6f55=_0x2fff6d<_0x7a6f55?_0x2fff6d:_0x7a6f55,_0x4e5a9b=_0x2fff6d+_0x47a3ad>_0x4e5a9b?_0x2fff6d+_0x47a3ad:_0x4e5a9b;}return{'minRow':_0x5e8a9d,'maxRow':_0x131ab7,'minColumn':_0x7a6f55,'maxColumn':_0x4e5a9b};}['_setupColumnsRowsFixing'](){const _0x3b213e=this['editor'],_0x35c55a=_0x3b213e['plugins']['get']('TrackChangesEditing'),_0x5e8db2=_0x3b213e['plugins']['get']('TableUtils');_0x3b213e['model']['document']['on']('change:data',()=>{const _0x4a9609=Array['from'](_0x3b213e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f21af,data:_0x564adf}of _0x4a9609){const {group:_0x130ba0,id:_0x4d49be,subType:_0x3fd6f7}=_0x35c55a['_splitMarkerName'](_0x1f21af);if('suggestion'!=_0x130ba0)continue;if(null!=_0x564adf['oldRange'])continue;const _0x48fc22=_0x35c55a['getSuggestion'](_0x4d49be);this['_tablePostFixingSubtypes']['includes'](_0x3fd6f7)&&this['_tableSuggestions']['add'](_0x48fc22);}},{'priority':'low'});const _0x5074fd=(_0x7d229f,_0x432b05)=>{let _0x3eb653=!0x1;const _0x4b1a09=_0x432b05['createRangeOn'](_0x7d229f),_0x459ce7=_0x7d229f['findAncestor']('table'),_0x54e8fb=_0x5e8db2['getCellLocation'](_0x7d229f);for(const _0x2d2ce0 of this['_tableSuggestions']){const _0x2f67f4=_0x2d2ce0['subType'],_0x4a22fc=_0x2f67f4['startsWith']('tablePaste'),_0x195137=_0x2f67f4['substr'](_0x4a22fc?0xa:0x5),_0x2d1ad0=_0x195137['toLowerCase'](),_0x3ea275=_0x2d1ad0['substr'](0x0,0x3)+'span',_0x3fcc6c='min'+_0x195137,_0x8375a5='max'+_0x195137;if(!_0x2d2ce0['isInContent'])continue;if(_0x459ce7!=_0x2d2ce0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2d2ce0['isIntersectingWithRange'](_0x4b1a09))continue;const _0x256caf=_0x7d229f['hasAttribute'](_0x3ea275)?_0x7d229f['getAttribute'](_0x3ea275)-0x1:0x0,_0x430922=this['_getSuggestionCoords'](_0x2d2ce0),_0x4907cc=_0x430922[_0x3fcc6c],_0x2cf71c=_0x430922[_0x8375a5];_0x4907cc<=_0x54e8fb[_0x2d1ad0]&&_0x54e8fb[_0x2d1ad0]+_0x256caf<=_0x2cf71c&&(_0x2d2ce0['addRange'](_0x4b1a09),_0x3eb653=!0x0);}return _0x3eb653;};_0x3b213e['model']['document']['registerPostFixer'](_0x18972e=>{let _0x39cb62=!0x1;for(const _0x5c85d2 of _0x3b213e['model']['document']['differ']['getChanges']())if('insert'==_0x5c85d2['type']){if('tableRow'==_0x5c85d2['name']){for(const _0x1512c1 of _0x5c85d2['position']['nodeAfter']['getChildren']())_0x39cb62=_0x39cb62||_0x5074fd(_0x1512c1,_0x18972e);}else'tableCell'==_0x5c85d2['name']&&(_0x39cb62=_0x39cb62||_0x5074fd(_0x5c85d2['position']['nodeAfter'],_0x18972e));}return _0x39cb62;});}['_getSuggestionCoords'](_0x27ccff){return this['_getCoordsForCells'](_0x27ccff['getRanges']()['map'](_0x1e54bf=>_0x1e54bf['start']['nodeAfter']));}}function Ee(_0xa5bce1){return Array['from'](new Set(_0xa5bce1)['values']());}class St extends _0x2ef393{static get['requires'](){return[jt];}['afterInit'](){const _0x2b1225=this['editor'],_0x9fbb84=_0x2b1225['model']['document']['selection'],_0x28684e=_0x2b1225['locale'];if(!_0x2b1225['plugins']['has']('TableEditing'))return;const _0x413f09=_0x2b1225['plugins']['get']('TrackChangesEditing'),_0x156a1f=_0x2b1225['plugins']['get']('TableUtils'),_0x599dfc=_0x2b1225['plugins']['get'](jt);_0x599dfc['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x413f09['enableCommand']('mergeTableCells',()=>{const _0x2cddc9=_0x156a1f['getSelectionAffectedTableCells'](_0x2b1225['model']['document']['selection']);_0x2b1225['model']['change'](()=>{_0x413f09['markMultiRangeBlockFormat'](_0x2cddc9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2b1225['commands']['get']('mergeTableCells')['on']('execute',(_0xca6155,_0x554139)=>{_0x2b1225['commands']['get']('trackChanges')['value']&&(_0x554139['length']>0x0&&_0x554139[_0x554139['length']-0x1]&&_0x554139[_0x554139['length']-0x1]['forceDefaultExecution']||_0x413f09['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xca6155['stop']());},{'priority':'highest'});for(const _0x3565a1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x320e5b=_0x2b1225['commands']['get'](_0x3565a1);_0x413f09['enableCommand'](_0x3565a1,()=>{const _0x484b15=_0x2b1225['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45d54f=>_0x45d54f['is']('element','tableCell')),_0x24ab29=_0x320e5b['value'];_0x2b1225['model']['change'](()=>{_0x413f09['markMultiRangeBlockFormat']([_0x484b15,_0x24ab29],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x46ed4c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1d6ab8=_0x2b1225['commands']['get'](_0x46ed4c);_0x413f09['enableCommand'](_0x46ed4c,()=>{const _0x5b069a=_0x156a1f['getSelectionAffectedTableCells'](_0x2b1225['model']['document']['selection'])[0x0],_0x27946c=_0x5b069a['findAncestor']('table'),{column:_0xe46b8c,row:_0x433f6a}=_0x156a1f['getCellLocation'](_0x5b069a);let _0x3c07dd=[];if('horizontally'==_0x1d6ab8['direction']){const _0x482f70=_0x156a1f['createTableWalker'](_0x27946c,{'startRow':_0x433f6a,'endRow':_0x433f6a,'includeAllSlots':!0x0});_0x3c07dd=Array['from'](_0x482f70)['map'](_0x55d99c=>_0x55d99c['cell']);}else{const _0x5d4db6=_0x156a1f['createTableWalker'](_0x27946c,{'column':_0xe46b8c,'includeAllSlots':!0x0});_0x3c07dd=Array['from'](_0x5d4db6)['map'](_0x53957e=>_0x53957e['cell']);}_0x2b1225['model']['change'](_0x135fc3=>{_0x413f09['markBlockFormat'](_0x135fc3['createRangeOn'](_0x5b069a),{'commandName':_0x46ed4c,'commandParams':[]},_0x3c07dd,_0x46ed4c);});});}_0x413f09['descriptionFactory']['registerDescriptionCallback'](_0x1adce9=>{if('formatBlock'!=_0x1adce9['type']&&'formatInline'!=_0x1adce9['type'])return;const {data:_0x4c48c3}=_0x1adce9;return _0x4c48c3&&'mergeTableCells'==_0x4c48c3['commandName']?{'type':'format','content':o(_0x28684e,'*Merge\x20cells*')}:void 0x0;}),_0x413f09['descriptionFactory']['registerDescriptionCallback'](_0x40fa39=>{if('formatBlock'!=_0x40fa39['type']&&'formatInline'!=_0x40fa39['type'])return;const {data:_0x553ab8}=_0x40fa39;return _0x553ab8?'splitTableCellVertically'==_0x553ab8['commandName']?{'type':'format','content':o(_0x28684e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x553ab8['commandName']?{'type':'format','content':o(_0x28684e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3ff487=_0x599dfc['_acceptFormatSuggestionCallbackFactory']();for(const _0x4de047 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x413f09['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4de047,'accept',_0x3ff487);for(const _0x268ae5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x413f09['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x268ae5,'accept',_0x3ff487);_0x413f09['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x386d68=>{_0x2b1225['model']['change'](_0x3dc912=>{const _0x19ff69=Array['from'](_0x9fbb84['getRanges']())['map'](_0x20ae29=>_0x4ca244['fromRange'](_0x20ae29));_0x3dc912['setSelection'](_0x386d68),_0x2b1225['commands']['get']('mergeTableCells')['refresh'](),_0x2b1225['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x31835b=_0x19ff69['filter'](_0x561889=>'$graveyard'!=_0x561889['root']['rootName']);_0x31835b['length']>0x0&&_0x3dc912['setSelection'](_0x31835b);for(const _0x2cad05 of _0x19ff69)_0x2cad05['detach']();});});for(const _0x52234c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x216bcd=_0x2b1225['commands']['get'](_0x52234c);_0x216bcd['on']('set:isEnabled',(_0x56222b,_0x2d0315,_0x37b9e0)=>{if(_0x37b9e0){const _0x18a3fd=_0x2b1225['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x48f843=>_0x48f843['is']('element','tableCell'));this['_areMergableCells'](_0x216bcd['value'],_0x18a3fd)||(_0x56222b['return']=!0x1,_0x56222b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3cfa50=this['editor']['commands']['get']('mergeTableCells'),_0x26580a=this['editor']['plugins']['get']('TableUtils');if(!_0x3cfa50['isEnabled'])return!0x1;const _0x2b0d8b=_0x26580a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x31bfb6 of _0x2b0d8b)for(const _0x58323a of _0x2b0d8b)if(_0x31bfb6!=_0x58323a&&!this['_areMergableCells'](_0x31bfb6,_0x58323a))return!0x1;return!0x0;}['_areMergableCells'](_0x56a352,_0x30c5d3){const _0x23d254=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b37e2=this['editor']['model']['createRangeOn'](_0x56a352),_0x3bb6a4=this['editor']['model']['createRangeOn'](_0x30c5d3),_0x332b40=new Set(),_0x43ee85=new Set();for(const _0xfa049e of _0x23d254['getSuggestions']())if(('insertion'==_0xfa049e['type']||'deletion'==_0xfa049e['type']||'mergeTableCells'==_0xfa049e['subType'])&&_0xfa049e['isInContent']){for(const _0x41bb75 of _0xfa049e['getRanges']())_0x41bb75['containsRange'](_0x4b37e2,!0x0)&&_0x332b40['add'](_0xfa049e['type']+':'+_0xfa049e['author']['id']),_0x41bb75['containsRange'](_0x3bb6a4,!0x0)&&_0x43ee85['add'](_0xfa049e['type']+':'+_0xfa049e['author']['id']);}if(_0x332b40['size']!=_0x43ee85['size'])return!0x1;for(const _0x3ad879 of _0x332b40)if(!_0x43ee85['has'](_0x3ad879))return!0x1;return!0x0;}}class At extends _0x2ef393{static get['requires'](){return[jt];}['afterInit'](){const _0x2acfd9=this['editor'];if(!_0x2acfd9['plugins']['has']('TableEditing'))return;const _0x1875a6=_0x2acfd9['locale'],_0x20a811=_0x2acfd9['plugins']['get']('TrackChangesEditing');_0x20a811['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x20a811['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x20a811['registerBlockAttribute']('headingRows'),_0x20a811['registerBlockAttribute']('headingColumns'),_0x20a811['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1875a6,'FORMAT_HEADER_ROW')),_0x20a811['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1875a6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2e37e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a82e9=this['editor']['plugins']['get']('TableUtils'),_0x3c2ac0=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x191db0({showActiveMarker:_0x512cbc=!0x0,setDataAttribute:_0x61679b=!0x0}={}){return(_0x4d4871,_0x27bd22,_0x389343)=>{const {type:_0x4f4cb4,id:_0x381a2f}=_0x2e37e1['_splitMarkerName'](_0x27bd22['markerName']),_0x1fae8e=_0x2e37e1['getSuggestion'](_0x381a2f),_0x23d76a=_0x1fae8e['data'];if('formatBlock'!=_0x1fae8e['type']||!_0x23d76a||'setTableColumnHeader'!=_0x23d76a['commandName'])return;if(_0x27bd22['item'])return void _0x4d4871['stop']();if(!_0x389343['consumable']['consume'](_0x27bd22['markerRange'],_0x4d4871['name']))return;const _0x128263=_0x27bd22['markerRange']['start']['nodeAfter'],_0x45c25c=_0x27bd22['markerRange']['end']['nodeBefore'],_0x17a9e9=_0x128263['parent']['parent'],{column:_0x2241ce}=_0x5a82e9['getCellLocation'](_0x128263),{column:_0x43f528}=_0x5a82e9['getCellLocation'](_0x45c25c);for(let _0x789e87=_0x2241ce;_0x789e87<=_0x43f528;_0x789e87++){const _0x290cc4=_0x5a82e9['createTableWalker'](_0x17a9e9,{'column':_0x789e87,'includeAllSlots':!0x1});for(const _0x1c26bc of _0x290cc4){const _0x50603a=_0x1c26bc['cell'],_0x2585d1=_0x389343['mapper']['toViewElement'](_0x50603a);_0x389343['writer']['addClass']('ck-suggestion-marker-'+_0x4f4cb4,_0x2585d1),_0x61679b&&_0x389343['writer']['setAttribute']('data-suggestion',_0x381a2f,_0x2585d1),_0x389343['mapper']['bindElementToMarker'](_0x2585d1,_0x27bd22['markerName']),_0x512cbc&&(_0x2e37e1['activeMarkers']['includes'](_0x27bd22['markerName'])?_0x389343['writer']['addClass']('ck-suggestion-marker--active',_0x2585d1):_0x389343['writer']['removeClass']('ck-suggestion-marker--active',_0x2585d1));}}};}_0x2e37e1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3c2ac0),_0x2e37e1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3c2ac0),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x191db0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1d632c,_0x49a831,_0x423188)=>{_0x423188['options']['showSuggestionHighlights']&&_0x191db0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1d632c,_0x49a831,_0x423188);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4efa4f,_0x689774,_0x534c50)=>{const {type:_0x5943bf,id:_0x4ecf42}=_0x2e37e1['_splitMarkerName'](_0x689774['markerName']),_0x3b7503=_0x2e37e1['getSuggestion'](_0x4ecf42),_0xd6b810=_0x3b7503['data'];if('formatBlock'!=_0x3b7503['type']||!_0xd6b810||'setTableColumnHeader'!=_0xd6b810['commandName'])return;const _0x28d732=_0x534c50['mapper']['markerNameToElements'](_0x689774['markerName']);if(_0x28d732){for(const _0x5cb2eb of _0x28d732)_0x534c50['writer']['removeClass']('ck-suggestion-marker-'+_0x5943bf,_0x5cb2eb),_0x534c50['writer']['removeClass']('ck-suggestion-marker--active',_0x5cb2eb),_0x534c50['writer']['removeAttribute']('data-suggestion',_0x5cb2eb),_0x534c50['mapper']['unbindElementFromMarkerName'](_0x5cb2eb,_0x689774['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x330ece=this['editor'],_0x5af4c8=_0x330ece['locale'];function _0x5ba685(_0x505402){return{'type':'format','content':o(_0x5af4c8,'*Format:*\x20%0',_0x505402)};}_0x330ece['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10cc58=>{if('formatBlock'!=_0x10cc58['type'])return;const {data:_0x27be81}=_0x10cc58;if(_0x27be81){if('setTableRowHeader'==_0x27be81['commandName']){const _0x34afa6=_0x27be81['commandParams'][0x0]['forceValue'];return _0x5ba685(o(_0x5af4c8,_0x34afa6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x27be81['commandName']){const _0x19a131=_0x27be81['commandParams'][0x0]['forceValue'];return _0x5ba685(o(_0x5af4c8,_0x19a131?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x1383f8=>[_0x1383f8,null]));class It extends _0x2ef393{static get['requires'](){return[jt];}['afterInit'](){const _0x2ae431=this['editor'];if(!_0x2ae431['plugins']['has']('TableClipboard'))return;const _0x10ef9f=_0x2ae431['plugins']['get']('TrackChangesEditing'),_0x3e6aed=_0x2ae431['plugins']['get']('TableUtils'),_0x4a6ff1=_0x2ae431['plugins']['get'](jt),_0x3083f3=_0x2ae431['plugins']['get']('TableClipboard');_0x4a6ff1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2ae431['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2ae431['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x28dd3f=null;_0x2ae431['model']['on']('insertContent',(_0x36a8ab,_0x17e46d)=>{const [_0x5b46d3,_0x266b6e]=_0x17e46d,_0x4dbb86=_0x17e46d[_0x17e46d['length']-0x1];_0x4dbb86&&_0x4dbb86['forceDefaultExecution']||_0x10ef9f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4c6892,_0x2a761f,_0x474288,_0x38fb66,_0x2906d3){if(_0x2a761f&&!_0x2a761f['is']('documentSelection'))return!0x1;const _0x187221=_0x2906d3['getTableIfOnlyTableInContent'](_0x4c6892,_0x474288);if(!_0x187221||!he(_0x187221,void 0x0,_0x38fb66))return!0x1;const _0x46bd48=_0x38fb66['getSelectionAffectedTableCells'](_0x474288['document']['selection']);if(!_0x46bd48['length'])return!0x1;const _0x4e2736=_0x46bd48[0x0]['findAncestor']('table'),_0x4f7dc0=_0x38fb66['getRowIndexes'](_0x46bd48),_0xcbf24f=_0x38fb66['getColumnIndexes'](_0x46bd48),_0x35e271={'startRow':_0x4f7dc0['first'],'endRow':_0x4f7dc0['last'],'startColumn':_0xcbf24f['first'],'endColumn':_0xcbf24f['last']};return 0x1==_0x46bd48['length']&&(_0x35e271['endRow']+=_0x38fb66['getRows'](_0x187221)-0x1,_0x35e271['endColumn']+=_0x38fb66['getColumns'](_0x187221)-0x1),he(_0x4e2736,_0x35e271,_0x38fb66);}(_0x5b46d3,_0x266b6e,_0x2ae431['model'],_0x3e6aed,_0x3083f3)&&(_0x36a8ab['stop'](),_0x28dd3f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2ae431['model']['change'](()=>{_0x2ae431['model']['insertContent'](_0x17e46d[0x0],_0x17e46d[0x1],_0x17e46d[0x2],{'forceDefaultExecution':!0x0});const _0x1c03ec=_0x37bf61(),{rowInsertionRanges:_0x243446,columnInsertionRanges:_0x2ed2c7,insertionRanges:_0x115e88,deletionRanges:_0x236207,cells:_0x34e933}=_0x28dd3f;_0x243446['length']&&_0x10ef9f['markMultiRangeInsertion'](_0x243446,'tablePasteRow',{'tablePasteChainId':_0x1c03ec}),_0x2ed2c7['length']&&_0x10ef9f['markMultiRangeInsertion'](_0x2ed2c7,'tablePasteColumn',{'tablePasteChainId':_0x1c03ec}),_0x115e88['length']&&(_0x10ef9f['markMultiRangeInsertion'](_0x115e88,'tablePaste',{'tablePasteChainId':_0x1c03ec,'skipNestingCheck':!0x0}),_0x115e88['forEach'](_0x487ca8=>_0x487ca8['detach']?.())),_0x236207['length']&&(_0x10ef9f['markMultiRangeDeletion'](_0x236207,'tablePaste',{'tablePasteChainId':_0x1c03ec,'skipNestingCheck':!0x0}),_0x236207['forEach'](_0x3b1016=>_0x3b1016['detach']?.()));const _0x4c36fc=_0x10ef9f['markMultiRangeBlockFormat'](_0x34e933['map'](({element:_0x58497b})=>_0x58497b),{'formatGroupId':_0x37bf61()},[],'tablePasteCell',{'tablePasteChainId':_0x1c03ec});if(_0x4c36fc){const _0x388f78=_0x4c36fc['getMarkers'](),_0x30924f=[];for(const {element:_0x4cfe36,attributes:_0x3ad8ae}of _0x34e933){if(!_0x3ad8ae)continue;const _0x2ea0dd=_0x2ae431['model']['createRangeOn'](_0x4cfe36),_0x1f6dca=_0x388f78['find'](_0x44e5d1=>_0x44e5d1['getRange']()['isEqual'](_0x2ea0dd));_0x1f6dca&&_0x30924f['push']([_0x1f6dca['name'],_0x3ad8ae]);}_0x30924f['length']&&_0x4c36fc['setAttribute']('markerAttributes',Object['fromEntries'](_0x30924f));}_0x28dd3f=null;}));},{'priority':_0x529bfa['high']+0xa}),_0x2ae431['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5869f9,_0x2a4e0c)=>{const [_0x5d5a75,_0x7dcb6b,,_0x42550b]=_0x2a4e0c;if(!_0x28dd3f)return;_0x5869f9['stop']();const _0x174592=_0x5d5a75['cell'],_0x1fe371=_0x7dcb6b,_0x5ea590=Pe(_0x174592),_0x9189ef=Pe(_0x1fe371);_0x5869f9['return']=_0x174592;let _0x48a696=null,_0x587fdc=null;if(_0x9189ef||_0x5ea590){if(_0x5ea590&&!_0x9189ef){_0x42550b['remove'](_0x174592['getChild'](0x0));for(const _0x163923 of Array['from'](_0x1fe371['getChildren']()))_0x42550b['insert'](_0x163923,_0x174592,'end');const _0x36b4d0=_0x28dd3f['rowInsertionIndexes']['includes'](_0x5d5a75['row']),_0x3147ab=_0x28dd3f['columnInsertionIndexes']['includes'](_0x5d5a75['column']);_0x36b4d0||_0x3147ab||(_0x48a696=_0x4ca244['fromRange'](_0x42550b['createRangeIn'](_0x174592)));}else _0x9189ef&&!_0x5ea590&&(_0x587fdc=_0x42550b['createRangeIn'](_0x174592));}else{const _0x5088ce=_0x42550b['createElement']('tableCellSuggestion'),_0x56c01e=_0x42550b['createElement']('tableCellSuggestion');_0x42550b['wrap'](_0x42550b['createRangeIn'](_0x174592),_0x56c01e),_0x42550b['insert'](_0x5088ce,_0x174592,0x0);for(const _0x585d81 of Array['from'](_0x1fe371['getChildren']()))_0x42550b['insert'](_0x585d81,_0x5088ce,'end');_0x48a696=_0x4ca244['fromRange'](_0x42550b['createRangeOn'](_0x5088ce)),_0x587fdc=_0x4ca244['fromRange'](_0x42550b['createRangeOn'](_0x56c01e));}const _0x3010c8=Array['from'](_0x1fe371['getAttributes']())['filter'](([_0x442074])=>ge['includes'](_0x442074));_0x28dd3f['cells']['push']({'element':_0x174592,'attributes':_0x3010c8['length']?Object['fromEntries'](_0x3010c8):null}),_0x48a696&&_0x28dd3f['insertionRanges']['push'](_0x48a696),_0x587fdc&&_0x28dd3f['deletionRanges']['push'](_0x587fdc);},{'priority':'high'}),_0x3e6aed['on']('insertColumns',(_0x4e4bed,_0x45c172)=>{const [_0xafbf4e,_0x3732a6={}]=_0x45c172;if(!_0x28dd3f)return;const _0x18fea7=_0x3732a6['at']||0x0,_0x5b4502=_0x3732a6['columns']||0x1;_0x28dd3f['columnInsertionIndexes']=new Array(_0x5b4502)['fill'](_0x18fea7)['map']((_0x2e54ea,_0x292ac7)=>_0x2e54ea+_0x292ac7);for(const {cell:_0x347f23}of _0x3e6aed['createTableWalker'](_0xafbf4e,{'startColumn':_0x18fea7,'endColumn':_0x18fea7+_0x5b4502-0x1}))_0x28dd3f['columnInsertionRanges']['push'](_0x2ae431['model']['createRangeOn'](_0x347f23));},{'priority':'low'}),_0x3e6aed['on']('insertRows',(_0x6ba8d2,_0x4ad3f9)=>{const [_0x409d41,_0x5e0d9f={}]=_0x4ad3f9;if(!_0x28dd3f)return;const _0x4b6bcc=_0x5e0d9f['at']||0x0,_0x425140=_0x5e0d9f['rows']||0x1;_0x28dd3f['rowInsertionIndexes']=new Array(_0x425140)['fill'](_0x4b6bcc)['map']((_0x39ce5e,_0x8e18fb)=>_0x39ce5e+_0x8e18fb);for(const {cell:_0x5100dd}of _0x3e6aed['createTableWalker'](_0x409d41,{'startRow':_0x4b6bcc,'endRow':_0x4b6bcc+_0x425140-0x1}))_0x28dd3f['rowInsertionRanges']['push'](_0x2ae431['model']['createRangeOn'](_0x5100dd));},{'priority':'low'}),_0x10ef9f['descriptionFactory']['registerDescriptionCallback'](_0x4a8953=>{if(_0x4a8953['subType']&&_0x4a8953['subType']['startsWith']('tablePaste'))return _0x4a8953['previous']?{}:{'type':'insertion','content':o(_0x2ae431['locale'],'*Replace\x20table\x20cells*')};});const _0x44e42e=()=>!0x1;for(const _0x386b41 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x10ef9f['_suggestionFactory']['registerCustomCallback']('insertion',_0x386b41,'join',_0x44e42e),_0x10ef9f['_suggestionFactory']['registerCustomCallback']('deletion',_0x386b41,'join',_0x44e42e),_0x10ef9f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x386b41,'join',_0x44e42e);_0x10ef9f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x44e42e),_0x10ef9f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5d6f0d,_0x1900c0,_0x5d8317)=>{const _0x30c777=_0x5d6f0d['map'](_0x4323b6=>_0x4323b6['getContainedElement']())['filter'](_0x427ea0=>_0x427ea0),_0x25174c=new Map(_0x30c777['map'](_0x276d6e=>[_0x276d6e,null]));if(_0x28dd3f){for(const {element:_0x15a397,attributes:_0x231ed6}of _0x28dd3f['cells'])_0x231ed6&&_0x25174c['set'](_0x15a397,_0x231ed6);}else{if(_0x5d8317&&_0x5d8317['markerAttributes'])for(const [_0x18ed1f,_0x35dfb7]of Object['entries'](_0x5d8317['markerAttributes'])){const _0x22fb93=_0x2ae431['model']['markers']['get'](_0x18ed1f),_0x174a92=_0x22fb93?_0x22fb93['getRange']()['getContainedElement']():null;_0x174a92&&_0x25174c['set'](_0x174a92,_0x35dfb7);}}_0x2ae431['model']['change'](_0x670ecf=>{for(const [_0x4ef2cd,_0x5bb081]of _0x25174c)_0x670ecf['setAttributes']({...Ce,..._0x5bb081},_0x4ef2cd);});});const _0x4544c4=(_0x45de31,_0x552d1f)=>{_0x10ef9f['_suggestionFactory']['registerCustomCallback'](_0x45de31,'tablePaste',_0x552d1f,(_0x20b0a9,_0x5cdc6e,_0x4318d1)=>{_0x2ae431['model']['change'](_0x1d852d=>{const _0x458ab2=[];for(const _0x2fb784 of _0x20b0a9){const _0x391834=_0x2fb784['start']['nodeAfter'];_0x391834['is']('element','tableCellSuggestion')&&_0x458ab2['push'](_0x391834);}_0x10ef9f['_suggestionFactory']['getSuggestionCallback'](_0x45de31,null,_0x552d1f)(_0x20b0a9,_0x5cdc6e,_0x4318d1);for(const _0x38f810 of _0x458ab2)'$graveyard'!=_0x38f810['root']['rootName']&&_0x1d852d['unwrap'](_0x38f810);});});};_0x4544c4('insertion','accept'),_0x4544c4('insertion','discard'),_0x4544c4('deletion','accept'),_0x4544c4('deletion','discard'),_0x10ef9f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x359d06=>{const _0x20e37e=_0x359d06['map'](_0x279fc1=>_0x279fc1['getContainedElement']()),_0x27860b=_0x20e37e[0x0]['findAncestor']('table'),{minRow:_0x1e58e8,maxRow:_0x105e28}=_0x4a6ff1['_getCoordsForCells'](_0x20e37e);_0x3e6aed['removeRows'](_0x27860b,{'at':_0x1e58e8,'rows':_0x105e28-_0x1e58e8+0x1});}),_0x10ef9f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x408c77=>{const _0x22f9fe=_0x408c77['map'](_0x2930f5=>_0x2930f5['getContainedElement']()),_0x1d4003=_0x22f9fe[0x0]['findAncestor']('table'),{minColumn:_0x21b77f,maxColumn:_0x551201}=_0x4a6ff1['_getCoordsForCells'](_0x22f9fe);_0x3e6aed['removeColumns'](_0x1d4003,{'at':_0x21b77f,'columns':_0x551201-_0x21b77f+0x1});});const _0x27f3c7=(_0x533290,_0x35d8c7)=>{if(!_0x35d8c7['subType']||!_0x35d8c7['subType']['startsWith']('tablePaste'))return;const _0x50c804=_0x35d8c7['attributes']['tablePasteChainId'],_0xc7f908=_0x10ef9f['getSuggestions']()['filter'](_0x7252b2=>_0x7252b2['isInContent']&&_0x7252b2['attributes']&&_0x7252b2['attributes']['tablePasteChainId']==_0x50c804);_0xc7f908['length']&&_0x35d8c7['getAllAdjacentSuggestions']()['length']!=_0xc7f908['length']&&_0xc7f908['reduce']((_0x165ef4,_0x57a08c)=>(_0x165ef4['next']=_0x57a08c,_0x57a08c['previous']=_0x165ef4,_0x57a08c));};function _0x3ef3c0(_0x247999,_0x2be037=!0x0){const {id:_0x44a712}=_0x10ef9f['_splitMarkerName'](_0x247999['markerName']),_0x984ee=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x19c328=_0x10ef9f['activeMarkers']['includes'](_0x247999['markerName']);return _0x19c328&&_0x984ee['push']('ck-suggestion-marker--active'),{'classes':_0x984ee,'attributes':{'data-suggestion':_0x44a712},'priority':_0x19c328&&_0x2be037?0xbc2:0xbb8};}_0x10ef9f['on']('suggestionLoaded',_0x27f3c7,{'priority':'high'}),_0x10ef9f['on']('suggestionUnloaded',_0x27f3c7,{'priority':'high'}),_0x2ae431['model']['document']['registerPostFixer'](()=>{let _0x2ab31f=!0x1;const _0x5ee268=Array['from'](_0x2ae431['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x257f71,data:_0x221b40}of _0x5ee268){const {group:_0xddbf49,type:_0x166c51,id:_0x2e1364}=_0x10ef9f['_splitMarkerName'](_0x257f71);if('suggestion'!=_0xddbf49||'deletion'!=_0x166c51||_0x221b40['oldRange'])continue;if(!_0x10ef9f['hasSuggestion'](_0x2e1364))continue;const _0xb49fb8=_0x10ef9f['getSuggestion'](_0x2e1364)['getRanges'](),_0x3f4c23=_0x2ae431['plugins']['get']('Users')['me'];for(const _0x471d26 of _0x10ef9f['getSuggestions']()){if(!_0x471d26['isInContent']||_0x471d26['author']!=_0x3f4c23)continue;if('formatBlock'!=_0x471d26['type']||'tablePasteCell'!=_0x471d26['subType'])continue;if(_0x471d26['getRanges']()['every'](_0x2ec8f9=>_0xb49fb8['some'](_0x528e9d=>_0x528e9d['containsRange'](_0x2ec8f9,!0x0)))){for(const _0x923b12 of _0x471d26['getAllAdjacentSuggestions']())_0x923b12['isInContent']&&(_0x923b12['discard'](),_0x2ab31f=!0x0);}}}return _0x2ab31f;}),_0x2ae431['model']['document']['registerPostFixer'](_0x6f5780=>{const _0x53b3e0=_0x2ae431['commands']['get']('redo');if(!_0x53b3e0||!_0x53b3e0['_createdBatches']['has'](_0x6f5780['batch']))return!0x1;let _0x33c629=!0x1;const _0x1d66a8=_0x2ae431['plugins']['get']('Users')['me'],_0x3f7c42=_0x2ae431['model']['document']['differ']['getChanges'](),_0x886136=Array['from'](_0x2ae431['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2d5892,data:_0xa422f4})=>{const {group:_0x2cee60,subType:_0x58f3f5,authorId:_0x2cb9f2}=_0x10ef9f['_splitMarkerName'](_0x2d5892);return'suggestion'==_0x2cee60&&'tablePaste'==_0x58f3f5&&_0x2cb9f2==_0x1d66a8['id']&&!_0xa422f4['oldRange'];});for(const _0xcd790d of _0x3f7c42){if('insert'!=_0xcd790d['type']||'tableCellSuggestion'!=_0xcd790d['name']||0x1!=_0xcd790d['length'])continue;const _0x4d326c=_0x6f5780['createRange'](_0xcd790d['position'],_0xcd790d['position']['getShiftedBy'](0x1));if(!_0x886136['find'](({data:_0x5a16c5})=>_0x5a16c5['newRange']['isEqual'](_0x4d326c))){for(const {name:_0xea4eed,data:_0x5748e5}of _0x886136)if(_0x4d326c['containsRange'](_0x5748e5['newRange'])){_0x6f5780['updateMarker'](_0xea4eed,{'range':_0x4d326c}),_0x33c629=!0x0;break;}}}return _0x33c629;}),_0x2ae431['model']['document']['registerPostFixer'](_0x57cc3c=>{let _0x4c2897=!0x1;const _0x1b4b12=_0x2ae431['plugins']['get']('Users')['me'],_0x424162=_0x10ef9f['getSuggestions']()['filter'](_0x3167ce=>_0x3167ce['isInContent']&&_0x3167ce['author']==_0x1b4b12),_0x1c3246=new Set(),_0x2fc24c=new Set();for(const _0x355620 of _0x424162)if('tablePaste'==_0x355620['subType'])for(const _0x2d415f of _0x355620['getMarkers']()){const _0x149a8d=_0x2d415f['getRange']()['getContainedElement']();if(_0x149a8d){if(_0x149a8d['is']('element','tableCellSuggestion')&&Pe(_0x149a8d)){_0x355620['removeMarker'](_0x2d415f['name']),_0x1c3246['add'](_0x149a8d),_0x4c2897=!0x0;const _0x1b859f=_0x149a8d['nextSibling'],_0x58df5d=_0x149a8d['previousSibling'],_0x22adce=_0x1b859f&&_0x1b859f['is']('element','tableCellSuggestion'),_0x46d152=_0x58df5d&&_0x58df5d['is']('element','tableCellSuggestion');_0x22adce&&!_0x1c3246['has'](_0x1b859f)&&_0x2fc24c['add'](_0x1b859f),_0x46d152&&!_0x1c3246['has'](_0x58df5d)&&_0x2fc24c['add'](_0x58df5d);}else _0x149a8d['is']('element','paragraph')&&_0x149a8d['isEmpty']&&(_0x355620['removeMarker'](_0x2d415f['name']),_0x4c2897=!0x0);}}else{if('tablePasteCell'==_0x355620['subType']){if(!_0x355620['attributes']||!_0x355620['attributes']['tablePasteChainId'])continue;const _0x293c58=_0x355620['attributes']['markerAttributes'];if(_0x293c58&&Object['keys'](_0x293c58)['length'])continue;const _0x23e541=_0x355620['attributes']['tablePasteChainId'];let _0x14453f=!0x0,_0x165353=!0x0;for(const _0x6d3b36 of _0x424162)if(_0x6d3b36['subType']&&_0x6d3b36['subType']['startsWith']('tablePaste')){if(!_0x6d3b36['attributes']['tablePasteChainId']){_0x165353=!0x1;break;}if(_0x6d3b36['id']!=_0x355620['id']&&_0x6d3b36['attributes']['tablePasteChainId']==_0x23e541){_0x14453f=!0x1;break;}}_0x165353&&_0x14453f&&(_0x355620['removeMarkers'](),_0x4c2897=!0x0);}}for(const _0x580965 of _0x1c3246)_0x57cc3c['remove'](_0x580965);for(const _0x3a416a of _0x2fc24c)_0x57cc3c['unwrap'](_0x3a416a);return _0x4c2897;}),_0x2ae431['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x36114c,_0x31d294)=>_0x3ef3c0(_0x36114c),'converterPriority':'high'}),_0x2ae431['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x379efe,_0x1f6c94)=>_0x1f6c94['options']['showSuggestionHighlights']?_0x3ef3c0(_0x379efe,!0x1):null,'converterPriority':'high'});const _0x35848a=_0x2ae431['editing']['view'];this['listenTo'](_0x35848a['document'],'clipboardOutput',(_0xa6606c,_0x473892)=>{const _0x1483a9=[];for(const _0x1de0fd of _0x35848a['createRangeIn'](_0x473892['content'])['getItems']())_0x1de0fd['is']('element','suggestion-td')&&_0x1483a9['push'](_0x1de0fd);_0x35848a['change'](_0x209667=>{for(const _0x28689d of _0x1483a9)_0x209667['move'](_0x209667['createRangeIn'](_0x28689d),_0x209667['createPositionBefore'](_0x28689d)),_0x209667['remove'](_0x28689d);});});}}function Pe(_0x3f329b){if(_0x3f329b['isEmpty'])return!0x0;const _0x1b2e30=_0x3f329b['getChild'](0x0);return _0x1b2e30['is']('element','paragraph')&&_0x1b2e30['isEmpty'];}function he(_0x302151,_0x10a072={},_0x3de1ce){for(const {isAnchor:_0x40c3d7,cellHeight:_0xb69a7a,cellWidth:_0x214f52}of _0x3de1ce['createTableWalker'](_0x302151,{'includeAllSlots':!0x0,..._0x10a072}))if(!_0x40c3d7||0x1!=_0xb69a7a||0x1!=_0x214f52)return!0x1;return!0x0;}class vt extends _0x2ef393{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4f091e=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f091e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4f091e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4f091e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f091e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4f091e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4f091e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x376361,_0x335cc3){const _0x4377cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3130b3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x49d0b3=_0x335cc3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x241c87=_0x3130b3['getColumnGroupElement'](_0x49d0b3);let _0x4879a3=_0x241c87?_0x3130b3['getTableColumnsWidths'](_0x241c87):null,_0x3f1ed9=_0x49d0b3['getAttribute']('tableWidth')||null;const _0x1b35a0=_0x335cc3['tableWidth']||_0x3f1ed9,_0x2284e6=_0x335cc3['columnWidths']||_0x4879a3,_0x3dfa6a=this['editor']['plugins']['get']('Users')['me'];for(const _0x24e19b of _0x4377cd['getSuggestions']()){const _0x3a2d0d=_0x24e19b['getContainedElement']();if('resizeTable'===_0x24e19b['subType']&&_0x3a2d0d===_0x49d0b3){_0x24e19b['author']!==_0x3dfa6a&&_0x24e19b['discard']();const _0x5e8469=_0x24e19b['data']['commandParams'];_0x3f1ed9=_0x5e8469[0x0]['tableWidth'],_0x4879a3=_0x5e8469[0x0]['columnWidths'];break;}}_0x376361({'table':_0x49d0b3,'tableWidth':_0x1b35a0,'columnWidths':_0x2284e6}),_0x4377cd['markBlockFormat'](_0x49d0b3,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3f1ed9,'columnWidths':_0x4879a3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x223e48){if('formatBlock'!=_0x223e48['type']&&'formatInline'!=_0x223e48['type'])return;const {data:_0x9dda74}=_0x223e48;if(_0x9dda74&&'resizeTable'===_0x9dda74['formatGroupId']){const _0x3a5592='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3a5592)};}}}class _t extends _0x2ef393{['afterInit'](){const _0x54df75=this['editor'];_0x54df75['plugins']['has']('Template')&&_0x54df75['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x2ef393{['afterInit'](){const _0x317ff0=this['editor'];if(!_0x317ff0['commands']['get']('insertTableOfContents'))return;_0x317ff0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x53e470=_0x317ff0['plugins']['get']('TrackChangesEditing'),_0x282db6=_0x317ff0['locale'];_0x53e470['descriptionFactory']['registerElementLabel']('tableOfContents',_0x368edd=>o(_0x282db6,'ELEMENT_TABLE_OF_CONTENTS',_0x368edd));}}class Dt extends _0x2ef393{['afterInit'](){const _0x3ed2fc=this['editor'];if(!_0x3ed2fc['plugins']['has']('Title'))return;const _0x4f6144=_0x3ed2fc['plugins']['get']('TrackChangesEditing');_0x4f6144['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3ed2fc['locale'],'ELEMENT_TITLE')),_0x3ed2fc['model']['document']['registerPostFixer'](_0x380dfb=>{let _0x3d23a2=!0x1;const _0x253376=Array['from'](_0x3ed2fc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1dbf74,data:_0x128aa2}of _0x253376){const {group:_0x5bdf36}=_0x4f6144['_splitMarkerName'](_0x1dbf74);if('suggestion'!==_0x5bdf36||!_0x128aa2['newRange'])continue;const _0x236866=_0x128aa2['newRange'],_0x4fb2e4=_0x236866['end']['nodeBefore'];if(!_0x4fb2e4||!_0x4fb2e4['is']('element','title-content'))continue;if(!_0x236866['start']['isTouching'](_0x236866['end']))continue;const _0xc216ec=_0x3ed2fc['model']['schema']['getNearestSelectionRange'](_0x236866['end'],'forward');if(_0xc216ec&&_0xc216ec['isCollapsed']){const _0x441afe=_0x380dfb['createRange'](_0x236866['start'],_0xc216ec['start']);_0x441afe['isEqual'](_0x236866)||(_0x380dfb['updateMarker'](_0x1dbf74,{'range':_0x441afe}),_0x3d23a2=!0x0);}_0x3d23a2||(_0x380dfb['removeMarker'](_0x1dbf74),_0x3d23a2=!0x0);}return _0x3d23a2;});}}class Nt extends _0x2ef393{['afterInit'](){const _0x2c1d36=this['editor'],_0x12b152=_0x2c1d36['plugins']['get']('TrackChangesEditing');_0x2c1d36['plugins']['has']('UndoEditing')&&(_0x12b152['enableCommand']('undo'),_0x12b152['enableCommand']('redo'));}}class Mt extends _0x2ef393{static get['requires'](){return[jt];}['afterInit'](){const _0x1f00f2=this['editor'];if(!_0x1f00f2['plugins']['has']('TableCaptionEditing'))return;_0x1f00f2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x2ef393{['tableProperties'];['tableCellProperties'];constructor(_0x4107fb){super(_0x4107fb),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 _0x2f5045=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1a52e3 of this['tableProperties'])_0x2f5045['enableCommand'](_0x1a52e3,(_0x3d81a7,_0x52fdd7)=>{const _0x14b521=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1a52e3,[_0x14b521],this['tableProperties'],'tableProperties',_0x3d81a7,_0x52fdd7);});_0x2f5045['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2f5045['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f5045['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x594bc1,_0x1a8f10)=>this['handleDiscardAction'](this['tableProperties'],_0x594bc1,_0x1a8f10)),_0x2f5045['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x403041 of this['tableCellProperties'])_0x2f5045['enableCommand'](_0x403041,(_0x35dc5a,_0x507251)=>{const _0x36fbf2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x403041,_0x36fbf2,this['tableCellProperties'],'tableCellProperties',_0x35dc5a,_0x507251);});_0x2f5045['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2f5045['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f5045['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x34e3e7,_0x400226)=>this['handleDiscardAction'](this['tableCellProperties'],_0x34e3e7,_0x400226)),_0x2f5045['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2f5045['descriptionFactory']['registerDescriptionCallback'](_0x2eafee=>this['handleSuggestionDescription'](_0x2eafee));}['_handlePropertyChange'](_0x5408af,_0x127240,_0x499a91,_0x108a27,_0x29458c,_0xcc358b){const _0x464a8a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xcc358b['batch'],()=>{for(const _0x83397b of _0x127240){if(this['_getSuggestion'](_0x83397b,_0x108a27))_0x29458c(_0xcc358b);else{const _0x504915={};for(const _0x415710 of _0x499a91){const _0x1fac65=_0x83397b['getAttribute'](_0x415710);void 0x0!==_0x1fac65&&(_0x504915[_0x415710]=_0x1fac65);}_0x29458c(_0xcc358b),_0x464a8a['markBlockFormat'](_0x83397b,{'commandParams':[_0x504915]},[],_0x108a27);}}});}['handleDiscardAction'](_0x40eb39,_0x15e060,_0x2a1e97){const _0x1207aa=_0x15e060[0x0]['start']['nodeAfter'],_0x29faff=_0x2a1e97['commandParams'][0x0];this['editor']['model']['change'](_0x5be1cd=>{for(const _0x2c80d5 of _0x40eb39)void 0x0!==_0x29faff[_0x2c80d5]?_0x5be1cd['setAttribute'](_0x2c80d5,_0x29faff[_0x2c80d5],_0x1207aa):_0x5be1cd['removeAttribute'](_0x2c80d5,_0x1207aa);});}['handleSuggestionDescription'](_0x18bcbc){if(_0x18bcbc['data'])switch(_0x18bcbc['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'](_0x334efb,_0x340ebb){const _0x2dc050=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4b240d of _0x2dc050['getSuggestions']({'skipNotAttached':!0x0})){const _0xc77ebb=_0x4b240d['getContainedElement']();if(_0x4b240d['subType']===_0x340ebb&&_0xc77ebb===_0x334efb)return _0x4b240d;}return null;}}const m='$elementName';class p extends _0x2ef393{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x359423,_0x293611,E,V,U,O,G,F,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}constructor(_0x5b2383){function _0xae07b2(_0x3297eb){return _0x3297eb['map'](_0x1fdc08=>String['fromCharCode'](_0x1fdc08))['join']('');}super(_0x5b2383),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x292bc4,_0x47fceb,_0x4a9795,_0x531ab9)=>{this['_model']['change'](()=>{for(const _0x20a753 of[..._0x531ab9,..._0x4a9795])this['_model']['markers']['has'](_0x20a753)&&_0x5b2383['editing']['reconvertMarker'](_0x20a753);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5b2383['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(),_0x5b2383['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5b2383['config']['get']('trackChanges.trackFormatChanges'),_0x5b2383['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5b2383['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x5b2383,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xae07b2([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xae07b2([0x34,0x30,0x34,0x38,0x31,0x30,0x32,0x32]);}['init'](){const _0x667974=this['editor'],_0x5cf8ab=(_0x3f9726,_0x91284d)=>{if('attribute'!=_0x3f9726)return'ck-suggestion-marker-'+_0x3f9726;const _0x59ac02=_0x91284d['split']('|')[0x0];return this['_isBlockAttribute'](_0x59ac02)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x667974['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x500343=>{const {id:_0x143939,type:_0x1d24b6,subType:_0x53aae1}=this['_splitMarkerName'](_0x500343['markerName']),_0x3e72eb=['ck-suggestion-marker',_0x5cf8ab(_0x1d24b6,_0x53aae1)];let _0x21f6d2=0xbb8;return this['activeMarkers']['includes'](_0x500343['markerName'])&&(_0x3e72eb['push']('ck-suggestion-marker--active'),_0x21f6d2=0xbc2),'deletion'==_0x1d24b6&&(_0x21f6d2+=0x5),{'classes':_0x3e72eb,'attributes':{'data-suggestion':_0x143939},'priority':_0x21f6d2};}}),_0x667974['conversion']['for']('dataDowncast')['add'](_0x5069e8=>{_0x5069e8['on']('addMarker:suggestion',(_0x15411b,_0xd9a1a1,_0x1ac1d5)=>{if(!_0x1ac1d5['options']['showSuggestionHighlights'])return;const _0x4523ee=_0xd9a1a1['item'];if(!_0x4523ee)return;const _0x112ef6=_0x1ac1d5['mapper']['toViewElement'](_0x4523ee);_0x667974['model']['schema']['isObject'](_0x4523ee)&&_0x112ef6&&!_0x112ef6['getCustomProperty']('widget')&&_0x112ef6['is']('containerElement')&&_0x1227da(_0x112ef6,_0x1ac1d5['writer']);},{'priority':'high'});}),_0x667974['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4399d4,_0xf821b0)=>{if(!_0xf821b0['options']['showSuggestionHighlights'])return null;const {type:_0xc411f3,subType:_0x1e1941}=this['_splitMarkerName'](_0x4399d4['markerName']);return{'classes':['ck-suggestion-marker',_0x5cf8ab(_0xc411f3,_0x1e1941)],'priority':0xbb8};}});const _0x384f75=({showActiveMarkers:_0x1821e7=!0x0,isAttributeSuggestion:_0x10fe9c=!0x1}={})=>(_0x552973,_0x10f959,_0x3d10a3)=>{if(!_0x10f959['item'])return;const {id:_0x21ab6b}=this['_splitMarkerName'](_0x10f959['markerName']);if(_0x10fe9c){const _0x251e40=this['_suggestions']['get'](_0x21ab6b),_0x49b139=this['_getAttributeKey'](_0x251e40);if(!this['_isBlockAttribute'](_0x49b139))return;}if(_0x10f959['item']['is']('selection'))return void _0x3d10a3['consumable']['consume'](_0x10f959['item'],_0x552973['name']);const _0x299da2=_0x3d10a3['mapper']['toViewElement'](_0x10f959['item']);if(_0x10f959['item']['is']('element')&&_0x667974['model']['schema']['isBlock'](_0x10f959['item'])&&!_0x299da2['getCustomProperty']('addHighlight')){_0x3d10a3['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x299da2),_0x3d10a3['writer']['setAttribute']('data-suggestion',_0x21ab6b,_0x299da2),_0x3d10a3['mapper']['bindElementToMarker'](_0x299da2,_0x10f959['markerName']),_0x1821e7&&(this['activeMarkers']['includes'](_0x10f959['markerName'])?_0x3d10a3['writer']['addClass']('ck-suggestion-marker--active',_0x299da2):_0x3d10a3['writer']['removeClass']('ck-suggestion-marker--active',_0x299da2));for(const _0x8a95f4 of _0x667974['model']['createRangeIn'](_0x10f959['item'])['getItems']())_0x3d10a3['consumable']['consume'](_0x8a95f4,_0x552973['name']);_0x3d10a3['consumable']['consume'](_0x10f959['item'],_0x552973['name']);}};_0x667974['conversion']['for']('dataDowncast')['add'](_0x1e5d21=>{_0x1e5d21['on']('addMarker:suggestion:formatBlock',(_0x38f7ff,_0x23a071,_0x5c2c03)=>{_0x5c2c03['options']['showSuggestionHighlights']&&_0x384f75({'showActiveMarkers':!0x1})(_0x38f7ff,_0x23a071,_0x5c2c03);},{'priority':'highest'});}),_0x667974['conversion']['for']('dataDowncast')['add'](_0xc2c4ba=>{_0xc2c4ba['on']('addMarker:suggestion:attribute',(_0x54411e,_0x3ce7c0,_0x185e89)=>{_0x185e89['options']['showSuggestionHighlights']&&_0x384f75({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x54411e,_0x3ce7c0,_0x185e89);},{'priority':'highest'});}),_0x667974['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4176ab,_0x1346b7)=>_0x1346b7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4176ab['substr'](0xb)}}),_0x667974['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x368236,{writer:_0x4d5b8e})=>{let _0xbba597='suggestion:'+_0x368236['getAttribute']('suggestion-type')+':'+_0x368236['getAttribute']('id');return _0x368236['getAttribute']('marker-count')&&(_0xbba597+=':'+_0x368236['getAttribute']('marker-count')),_0x4d5b8e['createElement']('$marker',{'data-name':_0xbba597});}}),_0x667974['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x667974['conversion']['for']('editingDowncast')['add'](_0x5c1759=>{_0x5c1759['on']('addMarker:suggestion:formatBlock',_0x384f75(),{'priority':'high'});}),_0x667974['conversion']['for']('editingDowncast')['add'](_0x127524=>{_0x127524['on']('addMarker:suggestion:attribute',_0x384f75({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x667974['conversion']['for']('editingDowncast')['add'](_0x3098c8=>{_0x3098c8['on']('removeMarker:suggestion:formatBlock',(_0x4b25a4,_0x5ecb78,_0x2c5694)=>{const _0x4555a6=_0x2c5694['mapper']['markerNameToElements'](_0x5ecb78['markerName']);if(_0x4555a6){for(const _0x23ec5d of _0x4555a6)_0x23ec5d['getCustomProperty']('addHighlight')||(_0x2c5694['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x23ec5d),_0x2c5694['writer']['removeAttribute']('data-suggestion',_0x23ec5d),_0x2c5694['mapper']['unbindElementFromMarkerName'](_0x23ec5d,_0x5ecb78['markerName']));}},{'priority':'high'});}),_0x667974['conversion']['for']('editingDowncast')['add'](_0x44237d=>{_0x44237d['on']('removeMarker:suggestion:attribute',(_0x2e6548,_0x480e8b,_0x206147)=>{const _0x481e8b=_0x206147['mapper']['markerNameToElements'](_0x480e8b['markerName']);if(!_0x481e8b)return;const {id:_0x480bdc}=this['_splitMarkerName'](_0x480e8b['markerName']),_0x57c725=this['_suggestions']['get'](_0x480bdc),_0xcb4fa2=this['_getAttributeKey'](_0x57c725);if(this['_isBlockAttribute'](_0xcb4fa2)){for(const _0x4014dc of _0x481e8b)_0x4014dc['getCustomProperty']('addHighlight')||(_0x206147['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4014dc),_0x206147['writer']['removeAttribute']('data-suggestion',_0x4014dc),_0x206147['mapper']['unbindElementFromMarkerName'](_0x4014dc,_0x480e8b['markerName']));}},{'priority':'high'});}),_0x667974['model']['document']['registerPostFixer'](_0x112175=>{let _0x2909f6=!0x1;const _0x4d42c0=Array['from'](_0x667974['model']['document']['differ']['getChangedMarkers']()),_0x18d999=new Set();for(const {name:_0x33b624,data:_0x2a81c7}of _0x4d42c0){const {group:_0x592f75,type:_0x5f0fe5,subType:_0x116db2,id:_0x34ce4f}=this['_splitMarkerName'](_0x33b624);if('suggestion'!==_0x592f75)continue;const _0x23c92e=this['_suggestions']['get'](_0x34ce4f);if(null!=_0x2a81c7['newRange']){'formatInline'==_0x5f0fe5&&(_0x2909f6=_0x2909f6||Et(_0x2a81c7['newRange'],_0x33b624,_0x112175,_0x667974['model']['schema']));const _0x449269='attribute'==_0x5f0fe5&&this['_isBlockAttribute'](_0x116db2['split']('|')[0x0]);if(_0x2a81c7['newRange']['isCollapsed']||'$graveyard'==_0x2a81c7['newRange']['root']['rootName']||'formatBlock'==_0x5f0fe5&&!Ut(_0x2a81c7['newRange'])||_0x449269&&!Ut(_0x2a81c7['newRange'])||'deletion'==_0x5f0fe5&&!(!Tt(_0x52d4ae=_0x2a81c7['newRange'])&&!function(_0x1934e9){return _0x1934e9['start']['parent']==_0x1934e9['end']['nodeBefore']&&_0x1934e9['start']['isAtEnd'];}(_0x52d4ae)))_0x112175['removeMarker'](_0x33b624),_0x2909f6=!0x0;else{if(!_0x23c92e||!_0x23c92e['isInContent'])continue;_0x18d999['add'](_0x23c92e);}}}var _0x52d4ae;return _0x18d999['size']>0x0&&(_0x2909f6=!!this['_joinWithAdjacentSuggestions'](_0x18d999)||_0x2909f6),_0x2909f6;}),_0x667974['model']['document']['registerPostFixer'](_0x4d9ff6=>{let _0x5db025=!0x1;for(const _0x433fcb of _0x667974['model']['document']['differ']['getChanges']())if('insert'==_0x433fcb['type'])for(const _0x69d736 of this['_suggestions']['values']()){if(_0x69d736['isMultiRange']||!_0x69d736['isInContent'])continue;const _0x4cd53a='formatBlock'==_0x69d736['type'],_0x103e0e=this['_getAttributeKey'](_0x69d736),_0x20cd1f=_0x103e0e&&this['_isBlockAttribute'](_0x103e0e);if(!_0x4cd53a&&!_0x20cd1f)continue;const _0x3745f6=_0x69d736['getFirstRange']();if(_0x3745f6['start']['parent']!=_0x3745f6['end']['parent']&&!_0x3745f6['end']['isAtEnd']){const _0x1c854f=_0x667974['model']['createPositionAt'](_0x3745f6['start']['nodeAfter'],'end'),_0x14a08e=_0x667974['model']['createRange'](_0x3745f6['start'],_0x1c854f);_0x4d9ff6['updateMarker'](_0x69d736['getFirstMarker'](),{'range':_0x14a08e}),_0x5db025=!0x0;}}return _0x5db025;}),_0x667974['model']['document']['registerPostFixer'](_0x111385=>this['_processAttributeChanges'](_0x111385)),_0x667974['model']['document']['registerPostFixer'](_0x4d4619=>!_0x4d4619['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4d4619)),_0x667974['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x667974['model']['document']['on']('change:data',(_0x9c465d,_0x50a267)=>{if(!_0x50a267['isLocal']||_0x50a267['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x378487=_0x667974['model']['document']['differ']['getChanges']();if(0x0==_0x378487['length'])return;const _0x49954b=[],_0x300fa1=_0x378487['filter'](_0x5af92a=>'attribute'==_0x5af92a['type']),_0x1c47fb=_0x378487['filter'](_0x2709ed=>'insert'==_0x2709ed['type']&&'$text'!=_0x2709ed['name']),_0x2ea768=_0x378487['filter'](_0x2d297f=>'remove'==_0x2d297f['type']&&'$text'!=_0x2d297f['name']);for(const _0xa8859d of _0x300fa1)this['_isRegisteredAttribute'](_0xa8859d['attributeKey'])&&_0x49954b['push']({'key':_0xa8859d['attributeKey'],'newValue':_0xa8859d['attributeNewValue'],'oldValue':_0xa8859d['attributeOldValue'],'range':Ot(_0xa8859d['range'],_0x667974['model'])});for(const _0x349403 of _0x1c47fb){const _0x1caf2d=_0x2ea768['find'](_0x2277fe=>_0x2277fe['_element']===_0x349403['_element']);if(_0x1caf2d){const _0x352515=Ft(_0x349403['position']['nodeAfter'],_0x667974['model']);_0x1caf2d['name']!==_0x349403['name']&&_0x49954b['push']({'key':m,'newValue':_0x349403['name'],'oldValue':_0x1caf2d['name'],'range':_0x352515});for(const [_0x1d5c48,_0x244733]of _0x1caf2d['attributes']){if(!this['_isRegisteredAttribute'](_0x1d5c48))continue;const _0x283b8a=_0x349403['attributes']['get'](_0x1d5c48);_0x244733!==_0x283b8a&&_0x49954b['push']({'key':_0x1d5c48,'newValue':_0x283b8a,'oldValue':_0x244733,'range':_0x352515});}for(const [_0x23876d,_0x5a5d12]of _0x349403['attributes'])this['_isRegisteredAttribute'](_0x23876d)&&(_0x1caf2d['attributes']['has'](_0x23876d)||_0x49954b['push']({'key':_0x23876d,'newValue':_0x5a5d12,'oldValue':null,'range':_0x352515}));}}0x0!=_0x49954b['length']&&_0x667974['model']['enqueueChange'](_0x50a267,_0xef7297=>{const _0x2b0d62=_0x37bf61();for(const {range:_0x1a08bb,key:_0x231005,oldValue:_0x15780a,newValue:_0x12cddf}of _0x49954b)this['markAttributeChange'](_0x1a08bb,_0x231005,_0x15780a,_0x12cddf,{'groupId':_0x2b0d62});this['_reduceExistingSuggestions'](_0xef7297,_0x49954b);});},{'priority':'lowest'}),_0x667974['model']['markers']['on']('update:suggestion',(_0x293f57,_0xac2970,_0xd3d506)=>{if(null==_0xd3d506){const {id:_0x54bb42}=this['_splitMarkerName'](_0xac2970['name']),_0x2a1569=this['_suggestions']['get'](_0x54bb42);_0x2a1569&&_0x2a1569['addMarkerName'](_0xac2970['name']);}}),_0x667974['model']['document']['on']('change:data',()=>{const _0x3d59f5=Array['from'](_0x667974['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1d4fca=>'suggestion'===this['_splitMarkerName'](_0x1d4fca['name'])['group']);if(0x0===_0x3d59f5['length'])return;_0x3d59f5['sort']((_0x26b8f2,_0x17b133)=>{const _0x197ca5=_0x26b8f2['data']['oldRange'],_0x29c648=_0x17b133['data']['oldRange'];return null===_0x197ca5&&null===_0x29c648?0x0:null===_0x197ca5&&null!==_0x29c648?-0x1:null!==_0x197ca5&&null===_0x29c648?0x1:_0x197ca5['start']['isBefore'](_0x29c648['start'])?-0x1:0x1;});const _0x356bc1=new Set(),_0x42edba=new Set();for(const {name:_0xe1b312,data:_0x5ca99a}of _0x3d59f5){const {id:_0xb090cf}=this['_splitMarkerName'](_0xe1b312);if(null===_0x5ca99a['oldRange']){const _0x3189af=this['_handleNewSuggestionMarker'](_0xe1b312);_0x42edba['add'](_0x3189af);}else{const _0x4dd118=this['_suggestions']['get'](_0xb090cf);null!==_0x5ca99a['newRange']||_0x4dd118['isInContent']?(_0x356bc1['add'](_0x4dd118['head']),_0x42edba['add'](_0x4dd118)):this['_removeSuggestion'](_0x4dd118);}}_0x42edba['size']>0x0&&this['_refreshSuggestionsChain'](_0x42edba);for(const _0x2d3b6a of _0x356bc1)this['fire']('suggestionChanged',_0x2d3b6a);}),_0x667974['model']['on']('applyOperation',(_0x7f5040,_0x1d4ed7)=>{const _0x589482=_0x1d4ed7[0x0];if(!this['_suggestions']['size'])return;if(!_0x589482['isDocumentOperation'])return;if(_0x589482['batch']['isUndo']||!_0x589482['batch']['isLocal'])return;let _0x1064be,_0x301d69;switch(_0x589482['type']){case'insert':_0x1064be=_0x667974['model']['createPositionAt'](_0x589482['position']),_0x301d69=_0x1064be['getShiftedBy'](_0x589482['howMany']);break;case'split':_0x1064be=_0x667974['model']['createPositionAt'](_0x589482['splitPosition']),_0x301d69=_0x667974['model']['createPositionAt'](_0x589482['moveTargetPosition']);break;case'move':_0x1064be=_0x667974['model']['createPositionAt'](_0x589482['targetPosition']),_0x301d69=_0x1064be['getShiftedBy'](_0x589482['howMany']);break;default:return;}const _0x242379=_0x667974['model']['createRange'](_0x1064be,_0x301d69);_0x667974['model']['change'](()=>{for(const {suggestion:_0x3b4007,meta:_0x59c2f0}of this['_findSuggestions'](_0x242379)){if(_0x3b4007['isMultiRange'])continue;if('formatInline'==_0x3b4007['type'])continue;const _0x3c241e=this['_getAttributeKey'](_0x3b4007);if(_0x3c241e&&this['_isBlockAttribute'](_0x3c241e)&&'split'!=_0x589482['type'])continue;const _0x306132=_0x3b4007['data']&&_0x3b4007['data']['multipleBlocks'];('formatBlock'!=_0x3b4007['type']||'split'==_0x589482['type']&&!_0x306132)&&(_0x59c2f0['containsRangeInObject']||'insertion'==_0x3b4007['type']&&_0x59c2f0['isOwn']||_0x3b4007['getFirstRange']()['containsRange'](_0x242379)&&this['_breakSuggestionMarker'](_0x3b4007,_0x1064be,_0x301d69));}});},{'priority':'lowest'}),_0x667974['model']['on']('deleteContent',(_0x195772,_0x21c834)=>{const _0x9f63a9=_0x21c834[0x0],_0xb15161=_0x21c834[0x1];if(_0xb15161&&_0xb15161['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x9f63a9['isCollapsed'])return;const _0x26e15b=_0x667974['model']['schema'],{start:_0x3193f4,end:_0x40ef80}=_0x9f63a9['getFirstRange'](),_0x548bbc=_0x3193f4['nodeAfter']&&_0x26e15b['isLimit'](_0x3193f4['nodeAfter'])?null:_0x26e15b['getNearestSelectionRange'](_0x3193f4,'forward'),_0x2a8fa0=_0x40ef80['nodeBefore']&&_0x26e15b['isLimit'](_0x40ef80['nodeBefore'])?null:_0x26e15b['getNearestSelectionRange'](_0x40ef80,'backward'),_0x35d506=_0x667974['model']['createRange'](_0x548bbc?_0x548bbc['start']:_0x3193f4,_0x2a8fa0?_0x2a8fa0['end']:_0x40ef80);_0x667974['model']['change'](_0x350299=>{this['markDeletion'](_0x35d506);const _0x141f53=_0x667974['model']['schema']['getNearestSelectionRange'](_0x35d506['start']);_0x9f63a9['is']('documentSelection')?_0x350299['setSelection'](_0x141f53):_0x9f63a9['setTo'](_0x141f53);}),_0x195772['stop']();},{'priority':_0x529bfa['normal']+0xa}),_0x667974['model']['on']('insertContent',(_0x59993f,_0x118b9d)=>{const _0x3d53e1=_0x118b9d[_0x118b9d['length']-0x1];_0x3d53e1&&_0x3d53e1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x667974['model']['change'](()=>{let _0x51a928=_0x667974['model']['insertContent'](_0x118b9d[0x0],_0x118b9d[0x1],_0x118b9d[0x2],{'forceDefaultExecution':!0x0});if(!_0x51a928)return;_0x59993f['return']=_0x51a928['clone']();const _0x1acc97=_0x51a928['end']['nodeBefore'],_0x33977a=_0x667974['model']['schema'];_0x1acc97&&_0x33977a['isBlock'](_0x1acc97)&&!_0x33977a['isObject'](_0x1acc97)&&(_0x51a928=_0x667974['model']['createRange'](_0x51a928['start'],_0x667974['model']['createPositionAt'](_0x1acc97,'end'))),this['markInsertion'](_0x51a928);}),_0x59993f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x47f91f=new $(_0x667974,this['_suggestions']);_0x667974['commands']['add']('acceptSuggestion',_0x47f91f),this['enableCommand']('acceptSuggestion');const _0x11bbce=new B(_0x667974,this['_suggestions']);_0x667974['commands']['add']('discardSuggestion',_0x11bbce),this['enableCommand']('discardSuggestion'),_0x667974['commands']['add']('acceptAllSuggestions',new x(_0x667974,_0x47f91f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x667974['commands']['add']('discardAllSuggestions',new x(_0x667974,_0x11bbce,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x667974['commands']['add']('acceptSelectedSuggestions',new R(_0x667974,_0x47f91f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x667974['commands']['add']('discardSelectedSuggestions',new R(_0x667974,_0x11bbce,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1b1aa8=_0x667974['plugins']['get']('CommentsRepository');this['listenTo'](_0x1b1aa8,'addComment',(_0x3d2d7d,{threadId:_0x273b80})=>{const _0x269ebc=this['_suggestions']['get'](_0x273b80);_0x269ebc&&_0x269ebc['commentThread']&&0x1===_0x269ebc['commentThread']['length']&&this['_updateSuggestionData'](_0x273b80,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1b1aa8,'removeComment',(_0x370339,{threadId:_0x318e13})=>{const _0xeec44=this['_suggestions']['get'](_0x318e13);_0xeec44&&_0xeec44['commentThread']&&!_0xeec44['commentThread']['length']&&this['_updateSuggestionData'](_0x318e13,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1e3990){if(this['_adapter'])throw new _0x57467d('track-changes-adapter-already-set',this);this['_adapter']=_0x1e3990;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x450be0=!0x1,toJSON:_0x2cc99d=!0x1}={}){const _0x1d2d81=[];for(const _0x43fbaf of this['_suggestions']['values']())_0x450be0&&!_0x43fbaf['isInContent']||_0x1d2d81['push'](_0x43fbaf);return _0x2cc99d?_0x1d2d81['map'](_0x2265de=>_0x2265de['toJSON']()):_0x1d2d81;}['getSuggestion'](_0x53b2f6){const _0x122a29=this['_suggestions']['get'](_0x53b2f6);if(!_0x122a29)throw new _0x57467d('track-changes-suggestion-not-found',this);return _0x122a29;}['hasSuggestion'](_0x4cde98){return this['_suggestions']['has'](_0x4cde98);}['addSuggestionData'](_0x39598f){const {authorId:_0x3bdf9a,id:_0x49f53d,attributes:_0x2d32e6}=_0x39598f,[_0xeb95a4,_0x5be651]=_0x39598f['type']['split'](':'),_0x19a9e7=this['_suggestions']['get'](_0x49f53d)||this['_createSuggestion'](_0xeb95a4,_0x5be651,_0x49f53d,_0x3bdf9a,_0x2d32e6);if(this['_addThreadToSuggestion'](_0x19a9e7),this['_checkSuggestionCorrectness'](_0x19a9e7,_0xeb95a4,_0x5be651||null,_0x3bdf9a),_0x19a9e7['createdAt']=_0x39598f['createdAt'],_0x19a9e7['_isDataLoaded']=!0x0,_0x2d32e6&&_0x2d32e6['@external']){const _0x46933f=_0x2d32e6['@external'],_0xa679ce=this['_getExternalAuthor'](_0x46933f['authorName']);_0x19a9e7['authoredAt']=_0x46933f['createdAt'],_0x19a9e7['author']=_0xa679ce,_0x19a9e7['isExternal']=!0x0;}else _0x19a9e7['authoredAt']=_0x39598f['createdAt'];switch(_0x39598f['data']&&(_0x19a9e7['data']=_0x39598f['data']),_0x39598f['attributes']&&(_0x19a9e7['attributes']=_0x39598f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x19a9e7['_saved']=!0x0),this['_suggestionState']['get'](_0x19a9e7)){case'notReady':this['_suggestionState']['set'](_0x19a9e7,'dataReady');break;case'markerReady':_0x19a9e7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x19a9e7])),this['_refreshSuggestionsChain'](new Set([_0x19a9e7])),this['_suggestionState']['set'](_0x19a9e7,'ready'),this['fire']('suggestionLoaded',_0x19a9e7)):this['_suggestionState']['set'](_0x19a9e7,'removed');}return _0x19a9e7;}['acceptSuggestion'](_0xc105b7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x517f3a of _0xc105b7['getAllAdjacentSuggestions']())_0x517f3a['accept']();});});}['discardSuggestion'](_0x321781){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1122de of _0x321781['getAllAdjacentSuggestions']())_0x1122de['discard']();});});}['enableCommand'](_0x54e68b,_0x47497c){const _0x352e6e=this['editor']['commands']['get'](_0x54e68b);if(!_0x352e6e)throw new _0x57467d('track-changes-command-not-found',this,{'commandName':_0x54e68b});if(this['_enabledCommands']['has'](_0x352e6e))throw new _0x57467d('track-changes-enable-command-twice',this,{'commandName':_0x54e68b});this['_enabledCommands']['add'](_0x352e6e),_0x47497c&&_0x352e6e['on']('execute',(_0x3210d6,_0x35b238)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x35b238['length']>0x0&&_0x35b238[_0x35b238['length']-0x1]&&_0x35b238[_0x35b238['length']-0x1]['forceDefaultExecution']?_0x35b238['pop']():(_0x3210d6['return']=_0x47497c((..._0x5777e6)=>_0x352e6e['execute'](..._0x5777e6,{'forceDefaultExecution':!0x0}),..._0x35b238),_0x3210d6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1b3585){let _0xab283b,_0x1d970d;const _0x3a9154=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xab283b=_0x1b3585();}catch(_0x422d58){_0x1d970d=_0x422d58;}return _0x3a9154||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1d970d&&_0x57467d['rethrowUnexpectedError'](_0x1d970d,this),_0xab283b;}['markInsertion'](_0x4c9df9,_0x5d5067=null,_0x523ea8={}){if(_0x4c9df9['isCollapsed'])return null;const _0x3f8b60=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3a0018,meta:_0x4f5871}of this['_findSuggestions'](_0x4c9df9,'insertion'))if(_0x4f5871['isOwn']){if(!_0x4f5871['isNextTo']){if(_0x4f5871['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x3a0018,_0x523ea8))continue;return _0x3a0018;}if(Lt(_0x3a0018,_0x523ea8))return _0x3a0018;this['_breakSuggestionMarker'](_0x3a0018,_0x4c9df9['start'],_0x4c9df9['end']);break;}if(_0x5d5067==_0x3a0018['subType']&&Lt(_0x3a0018,_0x523ea8)){const _0x25ce33=_0x3a0018['getFirstRange']();return _0x25ce33['start']['isEqual'](_0x4c9df9['end'])?this['_setSuggestionRange'](_0x3a0018,this['_model']['createRange'](_0x4c9df9['start'],_0x25ce33['end'])):this['_setSuggestionRange'](_0x3a0018,this['_model']['createRange'](_0x25ce33['start'],_0x4c9df9['end'])),_0x3a0018;}}const _0x47b45a=_0x37bf61(),_0x2486c6=_0x3f8b60['id'],_0x10ba42=_0x5d5067?'insertion:'+_0x5d5067:'insertion',_0x374887=this['_setSuggestionData']({'id':_0x47b45a,'type':_0x10ba42,'createdAt':new Date(),'authorId':_0x2486c6,'attributes':_0x523ea8});return this['_addSuggestionMarker'](_0x10ba42,_0x47b45a,_0x2486c6,_0x4c9df9),_0x374887;}['markMultiRangeInsertion'](_0x15cb8c,_0x56f2fa='multi',_0x390a7b={}){const _0x5bee50=this['editor']['plugins']['get']('Users')['me'],_0x42aef6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x56f2fa,'join');for(const _0x4748f7 of this['getSuggestions']())if(_0x4748f7['author']['id']==_0x5bee50['id']&&'insertion'==_0x4748f7['type']&&_0x4748f7['subType']==_0x56f2fa&&Lt(_0x4748f7,_0x390a7b)&&(_0x42aef6(_0x4748f7['getRanges'](),_0x15cb8c)||_0x42aef6(_0x15cb8c,_0x4748f7['getRanges']()))){for(const _0x1440f4 of _0x15cb8c)_0x4748f7['addRange'](_0x1440f4);return _0x4748f7;}for(const {suggestion:_0x4a161b,meta:_0x4607e0}of this['_findSuggestions'](_0x15cb8c,'insertion')){if(!_0x4607e0['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4607e0['containsRangeInObject'])continue;if(!Lt(_0x4a161b,_0x390a7b))continue;let _0x1960cb=!0x0;for(const _0x5a8c74 of _0x4a161b['getRanges']())for(const _0x14f68a of _0x15cb8c)if(!_0x5a8c74['containsRange'](_0x14f68a)){_0x1960cb=!0x1;break;}if(_0x1960cb)return _0x4a161b;}const _0x4e24f2=_0x37bf61(),_0xfbdac6=_0x5bee50['id'],_0x4906e7='insertion:'+_0x56f2fa,_0x3c0ad6=this['_setSuggestionData']({'id':_0x4e24f2,'type':_0x4906e7,'createdAt':new Date(),'authorId':_0xfbdac6,'attributes':_0x390a7b});for(const _0x13309e of _0x15cb8c)this['_addSuggestionMarker'](_0x4906e7,_0x4e24f2,_0xfbdac6,_0x13309e,u['getMultiRangeId']());return _0x3c0ad6;}['markInlineFormat'](_0x23ced2,_0xfc546f,_0x3cd9da=null,_0x559a62={}){if(_0x3cd9da=_0x3cd9da||Vt(_0xfc546f),_0x23ced2['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3b643e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3cd9da,'accept');return this['forceDefaultExecution'](()=>_0x3b643e([_0x23ced2],_0xfc546f,_0x559a62)),null;}const _0x105f8b=this['editor']['plugins']['get']('Users')['me'],_0x41d0fb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5439a9,meta:_0x35d8dd}of this['_findSuggestions'](_0x23ced2,'insertion'))_0x35d8dd['isOwn']&&!_0x35d8dd['isInsideObject']&&_0x41d0fb['push'](..._0x5439a9['getRanges']());}const _0x2440fb=function(_0x4f203d,_0x595e4b){const _0x48d96e=[];for(const _0x5b1810 of _0x595e4b){const _0x32bc64=_0x4f203d['getIntersection'](_0x5b1810);_0x32bc64&&_0x48d96e['push'](_0x32bc64);}return _0x48d96e;}(_0x23ced2,_0x41d0fb),_0x35e826=function(_0xb5bbb7,_0xcef4fd){const _0x20b0db=[_0xb5bbb7];for(const _0x212e2b of _0xcef4fd){let _0x120bfc=0x0;for(;_0x120bfc<_0x20b0db['length'];){const _0x245391=_0x20b0db[_0x120bfc]['getDifference'](_0x212e2b);_0x20b0db['splice'](_0x120bfc,0x1,..._0x245391),_0x120bfc+=_0x245391['length'];}}return _0x20b0db;}(_0x23ced2,_0x41d0fb);_0x2440fb['length']&&this['_model']['change'](()=>{for(const _0x3520b4 of _0x2440fb){const _0x4aacd3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3cd9da,'accept');this['forceDefaultExecution'](()=>_0x4aacd3([_0x3520b4],_0xfc546f,_0x559a62));}});for(const _0x158366 of _0x35e826){let _0x140869=null,_0x28728e=_0x158366['start'],_0x3198e4=_0x158366['end'];for(const {suggestion:_0x266950,meta:_0xcdfb2f}of this['_findSuggestions'](_0x158366,'formatInline')){if(!_0xcdfb2f['isOwn'])continue;if(_0x266950['subType']!=_0x3cd9da)continue;if(!Lt(_0x266950,_0x559a62))continue;const _0x4ab884=_0x266950['getFirstRange']();if(_0x4ab884['containsRange'](_0x158366,!0x0))return null;_0x28728e=_0x28728e['isBefore'](_0x4ab884['start'])?_0x28728e:_0x4ab884['start'],_0x3198e4=_0x3198e4['isAfter'](_0x4ab884['end'])?_0x3198e4:_0x4ab884['end'],_0x140869?_0x4ab884['start']['isBefore'](_0x140869['getFirstRange']()['start'])?(_0x140869['removeMarkers'](),_0x140869=_0x266950):_0x266950['removeMarkers']():_0x140869=_0x266950;}const _0x4b83e5=this['_model']['createRange'](_0x28728e,_0x3198e4);if(_0x140869)this['_setSuggestionRange'](_0x140869,_0x4b83e5);else{const _0x5447d5=_0x37bf61(),_0x1eedb0=_0x105f8b['id'];this['_setSuggestionData']({'id':_0x5447d5,'type':'formatInline:'+_0x3cd9da,'data':_0xfc546f,'createdAt':new Date(),'authorId':_0x1eedb0,'attributes':_0x559a62}),this['_addSuggestionMarker']('formatInline:'+_0x3cd9da,_0x5447d5,_0x1eedb0,_0x4b83e5);}}return null;}['markBlockFormat'](_0xf329eb,_0x254510,_0x19b694=[],_0x1c3ac1=null,_0x4b158f={}){_0x254510['formatGroupId']||(_0x254510['formatGroupId']=_0x254510['commandName']),_0x254510['multipleBlocks']=_0xf329eb['is']('range'),_0x1c3ac1=_0x1c3ac1||Vt(_0x254510);const _0x1279f6=_0x19b694['map'](_0x2f87e0=>Ft(_0x2f87e0,this['_model'])),_0x5f3d59=_0xf329eb['is']('range')?_0xf329eb:Ft(_0xf329eb,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1e3907=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c3ac1,'accept');return this['forceDefaultExecution'](()=>_0x1e3907([_0x5f3d59],_0x254510,_0x4b158f)),null;}_0x1279f6['push'](_0x5f3d59);let _0x2f121d=!0x0;for(const _0x25e143 of _0x1279f6)if(!this['_rangeIsInLocalUserInsertion'](_0x25e143)){_0x2f121d=!0x1;break;}if(_0x2f121d&&'always'!==this['_trackFormatChanges']){const _0x511a12=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c3ac1,'accept');return this['forceDefaultExecution'](()=>_0x511a12([_0x5f3d59],_0x254510,_0x4b158f)),null;}let _0x14631b=null,_0x435122=_0x5f3d59['start'],_0x4d9837=_0x5f3d59['end'];for(const {suggestion:_0x5989d6,meta:_0x18b022}of this['_findSuggestions'](_0x5f3d59,'formatBlock')){if(!_0x18b022['isOwn'])continue;if(_0x18b022['isNextTo']||_0x18b022['containsRangeInObject']||_0x18b022['isInsideObject'])continue;if(_0x5989d6['data']['formatGroupId']!=_0x254510['formatGroupId'])continue;if(!Lt(_0x5989d6,_0x4b158f))continue;const _0x3f77de=_0x5989d6['getFirstRange']();if(_0x5989d6['subType']==_0x1c3ac1){if(_0x3f77de['containsRange'](_0x5f3d59,!0x0))return null;_0x435122=_0x435122['isBefore'](_0x3f77de['start'])?_0x435122:_0x3f77de['start'],_0x4d9837=_0x4d9837['isAfter'](_0x3f77de['end'])?_0x4d9837:_0x3f77de['end'],_0x14631b?_0x3f77de['start']['isBefore'](_0x14631b['getFirstRange']()['start'])?(_0x14631b['removeMarkers'](),_0x14631b=_0x5989d6):_0x5989d6['removeMarkers']():_0x14631b=_0x5989d6;}else{const _0x1d8bf1=_0x5f3d59['getIntersection'](_0x3f77de);this['_cutOutSuggestionMarker'](_0x5989d6,_0x1d8bf1);}}const _0x38617a=this['editor']['plugins']['get']('Users')['me'],_0xc903a9=_0x37bf61(),_0x1f829c=_0x38617a['id'];if(_0x14631b)return this['_setSuggestionRange'](_0x14631b,this['_model']['createRange'](_0x435122,_0x4d9837)),_0x14631b;{const _0x45da8e=this['_setSuggestionData']({'id':_0xc903a9,'type':'formatBlock:'+_0x1c3ac1,'data':_0x254510,'createdAt':new Date(),'authorId':_0x1f829c,'attributes':_0x4b158f});return this['_addSuggestionMarker']('formatBlock:'+_0x1c3ac1,_0xc903a9,_0x1f829c,this['_model']['createRange'](_0x435122,_0x4d9837)),_0x45da8e;}}['markMultiRangeBlockFormat'](_0x1034bc,_0x3320ce,_0x59c8e6=[],_0x8c1ad0=null,_0x4ee205={}){_0x3320ce['formatGroupId']||(_0x3320ce['formatGroupId']=_0x3320ce['commandName']);const _0x18cef5=_0x1034bc[0x0];_0x3320ce['multipleBlocks']=_0x18cef5['is']('range'),_0x8c1ad0=_0x8c1ad0||Vt(_0x3320ce);const _0x5474ca=_0x59c8e6['map'](_0x17d28e=>Ft(_0x17d28e,this['_model'])),_0x1c42ad=_0x18cef5['is']('range')?_0x1034bc:_0x1034bc['map'](_0x5d90b1=>Ft(_0x5d90b1,this['_model']));if('never'===this['_trackFormatChanges']){const _0x52333c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x8c1ad0,'accept');return this['forceDefaultExecution'](()=>_0x52333c(_0x1c42ad,_0x3320ce,_0x4ee205)),null;}_0x5474ca['push'](..._0x1c42ad);let _0x3f958f=!0x0;for(const _0x4f0dff of _0x5474ca)if(!this['_rangeIsInLocalUserInsertion'](_0x4f0dff)){_0x3f958f=!0x1;break;}if(_0x3f958f&&'always'!==this['_trackFormatChanges']){const _0x3baee5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x8c1ad0,'accept');return this['forceDefaultExecution'](()=>_0x3baee5(_0x1c42ad,_0x3320ce,_0x4ee205)),null;}const _0x5edf91=this['editor']['plugins']['get']('Users')['me'];for(const _0x1478bf of this['getSuggestions']()){if(_0x1478bf['author']['id']!=_0x5edf91['id'])continue;if('formatBlock'!=_0x1478bf['type']||_0x1478bf['data']['formatGroupId']!=_0x3320ce['formatGroupId'])continue;if(!Lt(_0x1478bf,_0x4ee205))continue;const _0x4f71d0=_0x1478bf['subType']==_0x8c1ad0;for(let _0xce62a7=0x0;_0xce62a7<_0x1c42ad['length'];_0xce62a7++){const _0x2f776d=_0x1c42ad[_0xce62a7];for(const _0x2f1bbf of _0x1478bf['getMarkers']()){const _0xd19e73=_0x2f1bbf['getRange']();if(_0x2f776d['isEqual'](_0xd19e73)){_0x4f71d0?(_0x1c42ad['splice'](_0xce62a7,0x1),_0xce62a7--):_0x1478bf['removeMarker'](_0x2f1bbf['name']);break;}}}}if(0x0==_0x1c42ad['length'])return null;const _0x3f08cc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x8c1ad0,'join');for(const _0x17b659 of this['getSuggestions']())if(_0x17b659['author']['id']==_0x5edf91['id']&&'formatBlock'==_0x17b659['type']&&_0x17b659['data']['formatGroupId']==_0x3320ce['formatGroupId']&&_0x17b659['subType']==_0x8c1ad0&&Lt(_0x17b659,_0x4ee205)&&(_0x3f08cc(_0x17b659['getRanges'](),_0x1c42ad)||_0x3f08cc(_0x1c42ad,_0x17b659['getRanges']()))){for(const _0x54fd2f of _0x1c42ad)_0x17b659['addRange'](_0x54fd2f);return _0x17b659;}const _0x50ab54=_0x37bf61(),_0x555782=_0x5edf91['id'],_0x351c0b='formatBlock:'+_0x8c1ad0,_0x5551a8=this['_setSuggestionData']({'id':_0x50ab54,'type':_0x351c0b,'data':_0x3320ce,'createdAt':new Date(),'authorId':_0x555782,'attributes':_0x4ee205});for(const _0x19de12 of _0x1c42ad)this['_addSuggestionMarker'](_0x351c0b,_0x50ab54,_0x555782,_0x19de12,u['getMultiRangeId']());return _0x5551a8;}['markDeletion'](_0x2e29b8,_0x264571=null,_0x4b080d={}){if(_0x2e29b8['isCollapsed'])return null;const _0x11568c=this['editor']['plugins']['get']('Users')['me'],_0xa117ef=new _0x4ca244(_0x2e29b8['start'],_0x2e29b8['end']);for(const {suggestion:_0x354039,meta:_0x2cee87}of this['_findSuggestions'](_0xa117ef,'insertion'))if(_0x2cee87['isOwn']&&!_0x2cee87['isNextTo']){if(_0x354039['isMultiRange']){const _0x4d5111=_0x354039['getRanges']()['filter'](_0x3c3c7e=>'$graveyard'!=_0x3c3c7e['root']['rootName']);_0x4d5111['every'](_0x4635f6=>_0xa117ef['containsRange'](_0x4635f6,!0x0))&&_0x354039['discard']();if(_0x4d5111['some'](_0x3afea3=>_0x3afea3['containsRange'](_0xa117ef,!0x0))){const _0x35f9fd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x264571,'accept');return this['forceDefaultExecution'](()=>_0x35f9fd([_0xa117ef],null,_0x4b080d)),null;}}else{const _0x194d6c=_0xa117ef['getIntersection'](_0x354039['getFirstRange']());null!==_0x194d6c&&_0x354039['_onDiscard']([_0x194d6c],null,_0x4b080d);}}if(_0xa117ef['detach'](),_0xa117ef['isCollapsed']||'$graveyard'==_0xa117ef['root']['rootName'])return null;let _0x487cb1=null,_0x41e1a6=_0xa117ef['start'],_0x184779=_0xa117ef['end'];const _0x197a5d=this['_findSuggestions'](_0xa117ef,'deletion');for(const {suggestion:_0x36a468,meta:_0x589700}of _0x197a5d){const _0x38e2ec=this['_model']['createRange'](_0x41e1a6,_0x184779);if(_0x589700['isOwn']&&(this['_mergeNestedSuggestions']||!_0x589700['containsRangeInObject']&&!_0x589700['isInsideObject'])){if(_0x36a468['isMultiRange']){if(!Lt(_0x36a468,_0x4b080d))continue;let _0x5ae282=!0x0;for(const _0x25e3dc of _0x36a468['getRanges']()){if(_0x25e3dc['containsRange'](_0x38e2ec,!0x0))return _0x36a468;_0x38e2ec['containsRange'](_0x25e3dc)||(_0x5ae282=!0x1);}_0x5ae282&&_0x36a468['discard']();}else{const _0x17d27b=_0x36a468['getFirstRange']();if(_0x17d27b['containsRange'](_0x38e2ec,!0x0))return _0x36a468;if(!Lt(_0x36a468,_0x4b080d)){_0x38e2ec['containsRange'](_0x17d27b)?_0x36a468['removeMarkers']():_0x17d27b['containsPosition'](_0x41e1a6)?_0x41e1a6=_0x17d27b['end']:_0x17d27b['containsPosition'](_0x184779)&&(_0x184779=_0x17d27b['start']);continue;}_0x41e1a6=_0x41e1a6['isBefore'](_0x17d27b['start'])?_0x41e1a6:_0x17d27b['start'],_0x184779=_0x184779['isAfter'](_0x17d27b['end'])?_0x184779:_0x17d27b['end'],_0x4b080d=Object['assign']({},_0x36a468['attributes']),_0x487cb1?_0x17d27b['start']['isBefore'](_0x487cb1['getFirstRange']()['start'])?(_0x487cb1['removeMarkers'](),_0x487cb1=_0x36a468):_0x36a468['removeMarkers']():_0x487cb1=_0x36a468;}}}if(_0x487cb1)return this['_setSuggestionRange'](_0x487cb1,this['_model']['createRange'](_0x41e1a6,_0x184779)),_0x487cb1;{const _0x811e13=_0x37bf61(),_0x1a0891=this['_model']['createRange'](_0x41e1a6,_0x184779),_0x3f2cea=_0x11568c['id'],_0x370595=_0x264571?'deletion:'+_0x264571:'deletion',_0x1caf54=this['_setSuggestionData']({'id':_0x811e13,'type':_0x370595,'createdAt':new Date(),'authorId':_0x3f2cea,'attributes':_0x4b080d});return this['_addSuggestionMarker'](_0x370595,_0x811e13,_0x3f2cea,_0x1a0891),_0x1caf54;}}['markMultiRangeDeletion'](_0x72931e,_0x54a288='multi',_0x400b8b={}){const _0x3cfbe8=this['editor']['plugins']['get']('Users')['me'],_0x13cd50=_0x72931e['map'](_0x16b956=>new _0x4ca244(_0x16b956['start'],_0x16b956['end'])),_0x4875e7=new Set();for(const {suggestion:_0x51feb3,meta:_0xad89a9}of this['_findSuggestions'](_0x13cd50,'insertion'))_0xad89a9['isOwn']&&!_0xad89a9['isNextTo']&&_0x4875e7['add'](_0x51feb3);for(const _0x4083ac of _0x4875e7)if(_0x4083ac['isMultiRange']){const _0x57f99a=_0x4083ac['getRanges']();(!_0x4083ac['attributes']||!_0x4083ac['attributes']['skipNestingCheck'])&&(_0x57f99a['every'](_0x37c4fd=>_0x13cd50['some'](_0x1c8419=>_0x1c8419['containsRange'](_0x37c4fd,!0x0)))&&_0x4083ac['discard']());if(_0x13cd50['every'](_0x20e539=>_0x57f99a['some'](_0xba37d8=>_0xba37d8['containsRange'](_0x20e539,!0x0)))){const _0x3a387d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x54a288,'accept');return this['forceDefaultExecution'](()=>_0x3a387d(_0x72931e,null,_0x400b8b)),null;}}else{const _0x329fa5=_0x4083ac['getFirstRange']();_0x13cd50['some'](_0x127a21=>_0x127a21['containsRange'](_0x329fa5,!0x0))&&_0x4083ac['discard']();if(_0x13cd50['every'](_0xbf3d84=>_0x329fa5['containsRange'](_0xbf3d84,!0x0))){const _0x2f0d84=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x54a288,'accept');return this['forceDefaultExecution'](()=>_0x2f0d84(_0x13cd50,null,_0x400b8b)),null;}}const _0x30bbb9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x54a288,'join');let _0x34a999=null;for(const _0x2bb5ad of this['getSuggestions']())if(_0x2bb5ad['author']['id']==_0x3cfbe8['id']&&_0x2bb5ad['isInContent']&&'deletion'==_0x2bb5ad['type']&&_0x2bb5ad['subType']==_0x54a288&&Lt(_0x2bb5ad,_0x400b8b)&&(_0x30bbb9(_0x2bb5ad['getRanges'](),_0x13cd50)||_0x30bbb9(_0x13cd50,_0x2bb5ad['getRanges']()))){if(_0x34a999){if(_0x2bb5ad['commentThread']&&_0x2bb5ad['commentThread']['length'])continue;for(const _0x2addbd of _0x2bb5ad['getRanges']())_0x34a999['isIntersectingWithRange'](_0x2addbd)||_0x34a999['addRange'](_0x2addbd);_0x2bb5ad['removeMarkers']();}else{_0x34a999=_0x2bb5ad;for(const _0x42759b of _0x13cd50)_0x2bb5ad['isIntersectingWithRange'](_0x42759b)||_0x2bb5ad['addRange'](_0x42759b);}}if(_0x34a999)return _0x34a999;_0x4875e7['clear']();for(const {suggestion:_0x5afca4,meta:_0x2e3486}of this['_findSuggestions'](_0x13cd50,'deletion'))_0x2e3486['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2e3486['containsRangeInObject']&&!_0x2e3486['isInsideObject'])&&Lt(_0x5afca4,_0x400b8b)&&_0x4875e7['add'](_0x5afca4);for(const _0x1203a6 of _0x4875e7){const _0x36c4c4=_0x1203a6['getRanges']();if(!_0x400b8b||!_0x400b8b['skipNestingCheck']){if(_0x13cd50['every'](_0x5365fb=>_0x36c4c4['some'](_0x3caff1=>_0x3caff1['containsRange'](_0x5365fb,!0x0))))return _0x1203a6;}(!_0x1203a6['attributes']||!_0x1203a6['attributes']['skipNestingCheck'])&&(_0x36c4c4['every'](_0x37f448=>_0x13cd50['some'](_0x5f32b4=>_0x5f32b4['containsRange'](_0x37f448,!0x0)))&&_0x1203a6['discard']());}const _0x144309=_0x37bf61(),_0x4c5569=_0x3cfbe8['id'],_0x2cd4d0='deletion:'+_0x54a288,_0x51370a=this['_setSuggestionData']({'id':_0x144309,'type':_0x2cd4d0,'createdAt':new Date(),'authorId':_0x4c5569,'attributes':_0x400b8b});for(const _0x5b21e2 of _0x13cd50)_0x5b21e2['detach'](),_0x5b21e2['isCollapsed']||'$graveyard'==_0x5b21e2['root']['rootName']||this['_addSuggestionMarker'](_0x2cd4d0,_0x144309,_0x4c5569,_0x5b21e2,u['getMultiRangeId']());return _0x51370a;}['markAttributeChange'](_0x5bc383,_0x453559,_0x35c178,_0xee6408,_0x1ef73e){if(_0x5bc383['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x35eb2b=this['editor']['plugins']['get']('Users')['me']['id'],_0x54fc9d=Array['from'](this['_suggestions']['values']())['filter'](_0x4afebe=>'attribute'==_0x4afebe['type']&&_0x4afebe['data']['key']==_0x453559&&_0x4afebe['isIntersectingWithRange'](_0x5bc383));if('default'===this['_trackFormatChanges']){const _0x4ac0cf=this['_findSuggestions'](_0x5bc383,'insertion')['filter'](({meta:_0x27564b})=>_0x27564b['isOwn']&&!_0x27564b['isInsideObject']&&!_0x27564b['isNextTo'])['map'](({suggestion:_0x452a1e})=>_0x452a1e);_0x54fc9d['unshift'](..._0x4ac0cf);}const _0x42722b=new Map([[_0x5bc383,_0x35c178]]);for(const _0x1a81da of _0x54fc9d){const _0x1d80da='attribute'==_0x1a81da['type']?_0x1a81da['data']['oldValue']:void 0x0,_0x573731=_0x1a81da['getFirstRange'](),_0x54147b=Array['from'](_0x42722b['keys']())['find'](_0x4d7362=>_0x4d7362['isIntersecting'](_0x573731));if(!_0x54147b)continue;const _0x197fe7=_0x54147b['getDifference'](_0x573731);this['_isBlockAttribute'](_0x453559)&&'insertion'==_0x1a81da['type']&&0x0!=_0x197fe7['length']||(_0x42722b['delete'](_0x54147b),_0x197fe7['forEach'](_0x330820=>{_0x42722b['set'](_0x330820,_0x35c178);}),'insertion'!=_0x1a81da['type']&&_0x1d80da!=_0xee6408&&_0x42722b['set'](_0x54147b['getIntersection'](_0x573731),_0x1d80da));}const _0xbdf06=[];for(const [_0x28884b,_0x4617da]of _0x42722b){const _0x297bd2=_0x37bf61(),_0x4e03d8={'key':_0x453559,'oldValue':_0x4617da,'newValue':_0xee6408};_0x453559['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':_0x453559});const _0x22d06c=('attribute:'+(_0x453559+'|'+Vt({'newValue':_0xee6408})))['substring'](0x0,0x3c),_0x28b0d5=this['_setSuggestionData']({'id':_0x297bd2,'type':_0x22d06c,'data':_0x4e03d8,'createdAt':new Date(),'authorId':_0x35eb2b,'attributes':_0x1ef73e});_0xbdf06['push'](_0x28b0d5),this['_addSuggestionMarker'](_0x22d06c,_0x297bd2,_0x35eb2b,_0x28884b);}return _0xbdf06;}['enableDefaultAttributesIntegration'](_0x44069e){this['enableCommand'](_0x44069e,(_0x1b3abd,..._0xf564e5)=>{this['_recordAttributeChanges'](()=>{_0x1b3abd(..._0xf564e5);});});}['registerBlockAttribute'](_0x460526){this['_blockAttributeKeys']['add'](_0x460526);}['registerInlineAttribute'](_0x7d6376){this['_inlineAttributeKeys']['add'](_0x7d6376);}['_getAttributeKey'](_0xc6a4b){return'attribute'==_0xc6a4b['type']?_0xc6a4b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xb6d357,_0x45e355){const _0x59500a=_0xb6d357['getFirstMarker']();this['_model']['change'](_0x6e3370=>{_0x6e3370['updateMarker'](_0x59500a,{'range':_0x45e355});});}['_addThreadToSuggestion'](_0xa5ffe3){const _0x3601aa=_0xa5ffe3['id'],_0x5d4555=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3601aa)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5d4555,'threadId':_0x3601aa,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x643c5d=this['_commentsRepository']['getCommentThread'](_0x3601aa);_0x643c5d['unbind']('isRemovable'),_0x643c5d['isRemovable']=!0x1,_0xa5ffe3['commentThread']=_0x643c5d;}['_checkSuggestionCorrectness'](_0x54282f,_0x2ea333,_0x215b11,_0x2029a9){if(_0x54282f['type']!=_0x2ea333||_0x54282f['subType']!=_0x215b11||_0x54282f['creator']['id']!=_0x2029a9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x57467d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x54c97,_0x430a32){const _0x324cf7=_0x54c97['getFirstRange']();if(_0x430a32['isEqual'](_0x324cf7))_0x54c97['removeMarkers']();else{if(_0x324cf7['containsRange'](_0x430a32)){const _0x9176e7=this['_model']['createPositionAt'](_0x430a32['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54c97,this['_model']['createRange'](_0x324cf7['start'],_0x9176e7));const _0x28b9bc=_0x37bf61(),_0x35c4b5=_0x54c97['creator']['id'],_0x1795fb=_0x54c97['type']+':'+_0x54c97['subType'];this['_setSuggestionData']({'id':_0x28b9bc,'type':_0x1795fb,'createdAt':new Date(),'authorId':_0x35c4b5,'data':_0x54c97['data'],'attributes':_0x54c97['attributes']});const _0x3474c6=this['_model']['createPositionAt'](_0x430a32['end']['parent'],'after'),_0x2c77ba=this['_model']['createRange'](_0x3474c6,_0x324cf7['end']);this['_addSuggestionMarker'](_0x1795fb,_0x28b9bc,_0x35c4b5,_0x2c77ba);}else{if(_0x324cf7['containsPosition'](_0x430a32['start'])){const _0x5b2e42=this['_model']['createPositionAt'](_0x430a32['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54c97,this['_model']['createRange'](_0x324cf7['start'],_0x5b2e42));}else{const _0x60057a=this['_model']['createPositionAt'](_0x430a32['end']['parent'],'after');this['_setSuggestionRange'](_0x54c97,this['_model']['createRange'](_0x60057a,_0x324cf7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3b5374){for(const {suggestion:_0xa3e197,meta:_0x16a277}of this['_findSuggestions'](_0x3b5374,'insertion')){if(!_0x16a277['isOwn'])continue;const _0x18a21c=_0xa3e197['getRanges']();for(const _0x16647d of _0x18a21c)if(!_0x3b5374['getDifference'](_0x16647d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2b7f73){const _0x113b41=this['editor']['plugins']['get']('Users')['getUser'](_0x2b7f73);if(!_0x113b41)throw new _0x57467d('track-changes-user-not-found',this);return _0x113b41;}['_getExternalAuthor'](_0x15bb5e){const _0x15e545=this['editor']['plugins']['get']('Users'),_0x5a4337=_0x16805c('external:'+_0x15bb5e),_0x1dbba2=_0x15e545['getUser'](_0x5a4337);return _0x1dbba2||_0x15e545['addUser']({'id':_0x5a4337,'name':_0x15bb5e});}['_createSuggestion'](_0x39a0ef,_0x44dd3b,_0x366411,_0x27e88d,_0x553376){const _0x24d96b=this['_getAuthorFromId'](_0x27e88d),_0x36ca41=this['_suggestionFactory']['buildSuggestion'](_0x39a0ef,_0x44dd3b,_0x366411,_0x24d96b,_0x553376,_0x3ed38f=>{this['_updateSuggestionData'](_0x366411,{'attributes':_0x3ed38f});const _0xa8f230=this['getSuggestion'](_0x366411);this['_joinWithAdjacentSuggestions'](new Set([_0xa8f230])),this['_refreshSuggestionsChain'](new Set([_0xa8f230]));});return this['listenTo'](_0x36ca41,'accept',()=>{this['_updateSuggestionData'](_0x366411,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x36ca41,'discard',()=>{this['_updateSuggestionData'](_0x366411,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x366411,_0x36ca41),this['_suggestionState']['set'](_0x36ca41,'notReady'),_0x36ca41;}['_splitMarkerName'](_0x54ba05){const _0x43d98d=_0x54ba05['split'](':');return{'group':_0x43d98d[0x0],'type':_0x43d98d[0x1],'subType':_0x43d98d['length']>=0x5?_0x43d98d[0x2]:null,'id':_0x43d98d['length']<0x5?_0x43d98d[0x2]:_0x43d98d[0x3],'authorId':_0x43d98d['length']<0x5?_0x43d98d[0x3]:_0x43d98d[0x4],'markerCount':0x6==_0x43d98d['length']?_0x43d98d[0x5]:null};}['_breakSuggestionMarker'](_0x5cde64,_0x40324d,_0x24f3da){const _0x1e408c=_0x5cde64['getFirstRange'](),_0x84eeda=_0x1e408c['start'],_0x16ff2e=_0x1e408c['end'];this['_setSuggestionRange'](_0x5cde64,this['_model']['createRange'](_0x84eeda,_0x40324d));const _0x20bd8f=_0x37bf61(),_0x1a2236=_0x5cde64['creator']['id'],_0x10e143=_0x5cde64['type']+(_0x5cde64['subType']?':'+_0x5cde64['subType']:'');this['_setSuggestionData']({'id':_0x20bd8f,'type':_0x10e143,'createdAt':new Date(),'authorId':_0x1a2236,'originalSuggestionId':_0x5cde64['id'],'attributes':_0x5cde64['attributes'],'data':_0x5cde64['data']});const _0x30fec6=this['_getAttributeKey'](_0x5cde64);('formatBlock'==_0x5cde64['type']||_0x30fec6&&this['_isBlockAttribute'](_0x30fec6))&&(_0x24f3da=this['_model']['createPositionBefore'](_0x24f3da['parent'])),this['_addSuggestionMarker'](_0x10e143,_0x20bd8f,_0x1a2236,this['_model']['createRange'](_0x24f3da,_0x16ff2e));}['_findSuggestions'](_0x47bded,_0xcbf832=null){const _0x346a18=[],_0x10d482=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x47bded)||(_0x47bded=[_0x47bded]);for(const _0x3c0ab2 of this['getSuggestions']()){if(!_0x3c0ab2['isInContent'])continue;if(_0xcbf832&&_0x3c0ab2['type']!=_0xcbf832)continue;let _0x1c51d1=!0x1;for(const _0x112400 of _0x3c0ab2['getRanges']()){for(const _0x51ea15 of _0x47bded){const _0x2f593f=_0x51ea15['start']['isEqual'](_0x112400['end'])||_0x51ea15['end']['isEqual'](_0x112400['start']);if(_0x2f593f||_0x51ea15['getIntersection'](_0x112400)){const _0x3b4702=_0x51ea15['containsRange'](_0x112400)&&Rt(this['_model']['schema'],_0x112400['start'],_0x51ea15),_0x525d25=_0x112400['containsRange'](_0x51ea15)&&Rt(this['_model']['schema'],_0x51ea15['start'],_0x112400);_0x346a18['push']({'suggestion':_0x3c0ab2,'meta':{'isOwn':_0x10d482==_0x3c0ab2['author'],'isNextTo':_0x2f593f,'isInsideObject':_0x3b4702,'containsRangeInObject':_0x525d25}}),_0x1c51d1=!0x0;break;}}if(_0x1c51d1)break;}}return _0x346a18;}['_addSuggestionMarker'](_0x109e5b,_0x145e40,_0x29f09e,_0x363540,_0x4fecec){this['_model']['change'](_0x56e500=>{let _0x599a7e='suggestion:'+_0x109e5b+':'+_0x145e40+':'+_0x29f09e;_0x4fecec&&(_0x599a7e=_0x599a7e+':'+_0x4fecec),_0x56e500['addMarker'](_0x599a7e,{'range':_0x363540,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3c4058){const _0x272b7c=_0x3c4058['previous'],_0x1c0c09=_0x3c4058['next'];_0x3c4058['previous']=null,_0x3c4058['next']=null,null!=_0x272b7c&&_0x272b7c['next']==_0x3c4058&&(_0x272b7c['next']=_0x1c0c09),null!=_0x1c0c09&&_0x1c0c09['previous']==_0x3c4058&&(_0x1c0c09['previous']=_0x272b7c),'ready'==this['_suggestionState']['get'](_0x3c4058)&&(this['_suggestionState']['set'](_0x3c4058,'removed'),this['fire']('suggestionUnloaded',_0x3c4058,_0x272b7c,_0x1c0c09));}['_setSuggestionData'](_0x19d088){const _0x3cc113=_0x19d088['id'],_0x150954=this['addSuggestionData'](_0x19d088);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x518b2b=this['editor']['plugins']['get']('PendingActions'),_0x4742cf=_0x150954['hasComments'],_0x598536=_0x150954['subType']?_0x150954['type']+':'+_0x150954['subType']:_0x150954['type'],_0x3bc798=this['editor']['locale'],_0x1f6447=_0x518b2b['add'](o(_0x3bc798,'PENDING_ACTION_SUGGESTION')),_0x1f50e3={'id':_0x3cc113,'type':_0x598536,'hasComments':_0x4742cf,'data':_0x19d088['data']||null,'originalSuggestionId':_0x19d088['originalSuggestionId']||null,'attributes':_0x150954['attributes']};this['_adapter']['addSuggestion'](_0x1f50e3)['then'](_0x35ad65=>{_0x150954['_saved']=!0x0,_0x518b2b['remove'](_0x1f6447),_0x35ad65&&_0x35ad65['createdAt']&&(this['_suggestions']['get'](_0x3cc113)['createdAt']=_0x35ad65['createdAt']);})['catch'](_0x184356=>{throw _0x1be2bd('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x150954['discard']();}),_0x150954['stopListening'](),this['_suggestions']['delete'](_0x150954['id']),this['_suggestionState']['delete'](_0x150954),_0x184356;});}return _0x150954;}['_isBlockAttribute'](_0x44951a){return this['_blockAttributeKeys']['has'](_0x44951a);}['_updateSuggestionData'](_0x532748,_0x1a8d19){const _0xd2bee2=this['editor']['plugins']['get']('PendingActions'),_0x3f8982=this['getSuggestion'](_0x532748);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3f8982['_saved']){const _0x4986a7=_0xd2bee2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x532748,_0x1a8d19)['then'](()=>{_0xd2bee2['remove'](_0x4986a7);});}else _0x3f8982['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x532748,_0x1a8d19);});}}['_getSuggestionData'](_0x5f7664){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x57467d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5f7664);}['_handleNewSuggestionMarker'](_0x5ca2dc){const {id:_0x34d965,type:_0xc941bf,subType:_0x299ab2,authorId:_0x2938a0}=this['_splitMarkerName'](_0x5ca2dc),_0x1106bd=this['_suggestions']['get'](_0x34d965)||this['_createSuggestion'](_0xc941bf,_0x299ab2,_0x34d965,_0x2938a0,{});switch(this['_checkSuggestionCorrectness'](_0x1106bd,_0xc941bf,_0x299ab2,_0x2938a0),this['_suggestionState']['get'](_0x1106bd)){case'notReady':this['_getSuggestionData'](_0x34d965)['then'](_0x263a0d=>{let _0x59d8d6=Promise['resolve']();_0x263a0d['hasComments']&&(_0x59d8d6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x34d965})),_0x59d8d6['then'](()=>{this['addSuggestionData'](_0x263a0d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1106bd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x34d965,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1106bd,'ready'),this['fire']('suggestionLoaded',_0x1106bd);break;case'ready':this['fire']('suggestionChanged',_0x1106bd);}return _0x1106bd['addMarkerName'](_0x5ca2dc),_0x1106bd;}['_refreshSuggestionsChain'](_0x221835){const _0x1fbc46=Array['from'](_0x221835),_0x369cdd=_0x1fbc46['filter'](_0x592bee=>'attribute'==_0x592bee['type']);this['_refreshAttributeSuggestionsChain'](_0x369cdd);const _0x30052c=_0x1fbc46['filter'](_0x5b3d65=>!_0x5b3d65['isMultiRange']&&'attribute'!=_0x5b3d65['type']),_0x24a6a0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xfdb37f=>!_0xfdb37f['isMultiRange']&&'attribute'!=_0xfdb37f['type']),_0x4012a2=_0x24a6a0['filter'](_0x2229d1=>!_0x221835['has'](_0x2229d1)),_0x148d41=new Map(_0x24a6a0['map'](_0x2abf8b=>[_0x2abf8b,this['_suggestionFactory']['getSuggestionCallback'](_0x2abf8b['type'],_0x2abf8b['subType'],'chain')])),_0x50d0d7=new Map(_0x24a6a0['map'](_0x2af250=>[_0x2af250,_0x2af250['getFirstRange']()])),_0x5ad1a3=new Set(),_0x56a98b=new Set();for(let _0x19d718=0x0;_0x19d718<_0x30052c['length'];_0x19d718++)_0x1c0cbf(_0x30052c[_0x19d718],_0x30052c,_0x19d718+0x1);for(let _0xc3b957=0x0;_0xc3b957<_0x30052c['length'];_0xc3b957++)_0x1c0cbf(_0x30052c[_0xc3b957],_0x4012a2,0x0);const _0x197538=new Set();for(let _0x3b6571=0x0;_0x3b6571<_0x30052c['length'];_0x3b6571++){const _0x22fdae=_0x30052c[_0x3b6571];!_0x56a98b['has'](_0x22fdae)&&_0x22fdae['previous']&&(_0x197538['add'](_0x22fdae['previous']),_0x22fdae['previous']['next']===_0x22fdae&&(_0x22fdae['previous']['next']=null),_0x22fdae['previous']=null),!_0x5ad1a3['has'](_0x22fdae)&&_0x22fdae['next']&&(_0x197538['add'](_0x22fdae['next']),_0x22fdae['next']['previous']===_0x22fdae&&(_0x22fdae['next']['previous']=null),_0x22fdae['next']=null);}function _0x1c0cbf(_0x583eec,_0x2c9924,_0x53d56a){for(let _0x363038=_0x53d56a;_0x363038<_0x2c9924['length'];_0x363038++){const _0x278016=_0x51591b(_0x583eec,_0x2c9924[_0x363038]);_0x278016&&(_0x278016[0x0]['next']=_0x278016[0x1],_0x278016[0x1]['previous']=_0x278016[0x0],_0x5ad1a3['add'](_0x278016[0x0]),_0x56a98b['add'](_0x278016[0x1]));}}function _0x51591b(_0x2463ab,_0x4649cf){if(_0x2463ab['author']['id']!==_0x4649cf['author']['id'])return null;const _0x273271=_0x148d41['get'](_0x2463ab)(_0x2463ab,_0x4649cf,_0x50d0d7['get'](_0x2463ab),_0x50d0d7['get'](_0x4649cf));if(!_0x273271)return null;return _0x148d41['get'](_0x4649cf)(_0x2463ab,_0x4649cf,_0x50d0d7['get'](_0x2463ab),_0x50d0d7['get'](_0x4649cf))?_0x273271[0x1]['commentThread']&&_0x273271[0x1]['commentThread']['length']?null:_0x273271:null;}_0x197538['size']&&this['_refreshSuggestionsChain'](_0x197538);}['_refreshAttributeSuggestionsChain'](_0x45b8f2){if(0x0==_0x45b8f2['length'])return;const _0x16634b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38b1ce=>'attribute'==_0x38b1ce['type']&&_0x38b1ce['_isDataLoaded']),_0x481bfb=[],_0x3a1c50=new Map();for(const _0x4e56a0 of _0x16634b){const _0x3f4307=_0x16805c(_0x4e56a0['attributes']);_0x3a1c50['has'](_0x3f4307)||(_0x3a1c50['set'](_0x3f4307,_0x481bfb['length']),_0x481bfb['push']([]));const _0x58fdc2=_0x3a1c50['get'](_0x3f4307);_0x481bfb[_0x58fdc2]['push'](_0x4e56a0);}!(function(){_0x481bfb['sort']((_0x345394,_0x11eabf)=>{const _0x5930c9=_0x345394[0x0]['createdAt'],_0x489a89=_0x11eabf[0x0]['createdAt'];return _0x5930c9==_0x489a89?_0x345394[0x0]['attributes']['groupId']<_0x11eabf[0x0]['attributes']['groupId']?-0x1:0x1:_0x5930c9<_0x489a89?-0x1:0x1;});for(const _0x42abfe of _0x481bfb)_0x42abfe['sort']((_0x2c31dc,_0x3c966c)=>_0x2c31dc['id']<_0x3c966c['id']?-0x1:0x1);}());for(let _0x4adbca=0x0;_0x4adbca<_0x481bfb['length'];_0x4adbca++){if(0x0==_0x481bfb[_0x4adbca]['length'])continue;const _0xa7c896=[];for(let _0x3930bc=_0x4adbca+0x1;_0x3930bc<_0x481bfb['length'];_0x3930bc++)0x0!=_0x481bfb[_0x3930bc]['length']&&_0x21ea3e(_0x481bfb[_0x4adbca],_0x481bfb[_0x3930bc])&&_0xa7c896['push'](_0x3930bc);for(const _0x448ed0 of _0xa7c896)_0x481bfb[_0x4adbca]=_0x481bfb[_0x4adbca]['concat'](_0x481bfb[_0x448ed0]),_0x481bfb[_0x448ed0]=[];}for(const _0x10c0c1 of _0x481bfb)for(let _0x2fb7aa=0x0;_0x2fb7aa<_0x10c0c1['length'];_0x2fb7aa++)_0x10c0c1[_0x2fb7aa]['next']=_0x10c0c1[_0x2fb7aa+0x1]||null;for(const _0x19bf10 of _0x481bfb)for(let _0x402cf5=0x0;_0x402cf5<_0x19bf10['length'];_0x402cf5++)_0x19bf10[_0x402cf5]['previous']=_0x19bf10[_0x402cf5-0x1]||null;function _0x21ea3e(_0x3c6e1d,_0x44e42b){if(_0x3c6e1d[0x0]['attributes']['groupId']!==_0x44e42b[0x0]['attributes']['groupId']&&_0x3c6e1d[0x0]['author']!==_0x44e42b[0x0]['author'])return!0x1;if(!function(_0x269161,_0x349840){if(!_0x269161['hasComments']&&!_0x349840['hasComments'])return!0x0;if(_0x269161['hasComments']&&_0x349840['hasComments'])return!0x1;if(_0x269161['hasComments']&&_0x349840['createdAt']<_0x269161['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x349840['hasComments']&&_0x269161['createdAt']<_0x349840['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3c6e1d[0x0],_0x44e42b[0x0]))return!0x1;const _0x327ca5=Bt(_0x3c6e1d[0x0]['attributes'],'groupId'),_0x58e922=Bt(_0x44e42b[0x0]['attributes'],'groupId');if(!_0x35d9e3(_0x327ca5,_0x58e922))return!0x1;return!!_0x3c6e1d['every'](_0x4ae95c=>_0x44e42b['some'](_0x3c5360=>_0x4ae95c['getFirstRange']()['isEqual'](_0x3c5360['getFirstRange']())))&&_0x44e42b['every'](_0x2001c3=>_0x3c6e1d['some'](_0x265272=>_0x2001c3['getFirstRange']()['isEqual'](_0x265272['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x9e6eb8){const _0x4bd03f=Array['from'](_0x9e6eb8),_0xcd6d4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1288a4=_0xcd6d4['filter'](_0x163119=>!_0x9e6eb8['has'](_0x163119)),_0x50f04a=new Map(_0x4bd03f['map'](_0x16a4fd=>[_0x16a4fd,this['_suggestionFactory']['getSuggestionCallback'](_0x16a4fd['type'],_0x16a4fd['subType'],'join')])),_0x44fb07=new Map(_0xcd6d4['map'](_0x39e744=>[_0x39e744,_0x39e744['getRanges']()]));for(let _0x575956=0x0;_0x575956<_0x4bd03f['length'];_0x575956++){if(_0x1423d7(this,_0x4bd03f[_0x575956],_0x4bd03f,_0x575956+0x1))return!0x0;}for(let _0x65cd38=0x0;_0x65cd38<_0x4bd03f['length'];_0x65cd38++){if(_0x1423d7(this,_0x4bd03f[_0x65cd38],_0x1288a4,0x0))return!0x0;}return!0x1;function _0x1423d7(_0xfe1ee0,_0x327028,_0x2618f5,_0x3959e9){for(let _0x241794=_0x3959e9;_0x241794<_0x2618f5['length'];_0x241794++){const _0x1b4848=_0x2618f5[_0x241794];if(_0x1b4848['type']!==_0x327028['type']||_0x1b4848['author']['id']!==_0x327028['author']['id']||_0x1b4848['subType']!==_0x327028['subType'])continue;if(!Pt(_0x327028,_0x1b4848,['groupId']))continue;if('attribute'==_0x327028['type']&&_0x327028['data']['oldValue']!=_0x1b4848['data']['oldValue'])continue;if('attribute'==_0x327028['type']&&_0xfe1ee0['_isBlockAttribute'](_0x327028['data']['key']))continue;if('formatBlock'==_0x327028['type']){const _0x2a7918=_0xfe1ee0['editor']['model'],_0xc6e695=_0x327028['getContainedElement']();if(_0xc6e695&&(_0x2a7918['schema']['isObject'](_0xc6e695)||_0x2a7918['schema']['isLimit'](_0xc6e695)))continue;}const _0x1ee7e0=_0x50f04a['get'](_0x327028),_0x5331ca=_0x44fb07['get'](_0x327028),_0x130728=_0x44fb07['get'](_0x1b4848),_0x5b8d5e=_0x327028['commentThread']&&_0x327028['commentThread']['length'],_0x4c9d76=_0x1b4848['commentThread']&&_0x1b4848['commentThread']['length'];if(!_0x5b8d5e&&_0x1ee7e0(_0x130728,_0x5331ca))return _0xfe1ee0['_joinSuggestions'](_0x1b4848,_0x327028),_0x44fb07['delete'](_0x327028),!0x0;if(!_0x4c9d76&&_0x1ee7e0(_0x5331ca,_0x130728))return _0xfe1ee0['_joinSuggestions'](_0x327028,_0x1b4848),_0x44fb07['delete'](_0x1b4848),!0x0;}return!0x1;}}['_joinSuggestions'](_0x9ee8b2,_0x22e0dd){if(_0x9ee8b2['isMultiRange']){for(const _0x3660f3 of _0x22e0dd['getRanges']())_0x9ee8b2['addRange'](_0x3660f3);}else{const _0x18d74d=_0x22e0dd['getFirstRange']()['end'];this['_setSuggestionRange'](_0x9ee8b2,this['_model']['createRange'](_0x9ee8b2['getFirstRange']()['start'],_0x18d74d));}_0x22e0dd['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1c4fa0,_0x2db908){const _0x5c9939=_0x1c4fa0['startsWith']('format')||_0x1c4fa0['startsWith']('attribute')?'FORMATTING':_0x1c4fa0['toUpperCase']();return o(this['editor']['locale'],_0x2db908+'_'+_0x5c9939+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x32eb90=this['editor'];if(!_0x32eb90['ui'])return;const {ariaLiveAnnouncer:_0x43d562}=_0x32eb90['ui'];_0x2809e4(this['_model'],({left:_0x4ad2bd,entered:_0x4b053e})=>{for(const _0x569a06 of _0x4ad2bd){const {group:_0x5efde6,type:_0x18cb18}=this['_splitMarkerName'](_0x569a06['name']);if('suggestion'===_0x5efde6){_0x43d562['announce'](this['_getMarkerAnnouncementText'](_0x18cb18,'LEAVE'));break;}}for(const _0x8ff707 of _0x4b053e){const {group:_0x14c1ef,type:_0x376847}=this['_splitMarkerName'](_0x8ff707['name']);if('suggestion'===_0x14c1ef){_0x43d562['announce'](this['_getMarkerAnnouncementText'](_0x376847,'ENTER'));break;}}});}['_processAttributeChanges'](_0x5c4bf8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x238969=this['editor'],_0x10f008=_0x238969['model']['document']['differ']['getChanges']();if(0x0==_0x10f008['length'])return!0x1;const _0x339058=[],_0x22dbe0=_0x10f008['filter'](_0x40b599=>'attribute'==_0x40b599['type']),_0x425320=_0x10f008['filter'](_0xfc47dc=>'insert'==_0xfc47dc['type']&&'$text'!=_0xfc47dc['name']),_0x533b46=_0x10f008['filter'](_0x5d151a=>'remove'==_0x5d151a['type']&&'$text'!=_0x5d151a['name']);for(const _0x12db97 of _0x22dbe0)_0x339058['push']({'key':_0x12db97['attributeKey'],'newValue':_0x12db97['attributeNewValue'],'oldValue':_0x12db97['attributeOldValue'],'range':Ot(_0x12db97['range'],_0x238969['model'])});for(const _0x11a9d8 of _0x425320){const _0x5e4ad0=_0x533b46['find'](_0x20a40e=>_0x20a40e['position']['isEqual'](_0x11a9d8['position']));_0x5e4ad0&&_0x339058['push']({'key':m,'newValue':_0x11a9d8['name'],'oldValue':_0x5e4ad0['name'],'range':_0x238969['model']['createRangeOn'](_0x11a9d8['position']['nodeAfter'])});}return 0x0!=_0x339058['length']&&this['_reduceExistingSuggestions'](_0x5c4bf8,_0x339058);}['_processAttributeSuggestions'](_0x196bc8){let _0x55e896=!0x1;const _0x2b12f0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x36de58=>_0x36de58['data']['newRange']&&_0x36de58['name']['startsWith']('suggestion:attribute:'));for(const _0xb4149b of _0x2b12f0){const {subType:_0xa377e0,id:_0x32c414}=this['_splitMarkerName'](_0xb4149b['name']),_0x3af354=_0xa377e0['split']('|')[0x0];for(const _0x56e0a7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x56e0a7['id']!=_0x32c414&&'attribute'==_0x56e0a7['type']&&_0x56e0a7['data']&&_0x56e0a7['data']['key']==_0x3af354&&_0x56e0a7['getFirstRange']()['isIntersecting'](_0xb4149b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x56e0a7,_0xb4149b['data']['newRange'],_0x196bc8),_0x55e896=!0x0);}return _0x55e896;}['_recordAttributeChanges'](_0x423920){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x423920();}['_isRegisteredAttribute'](_0xe21210){const _0x20a448=this['_isBlockAttribute'](_0xe21210),_0x51e21c=this['_inlineAttributeKeys']['has'](_0xe21210);return _0x20a448||_0x51e21c;}['_reduceExistingSuggestions'](_0x53569e,_0x24a05b){if(0x0==_0x24a05b['length'])return!0x1;let _0x2aaf13=!0x1;for(const _0xf0e3fa of _0x24a05b){const _0x313a86=this['_findSuggestions'](_0xf0e3fa['range'],'attribute')['filter'](_0x513836=>!_0x513836['meta']['isNextTo'])['map'](_0xc2edd8=>_0xc2edd8['suggestion']),_0x35e6dc=_0x16805c({'newValue':_0xf0e3fa['newValue']});_0x313a86['filter'](_0x1b6b73=>{const [_0x5f6332,_0x1bac72]=_0x1b6b73['subType']['split']('|');return _0x5f6332==_0xf0e3fa['key']&&_0x1bac72!=_0x35e6dc;})['forEach'](_0x741f7f=>{this['_reduceSuggestionAttributeRange'](_0x741f7f,_0xf0e3fa['range'],_0x53569e),_0x2aaf13=!0x0;});}return _0x2aaf13;}['_reduceSuggestionAttributeRange'](_0x556493,_0x216770,_0x536578){const _0xb1e61a=_0x556493['getFirstRange']()['getDifference'](_0x216770);0x0!==_0xb1e61a['length']?0x1!==_0xb1e61a['length']?this['_breakSuggestionMarker'](_0x556493,_0x216770['start'],_0x216770['end']):this['_setSuggestionRange'](_0x556493,_0xb1e61a[0x0]):_0x536578['removeMarker'](_0x556493['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3b8df2){this['_editor']=_0x3b8df2,this['_model']=_0x3b8df2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x179cd4,_0x394fde,_0x16d866,_0x199987,_0x34b604,_0x2c158a){return new u(this['_model'],{'type':_0x179cd4,'subType':_0x394fde,'id':_0x16d866,'author':_0x199987,'creator':_0x199987,'attributes':_0x34b604,'onAttributesChange':_0x2c158a,'onAccept':(..._0x2b09c2)=>this['getSuggestionCallback'](_0x179cd4,_0x394fde,'accept')(..._0x2b09c2),'onDiscard':(..._0x35993a)=>this['getSuggestionCallback'](_0x179cd4,_0x394fde,'discard')(..._0x35993a)});}['registerCustomCallback'](_0x1551fe,_0x372e07,_0x222611,_0x2458ca){const _0x3cc6ca=_0x1551fe+':'+_0x372e07+':'+_0x222611;this['_customCallbacks']['set'](_0x3cc6ca,_0x2458ca);}['getSuggestionCallback'](_0x5588f1,_0x3b66c8,_0x886907){const _0x30590b=_0x5588f1+':'+_0x3b66c8+':'+_0x886907;return this['_customCallbacks']['get'](_0x30590b)||this['_defaultCallbacks']['get'](_0x5588f1+':'+_0x886907);}['_registerDefaultCallbacks'](){const _0x3af04b=()=>!0x1,_0x313d9d=_0xe4bb42=>{_0xe4bb42['sort']((_0x27a82f,_0x5cac27)=>_0x27a82f['start']['isBefore'](_0x5cac27['start'])?0x1:-0x1),this['_model']['change'](_0x37b843=>{for(const _0x1eec12 of _0xe4bb42){let _0x2837eb;_0x2837eb=_0x1eec12['end']['isAtEnd']&&_0x1eec12['end']['parent']==_0x1eec12['start']['nodeAfter']?_0x37b843['createSelection'](_0x1eec12['start']['nodeAfter'],'on'):_0x37b843['createSelection'](_0x1eec12),this['_model']['deleteContent'](_0x2837eb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2c9120=(_0x1c1d5,_0x26232b)=>{_0x26232b&&this['_model']['change'](_0x306625=>{const {commandName:_0x28fc31,commandParams:_0x23882d=[]}=_0x26232b,_0x51d135=_0x1c1d5['map'](_0x2ebed6=>(Tt(_0x2ebed6)&&(_0x2ebed6=this['_model']['createRange'](_0x2ebed6['end'])),_0x2ebed6))['filter'](_0x7a2f98=>'$graveyard'!==_0x7a2f98['root']['rootName']);if(_0x51d135['length']<0x1)return;const _0x18e6ac=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2ed35a=>_0x4ca244['fromRange'](_0x2ed35a));_0x306625['setSelection'](_0x51d135);for(const _0x193ba4 of this['_editor']['commands']['commands']())_0x193ba4['refresh']();_0x23882d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x28fc31,..._0x23882d);const _0x4e6747=_0x18e6ac['filter'](_0x5828a9=>'$graveyard'!=_0x5828a9['root']['rootName']);_0x4e6747['length']>0x0&&_0x306625['setSelection'](_0x4e6747);for(const _0x78e33b of _0x18e6ac)_0x78e33b['detach']();});},_0x5b134a=(_0x12b8bc,_0x43300b)=>0x1==_0x12b8bc['length']&&0x1==_0x43300b['length']&&_0x12b8bc[0x0]['end']['isEqual'](_0x43300b[0x0]['start']),_0x39cd31=(_0x49e714,_0x27ec60,_0x4f4076,_0x5af872)=>Gt(_0x49e714,_0x27ec60,_0x4f4076,_0x5af872,this['_model'])?[_0x49e714,_0x27ec60]:Gt(_0x27ec60,_0x49e714,_0x5af872,_0x4f4076,this['_model'])?[_0x27ec60,_0x49e714]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3af04b),this['_defaultCallbacks']['set']('insertion:discard',_0x313d9d),this['_defaultCallbacks']['set']('insertion:join',_0x5b134a),this['_defaultCallbacks']['set']('insertion:chain',_0x39cd31),this['_defaultCallbacks']['set']('deletion:accept',_0x313d9d),this['_defaultCallbacks']['set']('deletion:discard',_0x3af04b),this['_defaultCallbacks']['set']('deletion:join',_0x5b134a),this['_defaultCallbacks']['set']('deletion:chain',_0x39cd31),this['_defaultCallbacks']['set']('formatInline:accept',_0x2c9120),this['_defaultCallbacks']['set']('formatInline:discard',_0x3af04b),this['_defaultCallbacks']['set']('formatInline:join',_0x5b134a),this['_defaultCallbacks']['set']('formatInline:chain',_0x3af04b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2c9120),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3af04b),this['_defaultCallbacks']['set']('formatBlock:join',_0x5b134a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3af04b),this['_defaultCallbacks']['set']('attribute:accept',_0x3af04b),this['_defaultCallbacks']['set']('attribute:discard',(_0x505ef5,_0x87d7a9)=>{if(!_0x87d7a9)return;const _0x3625b6=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xee7113=>{if(_0x87d7a9['key']==m)for(const _0x197542 of _0x505ef5){const _0xde0d7=_0x197542['start']['nodeAfter'],_0x18108a=_0x87d7a9['oldValue'];_0xee7113['rename'](_0xde0d7,_0x18108a);}else{if(_0x3625b6['_isBlockAttribute'](_0x87d7a9['key'])){for(const _0xdb6d0e of _0x505ef5)void 0x0!==_0x87d7a9['oldValue']?_0xee7113['setAttribute'](_0x87d7a9['key'],_0x87d7a9['oldValue'],_0xdb6d0e['start']['nodeAfter']):_0xee7113['removeAttribute'](_0x87d7a9['key'],_0xdb6d0e['start']['nodeAfter']);}else{for(const _0xa06616 of _0x505ef5)_0x87d7a9['oldValue']?_0xee7113['setAttribute'](_0x87d7a9['key'],_0x87d7a9['oldValue'],_0xa06616):_0xee7113['removeAttribute'](_0x87d7a9['key'],_0xa06616);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5b134a);}}function Rt(_0x108309,_0x1ff95c,_0x153efb){for(const _0x11e253 of _0x1ff95c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x11e253['root']==_0x11e253)return!0x1;if(!_0x153efb['containsItem'](_0x11e253))return!0x1;if(_0x108309['isObject'](_0x11e253)||_0x108309['isLimit'](_0x11e253))return!0x0;}return!0x1;}function Tt(_0x1e40a8){return _0x1e40a8['end']['parent']==_0x1e40a8['start']['nodeAfter']&&_0x1e40a8['end']['isAtStart'];}function Et(_0xee1b9,_0x3c8f16,_0x14a9a2,_0xf47b5a){const _0x3c8fc6=_0x223f50=>!_0x223f50['item']['is']('$textProxy')&&!_0xf47b5a['isObject'](_0x223f50['item']),_0x38d6b6=_0xee1b9['start']['getLastMatchingPosition'](_0x3c8fc6),_0x55e21c=_0xee1b9['end']['getLastMatchingPosition'](_0x3c8fc6,{'direction':'backward'});return(!_0xee1b9['start']['isEqual'](_0x38d6b6)||!_0xee1b9['end']['isEqual'](_0x55e21c))&&(_0x38d6b6['isBefore'](_0x55e21c)?_0x14a9a2['updateMarker'](_0x3c8f16,{'range':_0x14a9a2['createRange'](_0x38d6b6,_0x55e21c)}):_0x14a9a2['removeMarker'](_0x3c8f16),!0x0);}function Vt(_0x320aaa){return _0x16805c(_0x320aaa);}function Ut(_0x17b9a8){const _0xfc48d9=_0x17b9a8['start']['nodeAfter'];return _0xfc48d9&&_0xfc48d9['is']('element');}function Ot(_0x37ebc5,_0x1b147d){return null==_0x37ebc5['end']['nodeBefore']&&_0x37ebc5['end']['parent']==_0x37ebc5['start']['nodeAfter']?Ft(_0x37ebc5['start']['nodeAfter'],_0x1b147d):_0x37ebc5;}function Ft(_0x3111a2,_0x48d349){const _0x2bbdfb=_0x48d349['schema']['isObject'](_0x3111a2)||_0x48d349['schema']['isSelectable'](_0x3111a2);return _0x48d349['createRange'](_0x48d349['createPositionAt'](_0x3111a2,'before'),_0x2bbdfb?_0x48d349['createPositionAfter'](_0x3111a2):_0x48d349['createPositionAt'](_0x3111a2,'end'));}function Gt(_0x557cca,_0x571d56,_0x5f21d9,_0xb9e740,_0x2a85a4){if(!Pt(_0x557cca,_0x571d56))return!0x1;if(_0x5f21d9['end']['isEqual'](_0xb9e740['start']))return!0x0;if(_0x557cca['type']!=_0x571d56['type'])return!0x1;if(!_0x5f21d9['end']['isTouching'](_0xb9e740['start']))return!0x1;const _0x244692=_0x2a85a4['createRange'](_0x5f21d9['end'],_0xb9e740['start'])['getWalker']();for(const _0x35286a of _0x244692)if(['elementStart','elementEnd']['includes'](_0x35286a['type'])&&_0x2a85a4['schema']['isLimit'](_0x35286a['item']))return!0x1;return!0x0;}function Pt(_0x5ee791,_0x18ae85,_0xc2f4b7=[]){return!(!_0x5ee791['_isDataLoaded']||!_0x18ae85['_isDataLoaded'])&&_0x35d9e3(Bt(_0x5ee791['attributes'],_0xc2f4b7),Bt(_0x18ae85['attributes'],_0xc2f4b7));}function Lt(_0x516135,_0x45472e){const _0x239fda=Ht(_0x516135['attributes']),_0x433080=Ht(_0x45472e);if(!_0x516135['_isDataLoaded'])return!0x1;for(const _0x5dc43e of Object['keys'](_0x433080))if(!_0x35d9e3(_0x239fda[_0x5dc43e],_0x433080[_0x5dc43e]))return!0x1;return!0x0;}function Ht(_0x59557c){const _0x39185d=Object['assign']({},_0x59557c);return delete _0x39185d['skipNestingCheck'],delete _0x39185d['tablePasteChainId'],_0x39185d;}class oe extends _0x1fbb42(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4cfe25,_0x22a249,_0x5b29e8,_0x2806a2){super(),this['model']=_0x22a249,this['view']=_0x5b29e8,this['commentThreadController']=_0x2806a2,this['_editor']=_0x4cfe25,this['_acceptCommand']=_0x4cfe25['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4cfe25['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x37fd70,_0xb39b3a)=>_0x37fd70||_0xb39b3a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x7f9b8e=>_0x7f9b8e&&this['_editor']['model']['canEditAt'](_0x22a249['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x195141=>_0x195141&&this['_editor']['model']['canEditAt'](_0x22a249['getRanges']())),this['_pendingAction']=null,_0x5b29e8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5b29e8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5b29e8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5b29e8,'change:isDirty',()=>{_0x5b29e8['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 _0x4a7392=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4a7392);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x5a4139{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x54b6cf,_0x332de9,_0x39a74a,_0x3acd21){super(_0x54b6cf),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x332de9['authoredAt']),this['bind']('authoredAt')['to'](_0x332de9),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x332de9,this['_localUser']=_0x39a74a,this['_config']=_0x3acd21,_0x3acd21['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3488a8}=this['_config'];this['commentsListView']=new _0x3488a8(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',_0x5b8b4b=>_0x5b8b4b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3159de,_0x2ba62a)=>_0x3159de||!!_0x2ba62a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x237f71}=this['_config'],_0x3ba597=new _0x237f71(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x356f89=_0x3ba597['commentInputView'];return _0x3ba597['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x356f89,'value',(_0x334da4,_0x23f706,_0x4a9efe)=>!!_0x4a9efe||_0x334da4&&!_0x23f706),_0x356f89['on']('submit',(_0x180565,_0x47f69a)=>{this['fire']('addComment',_0x47f69a),_0x356f89['editor']['setData']('');}),_0x356f89['on']('cancel',()=>this['focus']()),_0x356f89['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3ba597;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x1dae5e,_0x4178c,_0x2d99c2,_0x58087f){super(_0x1dae5e,_0x4178c,_0x2d99c2,_0x58087f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2fd0a4=>_0x2fd0a4&&_0x2fd0a4[0x0]?_0x2fd0a4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xbd3a70,_0x5e42c9)=>{let _0x5265b='';for(const _0x1917eb of _0xbd3a70)_0x5265b+='<p>'+ds(_0x1917eb['content'],_0x1917eb['color'])+'</p>';return _0x5e42c9?_0x5265b:_0x58daaa(_0x5265b,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x1dae5e,'Accept\x20suggestion'),_0xc5487c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x1dae5e,'Discard\x20suggestion'),_0xc5487c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x4222b5(_0x1dae5e,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x48adfe=this['bindTemplate'],_0x5569b1=[{'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':_0x48adfe['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x48adfe['to']('authoredAt',_0x1b0c78=>this['_config']['formatDateTime'](_0x1b0c78))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x5569b1['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1b13ed={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x48adfe['if']('isActive','ck-suggestion-wrapper--active'),_0x48adfe['to']('type',_0x53004e=>'ck-suggestion-'+_0x53004e),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x5569b1}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1b13ed['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x1b13ed;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xd9c3a5,_0x59867a,_0x27dd57)=>{this['_descriptionElement']['innerHTML']=_0x27dd57;});}['_createButton'](_0x68e887,_0x4f71e3,_0x5bc560,_0x47627a,_0x1286e4){const _0x47aa44=new _0x405d1e(this['locale']);return _0x47aa44['set']({'label':_0x68e887,'icon':_0x4f71e3,'tooltip':!0x0,'tooltipPosition':_0x1286e4}),_0x47aa44['extendTemplate']({'attributes':{'class':_0x5bc560}}),_0x47aa44['on']('execute',()=>{this['fire'](_0x47627a,this['_model']['id']);}),_0x47aa44;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0xef5609,_0x2b16e8){let _0x3b5fb2='';return _0x3b5fb2+=_0xef5609['split']('*')['map']((_0x396557,_0x3e71b2)=>_0x3e71b2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x396557)+'</span>':us(_0x396557))['join'](''),_0x2b16e8&&(_0x3b5fb2+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2b16e8['value']+'\x22\x20title=\x22'+_0x2b16e8['title']+'\x22></span>'),_0x3b5fb2;}function us(_0x33a779){const _0x274301=document['createElement']('span');return _0x274301['innerText']=_0x33a779,_0x274301['innerHTML'];}var ie='<!--\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\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x2ef393{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x359423,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x344472){super(_0x344472),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x52d15e=this['editor']['config'];_0x52d15e['define']('trackChanges.SuggestionThreadView',ne),_0x52d15e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x52d15e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1cd30f,_0xda9cb1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xca5127,_0x458331]of this['_handleControllerBuffer']){const _0x241e57=this['_suggestionToController']['has'](_0xca5127);_0x241e57||_0x458331?_0x241e57&&_0x458331&&this['_destroyController'](_0xca5127):this['_initializeController'](_0xca5127);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1cd30f,_0xda9cb1);}['init'](){const _0x31dc15=this['editor'],_0x5dd71d=_0x31dc15['plugins']['get']('TrackChangesEditing'),_0x330af1=_0x31dc15['plugins']['get']('Annotations'),_0x233dd5=_0x31dc15['plugins']['get']('EditorAnnotations'),_0x909846=_0x31dc15['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x233dd5['addSourceCollector'](()=>{const _0x46dd64=[];for(const [_0x532bb2,_0x387d25]of Array['from'](this['_suggestionToController'])){const _0x751fc3=_0x532bb2['getAllAdjacentSuggestions'](),_0x10323c=[];for(const _0x297230 of _0x751fc3){if(!_0x297230['isInContent'])continue;if(_0x297230['isMultiRange']){_0x10323c['push'](..._0x297230['getRanges']());continue;}const _0x189718=_0x297230['getFirstRange']();if(_0x10323c['length']>0x0){const _0x743172=_0x10323c[0x0]['getJoined'](_0x189718);if(_0x743172){_0x10323c[0x0]=_0x743172;continue;}}_0x10323c['push'](_0x189718);}_0x46dd64['push']([_0x387d25['view'],_0x10323c]);}return _0x46dd64;}),this['listenTo'](_0x5dd71d,'suggestionLoaded',(_0x3d9de8,_0x2d97fe)=>{this['listenTo'](_0x2d97fe,'change:previous',(_0xccf6bb,_0x362289,_0xf19665,_0x19f749)=>{_0x2d97fe['isInContent']&&(null==_0xf19665?(this['_updateController'](_0x19f749['head']),this['_handleSuggestionControllerDelayed'](_0x2d97fe,!0x1)):(this['_updateController'](_0xf19665['head']),null==_0x19f749&&this['_handleSuggestionControllerDelayed'](_0x2d97fe,!0x0)));}),null!==_0x2d97fe['previous']?this['_updateController'](_0x2d97fe['head']):this['_handleSuggestionControllerDelayed'](_0x2d97fe,!0x1);}),this['listenTo'](_0x5dd71d,'suggestionUnloaded',(_0x3eecb0,_0xa93c2a,_0x3c8b80)=>{this['stopListening'](_0xa93c2a,'change:previous'),this['_handleControllerBuffer']['delete'](_0xa93c2a),this['_suggestionToController']['has'](_0xa93c2a)&&this['_destroyController'](_0xa93c2a),_0x3c8b80&&this['_updateController'](_0x3c8b80['head']);}),this['listenTo'](_0x5dd71d,'suggestionChanged',(_0x3b409f,_0x38cd6a)=>{this['_updateController'](_0x38cd6a);}),this['listenTo'](_0x330af1,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x909846,'addComment',(_0x285cdc,{threadId:_0x423af9,isFromAdapter:_0x4b9ffe})=>{if(_0x4b9ffe||!_0x5dd71d['hasSuggestion'](_0x423af9))return;const _0xb40a0a=_0x5dd71d['getSuggestion'](_0x423af9);this['_suggestionToController']['get'](_0xb40a0a)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x182585=this['editor']['plugins']['get']('Annotations'),_0x5a0d5c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x559735=Array['from'](_0x182585['activeAnnotations'],_0x2b54c8=>_0x2b54c8['innerView'])['filter'](_0x39805d=>this['_viewToController']['has'](_0x39805d)),_0x2fd1ed=[];for(const _0x1cff32 of _0x559735){const _0x3103d1=this['_viewToController']['get'](_0x1cff32)['model']['getAllAdjacentSuggestions']();_0x2fd1ed['push'](..._0x3103d1['reduce']((_0x35538e,_0x24f609)=>[..._0x35538e,..._0x24f609['getMarkerNames']()],[]));}_0x5a0d5c['activeMarkers']=_0x2fd1ed;}['_addUIComponentsToFactory'](){const _0x2d3fdf=this['editor'],_0x521af4=_0x2d3fdf['locale'],_0x4b0aa2=o(_0x521af4,'Track\x20changes'),_0x4256c1=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x4b0aa2,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x521af4,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x521af4,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x521af4,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x521af4,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xdc554f of _0x4256c1)if(ae(_0xdc554f)){const _0x2a89b3=_0x2d3fdf['commands']['get'](_0xdc554f['model']['commandName']);_0xdc554f['model']['bind']('isOn','isEnabled')['to'](_0x2a89b3,'value','isEnabled');}_0x2d3fdf['ui']['componentFactory']['add']('trackChanges',_0x39ec12=>this['_createToolbarButton'](_0x39ec12,_0x4256c1,_0x4b0aa2)),_0x2d3fdf['ui']['componentFactory']['add']('menuBar:trackChanges',_0xb85f=>this['_createMenuBarMenu'](_0xb85f,_0x4256c1,_0x4b0aa2));}['_createToolbarButton'](_0x5a71e2,_0x58afab,_0x3630ef){const _0x119012=zt(_0x5a71e2,Zt),_0x5cb6a2=this['editor']['commands']['get']('trackChanges');_0x119012['buttonView']['set']({'tooltip':_0x3630ef,'label':_0x3630ef,'icon':ie}),_0x119012['buttonView']['bind']('isOn')['to'](_0x5cb6a2,'value'),_0x119012['buttonView']['on']('execute',()=>{_0x5cb6a2['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x119012,_0x58afab,{'role':'menu'});const _0x40e8e4=[];for(const _0x42477c of _0x58afab)ae(_0x42477c)&&_0x40e8e4['push'](this['editor']['commands']['get'](_0x42477c['model']['commandName']));const _0x10d4e7=_0x119012['buttonView'];return _0x10d4e7['actionView']['unbind']('isEnabled'),_0x10d4e7['arrowView']['unbind']('isEnabled'),_0x10d4e7['actionView']['bind']('isEnabled')['to'](_0x5cb6a2,'isEnabled'),_0x10d4e7['arrowView']['bind']('isEnabled')['toMany'](_0x40e8e4,'isEnabled',(..._0x5a8bcb)=>_0x5a8bcb['some'](_0x4d4fcf=>_0x4d4fcf)),_0x119012['on']('execute',_0x2cd708=>{this['editor']['execute'](_0x2cd708['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x119012;}['_createMenuBarMenu'](_0x3bf56a,_0x2a83c0,_0x56166c){const _0x4d5bb3=new Kt(_0x3bf56a),_0x5a4938=this['editor']['commands']['get']('trackChanges');_0x4d5bb3['buttonView']['set']({'label':_0x56166c,'icon':ie});const _0x3c7612=new Qt(_0x3bf56a);for(const _0x20605b of _0x2a83c0){if('separator'==_0x20605b['type']){_0x3c7612['items']['add'](new Jt(_0x3bf56a));continue;}const _0x240844=new Xt(_0x3bf56a,_0x4d5bb3),_0x52e1ab=new Yt(_0x3bf56a),_0x304eec=_0x20605b['model'];_0x52e1ab['bind'](...Object['keys'](_0x304eec))['to'](_0x304eec),_0x52e1ab['delegate']('execute')['to'](_0x4d5bb3),_0x52e1ab['on']('execute',()=>{this['editor']['execute'](_0x304eec['commandName']),this['editor']['editing']['view']['focus']();}),_0x240844['children']['add'](_0x52e1ab),_0x3c7612['items']['add'](_0x240844);}return _0x4d5bb3['bind']('isEnabled')['to'](_0x5a4938,'isEnabled'),_0x4d5bb3['panelView']['children']['add'](_0x3c7612),_0x4d5bb3;}['_initializeController'](_0x48d361){const _0x56eb56=this['editor'],_0xdbc6f=_0x56eb56['config'],_0x5ceabd=_0x56eb56['plugins']['get']('Annotations'),_0x2fa7f7=_0x56eb56['plugins']['get']('CommentsRepository'),_0x4200ca=_0x56eb56['plugins']['get']('EditorAnnotations'),_0x4f00cc=_0x56eb56['plugins']['get'](_0x359423)['me'],_0x530164=_0xdbc6f['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1071d4,CommentThreadInputView:_0x5a00f6}=_0x56eb56['plugins']['get']('CommentsUI');let _0x3c881c,_0x2536d7;this['_annotationViews']['has'](_0x48d361['id'])?(_0x2536d7=this['_annotationViews']['get'](_0x48d361['id']),_0x3c881c=_0x2536d7['mainView']):(_0x3c881c=new _0x530164(_0x56eb56['locale'],_0x48d361,_0x4f00cc,{'disableComments':this['_disableComments'],'editorConfig':_0xdbc6f['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xdbc6f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xdbc6f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xdbc6f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x526bdb(_0xdbc6f['get']('locale')),'CommentView':_0xdbc6f['get']('comments')['CommentView'],'CommentsListView':_0x1071d4,'CommentThreadInputView':_0x5a00f6}),_0x3c881c['acceptButton']['on']('execute',()=>{_0x56eb56['editing']['view']['focus']();}),_0x3c881c['discardButton']['on']('execute',()=>{_0x56eb56['editing']['view']['focus']();}),_0x2536d7=_0x5ceabd['createAnnotationView'](this['editor']['locale'],_0x3c881c),_0x2536d7['bind']('isDirty')['to'](_0x3c881c,'isDirty'),_0x2536d7['bind']('length')['to'](_0x3c881c),_0x2536d7['bind']('type')['to'](_0x3c881c,'type',_0x380ebb=>'suggestion-'+_0x380ebb),this['_annotationViews']['set'](_0x48d361['id'],_0x2536d7));const _0x29776e=_0x2fa7f7['createCommentThreadController'](_0x48d361['commentThread'],_0x3c881c),_0x5dec1a=new oe(_0x56eb56,_0x48d361,_0x3c881c,_0x29776e),_0x1d5467=_0x48d361['getAllAdjacentSuggestions']()['filter'](_0xcadcff=>_0xcadcff['isInContent']);_0x3c881c['descriptionParts']=_0x56eb56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1d5467),this['_suggestionToController']['set'](_0x48d361,_0x5dec1a),this['_viewToController']['set'](_0x3c881c,_0x5dec1a);const _0x365212=_0x5ceabd['createAnnotation']({'view':_0x2536d7,'target':()=>{const _0x3b55c9=[],_0x405046=_0x48d361['getAllAdjacentSuggestions']()['filter'](_0x51cd28=>_0x51cd28['isInContent']);for(const _0x866127 of _0x405046)_0x3b55c9['push'](..._0x866127['getMarkers']());return _0x2d56fb(_0x56eb56['editing'],_0x3b55c9);},'type':()=>'suggestion-'+_0x5dec1a['view']['type']});_0x2fa7f7['_bindAnnotationToEditors'](_0x3c881c,_0x365212),_0x5ceabd['add'](_0x365212),_0x4200ca['registerAnnotation'](_0x365212);}['_destroyController'](_0x10d7ca){const _0x2fc7c8=this['editor']['plugins']['get']('CommentsRepository'),_0xc1af7d=this['editor']['plugins']['get']('Annotations'),_0x3ebc70=this['_suggestionToController']['get'](_0x10d7ca),_0x258070=_0x3ebc70['view'],_0x2d423b=_0xc1af7d['getByInnerView'](_0x258070);_0x2fc7c8['_unbindEditors'](_0x258070),_0x2d423b&&_0xc1af7d['remove'](_0x2d423b),this['_suggestionToController']['delete'](_0x10d7ca),this['_viewToController']['delete'](_0x258070),_0x3ebc70['destroy']();}['_updateController'](_0x4cfa77){if(!_0x4cfa77['isInContent']||!this['_suggestionToController']['has'](_0x4cfa77))return;const _0x54b531=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6265bd=this['_suggestionToController']['get'](_0x4cfa77),_0x1acbd0=_0x4cfa77['getAllAdjacentSuggestions']();_0x6265bd['view']['descriptionParts']=_0x54b531['descriptionFactory']['getDescriptions'](_0x1acbd0);}['destroy'](){for(const _0x4fbf74 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4fbf74);for(const _0x4de79b of this['_annotationViews']['values']())_0x4de79b['mainView']['destroy']();super['destroy']();}}function ae(_0x4a634d){return'model'in _0x4a634d;}class k extends _0x2ef393{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x1a1889){this['editor']['plugins']['get'](p)['adapter']=_0x1a1889;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xa7021){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xa7021);}['getSuggestions']({skipNotAttached:_0x2df2ad=!0x1,toJSON:_0x4c3912=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2df2ad,'toJSON':_0x4c3912});}['getSuggestion'](_0x4d00d2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4d00d2);}}const T=['Pagination'];class P extends _0x2ef393{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1ca0e4=this['editor'];if(_0x1ca0e4['config']['define']('trackChangesData.editorCreator',_0x19b112=>{const _0x5d5d03=_0x1ca0e4['model']['document']['getRootNames']()['reduce']((_0x36d223,_0x28335f)=>(_0x36d223[_0x28335f]='',_0x36d223),{});return _0x1ca0e4['constructor']['create'](_0x5d5d03,_0x19b112);}),'function'!=typeof _0x1ca0e4['config']['get']('trackChangesData')['editorCreator'])throw new _0x57467d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4a8f90){return N(this['editor'],!0x0,_0x4a8f90);}['getDataWithDiscardedSuggestions'](_0x59053f){return N(this['editor'],!0x1,_0x59053f);}}class D extends _0x2ef393{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0xb2f763){super(_0xb2f763),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(_0x323e5f){return void 0x0!==_0x323e5f['getRootsAttributes'];}async function N(_0x54074e,_0x2f220c,_0x5d0936){const _0x24738f=_0x89ed30(_0x54074e,T);_0x24738f['plugins']['push'](p,D),_0x24738f['rootsAttributes']=v(_0x54074e)?_0x54074e['getRootsAttributes']():void 0x0;const _0x4f220e=document['createDocumentFragment'](),_0xf13376=_0x54074e['config']['get']('trackChangesData')['editorCreator'],_0x2ee758=await _0xf13376(_0x24738f,()=>function(_0x4cff1a){const _0x17cd93=document['createElement']('div');return _0x4cff1a['appendChild'](_0x17cd93),_0x17cd93;}(_0x4f220e));!function(_0x2d41b0,_0x4db72b){const _0x24c964=_0x2d41b0['model']['document']['getRootNames']()['reduce']((_0x5105f3,_0x21df90)=>(_0x5105f3[_0x21df90]=_0x2d41b0['data']['get']({'rootName':_0x21df90}),_0x5105f3),{}),_0xdfb1d5=_0x2d41b0['plugins']['get']('Users')['users']['map'](_0x398ee8=>({'id':_0x398ee8['id'],'name':_0x398ee8['name']})),_0x46e510=_0x2d41b0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3806f1=_0x2d41b0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4ca131=_0x4db72b['plugins']['get']('Users'),_0x17c4e2=_0x4db72b['plugins']['get']('TrackChangesEditing'),_0x180d4d=_0x4db72b['plugins']['get']('CommentsRepository');for(const _0x4a3ca6 of _0xdfb1d5)_0x4ca131['getUser'](_0x4a3ca6['id'])||_0x4ca131['addUser'](_0x4a3ca6);_0x4ca131['me']||_0x4ca131['useAnonymousUser']();for(const _0x59d1bd of _0x46e510)_0x17c4e2['addSuggestionData'](_0x59d1bd);for(const _0x304d12 of _0x3806f1)_0x180d4d['addCommentThread'](_0x304d12);_0x4db72b['data']['set'](_0x24c964);}(_0x54074e,_0x2ee758),_0x2ee758['execute'](_0x2f220c?'acceptAllSuggestions':'discardAllSuggestions');const _0x62cb8b=v(_0x2ee758)?_0x2ee758['getFullData'](_0x5d0936):_0x2ee758['data']['get'](_0x5d0936);return await _0x2ee758['destroy'](),_0x62cb8b;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};