@ckeditor/ckeditor5-track-changes 41.4.1 → 41.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x357748,PendingActions as _0x4f18c1,icons as _0x5382e6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3c3be4,ObservableMixin as _0x173313,uid as _0x501bc0,insertToPriorityArray as _0x4831d2,priorities as _0x16dc4b,logWarning as _0x36e342,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x52a58c,View as _0x231896,ButtonView as _0x5a8fe4,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 _0x4b8c42,hashObject as _0x134b70,surroundingMarkersDetector as _0x3c88a5,trimHtml as _0x428c37,UserView as _0x3a0d18,getDateTimeFormatter as _0x183220,getAllMarkersDomElementsSorted as _0xf0cc4b,sanitizeEditorConfig as _0x42ff30}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xed7ecb,LiveRange as _0x2242e5,LivePosition as _0x135ce5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3ce59a,toWidget as _0x53b114}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1b100a,set as _0xa751a2,isEqual as _0x3298cf,unset as _0x367af2,omit as Bt}from'lodash-es';import{Delete as _0x4b89be,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xd05fea,ShiftEnter as _0x554ffa}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 _0x3806f8 of this['editor']['commands']['commands']())_0x3806f8['affectsData']&&!this['_enabledCommands']['has'](_0x3806f8)&&_0x3806f8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x357133 of this['editor']['commands']['commands']())_0x357133['affectsData']&&!this['_enabledCommands']['has'](_0x357133)&&_0x357133['clearForceDisabled']('TrackChangesCommand');}constructor(_0x4e625d,_0x25f458){super(_0x4e625d),this['_enabledCommands']=_0x25f458,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3418f9){const _0x3b6c09=this['_suggestions']['get'](_0x3418f9);if(!_0x3b6c09)throw new _0x3c3be4('track-changes-accept-suggestion-not-found',this);const _0x4ed914=_0x3b6c09['getRanges']();this['editor']['model']['canEditAt'](_0x4ed914)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3b6c09);}constructor(_0x158e16,_0x3a4efd){super(_0x158e16),this['_suggestions']=_0x3a4efd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2307a6){const _0x21ae3a=this['_suggestions']['get'](_0x2307a6);if(!_0x21ae3a)throw new _0x3c3be4('track-changes-discard-suggestion-not-found',this);const _0x3b5496=_0x21ae3a['getRanges']();this['editor']['model']['canEditAt'](_0x3b5496)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x21ae3a);}constructor(_0x51430c,_0xa614f1){super(_0x51430c),this['_suggestions']=_0xa614f1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x4a1f8d){return _0x4a1f8d['sort']((_0x42fcc6,_0x2fa13c)=>'deletion'==_0x42fcc6['type']&&'deletion'!=_0x2fa13c['type']?-0x1:'deletion'!=_0x42fcc6['type']&&'deletion'==_0x2fa13c['type']?0x1:0x0);}function to(_0x12f894,_0x4c1a90){let _0x203c9f,_0x455dc5=0x0;const _0x307402=[],_0x5bfbdf=_0x4c1a90['schema'];for(;_0x455dc5<_0x12f894['length'];){const _0x549fc9=_0x12f894[_0x455dc5],_0x4f8c08=_0x12f894[_0x455dc5+0x1];_0x203c9f||(_0x203c9f=_0x4c1a90['createPositionBefore'](_0x549fc9)),co(_0x4c1a90,_0x549fc9,_0x4f8c08)||(_0x307402['push'](_0x4c1a90['createRange'](_0x203c9f,_0x5bfbdf['isObject'](_0x549fc9)?_0x4c1a90['createPositionAfter'](_0x549fc9):_0x4c1a90['createPositionAt'](_0x549fc9,'end'))),_0x203c9f=null),_0x455dc5++;}return _0x307402;}function co(_0x594b34,_0x28ab7b,_0x5c1d69){if(!_0x5c1d69)return!0x1;const _0x1265f6=_0x594b34['createPositionAfter'](_0x28ab7b),_0x108b28=_0x594b34['createPositionBefore'](_0x5c1d69);return _0x1265f6['isTouching'](_0x108b28);}function rs(_0x39f415,_0x2fe6ea,_0x572355){for(;_0x572355['length'];){const _0x3013f0=_0x572355['splice'](0x0,0x64);_0x39f415['change'](()=>{for(const _0x19047e of _0x3013f0)_0x19047e['isInContent']&&_0x2fe6ea['execute'](_0x19047e['id']);});}}class x extends ts{['refresh'](){const _0x457776=Array['from'](this['_suggestions']['values']())['some'](_0x54fc24=>_0x54fc24['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x457776;}['execute'](){const _0x2f2a45=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3a93ee of _0x2f2a45){const _0x38292e=_0x3a93ee['getRanges']();if(!this['editor']['model']['canEditAt'](_0x38292e))return;}rs(this['editor']['model'],this['_command'],_0x2f2a45);}constructor(_0x5cd024,_0x3355fe,_0x14d4b0){super(_0x5cd024),this['_command']=_0x3355fe,this['_suggestions']=_0x14d4b0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x5a6731=this['editor']['model']['document']['selection'],_0x639a2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x10dbd4,_0x310bd3){const _0x1e9cb9=Array['from'](_0x10dbd4['getRanges']()),_0x3259c8=new Set();for(const _0x460f56 of _0x310bd3)if(_0x460f56['isInContent']){for(const _0x194eb6 of _0x1e9cb9)for(const _0x591b51 of _0x460f56['getRanges']())(_0x194eb6['isIntersecting'](_0x591b51)||_0x10dbd4['isCollapsed']&&!_0x460f56['isMultiRange']&&_0x460f56['next']&&_0x591b51['end']['isTouching'](_0x194eb6['start']))&&_0x3259c8['add'](_0x460f56);}return _0x3259c8;}(_0x5a6731,_0x639a2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x199af7=ss(Array['from'](this['_selectedSuggestions']));for(const _0x25cbdc of _0x199af7){const _0x39b677=_0x25cbdc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x39b677))return;}rs(this['editor']['model'],this['_command'],_0x199af7);}constructor(_0x50ef5d,_0x48b5e7,_0x51bdf7){super(_0x50ef5d),this['_command']=_0x48b5e7,this['_suggestions']=_0x51bdf7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x173313(){get['head'](){let _0x4284ff=this;for(;_0x4284ff['previous'];)_0x4284ff=_0x4284ff['previous'];return _0x4284ff;}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'](_0x170dc7){this['_markerNames']['add'](_0x170dc7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x50e837=>this['_model']['markers']['get'](_0x50e837))['filter'](_0x279a3d=>_0x279a3d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x49498b=>{for(const _0x4d724a of this['getMarkers']())_0x49498b['removeMarker'](_0x4d724a);}),this['_markerNames']['clear']();}['removeMarker'](_0x499c6e){this['_model']['change'](_0x2b7685=>{_0x2b7685['removeMarker'](_0x499c6e);}),this['_markerNames']['delete'](_0x499c6e);}['addRange'](_0x2ef7cd){const _0x494361='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x494361),this['_model']['change'](_0x1a083a=>{_0x1a083a['addMarker'](_0x494361,{'range':_0x2ef7cd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x41131f){for(const _0x2696ca of this['getRanges']())if(_0x2696ca['isIntersecting'](_0x41131f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4be0e4=>_0x4be0e4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2ec0ea,_0x41486c)=>[..._0x2ec0ea,..._0x41486c['getItems']()],[]);}['getFirstRange'](){var _0x2b9b9d;return(null===(_0x2b9b9d=this['getFirstMarker']())||void 0x0===_0x2b9b9d?void 0x0:_0x2b9b9d['getRange']())||null;}['getContainedElement'](){const _0x5cb247=this['getRanges']();if(0x1!=_0x5cb247['length'])return null;const _0x10e9d2=_0x5cb247[0x0],_0x252e43=_0x10e9d2['start']['nodeAfter'],_0x1cee6e=_0x10e9d2['end']['nodeBefore'];return _0x252e43 instanceof _0xed7ecb?_0x252e43!=_0x1cee6e?null:_0x252e43: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 _0x514605=[];let _0x1fe946=this['head'];for(;_0x1fe946;)_0x514605['push'](_0x1fe946),_0x1fe946=_0x1fe946['next'];return _0x514605;}['setAttribute'](_0x5d6e6d,_0x3af759){const _0x5822fe=_0x1b100a(this['attributes']);_0xa751a2(_0x5822fe,_0x5d6e6d,_0x3af759),_0x3298cf(_0x5822fe,this['attributes'])||(this['attributes']=_0x5822fe,this['_onAttributesChange'](_0x5822fe));}['removeAttribute'](_0x42e54d){const _0x3ed7ee=_0x1b100a(this['attributes']);_0x367af2(_0x3ed7ee,_0x42e54d),_0x3298cf(_0x3ed7ee,this['attributes'])||(this['attributes']=_0x3ed7ee,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 _0x501bc0()['substr'](0x1,0x5);}constructor(_0xda5ff6,_0x5564f5){super(),this['_isDataLoaded']=!0x1,this['id']=_0x5564f5['id'],this['type']=_0x5564f5['type'],this['subType']=_0x5564f5['subType']||null,this['author']=_0x5564f5['author'],this['creator']=_0x5564f5['creator']||_0x5564f5['author'],this['isExternal']=Boolean(_0x5564f5['attributes']&&_0x5564f5['attributes']['@external']),this['data']=null,this['_model']=_0xda5ff6,this['_onAccept']=_0x5564f5['onAccept'],this['_onDiscard']=_0x5564f5['onDiscard'],this['_onAttributesChange']=_0x5564f5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5564f5['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(_0x16ce82,_0x20f55a,_0x41ad6f){const t=_0x16ce82['t'];switch(_0x20f55a){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',_0x41ad6f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x41ad6f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x41ad6f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x41ad6f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x41ad6f);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',_0x41ad6f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x41ad6f);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',_0x41ad6f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x41ad6f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x41ad6f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x41ad6f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x41ad6f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x41ad6f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x41ad6f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x41ad6f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x41ad6f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x41ad6f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x41ad6f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x41ad6f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x41ad6f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x41ad6f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x41ad6f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x41ad6f);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'},_0x41ad6f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x41ad6f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x41ad6f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x41ad6f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x41ad6f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x41ad6f);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'},_0x41ad6f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x41ad6f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x41ad6f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x41ad6f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x41ad6f);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'},_0x41ad6f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x41ad6f);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'},_0x41ad6f);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'},_0x41ad6f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x41ad6f);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'},_0x41ad6f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x41ad6f);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'},_0x41ad6f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x41ad6f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x41ad6f);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'},_0x41ad6f);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'},_0x41ad6f);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 _0x20f55a;}}class f{['getDescriptions'](_0x169c12){const _0x152133=[],_0x4820f5=new Set(),_0x135e24=new Set();for(let _0x62df5=0x0;_0x62df5<_0x169c12['length'];_0x62df5++){const _0x4e6836=_0x169c12[_0x62df5];if(!_0x4e6836['isInContent'])continue;const _0x45d416=this['_handleCustomCallbackDescription'](_0x4e6836);if(_0x45d416){if(null!=_0x4e6836['subType']){if(_0x4820f5['has'](_0x4e6836['subType']))continue;_0x4820f5['add'](_0x4e6836['subType']);}_0x152133['push'](_0x45d416);}else{if('attribute'!=_0x4e6836['type'])'insertion'!=_0x4e6836['type']&&'deletion'!=_0x4e6836['type']||this['_handleInsertRemoveSuggestionDescription'](_0x152133,_0x4e6836,_0x169c12[_0x62df5+0x1]);else{const _0xcaa015=_0x4e6836['data']['key'];if(_0x135e24['has'](_0xcaa015))continue;_0x135e24['add'](_0x4e6836['data']['key']),_0xcaa015==m?this['_handleRenameSuggestionDescription'](_0x152133,_0x4e6836):this['_handleAttributeSuggestionDescription'](_0x152133,_0x4e6836);}}}return this['_resolveDescriptionItems'](_0x152133);}['registerDescriptionCallback'](_0x3d3bb9){this['_customCallbacks']['push'](_0x3d3bb9);}['registerElementLabel'](_0xab0440,_0x40c2d8,_0x1c0f4e=_0x16dc4b['normal']){'function'==typeof _0xab0440?_0x4831d2(this['_itemLabelsCallbacks'],{'matchingCallback':_0xab0440,'label':_0x40c2d8,'priority':_0x1c0f4e}):this['_itemLabels']['set'](_0xab0440,_0x40c2d8);}['registerAttributeLabel'](_0x126997,_0x10ba78){this['_attributeLabels']['set'](_0x126997,_0x10ba78);}['getItemLabel'](_0x4dfb35,_0x43e9af=0x1){let _0x4a7b86;for(const _0x7130a1 of this['_itemLabelsCallbacks'])if(_0x7130a1['matchingCallback'](_0x4dfb35)){_0x4a7b86=_0x7130a1['label'];break;}return _0x4a7b86||(_0x4a7b86=this['_itemLabels']['get'](_0x4dfb35['name'])),_0x4a7b86?_0x4a7b86(_0x43e9af):0x1!==_0x43e9af?_0x43e9af+'\x20'+_0x4dfb35['name']+'s':''+_0x4dfb35['name'];}['_addDescriptionItems'](_0x5b2e11,_0x191da8){const _0x27b850=_0x191da8['getFirstRange']()['getWalker'](),_0x21c324='insertion'==_0x191da8['type']?'add':'remove';for(const _0x38b40f of _0x27b850){const _0x20b66e=_0x38b40f['item'],_0x38e8d8=_0x5b2e11[_0x5b2e11['length']-0x1];if(_0x20b66e['is']('$textProxy'))_0x38e8d8&&_0x38e8d8['type']['indexOf']('Container')>-0x1&&_0x5b2e11['pop'](),_0x38e8d8&&'text'==_0x38e8d8['type']?_0x38e8d8[_0x21c324]+=_0x20b66e['data']:_0x5b2e11['push']({'type':'text','add':'add'==_0x21c324?_0x20b66e['data']:'','remove':'remove'==_0x21c324?_0x20b66e['data']:''});else{if(this['_schema']['isObject'](_0x20b66e)){const _0x345688=_0x20b66e;if(_0x38e8d8&&_0x38e8d8['type']['indexOf']('Container')>-0x1&&_0x5b2e11['pop'](),'elementEnd'==_0x38b40f['type'])continue;_0x38e8d8&&_0x38e8d8['type']==_0x21c324+'Object'&&_0x38e8d8['element']['name']==_0x345688['name']?_0x38e8d8['quantity']++:_0x5b2e11['push']({'type':_0x21c324+'Object','element':_0x345688,'quantity':0x1}),_0x27b850['skip'](_0x3ae5c0=>!('elementEnd'==_0x3ae5c0['type']&&_0x3ae5c0['item']==_0x20b66e));}else{if(this['_schema']['checkChild'](_0x20b66e,'$text')||_0x20b66e['is']('element','softBreak')){const _0x1d476c=_0x20b66e;if('add'==_0x21c324&&'elementStart'==_0x38b40f['type']||'remove'==_0x21c324&&'elementEnd'==_0x38b40f['type'])continue;if(_0x38e8d8&&-0x1==_0x38e8d8['type']['indexOf']('Container')){'text'==_0x38e8d8['type']&&(_0x38e8d8[_0x21c324]+='\x0a');continue;}let _0x2f8e7f;if(_0x2f8e7f='add'==_0x21c324?_0x1d476c['nextSibling']&&!this['_schema']['isObject'](_0x1d476c['nextSibling'])?_0x1d476c['nextSibling']:null:_0x1d476c['previousSibling']&&!this['_schema']['isObject'](_0x1d476c['previousSibling'])?_0x1d476c['previousSibling']:null,_0x1d476c['isEmpty']||_0x2f8e7f&&_0x2f8e7f['isEmpty']){const _0x22ab37=_0x2f8e7f&&_0x2f8e7f['isEmpty']?_0x2f8e7f:_0x1d476c;_0x38e8d8&&_0x38e8d8['type']==_0x21c324+'EmptyContainer'&&_0x38e8d8['element']['name']==_0x22ab37['name']?_0x38e8d8['quantity']++:_0x5b2e11['push']({'type':_0x21c324+'EmptyContainer','element':_0x22ab37,'quantity':0x1});}else _0x5b2e11['push']({'type':_0x21c324+'Container','element':_0x1d476c});}}}}}['_resolveDescriptionItems'](_0x3324eb){const _0x1e42e1=this['_locale'],_0x40f49c=[],_0x1c8e91=[],_0x39c4ed=[];for(const _0x5c99de of _0x3324eb)switch(_0x5c99de['type']){case'text':if(_0x5c99de['add']=_0x5c99de['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5c99de['remove']=_0x5c99de['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5c99de['add']&&''!=_0x5c99de['remove']){_0x40f49c['push']({'type':'replace','content':o(_0x1e42e1,'REPLACE_TEXT',['\x22'+_0x5c99de['remove']+'\x22','\x22'+_0x5c99de['add']+'\x22'])});continue;}if(null!=_0x5c99de['add']['match'](/^ +$/)){_0x40f49c['push']({'type':'insertion','content':o(_0x1e42e1,'*Insert:*\x20%0',o(_0x1e42e1,'ELEMENT_SPACE',_0x5c99de['add']['length']))});continue;}if(null!=_0x5c99de['remove']['match'](/^ +$/)){_0x40f49c['push']({'type':'deletion','content':o(_0x1e42e1,'*Remove:*\x20%0',o(_0x1e42e1,'ELEMENT_SPACE',_0x5c99de['remove']['length']))});continue;}if(''!=_0x5c99de['add']){_0x40f49c['push']({'type':'insertion','content':o(_0x1e42e1,'*Insert:*\x20%0','\x22'+_0x5c99de['add']+'\x22')});continue;}_0x40f49c['push']({'type':'deletion','content':o(_0x1e42e1,'*Remove:*\x20%0','\x22'+_0x5c99de['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x40f49c['push']({'type':'insertion','content':o(_0x1e42e1,'*Insert:*\x20%0',this['getItemLabel'](_0x5c99de['element'],_0x5c99de['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x40f49c['push']({'type':'deletion','content':o(_0x1e42e1,'*Remove:*\x20%0',this['getItemLabel'](_0x5c99de['element'],_0x5c99de['quantity']))});continue;case'addContainer':_0x40f49c['push']({'type':'insertion','content':o(_0x1e42e1,'*Split:*\x20%0',this['getItemLabel'](_0x5c99de['element'],_0x5c99de['quantity']))});continue;case'removeContainer':_0x40f49c['push']({'type':'deletion','content':o(_0x1e42e1,'*Merge:*\x20%0',this['getItemLabel'](_0x5c99de['element'],_0x5c99de['quantity']))});continue;case'addFormat':_0x1c8e91['push'](_0x5c99de['key']);continue;case'removeFormat':_0x39c4ed['push'](_0x5c99de['key']);continue;default:_0x40f49c['push'](_0x5c99de);}if(_0x1c8e91['length']){const _0x8bab77=_0x1c8e91['map'](_0x177544=>this['_attributeLabels']['has'](_0x177544)?this['_attributeLabels']['get'](_0x177544):_0x177544)['join'](',\x20');_0x40f49c['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x8bab77)});}if(_0x39c4ed['length']){const _0x4f8834=_0x39c4ed['map'](_0x2bce2a=>this['_attributeLabels']['has'](_0x2bce2a)?this['_attributeLabels']['get'](_0x2bce2a):_0x2bce2a)['join'](',\x20');_0x40f49c['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4f8834)});}return _0x40f49c;}['_handleCustomCallbackDescription'](_0x531a47){for(const _0x2df007 of this['_customCallbacks']){const _0x465264=_0x2df007(_0x531a47);if(_0x465264&&'type'in _0x465264)return _0x465264;}}['_handleAttributeSuggestionDescription'](_0x409c36,_0xbe52f5){const _0x446643=_0xbe52f5['data'],_0x43e3f5=void 0x0===_0x446643['newValue']?'removeFormat':'addFormat';_0x409c36['push']({'type':_0x43e3f5,'key':_0x446643['key']});}['_handleRenameSuggestionDescription'](_0x465e54,_0x46d6f4){_0x465e54['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x46d6f4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2e2a58,_0x58665a,_0x3ba939){if(this['_addDescriptionItems'](_0x2e2a58,_0x58665a),_0x3ba939&&_0x3ba939['getFirstRange']()&&!_0x58665a['getFirstRange']()['end']['isEqual'](_0x3ba939['getFirstRange']()['start'])){const _0x1621de=_0x2e2a58[_0x2e2a58['length']-0x1],_0x4650e8='insertion'==_0x58665a['type']?'add':'remove';_0x1621de&&'text'==_0x1621de['type']&&(_0x1621de[_0x4650e8]+='\x0a');}}constructor(_0x24e40e,_0x4b6fba){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x24e40e,this['_locale']=_0x4b6fba;}}class E extends _0x357748{['afterInit'](){const _0x2fb597=this['editor'],_0x1ae897=_0x2fb597['plugins']['get']('TrackChangesEditing');_0x2fb597['commands']['get']('showAIAssistant')&&_0x1ae897['enableCommand']('showAIAssistant');}}class V extends _0x357748{['afterInit'](){const _0x4c6232=this['editor'],_0x52afe9=_0x4c6232['locale'];if(!_0x4c6232['plugins']['has']('AlignmentEditing'))return;const _0x4f49dd=_0x4c6232['plugins']['get']('TrackChangesEditing');_0x4f49dd['enableDefaultAttributesIntegration']('alignment'),_0x4f49dd['registerBlockAttribute']('alignment'),_0x4f49dd['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x52afe9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x244075=this['editor'],_0x56623c=_0x244075['locale'];_0x244075['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25f67a=>{if('formatBlock'!=_0x25f67a['type'])return;const {data:_0x36075b}=_0x25f67a;if(_0x36075b&&'alignment'==_0x36075b['commandName']){const _0x4df434=_0x36075b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x56623c,'*Format:*\x20%0',function(_0x1f347d){switch(_0x1f347d){case'left':return o(_0x56623c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x56623c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x56623c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x56623c,'FORMAT_JUSTIFY_TEXT');}}(_0x4df434))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x357748{['afterInit'](){const _0x1e5bb1=this['editor'],_0x3a1ae8=_0x1e5bb1['plugins']['get']('TrackChangesEditing'),_0x33abb3=_0x1e5bb1['locale'];for(const _0x51a60a of ti){if(!_0x1e5bb1['plugins']['has'](_0x51a60a))continue;const _0x5474b5=_0x51a60a['slice'](0x0,-0x7)['toLowerCase'](),_0x39cf89='FORMAT_'+_0x5474b5['toUpperCase']();_0x3a1ae8['enableDefaultAttributesIntegration'](_0x5474b5),_0x3a1ae8['registerInlineAttribute'](_0x5474b5),_0x3a1ae8['descriptionFactory']['registerAttributeLabel'](_0x5474b5,o(_0x33abb3,_0x39cf89));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3169c8=this['editor'],_0x42957d=_0x3169c8['locale'],_0x573c27=_0x3169c8['plugins']['get']('TrackChangesEditing');function _0x1c0a87(_0x21bd5f,_0x2f2584){_0x573c27['descriptionFactory']['registerDescriptionCallback'](_0x16133b=>{if('formatInline'!=_0x16133b['type'])return;const {data:_0x31a9c1}=_0x16133b;return _0x31a9c1&&_0x31a9c1['commandName']===_0x21bd5f?_0x31a9c1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42957d,'*Format:*\x20%0',_0x2f2584)}:{'type':'format','content':o(_0x42957d,'*Remove\x20format:*\x20%0',_0x2f2584)}:void 0x0;});}_0x1c0a87('bold',o(_0x42957d,'FORMAT_BOLD')),_0x1c0a87('italic',o(_0x42957d,'FORMAT_ITALIC')),_0x1c0a87('underline',o(_0x42957d,'FORMAT_UNDERLINE')),_0x1c0a87('code',o(_0x42957d,'FORMAT_CODE')),_0x1c0a87('strikethrough',o(_0x42957d,'FORMAT_STRIKETHROUGH')),_0x1c0a87('subscript',o(_0x42957d,'FORMAT_SUBSCRIPT')),_0x1c0a87('superscript',o(_0x42957d,'FORMAT_SUPERSCRIPT'));}}class O extends _0x357748{['afterInit'](){const _0x14ca29=this['editor'],_0x3fb9b1=_0x14ca29['locale'];if(!_0x14ca29['plugins']['has']('BlockQuoteEditing'))return;const _0x43ec6f=_0x14ca29['plugins']['get']('TrackChangesEditing'),_0x8153c7=this['editor']['commands']['get']('blockQuote');_0x43ec6f['enableCommand']('blockQuote',(_0x588c54,_0x488b0b={})=>{const _0x38271f=this['editor']['model']['document']['selection'],_0x28201e=_0x488b0b&&void 0x0!==_0x488b0b['forceValue']?_0x488b0b['forceValue']:!_0x8153c7['value'];let _0x49b213=[];if(_0x28201e){const _0x46ddef=Array['from'](_0x38271f['getSelectedBlocks']())['filter'](_0x9309bd=>oo(_0x9309bd)||function(_0x4bff7d,_0x34b11b){const _0x7a24d2=_0x34b11b['checkChild'](_0x4bff7d['parent'],'blockQuote'),_0x38e17e=_0x34b11b['checkChild'](['$root','blockQuote'],_0x4bff7d);return _0x7a24d2&&_0x38e17e;}(_0x9309bd,this['editor']['model']['schema']));_0x49b213=to(_0x46ddef,_0x14ca29['model']);}else{const _0x3e585a=Array['from'](_0x38271f['getSelectedBlocks']())['filter'](_0x33f579=>oo(_0x33f579));_0x49b213=to(_0x3e585a,_0x14ca29['model']);}_0x14ca29['model']['change'](()=>{for(const _0x604410 of _0x49b213)_0x43ec6f['markBlockFormat'](_0x604410,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x28201e}]});});}),_0x43ec6f['descriptionFactory']['registerDescriptionCallback'](_0x589588=>{const {data:_0x5a8e56}=_0x589588;if(_0x5a8e56&&'blockQuote'==_0x5a8e56['commandName']){const _0x6a2a40=o(_0x3fb9b1,'ELEMENT_BLOCK_QUOTE');return _0x5a8e56['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fb9b1,'*Set\x20format:*\x20%0',_0x6a2a40)}:{'type':'format','content':o(_0x3fb9b1,'*Remove\x20format:*\x20%0',_0x6a2a40)};}});}}function oo(_0x50c4e0){return'blockQuote'==_0x50c4e0['parent']['name'];}class F extends _0x357748{['afterInit'](){const _0x20c504=this['editor'];_0x20c504['plugins']['has']('CaseChange')&&(_0x20c504['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x20c504['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x20c504['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x357748{['afterInit'](){const _0x52b6e3=this['editor'];_0x52b6e3['commands']['get']('ckbox')&&_0x52b6e3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x357748{['afterInit'](){const _0x40b39e=this['editor'];if(!_0x40b39e['plugins']['has']('CodeBlock'))return;const _0xa8c34d=_0x40b39e['plugins']['get']('TrackChangesEditing'),_0x4109c8=_0x40b39e['locale'],_0x58a8ba=_0x40b39e['config']['get']('codeBlock')['languages'],_0x6c80d7=_0x40b39e['commands']['get']('codeBlock');_0xa8c34d['enableCommand']('indentCodeBlock'),_0xa8c34d['enableCommand']('outdentCodeBlock'),_0xa8c34d['enableCommand']('codeBlock',(_0x24e48e,_0x2f5e1b={})=>{const _0x1dbe3e=_0x40b39e['model'],_0x702cf5=_0x40b39e['model']['document']['selection'],_0x22e779=_0x2f5e1b&&void 0x0!==_0x2f5e1b['forceValue']?_0x2f5e1b['forceValue']:!_0x6c80d7['value'];let _0x2bbd51;_0x2f5e1b['language']||(_0x2f5e1b['language']=_0x58a8ba[0x0]['language']),_0x2bbd51=_0x22e779?Array['from'](_0x702cf5['getSelectedBlocks']())['filter'](_0x4b4b86=>eo(_0x4b4b86)||function(_0x209ee4,_0x21e371){if(_0x209ee4['is']('rootElement')||_0x21e371['isLimit'](_0x209ee4))return!0x1;return _0x21e371['checkChild'](_0x209ee4['parent'],'codeBlock');}(_0x4b4b86,_0x1dbe3e['schema'])):Array['from'](_0x702cf5['getSelectedBlocks']())['filter'](_0x5e0d94=>eo(_0x5e0d94));const _0x1a6478=to(_0x2bbd51,_0x1dbe3e);_0x1dbe3e['change'](()=>{for(const _0x6169bc of _0x1a6478)_0xa8c34d['markBlockFormat'](_0x6169bc,{'commandName':'codeBlock','commandParams':[{..._0x2f5e1b,'forceValue':_0x22e779}],'formatGroupId':'blockName'});});}),(_0xa8c34d['descriptionFactory']['registerElementLabel']('codeBlock',_0x49a664=>o(_0x4109c8,'ELEMENT_CODE_BLOCK',_0x49a664)),_0xa8c34d['descriptionFactory']['registerDescriptionCallback'](_0x4a54ca=>{if('formatBlock'!=_0x4a54ca['type'])return;const _0x50c2e8=_0x4109c8['t'],{data:_0x3af1a4}=_0x4a54ca;if(!_0x3af1a4||'codeBlock'!=_0x3af1a4['commandName'])return;const _0x41b2b7=_0x3af1a4['commandParams'][0x0]['language'],_0x3b33bd=_0x50c2e8(_0x58a8ba['find'](_0x43b894=>_0x43b894['language']===_0x41b2b7)['label'])['toLowerCase']();return _0x3af1a4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4109c8,'*Set\x20format:*\x20%0',o(_0x4109c8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3b33bd+')')}:{'type':'format','content':o(_0x4109c8,'*Remove\x20format:*\x20%0',o(_0x4109c8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x48ebc9){return'codeBlock'==_0x48ebc9['name'];}class H extends _0x357748{['afterInit'](){const _0x3483de=this['editor'];if(!_0x3483de['plugins']['has']('CommentsEditing'))return;_0x3483de['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xe6c61e,_0x54b0c1,_0x29d06d){const _0x49785b=[];for(const _0x12192e of _0x54b0c1['getItems']())_0x12192e['hasAttribute'](_0xe6c61e)&&_0x49785b['push'](_0x29d06d['createRangeOn'](_0x12192e));return _0x49785b;}function _e(_0x40f900,_0x453858,{showActiveMarker:_0x28f52c=!0x0}={}){const _0x5336b7=_0x40f900['plugins']['get']('TrackChangesEditing');return(_0x28dfde,_0x4e9018,_0x1f3ca1)=>{if(!_0x1f3ca1['consumable']['test'](_0x4e9018['markerRange'],_0x28dfde['name']))return;const _0xa6f34a=_0x4e9018['markerRange']['getWalker'](),_0x3c2443=_0x4e9018['markerRange']['start'],_0x2fb6f9=_0x40f900['model']['schema'];let _0x610291=null,_0x460b93=null,_0x2da3b1=!0x1,_0x435f8e=!0x1;for(const _0x52c3ba of _0xa6f34a){const _0xa2533d=_0x52c3ba['item'];_0x2da3b1=_0x2da3b1||_0x2fb6f9['isContent'](_0xa2533d);const _0x1be36c=_0x1f3ca1['mapper']['toViewElement'](_0xa2533d);if(_0x1be36c&&_0x1be36c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x52c3ba['type']&&(_0x2fb6f9['isBlock'](_0xa2533d)&&!_0x2fb6f9['isLimit'](_0xa2533d)&&(_0xa2533d['nextSibling']||_0x3c2443['isAtEnd']?_0x610291&&_0x610291['parent']==_0xa2533d||(_0x610291=_0xa2533d,_0x8053cd(_0x52c3ba['previousPosition']),_0x435f8e=!0x0):_0x460b93=_0x460b93||_0x52c3ba['previousPosition']));}function _0x8053cd(_0x3b0e5a){const _0xeca355=_0x1f3ca1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x453858}),_0x1b35db=_0x1f3ca1['mapper']['toViewPosition'](_0x3b0e5a);_0x28f52c&&_0x5336b7['activeMarkers']['includes'](_0x4e9018['markerName'])&&_0x1f3ca1['writer']['addClass']('ck-suggestion-marker--active',_0xeca355),_0x1f3ca1['writer']['insert'](_0x1b35db,_0xeca355),_0x1f3ca1['mapper']['bindElementToMarker'](_0xeca355,_0x4e9018['markerName']);}_0x2da3b1||_0x435f8e||!_0x460b93||_0x8053cd(_0x460b93);};}class q extends _0x357748{static get['requires'](){return[_0x4b89be];}['init'](){const _0x39049f=this['editor'],_0x1e00f1=_0x39049f['plugins']['get']('TrackChangesEditing');_0x1e00f1['enableCommand']('delete');const _0x4d3238=_0x39049f['commands']['get']('deleteForward');_0x1e00f1['enableCommand']('deleteForward',(_0x9290b0,_0x4b7df6={})=>{const _0x18d007=_0x39049f['model']['createSelection'](_0x39049f['model']['document']['selection']);_0x18d007['isCollapsed']&&_0x39049f['model']['modifySelection'](_0x18d007,{'direction':'forward','unit':_0x4b7df6['unit']});const _0x373e6e=_0x18d007['getFirstRange'](),_0x2e3675=_0x2242e5['fromRange'](_0x373e6e);let _0x3d7e4f;_0x9290b0(_0x4b7df6),_0x3d7e4f='$graveyard'==_0x2e3675['root']['rootName']?_0x39049f['model']['createRange'](_0x373e6e['start']):_0x39049f['model']['createRange'](_0x2e3675['start'],_0x2e3675['end']),_0x2e3675['detach'](),_0x39049f['model']['enqueueChange'](_0x4d3238['buffer']['batch'],_0x20e84f=>{_0x4d3238['buffer']['lock'](),_0x20e84f['setSelection'](_0x20e84f['createRange'](_0x3d7e4f['end'])),_0x4d3238['buffer']['unlock']();});}),_0x39049f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x39049f,'merge'),{'priority':'high'}),_0x39049f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4bbcf5,_0x29bf72,_0x341d68)=>{_0x341d68['options']['showSuggestionHighlights']&&_e(_0x39049f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4bbcf5,_0x29bf72,_0x341d68);},{'priority':'high'}),_0x39049f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x342294,_0x47cc53,_0x43621d)=>{const _0x3a99f4=_0x43621d['mapper']['markerNameToElements'](_0x47cc53['markerName']);if(_0x3a99f4){for(const _0x5dfe1f of _0x3a99f4)_0x5dfe1f['is']('uiElement')&&(_0x43621d['mapper']['unbindElementFromMarkerName'](_0x5dfe1f,_0x47cc53['markerName']),_0x43621d['writer']['remove'](_0x5dfe1f));}},{'priority':'high'});}}class z extends _0x357748{['afterInit'](){const _0x4203de=this['editor'];if(!_0x4203de['plugins']['has']('ListEditing'))return;const _0x1fc764=_0x4203de['locale'],_0x423fb7=_0x4203de['plugins']['get']('TrackChangesEditing'),_0x3a209b=_0x4203de['plugins']['has']('TodoListEditing'),_0x307c5a=!!_0x4203de['config']['get']('list.multiBlock');function _0x5b1a5a(_0x3f0df5){return{'type':'format','content':''+o(_0x1fc764,'*Set\x20format:*\x20%0',_0x3f0df5)};}function _0x4fa2f8(_0x5716a3){return{'type':'format','content':''+o(_0x1fc764,'*Remove\x20format:*\x20%0',_0x5716a3)};}_0x423fb7['enableDefaultAttributesIntegration']('numberedList'),_0x423fb7['enableDefaultAttributesIntegration']('bulletedList'),_0x423fb7['enableDefaultAttributesIntegration']('customNumberedList'),_0x423fb7['enableDefaultAttributesIntegration']('customBulletedList'),_0x423fb7['enableDefaultAttributesIntegration']('indentList'),_0x423fb7['enableDefaultAttributesIntegration']('outdentList'),_0x423fb7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x423fb7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x423fb7['registerBlockAttribute']('listItemId'),_0x423fb7['registerBlockAttribute']('listType'),_0x423fb7['registerBlockAttribute']('listIndent'),_0x307c5a&&(_0x423fb7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x423fb7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3a209b&&(_0x423fb7['enableDefaultAttributesIntegration']('todoList'),_0x423fb7['enableDefaultAttributesIntegration']('checkTodoList'),_0x423fb7['registerBlockAttribute']('todoListChecked'),_0x423fb7['descriptionFactory']['registerDescriptionCallback'](_0xed363f=>{const {data:_0x4ea76b}=_0xed363f;if(_0x4ea76b&&'todoListChecked'==_0x4ea76b['key'])return{'type':'format','content':_0x4ea76b['newValue']?o(_0x1fc764,'*Check\x20item*'):o(_0x1fc764,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x27060b=>{if(_0x27060b['batch']['isUndo'])return!0x1;let _0x11a7ee=!0x1;const _0x5475a1=_0x423fb7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2dabbe=>'todoListChecked'===_0x423fb7['_getAttributeKey'](_0x2dabbe));for(const _0x2ab034 of _0x5475a1){'todo'!=_0x2ab034['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x423fb7['_findSuggestions'](_0x2ab034['getFirstRange'](),'attribute')['find'](_0x277390=>'listType'===_0x423fb7['_getAttributeKey'](_0x277390['suggestion']))||(_0x27060b['removeMarker'](_0x2ab034['getFirstMarker']()),_0x11a7ee=!0x0));}return _0x11a7ee;})),_0x423fb7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1fc764,'FORMAT_INDENT'));const _0x2b0672={'type':'format','content':''};_0x423fb7['descriptionFactory']['registerDescriptionCallback'](_0x3c9208=>{const {data:_0x614965}=_0x3c9208;if(!_0x614965||'listType'!=_0x614965['key'])return;let _0x38239a=_0x3c9208['head'];for(;_0x38239a;){if(_0x38239a['data']&&(('listStyle'==_0x38239a['data']['key']||'listMarkerStyle'==_0x38239a['data']['key'])&&(_0x38239a['data']['newValue']&&'default'!=_0x38239a['data']['newValue']||'default'!=_0x38239a['data']['oldValue']&&!_0x614965['newValue'])||!_0x307c5a&&_0x38239a['data']['key']==m))return _0x2b0672;_0x38239a=_0x38239a['next'];}if(null==_0x614965['newValue'])switch(_0x614965['oldValue']){case'bulleted':return _0x4fa2f8(o(_0x1fc764,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4fa2f8(o(_0x1fc764,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4fa2f8(o(_0x1fc764,'ELEMENT_TODO_LIST'));}switch(_0x614965['newValue']){case'bulleted':return _0x5b1a5a(o(_0x1fc764,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b1a5a(o(_0x1fc764,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b1a5a(o(_0x1fc764,'ELEMENT_TODO_LIST'));}}),_0x423fb7['descriptionFactory']['registerDescriptionCallback'](_0x4b4417=>{const {data:_0xf786f2}=_0x4b4417;if(_0xf786f2&&'listIndent'==_0xf786f2['key'])return null==_0xf786f2['newValue']||null==_0xf786f2['oldValue']&&0x0==_0xf786f2['newValue']?_0x2b0672:void 0x0;}),_0x423fb7['descriptionFactory']['registerDescriptionCallback'](_0x5e54b7=>{if('attribute'!=_0x5e54b7['type'])return;const {data:_0x501a7d}=_0x5e54b7;if(!_0x501a7d||'listItemId'!=_0x501a7d['key'])return;const _0x47fe70=le(_0x5e54b7);return'newValue'==_0x47fe70?{'type':'format','content':o(_0x1fc764,'*Merge:*\x20list\x20item')}:'oldValue'==_0x47fe70?{'type':'format','content':o(_0x1fc764,'*Split:*\x20list\x20item')}:_0x2b0672;}),_0x4203de['model']['document']['registerPostFixer'](_0x29ea60=>this['listItemIdFixer'](_0x29ea60)),_0x4203de['model']['document']['registerPostFixer'](_0x5a2063=>this['noTrackChangesFixer'](_0x5a2063)),_0x4203de['model']['document']['registerPostFixer'](_0x27733a=>this['assureChains'](_0x27733a)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4770d3){if(_0x4770d3['batch']['isUndo']||!_0x4770d3['batch']['isLocal'])return!0x1;let _0x4f1e27=!0x1;const _0x5d95ea=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4122e6=>_0x4122e6['data']&&'listItemId'==_0x4122e6['data']['key'])['filter'](_0x526e6a=>_0x526e6a['data']['newValue']&&_0x526e6a['data']['oldValue']);for(const _0x56ebd3 of _0x5d95ea)le(_0x56ebd3)||(_0x4770d3['removeMarker'](_0x56ebd3['getFirstMarker']()),_0x4f1e27=!0x0);return _0x4f1e27;}['noTrackChangesFixer'](_0x1ec078){if(_0x1ec078['batch']['isUndo']||!_0x1ec078['batch']['isLocal'])return!0x1;const _0x23b59d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x23b59d['trackChangesCommand']['value'])return!0x1;let _0x386feb=!0x1;const _0x581261=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1ecef5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5c904a=>'attribute'==_0x5c904a['type'])['filter'](_0x2a6d41=>_0x581261['includes'](_0x2a6d41['attributeKey']));if(0x0==_0x1ecef5['length'])return _0x386feb;for(const _0x59afa of _0x1ecef5){const _0xcaa7d=_0x23b59d['_findSuggestions'](_0x59afa['range'],'attribute')['filter'](_0x3ed6ee=>!_0x3ed6ee['meta']['isNextTo'])['map'](_0x139ee3=>_0x139ee3['suggestion'])['filter'](_0x22c2a6=>{const _0x1a4e40=_0x23b59d['_getAttributeKey'](_0x22c2a6);return _0x581261['includes'](_0x1a4e40);});if(_0xcaa7d['length']){for(const _0x53011f of _0xcaa7d)_0x1ec078['removeMarker'](_0x53011f['getFirstMarker']());_0x386feb=!0x0;}}return _0x386feb;}['assureChains'](_0x5b7411){if(_0x5b7411['batch']['isUndo']||!_0x5b7411['batch']['isLocal'])return!0x1;const _0x38ef4a=this['editor']['plugins']['get']('TrackChangesEditing');let _0x535541=!0x1;const _0x3572fd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0xb7392e of _0x38ef4a['getSuggestions']({'skipNotAttached':!0x0})){const _0x397805=_0x38ef4a['_findSuggestions'](_0xb7392e['getFirstRange'](),'attribute')['map'](_0x11ef4f=>_0x11ef4f['suggestion'])['filter'](_0x1905f5=>_0x1905f5['data']&&_0x3572fd['includes'](_0x1905f5['data']['key']));if(!_0x397805['length'])continue;const _0x49e6c1=_0x397805[0x0]['head']['attributes']['groupId'];if(!_0x397805['every'](_0x373c9b=>_0x373c9b['attributes']['groupId']===_0x49e6c1)){for(const _0x6165f4 of _0x397805)_0x338448(_0x6165f4,_0x49e6c1)&&(_0x535541=!0x0);}}return _0x535541;function _0x3fb06f(_0x3fe777,_0x3c71cf){for(const _0x711830 of _0x38ef4a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ce5ce=>'attribute'==_0x4ce5ce['type']&&_0x4ce5ce['attributes']['groupId']==_0x3fe777))_0x711830['setAttribute']('groupId',_0x3c71cf);}function _0x338448(_0x1e6694,_0x50be98){let _0x223875=_0x1e6694['head'],_0x41f2c4=!0x1;for(;_0x223875;)_0x223875['attributes']['groupId']!=_0x50be98&&(_0x3fb06f(_0x223875['attributes']['groupId'],_0x50be98),_0x223875['setAttribute']('groupId',_0x50be98),_0x41f2c4=!0x0),_0x223875=_0x223875['next'];return _0x41f2c4;}}['_supportLegacySuggestions'](){const _0x5e6e51=this['editor'],_0xb3719b=_0x5e6e51['locale'],_0x136f44=_0x5e6e51['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x136f44['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3f9ff8,_0x3bf649){const _0x4a0f2d=[];for(let _0x42f47c of _0x3f9ff8)_0x42f47c['start']['nodeAfter']===_0x42f47c['end']['parent']&&(_0x42f47c=_0x5e6e51['model']['createRange'](_0x5e6e51['model']['createPositionAt'](_0x42f47c['start']['nodeAfter'],0x0))),_0x4a0f2d['push'](_0x42f47c);_0x5e6e51['model']['change'](_0x178629=>{const _0x2f3ee2=_0x5e6e51['model']['document']['selection'],_0x4d6c1=Array['from'](_0x2f3ee2['getRanges']())['map'](_0x51383d=>_0x2242e5['fromRange'](_0x51383d));_0x178629['setSelection'](_0x4a0f2d),_0x5e6e51['commands']['get'](_0x3bf649['commandName'])['refresh'](),_0x3bf649['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5e6e51['execute'](_0x3bf649['commandName'],..._0x3bf649['commandParams']),_0x178629['setSelection'](_0x4d6c1);for(const _0x53b1b5 of _0x4d6c1)_0x53b1b5['detach']();});}),_0x136f44['descriptionFactory']['registerElementLabel'](function(_0x442e61){const _0x461590=!_0x5e6e51['model']['schema']['isObject'](_0x442e61),_0x1bb9c1=_0x442e61['previousSibling'],_0xf8f2cf=_0x442e61['nextSibling'],_0x2a8992=_0x442e61['getAttribute']('listItemId'),_0x29ec12=!_0x1bb9c1||_0x1bb9c1['getAttribute']('listItemId')!==_0x2a8992,_0x2ab92a=!_0xf8f2cf||_0xf8f2cf['getAttribute']('listItemId')!==_0x2a8992;return _0x461590&&Boolean(_0x2a8992)&&_0x29ec12&&_0x2ab92a;},_0x4ffc56=>o(_0xb3719b,'ELEMENT_LIST_ITEM',_0x4ffc56));}['_registerLegacyDescription'](){const _0x144e67=this['editor'],_0x3be4d7=_0x144e67['locale'];function _0x55b52e(_0xd89b08){const _0x2904c8=_0x144e67['commands']['get']('bulletedList')['value'],_0x480ff4=_0x144e67['commands']['get']('numberedList')['value'];return'numberedList'===_0xd89b08?_0x2904c8:_0x480ff4;}_0x144e67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4a3271){if('formatBlock'!=_0x4a3271['type'])return;const {data:_0x5759b9}=_0x4a3271;if(!_0x5759b9)return;let _0x166649,_0x5353ed,_0x81f963,_0x486e28;switch(_0x5759b9['commandName']){case'bulletedList':_0x81f963=_0x5759b9['commandParams'][0x0]['forceValue'],_0x486e28=_0x55b52e(_0x5759b9['commandName']),_0x166649=_0x81f963?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x486e28&&_0x144e67['config']['get']('list.multiBlock')||(_0x166649='*Change\x20to:*\x20%0'),_0x5353ed={'type':'format','content':o(_0x3be4d7,_0x166649,o(_0x3be4d7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x81f963=_0x5759b9['commandParams'][0x0]['forceValue'],_0x486e28=_0x55b52e(_0x5759b9['commandName']),_0x166649=_0x81f963?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x486e28&&_0x144e67['config']['get']('list.multiBlock')||(_0x166649='*Change\x20to:*\x20%0'),_0x5353ed={'type':'format','content':o(_0x3be4d7,_0x166649,o(_0x3be4d7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x166649='*Indent:*\x20%0',_0x5353ed={'type':'format','content':o(_0x3be4d7,_0x166649,o(_0x3be4d7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x166649=function(_0x37a9a4){const _0x3734c8=_0x37a9a4['getFirstRange']();let _0x43e309=_0x3734c8['start']['nodeAfter'];for(;_0x43e309&&_0x3734c8['containsItem'](_0x43e309);){if(_0x43e309['getAttribute']('listIndent')>0x0)return!0x1;_0x43e309=_0x43e309['nextSibling'];}return!0x0;}(_0x4a3271)?o(_0x3be4d7,'*Format:*\x20remove\x20from\x20%0',o(_0x3be4d7,function(_0x48e496){return'ELEMENT_'+_0x48e496['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4a3271))):o(_0x3be4d7,'*Outdent:*\x20%0',o(_0x3be4d7,'ELEMENT_LIST_ITEM')),_0x5353ed={'type':'format','content':_0x166649};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5759b9['multipleBlocks']&&(_0x166649='*Merge:*\x20%0',_0x5353ed={'type':'deletion','content':o(_0x3be4d7,_0x166649,o(_0x3be4d7,'ELEMENT_LIST_ITEM'))});}return _0x5353ed;});}}function le(_0x1eeeaf){let _0x2cb721=_0x1eeeaf['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2cb721;){const _0xfede74=_0x2cb721['getAttribute']('listItemId');if(!_0xfede74)return!0x1;if(_0xfede74==_0x1eeeaf['data']['newValue'])return'newValue';if(_0xfede74==_0x1eeeaf['data']['oldValue'])return'oldValue';_0x2cb721=_0x2cb721['previousSibling'];}return!0x1;}class ue extends _0x357748{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x102f16=this['editor']['config']['get']('list.properties'),_0x64f09f=this['editor']['plugins']['get']('TrackChangesEditing');_0x102f16['styles']&&(_0x64f09f['enableDefaultAttributesIntegration']('listStyle'),_0x64f09f['registerBlockAttribute']('listStyle')),_0x102f16['reversed']&&(_0x64f09f['enableDefaultAttributesIntegration']('listReversed'),_0x64f09f['registerBlockAttribute']('listReversed')),_0x102f16['startIndex']&&(_0x64f09f['enableDefaultAttributesIntegration']('listStart'),_0x64f09f['registerBlockAttribute']('listStart'));const _0x142501={'type':'format','content':''};_0x64f09f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x124bfe=this['editor']['locale'];_0x64f09f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x124bfe,'FORMAT_LIST_REVERSED')),_0x64f09f['descriptionFactory']['registerDescriptionCallback'](_0x54e96c=>{const {data:_0x5292b8}=_0x54e96c;if(_0x5292b8&&'listReversed'==_0x5292b8['key'])return null==_0x5292b8['newValue']||0x0==_0x5292b8['newValue']&&null==_0x5292b8['oldValue']?_0x142501:void 0x0;}),_0x64f09f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x124bfe,'FORMAT_LIST_START')),_0x64f09f['descriptionFactory']['registerDescriptionCallback'](_0x55b365=>{const {data:_0x2448d6}=_0x55b365;if(_0x2448d6&&'listStart'==_0x2448d6['key'])return null==_0x2448d6['newValue']||0x1==_0x2448d6['newValue']&&null==_0x2448d6['oldValue']?_0x142501:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x551676=>{if(_0x551676['batch']['isUndo'])return!0x1;let _0x1c44d4=!0x1;const _0x2e010f=_0x64f09f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x561794=>{const _0x49cd66=_0x64f09f['_getAttributeKey'](_0x561794);return'listStart'==_0x49cd66||'listReversed'==_0x49cd66;});for(const _0x29e508 of _0x2e010f){const _0x2fd1d7=_0x29e508['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2fd1d7||'customNumbered'==_0x2fd1d7)continue;_0x64f09f['_findSuggestions'](_0x29e508['getFirstRange'](),'attribute')['find'](_0x3b47ff=>'listType'==_0x64f09f['_getAttributeKey'](_0x3b47ff['suggestion']))||(_0x551676['removeMarker'](_0x29e508['getFirstMarker']()),_0x1c44d4=!0x0);}return _0x1c44d4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3f4e7c){const _0x286b6f=this['editor']['locale'],{data:_0x206d1a}=_0x3f4e7c,_0x11f46c={'type':'format','content':''};if(!_0x206d1a||'listStyle'!=_0x206d1a['key'])return;if(!_0x206d1a['oldValue'])return'default'==_0x206d1a['newValue']?_0x11f46c:{'type':'format','content':''+o(_0x286b6f,'*Set\x20format:*\x20%0',o(_0x286b6f,this['_getTranslationKeyForListStyle'](_0x206d1a['newValue'])))};if(!_0x206d1a['newValue']){if('default'==_0x206d1a['oldValue'])return _0x11f46c;let _0x220bd=_0x3f4e7c['head'];for(;_0x220bd;){if(_0x220bd['data']&&'listType'==_0x220bd['data']['key']&&_0x220bd['data']['newValue'])return _0x11f46c;_0x220bd=_0x220bd['next'];}return{'type':'format','content':''+o(_0x286b6f,'*Remove\x20format:*\x20%0',o(_0x286b6f,this['_getTranslationKeyForListStyle'](_0x206d1a['oldValue'])))};}if('default'!=_0x206d1a['newValue'])return{'type':'format','content':''+o(_0x286b6f,'*Set\x20format:*\x20%0',o(_0x286b6f,this['_getTranslationKeyForListStyle'](_0x206d1a['newValue'])))};let _0x58b38=_0x3f4e7c['head'];for(;_0x58b38;){if(_0x58b38['data']&&'listType'==_0x58b38['data']['key']&&_0x58b38['data']['newValue']&&_0x58b38['data']['oldValue'])return _0x11f46c;_0x58b38=_0x58b38['next'];}return{'type':'format','content':o(_0x286b6f,'*Set\x20format:*\x20%0',o(_0x286b6f,'ELEMENT_'+_0x3f4e7c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x25b9f2=this['editor'],_0x11b13f=_0x25b9f2['locale'];_0x25b9f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eb4ea=>{if('formatBlock'!=_0x2eb4ea['type'])return;const {data:_0xac5c71}=_0x2eb4ea;if(!_0xac5c71)return;let _0x21dad1,_0x2fab42;switch(_0xac5c71['commandName']){case'listStyle':_0x21dad1='*Change\x20to:*\x20%0',_0x2fab42={'type':'format','content':o(_0x11b13f,_0x21dad1,o(_0x11b13f,this['_getTranslationKeyForListStyle'](_0xac5c71['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21dad1=_0xac5c71['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2fab42={'type':'format','content':o(_0x11b13f,_0x21dad1)};break;case'listStart':_0x21dad1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2fab42={'type':'format','content':o(_0x11b13f,_0x21dad1,_0xac5c71['commandParams'][0x0]['startIndex'])};}return _0x2fab42;});}['_getTranslationKeyForListStyle'](_0x5e0c88){return'ELEMENT_'+function(_0x343ea7){if(pe['includes'](_0x343ea7))return'bulleted';if(ye['includes'](_0x343ea7))return'numbered';return null;}(_0x5e0c88)['toUpperCase']()+'_LIST_'+_0x5e0c88['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x357748{static get['requires'](){return[_0xd05fea];}['init'](){const _0x444d42=this['editor'],_0x3182bc=_0x444d42['plugins']['get']('TrackChangesEditing'),_0x464a00=_0x444d42['commands']['get']('enter');_0x3182bc['enableCommand']('enter',()=>{_0x444d42['model']['change'](_0x207418=>{const _0x109ae4=_0x444d42['model']['document']['selection'],_0x190df7=_0x109ae4['getFirstPosition'](),_0x545a8f=_0x2242e5['fromRange'](_0x109ae4['getFirstRange']());if(_0x464a00['enterBlock'](_0x207418)){const _0x543f07=_0x444d42['model']['createPositionAt'](_0x190df7['parent']['nextSibling'],0x0),_0x26709d=_0x207418['createRange'](_0x190df7,_0x543f07);_0x3182bc['markInsertion'](_0x26709d);}else _0x207418['setSelection'](_0x207418['createRange'](_0x545a8f['end']));_0x545a8f['detach'](),_0x464a00['fire']('afterExecute',{'writer':_0x207418});});}),_0x444d42['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x444d42,'split'),{'priority':'high'}),_0x444d42['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3075ae,_0x3aebfa,_0x4315ba)=>{const _0x7822e5=_0x4315ba['mapper']['markerNameToElements'](_0x3aebfa['markerName']);if(_0x7822e5){for(const _0x17cb04 of _0x7822e5)_0x17cb04['hasClass']('ck-suggestion-marker-split')&&(_0x4315ba['mapper']['unbindElementFromMarkerName'](_0x17cb04,_0x3aebfa['markerName']),_0x4315ba['writer']['remove'](_0x17cb04));}},{'priority':'high'}),_0x444d42['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x31b7e1,_0x1619b2,_0x411c34)=>{_0x411c34['options']['showSuggestionHighlights']&&_e(_0x444d42,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x31b7e1,_0x1619b2,_0x411c34);},{'priority':'high'});}}class J extends _0x357748{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5263d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5263d3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5263d3['enableCommand']('findNext'),_0x5263d3['enableCommand']('findPrevious'),_0x5263d3['enableCommand']('replace'),_0x5263d3['enableCommand']('replaceAll');}['handleFindCommand'](_0x1f94c8,_0xa37b94,_0x1d21f6={}){const _0x5c90d3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1f94c8(_0x2aa6c3=>('string'==typeof _0xa37b94?_0x5c90d3['findByTextCallback'](_0xa37b94,_0x1d21f6):_0xa37b94)(_0x2aa6c3)['filter'](_0x38d759=>!0x1===this['_isInDeletionRange'](_0x38d759,_0x2aa6c3['item'])),_0x1d21f6);}['_isInDeletionRange'](_0x5030dc,_0x328632){const _0xfd3147=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x328632,_0x5030dc['start']),this['editor']['model']['createPositionAt'](_0x328632,_0x5030dc['end']));for(const _0x574ec4 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xfd3147['getIntersection'](_0x574ec4['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 _0x357748{['afterInit'](){const _0x3f3807=this['editor']['locale'],_0x362f4a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5479db,commandName:_0x10f813}of ro)this['editor']['plugins']['has'](_0x5479db)&&(_0x362f4a['enableDefaultAttributesIntegration'](_0x10f813),_0x362f4a['registerInlineAttribute'](_0x10f813));_0x3f3807['t'],_0x362f4a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3f3807,'FORMAT_FONT_SIZE')),_0x362f4a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3f3807,'FORMAT_FONT_FAMILY')),_0x362f4a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3f3807,'FORMAT_FONT_COLOR')),_0x362f4a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3f3807,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x274a27=this['editor'],_0x35ebf5=_0x274a27['locale'];_0x274a27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12c8c0=>{const _0x246c89=_0x35ebf5['t'];if('formatInline'!=_0x12c8c0['type'])return;const {data:_0x1ebef3}=_0x12c8c0;if(null!=_0x1ebef3){if('fontSize'==_0x1ebef3['commandName']){const _0x14c841=_0x1ebef3['commandParams'][0x0]['value'];if(_0x14c841){const _0x35a90e=_0x246c89(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x395653=>_0x395653['model']==_0x14c841)['title'])['toLowerCase']();return{'type':'format','content':o(_0x35ebf5,'*Set\x20font\x20size:*\x20%0',_0x35a90e)};}return{'type':'format','content':o(_0x35ebf5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1ebef3['commandName']){const _0x9da149=_0x1ebef3['commandParams'][0x0]['value'];return _0x9da149?{'type':'format','content':o(_0x35ebf5,'*Set\x20font\x20family:*\x20%0',_0x9da149)}:{'type':'format','content':o(_0x35ebf5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1ebef3['commandName']){const _0x3db2eb=_0x1ebef3['commandParams'][0x0]['value'];if(_0x3db2eb){const _0x7a02d=_0x52a58c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1de496=>_0x1de496['model']==_0x3db2eb);let _0x4fe1be=_0x3db2eb,_0xb89946='';return _0x7a02d&&(_0x4fe1be=_0x7a02d['label'],_0xb89946=_0x246c89(_0x4fe1be)['toLowerCase']()),{'type':'format','content':o(_0x35ebf5,'*Set\x20font\x20color:*\x20%0',_0xb89946)['trim'](),'color':{'value':_0x3db2eb,'title':_0xb89946||_0x4fe1be}};}return{'type':'format','content':o(_0x35ebf5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1ebef3['commandName']){const _0x10ce60=_0x1ebef3['commandParams'][0x0]['value'];if(_0x10ce60){const _0x37cf17=_0x52a58c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x369dd0=>_0x369dd0['model']==_0x10ce60);let _0x55c66a=_0x10ce60,_0x42ebb8='';return _0x37cf17&&(_0x55c66a=_0x37cf17['label'],_0x42ebb8=_0x246c89(_0x55c66a)['toLowerCase']()),{'type':'format','content':o(_0x35ebf5,'*Set\x20font\x20background\x20color:*\x20%0',_0x42ebb8)['trim'](),'color':{'value':_0x10ce60,'title':_0x42ebb8||_0x55c66a}};}return{'type':'format','content':o(_0x35ebf5,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x357748{['afterInit'](){const _0x4774da=this['editor'],_0x4f9987=_0x4774da['plugins']['get']('TrackChangesEditing'),_0x31bba1=_0x4774da['commands']['get']('copyFormat'),_0x49b3bc=_0x4774da['commands']['get']('pasteFormat');_0x31bba1&&_0x49b3bc&&(_0x4f9987['enableDefaultAttributesIntegration']('pasteFormat'),_0x4f9987['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x9161ce=this['editor'],_0x44ec8f=_0x9161ce['locale'];_0x9161ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x322e42=>{if('formatBlock'!=_0x322e42['type']&&'formatInline'!=_0x322e42['type'])return;const {data:_0x2551a6}=_0x322e42;if(_0x2551a6&&'pasteFormat'===_0x2551a6['commandName']){const _0x470f3d=[],_0x4bcdb0=_0x2551a6['commandParams'][0x0];for(const [_0x210e7f,_0xd03f63]of Object['entries'](_0x4bcdb0))_0x470f3d['push'](so(_0x9161ce,_0x210e7f,_0xd03f63));return _0x470f3d['length']?{'type':'format','content':o(_0x44ec8f,'*Set\x20format\x20to:*\x20%0',_0x470f3d['join'](',\x20'))}:{'type':'format','content':o(_0x44ec8f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1dd528,_0x41f74d,_0x10c8d2){const _0x51a23d=_0x1dd528['locale']['t'],_0x248610=_0x41f74d['split'](/(?=[A-Z])/)['join']('\x20'),_0x2ba36e=_0x51a23d(_0x248610['charAt'](0x0)['toUpperCase']()+_0x248610['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x10c8d2)return _0x2ba36e;if('fontColor'===_0x41f74d||'fontBackgroundColor'===_0x41f74d){const _0x1f227a=_0x52a58c(_0x1dd528['config']['get']('fontColor.colors'))['find'](_0x28754e=>_0x28754e['model']==_0x10c8d2);return _0x2ba36e+'\x20('+(_0x1f227a?_0x51a23d(_0x1f227a['label'])['toLowerCase']():_0x10c8d2)+')';}if('fontSize'===_0x41f74d&&isNaN(parseFloat(_0x10c8d2))){const _0x2830d6=_0x1dd528['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1dd528['config']['get']('fontSize.options'))['find'](_0x4bbc3a=>_0x4bbc3a['model']==_0x10c8d2);return _0x2ba36e+'\x20('+(_0x2830d6?_0x51a23d(_0x2830d6['title'])['toLowerCase']():_0x10c8d2)+')';}return _0x2ba36e+'\x20('+_0x10c8d2+')';}class Y extends _0x357748{['afterInit'](){const _0x574271=this['editor'];if(!_0x574271['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x574271['config']['get']('heading.options');const _0x2621a0=_0x574271['locale'],_0x4ddcfb=_0x574271['plugins']['get']('TrackChangesEditing');_0x4ddcfb['enableDefaultAttributesIntegration']('heading');for(const _0x731827 of this['_headingOptions'])'paragraph'!=_0x731827['model']&&_0x4ddcfb['descriptionFactory']['registerElementLabel'](_0x731827['model'],_0x4861ba=>{const _0x194493=this['_getHeadingLevel'](_0x731827['model']);return null!==_0x194493?_0x1f7485(_0x4861ba,_0x194493):_0x3fe78d(_0x4861ba,_0x731827['title']);});function _0x1f7485(_0x280823,_0x4a6150){return o(_0x2621a0,'ELEMENT_HEADING',[_0x280823,_0x4a6150]);}function _0x3fe78d(_0x3fedc7,_0x51aa29){return o(_0x2621a0,'ELEMENT_HEADING_CUSTOM',[_0x3fedc7,_0x51aa29]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12401f=this['editor'],_0xc6a1cb=_0x12401f['locale'];function _0x5a6d76(_0x47e7fe,_0x36aaad){return o(_0xc6a1cb,'ELEMENT_HEADING_CUSTOM',[_0x47e7fe,_0x36aaad]);}_0x12401f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34a0c5=>{if('formatBlock'!=_0x34a0c5['type'])return;const {data:_0x5c1e15}=_0x34a0c5;if(_0x5c1e15&&'heading'==_0x5c1e15['commandName']){const _0x216215=_0x5c1e15['commandParams'][0x0]['value'],_0x4a1b9f=this['_getHeadingLevel'](_0x216215);if(null!==_0x4a1b9f)return{'type':'format','content':o(_0xc6a1cb,'*Change\x20to:*\x20%0',(_0xb2c020=0x1,_0x271025=_0x4a1b9f,o(_0xc6a1cb,'ELEMENT_HEADING',[_0xb2c020,_0x271025])))};const _0x493820=this['_headingOptions']['find'](_0x3c5b12=>_0x3c5b12['model']===_0x216215)['title'];return{'type':'format','content':o(_0xc6a1cb,'*Change\x20to:*\x20%0',_0x5a6d76(0x1,_0x493820))};}var _0xb2c020,_0x271025;});}['_getHeadingLevel'](_0x101349){var _0x31e640,_0x175151;const _0xd6eb34=_0x101349['match'](/^heading(\d+)/);if(_0xd6eb34)return _0xd6eb34[0x1];const _0x482396=null===(_0x31e640=this['_headingOptions'])||void 0x0===_0x31e640?void 0x0:_0x31e640['find'](_0x241878=>_0x241878['model']==_0x101349);if(_0x482396&&_0x482396['view']){const _0x5958fa=_0x482396['view'],_0x500cf1=(null!==(_0x175151=_0x5958fa['name'])&&void 0x0!==_0x175151?_0x175151:_0x5958fa)['match'](/^h(\d+)/);if(_0x500cf1)return _0x500cf1[0x1];}return null;}}class Z extends _0x357748{['afterInit'](){const _0x434c80=this['editor'];if(!_0x434c80['plugins']['has']('HighlightEditing'))return;const _0x525fc0=_0x434c80['plugins']['get']('TrackChangesEditing'),_0x3a71f7=_0x434c80['locale'];_0x525fc0['enableDefaultAttributesIntegration']('highlight'),_0x525fc0['registerInlineAttribute']('highlight'),_0x525fc0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3a71f7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e985b=this['editor'],_0x13aab4=_0x4e985b['locale'];_0x4e985b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b9501=>{if('formatInline'!=_0x4b9501['type'])return;const {data:_0x106b1b}=_0x4b9501;if(_0x106b1b&&'highlight'==_0x106b1b['commandName']){const _0x16235f=_0x13aab4['t'],_0x4e339d=_0x106b1b['commandParams'][0x0]['value'];if(_0x4e339d){const _0xf6d07d=_0x4e985b['config']['get']('highlight.options')['find'](_0x425974=>_0x425974['model']==_0x4e339d),_0x4175a8=_0x16235f(_0xf6d07d['title'])['toLowerCase']();return{'type':'format','content':o(_0x13aab4,'*Set\x20highlight:*\x20%0',_0x4175a8),'color':{'value':_0xf6d07d['color'],'title':_0xf6d07d['title']}};}return{'type':'format','content':o(_0x13aab4,'*Remove\x20highlight*',o(_0x13aab4,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x357748{['afterInit'](){const _0x2c5acd=this['editor'];if(!_0x2c5acd['plugins']['has']('HorizontalLineEditing'))return;_0x2c5acd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c462e=_0x2c5acd['plugins']['get']('TrackChangesEditing'),_0x3674b6=_0x2c5acd['locale'];_0x4c462e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5c7eb2=>o(_0x3674b6,'ELEMENT_HORIZONTAL_LINE',_0x5c7eb2)),_0x2c5acd['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x14562e,{writer:_0x23fc7a,options:_0x553bc2})=>{if(!_0x553bc2['showSuggestionHighlights'])return null;const _0x3d2b61=_0x23fc7a['createContainerElement']('div'),_0x740770=_0x23fc7a['createEmptyElement']('hr');return _0x23fc7a['addClass']('ck-horizontal-line',_0x3d2b61),_0x23fc7a['insert'](_0x23fc7a['createPositionAt'](_0x3d2b61,0x0),_0x740770),_0x3d2b61;},'converterPriority':'high'});}}class et extends _0x357748{['afterInit'](){const _0x33bbb5=this['editor'];if(!_0x33bbb5['plugins']['has']('HtmlEmbed'))return;const _0x29f904=_0x33bbb5['plugins']['get']('TrackChangesEditing'),_0x8a40c8=_0x33bbb5['locale'];_0x29f904['descriptionFactory']['registerElementLabel']('rawHtml',_0x215b0e=>o(_0x8a40c8,'ELEMENT_HTML_EMBED',_0x215b0e)),_0x29f904['enableDefaultAttributesIntegration']('htmlEmbed'),_0x29f904['registerBlockAttribute']('value'),_0x29f904['descriptionFactory']['registerDescriptionCallback'](_0x1c8b5a=>{if('attribute'!=_0x1c8b5a['type'])return;const {data:_0x2ecc3b}=_0x1c8b5a;if(_0x2ecc3b&&'value'==_0x2ecc3b['key']&&_0x1c8b5a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3bb676=o(_0x8a40c8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x8a40c8,'*Change\x20%0\x20content*',_0x3bb676)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fc36e=this['editor'],_0x837563=_0x1fc36e['locale'];_0x1fc36e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x311c41=>{if('formatBlock'!=_0x311c41['type'])return;const {data:_0x3890bb}=_0x311c41;if(_0x3890bb&&'htmlEmbed'==_0x3890bb['commandName']){const _0x5ebcd8=o(_0x837563,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x837563,'*Change\x20%0\x20content*',_0x5ebcd8)};}});}}class it extends _0x357748{['afterInit'](){const _0x3fbb6f=this['editor'];if(!_0x3fbb6f['plugins']['has']('ImageEditing'))return;const _0x4b9c17=_0x3fbb6f['plugins']['get']('TrackChangesEditing'),_0x36d73d=_0x3fbb6f['plugins']['get']('ImageUtils'),_0x55d11e=_0x3fbb6f['locale'];_0x4b9c17['enableCommand']('insertImage'),_0x4b9c17['descriptionFactory']['registerElementLabel']('imageBlock',_0xc10090=>o(_0x55d11e,'ELEMENT_IMAGE',_0xc10090)),_0x4b9c17['descriptionFactory']['registerElementLabel']('imageInline',_0x183846=>o(_0x55d11e,'ELEMENT_INLINE_IMAGE',_0x183846)),_0x4b9c17['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x55d11e,'ELEMENT_CAPTION')),_0x3fbb6f['plugins']['has']('ImageUploadEditing')&&_0x4b9c17['enableCommand']('uploadImage'),_0x3fbb6f['plugins']['has']('ImageBlockEditing')&&_0x3fbb6f['plugins']['has']('ImageInlineEditing')&&(_0x4b9c17['enableCommand']('imageTypeInline',(_0x194963,_0x587c2c)=>{const _0x2f8178=_0x36d73d['getClosestSelectedImageElement'](_0x3fbb6f['model']['document']['selection']);_0x3fbb6f['model']['change'](()=>{_0x4b9c17['markBlockFormat'](_0x2f8178,{'commandName':'imageTypeInline','commandParams':[_0x587c2c]},[],'convertBlockImageToInline');});}),_0x4b9c17['enableCommand']('imageTypeBlock',(_0x18897e,_0x5ace54)=>{_0x3fbb6f['model']['change'](_0x5d25f6=>{let _0x332f7b=_0x36d73d['getClosestSelectedImageElement'](_0x3fbb6f['model']['document']['selection']),_0x2115d5=_0x5d25f6['createRangeOn'](_0x332f7b);const _0x58808a=_0x135ce5['fromPosition'](_0x2115d5['start'],'toPrevious'),_0x28edce=_0x135ce5['fromPosition'](_0x2115d5['end'],'toNext');_0x4b9c17['forceDefaultExecution'](()=>_0x18897e(_0x5ace54)),_0x332f7b=_0x36d73d['getClosestSelectedImageElement'](_0x3fbb6f['model']['document']['selection']),_0x2115d5=_0x5d25f6['createRangeOn'](_0x332f7b);const _0x288004=_0x5d25f6['createRange'](_0x58808a,_0x28edce);_0x58808a['detach'](),_0x28edce['detach'](),_0x4b9c17['markBlockFormat'](_0x332f7b,{'commandName':'imageTypeInline','commandParams':[_0x5ace54]},[],'convertInlineImageToBlock'),_0x288004['start']['isBefore'](_0x2115d5['start'])&&_0x4b9c17['markInsertion'](_0x5d25f6['createRange'](_0x288004['start'],_0x2115d5['start']),'convertInlineImageToBlock'),_0x2115d5['end']['isBefore'](_0x288004['end'])&&_0x4b9c17['markInsertion'](_0x5d25f6['createRange'](_0x2115d5['end'],_0x288004['end']),'convertInlineImageToBlock');});}),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4b9c17['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x37cf1f])=>{const _0x4879a6=_0x4b9c17['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2498d1=_0x37cf1f['start'],_0x1e4cd7=_0x37cf1f['end'];const _0x1a03a3=_0x3fbb6f['model']['schema']['getNearestSelectionRange'](_0x2498d1,'backward'),_0x5eb2fc=_0x3fbb6f['model']['schema']['getNearestSelectionRange'](_0x1e4cd7,'forward');_0x1a03a3['isCollapsed']&&(_0x2498d1=_0x1a03a3['start']),_0x5eb2fc['isCollapsed']&&(_0x1e4cd7=_0x5eb2fc['end']),_0x4879a6([_0x3fbb6f['model']['createRange'](_0x2498d1,_0x1e4cd7)]);}),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5c9017),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5c9017)),_0x3fbb6f['plugins']['has']('ImageCaptionEditing')&&(_0x4b9c17['enableCommand']('toggleImageCaption',(_0x1b0bef,_0x57816e)=>{const _0x2c04db=_0x3fbb6f['plugins']['get']('ImageCaptionUtils');let _0x4a3a04=_0x36d73d['getClosestSelectedImageElement'](_0x3fbb6f['model']['document']['selection']),_0x2c3ec8=_0x2c04db['getCaptionFromImageModelElement'](_0x4a3a04);_0x3fbb6f['model']['change'](()=>{if(_0x2c3ec8)return void _0x4b9c17['markDeletion'](_0x3fbb6f['model']['createRangeOn'](_0x2c3ec8));const _0x549623=_0x36d73d['isBlockImage'](_0x4a3a04);_0x1b0bef(_0x57816e),_0x4a3a04=_0x36d73d['getClosestSelectedImageElement'](_0x3fbb6f['model']['document']['selection']),_0x2c3ec8=_0x2c04db['getCaptionFromImageModelElement'](_0x4a3a04),_0x4b9c17['markInsertion'](_0x3fbb6f['model']['createRangeOn'](_0x2c3ec8),_0x549623?null:'imageCaption');});}),_0x4b9c17['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5c9017));const _0x15e7c8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xfa87d8(_0x4e5138,_0x152290){const _0xf689c1=_0x15e7c8['findIndex'](({type:_0x35be26,subType:_0x279915})=>_0x4e5138['type']==_0x35be26&&_0x4e5138['subType']==_0x279915),_0x1db0e4=_0x15e7c8['findIndex'](({type:_0x4dd55d,subType:_0x3df970})=>_0x152290['type']==_0x4dd55d&&_0x152290['subType']==_0x3df970);if(_0xf689c1<0x0||_0x1db0e4<0x0)return!0x1;const _0x57da95=_0x4e5138['getFirstRange'](),_0x5bf9f1=_0x152290['getFirstRange']();if((0x0==_0xf689c1||0x1==_0xf689c1)&&0x2==_0x1db0e4&&_0x57da95['isIntersecting'](_0x5bf9f1))return!0x0;if(0x2==_0xf689c1&&0x3==_0x1db0e4){const _0x372530=_0x4b9c17['_findSuggestions'](_0x57da95,'insertion')['filter'](({suggestion:_0x33c383,meta:_0x414e6a})=>_0x414e6a['isOwn']&&'convertInlineImageToBlock'==_0x33c383['subType']);if(_0x372530['length']>0x1&&_0x5bf9f1['end']['isEqual'](_0x57da95['start']))return!0x0;if(0x1==_0x372530['length']&&(_0x57da95['start']['isEqual'](_0x5bf9f1['end'])||_0x57da95['end']['isEqual'](_0x5bf9f1['start'])))return!0x0;}if(0x3==_0xf689c1&&0x3==_0x1db0e4&&_0x57da95['start']['isBefore'](_0x5bf9f1['start'])){const _0x17d7ff=_0x57da95['end']['nodeAfter'],_0x27414c=_0x5bf9f1['start']['nodeBefore'];return _0x36d73d['isBlockImage'](_0x17d7ff)&&_0x17d7ff===_0x27414c;}return!0x1;}function _0x5c9017(_0x516c91,_0x3f2621){return _0xfa87d8(_0x516c91,_0x3f2621)?[_0x516c91,_0x3f2621]:_0xfa87d8(_0x3f2621,_0x516c91)?[_0x3f2621,_0x516c91]:null;}_0x3fbb6f['plugins']['has']('ImageResize')&&(_0x4b9c17['enableDefaultAttributesIntegration']('resizeImage'),_0x4b9c17['registerBlockAttribute']('resizedWidth'),_0x4b9c17['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x55d11e,'FORMAT_IMAGE_SIZE'))),_0x3fbb6f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4b9c17['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4b9c17['registerBlockAttribute']('alt')),_0x4b9c17['descriptionFactory']['registerDescriptionCallback'](_0x15b8db=>{if(!!_0x15e7c8['find'](({type:_0x176bca,subType:_0xa9ee05})=>_0x15b8db['type']==_0x176bca&&_0x15b8db['subType']==_0xa9ee05))return _0x15b8db['previous']?{}:void 0x0;}),_0x4b9c17['descriptionFactory']['registerDescriptionCallback'](_0xc22d10=>{if('insertion'==_0xc22d10['type']||'deletion'==_0xc22d10['type']){const _0x4a8a66=_0xc22d10['getContainedElement']();if(_0x4a8a66&&_0x4a8a66['is']('element','caption'))return{'type':'insertion'==_0xc22d10['type']?'addObject':'removeObject','element':_0x4a8a66,'quantity':0x1};}}),_0x4b9c17['descriptionFactory']['registerDescriptionCallback'](_0x2b386=>'formatBlock'==_0x2b386['type']&&'convertInlineImageToBlock'==_0x2b386['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2b386['type']&&'convertBlockImageToInline'==_0x2b386['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4b9c17['descriptionFactory']['registerDescriptionCallback'](_0x207199=>{if('attribute'!=_0x207199['type'])return;const {data:_0x4210c3}=_0x207199;if(!_0x4210c3||'alt'!=_0x4210c3['key'])return;const _0x309db2=_0x4210c3['newValue'];return _0x309db2?{'type':'format','content':o(_0x55d11e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x309db2+'\x22')}:{'type':'format','content':o(_0x55d11e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3028f8=this['editor'],_0x5cb87b=_0x3028f8['locale'];_0x3028f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34d30b=>{if('formatBlock'!=_0x34d30b['type']&&'formatInline'!=_0x34d30b['type'])return;const {data:_0x386c1e}=_0x34d30b;if(_0x386c1e){if('imageTextAlternative'==_0x386c1e['commandName']){const _0x386f0f=_0x386c1e['commandParams'][0x0]['newValue'];return _0x386f0f?{'type':'format','content':o(_0x5cb87b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x386f0f+'\x22')}:{'type':'format','content':o(_0x5cb87b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x386c1e['commandName']){const _0x2f2368=_0x386c1e['commandParams'][0x0]['width'];return _0x2f2368?{'type':'format','content':o(_0x5cb87b,'*Set\x20image\x20width:*\x20%0',_0x2f2368)}:{'type':'format','content':o(_0x5cb87b,'*Reset\x20image\x20width*')};}}});}}class st extends _0x357748{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x24a197=this['editor']['locale'],_0x44cb19=this['editor']['plugins']['get']('TrackChangesEditing');_0x44cb19['enableDefaultAttributesIntegration']('replaceImageSource'),_0x44cb19['registerBlockAttribute']('src'),_0x44cb19['descriptionFactory']['registerDescriptionCallback'](_0x5e97f9=>{if('attribute'!=_0x5e97f9['type'])return;const {data:_0x5853fd}=_0x5e97f9;return _0x5853fd&&'src'==_0x5853fd['key']?_0x5853fd['newValue']&&_0x5853fd['oldValue']?{'type':'format','content':o(_0x24a197,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x469323=this['editor']['plugins']['get']('TrackChangesEditing');_0x469323['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x469323['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x469323['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x469323['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9d2e8c=this['editor'],_0x10f4ee=_0x9d2e8c['locale'];_0x9d2e8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1909cf=>{if('formatBlock'!=_0x1909cf['type']&&'formatInline'!=_0x1909cf['type'])return;const {data:_0x40832b}=_0x1909cf;if(!_0x40832b||'replaceImageSource'!=_0x40832b['commandName'])return;return{'type':'format','content':o(_0x10f4ee,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x357748{['afterInit'](){const _0x324436=this['editor'];if(!_0x324436['plugins']['has']('ImageStyleEditing'))return;const _0x53962b=_0x324436['plugins']['get']('TrackChangesEditing'),_0x1ed0bf=_0x324436['plugins']['get']('ImageUtils'),_0x29c285={};_0x53962b['enableCommand']('imageStyle',(_0x1e376a,_0x5767c8)=>{const _0x546829=_0x324436['plugins']['get']('Users')['me'],_0x469c00=_0x324436['commands']['get']('imageStyle');let _0x1e956c=_0x1ed0bf['getClosestSelectedImageElement'](_0x324436['model']['document']['selection']),_0x47d09d=_0x324436['model']['createRangeOn'](_0x1e956c),_0x3cf29a=_0x469c00['value'];if(_0x3cf29a==_0x5767c8['value'])return;const _0x2fc049={'commandName':'imageStyle','commandParams':[_0x5767c8],'formatGroupId':_0x501bc0()};_0x324436['model']['change'](()=>{if(_0x53962b['getSuggestions']()['filter'](_0x2b06b2=>_0x2b06b2['isInContent']&&_0x546829==_0x2b06b2['author']&&('formatBlock'==_0x2b06b2['type']||'formatInline'==_0x2b06b2['type'])&&('imageStylePreApply'==_0x2b06b2['subType']||'imageStylePostApply'==_0x2b06b2['subType'])&&_0x2b06b2['getFirstRange']()['isEqual'](_0x47d09d))['forEach'](_0x3cad92=>_0x53962b['discardSuggestion'](_0x3cad92['head'])),_0x1e956c=_0x1ed0bf['getClosestSelectedImageElement'](_0x324436['model']['document']['selection']),_0x47d09d=_0x324436['model']['createRangeOn'](_0x1e956c),_0x469c00['refresh'](),_0x324436['commands']['get']('imageTypeInline')['refresh'](),_0x324436['commands']['get']('imageTypeBlock')['refresh'](),_0x3cf29a=_0x469c00['value'],_0x3cf29a!=_0x5767c8['value'])return _0x1ed0bf['isInlineImage'](_0x1e956c)&&_0x469c00['shouldConvertImageType'](_0x5767c8['value'],_0x1e956c)?(_0x1e376a({..._0x5767c8,'setImageSizes':!0x1}),_0x1e956c=_0x1ed0bf['getClosestSelectedImageElement'](_0x324436['model']['document']['selection']),void _0x53962b['markBlockFormat'](_0x1e956c,{..._0x2fc049,'commandReversedParams':[{'value':_0x3cf29a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1ed0bf['isBlockImage'](_0x1e956c)?_0x53962b['markBlockFormat'](_0x1e956c,_0x2fc049,[],'imageStylePostApply'):_0x53962b['markInlineFormat'](_0x47d09d,_0x2fc049,'imageStylePostApply'));});});for(const _0x5b20a9 of _0x324436['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x29c285[_0x5b20a9['name']]=_0x5b20a9['title']['toLowerCase']();_0x53962b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x53962b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x53962b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x53962b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3a30b1])=>{_0x1ed0bf['setImageNaturalSizeAttributes'](_0x3a30b1['getContainedElement']());}),_0x53962b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x12e31f,_0x4cb4b3)=>{_0x53962b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x12e31f,{'commandName':_0x4cb4b3['commandName'],'commandParams':_0x4cb4b3['commandReversedParams']});}),_0x53962b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1e3793,_0x58a904){if(_0x147689(_0x1e3793,_0x58a904))return[_0x1e3793,_0x58a904];if(_0x147689(_0x58a904,_0x1e3793))return[_0x58a904,_0x1e3793];return null;});const _0x51a70a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x147689(_0xf95f3a,_0x4fa872){const _0x47f87c=_0x51a70a['findIndex'](({type:_0x9130f0,subType:_0x39ac52})=>_0xf95f3a['type']==_0x9130f0&&_0xf95f3a['subType']==_0x39ac52),_0x2bb1dd=_0x51a70a['findIndex'](({type:_0x4f74b3,subType:_0x52564a})=>_0x4fa872['type']==_0x4f74b3&&_0x4fa872['subType']==_0x52564a);if(_0x47f87c<0x0||_0x2bb1dd<0x0)return!0x1;const _0x167112=_0xf95f3a['getFirstRange'](),_0x470e74=_0x4fa872['getFirstRange']();if((0x0==_0x47f87c||0x1==_0x47f87c)&&0x2==_0x2bb1dd&&_0x167112['isIntersecting'](_0x470e74))return!0x0;if(0x2==_0x47f87c&&0x3==_0x2bb1dd){const _0xc08d52=_0x53962b['_findSuggestions'](_0x167112,'insertion')['filter'](({suggestion:_0x1283bf,meta:_0x4b5e82})=>_0x4b5e82['isOwn']&&'convertInlineImageToBlock'==_0x1283bf['subType']);if(_0xc08d52['length']>0x1&&_0x470e74['end']['isEqual'](_0x167112['start']))return!0x0;if(0x1==_0xc08d52['length']&&(_0x167112['start']['isEqual'](_0x470e74['end'])||_0x167112['end']['isEqual'](_0x470e74['start'])))return!0x0;}if(0x3==_0x47f87c&&0x3==_0x2bb1dd&&_0x167112['start']['isBefore'](_0x470e74['start'])){const _0x147433=_0x167112['end']['nodeAfter'],_0x109913=_0x470e74['start']['nodeBefore'];return _0x1ed0bf['isBlockImage'](_0x147433)&&_0x147433===_0x109913;}return!0x1;}_0x324436['model']['document']['registerPostFixer'](()=>{let _0x23f55a=!0x1;const _0xfeb417=Array['from'](_0x324436['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4171fe,data:_0x462cb9}of _0xfeb417){const {group:_0x2d4f20,type:_0x801f7a,subType:_0x62055a,id:_0x1083a1}=_0x53962b['_splitMarkerName'](_0x4171fe);if('suggestion'==_0x2d4f20&&_0x53962b['hasSuggestion'](_0x1083a1)){if('formatBlock'==_0x801f7a&&('imageStylePreApply'==_0x62055a||'imageStylePostApply'==_0x62055a)){const _0x5b7c31=_0x53962b['getSuggestion'](_0x1083a1);if(_0x462cb9['newRange']){const _0x45bb7e=_0x5b7c31['getFirstRange']()['getContainedElement']();if(_0x1ed0bf['isBlockImage'](_0x45bb7e))continue;_0x53962b['discardSuggestion'](_0x5b7c31),_0x23f55a=!0x0;}}if('insertion'==_0x801f7a&&'imageCaption'==_0x62055a&&!_0x462cb9['newRange']){const _0x283c69=_0x53962b['getSuggestion'](_0x1083a1);_0x283c69['next']&&_0x283c69['next']['isInContent']&&(_0x53962b['discardSuggestion'](_0x283c69['next']),_0x23f55a=!0x0);}}}return _0x23f55a;}),this['_registerLegacyDescription'](_0x29c285);}['_registerLegacyDescription'](_0x18b286){const _0x79011d=this['editor'],_0x250593=_0x79011d['locale'];_0x79011d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x102ae5=>{if('formatBlock'!=_0x102ae5['type']&&'formatInline'!=_0x102ae5['type'])return;const {data:_0x444694}=_0x102ae5;if(!_0x444694||'imageStyle'!=_0x444694['commandName'])return;const _0x5d772b=_0x444694['commandParams'][0x0]['value'];return _0x3de931('side'===_0x5d772b?o(_0x250593,'FORMAT_SIDE_IMAGE'):_0x18b286[_0x5d772b]||_0x5d772b);function _0x3de931(_0x9dfadf){return{'type':'format','content':o(_0x250593,'*Format:*\x20%0',_0x9dfadf)};}});}}class ot extends _0x357748{['afterInit'](){const _0x160ffb=this['editor'],_0x40363e=_0x160ffb['commands']['get']('importWord'),_0x14148b=_0x160ffb['commands']['get']('trackChanges');_0x40363e&&(_0x40363e['on']('execute',(_0x2842bb,[,_0x202391])=>{this['_trackChangesValueDuringImport']=_0x14148b['value'],_0x202391['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x40363e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x40363e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x14148b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x160ffb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x596a7d,_0x4d2c5a){const {suggestions:_0x40abd4}=_0x4d2c5a,_0x537404=this['editor']['commands']['get']('trackChanges'),_0x130d1a=_0x537404['value'];this['_trackChangesValueDuringImport']!==_0x130d1a&&(_0x537404['execute'](),this['_trackChangesExecuted']=!0x0),_0x40abd4&&_0x40abd4['forEach'](({id:_0x54db1b,type:_0x371ca7,author:_0x1bbf8f,created_at:_0x3a2af6})=>{const _0x389026={'id':_0x54db1b,'type':_0x371ca7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1bbf8f,'createdAt':_0x3a2af6?new Date(_0x3a2af6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x389026);});}constructor(_0x5dc6e9){super(_0x5dc6e9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x357748{['afterInit'](){const _0x313096=this['editor'],_0x909d0a=_0x313096['plugins']['get']('TrackChangesEditing');if(_0x313096['plugins']['has']('IndentEditing')&&(_0x909d0a['enableCommand']('indent'),_0x909d0a['enableCommand']('outdent')),_0x313096['plugins']['has']('IndentBlock')){for(const _0x588d47 of['indentBlock','outdentBlock'])_0x909d0a['enableDefaultAttributesIntegration'](_0x588d47);}const _0xa785f5=_0x313096['locale'];_0x909d0a['registerBlockAttribute']('blockIndent'),_0x909d0a['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xa785f5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28edae=this['editor'],_0x153f68=_0x28edae['locale'],_0x87d2a1=_0x28edae['plugins']['get']('TrackChangesEditing');_0x87d2a1['descriptionFactory']['registerDescriptionCallback'](_0x11da60=>{if('formatBlock'!=_0x11da60['type'])return;const {data:_0x226e7e}=_0x11da60;if(!_0x226e7e)return;if('indentBlock'!=_0x226e7e['commandName']&&'outdentBlock'!=_0x226e7e['commandName'])return;const _0x4cfe32=_0x11da60['getItems']()[0x0],_0x347078=_0x87d2a1['descriptionFactory']['getItemLabel'](_0x4cfe32);return'indentBlock'==_0x226e7e['commandName']?{'type':'format','content':o(_0x153f68,'*Indent:*\x20%0',_0x347078)}:'outdentBlock'==_0x226e7e['commandName']?{'type':'format','content':o(_0x153f68,'*Outdent:*\x20%0',_0x347078)}:void 0x0;});}}class at extends _0x357748{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x357748{['afterInit'](){const _0x548e3a=this['editor'];if(!_0x548e3a['plugins']['has']('LinkEditing'))return;const _0xb77e24=_0x548e3a['plugins']['get']('TrackChangesEditing'),_0x298ed6=_0x548e3a['commands']['get']('link');_0xb77e24['enableDefaultAttributesIntegration']('link'),_0xb77e24['enableDefaultAttributesIntegration']('unlink'),_0xb77e24['registerInlineAttribute']('linkHref');for(const _0x19b8de of _0x298ed6['manualDecorators'])_0xb77e24['registerInlineAttribute'](_0x19b8de['id']),_0xb77e24['descriptionFactory']['registerAttributeLabel'](_0x19b8de['id'],'link\x20('+_0x19b8de['label']['toLowerCase']()+')');_0xb77e24['descriptionFactory']['registerDescriptionCallback'](_0x1630b5=>{if('attribute'!=_0x1630b5['type'])return;const {data:_0x3052e7}=_0x1630b5;if(!_0x3052e7||'linkHref'!=_0x3052e7['key'])return;const _0x5914eb=_0x3052e7['newValue'],_0x1fd9ca=_0x548e3a['locale'];return{'type':'format','content':null==_0x5914eb?o(_0x1fd9ca,'*Remove\x20link*'):o(_0x1fd9ca,'*Set\x20link:*\x20%0','\x22'+_0x5914eb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a2396=this['editor'],_0x4976d0=_0x3a2396['locale'];_0x3a2396['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a2c39=>{if('formatInline'!=_0x1a2c39['type'])return;const {data:_0x2d46fd}=_0x1a2c39;if(_0x2d46fd){if('link'==_0x2d46fd['commandName']){const _0x5ecc60=_0x2d46fd['commandParams'][0x0];return{'type':'format','content':o(_0x4976d0,'*Set\x20link:*\x20%0','\x22'+_0x5ecc60+'\x22')};}return'unlink'==_0x2d46fd['commandName']?{'type':'format','content':o(_0x4976d0,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x357748{['afterInit'](){const _0x23d69e=this['editor'],_0x4b59b1=_0x23d69e['locale'];if(!_0x23d69e['plugins']['has']('LegacyListEditing'))return;const _0x3b9567=_0x23d69e['plugins']['get']('TrackChangesEditing'),_0x20fa1b=_0x23d69e['plugins']['has']('LegacyTodoListEditing');function _0x3208a5(_0x379136){return()=>{const _0x580cd5=_0x23d69e['model']['document']['selection'],_0x395989=_0x23d69e['commands']['get'](_0x379136);if(_0x395989['value'])return void _0x23d69e['execute']('paragraph',{});const _0xa09492=_0x379136['slice'](0x0,-0x4),_0x18adba=function(_0x48e44c,_0x572de5,_0x4a0a58){let _0xab0cdc=Array['from'](_0x48e44c)['filter'](_0x1bc9b5=>function(_0x29ef0b,_0x29942a){return _0x29942a['checkChild'](_0x29ef0b['parent'],'listItem')&&!_0x29942a['isObject'](_0x29ef0b);}(_0x1bc9b5,_0x4a0a58));_0xab0cdc=_0xab0cdc['filter'](_0x5a4d3d=>!_0x5a4d3d['is']('element','listItem')||_0x5a4d3d['getAttribute']('listType')!=_0x572de5);const _0x6b1e57=new Set();for(const _0x14dfaf of _0xab0cdc)_0x14dfaf['is']('element','listItem')?_0x6b1e57['add'](me(_0x14dfaf)):_0x6b1e57['add'](_0x14dfaf);return Array['from'](_0x6b1e57);}(_0x580cd5['getSelectedBlocks'](),_0xa09492,_0x23d69e['model']['schema']);_0x23d69e['model']['change'](()=>{for(const _0x581dc2 of _0x18adba)_0x3b9567['markBlockFormat'](_0x581dc2,{'commandName':_0x379136,'commandParams':[{'forceValue':!_0x395989['value']}],'formatGroupId':'blockName'},fe(_0x581dc2));});};}function _0x16368a(_0x23c57b){return()=>{const _0x1f0b0a=function(_0x411a2a){let _0x177e8e=Array['from'](_0x411a2a);const _0x59845c=_0x177e8e['findIndex'](_0x43586=>'listItem'!=_0x43586['name']);return _0x59845c>-0x1&&(_0x177e8e=_0x177e8e['slice'](0x0,_0x59845c)),_0x177e8e;}(_0x23d69e['model']['document']['selection']['getSelectedBlocks']()),_0xcce906=_0x23d69e['model']['createRange'](_0x23d69e['model']['createPositionAt'](_0x1f0b0a[0x0],'before'),_0x23d69e['model']['createPositionAt'](_0x1f0b0a[_0x1f0b0a['length']-0x1],'end'));_0x23d69e['model']['change'](()=>{_0x3b9567['markBlockFormat'](_0xcce906,{'commandName':_0x23c57b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x28527c){const _0x468c70=new Set();for(const _0x453f08 of _0x28527c){let _0x4533bf=_0x453f08['nextSibling'];for(;_0x4533bf&&_0x4533bf['getAttribute']('listIndent')>_0x453f08['getAttribute']('listIndent');)_0x468c70['add'](_0x4533bf),_0x4533bf=_0x4533bf['nextSibling'];}return Array['from'](_0x468c70);}(_0x1f0b0a));});};}_0x3b9567['enableCommand']('numberedList',_0x3208a5('numberedList')),_0x3b9567['enableCommand']('bulletedList',_0x3208a5('bulletedList')),_0x20fa1b&&_0x3b9567['enableCommand']('todoList',_0x3208a5('todoList')),_0x3b9567['enableCommand']('indentList',_0x16368a('indentList')),_0x3b9567['enableCommand']('outdentList',_0x16368a('outdentList')),_0x20fa1b&&_0x3b9567['enableCommand']('checkTodoList',()=>{const _0xc3a468=_0x23d69e['commands']['get']('checkTodoList'),_0x4427f8=Array['from'](_0xc3a468['_selectedElements']);_0x4427f8['filter'](_0x2f722d=>_0x2f722d['getAttribute']('todoListChecked')!=_0xc3a468['value']),_0x23d69e['model']['change'](()=>{for(const _0x577c9a of _0x4427f8)_0x3b9567['markBlockFormat'](_0x577c9a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xc3a468['value']}]});});}),_0x3b9567['descriptionFactory']['registerElementLabel']('listItem',_0x588f69=>o(_0x4b59b1,'ELEMENT_LIST_ITEM',_0x588f69)),_0x3b9567['descriptionFactory']['registerDescriptionCallback'](_0x4a5904=>{if('formatBlock'!=_0x4a5904['type']&&'formatInline'!=_0x4a5904['type'])return;const {data:_0x388636}=_0x4a5904;if(_0x388636){if('numberedList'==_0x388636['commandName']||'bulletedList'==_0x388636['commandName']||'todoList'==_0x388636['commandName'])switch(_0x388636['commandName']['replace']('List','')){case'bulleted':return _0x5a87a1(o(_0x4b59b1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5a87a1(o(_0x4b59b1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5a87a1(o(_0x4b59b1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x388636['commandName'])return{'type':'format','content':o(_0x4b59b1,'*Indent:*\x20%0',o(_0x4b59b1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x388636['commandName'])return{'type':'format','content':o(_0x4b59b1,'*Outdent:*\x20%0',o(_0x4b59b1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x388636['commandName'])return _0x388636['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b59b1,'*Check\x20item*')}:{'type':'format','content':o(_0x4b59b1,'*Uncheck\x20item*')};}function _0x5a87a1(_0x530184){return{'type':'format','content':o(_0x4b59b1,'*Change\x20to:*\x20%0',_0x530184)};}});}}function me(_0x3d3b88){const _0x1650dd=_0x3d3b88['getAttribute']('listIndent');if(0x0==_0x1650dd)return _0x3d3b88;let _0x3f36cb=_0x3d3b88;for(;_0x3d3b88['previousSibling']&&_0x3d3b88['previousSibling']['is']('element','listItem');){const _0x16ed52=_0x3d3b88['previousSibling']['getAttribute']('listIndent');if(_0x16ed52==_0x1650dd)_0x3f36cb=_0x3d3b88['previousSibling'];else{if(_0x16ed52<_0x1650dd)break;}_0x3d3b88=_0x3d3b88['previousSibling'];}return _0x3f36cb;}function fe(_0x525d81){const _0x1e9b3d=[];if(_0x525d81['is']('element','listItem')&&_0x525d81['getAttribute']('listIndent')>0x0){let _0x9422ee=_0x525d81['nextSibling'];for(;_0x9422ee&&'listItem'==_0x9422ee['name']&&_0x9422ee['getAttribute']('listIndent')==_0x525d81['getAttribute']('listIndent');)_0x1e9b3d['push'](_0x9422ee),_0x9422ee=_0x9422ee['nextSibling'];}return _0x1e9b3d;}class K extends _0x357748{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5d3763=this['editor']['config']['get']('list.properties'),_0x387b6e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d3763['styles']&&_0x387b6e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5d3763['reversed']&&_0x387b6e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5d3763['startIndex']&&_0x387b6e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x387b6e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x48a027,_0x259b08={}){const _0x432513=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d27fb=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x432513['markMultiRangeBlockFormat'](_0x5d27fb,{'commandName':'listStyle','commandParams':[{'type':_0x259b08['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1998a2,_0x2659a7={}){const _0x9351e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d6b5a=this['_getSuggestionBlocks'](_0x90838f=>_0x90838f['is']('element','listItem')&&'numbered'===_0x90838f['getAttribute']('listType'));if(_0x5d6b5a['length']<0x1)return;const _0x52ce98=_0x5d6b5a['map'](_0x1360c2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1360c2,'before'),this['editor']['model']['createPositionAt'](_0x1360c2,0x0)));this['editor']['model']['change'](()=>{_0x9351e5['markMultiRangeBlockFormat'](_0x52ce98,{'commandName':'listReversed','commandParams':[{'reversed':_0x2659a7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x364496,_0x530823={}){const _0x45cc57=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56ef5c=this['_getSuggestionBlocks'](_0x1c33ab=>_0x1c33ab['is']('element','listItem')&&'numbered'===_0x1c33ab['getAttribute']('listType'));if(_0x56ef5c['length']<0x1)return;const _0x3fd3e5=_0x56ef5c['map'](_0x327400=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x327400,'before'),this['editor']['model']['createPositionAt'](_0x327400,0x0)));this['editor']['model']['change'](()=>{_0x45cc57['markMultiRangeBlockFormat'](_0x3fd3e5,{'commandName':'listStart','commandParams':[{'startIndex':_0x530823['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x9c0fb7){if('formatBlock'!=_0x9c0fb7['type']&&'formatInline'!=_0x9c0fb7['type'])return;const _0x57670a=this['editor']['locale'],{data:_0x1e8e51}=_0x9c0fb7;if(!_0x1e8e51)return;let _0x55619d,_0x674770;switch(_0x1e8e51['commandName']){case'listStyle':_0x55619d='*Change\x20to:*\x20%0',_0x674770={'type':'format','content':o(_0x57670a,_0x55619d,o(_0x57670a,this['_getTranslationKeyForListStyle'](_0x1e8e51['commandParams'][0x0]['type'])))};break;case'listReversed':_0x55619d=_0x1e8e51['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x674770={'type':'format','content':o(_0x57670a,_0x55619d)};break;case'listStart':_0x55619d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x674770={'type':'format','content':o(_0x57670a,_0x55619d,_0x1e8e51['commandParams'][0x0]['startIndex'])};}return _0x674770;}['_getSuggestionBlocksForListStyle'](){var _0x41b326,_0x47082e,_0x4ab161,_0x557590;const _0x317b41=this['editor']['plugins']['get']('LegacyListUtils');let _0x2b0bbf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x41b326=_0x2b0bbf[0x0])||void 0x0===_0x41b326?void 0x0:_0x41b326['is']('element','listItem'))&&_0x2b0bbf['unshift'](..._0x317b41['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x47082e=_0x2b0bbf[_0x2b0bbf['length']-0x1])||void 0x0===_0x47082e?void 0x0:_0x47082e['is']('element','listItem'))&&_0x2b0bbf['push'](..._0x317b41['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2b0bbf=[...new Set(_0x2b0bbf)],(null===(_0x557590=null===(_0x4ab161=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x4ab161?void 0x0:_0x4ab161['parent'])||void 0x0===_0x557590?void 0x0:_0x557590['is']('element','listItem'))&&(_0x2b0bbf=_0x2b0bbf['filter'](_0x4b7c09=>_0x4b7c09['is']('element','listItem'))),_0x2b0bbf;}['_getSuggestionBlocks'](_0x1f2210){const _0x5c7505=this['editor']['plugins']['get']('LegacyListUtils');let _0x360836=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1f2210)['map'](_0x55bd80=>{const _0x528125=this['editor']['model']['createPositionAt'](_0x55bd80,0x0);return[..._0x5c7505['getSiblingNodes'](_0x528125,'backward'),..._0x5c7505['getSiblingNodes'](_0x528125,'forward')];})['flat']();return _0x360836=[...new Set(_0x360836)],_0x360836;}['_getTranslationKeyForListStyle'](_0x1ae4fe){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1ae4fe)||'default')['toUpperCase']()+'_LIST_'+_0x1ae4fe['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x357748{['afterInit'](){const _0x93faa2=this['editor'];if(!_0x93faa2['plugins']['has']('MediaEmbedEditing'))return;const _0x57a524=_0x93faa2['plugins']['get']('TrackChangesEditing'),_0x49b0ba=_0x93faa2['locale'];_0x57a524['enableCommand']('mediaEmbed'),_0x57a524['descriptionFactory']['registerElementLabel']('media',_0x3cdd55=>o(_0x49b0ba,'ELEMENT_MEDIA',_0x3cdd55)),_0x93faa2['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x467306,{writer:_0x31082e,options:_0x121b0d})=>{if(_0x121b0d['showSuggestionHighlights'])return _0x31082e['createEmptyElement']('div');},'converterPriority':'high'}),_0x93faa2['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2cc3e2,_0x149cd5,_0x4a2b47)=>{_0x4a2b47['options']['showSuggestionHighlights']&&_0x2cc3e2['stop']();},{'priority':'high'});}}class gt extends _0x357748{['afterInit'](){const _0x248697=this['editor'];_0x248697['plugins']['has']('MentionEditing')&&_0x248697['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x357748{['afterInit'](){const _0x12a239=this['editor'],_0xc1b68d=_0x12a239['plugins']['get']('TrackChangesEditing');_0x12a239['plugins']['has']('MultiLevelList')&&(_0xc1b68d['enableDefaultAttributesIntegration']('multiLevelList'),_0xc1b68d['registerBlockAttribute']('listMarkerStyle'),_0xc1b68d['descriptionFactory']['registerDescriptionCallback'](_0x31cbad=>this['handleDescriptions'](_0x31cbad)));}['handleDescriptions'](_0x2ad3b3){const _0x5a3cc3=this['editor']['locale'],{data:_0x310a07}=_0x2ad3b3,_0x23876e={'type':'format','content':''};if(_0x310a07&&'listMarkerStyle'==_0x310a07['key']){if(!_0x310a07['oldValue'])return{'type':'format','content':o(_0x5a3cc3,'*Set\x20format:*\x20%0',o(_0x5a3cc3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x310a07['newValue']+')'};if(!_0x310a07['newValue']){let _0x270995=_0x2ad3b3['head'];for(;_0x270995;){if(_0x270995['data']&&'listType'==_0x270995['data']['key']&&_0x270995['data']['newValue'])return _0x23876e;_0x270995=_0x270995['next'];}return{'type':'format','content':o(_0x5a3cc3,'*Remove\x20format:*\x20%0',o(_0x5a3cc3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x310a07['oldValue']+')'};}}}}class mt extends _0x357748{['afterInit'](){const _0x542662=this['editor'];if(!_0x542662['plugins']['has']('PageBreakEditing'))return;_0x542662['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x12250a=_0x542662['plugins']['get']('TrackChangesEditing'),_0xa4be18=_0x542662['locale'];_0x12250a['descriptionFactory']['registerElementLabel']('pageBreak',_0x9b96d4=>o(_0xa4be18,'ELEMENT_PAGE_BREAK',_0x9b96d4));}}class dt extends _0x357748{['afterInit'](){const _0x4c0a09=this['editor'];if(!_0x4c0a09['plugins']['has']('Paragraph'))return;const _0x59e2c3=_0x4c0a09['locale'],_0x1fc8c3=_0x4c0a09['plugins']['get']('TrackChangesEditing');_0x1fc8c3['descriptionFactory']['registerElementLabel']('paragraph',_0xd133cb=>o(_0x59e2c3,'ELEMENT_PARAGRAPH',_0xd133cb)),_0x1fc8c3['enableDefaultAttributesIntegration']('paragraph'),_0x1fc8c3['enableCommand']('insertParagraph'),_0x4c0a09['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4c0a09),{'priority':'highest'}),_0x4c0a09['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3fd5e0,_0x107887,_0x89d1cb)=>{_0x89d1cb['options']['showSuggestionHighlights']&&nr(_0x4c0a09,{'showActiveMarker':!0x1})(_0x3fd5e0,_0x107887,_0x89d1cb);},{'priority':'highest'});const _0x52f58c=_0x1fc8c3['descriptionFactory'];_0x52f58c['registerDescriptionCallback'](_0x587f15=>{if('insertion'!==_0x587f15['type'])return;const {start:_0x3875a3,end:_0x39d095}=_0x587f15['getFirstRange']();if(!_0x3875a3['isTouching'](_0x39d095)||!_0x3875a3['nodeAfter'])return;const _0xf60dc0=_0x4c0a09['model']['schema'],_0x88fcc1=_0x3875a3['nodeAfter'];return _0xf60dc0['isBlock'](_0x88fcc1)&&!_0xf60dc0['isLimit'](_0x88fcc1)&&_0xf60dc0['checkChild'](_0x88fcc1,'$text')?{'type':'insertion','content':o(_0x59e2c3,'*Insert:*\x20%0',_0x52f58c['getItemLabel'](_0x88fcc1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bdee7=this['editor'],_0x724655=_0x4bdee7['locale'];_0x4bdee7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4db72b=>{if('formatBlock'!=_0x4db72b['type'])return;const {data:_0x1bb2c7}=_0x4db72b;return _0x1bb2c7&&'paragraph'==_0x1bb2c7['commandName']?{'type':'format','content':o(_0x724655,'*Change\x20to:*\x20%0',o(_0x724655,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1dd89b,{showActiveMarker:_0x33f28c=!0x0}={}){return(_0x1ef86a,_0x1b6a3f,_0x5eedf2)=>{const _0x5db64e=_0x1dd89b['plugins']['get']('TrackChangesEditing'),_0x60ff5=_0x1b6a3f['markerRange']['start'],_0x7cf672=_0x1b6a3f['markerRange']['end'],_0x52e04b=_0x1dd89b['model']['schema'];if(!_0x60ff5['isTouching'](_0x7cf672)||!_0x60ff5['nodeAfter'])return;const _0x277195=_0x60ff5['nodeAfter'];if(_0x52e04b['isBlock'](_0x277195)&&!_0x52e04b['isLimit'](_0x277195)&&_0x52e04b['checkChild'](_0x277195,'$text')){if(!_0x5eedf2['consumable']['consume'](_0x1b6a3f['markerRange'],_0x1ef86a['name']))return;const _0x4b64c9=_0x5eedf2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x4ccaf2=_0x5eedf2['mapper']['toViewPosition'](_0x7cf672);_0x33f28c&&_0x5db64e['activeMarkers']['includes'](_0x1b6a3f['markerName'])&&_0x5eedf2['writer']['addClass']('ck-suggestion-marker--active',_0x4b64c9),_0x5eedf2['writer']['insert'](_0x4ccaf2,_0x4b64c9),_0x5eedf2['mapper']['bindElementToMarker'](_0x4b64c9,_0x1b6a3f['markerName']);}};}class pt extends _0x357748{['afterInit'](){const _0x33e980=this['editor'];if(!_0x33e980['plugins']['has']('RemoveFormatEditing'))return;_0x33e980['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2549f7=this['editor'];_0x2549f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4de3be=>{if('formatBlock'!=_0x4de3be['type']&&'formatInline'!=_0x4de3be['type'])return;const {data:_0x48885d}=_0x4de3be;return _0x48885d&&'removeFormat'==_0x48885d['commandName']?{'type':'format','content':o(_0x2549f7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x357748{['afterInit'](){const _0x539eac=this['editor'];if(!_0x539eac['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1459e6=_0x539eac['plugins']['get']('TrackChangesEditing');_0x1459e6['enableCommand']('goToPreviousRestrictedEditingException'),_0x1459e6['enableCommand']('goToNextRestrictedEditingException');const _0x3f769f=_0x539eac['plugins']['get']('RestrictedEditingModeEditing');_0x3f769f['enableCommand']('trackChanges'),_0x3f769f['enableCommand']('acceptSuggestion'),_0x3f769f['enableCommand']('discardSuggestion'),_0x3f769f['enableCommand']('acceptAllSuggestions'),_0x3f769f['enableCommand']('discardAllSuggestions'),_0x3f769f['enableCommand']('acceptSelectedSuggestions'),_0x3f769f['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x357748{static get['requires'](){return[_0x554ffa];}['init'](){const _0x18068a=this['editor'],_0x25ae7e=_0x18068a['plugins']['get']('TrackChangesEditing');_0x25ae7e['enableCommand']('shiftEnter'),_0x18068a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x18068a),{'priority':'high'}),_0x18068a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x18068a),{'priority':'high'}),_0x18068a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x35fcab,_0x2d228d,_0x2d3abe)=>{_0x2d3abe['options']['showSuggestionHighlights']&&de(_0x18068a,{'showActiveMarker':!0x1})(_0x35fcab,_0x2d228d,_0x2d3abe);}),_0x25ae7e['descriptionFactory']['registerElementLabel']('softBreak',_0x2624ec=>o(_0x18068a['locale'],'ELEMENT_LINE_BREAK',_0x2624ec));}}function de(_0x2bb437,{showActiveMarker:_0x29cd86=!0x0}={}){return(_0x29a031,_0x5bde09,_0x53e327)=>{const _0xd77173=_0x2bb437['plugins']['get']('TrackChangesEditing');if(!_0x53e327['consumable']['test'](_0x5bde09['markerRange'],_0x29a031['name']))return;const _0x497033=_0x2bb437['model'];for(const _0x159187 of _0x5bde09['markerRange']['getItems']()){if(!_0x159187['is']('element','softBreak'))continue;const _0x5c22f0='deletion'==_0x5bde09['markerName']['split'](':')[0x1]?'merge':'split',_0x344fb2=_0x53e327['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c22f0}),_0x137505=_0x53e327['mapper']['toViewPosition'](_0x497033['createPositionBefore'](_0x159187));_0x29cd86&&_0xd77173['activeMarkers']['includes'](_0x5bde09['markerName'])&&_0x53e327['writer']['addClass']('ck-suggestion-marker--active',_0x344fb2),_0x53e327['writer']['insert'](_0x137505,_0x344fb2),_0x53e327['mapper']['bindElementToMarker'](_0x344fb2,_0x5bde09['markerName']);}};}class wt extends _0x357748{['afterInit'](){const _0x50edce=this['editor'],_0x4deaa7=_0x50edce['model'],_0x3fc397=_0x50edce['locale'];if(!_0x50edce['plugins']['has']('StandardEditingModeEditing'))return;const _0x1f2933=_0x50edce['plugins']['get']('TrackChangesEditing'),_0x4759c7='restrictedEditingException',_0x305d9a=_0x50edce['commands']['get'](_0x4759c7);_0x1f2933['enableCommand'](_0x4759c7,(_0x48cd04,_0x2c8c50={})=>{const _0xfd5be6=_0x4deaa7['document']['selection'];if(_0xfd5be6['isCollapsed'])return void _0x48cd04(_0x2c8c50);const _0x40fc4b=void 0x0!==_0x2c8c50['forceValue']?_0x2c8c50['forceValue']:!_0x305d9a['value'];_0x4deaa7['change'](()=>{const _0x5b2bf9=Array['from'](_0xfd5be6['getRanges']());for(const _0x598213 of _0x5b2bf9){const _0x54d40e=_0x40fc4b?[_0x598213]:io(_0x4759c7,_0x598213,_0x4deaa7);for(const _0x493506 of _0x54d40e)_0x1f2933['markInlineFormat'](_0x493506,{'commandName':_0x4759c7,'commandParams':[{'forceValue':_0x40fc4b}]});}});}),_0x1f2933['descriptionFactory']['registerDescriptionCallback'](_0x914641=>{if('formatBlock'!=_0x914641['type']&&'formatInline'!=_0x914641['type'])return;const {data:_0x4b740a}=_0x914641;return _0x4b740a&&_0x4b740a['commandName']==_0x4759c7?_0x4b740a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fc397,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3fc397,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x357748{['afterInit'](){const _0x22222a=this['editor'];if(!_0x22222a['plugins']['has']('Style')||!_0x22222a['plugins']['has']('DataSchema'))return;const _0x32ccc0=_0x22222a['plugins']['get']('TrackChangesEditing'),_0x1e4eb9=_0x22222a['locale'],_0x5e04e3=_0x22222a['config']['get']('style')||{},_0x66ec4f=_0x22222a['plugins']['get']('GeneralHtmlSupport'),_0x4d5b28=_0x22222a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x22222a['plugins']['get']('DataSchema'),_0x5e04e3['definitions']);_0x32ccc0['enableDefaultAttributesIntegration']('style');const _0x13c558=new Set();for(const _0x13b229 of _0x4d5b28['block']){const _0x1192b6=_0x66ec4f['getGhsAttributeNameForElement'](_0x13b229['element']);_0x13c558['add'](_0x1192b6);}const _0x1a1667=new Set();for(const _0x4aa2c8 of _0x4d5b28['inline']){const _0x1ef154=_0x66ec4f['getGhsAttributeNameForElement'](_0x4aa2c8['element']);_0x1a1667['add'](_0x1ef154);for(const _0xd31e81 of _0x4aa2c8['ghsAttributes'])_0x1a1667['add'](_0xd31e81);}for(const _0x406c06 of _0x13c558)_0x32ccc0['registerBlockAttribute'](_0x406c06),_0x32ccc0['descriptionFactory']['registerAttributeLabel'](_0x406c06,o(_0x1e4eb9,'FORMAT_STYLE'));for(const _0x306988 of _0x1a1667)_0x32ccc0['registerInlineAttribute'](_0x306988),_0x32ccc0['descriptionFactory']['registerAttributeLabel'](_0x306988,o(_0x1e4eb9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13fd84=this['editor'],_0x378cb2=_0x13fd84['locale'];_0x13fd84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ced69=>{if('formatBlock'!=_0x1ced69['type']&&'formatInline'!=_0x1ced69['type'])return;const {data:_0x409451}=_0x1ced69;return _0x409451&&'style'===_0x409451['commandName']?_0x409451['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x378cb2,'*Set\x20format:*\x20%0',_0x409451['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x378cb2,'*Remove\x20format:*\x20%0',_0x409451['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x357748{['afterInit'](){const _0x30b0bd=this['editor'],_0xea0eba=_0x30b0bd['model']['document']['selection'];if(!_0x30b0bd['plugins']['has']('TableEditing'))return;const _0x45ba89=_0x30b0bd['locale'],_0xacaf3b=_0x30b0bd['plugins']['get']('TrackChangesEditing'),_0x3ee74c=_0x30b0bd['plugins']['get']('TableUtils');_0xacaf3b['descriptionFactory']['registerElementLabel']('table',_0x5ce618=>o(_0x45ba89,'ELEMENT_TABLE',_0x5ce618)),this['_setupColumnsRowsFixing'](),_0xacaf3b['enableCommand']('insertTable'),_0xacaf3b['enableCommand']('selectTableRow'),_0xacaf3b['enableCommand']('selectTableColumn');for(const _0x17c98a of['insertTableRowAbove','insertTableRowBelow']){const _0x743d7c=_0x30b0bd['commands']['get'](_0x17c98a);_0xacaf3b['enableCommand'](_0x17c98a,_0x460df9=>{_0x30b0bd['model']['change'](_0x54923a=>{_0x460df9();const _0x1c6af5='above'===_0x743d7c['order'],_0x28ae69=_0x3ee74c['getSelectionAffectedTableCells'](_0xea0eba),_0x125e7b=_0x3ee74c['getRowIndexes'](_0x28ae69),_0x5934f5=_0x1c6af5?_0x125e7b['first']-0x1:_0x125e7b['last']+0x1,_0x3f58f1=_0x28ae69[0x0]['findAncestor']('table'),_0x48d059=_0x3ee74c['createTableWalker'](_0x3f58f1,{'startRow':_0x5934f5,'endRow':_0x5934f5}),_0xd1ea1a=Array['from'](_0x48d059)['map'](_0x311508=>_0x54923a['createRangeOn'](_0x311508['cell']));_0xacaf3b['markMultiRangeInsertion'](_0xd1ea1a,'tableRow');});});}for(const _0x10432a of['insertTableColumnLeft','insertTableColumnRight']){const _0x4b60b9=_0x30b0bd['commands']['get'](_0x10432a);_0xacaf3b['enableCommand'](_0x10432a,_0x327262=>{_0x30b0bd['model']['change'](_0x162f3c=>{_0x327262();const _0x6d654f='left'===_0x4b60b9['order'],_0x2984ec=_0x3ee74c['getSelectionAffectedTableCells'](_0xea0eba),_0x631d5c=_0x3ee74c['getColumnIndexes'](_0x2984ec),_0x407c7c=_0x6d654f?_0x631d5c['first']-0x1:_0x631d5c['last']+0x1,_0x29f728=_0x2984ec[0x0]['findAncestor']('table'),_0x2c5263=_0x3ee74c['createTableWalker'](_0x29f728,{'startRow':0x0,'column':_0x407c7c,'includeAllSlots':!0x1}),_0x4fc007=Array['from'](_0x2c5263)['map'](_0x1a0ab7=>_0x162f3c['createRangeOn'](_0x1a0ab7['cell']));_0xacaf3b['markMultiRangeInsertion'](_0x4fc007,'tableColumn');});});}for(const _0x5ae051 of['removeTableRow','removeTableColumn']){const _0x12fb85=_0x5ae051['substr'](0xb),_0x380192=_0x12fb85['toLowerCase'](),_0x3d8ece=_0x380192['substr'](0x0,0x3)+'span',_0x3941ed='table'+_0x12fb85,_0x1e91bd='min'+_0x12fb85,_0x7ce292='max'+_0x12fb85;_0xacaf3b['enableCommand'](_0x5ae051,()=>{_0x30b0bd['model']['change'](_0x427469=>{const _0x112dfe=_0x3ee74c['getSelectionAffectedTableCells'](_0xea0eba),_0x82d614=_0x112dfe[0x0]['findAncestor']('table');let _0x1c4834;if('removeTableRow'==_0x5ae051){const _0x33b7d3=_0x3ee74c['getRowIndexes'](_0x112dfe);_0x1c4834={'startRow':_0x33b7d3['first'],'endRow':_0x33b7d3['last'],'includeAllSlots':!0x0};}else{const _0x1f5af7=_0x3ee74c['getColumnIndexes'](_0x112dfe);_0x1c4834={'startColumn':_0x1f5af7['first'],'endColumn':_0x1f5af7['last'],'includeAllSlots':!0x0};}const _0x2c8b30=_0x3ee74c['createTableWalker'](_0x82d614,_0x1c4834),_0x1e7d66=Array['from'](_0x2c8b30)['map'](({cell:_0x251c1e})=>_0x251c1e),_0x298a5f=Ee(_0x1e7d66['filter'](_0x3d0e94=>_0x3d0e94['hasAttribute'](_0x3d8ece))),_0x1b7c06=Ee(_0x1e7d66['filter'](_0xd53175=>!_0xd53175['hasAttribute'](_0x3d8ece)))['map'](_0x1ad1bb=>_0x427469['createRangeOn'](_0x1ad1bb)),_0x2cebd8=_0xacaf3b['markMultiRangeDeletion'](_0x1b7c06,_0x3941ed);if(_0x2cebd8&&('tableRow'==_0x2cebd8['subType']||'tableColumn'==_0x2cebd8['subType'])){const _0x3bf1a7=this['_getSuggestionCoords'](_0x2cebd8);for(const _0x2a00d6 of _0x298a5f){const _0x33b4e8=_0x427469['createRangeOn'](_0x2a00d6),_0x1bc830=_0x3ee74c['getCellLocation'](_0x2a00d6),_0x1226c1=_0x2a00d6['getAttribute'](_0x3d8ece)-0x1,_0x4deef3=_0x3bf1a7[_0x1e91bd],_0x1909ee=_0x3bf1a7[_0x7ce292];_0x4deef3<=_0x1bc830[_0x380192]&&_0x1bc830[_0x380192]+_0x1226c1<=_0x1909ee&&_0x2cebd8['addRange'](_0x33b4e8);}}});});}function _0x56b5de(_0x28fd72){const _0x12aaff=Array['from'](_0xea0eba['getRanges']())['map'](_0x55c737=>_0x2242e5['fromRange'](_0x55c737));_0x30b0bd['model']['change'](_0x5dbdd7=>{const _0xabc07e=_0x5dbdd7['batch'];_0x28fd72=_0x28fd72['filter'](_0x164914=>'$graveyard'!=_0x164914['root']['rootName']),_0x5dbdd7['setSelection'](_0x28fd72),_0x30b0bd['commands']['get']('removeTableRow')['refresh'](),_0x30b0bd['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x30b0bd['model']['enqueueChange'](()=>{_0x30b0bd['model']['enqueueChange'](_0xabc07e,_0x577b7a=>{const _0x1c1d2f=_0x12aaff['filter'](_0x193c70=>'$graveyard'!=_0x193c70['root']['rootName']);_0x1c1d2f['length']>0x0&&_0x577b7a['setSelection'](_0x1c1d2f);for(const _0x3bab44 of _0x12aaff)_0x3bab44['detach']();});});});}function _0x453f56(_0x2e24f9){_0x30b0bd['model']['change'](_0x296f88=>{const _0xec3eaf=Array['from'](_0xea0eba['getRanges']())['map'](_0xd24385=>_0x2242e5['fromRange'](_0xd24385)),_0x358cef=[];for(const _0xcb365f of _0x2e24f9)for(const _0x226acb of _0xcb365f['getItems']({'shallow':!0x0}))_0x358cef['push'](_0x226acb);for(const _0x120707 of _0x358cef)'$graveyard'!=_0x120707['root']['rootName']&&(_0x296f88['setSelection'](_0x296f88['createPositionAt'](_0x120707,0x0)),_0x30b0bd['commands']['get']('removeTableColumn')['refresh'](),_0x30b0bd['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3389f2=_0xec3eaf['filter'](_0x318631=>'$graveyard'!=_0x318631['root']['rootName']);_0x3389f2['length']>0x0&&_0x296f88['setSelection'](_0x3389f2);for(const _0x22c9f6 of _0xec3eaf)_0x22c9f6['detach']();});}function _0x16b4ad(_0x396d76,_0x1d4f14){return _0x1d4f14['every'](_0x567435=>_0x396d76['some'](_0x6ed993=>_0x6ed993['end']['isEqual'](_0x567435['start'])||_0x567435['end']['isEqual'](_0x6ed993['start'])));}function _0x5007ea(_0x3d2ac7,_0x2255aa){return _0x3d2ac7['some'](_0x1bb9c4=>_0x2255aa['some'](_0x5e88f4=>_0x1bb9c4['end']['isTouching'](_0x5e88f4['start'])));}_0x30b0bd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x107323,_0x29fc70,_0x2655a5)=>{if(!_0x2655a5['options']['showSuggestionHighlights'])return;const _0x2e58b6=_0x29fc70['item'];if(!_0x2e58b6)return;const _0x47a32f=_0x2655a5['mapper']['toViewElement'](_0x2e58b6);function _0x4432f0(_0x317b3d){return Array['isArray'](_0x317b3d)?_0x317b3d:[_0x317b3d];}_0x47a32f&&'tableCell'===_0x2e58b6['name']&&_0x3ce59a(_0x47a32f,_0x2655a5['writer'],(_0x50e3e8,_0x4c30ae,_0x1351b7)=>_0x1351b7['addClass'](_0x4432f0(_0x4c30ae['classes']),_0x50e3e8),(_0x52deca,_0x10732b,_0x3bc85c)=>_0x3bc85c['removeClass'](_0x4432f0(_0x10732b['classes']),_0x52deca));},{'priority':'highest'}),_0xacaf3b['descriptionFactory']['registerDescriptionCallback'](_0x1cce70=>{if('insertion'!=_0x1cce70['type']&&'deletion'!=_0x1cce70['type'])return;const _0xa238ef=_0x1cce70['getContainedElement']();if(null!=_0xa238ef&&_0xa238ef['is']('element','table')){if('insertion'==_0x1cce70['type']){const _0x5bc362=_0x1cce70['getItems']()['filter'](_0x27c1de=>_0x27c1de['is']('$textProxy'))['map'](_0x37f2d5=>_0x37f2d5['data']);if(_0x5bc362['length'])return{'type':'insertion','content':o(_0x45ba89,'*Insert:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5bc362['join']('\x20')+'\x22'))};}if('deletion'==_0x1cce70['type']){const _0x4f56ef=_0x1cce70['getItems']()['filter'](_0x5cfb27=>_0x5cfb27['is']('$textProxy'))['map'](_0x36a96c=>_0x36a96c['data']);if(_0x4f56ef['length'])return{'type':'deletion','content':o(_0x45ba89,'*Remove:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4f56ef['join']('\x20')+'\x22'))};}}}),_0xacaf3b['descriptionFactory']['registerDescriptionCallback'](_0x684e9a=>{if('tableRow'==_0x684e9a['subType']){const _0x481b8e=_0x684e9a['getItems']()['filter'](_0x5d405e=>_0x5d405e['is']('$textProxy'))['map'](_0x4ca251=>_0x4ca251['data']),_0xf4f79d=this['_getSuggestionCoords'](_0x684e9a),_0x421cd9=_0xf4f79d['maxRow']-_0xf4f79d['minRow']+0x1;if('insertion'==_0x684e9a['type'])return _0x481b8e['length']?{'type':'insertion','content':o(_0x45ba89,'*Insert:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x421cd9,'\x22'+_0x481b8e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x45ba89,'*Insert:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_ROW',_0x421cd9))};if('deletion'==_0x684e9a['type'])return _0x481b8e['length']?{'type':'deletion','content':o(_0x45ba89,'*Remove:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x421cd9,'\x22'+_0x481b8e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x45ba89,'*Remove:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_ROW',_0x421cd9))};}if('tableColumn'==_0x684e9a['subType']){const _0x247b98=_0x684e9a['getItems']()['filter'](_0x196f8e=>_0x196f8e['is']('$textProxy'))['map'](_0xeb339b=>_0xeb339b['data']),_0x1fc63d=this['_getSuggestionCoords'](_0x684e9a),_0x3b7848=_0x1fc63d['maxColumn']-_0x1fc63d['minColumn']+0x1;if('insertion'==_0x684e9a['type'])return _0x247b98['length']?{'type':'insertion','content':o(_0x45ba89,'*Insert:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b7848,'\x22'+_0x247b98['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x45ba89,'*Insert:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_COLUMN',_0x3b7848))};if('deletion'==_0x684e9a['type'])return _0x247b98['length']?{'type':'deletion','content':o(_0x45ba89,'*Remove:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b7848,'\x22'+_0x247b98['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x45ba89,'*Remove:*\x20%0',o(_0x45ba89,'ELEMENT_TABLE_COLUMN',_0x3b7848))};}}),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x56b5de),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x56b5de),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x453f56),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x453f56),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x16b4ad),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x16b4ad),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5007ea),_0xacaf3b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5007ea);}['_acceptFormatSuggestionCallbackFactory'](){const _0x43f676=this['editor'],_0x39a426=_0x43f676['model']['document']['selection'];return(_0x200321,_0x41d695)=>{_0x43f676['model']['change'](_0x168c62=>{const {commandName:_0x257e72,commandParams:_0x4e0139}=_0x41d695;let _0x320e33=_0x200321[0x0]['end']['nodeBefore'];_0x4e0139&&_0x4e0139[0x0]&&!0x1===_0x4e0139[0x0]['forceValue']&&(_0x320e33=_0x200321[0x0]['start']['nodeAfter']);const _0x46656b=_0x168c62['createRangeIn'](_0x320e33);if('$graveyard'==_0x46656b['root']['rootName'])return;const _0x10599b=Array['from'](_0x39a426['getRanges']())['map'](_0x11fbc1=>_0x2242e5['fromRange'](_0x11fbc1));_0x168c62['setSelection'](_0x46656b),_0x43f676['commands']['get'](_0x257e72)['refresh'](),_0x4e0139['push']({'forceDefaultExecution':!0x0}),_0x43f676['execute'](_0x257e72,..._0x4e0139);const _0x57d9a5=_0x10599b['filter'](_0x478917=>'$graveyard'!=_0x478917['root']['rootName']);_0x57d9a5['length']>0x0&&_0x168c62['setSelection'](_0x57d9a5);for(const _0x4ba850 of _0x10599b)_0x4ba850['detach']();});};}['_getCoordsForCells'](_0x3b04f3){const _0x1efc4c=this['editor']['plugins']['get']('TableUtils');let _0x4ebca9=Number['MAX_SAFE_INTEGER'],_0x403ecf=Number['MIN_SAFE_INTEGER'],_0x54ac69=Number['MAX_SAFE_INTEGER'],_0x15352b=Number['MIN_SAFE_INTEGER'];for(const _0x5d7832 of _0x3b04f3){if('$graveyard'==_0x5d7832['root']['rootName'])continue;const {row:_0x382f83,column:_0x173af9}=_0x1efc4c['getCellLocation'](_0x5d7832),_0x35f07d=_0x5d7832['hasAttribute']('rowspan')?_0x5d7832['getAttribute']('rowspan')-0x1:0x0,_0x3d21b9=_0x5d7832['hasAttribute']('colspan')?_0x5d7832['getAttribute']('colspan')-0x1:0x0;_0x4ebca9=_0x382f83<_0x4ebca9?_0x382f83:_0x4ebca9,_0x403ecf=_0x382f83+_0x35f07d>_0x403ecf?_0x382f83+_0x35f07d:_0x403ecf,_0x54ac69=_0x173af9<_0x54ac69?_0x173af9:_0x54ac69,_0x15352b=_0x173af9+_0x3d21b9>_0x15352b?_0x173af9+_0x3d21b9:_0x15352b;}return{'minRow':_0x4ebca9,'maxRow':_0x403ecf,'minColumn':_0x54ac69,'maxColumn':_0x15352b};}['_setupColumnsRowsFixing'](){const _0xf7fb1f=this['editor'],_0x3add20=_0xf7fb1f['plugins']['get']('TrackChangesEditing'),_0x2a71c6=_0xf7fb1f['plugins']['get']('TableUtils');_0xf7fb1f['model']['document']['on']('change:data',()=>{const _0xe6b57=Array['from'](_0xf7fb1f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x460b3c,data:_0x28c095}of _0xe6b57){const {group:_0x5ebf81,id:_0x40f0a4,subType:_0x5d20ae}=_0x3add20['_splitMarkerName'](_0x460b3c);if('suggestion'!=_0x5ebf81)continue;if(null!=_0x28c095['oldRange'])continue;const _0x41b57a=_0x3add20['getSuggestion'](_0x40f0a4);this['_tablePostFixingSubtypes']['includes'](_0x5d20ae)&&this['_tableSuggestions']['add'](_0x41b57a);}},{'priority':'low'});const _0x5bb18f=(_0x12416b,_0x58aa64)=>{let _0x43a73b=!0x1;const _0x4ab679=_0x58aa64['createRangeOn'](_0x12416b),_0x4486c3=_0x12416b['findAncestor']('table'),_0x441dda=_0x2a71c6['getCellLocation'](_0x12416b);for(const _0x11dfaf of this['_tableSuggestions']){const _0x160d93=_0x11dfaf['subType'],_0x3fefe2=_0x160d93['startsWith']('tablePaste'),_0xff3ba2=_0x160d93['substr'](_0x3fefe2?0xa:0x5),_0xd0bf62=_0xff3ba2['toLowerCase'](),_0x4a23e3=_0xd0bf62['substr'](0x0,0x3)+'span',_0x38cdcf='min'+_0xff3ba2,_0x5594c2='max'+_0xff3ba2;if(!_0x11dfaf['isInContent'])continue;if(_0x4486c3!=_0x11dfaf['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x11dfaf['isIntersectingWithRange'](_0x4ab679))continue;const _0x51bc07=_0x12416b['hasAttribute'](_0x4a23e3)?_0x12416b['getAttribute'](_0x4a23e3)-0x1:0x0,_0x337413=this['_getSuggestionCoords'](_0x11dfaf),_0x5dfd52=_0x337413[_0x38cdcf],_0x5afce0=_0x337413[_0x5594c2];_0x5dfd52<=_0x441dda[_0xd0bf62]&&_0x441dda[_0xd0bf62]+_0x51bc07<=_0x5afce0&&(_0x11dfaf['addRange'](_0x4ab679),_0x43a73b=!0x0);}return _0x43a73b;};_0xf7fb1f['model']['document']['registerPostFixer'](_0x97d99b=>{let _0x1f4b6a=!0x1;for(const _0x138b21 of _0xf7fb1f['model']['document']['differ']['getChanges']())if('insert'==_0x138b21['type']){if('tableRow'==_0x138b21['name']){for(const _0xc32e47 of _0x138b21['position']['nodeAfter']['getChildren']())_0x1f4b6a=_0x1f4b6a||_0x5bb18f(_0xc32e47,_0x97d99b);}else'tableCell'==_0x138b21['name']&&(_0x1f4b6a=_0x1f4b6a||_0x5bb18f(_0x138b21['position']['nodeAfter'],_0x97d99b));}return _0x1f4b6a;});}['_getSuggestionCoords'](_0x3ab10b){return this['_getCoordsForCells'](_0x3ab10b['getRanges']()['map'](_0x2521e3=>_0x2521e3['start']['nodeAfter']));}constructor(_0x40f80e){super(_0x40f80e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x4a8ba2){return Array['from'](new Set(_0x4a8ba2)['values']());}class St extends _0x357748{static get['requires'](){return[jt];}['afterInit'](){const _0x5b2f6d=this['editor'],_0x192f73=_0x5b2f6d['model']['document']['selection'],_0x4119a4=_0x5b2f6d['locale'];if(!_0x5b2f6d['plugins']['has']('TableEditing'))return;const _0x17ead9=_0x5b2f6d['plugins']['get']('TrackChangesEditing'),_0x3d3cad=_0x5b2f6d['plugins']['get']('TableUtils'),_0x1a3e61=_0x5b2f6d['plugins']['get'](jt);_0x1a3e61['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x17ead9['enableCommand']('mergeTableCells',()=>{const _0x6a4814=_0x3d3cad['getSelectionAffectedTableCells'](_0x5b2f6d['model']['document']['selection']);_0x5b2f6d['model']['change'](()=>{_0x17ead9['markMultiRangeBlockFormat'](_0x6a4814,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5b2f6d['commands']['get']('mergeTableCells')['on']('execute',(_0x2de25c,_0x135196)=>{_0x5b2f6d['commands']['get']('trackChanges')['value']&&(_0x135196['length']>0x0&&_0x135196[_0x135196['length']-0x1]&&_0x135196[_0x135196['length']-0x1]['forceDefaultExecution']||_0x17ead9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2de25c['stop']());},{'priority':'highest'});for(const _0x1ecd15 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x384307=_0x5b2f6d['commands']['get'](_0x1ecd15);_0x17ead9['enableCommand'](_0x1ecd15,()=>{const _0x18e30a=_0x5b2f6d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5a5431=>_0x5a5431['is']('element','tableCell')),_0x5e451c=_0x384307['value'];_0x5b2f6d['model']['change'](()=>{_0x17ead9['markMultiRangeBlockFormat']([_0x18e30a,_0x5e451c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2399b3 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x153e31=_0x5b2f6d['commands']['get'](_0x2399b3);_0x17ead9['enableCommand'](_0x2399b3,()=>{const _0x4417e6=_0x3d3cad['getSelectionAffectedTableCells'](_0x5b2f6d['model']['document']['selection'])[0x0],_0x2e8c42=_0x4417e6['findAncestor']('table'),{column:_0x1438da,row:_0x825f1e}=_0x3d3cad['getCellLocation'](_0x4417e6);let _0x481863=[];if('horizontally'==_0x153e31['direction']){const _0x535fcc=_0x3d3cad['createTableWalker'](_0x2e8c42,{'startRow':_0x825f1e,'endRow':_0x825f1e,'includeAllSlots':!0x0});_0x481863=Array['from'](_0x535fcc)['map'](_0x196d0f=>_0x196d0f['cell']);}else{const _0x5f2bfa=_0x3d3cad['createTableWalker'](_0x2e8c42,{'column':_0x1438da,'includeAllSlots':!0x0});_0x481863=Array['from'](_0x5f2bfa)['map'](_0x4d7beb=>_0x4d7beb['cell']);}_0x5b2f6d['model']['change'](_0x4d1324=>{_0x17ead9['markBlockFormat'](_0x4d1324['createRangeOn'](_0x4417e6),{'commandName':_0x2399b3,'commandParams':[]},_0x481863,_0x2399b3);});});}_0x17ead9['descriptionFactory']['registerDescriptionCallback'](_0x18ed3f=>{if('formatBlock'!=_0x18ed3f['type']&&'formatInline'!=_0x18ed3f['type'])return;const {data:_0x4f59cc}=_0x18ed3f;return _0x4f59cc&&'mergeTableCells'==_0x4f59cc['commandName']?{'type':'format','content':o(_0x4119a4,'*Merge\x20cells*')}:void 0x0;}),_0x17ead9['descriptionFactory']['registerDescriptionCallback'](_0x1f88b0=>{if('formatBlock'!=_0x1f88b0['type']&&'formatInline'!=_0x1f88b0['type'])return;const {data:_0xa3455b}=_0x1f88b0;return _0xa3455b?'splitTableCellVertically'==_0xa3455b['commandName']?{'type':'format','content':o(_0x4119a4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xa3455b['commandName']?{'type':'format','content':o(_0x4119a4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x30bed5=_0x1a3e61['_acceptFormatSuggestionCallbackFactory']();for(const _0x18027e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x17ead9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18027e,'accept',_0x30bed5);for(const _0x61733a of['splitTableCellVertically','splitTableCellHorizontally'])_0x17ead9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x61733a,'accept',_0x30bed5);_0x17ead9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xd1a6a1=>{_0x5b2f6d['model']['change'](_0x3beacc=>{const _0x3af03e=Array['from'](_0x192f73['getRanges']())['map'](_0x58f694=>_0x2242e5['fromRange'](_0x58f694));_0x3beacc['setSelection'](_0xd1a6a1),_0x5b2f6d['commands']['get']('mergeTableCells')['refresh'](),_0x5b2f6d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5a1e75=_0x3af03e['filter'](_0x1d7d1f=>'$graveyard'!=_0x1d7d1f['root']['rootName']);_0x5a1e75['length']>0x0&&_0x3beacc['setSelection'](_0x5a1e75);for(const _0x595852 of _0x3af03e)_0x595852['detach']();});});for(const _0x235a79 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3bf4c9=_0x5b2f6d['commands']['get'](_0x235a79);_0x3bf4c9['on']('set:isEnabled',(_0x341f72,_0x4d6e13,_0x40e353)=>{if(_0x40e353){const _0x5792b2=_0x5b2f6d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1ad62a=>_0x1ad62a['is']('element','tableCell'));this['_areMergableCells'](_0x3bf4c9['value'],_0x5792b2)||(_0x341f72['return']=!0x1,_0x341f72['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x465cfe=this['editor']['commands']['get']('mergeTableCells'),_0x1c2b4a=this['editor']['plugins']['get']('TableUtils');if(!_0x465cfe['isEnabled'])return!0x1;const _0x3e15b3=_0x1c2b4a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x43d431 of _0x3e15b3)for(const _0x276051 of _0x3e15b3)if(_0x43d431!=_0x276051&&!this['_areMergableCells'](_0x43d431,_0x276051))return!0x1;return!0x0;}['_areMergableCells'](_0x1d3944,_0x5013f5){const _0x399540=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38c173=this['editor']['model']['createRangeOn'](_0x1d3944),_0x2f7f38=this['editor']['model']['createRangeOn'](_0x5013f5),_0x262ea5=new Set(),_0x4ec815=new Set();for(const _0x405a7f of _0x399540['getSuggestions']())if(('insertion'==_0x405a7f['type']||'deletion'==_0x405a7f['type']||'mergeTableCells'==_0x405a7f['subType'])&&_0x405a7f['isInContent']){for(const _0x2d7e42 of _0x405a7f['getRanges']())_0x2d7e42['containsRange'](_0x38c173,!0x0)&&_0x262ea5['add'](_0x405a7f['type']+':'+_0x405a7f['author']['id']),_0x2d7e42['containsRange'](_0x2f7f38,!0x0)&&_0x4ec815['add'](_0x405a7f['type']+':'+_0x405a7f['author']['id']);}if(_0x262ea5['size']!=_0x4ec815['size'])return!0x1;for(const _0xce56e3 of _0x262ea5)if(!_0x4ec815['has'](_0xce56e3))return!0x1;return!0x0;}}class At extends _0x357748{static get['requires'](){return[jt];}['afterInit'](){const _0x562f72=this['editor'];if(!_0x562f72['plugins']['has']('TableEditing'))return;const _0x2d8154=_0x562f72['locale'],_0x1dc396=_0x562f72['plugins']['get']('TrackChangesEditing');_0x1dc396['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1dc396['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1dc396['registerBlockAttribute']('headingRows'),_0x1dc396['registerBlockAttribute']('headingColumns'),_0x1dc396['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2d8154,'FORMAT_HEADER_ROW')),_0x1dc396['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2d8154,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x49282b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27405f=this['editor']['plugins']['get']('TableUtils'),_0x467aa1=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0xc637d5({showActiveMarker:_0x1edd08=!0x0,setDataAttribute:_0x5a0a0d=!0x0}={}){return(_0x5f2c60,_0x47c591,_0x281aa1)=>{const {type:_0x57c508,id:_0x3dd75c}=_0x49282b['_splitMarkerName'](_0x47c591['markerName']),_0x3f455c=_0x49282b['getSuggestion'](_0x3dd75c),_0x24e59a=_0x3f455c['data'];if('formatBlock'!=_0x3f455c['type']||!_0x24e59a||'setTableColumnHeader'!=_0x24e59a['commandName'])return;if(_0x47c591['item'])return void _0x5f2c60['stop']();if(!_0x281aa1['consumable']['consume'](_0x47c591['markerRange'],_0x5f2c60['name']))return;const _0x4dceaf=_0x47c591['markerRange']['start']['nodeAfter'],_0x45d73a=_0x47c591['markerRange']['end']['nodeBefore'],_0x562415=_0x4dceaf['parent']['parent'],{column:_0x4006e3}=_0x27405f['getCellLocation'](_0x4dceaf),{column:_0x3435d4}=_0x27405f['getCellLocation'](_0x45d73a);for(let _0x213cc5=_0x4006e3;_0x213cc5<=_0x3435d4;_0x213cc5++){const _0x5b3786=_0x27405f['createTableWalker'](_0x562415,{'column':_0x213cc5,'includeAllSlots':!0x1});for(const _0x33fdcd of _0x5b3786){const _0x16766c=_0x33fdcd['cell'],_0x103b75=_0x281aa1['mapper']['toViewElement'](_0x16766c);_0x281aa1['writer']['addClass']('ck-suggestion-marker-'+_0x57c508,_0x103b75),_0x5a0a0d&&_0x281aa1['writer']['setAttribute']('data-suggestion',_0x3dd75c,_0x103b75),_0x281aa1['mapper']['bindElementToMarker'](_0x103b75,_0x47c591['markerName']),_0x1edd08&&(_0x49282b['activeMarkers']['includes'](_0x47c591['markerName'])?_0x281aa1['writer']['addClass']('ck-suggestion-marker--active',_0x103b75):_0x281aa1['writer']['removeClass']('ck-suggestion-marker--active',_0x103b75));}}};}_0x49282b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x467aa1),_0x49282b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x467aa1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xc637d5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9ca258,_0x4adbfe,_0x5cc1de)=>{_0x5cc1de['options']['showSuggestionHighlights']&&_0xc637d5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x9ca258,_0x4adbfe,_0x5cc1de);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x13eace,_0x3690b8,_0x46e1d8)=>{const {type:_0x218f9b,id:_0x50ff02}=_0x49282b['_splitMarkerName'](_0x3690b8['markerName']),_0x442dba=_0x49282b['getSuggestion'](_0x50ff02),_0x59423d=_0x442dba['data'];if('formatBlock'!=_0x442dba['type']||!_0x59423d||'setTableColumnHeader'!=_0x59423d['commandName'])return;const _0x368325=_0x46e1d8['mapper']['markerNameToElements'](_0x3690b8['markerName']);if(_0x368325){for(const _0x1a7cb1 of _0x368325)_0x46e1d8['writer']['removeClass']('ck-suggestion-marker-'+_0x218f9b,_0x1a7cb1),_0x46e1d8['writer']['removeClass']('ck-suggestion-marker--active',_0x1a7cb1),_0x46e1d8['writer']['removeAttribute']('data-suggestion',_0x1a7cb1),_0x46e1d8['mapper']['unbindElementFromMarkerName'](_0x1a7cb1,_0x3690b8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x812946=this['editor'],_0x32bb6d=_0x812946['locale'];function _0x3610df(_0x4a33f3){return{'type':'format','content':o(_0x32bb6d,'*Format:*\x20%0',_0x4a33f3)};}_0x812946['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x551adb=>{if('formatBlock'!=_0x551adb['type'])return;const {data:_0x2084ad}=_0x551adb;if(_0x2084ad){if('setTableRowHeader'==_0x2084ad['commandName']){const _0x313595=_0x2084ad['commandParams'][0x0]['forceValue'];return _0x3610df(o(_0x32bb6d,_0x313595?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2084ad['commandName']){const _0x2518ae=_0x2084ad['commandParams'][0x0]['forceValue'];return _0x3610df(o(_0x32bb6d,_0x2518ae?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x4b1e5e=>[_0x4b1e5e,null]));class It extends _0x357748{static get['requires'](){return[jt];}['afterInit'](){const _0x377b05=this['editor'];if(!_0x377b05['plugins']['has']('TableClipboard'))return;const _0x1c30ed=_0x377b05['plugins']['get']('TrackChangesEditing'),_0x2bf70b=_0x377b05['plugins']['get']('TableUtils'),_0x5d6d46=_0x377b05['plugins']['get'](jt),_0x194b4d=_0x377b05['plugins']['get']('TableClipboard');_0x5d6d46['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x377b05['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x377b05['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1b9b5a=null;_0x377b05['model']['on']('insertContent',(_0x2d2e5c,_0x6148d0)=>{const [_0x3c5e5a,_0x5cb002]=_0x6148d0,_0x1d74db=_0x6148d0[_0x6148d0['length']-0x1];_0x1d74db&&_0x1d74db['forceDefaultExecution']||_0x1c30ed['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xb017a,_0x5e33d5,_0x4994e5,_0x4a31eb,_0x35260e){if(_0x5e33d5&&!_0x5e33d5['is']('documentSelection'))return!0x1;const _0x4dc5ff=_0x35260e['getTableIfOnlyTableInContent'](_0xb017a,_0x4994e5);if(!_0x4dc5ff||!he(_0x4dc5ff,void 0x0,_0x4a31eb))return!0x1;const _0x21d918=_0x4a31eb['getSelectionAffectedTableCells'](_0x4994e5['document']['selection']);if(!_0x21d918['length'])return!0x1;const _0x32dcdb=_0x21d918[0x0]['findAncestor']('table'),_0x5eec01=_0x4a31eb['getRowIndexes'](_0x21d918),_0x305c36=_0x4a31eb['getColumnIndexes'](_0x21d918),_0x1fff1b={'startRow':_0x5eec01['first'],'endRow':_0x5eec01['last'],'startColumn':_0x305c36['first'],'endColumn':_0x305c36['last']};return 0x1==_0x21d918['length']&&(_0x1fff1b['endRow']+=_0x4a31eb['getRows'](_0x4dc5ff)-0x1,_0x1fff1b['endColumn']+=_0x4a31eb['getColumns'](_0x4dc5ff)-0x1),he(_0x32dcdb,_0x1fff1b,_0x4a31eb);}(_0x3c5e5a,_0x5cb002,_0x377b05['model'],_0x2bf70b,_0x194b4d)&&(_0x2d2e5c['stop'](),_0x1b9b5a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x377b05['model']['change'](()=>{_0x377b05['model']['insertContent'](_0x6148d0[0x0],_0x6148d0[0x1],_0x6148d0[0x2],{'forceDefaultExecution':!0x0});const _0x39e977=_0x501bc0(),{rowInsertionRanges:_0x37016b,columnInsertionRanges:_0x281912,insertionRanges:_0x46bd37,deletionRanges:_0x7f855f,cells:_0x202bee}=_0x1b9b5a;_0x37016b['length']&&_0x1c30ed['markMultiRangeInsertion'](_0x37016b,'tablePasteRow',{'tablePasteChainId':_0x39e977}),_0x281912['length']&&_0x1c30ed['markMultiRangeInsertion'](_0x281912,'tablePasteColumn',{'tablePasteChainId':_0x39e977}),_0x46bd37['length']&&(_0x1c30ed['markMultiRangeInsertion'](_0x46bd37,'tablePaste',{'tablePasteChainId':_0x39e977,'skipNestingCheck':!0x0}),_0x46bd37['forEach'](_0x4f16be=>{var _0x3b1b01;return null===(_0x3b1b01=_0x4f16be['detach'])||void 0x0===_0x3b1b01?void 0x0:_0x3b1b01['call'](_0x4f16be);})),_0x7f855f['length']&&(_0x1c30ed['markMultiRangeDeletion'](_0x7f855f,'tablePaste',{'tablePasteChainId':_0x39e977,'skipNestingCheck':!0x0}),_0x7f855f['forEach'](_0x138e11=>{var _0xe8db53;return null===(_0xe8db53=_0x138e11['detach'])||void 0x0===_0xe8db53?void 0x0:_0xe8db53['call'](_0x138e11);}));const _0x56cdb6=_0x1c30ed['markMultiRangeBlockFormat'](_0x202bee['map'](({element:_0x3ba6b1})=>_0x3ba6b1),{'formatGroupId':_0x501bc0()},[],'tablePasteCell',{'tablePasteChainId':_0x39e977});if(_0x56cdb6){const _0x578965=_0x56cdb6['getMarkers'](),_0x25d4f5=[];for(const {element:_0xa030b7,attributes:_0x29599c}of _0x202bee){if(!_0x29599c)continue;const _0x2ae4ae=_0x377b05['model']['createRangeOn'](_0xa030b7),_0xae68d6=_0x578965['find'](_0x53d62a=>_0x53d62a['getRange']()['isEqual'](_0x2ae4ae));_0xae68d6&&_0x25d4f5['push']([_0xae68d6['name'],_0x29599c]);}_0x25d4f5['length']&&_0x56cdb6['setAttribute']('markerAttributes',Object['fromEntries'](_0x25d4f5));}_0x1b9b5a=null;}));},{'priority':_0x16dc4b['high']+0xa}),_0x377b05['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1581ec,_0x41c6f4)=>{const [_0x2c75fa,_0x2e741a,,_0x5e90a3]=_0x41c6f4;if(!_0x1b9b5a)return;_0x1581ec['stop']();const _0x5e486b=_0x2c75fa['cell'],_0x4d8a55=_0x2e741a,_0x340631=Pe(_0x5e486b),_0x1076c9=Pe(_0x4d8a55);_0x1581ec['return']=_0x5e486b;let _0x4abcfb=null,_0x7e75d8=null;if(_0x1076c9||_0x340631){if(_0x340631&&!_0x1076c9){_0x5e90a3['remove'](_0x5e486b['getChild'](0x0));for(const _0x64c6ee of Array['from'](_0x4d8a55['getChildren']()))_0x5e90a3['insert'](_0x64c6ee,_0x5e486b,'end');const _0x1300b9=_0x1b9b5a['rowInsertionIndexes']['includes'](_0x2c75fa['row']),_0x245e00=_0x1b9b5a['columnInsertionIndexes']['includes'](_0x2c75fa['column']);_0x1300b9||_0x245e00||(_0x4abcfb=_0x2242e5['fromRange'](_0x5e90a3['createRangeIn'](_0x5e486b)));}else _0x1076c9&&!_0x340631&&(_0x7e75d8=_0x5e90a3['createRangeIn'](_0x5e486b));}else{const _0x2e4598=_0x5e90a3['createElement']('tableCellSuggestion'),_0x2178b4=_0x5e90a3['createElement']('tableCellSuggestion');_0x5e90a3['wrap'](_0x5e90a3['createRangeIn'](_0x5e486b),_0x2178b4),_0x5e90a3['insert'](_0x2e4598,_0x5e486b,0x0);for(const _0x4d7f93 of Array['from'](_0x4d8a55['getChildren']()))_0x5e90a3['insert'](_0x4d7f93,_0x2e4598,'end');_0x4abcfb=_0x2242e5['fromRange'](_0x5e90a3['createRangeOn'](_0x2e4598)),_0x7e75d8=_0x2242e5['fromRange'](_0x5e90a3['createRangeOn'](_0x2178b4));}const _0x540ee9=Array['from'](_0x4d8a55['getAttributes']())['filter'](([_0x218425])=>ge['includes'](_0x218425));_0x1b9b5a['cells']['push']({'element':_0x5e486b,'attributes':_0x540ee9['length']?Object['fromEntries'](_0x540ee9):null}),_0x4abcfb&&_0x1b9b5a['insertionRanges']['push'](_0x4abcfb),_0x7e75d8&&_0x1b9b5a['deletionRanges']['push'](_0x7e75d8);},{'priority':'high'}),_0x2bf70b['on']('insertColumns',(_0x2b55ce,_0x4685da)=>{const [_0x54bcd6,_0x5f1803={}]=_0x4685da;if(!_0x1b9b5a)return;const _0x3c4e30=_0x5f1803['at']||0x0,_0x4ec154=_0x5f1803['columns']||0x1;_0x1b9b5a['columnInsertionIndexes']=new Array(_0x4ec154)['fill'](_0x3c4e30)['map']((_0x113915,_0x3d1471)=>_0x113915+_0x3d1471);for(const {cell:_0x327bd}of _0x2bf70b['createTableWalker'](_0x54bcd6,{'startColumn':_0x3c4e30,'endColumn':_0x3c4e30+_0x4ec154-0x1}))_0x1b9b5a['columnInsertionRanges']['push'](_0x377b05['model']['createRangeOn'](_0x327bd));},{'priority':'low'}),_0x2bf70b['on']('insertRows',(_0x219195,_0x2f35ee)=>{const [_0x556ea9,_0x11ebfc={}]=_0x2f35ee;if(!_0x1b9b5a)return;const _0x581f85=_0x11ebfc['at']||0x0,_0x55186a=_0x11ebfc['rows']||0x1;_0x1b9b5a['rowInsertionIndexes']=new Array(_0x55186a)['fill'](_0x581f85)['map']((_0x2bc668,_0x184367)=>_0x2bc668+_0x184367);for(const {cell:_0x19b8c8}of _0x2bf70b['createTableWalker'](_0x556ea9,{'startRow':_0x581f85,'endRow':_0x581f85+_0x55186a-0x1}))_0x1b9b5a['rowInsertionRanges']['push'](_0x377b05['model']['createRangeOn'](_0x19b8c8));},{'priority':'low'}),_0x1c30ed['descriptionFactory']['registerDescriptionCallback'](_0x4c8189=>{if(_0x4c8189['subType']&&_0x4c8189['subType']['startsWith']('tablePaste'))return _0x4c8189['previous']?{}:{'type':'insertion','content':o(_0x377b05['locale'],'*Replace\x20table\x20cells*')};});const _0x49a6f8=()=>!0x1;for(const _0x367a4c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1c30ed['_suggestionFactory']['registerCustomCallback']('insertion',_0x367a4c,'join',_0x49a6f8),_0x1c30ed['_suggestionFactory']['registerCustomCallback']('deletion',_0x367a4c,'join',_0x49a6f8),_0x1c30ed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x367a4c,'join',_0x49a6f8);_0x1c30ed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x49a6f8),_0x1c30ed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4e5383,_0x3becb0,_0x38f2e1)=>{const _0x2ec6c5=_0x4e5383['map'](_0x569ac0=>_0x569ac0['getContainedElement']())['filter'](_0x15ab94=>_0x15ab94),_0x599b46=new Map(_0x2ec6c5['map'](_0x26491a=>[_0x26491a,null]));if(_0x1b9b5a){for(const {element:_0x40b77f,attributes:_0x45fee3}of _0x1b9b5a['cells'])_0x45fee3&&_0x599b46['set'](_0x40b77f,_0x45fee3);}else{if(_0x38f2e1&&_0x38f2e1['markerAttributes'])for(const [_0x5ded89,_0x420b3d]of Object['entries'](_0x38f2e1['markerAttributes'])){const _0x1b99d4=_0x377b05['model']['markers']['get'](_0x5ded89),_0x1d0d68=_0x1b99d4?_0x1b99d4['getRange']()['getContainedElement']():null;_0x1d0d68&&_0x599b46['set'](_0x1d0d68,_0x420b3d);}}_0x377b05['model']['change'](_0x3ab704=>{for(const [_0xa04078,_0x30ae80]of _0x599b46)_0x3ab704['setAttributes']({...Ce,..._0x30ae80},_0xa04078);});});const _0x89b27d=(_0x2ed052,_0x1f6f73)=>{_0x1c30ed['_suggestionFactory']['registerCustomCallback'](_0x2ed052,'tablePaste',_0x1f6f73,(_0x52ff68,_0x3d8a3a,_0xf57956)=>{_0x377b05['model']['change'](_0x968696=>{const _0x103d45=[];for(const _0x4e7ebe of _0x52ff68){const _0x3b0083=_0x4e7ebe['start']['nodeAfter'];_0x3b0083['is']('element','tableCellSuggestion')&&_0x103d45['push'](_0x3b0083);}_0x1c30ed['_suggestionFactory']['getSuggestionCallback'](_0x2ed052,null,_0x1f6f73)(_0x52ff68,_0x3d8a3a,_0xf57956);for(const _0x5198d6 of _0x103d45)'$graveyard'!=_0x5198d6['root']['rootName']&&_0x968696['unwrap'](_0x5198d6);});});};_0x89b27d('insertion','accept'),_0x89b27d('insertion','discard'),_0x89b27d('deletion','accept'),_0x89b27d('deletion','discard'),_0x1c30ed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x58ffe2=>{const _0x391f96=_0x58ffe2['map'](_0x1ea4ed=>_0x1ea4ed['getContainedElement']()),_0x2cee3f=_0x391f96[0x0]['findAncestor']('table'),{minRow:_0x26e1c1,maxRow:_0x2807c4}=_0x5d6d46['_getCoordsForCells'](_0x391f96);_0x2bf70b['removeRows'](_0x2cee3f,{'at':_0x26e1c1,'rows':_0x2807c4-_0x26e1c1+0x1});}),_0x1c30ed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xef764b=>{const _0x4d9a9a=_0xef764b['map'](_0x26ec2b=>_0x26ec2b['getContainedElement']()),_0x513aba=_0x4d9a9a[0x0]['findAncestor']('table'),{minColumn:_0x1174d3,maxColumn:_0x49ccf8}=_0x5d6d46['_getCoordsForCells'](_0x4d9a9a);_0x2bf70b['removeColumns'](_0x513aba,{'at':_0x1174d3,'columns':_0x49ccf8-_0x1174d3+0x1});});const _0xeb01c7=(_0x25c217,_0x33ec14)=>{if(!_0x33ec14['subType']||!_0x33ec14['subType']['startsWith']('tablePaste'))return;const _0xa180b0=_0x33ec14['attributes']['tablePasteChainId'],_0x463029=_0x1c30ed['getSuggestions']()['filter'](_0x43b650=>_0x43b650['isInContent']&&_0x43b650['attributes']&&_0x43b650['attributes']['tablePasteChainId']==_0xa180b0);_0x463029['length']&&_0x33ec14['getAllAdjacentSuggestions']()['length']!=_0x463029['length']&&_0x463029['reduce']((_0x1d12ac,_0x49b2a3)=>(_0x1d12ac['next']=_0x49b2a3,_0x49b2a3['previous']=_0x1d12ac,_0x49b2a3));};function _0x2551a1(_0x5eb3ed,_0x48055a=!0x0){const {id:_0x23fca6}=_0x1c30ed['_splitMarkerName'](_0x5eb3ed['markerName']),_0xc6608d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5611ce=_0x1c30ed['activeMarkers']['includes'](_0x5eb3ed['markerName']);return _0x5611ce&&_0xc6608d['push']('ck-suggestion-marker--active'),{'classes':_0xc6608d,'attributes':{'data-suggestion':_0x23fca6},'priority':_0x5611ce&&_0x48055a?0xbc2:0xbb8};}_0x1c30ed['on']('suggestionLoaded',_0xeb01c7,{'priority':'high'}),_0x1c30ed['on']('suggestionUnloaded',_0xeb01c7,{'priority':'high'}),_0x377b05['model']['document']['registerPostFixer'](()=>{let _0x42cf7e=!0x1;const _0x581446=Array['from'](_0x377b05['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e9b32,data:_0x479f82}of _0x581446){const {group:_0x2fbff0,type:_0x493b60,id:_0x3fb9be}=_0x1c30ed['_splitMarkerName'](_0x3e9b32);if('suggestion'!=_0x2fbff0||'deletion'!=_0x493b60||_0x479f82['oldRange'])continue;if(!_0x1c30ed['hasSuggestion'](_0x3fb9be))continue;const _0x19b9fb=_0x1c30ed['getSuggestion'](_0x3fb9be)['getRanges'](),_0x1c792d=_0x377b05['plugins']['get']('Users')['me'];for(const _0xdf8e3c of _0x1c30ed['getSuggestions']()){if(!_0xdf8e3c['isInContent']||_0xdf8e3c['author']!=_0x1c792d)continue;if('formatBlock'!=_0xdf8e3c['type']||'tablePasteCell'!=_0xdf8e3c['subType'])continue;if(_0xdf8e3c['getRanges']()['every'](_0x3b8771=>_0x19b9fb['some'](_0x2a68d3=>_0x2a68d3['containsRange'](_0x3b8771,!0x0)))){for(const _0x5aa9c7 of _0xdf8e3c['getAllAdjacentSuggestions']())_0x5aa9c7['isInContent']&&(_0x5aa9c7['discard'](),_0x42cf7e=!0x0);}}}return _0x42cf7e;}),_0x377b05['model']['document']['registerPostFixer'](_0x51ac8a=>{const _0x3f6a8c=_0x377b05['commands']['get']('redo');if(!_0x3f6a8c||!_0x3f6a8c['_createdBatches']['has'](_0x51ac8a['batch']))return!0x1;let _0x15b916=!0x1;const _0x337335=_0x377b05['plugins']['get']('Users')['me'],_0x540039=_0x377b05['model']['document']['differ']['getChanges'](),_0x5f3a9d=Array['from'](_0x377b05['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x46ae53,data:_0x4ba03e})=>{const {group:_0x5694ef,subType:_0x40543c,authorId:_0x2b80f1}=_0x1c30ed['_splitMarkerName'](_0x46ae53);return'suggestion'==_0x5694ef&&'tablePaste'==_0x40543c&&_0x2b80f1==_0x337335['id']&&!_0x4ba03e['oldRange'];});for(const _0x5d015b of _0x540039){if('insert'!=_0x5d015b['type']||'tableCellSuggestion'!=_0x5d015b['name']||0x1!=_0x5d015b['length'])continue;const _0x595f97=_0x51ac8a['createRange'](_0x5d015b['position'],_0x5d015b['position']['getShiftedBy'](0x1));if(!_0x5f3a9d['find'](({data:_0x15eca3})=>_0x15eca3['newRange']['isEqual'](_0x595f97))){for(const {name:_0x5797ae,data:_0x157af8}of _0x5f3a9d)if(_0x595f97['containsRange'](_0x157af8['newRange'])){_0x51ac8a['updateMarker'](_0x5797ae,{'range':_0x595f97}),_0x15b916=!0x0;break;}}}return _0x15b916;}),_0x377b05['model']['document']['registerPostFixer'](_0x435122=>{let _0x3cfa39=!0x1;const _0x22c3b2=_0x377b05['plugins']['get']('Users')['me'],_0xd2beaf=_0x1c30ed['getSuggestions']()['filter'](_0x37d4d8=>_0x37d4d8['isInContent']&&_0x37d4d8['author']==_0x22c3b2),_0x1c956d=new Set(),_0x58dcf0=new Set();for(const _0x60aad7 of _0xd2beaf)if('tablePaste'==_0x60aad7['subType'])for(const _0x5cfa81 of _0x60aad7['getMarkers']()){const _0x5765e8=_0x5cfa81['getRange']()['getContainedElement']();if(_0x5765e8){if(_0x5765e8['is']('element','tableCellSuggestion')&&Pe(_0x5765e8)){_0x60aad7['removeMarker'](_0x5cfa81['name']),_0x1c956d['add'](_0x5765e8),_0x3cfa39=!0x0;const _0x2e5691=_0x5765e8['nextSibling'],_0x5c5daf=_0x5765e8['previousSibling'],_0x46f320=_0x2e5691&&_0x2e5691['is']('element','tableCellSuggestion'),_0x59d478=_0x5c5daf&&_0x5c5daf['is']('element','tableCellSuggestion');_0x46f320&&!_0x1c956d['has'](_0x2e5691)&&_0x58dcf0['add'](_0x2e5691),_0x59d478&&!_0x1c956d['has'](_0x5c5daf)&&_0x58dcf0['add'](_0x5c5daf);}else _0x5765e8['is']('element','paragraph')&&_0x5765e8['isEmpty']&&(_0x60aad7['removeMarker'](_0x5cfa81['name']),_0x3cfa39=!0x0);}}else{if('tablePasteCell'==_0x60aad7['subType']){if(!_0x60aad7['attributes']||!_0x60aad7['attributes']['tablePasteChainId'])continue;const _0x34c2db=_0x60aad7['attributes']['markerAttributes'];if(_0x34c2db&&Object['keys'](_0x34c2db)['length'])continue;const _0x269b3a=_0x60aad7['attributes']['tablePasteChainId'];let _0x192d04=!0x0,_0x171da7=!0x0;for(const _0x1aac7a of _0xd2beaf)if(_0x1aac7a['subType']&&_0x1aac7a['subType']['startsWith']('tablePaste')){if(!_0x1aac7a['attributes']['tablePasteChainId']){_0x171da7=!0x1;break;}if(_0x1aac7a['id']!=_0x60aad7['id']&&_0x1aac7a['attributes']['tablePasteChainId']==_0x269b3a){_0x192d04=!0x1;break;}}_0x171da7&&_0x192d04&&(_0x60aad7['removeMarkers'](),_0x3cfa39=!0x0);}}for(const _0x1ab60b of _0x1c956d)_0x435122['remove'](_0x1ab60b);for(const _0x1c72ef of _0x58dcf0)_0x435122['unwrap'](_0x1c72ef);return _0x3cfa39;}),_0x377b05['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x17e89e,_0x3437b2)=>_0x2551a1(_0x17e89e),'converterPriority':'high'}),_0x377b05['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x117f5e,_0x233193)=>_0x233193['options']['showSuggestionHighlights']?_0x2551a1(_0x117f5e,!0x1):null,'converterPriority':'high'});const _0x5d5e7d=_0x377b05['editing']['view'];this['listenTo'](_0x5d5e7d['document'],'clipboardOutput',(_0x56e80a,_0x2450f9)=>{const _0x580766=[];for(const _0xf11a47 of _0x5d5e7d['createRangeIn'](_0x2450f9['content'])['getItems']())_0xf11a47['is']('element','suggestion-td')&&_0x580766['push'](_0xf11a47);_0x5d5e7d['change'](_0xc6d033=>{for(const _0x171173 of _0x580766)_0xc6d033['move'](_0xc6d033['createRangeIn'](_0x171173),_0xc6d033['createPositionBefore'](_0x171173)),_0xc6d033['remove'](_0x171173);});});}}function Pe(_0x151b9c){if(_0x151b9c['isEmpty'])return!0x0;const _0x5eaa72=_0x151b9c['getChild'](0x0);return _0x5eaa72['is']('element','paragraph')&&_0x5eaa72['isEmpty'];}function he(_0x13cdf6,_0x4cd147={},_0x340d9a){for(const {isAnchor:_0x1c1cf9,cellHeight:_0x3bf4a7,cellWidth:_0x2b1c07}of _0x340d9a['createTableWalker'](_0x13cdf6,{'includeAllSlots':!0x0,..._0x4cd147}))if(!_0x1c1cf9||0x1!=_0x3bf4a7||0x1!=_0x2b1c07)return!0x1;return!0x0;}class vt extends _0x357748{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x265965=this['editor']['plugins']['get']('TrackChangesEditing');_0x265965['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x265965['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x265965['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x265965['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x265965['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x265965['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x286717,_0x45bb5d){const _0x1f9aa9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fc746=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1eadd2=_0x45bb5d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3a68b4=_0x4fc746['getColumnGroupElement'](_0x1eadd2);let _0x3deeb2=_0x3a68b4?_0x4fc746['getTableColumnsWidths'](_0x3a68b4):null,_0x18e5ee=_0x1eadd2['getAttribute']('tableWidth')||null;const _0x228de6=_0x45bb5d['tableWidth']||_0x18e5ee,_0x2c3f96=_0x45bb5d['columnWidths']||_0x3deeb2,_0x3c82db=this['editor']['plugins']['get']('Users')['me'];for(const _0x4ec63b of _0x1f9aa9['getSuggestions']()){const _0x54a62f=_0x4ec63b['getContainedElement']();if('resizeTable'===_0x4ec63b['subType']&&_0x54a62f===_0x1eadd2){_0x4ec63b['author']!==_0x3c82db&&_0x4ec63b['discard']();const _0x1b4ee7=_0x4ec63b['data']['commandParams'];_0x18e5ee=_0x1b4ee7[0x0]['tableWidth'],_0x3deeb2=_0x1b4ee7[0x0]['columnWidths'];break;}}_0x286717({'table':_0x1eadd2,'tableWidth':_0x228de6,'columnWidths':_0x2c3f96}),_0x1f9aa9['markBlockFormat'](_0x1eadd2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x18e5ee,'columnWidths':_0x3deeb2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x270e11){if('formatBlock'!=_0x270e11['type']&&'formatInline'!=_0x270e11['type'])return;const {data:_0x36e508}=_0x270e11;if(_0x36e508&&'resizeTable'===_0x36e508['formatGroupId']){const _0xfde2a8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xfde2a8)};}}}class _t extends _0x357748{['afterInit'](){const _0x3a8c30=this['editor'];_0x3a8c30['plugins']['has']('Template')&&_0x3a8c30['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x357748{['afterInit'](){const _0x4ae546=this['editor'];if(!_0x4ae546['commands']['get']('insertTableOfContents'))return;_0x4ae546['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3b1662=_0x4ae546['plugins']['get']('TrackChangesEditing'),_0x5321e9=_0x4ae546['locale'];_0x3b1662['descriptionFactory']['registerElementLabel']('tableOfContents',_0x57eeda=>o(_0x5321e9,'ELEMENT_TABLE_OF_CONTENTS',_0x57eeda));}}class Dt extends _0x357748{['afterInit'](){const _0x323712=this['editor'];if(!_0x323712['plugins']['has']('Title'))return;const _0x20dd0d=_0x323712['plugins']['get']('TrackChangesEditing');_0x20dd0d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x323712['locale'],'ELEMENT_TITLE')),_0x323712['model']['document']['registerPostFixer'](_0xb2eb0c=>{let _0xa0e58d=!0x1;const _0x4a28a0=Array['from'](_0x323712['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x11bc64,data:_0x450353}of _0x4a28a0){const {group:_0xbf7059}=_0x20dd0d['_splitMarkerName'](_0x11bc64);if('suggestion'!==_0xbf7059||!_0x450353['newRange'])continue;const _0x15a416=_0x450353['newRange'],_0x2b9511=_0x15a416['end']['nodeBefore'];if(!_0x2b9511||!_0x2b9511['is']('element','title-content'))continue;if(!_0x15a416['start']['isTouching'](_0x15a416['end']))continue;const _0x1efcd3=_0x323712['model']['schema']['getNearestSelectionRange'](_0x15a416['end'],'forward');if(_0x1efcd3&&_0x1efcd3['isCollapsed']){const _0x5471d5=_0xb2eb0c['createRange'](_0x15a416['start'],_0x1efcd3['start']);_0x5471d5['isEqual'](_0x15a416)||(_0xb2eb0c['updateMarker'](_0x11bc64,{'range':_0x5471d5}),_0xa0e58d=!0x0);}_0xa0e58d||(_0xb2eb0c['removeMarker'](_0x11bc64),_0xa0e58d=!0x0);}return _0xa0e58d;});}}class Nt extends _0x357748{['afterInit'](){const _0x5e9161=this['editor'],_0x34d45a=_0x5e9161['plugins']['get']('TrackChangesEditing');_0x5e9161['plugins']['has']('UndoEditing')&&(_0x34d45a['enableCommand']('undo'),_0x34d45a['enableCommand']('redo'));}}class Mt extends _0x357748{static get['requires'](){return[jt];}['afterInit'](){const _0x819c88=this['editor'];if(!_0x819c88['plugins']['has']('TableCaptionEditing'))return;_0x819c88['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x357748{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x248d05=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x44ddf2 of this['tableProperties'])_0x248d05['enableCommand'](_0x44ddf2,(_0x1b107f,_0x3416d0)=>{const _0x2e6972=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x44ddf2,[_0x2e6972],this['tableProperties'],'tableProperties',_0x1b107f,_0x3416d0);});_0x248d05['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x248d05['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x248d05['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2f4318,_0x2446a8)=>this['handleDiscardAction'](this['tableProperties'],_0x2f4318,_0x2446a8)),_0x248d05['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5acda0 of this['tableCellProperties'])_0x248d05['enableCommand'](_0x5acda0,(_0x2d8356,_0x1f36c9)=>{const _0x566aeb=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5acda0,_0x566aeb,this['tableCellProperties'],'tableCellProperties',_0x2d8356,_0x1f36c9);});_0x248d05['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x248d05['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x248d05['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xc4f88d,_0x29a525)=>this['handleDiscardAction'](this['tableCellProperties'],_0xc4f88d,_0x29a525)),_0x248d05['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x248d05['descriptionFactory']['registerDescriptionCallback'](_0x2a03dd=>this['handleSuggestionDescription'](_0x2a03dd));}['_handlePropertyChange'](_0xbd6b25,_0x57e8d5,_0x39409b,_0x28bbe6,_0x44c1e4,_0x2c7151){const _0xed3a47=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2c7151['batch'],()=>{for(const _0x38936b of _0x57e8d5){if(this['_getSuggestion'](_0x38936b,_0x28bbe6))_0x44c1e4(_0x2c7151);else{const _0x2bb882={};for(const _0x45549d of _0x39409b){const _0x3f1cd5=_0x38936b['getAttribute'](_0x45549d);void 0x0!==_0x3f1cd5&&(_0x2bb882[_0x45549d]=_0x3f1cd5);}_0x44c1e4(_0x2c7151),_0xed3a47['markBlockFormat'](_0x38936b,{'commandParams':[_0x2bb882]},[],_0x28bbe6);}}});}['handleDiscardAction'](_0x5351b9,_0x1067c8,_0x34525e){const _0x4e468=_0x1067c8[0x0]['start']['nodeAfter'],_0x3adcc9=_0x34525e['commandParams'][0x0];this['editor']['model']['change'](_0xdb1279=>{for(const _0x1f142d of _0x5351b9)void 0x0!==_0x3adcc9[_0x1f142d]?_0xdb1279['setAttribute'](_0x1f142d,_0x3adcc9[_0x1f142d],_0x4e468):_0xdb1279['removeAttribute'](_0x1f142d,_0x4e468);});}['handleSuggestionDescription'](_0x34edea){if(_0x34edea['data'])switch(_0x34edea['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'](_0x56808a,_0x1d0d3f){const _0xfe9fed=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5474e9 of _0xfe9fed['getSuggestions']({'skipNotAttached':!0x0})){const _0x38d902=_0x5474e9['getContainedElement']();if(_0x5474e9['subType']===_0x1d0d3f&&_0x38d902===_0x56808a)return _0x5474e9;}return null;}constructor(_0x996d00){super(_0x996d00),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 _0x357748{static get['requires'](){return['CommentsRepository',_0x4b8c42,_0x4f18c1,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 _0x21eccc=this['editor'],_0x144c5b=(_0x385773,_0x163f5d)=>{if('attribute'!=_0x385773)return'ck-suggestion-marker-'+_0x385773;const _0x338053=_0x163f5d['split']('|')[0x0];return this['_isBlockAttribute'](_0x338053)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x21eccc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3b3560=>{const {id:_0x191aaf,type:_0x555ddb,subType:_0x598c55}=this['_splitMarkerName'](_0x3b3560['markerName']),_0x3d2ab0=['ck-suggestion-marker',_0x144c5b(_0x555ddb,_0x598c55)];let _0x5ea041=0xbb8;return this['activeMarkers']['includes'](_0x3b3560['markerName'])&&(_0x3d2ab0['push']('ck-suggestion-marker--active'),_0x5ea041=0xbc2),'deletion'==_0x555ddb&&(_0x5ea041+=0x5),{'classes':_0x3d2ab0,'attributes':{'data-suggestion':_0x191aaf},'priority':_0x5ea041};}}),_0x21eccc['conversion']['for']('dataDowncast')['add'](_0x2a505e=>{_0x2a505e['on']('addMarker:suggestion',(_0x2eeb81,_0x2936f0,_0x237844)=>{if(!_0x237844['options']['showSuggestionHighlights'])return;const _0x4fea32=_0x2936f0['item'];if(!_0x4fea32)return;const _0x2f4154=_0x237844['mapper']['toViewElement'](_0x4fea32);_0x21eccc['model']['schema']['isObject'](_0x4fea32)&&_0x2f4154&&!_0x2f4154['getCustomProperty']('widget')&&_0x2f4154['is']('containerElement')&&_0x53b114(_0x2f4154,_0x237844['writer']);},{'priority':'high'});}),_0x21eccc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x37895f,_0x4095db)=>{if(!_0x4095db['options']['showSuggestionHighlights'])return null;const {type:_0x252425,subType:_0x3a23f3}=this['_splitMarkerName'](_0x37895f['markerName']);return{'classes':['ck-suggestion-marker',_0x144c5b(_0x252425,_0x3a23f3)],'priority':0xbb8};}});const _0x152e7d=({showActiveMarkers:_0x41dfad=!0x0,isAttributeSuggestion:_0x43ca4a=!0x1}={})=>(_0x1c6329,_0x22c00a,_0x55b096)=>{if(!_0x22c00a['item'])return;const {id:_0x5ef732}=this['_splitMarkerName'](_0x22c00a['markerName']);if(_0x43ca4a){const _0x59651d=this['_suggestions']['get'](_0x5ef732),_0x3a0c8f=this['_getAttributeKey'](_0x59651d);if(!this['_isBlockAttribute'](_0x3a0c8f))return;}if(_0x22c00a['item']['is']('selection'))return void _0x55b096['consumable']['consume'](_0x22c00a['item'],_0x1c6329['name']);const _0x205f7f=_0x55b096['mapper']['toViewElement'](_0x22c00a['item']);if(_0x22c00a['item']['is']('element')&&_0x21eccc['model']['schema']['isBlock'](_0x22c00a['item'])&&!_0x205f7f['getCustomProperty']('addHighlight')){_0x55b096['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x205f7f),_0x55b096['writer']['setAttribute']('data-suggestion',_0x5ef732,_0x205f7f),_0x55b096['mapper']['bindElementToMarker'](_0x205f7f,_0x22c00a['markerName']),_0x41dfad&&(this['activeMarkers']['includes'](_0x22c00a['markerName'])?_0x55b096['writer']['addClass']('ck-suggestion-marker--active',_0x205f7f):_0x55b096['writer']['removeClass']('ck-suggestion-marker--active',_0x205f7f));for(const _0x993a34 of _0x21eccc['model']['createRangeIn'](_0x22c00a['item'])['getItems']())_0x55b096['consumable']['consume'](_0x993a34,_0x1c6329['name']);_0x55b096['consumable']['consume'](_0x22c00a['item'],_0x1c6329['name']);}};_0x21eccc['conversion']['for']('dataDowncast')['add'](_0x1921b6=>{_0x1921b6['on']('addMarker:suggestion:formatBlock',(_0x3747ff,_0x22888f,_0x5c1565)=>{_0x5c1565['options']['showSuggestionHighlights']&&_0x152e7d({'showActiveMarkers':!0x1})(_0x3747ff,_0x22888f,_0x5c1565);},{'priority':'highest'});}),_0x21eccc['conversion']['for']('dataDowncast')['add'](_0x13f084=>{_0x13f084['on']('addMarker:suggestion:attribute',(_0x571a9d,_0xe82585,_0x123cb)=>{_0x123cb['options']['showSuggestionHighlights']&&_0x152e7d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x571a9d,_0xe82585,_0x123cb);},{'priority':'highest'});}),_0x21eccc['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1852b4,_0xd9dac0)=>_0xd9dac0['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1852b4['substr'](0xb)}}),_0x21eccc['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3f5708,{writer:_0xa8814c})=>{let _0x22c7a4='suggestion:'+_0x3f5708['getAttribute']('suggestion-type')+':'+_0x3f5708['getAttribute']('id');return _0x3f5708['getAttribute']('marker-count')&&(_0x22c7a4+=':'+_0x3f5708['getAttribute']('marker-count')),_0xa8814c['createElement']('$marker',{'data-name':_0x22c7a4});}}),_0x21eccc['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x21eccc['conversion']['for']('editingDowncast')['add'](_0x18fa97=>{_0x18fa97['on']('addMarker:suggestion:formatBlock',_0x152e7d(),{'priority':'high'});}),_0x21eccc['conversion']['for']('editingDowncast')['add'](_0x458d8f=>{_0x458d8f['on']('addMarker:suggestion:attribute',_0x152e7d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x21eccc['conversion']['for']('editingDowncast')['add'](_0x317795=>{_0x317795['on']('removeMarker:suggestion:formatBlock',(_0x591bf8,_0x13c87a,_0x43b3e8)=>{const _0x31a55b=_0x43b3e8['mapper']['markerNameToElements'](_0x13c87a['markerName']);if(_0x31a55b){for(const _0x149142 of _0x31a55b)_0x149142['getCustomProperty']('addHighlight')||(_0x43b3e8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x149142),_0x43b3e8['writer']['removeAttribute']('data-suggestion',_0x149142),_0x43b3e8['mapper']['unbindElementFromMarkerName'](_0x149142,_0x13c87a['markerName']));}},{'priority':'high'});}),_0x21eccc['conversion']['for']('editingDowncast')['add'](_0x49330c=>{_0x49330c['on']('removeMarker:suggestion:attribute',(_0x136e18,_0x223cba,_0x362eca)=>{const _0x4bf4a9=_0x362eca['mapper']['markerNameToElements'](_0x223cba['markerName']);if(!_0x4bf4a9)return;const {id:_0x4f8dd3}=this['_splitMarkerName'](_0x223cba['markerName']),_0x2a98e8=this['_suggestions']['get'](_0x4f8dd3),_0x26a09c=this['_getAttributeKey'](_0x2a98e8);if(this['_isBlockAttribute'](_0x26a09c)){for(const _0x1fd66d of _0x4bf4a9)_0x1fd66d['getCustomProperty']('addHighlight')||(_0x362eca['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1fd66d),_0x362eca['writer']['removeAttribute']('data-suggestion',_0x1fd66d),_0x362eca['mapper']['unbindElementFromMarkerName'](_0x1fd66d,_0x223cba['markerName']));}},{'priority':'high'});}),_0x21eccc['model']['document']['registerPostFixer'](_0x197387=>{let _0x4953a6=!0x1;const _0xc3307=Array['from'](_0x21eccc['model']['document']['differ']['getChangedMarkers']()),_0x2b1e33=new Set();for(const {name:_0x463428,data:_0x49cf77}of _0xc3307){const {group:_0x19eea6,type:_0x190d8f,subType:_0x22352e,id:_0x16c4da}=this['_splitMarkerName'](_0x463428);if('suggestion'!==_0x19eea6)continue;const _0x4da28e=this['_suggestions']['get'](_0x16c4da);if(null!=_0x49cf77['newRange']){'formatInline'==_0x190d8f&&(_0x4953a6=_0x4953a6||Et(_0x49cf77['newRange'],_0x463428,_0x197387,_0x21eccc['model']['schema']));const _0x51e0b6='attribute'==_0x190d8f&&this['_isBlockAttribute'](_0x22352e['split']('|')[0x0]);if(_0x49cf77['newRange']['isCollapsed']||'$graveyard'==_0x49cf77['newRange']['root']['rootName']||'formatBlock'==_0x190d8f&&!Ut(_0x49cf77['newRange'])||_0x51e0b6&&!Ut(_0x49cf77['newRange'])||'deletion'==_0x190d8f&&!(!Tt(_0x1fb670=_0x49cf77['newRange'])&&!function(_0x5df4d7){return _0x5df4d7['start']['parent']==_0x5df4d7['end']['nodeBefore']&&_0x5df4d7['start']['isAtEnd'];}(_0x1fb670)))_0x197387['removeMarker'](_0x463428),_0x4953a6=!0x0;else{if(!_0x4da28e||!_0x4da28e['isInContent'])continue;_0x2b1e33['add'](_0x4da28e);}}}var _0x1fb670;return _0x2b1e33['size']>0x0&&(_0x4953a6=!!this['_joinWithAdjacentSuggestions'](_0x2b1e33)||_0x4953a6),_0x4953a6;}),_0x21eccc['model']['document']['registerPostFixer'](_0x4a809a=>{let _0xaa35a1=!0x1;for(const _0x236174 of _0x21eccc['model']['document']['differ']['getChanges']())if('insert'==_0x236174['type'])for(const _0x1e015e of this['_suggestions']['values']()){if(_0x1e015e['isMultiRange']||!_0x1e015e['isInContent'])continue;const _0xc8550='formatBlock'==_0x1e015e['type'],_0x4dc1e5=this['_getAttributeKey'](_0x1e015e),_0x380b6c=_0x4dc1e5&&this['_isBlockAttribute'](_0x4dc1e5);if(!_0xc8550&&!_0x380b6c)continue;const _0x43c821=_0x1e015e['getFirstRange']();if(_0x43c821['start']['parent']!=_0x43c821['end']['parent']&&!_0x43c821['end']['isAtEnd']){const _0x11ff96=_0x21eccc['model']['createPositionAt'](_0x43c821['start']['nodeAfter'],'end'),_0x5b5bea=_0x21eccc['model']['createRange'](_0x43c821['start'],_0x11ff96);_0x4a809a['updateMarker'](_0x1e015e['getFirstMarker'](),{'range':_0x5b5bea}),_0xaa35a1=!0x0;}}return _0xaa35a1;}),_0x21eccc['model']['document']['registerPostFixer'](_0x19acc6=>this['_processAttributeChanges'](_0x19acc6)),_0x21eccc['model']['document']['registerPostFixer'](_0x546a04=>!_0x546a04['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x546a04)),_0x21eccc['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x21eccc['model']['document']['on']('change:data',(_0x2ae7ea,_0x2f805d)=>{if(!_0x2f805d['isLocal']||_0x2f805d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x206290=_0x21eccc['model']['document']['differ']['getChanges']();if(0x0==_0x206290['length'])return;const _0x48978a=[],_0x427a29=_0x206290['filter'](_0x4554af=>'attribute'==_0x4554af['type']),_0x39fb53=_0x206290['filter'](_0x1939a3=>'insert'==_0x1939a3['type']&&'$text'!=_0x1939a3['name']),_0x5526fd=_0x206290['filter'](_0x1e4a53=>'remove'==_0x1e4a53['type']&&'$text'!=_0x1e4a53['name']);for(const _0x7af00 of _0x427a29)this['_isRegisteredAttribute'](_0x7af00['attributeKey'])&&_0x48978a['push']({'key':_0x7af00['attributeKey'],'newValue':_0x7af00['attributeNewValue'],'oldValue':_0x7af00['attributeOldValue'],'range':Ot(_0x7af00['range'],_0x21eccc['model'])});for(const _0x1838bd of _0x39fb53){const _0x2d8070=_0x5526fd['find'](_0x3c4a93=>_0x3c4a93['_element']===_0x1838bd['_element']);if(_0x2d8070){const _0x12faac=Ft(_0x1838bd['position']['nodeAfter'],_0x21eccc['model']);_0x2d8070['name']!==_0x1838bd['name']&&_0x48978a['push']({'key':m,'newValue':_0x1838bd['name'],'oldValue':_0x2d8070['name'],'range':_0x12faac});for(const [_0x2c1c88,_0x2065b4]of _0x2d8070['attributes']){if(!this['_isRegisteredAttribute'](_0x2c1c88))continue;const _0x38cfc2=_0x1838bd['attributes']['get'](_0x2c1c88);_0x2065b4!==_0x38cfc2&&_0x48978a['push']({'key':_0x2c1c88,'newValue':_0x38cfc2,'oldValue':_0x2065b4,'range':_0x12faac});}for(const [_0x39c94f,_0x13b499]of _0x1838bd['attributes'])this['_isRegisteredAttribute'](_0x39c94f)&&(_0x2d8070['attributes']['has'](_0x39c94f)||_0x48978a['push']({'key':_0x39c94f,'newValue':_0x13b499,'oldValue':null,'range':_0x12faac}));}}0x0!=_0x48978a['length']&&_0x21eccc['model']['enqueueChange'](_0x2f805d,_0x309034=>{const _0x4c6898=_0x501bc0();for(const {range:_0x444c7d,key:_0xae9a09,oldValue:_0x15f6d1,newValue:_0x1255d0}of _0x48978a)this['markAttributeChange'](_0x444c7d,_0xae9a09,_0x15f6d1,_0x1255d0,{'groupId':_0x4c6898});this['_reduceExistingSuggestions'](_0x309034,_0x48978a);});},{'priority':'lowest'}),_0x21eccc['model']['markers']['on']('update:suggestion',(_0x1878a4,_0x518236,_0x45c5af)=>{if(null==_0x45c5af){const {id:_0x2078c4}=this['_splitMarkerName'](_0x518236['name']),_0x25773b=this['_suggestions']['get'](_0x2078c4);_0x25773b&&_0x25773b['addMarkerName'](_0x518236['name']);}}),_0x21eccc['model']['document']['on']('change:data',()=>{const _0x591ed4=Array['from'](_0x21eccc['model']['document']['differ']['getChangedMarkers']())['filter'](_0x114e12=>'suggestion'===this['_splitMarkerName'](_0x114e12['name'])['group']);if(0x0===_0x591ed4['length'])return;_0x591ed4['sort']((_0x546a2e,_0x6c008b)=>{const _0xf4adbe=_0x546a2e['data']['oldRange'],_0x42fab8=_0x6c008b['data']['oldRange'];return null===_0xf4adbe&&null===_0x42fab8?0x0:null===_0xf4adbe&&null!==_0x42fab8?-0x1:null!==_0xf4adbe&&null===_0x42fab8?0x1:_0xf4adbe['start']['isBefore'](_0x42fab8['start'])?-0x1:0x1;});const _0x263bbc=new Set(),_0x506e71=new Set();for(const {name:_0x3e8e47,data:_0x47d581}of _0x591ed4){const {id:_0x4a005a}=this['_splitMarkerName'](_0x3e8e47);if(null===_0x47d581['oldRange']){const _0x529bfd=this['_handleNewSuggestionMarker'](_0x3e8e47);_0x506e71['add'](_0x529bfd);}else{const _0x3c2cb0=this['_suggestions']['get'](_0x4a005a);null!==_0x47d581['newRange']||_0x3c2cb0['isInContent']?(_0x263bbc['add'](_0x3c2cb0['head']),_0x506e71['add'](_0x3c2cb0)):this['_removeSuggestion'](_0x3c2cb0);}}_0x506e71['size']>0x0&&this['_refreshSuggestionsChain'](_0x506e71);for(const _0x1ca35f of _0x263bbc)this['fire']('suggestionChanged',_0x1ca35f);}),_0x21eccc['model']['on']('applyOperation',(_0x22b4c6,_0x1fdfa1)=>{const _0x7cf5d3=_0x1fdfa1[0x0];if(!this['_suggestions']['size'])return;if(!_0x7cf5d3['isDocumentOperation'])return;if(_0x7cf5d3['batch']['isUndo']||!_0x7cf5d3['batch']['isLocal'])return;let _0x2b3df9,_0x46a7f6;switch(_0x7cf5d3['type']){case'insert':_0x2b3df9=_0x21eccc['model']['createPositionAt'](_0x7cf5d3['position']),_0x46a7f6=_0x2b3df9['getShiftedBy'](_0x7cf5d3['howMany']);break;case'split':_0x2b3df9=_0x21eccc['model']['createPositionAt'](_0x7cf5d3['splitPosition']),_0x46a7f6=_0x21eccc['model']['createPositionAt'](_0x7cf5d3['moveTargetPosition']);break;case'move':_0x2b3df9=_0x21eccc['model']['createPositionAt'](_0x7cf5d3['targetPosition']),_0x46a7f6=_0x2b3df9['getShiftedBy'](_0x7cf5d3['howMany']);break;default:return;}const _0x34668e=_0x21eccc['model']['createRange'](_0x2b3df9,_0x46a7f6);_0x21eccc['model']['change'](()=>{for(const {suggestion:_0x1cbd7a,meta:_0x5f3517}of this['_findSuggestions'](_0x34668e)){if(_0x1cbd7a['isMultiRange'])continue;if('formatInline'==_0x1cbd7a['type'])continue;const _0x209125=this['_getAttributeKey'](_0x1cbd7a);if(_0x209125&&this['_isBlockAttribute'](_0x209125)&&'split'!=_0x7cf5d3['type'])continue;const _0xf7ce87=_0x1cbd7a['data']&&_0x1cbd7a['data']['multipleBlocks'];('formatBlock'!=_0x1cbd7a['type']||'split'==_0x7cf5d3['type']&&!_0xf7ce87)&&(_0x5f3517['containsRangeInObject']||'insertion'==_0x1cbd7a['type']&&_0x5f3517['isOwn']||_0x1cbd7a['getFirstRange']()['containsRange'](_0x34668e)&&this['_breakSuggestionMarker'](_0x1cbd7a,_0x2b3df9,_0x46a7f6));}});},{'priority':'lowest'}),_0x21eccc['model']['on']('deleteContent',(_0x52369f,_0x56b86a)=>{const _0xc40d1b=_0x56b86a[0x0],_0x5e0876=_0x56b86a[0x1];if(_0x5e0876&&_0x5e0876['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xc40d1b['isCollapsed'])return;const _0x3e16f4=_0x21eccc['model']['schema'],{start:_0x568234,end:_0x3e9718}=_0xc40d1b['getFirstRange'](),_0x78d285=_0x568234['nodeAfter']&&_0x3e16f4['isLimit'](_0x568234['nodeAfter'])?null:_0x3e16f4['getNearestSelectionRange'](_0x568234,'forward'),_0x44404a=_0x3e9718['nodeBefore']&&_0x3e16f4['isLimit'](_0x3e9718['nodeBefore'])?null:_0x3e16f4['getNearestSelectionRange'](_0x3e9718,'backward'),_0x20eedf=_0x21eccc['model']['createRange'](_0x78d285?_0x78d285['start']:_0x568234,_0x44404a?_0x44404a['end']:_0x3e9718);_0x21eccc['model']['change'](_0x4c4256=>{this['markDeletion'](_0x20eedf);const _0x29ac59=_0x21eccc['model']['schema']['getNearestSelectionRange'](_0x20eedf['start']);_0xc40d1b['is']('documentSelection')?_0x4c4256['setSelection'](_0x29ac59):_0xc40d1b['setTo'](_0x29ac59);}),_0x52369f['stop']();},{'priority':_0x16dc4b['normal']+0xa}),_0x21eccc['model']['on']('insertContent',(_0x681554,_0x4b1e86)=>{const _0x364543=_0x4b1e86[_0x4b1e86['length']-0x1];_0x364543&&_0x364543['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x21eccc['model']['change'](()=>{let _0x127a46=_0x21eccc['model']['insertContent'](_0x4b1e86[0x0],_0x4b1e86[0x1],_0x4b1e86[0x2],{'forceDefaultExecution':!0x0});if(!_0x127a46)return;_0x681554['return']=_0x127a46['clone']();const _0x398eda=_0x127a46['end']['nodeBefore'],_0x45c62f=_0x21eccc['model']['schema'];_0x398eda&&_0x45c62f['isBlock'](_0x398eda)&&!_0x45c62f['isObject'](_0x398eda)&&(_0x127a46=_0x21eccc['model']['createRange'](_0x127a46['start'],_0x21eccc['model']['createPositionAt'](_0x398eda,'end'))),this['markInsertion'](_0x127a46);}),_0x681554['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x36c834=new $(_0x21eccc,this['_suggestions']);_0x21eccc['commands']['add']('acceptSuggestion',_0x36c834),this['enableCommand']('acceptSuggestion');const _0x14b2ca=new B(_0x21eccc,this['_suggestions']);_0x21eccc['commands']['add']('discardSuggestion',_0x14b2ca),this['enableCommand']('discardSuggestion'),_0x21eccc['commands']['add']('acceptAllSuggestions',new x(_0x21eccc,_0x36c834,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x21eccc['commands']['add']('discardAllSuggestions',new x(_0x21eccc,_0x14b2ca,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x21eccc['commands']['add']('acceptSelectedSuggestions',new R(_0x21eccc,_0x36c834,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x21eccc['commands']['add']('discardSelectedSuggestions',new R(_0x21eccc,_0x14b2ca,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1c95fd=_0x21eccc['plugins']['get']('CommentsRepository');this['listenTo'](_0x1c95fd,'addComment',(_0x2674fe,{threadId:_0x5b947a})=>{const _0x13b640=this['_suggestions']['get'](_0x5b947a);_0x13b640&&_0x13b640['commentThread']&&0x1===_0x13b640['commentThread']['length']&&this['_updateSuggestionData'](_0x5b947a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1c95fd,'removeComment',(_0x488eb3,{threadId:_0x32c16b})=>{const _0x528fe3=this['_suggestions']['get'](_0x32c16b);_0x528fe3&&_0x528fe3['commentThread']&&!_0x528fe3['commentThread']['length']&&this['_updateSuggestionData'](_0x32c16b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x19113b){if(this['_adapter'])throw new _0x3c3be4('track-changes-adapter-already-set',this);this['_adapter']=_0x19113b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x49713f=!0x1,toJSON:_0x52cba6=!0x1}={}){const _0x43c0ed=[];for(const _0x6c9615 of this['_suggestions']['values']())_0x49713f&&!_0x6c9615['isInContent']||_0x43c0ed['push'](_0x6c9615);return _0x52cba6?_0x43c0ed['map'](_0x2a20ef=>_0x2a20ef['toJSON']()):_0x43c0ed;}['getSuggestion'](_0x89a334){const _0x5716a6=this['_suggestions']['get'](_0x89a334);if(!_0x5716a6)throw new _0x3c3be4('track-changes-suggestion-not-found',this);return _0x5716a6;}['hasSuggestion'](_0x341c53){return this['_suggestions']['has'](_0x341c53);}['addSuggestionData'](_0x2fa070){const {authorId:_0x14d2f3,id:_0x433792,attributes:_0xae28f6}=_0x2fa070,[_0x66c673,_0x19ce94]=_0x2fa070['type']['split'](':'),_0x15a9eb=this['_suggestions']['get'](_0x433792)||this['_createSuggestion'](_0x66c673,_0x19ce94,_0x433792,_0x14d2f3,_0xae28f6);if(this['_addThreadToSuggestion'](_0x15a9eb),this['_checkSuggestionCorrectness'](_0x15a9eb,_0x66c673,_0x19ce94||null,_0x14d2f3),_0x15a9eb['createdAt']=_0x2fa070['createdAt'],_0x15a9eb['_isDataLoaded']=!0x0,_0xae28f6&&_0xae28f6['@external']){const _0x3f6686=_0xae28f6['@external'],_0x402dd9=this['_getExternalAuthor'](_0x3f6686['authorName']);_0x15a9eb['authoredAt']=_0x3f6686['createdAt'],_0x15a9eb['author']=_0x402dd9,_0x15a9eb['isExternal']=!0x0;}else _0x15a9eb['authoredAt']=_0x2fa070['createdAt'];switch(_0x2fa070['data']&&(_0x15a9eb['data']=_0x2fa070['data']),_0x2fa070['attributes']&&(_0x15a9eb['attributes']=_0x2fa070['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x15a9eb['_saved']=!0x0),this['_suggestionState']['get'](_0x15a9eb)){case'notReady':this['_suggestionState']['set'](_0x15a9eb,'dataReady');break;case'markerReady':_0x15a9eb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x15a9eb])),this['_refreshSuggestionsChain'](new Set([_0x15a9eb])),this['_suggestionState']['set'](_0x15a9eb,'ready'),this['fire']('suggestionLoaded',_0x15a9eb)):this['_suggestionState']['set'](_0x15a9eb,'removed');}return _0x15a9eb;}['acceptSuggestion'](_0x2f5dbc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf4e063 of _0x2f5dbc['getAllAdjacentSuggestions']())_0xf4e063['accept']();});});}['discardSuggestion'](_0x10a225){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x34c75c of _0x10a225['getAllAdjacentSuggestions']())_0x34c75c['discard']();});});}['enableCommand'](_0x112922,_0x4134f0){const _0x5cfcb4=this['editor']['commands']['get'](_0x112922);if(!_0x5cfcb4)throw new _0x3c3be4('track-changes-command-not-found',this,{'commandName':_0x112922});if(this['_enabledCommands']['has'](_0x5cfcb4))throw new _0x3c3be4('track-changes-enable-command-twice',this,{'commandName':_0x112922});this['_enabledCommands']['add'](_0x5cfcb4),_0x4134f0&&_0x5cfcb4['on']('execute',(_0x3e65a7,_0x1002dd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1002dd['length']>0x0&&_0x1002dd[_0x1002dd['length']-0x1]&&_0x1002dd[_0x1002dd['length']-0x1]['forceDefaultExecution']?_0x1002dd['pop']():(_0x3e65a7['return']=_0x4134f0((..._0x280615)=>_0x5cfcb4['execute'](..._0x280615,{'forceDefaultExecution':!0x0}),..._0x1002dd),_0x3e65a7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x6d9a0a){let _0x277b64,_0x327fc1;const _0x518e30=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x277b64=_0x6d9a0a();}catch(_0x4cbc5f){_0x327fc1=_0x4cbc5f;}return _0x518e30||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x327fc1&&_0x3c3be4['rethrowUnexpectedError'](_0x327fc1,this),_0x277b64;}['markInsertion'](_0x5d3ddd,_0x27ebf7=null,_0xa9c5d={}){if(_0x5d3ddd['isCollapsed'])return null;const _0x5870ad=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x48f626,meta:_0x12cde4}of this['_findSuggestions'](_0x5d3ddd,'insertion'))if(_0x12cde4['isOwn']){if(!_0x12cde4['isNextTo']){if(_0x12cde4['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x48f626,_0xa9c5d))continue;return _0x48f626;}if(Lt(_0x48f626,_0xa9c5d))return _0x48f626;this['_breakSuggestionMarker'](_0x48f626,_0x5d3ddd['start'],_0x5d3ddd['end']);break;}if(_0x27ebf7==_0x48f626['subType']&&Lt(_0x48f626,_0xa9c5d)){const _0x5afca6=_0x48f626['getFirstRange']();return _0x5afca6['start']['isEqual'](_0x5d3ddd['end'])?this['_setSuggestionRange'](_0x48f626,this['_model']['createRange'](_0x5d3ddd['start'],_0x5afca6['end'])):this['_setSuggestionRange'](_0x48f626,this['_model']['createRange'](_0x5afca6['start'],_0x5d3ddd['end'])),_0x48f626;}}const _0x109c40=_0x501bc0(),_0x83ee86=_0x5870ad['id'],_0x36b2d4=_0x27ebf7?'insertion:'+_0x27ebf7:'insertion',_0x3dbf77=this['_setSuggestionData']({'id':_0x109c40,'type':_0x36b2d4,'createdAt':new Date(),'authorId':_0x83ee86,'attributes':_0xa9c5d});return this['_addSuggestionMarker'](_0x36b2d4,_0x109c40,_0x83ee86,_0x5d3ddd),_0x3dbf77;}['markMultiRangeInsertion'](_0x50bede,_0x2aa6ed='multi',_0x1319fb={}){const _0x3e47ef=this['editor']['plugins']['get']('Users')['me'],_0x3f8ff8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2aa6ed,'join');for(const _0x249736 of this['getSuggestions']())if(_0x249736['author']['id']==_0x3e47ef['id']&&'insertion'==_0x249736['type']&&_0x249736['subType']==_0x2aa6ed&&Lt(_0x249736,_0x1319fb)&&(_0x3f8ff8(_0x249736['getRanges'](),_0x50bede)||_0x3f8ff8(_0x50bede,_0x249736['getRanges']()))){for(const _0x1bf682 of _0x50bede)_0x249736['addRange'](_0x1bf682);return _0x249736;}for(const {suggestion:_0x359558,meta:_0x516354}of this['_findSuggestions'](_0x50bede,'insertion')){if(!_0x516354['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x516354['containsRangeInObject'])continue;if(!Lt(_0x359558,_0x1319fb))continue;let _0x3d52b9=!0x0;for(const _0x59325b of _0x359558['getRanges']())for(const _0x239c06 of _0x50bede)if(!_0x59325b['containsRange'](_0x239c06)){_0x3d52b9=!0x1;break;}if(_0x3d52b9)return _0x359558;}const _0x2e9e03=_0x501bc0(),_0x4ee8b5=_0x3e47ef['id'],_0x11fa07='insertion:'+_0x2aa6ed,_0x57b527=this['_setSuggestionData']({'id':_0x2e9e03,'type':_0x11fa07,'createdAt':new Date(),'authorId':_0x4ee8b5,'attributes':_0x1319fb});for(const _0x40a194 of _0x50bede)this['_addSuggestionMarker'](_0x11fa07,_0x2e9e03,_0x4ee8b5,_0x40a194,u['getMultiRangeId']());return _0x57b527;}['markInlineFormat'](_0x1b2917,_0x5111e7,_0x37ab4e=null,_0x455d1d={}){if(_0x37ab4e=_0x37ab4e||Vt(_0x5111e7),_0x1b2917['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x42e5bd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37ab4e,'accept');return this['forceDefaultExecution'](()=>_0x42e5bd([_0x1b2917],_0x5111e7,_0x455d1d)),null;}const _0x48294b=this['editor']['plugins']['get']('Users')['me'],_0x586c93=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xaf7c4c,meta:_0x2afe38}of this['_findSuggestions'](_0x1b2917,'insertion'))_0x2afe38['isOwn']&&!_0x2afe38['isInsideObject']&&_0x586c93['push'](..._0xaf7c4c['getRanges']());}const _0x51dd7e=function(_0x1f3aa8,_0x46afa5){const _0x34f081=[];for(const _0x480be4 of _0x46afa5){const _0x128e1c=_0x1f3aa8['getIntersection'](_0x480be4);_0x128e1c&&_0x34f081['push'](_0x128e1c);}return _0x34f081;}(_0x1b2917,_0x586c93),_0x2186fe=function(_0x1c830b,_0x4c89bd){const _0x2aef0c=[_0x1c830b];for(const _0x48ca4c of _0x4c89bd){let _0x4fc62a=0x0;for(;_0x4fc62a<_0x2aef0c['length'];){const _0xa92b5d=_0x2aef0c[_0x4fc62a]['getDifference'](_0x48ca4c);_0x2aef0c['splice'](_0x4fc62a,0x1,..._0xa92b5d),_0x4fc62a+=_0xa92b5d['length'];}}return _0x2aef0c;}(_0x1b2917,_0x586c93);_0x51dd7e['length']&&this['_model']['change'](()=>{for(const _0x3b35c9 of _0x51dd7e){const _0x83551=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37ab4e,'accept');this['forceDefaultExecution'](()=>_0x83551([_0x3b35c9],_0x5111e7,_0x455d1d));}});for(const _0x4ffd47 of _0x2186fe){let _0x79042d=null,_0x4e87cd=_0x4ffd47['start'],_0x4e79de=_0x4ffd47['end'];for(const {suggestion:_0x1a472b,meta:_0x349c31}of this['_findSuggestions'](_0x4ffd47,'formatInline')){if(!_0x349c31['isOwn'])continue;if(_0x1a472b['subType']!=_0x37ab4e)continue;if(!Lt(_0x1a472b,_0x455d1d))continue;const _0x26fdd7=_0x1a472b['getFirstRange']();if(_0x26fdd7['containsRange'](_0x4ffd47,!0x0))return null;_0x4e87cd=_0x4e87cd['isBefore'](_0x26fdd7['start'])?_0x4e87cd:_0x26fdd7['start'],_0x4e79de=_0x4e79de['isAfter'](_0x26fdd7['end'])?_0x4e79de:_0x26fdd7['end'],_0x79042d?_0x26fdd7['start']['isBefore'](_0x79042d['getFirstRange']()['start'])?(_0x79042d['removeMarkers'](),_0x79042d=_0x1a472b):_0x1a472b['removeMarkers']():_0x79042d=_0x1a472b;}const _0x3188bc=this['_model']['createRange'](_0x4e87cd,_0x4e79de);if(_0x79042d)this['_setSuggestionRange'](_0x79042d,_0x3188bc);else{const _0x391e82=_0x501bc0(),_0x51dd42=_0x48294b['id'];this['_setSuggestionData']({'id':_0x391e82,'type':'formatInline:'+_0x37ab4e,'data':_0x5111e7,'createdAt':new Date(),'authorId':_0x51dd42,'attributes':_0x455d1d}),this['_addSuggestionMarker']('formatInline:'+_0x37ab4e,_0x391e82,_0x51dd42,_0x3188bc);}}return null;}['markBlockFormat'](_0x105e9c,_0x307e6e,_0x4a31a8=[],_0x45b625=null,_0x410df5={}){_0x307e6e['formatGroupId']||(_0x307e6e['formatGroupId']=_0x307e6e['commandName']),_0x307e6e['multipleBlocks']=_0x105e9c['is']('range'),_0x45b625=_0x45b625||Vt(_0x307e6e);const _0x3c3556=_0x4a31a8['map'](_0x508f90=>Ft(_0x508f90,this['_model'])),_0x2df55d=_0x105e9c['is']('range')?_0x105e9c:Ft(_0x105e9c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3a8cca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45b625,'accept');return this['forceDefaultExecution'](()=>_0x3a8cca([_0x2df55d],_0x307e6e,_0x410df5)),null;}_0x3c3556['push'](_0x2df55d);let _0x37cab6=!0x0;for(const _0x2c82c6 of _0x3c3556)if(!this['_rangeIsInLocalUserInsertion'](_0x2c82c6)){_0x37cab6=!0x1;break;}if(_0x37cab6&&'always'!==this['_trackFormatChanges']){const _0x1e3c57=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45b625,'accept');return this['forceDefaultExecution'](()=>_0x1e3c57([_0x2df55d],_0x307e6e,_0x410df5)),null;}let _0x47c343=null,_0x10b13f=_0x2df55d['start'],_0x166192=_0x2df55d['end'];for(const {suggestion:_0x538ab4,meta:_0x5d6daf}of this['_findSuggestions'](_0x2df55d,'formatBlock')){if(!_0x5d6daf['isOwn'])continue;if(_0x5d6daf['isNextTo']||_0x5d6daf['containsRangeInObject']||_0x5d6daf['isInsideObject'])continue;if(_0x538ab4['data']['formatGroupId']!=_0x307e6e['formatGroupId'])continue;if(!Lt(_0x538ab4,_0x410df5))continue;const _0x936cb1=_0x538ab4['getFirstRange']();if(_0x538ab4['subType']==_0x45b625){if(_0x936cb1['containsRange'](_0x2df55d,!0x0))return null;_0x10b13f=_0x10b13f['isBefore'](_0x936cb1['start'])?_0x10b13f:_0x936cb1['start'],_0x166192=_0x166192['isAfter'](_0x936cb1['end'])?_0x166192:_0x936cb1['end'],_0x47c343?_0x936cb1['start']['isBefore'](_0x47c343['getFirstRange']()['start'])?(_0x47c343['removeMarkers'](),_0x47c343=_0x538ab4):_0x538ab4['removeMarkers']():_0x47c343=_0x538ab4;}else{const _0x6a119=_0x2df55d['getIntersection'](_0x936cb1);this['_cutOutSuggestionMarker'](_0x538ab4,_0x6a119);}}const _0x1c5b2c=this['editor']['plugins']['get']('Users')['me'],_0xbfd75d=_0x501bc0(),_0xce92ec=_0x1c5b2c['id'];if(_0x47c343)return this['_setSuggestionRange'](_0x47c343,this['_model']['createRange'](_0x10b13f,_0x166192)),_0x47c343;{const _0x9863a5=this['_setSuggestionData']({'id':_0xbfd75d,'type':'formatBlock:'+_0x45b625,'data':_0x307e6e,'createdAt':new Date(),'authorId':_0xce92ec,'attributes':_0x410df5});return this['_addSuggestionMarker']('formatBlock:'+_0x45b625,_0xbfd75d,_0xce92ec,this['_model']['createRange'](_0x10b13f,_0x166192)),_0x9863a5;}}['markMultiRangeBlockFormat'](_0x364f9c,_0xaf5584,_0x5e349e=[],_0x54421=null,_0x4a8157={}){_0xaf5584['formatGroupId']||(_0xaf5584['formatGroupId']=_0xaf5584['commandName']);const _0x3d37f8=_0x364f9c[0x0];_0xaf5584['multipleBlocks']=_0x3d37f8['is']('range'),_0x54421=_0x54421||Vt(_0xaf5584);const _0x2018af=_0x5e349e['map'](_0x41f4e4=>Ft(_0x41f4e4,this['_model'])),_0x48ebf1=_0x3d37f8['is']('range')?_0x364f9c:_0x364f9c['map'](_0x17dc3b=>Ft(_0x17dc3b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x6a5ef8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54421,'accept');return this['forceDefaultExecution'](()=>_0x6a5ef8(_0x48ebf1,_0xaf5584,_0x4a8157)),null;}_0x2018af['push'](..._0x48ebf1);let _0x2a4728=!0x0;for(const _0x5244d1 of _0x2018af)if(!this['_rangeIsInLocalUserInsertion'](_0x5244d1)){_0x2a4728=!0x1;break;}if(_0x2a4728&&'always'!==this['_trackFormatChanges']){const _0x20fda3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54421,'accept');return this['forceDefaultExecution'](()=>_0x20fda3(_0x48ebf1,_0xaf5584,_0x4a8157)),null;}const _0xe4e710=this['editor']['plugins']['get']('Users')['me'];for(const _0x3001d6 of this['getSuggestions']()){if(_0x3001d6['author']['id']!=_0xe4e710['id'])continue;if('formatBlock'!=_0x3001d6['type']||_0x3001d6['data']['formatGroupId']!=_0xaf5584['formatGroupId'])continue;if(!Lt(_0x3001d6,_0x4a8157))continue;const _0x58d466=_0x3001d6['subType']==_0x54421;for(let _0xa28cd6=0x0;_0xa28cd6<_0x48ebf1['length'];_0xa28cd6++){const _0x30257f=_0x48ebf1[_0xa28cd6];for(const _0x549edd of _0x3001d6['getMarkers']()){const _0x2bc574=_0x549edd['getRange']();if(_0x30257f['isEqual'](_0x2bc574)){_0x58d466?(_0x48ebf1['splice'](_0xa28cd6,0x1),_0xa28cd6--):_0x3001d6['removeMarker'](_0x549edd['name']);break;}}}}if(0x0==_0x48ebf1['length'])return null;const _0x15bb49=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54421,'join');for(const _0x24f4b5 of this['getSuggestions']())if(_0x24f4b5['author']['id']==_0xe4e710['id']&&'formatBlock'==_0x24f4b5['type']&&_0x24f4b5['data']['formatGroupId']==_0xaf5584['formatGroupId']&&_0x24f4b5['subType']==_0x54421&&Lt(_0x24f4b5,_0x4a8157)&&(_0x15bb49(_0x24f4b5['getRanges'](),_0x48ebf1)||_0x15bb49(_0x48ebf1,_0x24f4b5['getRanges']()))){for(const _0x1dec3d of _0x48ebf1)_0x24f4b5['addRange'](_0x1dec3d);return _0x24f4b5;}const _0x128b33=_0x501bc0(),_0x22949c=_0xe4e710['id'],_0x7f9fd8='formatBlock:'+_0x54421,_0x354d3d=this['_setSuggestionData']({'id':_0x128b33,'type':_0x7f9fd8,'data':_0xaf5584,'createdAt':new Date(),'authorId':_0x22949c,'attributes':_0x4a8157});for(const _0x6478a6 of _0x48ebf1)this['_addSuggestionMarker'](_0x7f9fd8,_0x128b33,_0x22949c,_0x6478a6,u['getMultiRangeId']());return _0x354d3d;}['markDeletion'](_0x5a3cfd,_0x13df55=null,_0x411205={}){if(_0x5a3cfd['isCollapsed'])return null;const _0x1d2ed4=this['editor']['plugins']['get']('Users')['me'],_0x4e615e=new _0x2242e5(_0x5a3cfd['start'],_0x5a3cfd['end']);for(const {suggestion:_0x1985e4,meta:_0x1369ac}of this['_findSuggestions'](_0x4e615e,'insertion'))if(_0x1369ac['isOwn']&&!_0x1369ac['isNextTo']){if(_0x1985e4['isMultiRange']){const _0x57223e=_0x1985e4['getRanges']()['filter'](_0x1264ac=>'$graveyard'!=_0x1264ac['root']['rootName']);_0x57223e['every'](_0x48b6d4=>_0x4e615e['containsRange'](_0x48b6d4,!0x0))&&_0x1985e4['discard']();if(_0x57223e['some'](_0x5cbeb2=>_0x5cbeb2['containsRange'](_0x4e615e,!0x0))){const _0x5329d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x13df55,'accept');return this['forceDefaultExecution'](()=>_0x5329d6([_0x4e615e],null,_0x411205)),null;}}else{const _0x114409=_0x4e615e['getIntersection'](_0x1985e4['getFirstRange']());null!==_0x114409&&_0x1985e4['_onDiscard']([_0x114409],null,_0x411205);}}if(_0x4e615e['detach'](),_0x4e615e['isCollapsed']||'$graveyard'==_0x4e615e['root']['rootName'])return null;let _0x3df7eb=null,_0x5e2481=_0x4e615e['start'],_0x408dda=_0x4e615e['end'];const _0x1976a8=this['_findSuggestions'](_0x4e615e,'deletion');for(const {suggestion:_0x483e4b,meta:_0x495875}of _0x1976a8){const _0x3d3393=this['_model']['createRange'](_0x5e2481,_0x408dda);if(_0x495875['isOwn']&&(this['_mergeNestedSuggestions']||!_0x495875['containsRangeInObject']&&!_0x495875['isInsideObject'])){if(_0x483e4b['isMultiRange']){if(!Lt(_0x483e4b,_0x411205))continue;let _0x323904=!0x0;for(const _0x4b466f of _0x483e4b['getRanges']()){if(_0x4b466f['containsRange'](_0x3d3393,!0x0))return _0x483e4b;_0x3d3393['containsRange'](_0x4b466f)||(_0x323904=!0x1);}_0x323904&&_0x483e4b['discard']();}else{const _0x2564c5=_0x483e4b['getFirstRange']();if(_0x2564c5['containsRange'](_0x3d3393,!0x0))return _0x483e4b;if(!Lt(_0x483e4b,_0x411205)){_0x3d3393['containsRange'](_0x2564c5)?_0x483e4b['removeMarkers']():_0x2564c5['containsPosition'](_0x5e2481)?_0x5e2481=_0x2564c5['end']:_0x2564c5['containsPosition'](_0x408dda)&&(_0x408dda=_0x2564c5['start']);continue;}_0x5e2481=_0x5e2481['isBefore'](_0x2564c5['start'])?_0x5e2481:_0x2564c5['start'],_0x408dda=_0x408dda['isAfter'](_0x2564c5['end'])?_0x408dda:_0x2564c5['end'],_0x411205=Object['assign']({},_0x483e4b['attributes']),_0x3df7eb?_0x2564c5['start']['isBefore'](_0x3df7eb['getFirstRange']()['start'])?(_0x3df7eb['removeMarkers'](),_0x3df7eb=_0x483e4b):_0x483e4b['removeMarkers']():_0x3df7eb=_0x483e4b;}}}if(_0x3df7eb)return this['_setSuggestionRange'](_0x3df7eb,this['_model']['createRange'](_0x5e2481,_0x408dda)),_0x3df7eb;{const _0x4072f5=_0x501bc0(),_0x35f9be=this['_model']['createRange'](_0x5e2481,_0x408dda),_0x1f2551=_0x1d2ed4['id'],_0x396463=_0x13df55?'deletion:'+_0x13df55:'deletion',_0x373150=this['_setSuggestionData']({'id':_0x4072f5,'type':_0x396463,'createdAt':new Date(),'authorId':_0x1f2551,'attributes':_0x411205});return this['_addSuggestionMarker'](_0x396463,_0x4072f5,_0x1f2551,_0x35f9be),_0x373150;}}['markMultiRangeDeletion'](_0x2828e3,_0x489e23='multi',_0x2bc455={}){const _0x37a158=this['editor']['plugins']['get']('Users')['me'],_0x35415f=_0x2828e3['map'](_0x142447=>new _0x2242e5(_0x142447['start'],_0x142447['end'])),_0x6064b7=new Set();for(const {suggestion:_0x38201b,meta:_0xa522da}of this['_findSuggestions'](_0x35415f,'insertion'))_0xa522da['isOwn']&&!_0xa522da['isNextTo']&&_0x6064b7['add'](_0x38201b);for(const _0x2bc50f of _0x6064b7)if(_0x2bc50f['isMultiRange']){const _0x55eeb0=_0x2bc50f['getRanges']();(!_0x2bc50f['attributes']||!_0x2bc50f['attributes']['skipNestingCheck'])&&(_0x55eeb0['every'](_0x157346=>_0x35415f['some'](_0x18405c=>_0x18405c['containsRange'](_0x157346,!0x0)))&&_0x2bc50f['discard']());if(_0x35415f['every'](_0x51ed55=>_0x55eeb0['some'](_0xa20fc2=>_0xa20fc2['containsRange'](_0x51ed55,!0x0)))){const _0x486466=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x489e23,'accept');return this['forceDefaultExecution'](()=>_0x486466(_0x2828e3,null,_0x2bc455)),null;}}else{const _0x33a498=_0x2bc50f['getFirstRange']();_0x35415f['some'](_0x5d205c=>_0x5d205c['containsRange'](_0x33a498,!0x0))&&_0x2bc50f['discard']();if(_0x35415f['every'](_0x390bed=>_0x33a498['containsRange'](_0x390bed,!0x0))){const _0x3647da=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x489e23,'accept');return this['forceDefaultExecution'](()=>_0x3647da(_0x35415f,null,_0x2bc455)),null;}}const _0x1a5050=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x489e23,'join');let _0x5c7694=null;for(const _0xe0d34f of this['getSuggestions']())if(_0xe0d34f['author']['id']==_0x37a158['id']&&_0xe0d34f['isInContent']&&'deletion'==_0xe0d34f['type']&&_0xe0d34f['subType']==_0x489e23&&Lt(_0xe0d34f,_0x2bc455)&&(_0x1a5050(_0xe0d34f['getRanges'](),_0x35415f)||_0x1a5050(_0x35415f,_0xe0d34f['getRanges']()))){if(_0x5c7694){if(_0xe0d34f['commentThread']&&_0xe0d34f['commentThread']['length'])continue;for(const _0x4c8a0e of _0xe0d34f['getRanges']())_0x5c7694['isIntersectingWithRange'](_0x4c8a0e)||_0x5c7694['addRange'](_0x4c8a0e);_0xe0d34f['removeMarkers']();}else{_0x5c7694=_0xe0d34f;for(const _0x4d9e77 of _0x35415f)_0xe0d34f['isIntersectingWithRange'](_0x4d9e77)||_0xe0d34f['addRange'](_0x4d9e77);}}if(_0x5c7694)return _0x5c7694;_0x6064b7['clear']();for(const {suggestion:_0x2c7dbb,meta:_0xa4f8ef}of this['_findSuggestions'](_0x35415f,'deletion'))_0xa4f8ef['isOwn']&&(this['_mergeNestedSuggestions']||!_0xa4f8ef['containsRangeInObject']&&!_0xa4f8ef['isInsideObject'])&&Lt(_0x2c7dbb,_0x2bc455)&&_0x6064b7['add'](_0x2c7dbb);for(const _0xac4cc2 of _0x6064b7){const _0x1ad117=_0xac4cc2['getRanges']();if(!_0x2bc455||!_0x2bc455['skipNestingCheck']){if(_0x35415f['every'](_0x50498e=>_0x1ad117['some'](_0x399558=>_0x399558['containsRange'](_0x50498e,!0x0))))return _0xac4cc2;}(!_0xac4cc2['attributes']||!_0xac4cc2['attributes']['skipNestingCheck'])&&(_0x1ad117['every'](_0x1b98d1=>_0x35415f['some'](_0x121f1c=>_0x121f1c['containsRange'](_0x1b98d1,!0x0)))&&_0xac4cc2['discard']());}const _0x5e24b3=_0x501bc0(),_0x252f5c=_0x37a158['id'],_0x258c64='deletion:'+_0x489e23,_0x119dc9=this['_setSuggestionData']({'id':_0x5e24b3,'type':_0x258c64,'createdAt':new Date(),'authorId':_0x252f5c,'attributes':_0x2bc455});for(const _0x4fcf67 of _0x35415f)_0x4fcf67['detach'](),_0x4fcf67['isCollapsed']||'$graveyard'==_0x4fcf67['root']['rootName']||this['_addSuggestionMarker'](_0x258c64,_0x5e24b3,_0x252f5c,_0x4fcf67,u['getMultiRangeId']());return _0x119dc9;}['markAttributeChange'](_0x354593,_0x2dba7c,_0xa8fc04,_0x1d0365,_0x553c0d){if(_0x354593['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x464889=this['editor']['plugins']['get']('Users')['me']['id'],_0x3e2515=Array['from'](this['_suggestions']['values']())['filter'](_0x25b44b=>'attribute'==_0x25b44b['type']&&_0x25b44b['data']['key']==_0x2dba7c&&_0x25b44b['isIntersectingWithRange'](_0x354593));if('default'===this['_trackFormatChanges']){const _0x2953cd=this['_findSuggestions'](_0x354593,'insertion')['filter'](({meta:_0x2e9717})=>_0x2e9717['isOwn']&&!_0x2e9717['isInsideObject']&&!_0x2e9717['isNextTo'])['map'](({suggestion:_0x4e80c3})=>_0x4e80c3);_0x3e2515['unshift'](..._0x2953cd);}const _0x3a60b1=new Map([[_0x354593,_0xa8fc04]]);for(const _0x5f5542 of _0x3e2515){const _0x2434c4='attribute'==_0x5f5542['type']?_0x5f5542['data']['oldValue']:void 0x0,_0xb8d6ee=_0x5f5542['getFirstRange'](),_0x1d7276=Array['from'](_0x3a60b1['keys']())['find'](_0x39271c=>_0x39271c['isIntersecting'](_0xb8d6ee));if(!_0x1d7276)continue;const _0x12d5ce=_0x1d7276['getDifference'](_0xb8d6ee);this['_isBlockAttribute'](_0x2dba7c)&&'insertion'==_0x5f5542['type']&&0x0!=_0x12d5ce['length']||(_0x3a60b1['delete'](_0x1d7276),_0x12d5ce['forEach'](_0x1d8a2a=>{_0x3a60b1['set'](_0x1d8a2a,_0xa8fc04);}),'insertion'!=_0x5f5542['type']&&_0x2434c4!=_0x1d0365&&_0x3a60b1['set'](_0x1d7276['getIntersection'](_0xb8d6ee),_0x2434c4));}const _0x3d9577=[];for(const [_0x45dca,_0x449aca]of _0x3a60b1){const _0x2092c8=_0x501bc0(),_0x1bbf8c={'key':_0x2dba7c,'oldValue':_0x449aca,'newValue':_0x1d0365};_0x2dba7c['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':_0x2dba7c});const _0x515ad2=('attribute:'+(_0x2dba7c+'|'+Vt({'newValue':_0x1d0365})))['substring'](0x0,0x3c),_0x307558=this['_setSuggestionData']({'id':_0x2092c8,'type':_0x515ad2,'data':_0x1bbf8c,'createdAt':new Date(),'authorId':_0x464889,'attributes':_0x553c0d});_0x3d9577['push'](_0x307558),this['_addSuggestionMarker'](_0x515ad2,_0x2092c8,_0x464889,_0x45dca);}return _0x3d9577;}['enableDefaultAttributesIntegration'](_0xf2e9a6){this['enableCommand'](_0xf2e9a6,(_0x5aff04,..._0x371dac)=>{this['_recordAttributeChanges'](()=>{_0x5aff04(..._0x371dac);});});}['registerBlockAttribute'](_0x232d66){this['_blockAttributeKeys']['add'](_0x232d66);}['registerInlineAttribute'](_0x575a00){this['_inlineAttributeKeys']['add'](_0x575a00);}['_getAttributeKey'](_0x48c2d8){return'attribute'==_0x48c2d8['type']?_0x48c2d8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x20339b,_0x390067){const _0x32b3b9=_0x20339b['getFirstMarker']();this['_model']['change'](_0xe5c359=>{_0xe5c359['updateMarker'](_0x32b3b9,{'range':_0x390067});});}['_addThreadToSuggestion'](_0x4d3faa){const _0x4b7fe4=_0x4d3faa['id'],_0x4babdb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4b7fe4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4babdb,'threadId':_0x4b7fe4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xe5d41a=this['_commentsRepository']['getCommentThread'](_0x4b7fe4);_0xe5d41a['unbind']('isRemovable'),_0xe5d41a['isRemovable']=!0x1,_0x4d3faa['commentThread']=_0xe5d41a;}['_checkSuggestionCorrectness'](_0x48a841,_0x38abef,_0x542bb9,_0x58b810){if(_0x48a841['type']!=_0x38abef||_0x48a841['subType']!=_0x542bb9||_0x48a841['creator']['id']!=_0x58b810)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3c3be4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5ea5af,_0x9ccc6f){const _0x4b9fce=_0x5ea5af['getFirstRange']();if(_0x9ccc6f['isEqual'](_0x4b9fce))_0x5ea5af['removeMarkers']();else{if(_0x4b9fce['containsRange'](_0x9ccc6f)){const _0x1f48a0=this['_model']['createPositionAt'](_0x9ccc6f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5ea5af,this['_model']['createRange'](_0x4b9fce['start'],_0x1f48a0));const _0x168cee=_0x501bc0(),_0x5d3f77=_0x5ea5af['creator']['id'],_0x3915fe=_0x5ea5af['type']+':'+_0x5ea5af['subType'];this['_setSuggestionData']({'id':_0x168cee,'type':_0x3915fe,'createdAt':new Date(),'authorId':_0x5d3f77,'data':_0x5ea5af['data'],'attributes':_0x5ea5af['attributes']});const _0x1157a5=this['_model']['createPositionAt'](_0x9ccc6f['end']['parent'],'after'),_0x551337=this['_model']['createRange'](_0x1157a5,_0x4b9fce['end']);this['_addSuggestionMarker'](_0x3915fe,_0x168cee,_0x5d3f77,_0x551337);}else{if(_0x4b9fce['containsPosition'](_0x9ccc6f['start'])){const _0x2d7970=this['_model']['createPositionAt'](_0x9ccc6f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5ea5af,this['_model']['createRange'](_0x4b9fce['start'],_0x2d7970));}else{const _0x180834=this['_model']['createPositionAt'](_0x9ccc6f['end']['parent'],'after');this['_setSuggestionRange'](_0x5ea5af,this['_model']['createRange'](_0x180834,_0x4b9fce['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2d068a){for(const {suggestion:_0xfe8fb6,meta:_0x4d103d}of this['_findSuggestions'](_0x2d068a,'insertion')){if(!_0x4d103d['isOwn'])continue;const _0x4c14d0=_0xfe8fb6['getRanges']();for(const _0x24e123 of _0x4c14d0)if(!_0x2d068a['getDifference'](_0x24e123)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x234933){const _0x1db576=this['editor']['plugins']['get']('Users')['getUser'](_0x234933);if(!_0x1db576)throw new _0x3c3be4('track-changes-user-not-found',this);return _0x1db576;}['_getExternalAuthor'](_0x2ac077){const _0x38e421=this['editor']['plugins']['get']('Users'),_0x38edbf=_0x134b70('external:'+_0x2ac077),_0x5681a7=_0x38e421['getUser'](_0x38edbf);return _0x5681a7||_0x38e421['addUser']({'id':_0x38edbf,'name':_0x2ac077});}['_createSuggestion'](_0x5eef77,_0x518644,_0x327103,_0x2a83e9,_0x21c6ec){const _0x55b346=this['_getAuthorFromId'](_0x2a83e9),_0x240f5e=this['_suggestionFactory']['buildSuggestion'](_0x5eef77,_0x518644,_0x327103,_0x55b346,_0x21c6ec,_0x79a210=>{this['_updateSuggestionData'](_0x327103,{'attributes':_0x79a210});const _0x39080e=this['getSuggestion'](_0x327103);this['_joinWithAdjacentSuggestions'](new Set([_0x39080e])),this['_refreshSuggestionsChain'](new Set([_0x39080e]));});return this['listenTo'](_0x240f5e,'accept',()=>{this['_updateSuggestionData'](_0x327103,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x240f5e,'discard',()=>{this['_updateSuggestionData'](_0x327103,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x327103,_0x240f5e),this['_suggestionState']['set'](_0x240f5e,'notReady'),_0x240f5e;}['_splitMarkerName'](_0x25a3b4){const _0x241809=_0x25a3b4['split'](':');return{'group':_0x241809[0x0],'type':_0x241809[0x1],'subType':_0x241809['length']>=0x5?_0x241809[0x2]:null,'id':_0x241809['length']<0x5?_0x241809[0x2]:_0x241809[0x3],'authorId':_0x241809['length']<0x5?_0x241809[0x3]:_0x241809[0x4],'markerCount':0x6==_0x241809['length']?_0x241809[0x5]:null};}['_breakSuggestionMarker'](_0x1c9d65,_0xf5980f,_0x31ef41){const _0xd189cc=_0x1c9d65['getFirstRange'](),_0x11df6a=_0xd189cc['start'],_0x117ad8=_0xd189cc['end'];this['_setSuggestionRange'](_0x1c9d65,this['_model']['createRange'](_0x11df6a,_0xf5980f));const _0x1ed6cc=_0x501bc0(),_0x30c54f=_0x1c9d65['creator']['id'],_0x1660a0=_0x1c9d65['type']+(_0x1c9d65['subType']?':'+_0x1c9d65['subType']:'');this['_setSuggestionData']({'id':_0x1ed6cc,'type':_0x1660a0,'createdAt':new Date(),'authorId':_0x30c54f,'originalSuggestionId':_0x1c9d65['id'],'attributes':_0x1c9d65['attributes'],'data':_0x1c9d65['data']});const _0x2be7e3=this['_getAttributeKey'](_0x1c9d65);('formatBlock'==_0x1c9d65['type']||_0x2be7e3&&this['_isBlockAttribute'](_0x2be7e3))&&(_0x31ef41=this['_model']['createPositionBefore'](_0x31ef41['parent'])),this['_addSuggestionMarker'](_0x1660a0,_0x1ed6cc,_0x30c54f,this['_model']['createRange'](_0x31ef41,_0x117ad8));}['_findSuggestions'](_0x3cb9f9,_0x2db17e=null){const _0x52c2fc=[],_0x15e4aa=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3cb9f9)||(_0x3cb9f9=[_0x3cb9f9]);for(const _0x40fcef of this['getSuggestions']()){if(!_0x40fcef['isInContent'])continue;if(_0x2db17e&&_0x40fcef['type']!=_0x2db17e)continue;let _0x4f41f1=!0x1;for(const _0xbac14 of _0x40fcef['getRanges']()){for(const _0x389d32 of _0x3cb9f9){const _0x260b8b=_0x389d32['start']['isEqual'](_0xbac14['end'])||_0x389d32['end']['isEqual'](_0xbac14['start']);if(_0x260b8b||_0x389d32['getIntersection'](_0xbac14)){const _0x188469=_0x389d32['containsRange'](_0xbac14)&&Rt(this['_model']['schema'],_0xbac14['start'],_0x389d32),_0x1a03c1=_0xbac14['containsRange'](_0x389d32)&&Rt(this['_model']['schema'],_0x389d32['start'],_0xbac14);_0x52c2fc['push']({'suggestion':_0x40fcef,'meta':{'isOwn':_0x15e4aa==_0x40fcef['author'],'isNextTo':_0x260b8b,'isInsideObject':_0x188469,'containsRangeInObject':_0x1a03c1}}),_0x4f41f1=!0x0;break;}}if(_0x4f41f1)break;}}return _0x52c2fc;}['_addSuggestionMarker'](_0x175a5c,_0x13188f,_0x23804e,_0x3b5dae,_0x38b7e8){this['_model']['change'](_0x12bd60=>{let _0x378818='suggestion:'+_0x175a5c+':'+_0x13188f+':'+_0x23804e;_0x38b7e8&&(_0x378818=_0x378818+':'+_0x38b7e8),_0x12bd60['addMarker'](_0x378818,{'range':_0x3b5dae,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4eb9e4){const _0x3177d8=_0x4eb9e4['previous'],_0xd284f7=_0x4eb9e4['next'];_0x4eb9e4['previous']=null,_0x4eb9e4['next']=null,null!=_0x3177d8&&_0x3177d8['next']==_0x4eb9e4&&(_0x3177d8['next']=_0xd284f7),null!=_0xd284f7&&_0xd284f7['previous']==_0x4eb9e4&&(_0xd284f7['previous']=_0x3177d8),'ready'==this['_suggestionState']['get'](_0x4eb9e4)&&(this['_suggestionState']['set'](_0x4eb9e4,'removed'),this['fire']('suggestionUnloaded',_0x4eb9e4,_0x3177d8,_0xd284f7));}['_setSuggestionData'](_0x1a19eb){const _0x2969f6=_0x1a19eb['id'],_0x52b7c8=this['addSuggestionData'](_0x1a19eb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x303bec=this['editor']['plugins']['get']('PendingActions'),_0x46637e=_0x52b7c8['hasComments'],_0x3b3f71=_0x52b7c8['subType']?_0x52b7c8['type']+':'+_0x52b7c8['subType']:_0x52b7c8['type'],_0x3a9b6b=this['editor']['locale'],_0x56a278=_0x303bec['add'](o(_0x3a9b6b,'PENDING_ACTION_SUGGESTION')),_0x13659e={'id':_0x2969f6,'type':_0x3b3f71,'hasComments':_0x46637e,'data':_0x1a19eb['data']||null,'originalSuggestionId':_0x1a19eb['originalSuggestionId']||null,'attributes':_0x52b7c8['attributes']};this['_adapter']['addSuggestion'](_0x13659e)['then'](_0x3ed9a4=>{_0x52b7c8['_saved']=!0x0,_0x303bec['remove'](_0x56a278),_0x3ed9a4&&_0x3ed9a4['createdAt']&&(this['_suggestions']['get'](_0x2969f6)['createdAt']=_0x3ed9a4['createdAt']);})['catch'](_0x48988b=>{throw _0x36e342('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x52b7c8['discard']();}),_0x52b7c8['stopListening'](),this['_suggestions']['delete'](_0x52b7c8['id']),this['_suggestionState']['delete'](_0x52b7c8),_0x48988b;});}return _0x52b7c8;}['_isBlockAttribute'](_0x20dbc7){return this['_blockAttributeKeys']['has'](_0x20dbc7);}['_updateSuggestionData'](_0x2eaa8d,_0x120373){const _0x176ed5=this['editor']['plugins']['get']('PendingActions'),_0x2e6490=this['getSuggestion'](_0x2eaa8d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2e6490['_saved']){const _0x2fd8f9=_0x176ed5['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2eaa8d,_0x120373)['then'](()=>{_0x176ed5['remove'](_0x2fd8f9);});}else _0x2e6490['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2eaa8d,_0x120373);});}}['_getSuggestionData'](_0x47a8dc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3c3be4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x47a8dc);}['_handleNewSuggestionMarker'](_0x4f97d6){const {id:_0x2f25ad,type:_0x21b26f,subType:_0xb690f7,authorId:_0x380615}=this['_splitMarkerName'](_0x4f97d6),_0x16ff57=this['_suggestions']['get'](_0x2f25ad)||this['_createSuggestion'](_0x21b26f,_0xb690f7,_0x2f25ad,_0x380615,{});switch(this['_checkSuggestionCorrectness'](_0x16ff57,_0x21b26f,_0xb690f7,_0x380615),this['_suggestionState']['get'](_0x16ff57)){case'notReady':this['_getSuggestionData'](_0x2f25ad)['then'](_0x2422ef=>{let _0x372fbf=Promise['resolve']();_0x2422ef['hasComments']&&(_0x372fbf=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2f25ad})),_0x372fbf['then'](()=>{this['addSuggestionData'](_0x2422ef)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x16ff57,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2f25ad,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x16ff57,'ready'),this['fire']('suggestionLoaded',_0x16ff57);break;case'ready':this['fire']('suggestionChanged',_0x16ff57);}return _0x16ff57['addMarkerName'](_0x4f97d6),_0x16ff57;}['_refreshSuggestionsChain'](_0x209336){const _0xa4f9a8=Array['from'](_0x209336),_0x422db5=_0xa4f9a8['filter'](_0x1f6d7f=>'attribute'==_0x1f6d7f['type']);this['_refreshAttributeSuggestionsChain'](_0x422db5);const _0x32328f=_0xa4f9a8['filter'](_0x25fecf=>!_0x25fecf['isMultiRange']&&'attribute'!=_0x25fecf['type']),_0x25497c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c26f1=>!_0x2c26f1['isMultiRange']&&'attribute'!=_0x2c26f1['type']),_0x5bea75=_0x25497c['filter'](_0x26ed68=>!_0x209336['has'](_0x26ed68)),_0x34a571=new Map(_0x25497c['map'](_0x555eec=>[_0x555eec,this['_suggestionFactory']['getSuggestionCallback'](_0x555eec['type'],_0x555eec['subType'],'chain')])),_0xaa2838=new Map(_0x25497c['map'](_0x3351fb=>[_0x3351fb,_0x3351fb['getFirstRange']()])),_0x11585e=new Set(),_0x39978d=new Set();for(let _0x1d0598=0x0;_0x1d0598<_0x32328f['length'];_0x1d0598++)_0x156908(_0x32328f[_0x1d0598],_0x32328f,_0x1d0598+0x1);for(let _0xb93a7=0x0;_0xb93a7<_0x32328f['length'];_0xb93a7++)_0x156908(_0x32328f[_0xb93a7],_0x5bea75,0x0);const _0x1c2645=new Set();for(let _0x4a63fe=0x0;_0x4a63fe<_0x32328f['length'];_0x4a63fe++){const _0x3f73b0=_0x32328f[_0x4a63fe];!_0x39978d['has'](_0x3f73b0)&&_0x3f73b0['previous']&&(_0x1c2645['add'](_0x3f73b0['previous']),_0x3f73b0['previous']['next']===_0x3f73b0&&(_0x3f73b0['previous']['next']=null),_0x3f73b0['previous']=null),!_0x11585e['has'](_0x3f73b0)&&_0x3f73b0['next']&&(_0x1c2645['add'](_0x3f73b0['next']),_0x3f73b0['next']['previous']===_0x3f73b0&&(_0x3f73b0['next']['previous']=null),_0x3f73b0['next']=null);}function _0x156908(_0x23471f,_0x211083,_0x236c23){for(let _0x246e64=_0x236c23;_0x246e64<_0x211083['length'];_0x246e64++){const _0x5bb06c=_0x410bce(_0x23471f,_0x211083[_0x246e64]);_0x5bb06c&&(_0x5bb06c[0x0]['next']=_0x5bb06c[0x1],_0x5bb06c[0x1]['previous']=_0x5bb06c[0x0],_0x11585e['add'](_0x5bb06c[0x0]),_0x39978d['add'](_0x5bb06c[0x1]));}}function _0x410bce(_0x5cbf87,_0x2f163e){if(_0x5cbf87['author']['id']!==_0x2f163e['author']['id'])return null;const _0x31a171=_0x34a571['get'](_0x5cbf87)(_0x5cbf87,_0x2f163e,_0xaa2838['get'](_0x5cbf87),_0xaa2838['get'](_0x2f163e));if(!_0x31a171)return null;return _0x34a571['get'](_0x2f163e)(_0x5cbf87,_0x2f163e,_0xaa2838['get'](_0x5cbf87),_0xaa2838['get'](_0x2f163e))?_0x31a171[0x1]['commentThread']&&_0x31a171[0x1]['commentThread']['length']?null:_0x31a171:null;}_0x1c2645['size']&&this['_refreshSuggestionsChain'](_0x1c2645);}['_refreshAttributeSuggestionsChain'](_0x4b6726){if(0x0==_0x4b6726['length'])return;const _0x58c9dc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x470421=>'attribute'==_0x470421['type']&&_0x470421['_isDataLoaded']),_0x1ffb0f=[],_0x5ed805=new Map();for(const _0x3c90f2 of _0x58c9dc){const _0x107933=_0x134b70(_0x3c90f2['attributes']);_0x5ed805['has'](_0x107933)||(_0x5ed805['set'](_0x107933,_0x1ffb0f['length']),_0x1ffb0f['push']([]));const _0x551bf9=_0x5ed805['get'](_0x107933);_0x1ffb0f[_0x551bf9]['push'](_0x3c90f2);}!(function(){_0x1ffb0f['sort']((_0x39a0ee,_0x6464f7)=>{const _0x3be6bb=_0x39a0ee[0x0]['createdAt'],_0x13388d=_0x6464f7[0x0]['createdAt'];return _0x3be6bb==_0x13388d?_0x39a0ee[0x0]['attributes']['groupId']<_0x6464f7[0x0]['attributes']['groupId']?-0x1:0x1:_0x3be6bb<_0x13388d?-0x1:0x1;});for(const _0x582f9f of _0x1ffb0f)_0x582f9f['sort']((_0xba6604,_0x50a0d7)=>_0xba6604['id']<_0x50a0d7['id']?-0x1:0x1);}());for(let _0x56c0b5=0x0;_0x56c0b5<_0x1ffb0f['length'];_0x56c0b5++){if(0x0==_0x1ffb0f[_0x56c0b5]['length'])continue;const _0x5ddf6e=[];for(let _0x1805c9=_0x56c0b5+0x1;_0x1805c9<_0x1ffb0f['length'];_0x1805c9++)0x0!=_0x1ffb0f[_0x1805c9]['length']&&_0x1520cf(_0x1ffb0f[_0x56c0b5],_0x1ffb0f[_0x1805c9])&&_0x5ddf6e['push'](_0x1805c9);for(const _0x373be7 of _0x5ddf6e)_0x1ffb0f[_0x56c0b5]=_0x1ffb0f[_0x56c0b5]['concat'](_0x1ffb0f[_0x373be7]),_0x1ffb0f[_0x373be7]=[];}for(const _0x1c7a5d of _0x1ffb0f)for(let _0x177e17=0x0;_0x177e17<_0x1c7a5d['length'];_0x177e17++)_0x1c7a5d[_0x177e17]['next']=_0x1c7a5d[_0x177e17+0x1]||null;for(const _0x56aab8 of _0x1ffb0f)for(let _0x36fcfd=0x0;_0x36fcfd<_0x56aab8['length'];_0x36fcfd++)_0x56aab8[_0x36fcfd]['previous']=_0x56aab8[_0x36fcfd-0x1]||null;function _0x1520cf(_0x484d6c,_0x12463f){if(_0x484d6c[0x0]['attributes']['groupId']!==_0x12463f[0x0]['attributes']['groupId']&&_0x484d6c[0x0]['author']!==_0x12463f[0x0]['author'])return!0x1;if(!function(_0x3148f2,_0x59c554){if(!_0x3148f2['hasComments']&&!_0x59c554['hasComments'])return!0x0;if(_0x3148f2['hasComments']&&_0x59c554['hasComments'])return!0x1;if(_0x3148f2['hasComments']&&_0x59c554['createdAt']<_0x3148f2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x59c554['hasComments']&&_0x3148f2['createdAt']<_0x59c554['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x484d6c[0x0],_0x12463f[0x0]))return!0x1;const _0x4c3eef=Bt(_0x484d6c[0x0]['attributes'],'groupId'),_0x246e4f=Bt(_0x12463f[0x0]['attributes'],'groupId');if(!_0x3298cf(_0x4c3eef,_0x246e4f))return!0x1;return!!_0x484d6c['every'](_0x3cfc23=>_0x12463f['some'](_0xde72c2=>_0x3cfc23['getFirstRange']()['isEqual'](_0xde72c2['getFirstRange']())))&&_0x12463f['every'](_0x50e873=>_0x484d6c['some'](_0x579825=>_0x50e873['getFirstRange']()['isEqual'](_0x579825['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1083d4){const _0x57bbe3=Array['from'](_0x1083d4),_0x52bb49=this['getSuggestions']({'skipNotAttached':!0x0}),_0x163953=_0x52bb49['filter'](_0x2ceda1=>!_0x1083d4['has'](_0x2ceda1)),_0x430ae0=new Map(_0x57bbe3['map'](_0x573cc2=>[_0x573cc2,this['_suggestionFactory']['getSuggestionCallback'](_0x573cc2['type'],_0x573cc2['subType'],'join')])),_0x3d240f=new Map(_0x52bb49['map'](_0x5c4db7=>[_0x5c4db7,_0x5c4db7['getRanges']()]));for(let _0x23f0be=0x0;_0x23f0be<_0x57bbe3['length'];_0x23f0be++){if(_0x46c976(this,_0x57bbe3[_0x23f0be],_0x57bbe3,_0x23f0be+0x1))return!0x0;}for(let _0x1df6e2=0x0;_0x1df6e2<_0x57bbe3['length'];_0x1df6e2++){if(_0x46c976(this,_0x57bbe3[_0x1df6e2],_0x163953,0x0))return!0x0;}return!0x1;function _0x46c976(_0x33f97a,_0x35fb4c,_0x31bdd0,_0x59763c){for(let _0x23548f=_0x59763c;_0x23548f<_0x31bdd0['length'];_0x23548f++){const _0x5bc7ef=_0x31bdd0[_0x23548f];if(_0x5bc7ef['type']!==_0x35fb4c['type']||_0x5bc7ef['author']['id']!==_0x35fb4c['author']['id']||_0x5bc7ef['subType']!==_0x35fb4c['subType'])continue;if(!Pt(_0x35fb4c,_0x5bc7ef,['groupId']))continue;if('attribute'==_0x35fb4c['type']&&_0x35fb4c['data']['oldValue']!=_0x5bc7ef['data']['oldValue'])continue;if('attribute'==_0x35fb4c['type']&&_0x33f97a['_isBlockAttribute'](_0x35fb4c['data']['key']))continue;if('formatBlock'==_0x35fb4c['type']){const _0x43e340=_0x33f97a['editor']['model'],_0x1ba193=_0x35fb4c['getContainedElement']();if(_0x1ba193&&(_0x43e340['schema']['isObject'](_0x1ba193)||_0x43e340['schema']['isLimit'](_0x1ba193)))continue;}const _0x582aa9=_0x430ae0['get'](_0x35fb4c),_0x1736c0=_0x3d240f['get'](_0x35fb4c),_0x2d305d=_0x3d240f['get'](_0x5bc7ef),_0xb42c4c=_0x35fb4c['commentThread']&&_0x35fb4c['commentThread']['length'],_0x2e0406=_0x5bc7ef['commentThread']&&_0x5bc7ef['commentThread']['length'];if(!_0xb42c4c&&_0x582aa9(_0x2d305d,_0x1736c0))return _0x33f97a['_joinSuggestions'](_0x5bc7ef,_0x35fb4c),_0x3d240f['delete'](_0x35fb4c),!0x0;if(!_0x2e0406&&_0x582aa9(_0x1736c0,_0x2d305d))return _0x33f97a['_joinSuggestions'](_0x35fb4c,_0x5bc7ef),_0x3d240f['delete'](_0x5bc7ef),!0x0;}return!0x1;}}['_joinSuggestions'](_0xc010ae,_0x2fd8fc){if(_0xc010ae['isMultiRange']){for(const _0x16501b of _0x2fd8fc['getRanges']())_0xc010ae['addRange'](_0x16501b);}else{const _0x514dc1=_0x2fd8fc['getFirstRange']()['end'];this['_setSuggestionRange'](_0xc010ae,this['_model']['createRange'](_0xc010ae['getFirstRange']()['start'],_0x514dc1));}_0x2fd8fc['removeMarkers']();}['_getMarkerAnnouncementText'](_0x8bd0be,_0x59a9b5){const _0x3fcfa1=_0x8bd0be['startsWith']('format')||_0x8bd0be['startsWith']('attribute')?'FORMATTING':_0x8bd0be['toUpperCase']();return o(this['editor']['locale'],_0x59a9b5+'_'+_0x3fcfa1+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x27609e=this['editor'];if(!_0x27609e['ui'])return;const {ariaLiveAnnouncer:_0x484b67}=_0x27609e['ui'];_0x3c88a5(this['_model'],({left:_0x5b5a69,entered:_0x2d73df})=>{for(const _0x4894c6 of _0x5b5a69){const {group:_0x2705c9,type:_0x52e2e6}=this['_splitMarkerName'](_0x4894c6['name']);if('suggestion'===_0x2705c9){_0x484b67['announce'](this['_getMarkerAnnouncementText'](_0x52e2e6,'LEAVE'));break;}}for(const _0x9e475a of _0x2d73df){const {group:_0x5d0ae2,type:_0x1cedd6}=this['_splitMarkerName'](_0x9e475a['name']);if('suggestion'===_0x5d0ae2){_0x484b67['announce'](this['_getMarkerAnnouncementText'](_0x1cedd6,'ENTER'));break;}}});}['_processAttributeChanges'](_0x145a5f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x6d881b=this['editor'],_0x2f17cc=_0x6d881b['model']['document']['differ']['getChanges']();if(0x0==_0x2f17cc['length'])return!0x1;const _0x211acc=[],_0x44b73f=_0x2f17cc['filter'](_0x30f728=>'attribute'==_0x30f728['type']),_0x467c84=_0x2f17cc['filter'](_0x16600b=>'insert'==_0x16600b['type']&&'$text'!=_0x16600b['name']),_0x41a79d=_0x2f17cc['filter'](_0x2accca=>'remove'==_0x2accca['type']&&'$text'!=_0x2accca['name']);for(const _0x42cdfe of _0x44b73f)_0x211acc['push']({'key':_0x42cdfe['attributeKey'],'newValue':_0x42cdfe['attributeNewValue'],'oldValue':_0x42cdfe['attributeOldValue'],'range':Ot(_0x42cdfe['range'],_0x6d881b['model'])});for(const _0x59b211 of _0x467c84){const _0x5b5476=_0x41a79d['find'](_0x29cbb2=>_0x29cbb2['position']['isEqual'](_0x59b211['position']));_0x5b5476&&_0x211acc['push']({'key':m,'newValue':_0x59b211['name'],'oldValue':_0x5b5476['name'],'range':_0x6d881b['model']['createRangeOn'](_0x59b211['position']['nodeAfter'])});}return 0x0!=_0x211acc['length']&&this['_reduceExistingSuggestions'](_0x145a5f,_0x211acc);}['_processAttributeSuggestions'](_0x3b38ed){let _0xbeb858=!0x1;const _0x5b1058=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5e5a18=>_0x5e5a18['data']['newRange']&&_0x5e5a18['name']['startsWith']('suggestion:attribute:'));for(const _0x1424a1 of _0x5b1058){const {subType:_0x3bc39e,id:_0x5ab82f}=this['_splitMarkerName'](_0x1424a1['name']),_0x4d557d=_0x3bc39e['split']('|')[0x0];for(const _0x5a2a1f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5a2a1f['id']!=_0x5ab82f&&'attribute'==_0x5a2a1f['type']&&_0x5a2a1f['data']&&_0x5a2a1f['data']['key']==_0x4d557d&&_0x5a2a1f['getFirstRange']()['isIntersecting'](_0x1424a1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5a2a1f,_0x1424a1['data']['newRange'],_0x3b38ed),_0xbeb858=!0x0);}return _0xbeb858;}['_recordAttributeChanges'](_0x2eee2e){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2eee2e();}['_isRegisteredAttribute'](_0xa4a5e8){const _0x2781e0=this['_isBlockAttribute'](_0xa4a5e8),_0x5a8a2c=this['_inlineAttributeKeys']['has'](_0xa4a5e8);return _0x2781e0||_0x5a8a2c;}['_reduceExistingSuggestions'](_0x43b41e,_0x1cbced){if(0x0==_0x1cbced['length'])return!0x1;let _0x389ee6=!0x1;for(const _0x30624d of _0x1cbced){const _0x59ab9a=this['_findSuggestions'](_0x30624d['range'],'attribute')['filter'](_0x55637e=>!_0x55637e['meta']['isNextTo'])['map'](_0x365439=>_0x365439['suggestion']),_0x2961fc=_0x134b70({'newValue':_0x30624d['newValue']});_0x59ab9a['filter'](_0x207dcd=>{const [_0x53bea3,_0x3f1856]=_0x207dcd['subType']['split']('|');return _0x53bea3==_0x30624d['key']&&_0x3f1856!=_0x2961fc;})['forEach'](_0x2f24e5=>{this['_reduceSuggestionAttributeRange'](_0x2f24e5,_0x30624d['range'],_0x43b41e),_0x389ee6=!0x0;});}return _0x389ee6;}['_reduceSuggestionAttributeRange'](_0x1fe13e,_0x55b7e8,_0xd0b59d){const _0x1b05cd=_0x1fe13e['getFirstRange']()['getDifference'](_0x55b7e8);0x0!==_0x1b05cd['length']?0x1!==_0x1b05cd['length']?this['_breakSuggestionMarker'](_0x1fe13e,_0x55b7e8['start'],_0x55b7e8['end']):this['_setSuggestionRange'](_0x1fe13e,_0x1b05cd[0x0]):_0xd0b59d['removeMarker'](_0x1fe13e['getFirstMarker']());}constructor(_0x501f61){function _0x11fbf4(_0x570a6c){return _0x570a6c['map'](_0x206d2c=>String['fromCharCode'](_0x206d2c))['join']('');}super(_0x501f61),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4962b5,_0xeed008,_0x535833,_0x2c956c)=>{this['_model']['change'](()=>{for(const _0x2726b1 of[..._0x2c956c,..._0x535833])this['_model']['markers']['has'](_0x2726b1)&&_0x501f61['editing']['reconvertMarker'](_0x2726b1);});}),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']=_0x501f61['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(),_0x501f61['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x501f61['config']['get']('trackChanges.trackFormatChanges'),_0x501f61['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x501f61['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x501f61,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x11fbf4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x11fbf4([0x34,0x30,0x34,0x38,0x31,0x30,0x33,0x32]);}}class xt{['buildSuggestion'](_0x3c86c2,_0x4d8a9f,_0x4e16d0,_0x4b5945,_0x4b2e27,_0x310932){return new u(this['_model'],{'type':_0x3c86c2,'subType':_0x4d8a9f,'id':_0x4e16d0,'author':_0x4b5945,'creator':_0x4b5945,'attributes':_0x4b2e27,'onAttributesChange':_0x310932,'onAccept':(..._0x266476)=>this['getSuggestionCallback'](_0x3c86c2,_0x4d8a9f,'accept')(..._0x266476),'onDiscard':(..._0x5db5e1)=>this['getSuggestionCallback'](_0x3c86c2,_0x4d8a9f,'discard')(..._0x5db5e1)});}['registerCustomCallback'](_0x172e91,_0x4892e0,_0x49e3cd,_0x8be025){const _0x10f760=_0x172e91+':'+_0x4892e0+':'+_0x49e3cd;this['_customCallbacks']['set'](_0x10f760,_0x8be025);}['getSuggestionCallback'](_0x34f6e7,_0x4901cf,_0x437553){const _0x5ad7b6=_0x34f6e7+':'+_0x4901cf+':'+_0x437553;return this['_customCallbacks']['get'](_0x5ad7b6)||this['_defaultCallbacks']['get'](_0x34f6e7+':'+_0x437553);}['_registerDefaultCallbacks'](){const _0x263a2a=()=>!0x1,_0x1f90a9=_0x51862b=>{_0x51862b['sort']((_0x38b27e,_0x40692b)=>_0x38b27e['start']['isBefore'](_0x40692b['start'])?0x1:-0x1),this['_model']['change'](_0x2feef4=>{for(const _0x313e7e of _0x51862b){let _0x26d867;_0x26d867=_0x313e7e['end']['isAtEnd']&&_0x313e7e['end']['parent']==_0x313e7e['start']['nodeAfter']?_0x2feef4['createSelection'](_0x313e7e['start']['nodeAfter'],'on'):_0x2feef4['createSelection'](_0x313e7e),this['_model']['deleteContent'](_0x26d867,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4f4aec=(_0xdae3c6,_0xc86df8)=>{_0xc86df8&&this['_model']['change'](_0x52536d=>{const {commandName:_0x162730,commandParams:_0x330227=[]}=_0xc86df8,_0xc7b9b0=_0xdae3c6['map'](_0x52f007=>(Tt(_0x52f007)&&(_0x52f007=this['_model']['createRange'](_0x52f007['end'])),_0x52f007))['filter'](_0x139a2e=>'$graveyard'!==_0x139a2e['root']['rootName']);if(_0xc7b9b0['length']<0x1)return;const _0x4a1af8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x28d333=>_0x2242e5['fromRange'](_0x28d333));_0x52536d['setSelection'](_0xc7b9b0);for(const _0xdba5cf of this['_editor']['commands']['commands']())_0xdba5cf['refresh']();_0x330227['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x162730,..._0x330227);const _0x26e692=_0x4a1af8['filter'](_0x109bb7=>'$graveyard'!=_0x109bb7['root']['rootName']);_0x26e692['length']>0x0&&_0x52536d['setSelection'](_0x26e692);for(const _0x345c50 of _0x4a1af8)_0x345c50['detach']();});},_0x539e9d=(_0x13b5eb,_0x2517db)=>0x1==_0x13b5eb['length']&&0x1==_0x2517db['length']&&_0x13b5eb[0x0]['end']['isEqual'](_0x2517db[0x0]['start']),_0x28323a=(_0x3a7020,_0x316988,_0x20a18f,_0x50cc4c)=>Gt(_0x3a7020,_0x316988,_0x20a18f,_0x50cc4c,this['_model'])?[_0x3a7020,_0x316988]:Gt(_0x316988,_0x3a7020,_0x50cc4c,_0x20a18f,this['_model'])?[_0x316988,_0x3a7020]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x263a2a),this['_defaultCallbacks']['set']('insertion:discard',_0x1f90a9),this['_defaultCallbacks']['set']('insertion:join',_0x539e9d),this['_defaultCallbacks']['set']('insertion:chain',_0x28323a),this['_defaultCallbacks']['set']('deletion:accept',_0x1f90a9),this['_defaultCallbacks']['set']('deletion:discard',_0x263a2a),this['_defaultCallbacks']['set']('deletion:join',_0x539e9d),this['_defaultCallbacks']['set']('deletion:chain',_0x28323a),this['_defaultCallbacks']['set']('formatInline:accept',_0x4f4aec),this['_defaultCallbacks']['set']('formatInline:discard',_0x263a2a),this['_defaultCallbacks']['set']('formatInline:join',_0x539e9d),this['_defaultCallbacks']['set']('formatInline:chain',_0x263a2a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4f4aec),this['_defaultCallbacks']['set']('formatBlock:discard',_0x263a2a),this['_defaultCallbacks']['set']('formatBlock:join',_0x539e9d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x263a2a),this['_defaultCallbacks']['set']('attribute:accept',_0x263a2a),this['_defaultCallbacks']['set']('attribute:discard',(_0x4b631d,_0x1937cd)=>{if(!_0x1937cd)return;const _0x542d9c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1c1655=>{if(_0x1937cd['key']==m)for(const _0x33872b of _0x4b631d){const _0x1edeeb=_0x33872b['start']['nodeAfter'],_0x9255b5=_0x1937cd['oldValue'];_0x1c1655['rename'](_0x1edeeb,_0x9255b5);}else{if(_0x542d9c['_isBlockAttribute'](_0x1937cd['key'])){for(const _0x2a0fda of _0x4b631d)void 0x0!==_0x1937cd['oldValue']?_0x1c1655['setAttribute'](_0x1937cd['key'],_0x1937cd['oldValue'],_0x2a0fda['start']['nodeAfter']):_0x1c1655['removeAttribute'](_0x1937cd['key'],_0x2a0fda['start']['nodeAfter']);}else{for(const _0x11e601 of _0x4b631d)_0x1937cd['oldValue']?_0x1c1655['setAttribute'](_0x1937cd['key'],_0x1937cd['oldValue'],_0x11e601):_0x1c1655['removeAttribute'](_0x1937cd['key'],_0x11e601);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x539e9d);}constructor(_0x42866c){this['_editor']=_0x42866c,this['_model']=_0x42866c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x4f99e4,_0x59cd67,_0x393049){for(const _0x5283e7 of _0x59cd67['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5283e7['root']==_0x5283e7)return!0x1;if(!_0x393049['containsItem'](_0x5283e7))return!0x1;if(_0x4f99e4['isObject'](_0x5283e7)||_0x4f99e4['isLimit'](_0x5283e7))return!0x0;}return!0x1;}function Tt(_0x25963f){return _0x25963f['end']['parent']==_0x25963f['start']['nodeAfter']&&_0x25963f['end']['isAtStart'];}function Et(_0x328729,_0x2bfcce,_0x5249f5,_0x77b519){const _0x590fc6=_0x523f08=>!_0x523f08['item']['is']('$textProxy')&&!_0x77b519['isObject'](_0x523f08['item']),_0x139fd8=_0x328729['start']['getLastMatchingPosition'](_0x590fc6),_0x1739fb=_0x328729['end']['getLastMatchingPosition'](_0x590fc6,{'direction':'backward'});return(!_0x328729['start']['isEqual'](_0x139fd8)||!_0x328729['end']['isEqual'](_0x1739fb))&&(_0x139fd8['isBefore'](_0x1739fb)?_0x5249f5['updateMarker'](_0x2bfcce,{'range':_0x5249f5['createRange'](_0x139fd8,_0x1739fb)}):_0x5249f5['removeMarker'](_0x2bfcce),!0x0);}function Vt(_0x4f6d75){return _0x134b70(_0x4f6d75);}function Ut(_0x9177fa){const _0xd13b2=_0x9177fa['start']['nodeAfter'];return _0xd13b2&&_0xd13b2['is']('element');}function Ot(_0x4ce60c,_0x38b523){return null==_0x4ce60c['end']['nodeBefore']&&_0x4ce60c['end']['parent']==_0x4ce60c['start']['nodeAfter']?Ft(_0x4ce60c['start']['nodeAfter'],_0x38b523):_0x4ce60c;}function Ft(_0x48c9f4,_0xefc10c){const _0x333427=_0xefc10c['schema']['isObject'](_0x48c9f4)||_0xefc10c['schema']['isSelectable'](_0x48c9f4);return _0xefc10c['createRange'](_0xefc10c['createPositionAt'](_0x48c9f4,'before'),_0x333427?_0xefc10c['createPositionAfter'](_0x48c9f4):_0xefc10c['createPositionAt'](_0x48c9f4,'end'));}function Gt(_0x5878bd,_0x26cd82,_0x4668e2,_0x179f7b,_0x49871c){if(!Pt(_0x5878bd,_0x26cd82))return!0x1;if(_0x4668e2['end']['isEqual'](_0x179f7b['start']))return!0x0;if(_0x5878bd['type']!=_0x26cd82['type'])return!0x1;if(!_0x4668e2['end']['isTouching'](_0x179f7b['start']))return!0x1;const _0x589a1a=_0x49871c['createRange'](_0x4668e2['end'],_0x179f7b['start'])['getWalker']();for(const _0x36accc of _0x589a1a)if(['elementStart','elementEnd']['includes'](_0x36accc['type'])&&_0x49871c['schema']['isLimit'](_0x36accc['item']))return!0x1;return!0x0;}function Pt(_0x596c95,_0x416f6f,_0x11f11c=[]){return!(!_0x596c95['_isDataLoaded']||!_0x416f6f['_isDataLoaded'])&&_0x3298cf(Bt(_0x596c95['attributes'],_0x11f11c),Bt(_0x416f6f['attributes'],_0x11f11c));}function Lt(_0x59e3f5,_0x30f4e4){const _0x471baf=Ht(_0x59e3f5['attributes']),_0xae30e4=Ht(_0x30f4e4);if(!_0x59e3f5['_isDataLoaded'])return!0x1;for(const _0x5b3922 of Object['keys'](_0xae30e4))if(!_0x3298cf(_0x471baf[_0x5b3922],_0xae30e4[_0x5b3922]))return!0x1;return!0x0;}function Ht(_0x1c3011){const _0x25cba4=Object['assign']({},_0x1c3011);return delete _0x25cba4['skipNestingCheck'],delete _0x25cba4['tablePasteChainId'],_0x25cba4;}class oe extends _0x173313(){['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 _0x5cb81b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5cb81b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x3a4fcf,_0x40b378,_0x16fff0,_0x75d855){super(),this['model']=_0x40b378,this['view']=_0x16fff0,this['commentThreadController']=_0x75d855,this['_editor']=_0x3a4fcf,this['_acceptCommand']=_0x3a4fcf['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3a4fcf['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3e1fca,_0x309597)=>_0x3e1fca||_0x309597),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x400102=>_0x400102&&this['_editor']['model']['canEditAt'](_0x40b378['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x13ca58=>_0x13ca58&&this['_editor']['model']['canEditAt'](_0x40b378['getRanges']())),this['_pendingAction']=null,_0x16fff0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x16fff0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x16fff0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x16fff0,'change:isDirty',()=>{_0x16fff0['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x231896{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x52852b}=this['_config'];this['commentsListView']=new _0x52852b(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',_0x260790=>_0x260790+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2cb6bc,_0x2c6e87)=>_0x2cb6bc||!!_0x2c6e87);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x739290}=this['_config'],_0x190ab6=new _0x739290(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x50fd79=_0x190ab6['commentInputView'];return _0x190ab6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x50fd79,'value',(_0x2385ae,_0x45c2fa,_0x10e7e2)=>!!_0x10e7e2||_0x2385ae&&!_0x45c2fa),_0x50fd79['on']('submit',(_0x14f15a,_0x3300f2)=>{this['fire']('addComment',_0x3300f2),_0x50fd79['editor']['setData']('');}),_0x50fd79['on']('cancel',()=>this['focus']()),_0x50fd79['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x190ab6;}constructor(_0x92b0b5,_0x48c4a6,_0x45f631,_0x4a8660){super(_0x92b0b5),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x48c4a6['authoredAt']),this['bind']('authoredAt')['to'](_0x48c4a6),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x48c4a6,this['_localUser']=_0x45f631,this['_config']=_0x4a8660,_0x4a8660['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x3e3c12=this['bindTemplate'],_0x3557e2=[{'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':_0x3e3c12['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3e3c12['to']('authoredAt',_0x5cfcba=>this['_config']['formatDateTime'](_0x5cfcba))}]}]},{'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']&&_0x3557e2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1b1603={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3e3c12['if']('isActive','ck-suggestion-wrapper--active'),_0x3e3c12['to']('type',_0x37b913=>'ck-suggestion-'+_0x37b913),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':_0x3557e2}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1b1603['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)),_0x1b1603;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x45754d,_0x27f7e9,_0x50f7b8)=>{this['_descriptionElement']['innerHTML']=_0x50f7b8;});}['_createButton'](_0x2c4a81,_0x20842f,_0x35a24e,_0x4ef3df,_0x3dc50c){const _0x188814=new _0x5a8fe4(this['locale']);return _0x188814['set']({'label':_0x2c4a81,'icon':_0x20842f,'tooltip':!0x0,'tooltipPosition':_0x3dc50c}),_0x188814['extendTemplate']({'attributes':{'class':_0x35a24e}}),_0x188814['on']('execute',()=>{this['fire'](_0x4ef3df,this['_model']['id']);}),_0x188814;}['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(_0x49b4d1,_0x7c7c61,_0x1eb6b5,_0x43874c){super(_0x49b4d1,_0x7c7c61,_0x1eb6b5,_0x43874c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3f8dd6=>_0x3f8dd6&&_0x3f8dd6[0x0]?_0x3f8dd6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5c4c29,_0x175701)=>{let _0x4d7e8d='';for(const _0x1a26b5 of _0x5c4c29)_0x4d7e8d+='<p>'+ds(_0x1a26b5['content'],_0x1a26b5['color'])+'</p>';return _0x175701?_0x4d7e8d:_0x428c37(_0x4d7e8d,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x49b4d1,'Accept\x20suggestion'),_0x5382e6['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x49b4d1,'Discard\x20suggestion'),_0x5382e6['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3a0d18(_0x49b4d1,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x5634f4,_0x38eda5){let _0x3c70b6='';return _0x3c70b6+=_0x5634f4['split']('*')['map']((_0x354113,_0x54a95e)=>_0x54a95e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x354113)+'</span>':us(_0x354113))['join'](''),_0x38eda5&&(_0x3c70b6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x38eda5['value']+'\x22\x20title=\x22'+_0x38eda5['title']+'\x22></span>'),_0x3c70b6;}function us(_0x5b304d){const _0x1b07d9=document['createElement']('span');return _0x1b07d9['innerText']=_0x5b304d,_0x1b07d9['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 _0x357748{static get['requires'](){return[p,_0x4b8c42,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x3ce2b8,_0x15890f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1cf70a,_0x1e300d]of this['_handleControllerBuffer']){const _0x38e44e=this['_suggestionToController']['has'](_0x1cf70a);_0x38e44e||_0x1e300d?_0x38e44e&&_0x1e300d&&this['_destroyController'](_0x1cf70a):this['_initializeController'](_0x1cf70a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3ce2b8,_0x15890f);}['init'](){const _0x30ecb6=this['editor'],_0x9b19d5=_0x30ecb6['plugins']['get']('TrackChangesEditing'),_0x534253=_0x30ecb6['plugins']['get']('Annotations'),_0x3f9bac=_0x30ecb6['plugins']['get']('EditorAnnotations'),_0x3dc2ce=_0x30ecb6['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3f9bac['addSourceCollector'](()=>{const _0x22267c=[];for(const [_0x5c278b,_0xa2aa31]of Array['from'](this['_suggestionToController'])){const _0x47768=_0x5c278b['getAllAdjacentSuggestions'](),_0x567864=[];for(const _0x5c7d4e of _0x47768){if(!_0x5c7d4e['isInContent'])continue;if(_0x5c7d4e['isMultiRange']){_0x567864['push'](..._0x5c7d4e['getRanges']());continue;}const _0x248b97=_0x5c7d4e['getFirstRange']();if(_0x567864['length']>0x0){const _0x56128b=_0x567864[0x0]['getJoined'](_0x248b97);if(_0x56128b){_0x567864[0x0]=_0x56128b;continue;}}_0x567864['push'](_0x248b97);}_0x22267c['push']([_0xa2aa31['view'],_0x567864]);}return _0x22267c;}),this['listenTo'](_0x9b19d5,'suggestionLoaded',(_0x8d2e7a,_0x491472)=>{this['listenTo'](_0x491472,'change:previous',(_0x395f4b,_0x4fbf01,_0x24001f,_0x2b5102)=>{_0x491472['isInContent']&&(null==_0x24001f?(this['_updateController'](_0x2b5102['head']),this['_handleSuggestionControllerDelayed'](_0x491472,!0x1)):(this['_updateController'](_0x24001f['head']),null==_0x2b5102&&this['_handleSuggestionControllerDelayed'](_0x491472,!0x0)));}),null!==_0x491472['previous']?this['_updateController'](_0x491472['head']):this['_handleSuggestionControllerDelayed'](_0x491472,!0x1);}),this['listenTo'](_0x9b19d5,'suggestionUnloaded',(_0x2343db,_0x54d21e,_0x25a6dd)=>{this['stopListening'](_0x54d21e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x54d21e),this['_suggestionToController']['has'](_0x54d21e)&&this['_destroyController'](_0x54d21e),_0x25a6dd&&this['_updateController'](_0x25a6dd['head']);}),this['listenTo'](_0x9b19d5,'suggestionChanged',(_0x91015,_0x5a85f3)=>{this['_updateController'](_0x5a85f3);}),this['listenTo'](_0x534253,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3dc2ce,'addComment',(_0x56fee4,{threadId:_0x449abb,isFromAdapter:_0x51e405})=>{if(_0x51e405||!_0x9b19d5['hasSuggestion'](_0x449abb))return;const _0x57fe3f=_0x9b19d5['getSuggestion'](_0x449abb);this['_suggestionToController']['get'](_0x57fe3f)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1ac2a4=this['editor']['plugins']['get']('Annotations'),_0x22db11=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4662f1=Array['from'](_0x1ac2a4['activeAnnotations'],_0x42297c=>_0x42297c['innerView'])['filter'](_0x269d8d=>this['_viewToController']['has'](_0x269d8d)),_0x590663=[];for(const _0x5c5320 of _0x4662f1){const _0x7c66=this['_viewToController']['get'](_0x5c5320)['model']['getAllAdjacentSuggestions']();_0x590663['push'](..._0x7c66['reduce']((_0x1f43eb,_0x15d141)=>[..._0x1f43eb,..._0x15d141['getMarkerNames']()],[]));}_0x22db11['activeMarkers']=_0x590663;}['_addUIComponentsToFactory'](){const _0x488466=this['editor'],_0x20e8be=_0x488466['locale'],_0x56ba1b=o(_0x20e8be,'Track\x20changes'),_0xa36b83=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x56ba1b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x20e8be,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x20e8be,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x20e8be,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x20e8be,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x52f61e of _0xa36b83)if(ae(_0x52f61e)){const _0x85544a=_0x488466['commands']['get'](_0x52f61e['model']['commandName']);_0x52f61e['model']['bind']('isOn','isEnabled')['to'](_0x85544a,'value','isEnabled');}_0x488466['ui']['componentFactory']['add']('trackChanges',_0x4015a2=>this['_createToolbarButton'](_0x4015a2,_0xa36b83,_0x56ba1b)),_0x488466['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3eab25=>this['_createMenuBarMenu'](_0x3eab25,_0xa36b83,_0x56ba1b));}['_createToolbarButton'](_0x16e760,_0x499f15,_0x5ab643){const _0x417708=zt(_0x16e760,Zt),_0x5cd008=this['editor']['commands']['get']('trackChanges');_0x417708['buttonView']['set']({'tooltip':_0x5ab643,'label':_0x5ab643,'icon':ie}),_0x417708['buttonView']['bind']('isOn')['to'](_0x5cd008,'value'),_0x417708['buttonView']['on']('execute',()=>{_0x5cd008['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x417708,_0x499f15,{'role':'menu'});const _0x216b00=[];for(const _0x2a0daf of _0x499f15)ae(_0x2a0daf)&&_0x216b00['push'](this['editor']['commands']['get'](_0x2a0daf['model']['commandName']));const _0x19611c=_0x417708['buttonView'];return _0x19611c['actionView']['unbind']('isEnabled'),_0x19611c['arrowView']['unbind']('isEnabled'),_0x19611c['actionView']['bind']('isEnabled')['to'](_0x5cd008,'isEnabled'),_0x19611c['arrowView']['bind']('isEnabled')['toMany'](_0x216b00,'isEnabled',(..._0x1c0b78)=>_0x1c0b78['some'](_0x345ff6=>_0x345ff6)),_0x417708['on']('execute',_0x5885e8=>{this['editor']['execute'](_0x5885e8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x417708;}['_createMenuBarMenu'](_0x5238b4,_0x4a6061,_0x54d505){const _0x3d7547=new Kt(_0x5238b4),_0x2488e5=this['editor']['commands']['get']('trackChanges');_0x3d7547['buttonView']['set']({'label':_0x54d505,'icon':ie});const _0x175157=new Qt(_0x5238b4);for(const _0x1998f9 of _0x4a6061){if('separator'==_0x1998f9['type']){_0x175157['items']['add'](new Jt(_0x5238b4));continue;}const _0x71340c=new Xt(_0x5238b4,_0x3d7547),_0x276a6a=new Yt(_0x5238b4),_0x58b07c=_0x1998f9['model'];_0x276a6a['bind'](...Object['keys'](_0x58b07c))['to'](_0x58b07c),_0x276a6a['delegate']('execute')['to'](_0x3d7547),_0x276a6a['on']('execute',()=>{this['editor']['execute'](_0x58b07c['commandName']),this['editor']['editing']['view']['focus']();}),_0x71340c['children']['add'](_0x276a6a),_0x175157['items']['add'](_0x71340c);}return _0x3d7547['bind']('isEnabled')['to'](_0x2488e5,'isEnabled'),_0x3d7547['panelView']['children']['add'](_0x175157),_0x3d7547;}['_initializeController'](_0x15a142){const _0x268363=this['editor'],_0x15d324=_0x268363['config'],_0x25f76c=_0x268363['plugins']['get']('Annotations'),_0x11317c=_0x268363['plugins']['get']('CommentsRepository'),_0x5d97ab=_0x268363['plugins']['get']('EditorAnnotations'),_0x473408=_0x268363['plugins']['get'](_0x4b8c42)['me'],_0x3fe02f=_0x15d324['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x191237,CommentThreadInputView:_0x4a5839}=_0x268363['plugins']['get']('CommentsUI');let _0x496589,_0xf06f98;this['_annotationViews']['has'](_0x15a142['id'])?(_0xf06f98=this['_annotationViews']['get'](_0x15a142['id']),_0x496589=_0xf06f98['mainView']):(_0x496589=new _0x3fe02f(_0x268363['locale'],_0x15a142,_0x473408,{'disableComments':this['_disableComments'],'editorConfig':_0x15d324['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x15d324['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x15d324['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15d324['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x183220(_0x15d324['get']('locale')),'CommentView':_0x15d324['get']('comments')['CommentView'],'CommentsListView':_0x191237,'CommentThreadInputView':_0x4a5839}),_0x496589['acceptButton']['on']('execute',()=>{_0x268363['editing']['view']['focus']();}),_0x496589['discardButton']['on']('execute',()=>{_0x268363['editing']['view']['focus']();}),_0xf06f98=_0x25f76c['createAnnotationView'](this['editor']['locale'],_0x496589),_0xf06f98['bind']('isDirty')['to'](_0x496589,'isDirty'),_0xf06f98['bind']('length')['to'](_0x496589),_0xf06f98['bind']('type')['to'](_0x496589,'type',_0x4c8ae3=>'suggestion-'+_0x4c8ae3),this['_annotationViews']['set'](_0x15a142['id'],_0xf06f98));const _0x5c5450=_0x11317c['createCommentThreadController'](_0x15a142['commentThread'],_0x496589),_0x558689=new oe(_0x268363,_0x15a142,_0x496589,_0x5c5450),_0x225931=_0x15a142['getAllAdjacentSuggestions']()['filter'](_0xc03388=>_0xc03388['isInContent']);_0x496589['descriptionParts']=_0x268363['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x225931),this['_suggestionToController']['set'](_0x15a142,_0x558689),this['_viewToController']['set'](_0x496589,_0x558689);const _0x2edb30=_0x25f76c['createAnnotation']({'view':_0xf06f98,'target':()=>{const _0x1aec28=[],_0x1976f5=_0x15a142['getAllAdjacentSuggestions']()['filter'](_0x129f83=>_0x129f83['isInContent']);for(const _0x591dcf of _0x1976f5)_0x1aec28['push'](..._0x591dcf['getMarkers']());return _0xf0cc4b(_0x268363['editing'],_0x1aec28);},'type':()=>'suggestion-'+_0x558689['view']['type']});_0x11317c['_bindAnnotationToEditors'](_0x496589,_0x2edb30),_0x25f76c['add'](_0x2edb30),_0x5d97ab['registerAnnotation'](_0x2edb30);}['_destroyController'](_0x4dc920){const _0x56c914=this['editor']['plugins']['get']('CommentsRepository'),_0x3c697a=this['editor']['plugins']['get']('Annotations'),_0x1b58a5=this['_suggestionToController']['get'](_0x4dc920),_0x2d7740=_0x1b58a5['view'],_0x2d34a9=_0x3c697a['getByInnerView'](_0x2d7740);_0x56c914['_unbindEditors'](_0x2d7740),_0x2d34a9&&_0x3c697a['remove'](_0x2d34a9),this['_suggestionToController']['delete'](_0x4dc920),this['_viewToController']['delete'](_0x2d7740),_0x1b58a5['destroy']();}['_updateController'](_0x498238){if(!_0x498238['isInContent']||!this['_suggestionToController']['has'](_0x498238))return;const _0x23beda=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51f4e1=this['_suggestionToController']['get'](_0x498238),_0x18dc9e=_0x498238['getAllAdjacentSuggestions']();_0x51f4e1['view']['descriptionParts']=_0x23beda['descriptionFactory']['getDescriptions'](_0x18dc9e);}['destroy'](){for(const _0x487937 of this['_suggestionToController']['keys']())this['_destroyController'](_0x487937);for(const _0x3ccb24 of this['_annotationViews']['values']())_0x3ccb24['mainView']['destroy']();super['destroy']();}constructor(_0x23ceea){super(_0x23ceea),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x29ceaa=this['editor']['config'];_0x29ceaa['define']('trackChanges.SuggestionThreadView',ne),_0x29ceaa['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x29ceaa['get']('trackChanges.disableComments');}}function ae(_0x42c82b){return'model'in _0x42c82b;}class k extends _0x357748{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4fa6d9){this['editor']['plugins']['get'](p)['adapter']=_0x4fa6d9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3cf059){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3cf059);}['getSuggestions']({skipNotAttached:_0x2934e1=!0x1,toJSON:_0x5e465e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2934e1,'toJSON':_0x5e465e});}['getSuggestion'](_0x52887e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x52887e);}}const T=['Pagination'];class P extends _0x357748{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x176b44=this['editor'];if(_0x176b44['config']['define']('trackChangesData.editorCreator',_0x253c45=>{const _0x50373c=_0x176b44['model']['document']['getRootNames']()['reduce']((_0x2da22d,_0x443103)=>(_0x2da22d[_0x443103]='',_0x2da22d),{});return _0x176b44['constructor']['create'](_0x50373c,_0x253c45);}),'function'!=typeof _0x176b44['config']['get']('trackChangesData')['editorCreator'])throw new _0x3c3be4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x53c2aa){return N(this['editor'],!0x0,_0x53c2aa);}['getDataWithDiscardedSuggestions'](_0x4cc17a){return N(this['editor'],!0x1,_0x4cc17a);}}class D extends _0x357748{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(_0x54456e){super(_0x54456e),this['result']='end';}}function v(_0x3e1e4f){return void 0x0!==_0x3e1e4f['getRootsAttributes'];}async function N(_0x110c83,_0x3319d4,_0x1dca38){const _0x43903f=_0x42ff30(_0x110c83,T);_0x43903f['plugins']['push'](p,D),_0x43903f['rootsAttributes']=v(_0x110c83)?_0x110c83['getRootsAttributes']():void 0x0;const _0x52be7f=document['createDocumentFragment'](),_0x686ede=_0x110c83['config']['get']('trackChangesData')['editorCreator'],_0x4dd7f7=await _0x686ede(_0x43903f,()=>function(_0xda6d84){const _0x102d0e=document['createElement']('div');return _0xda6d84['appendChild'](_0x102d0e),_0x102d0e;}(_0x52be7f));!function(_0x5099e0,_0x47b912){const _0x4e5e52=_0x5099e0['model']['document']['getRootNames']()['reduce']((_0x8f303e,_0x4ea732)=>(_0x8f303e[_0x4ea732]=_0x5099e0['data']['get']({'rootName':_0x4ea732}),_0x8f303e),{}),_0x49007c=_0x5099e0['plugins']['get']('Users')['users']['map'](_0x3796ac=>({'id':_0x3796ac['id'],'name':_0x3796ac['name']})),_0x4f2581=_0x5099e0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1a9214=_0x5099e0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x251615=_0x47b912['plugins']['get']('Users'),_0x4c048a=_0x47b912['plugins']['get']('TrackChangesEditing'),_0x18d209=_0x47b912['plugins']['get']('CommentsRepository');for(const _0x4fc474 of _0x49007c)_0x251615['getUser'](_0x4fc474['id'])||_0x251615['addUser'](_0x4fc474);_0x251615['me']||_0x251615['useAnonymousUser']();for(const _0x4e685b of _0x4f2581)_0x4c048a['addSuggestionData'](_0x4e685b);for(const _0x3a335a of _0x1a9214)_0x18d209['addCommentThread'](_0x3a335a);_0x47b912['data']['set'](_0x4e5e52);}(_0x110c83,_0x4dd7f7),_0x4dd7f7['execute'](_0x3319d4?'acceptAllSuggestions':'discardAllSuggestions');const _0x30ac02=v(_0x4dd7f7)?_0x4dd7f7['getFullData'](_0x1dca38):_0x4dd7f7['data']['get'](_0x1dca38);return await _0x4dd7f7['destroy'](),_0x30ac02;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x17098e,PendingActions as _0x4d858a,icons as _0x5c7f4d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2594a2,ObservableMixin as _0x3ba909,uid as _0x23d99a,insertToPriorityArray as _0x1bc42a,priorities as _0xe86b65,logWarning as _0x34d4e7,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x48d038,View as _0x5225db,ButtonView as _0x396888,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 _0x5a2c56,hashObject as _0xb5a321,surroundingMarkersDetector as _0x1086e6,trimHtml as _0x48cc1b,UserView as _0x3d82bb,getDateTimeFormatter as _0x5705f7,getAllMarkersDomElementsSorted as _0x1177a0,sanitizeEditorConfig as _0x307a5a}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x48a58f,LiveRange as _0x19d68e,LivePosition as _0x458ffb}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4c5ebc,toWidget as _0x15f246}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4d7932,set as _0x2aeb3,isEqual as _0x6378b5,unset as _0x215823,omit as Bt}from'lodash-es';import{Delete as _0x40dd17,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x257dc1,ShiftEnter as _0x3aae70}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 _0x355841 of this['editor']['commands']['commands']())_0x355841['affectsData']&&!this['_enabledCommands']['has'](_0x355841)&&_0x355841['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x551eca of this['editor']['commands']['commands']())_0x551eca['affectsData']&&!this['_enabledCommands']['has'](_0x551eca)&&_0x551eca['clearForceDisabled']('TrackChangesCommand');}constructor(_0x128287,_0x52916f){super(_0x128287),this['_enabledCommands']=_0x52916f,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x319866){const _0xd5cba2=this['_suggestions']['get'](_0x319866);if(!_0xd5cba2)throw new _0x2594a2('track-changes-accept-suggestion-not-found',this);const _0x55eb0a=_0xd5cba2['getRanges']();this['editor']['model']['canEditAt'](_0x55eb0a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xd5cba2);}constructor(_0x2db9ac,_0x1b157a){super(_0x2db9ac),this['_suggestions']=_0x1b157a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xf82483){const _0x15af2e=this['_suggestions']['get'](_0xf82483);if(!_0x15af2e)throw new _0x2594a2('track-changes-discard-suggestion-not-found',this);const _0x158688=_0x15af2e['getRanges']();this['editor']['model']['canEditAt'](_0x158688)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x15af2e);}constructor(_0x2bdce7,_0x351c7a){super(_0x2bdce7),this['_suggestions']=_0x351c7a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x5d3702){return _0x5d3702['sort']((_0x430d6b,_0x3b797c)=>'deletion'==_0x430d6b['type']&&'deletion'!=_0x3b797c['type']?-0x1:'deletion'!=_0x430d6b['type']&&'deletion'==_0x3b797c['type']?0x1:0x0);}function to(_0x561331,_0x24e2b8){let _0x547ba9,_0x30a2f4=0x0;const _0x254a85=[],_0x591360=_0x24e2b8['schema'];for(;_0x30a2f4<_0x561331['length'];){const _0x10fe78=_0x561331[_0x30a2f4],_0x42aba5=_0x561331[_0x30a2f4+0x1];_0x547ba9||(_0x547ba9=_0x24e2b8['createPositionBefore'](_0x10fe78)),co(_0x24e2b8,_0x10fe78,_0x42aba5)||(_0x254a85['push'](_0x24e2b8['createRange'](_0x547ba9,_0x591360['isObject'](_0x10fe78)?_0x24e2b8['createPositionAfter'](_0x10fe78):_0x24e2b8['createPositionAt'](_0x10fe78,'end'))),_0x547ba9=null),_0x30a2f4++;}return _0x254a85;}function co(_0x421395,_0x8b2fb9,_0x2343e8){if(!_0x2343e8)return!0x1;const _0x3740f1=_0x421395['createPositionAfter'](_0x8b2fb9),_0x47eb60=_0x421395['createPositionBefore'](_0x2343e8);return _0x3740f1['isTouching'](_0x47eb60);}function rs(_0x38170e,_0x47e9e9,_0x12efbc){for(;_0x12efbc['length'];){const _0x5e59c6=_0x12efbc['splice'](0x0,0x64);_0x38170e['change'](()=>{for(const _0x4c09e3 of _0x5e59c6)_0x4c09e3['isInContent']&&_0x47e9e9['execute'](_0x4c09e3['id']);});}}class x extends ts{['refresh'](){const _0x544eaa=Array['from'](this['_suggestions']['values']())['some'](_0x260135=>_0x260135['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x544eaa;}['execute'](){const _0x5f024b=ss(Array['from'](this['_suggestions']['values']()));for(const _0x9270e7 of _0x5f024b){const _0x3868fa=_0x9270e7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3868fa))return;}rs(this['editor']['model'],this['_command'],_0x5f024b);}constructor(_0x3aa78f,_0x4b3b8e,_0x2ba7a1){super(_0x3aa78f),this['_command']=_0x4b3b8e,this['_suggestions']=_0x2ba7a1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x2e7b75=this['editor']['model']['document']['selection'],_0x146b6c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4641ab,_0xfdcfe9){const _0x17aa57=Array['from'](_0x4641ab['getRanges']()),_0xc51b2e=new Set();for(const _0x443f12 of _0xfdcfe9)if(_0x443f12['isInContent']){for(const _0x19451c of _0x17aa57)for(const _0x4df4dc of _0x443f12['getRanges']())(_0x19451c['isIntersecting'](_0x4df4dc)||_0x4641ab['isCollapsed']&&!_0x443f12['isMultiRange']&&_0x443f12['next']&&_0x4df4dc['end']['isTouching'](_0x19451c['start']))&&_0xc51b2e['add'](_0x443f12);}return _0xc51b2e;}(_0x2e7b75,_0x146b6c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x13e23d=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5d4bc4 of _0x13e23d){const _0x558ac0=_0x5d4bc4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x558ac0))return;}rs(this['editor']['model'],this['_command'],_0x13e23d);}constructor(_0xb27c0b,_0x3d8401,_0x82a1a4){super(_0xb27c0b),this['_command']=_0x3d8401,this['_suggestions']=_0x82a1a4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x3ba909(){get['head'](){let _0xb053e4=this;for(;_0xb053e4['previous'];)_0xb053e4=_0xb053e4['previous'];return _0xb053e4;}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'](_0x3f589f){this['_markerNames']['add'](_0x3f589f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4e5009=>this['_model']['markers']['get'](_0x4e5009))['filter'](_0x1412d0=>_0x1412d0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x22f8b8=>{for(const _0x363f87 of this['getMarkers']())_0x22f8b8['removeMarker'](_0x363f87);}),this['_markerNames']['clear']();}['removeMarker'](_0x37178e){this['_model']['change'](_0x49fc6f=>{_0x49fc6f['removeMarker'](_0x37178e);}),this['_markerNames']['delete'](_0x37178e);}['addRange'](_0x1a85ad){const _0x537066='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x537066),this['_model']['change'](_0x3de920=>{_0x3de920['addMarker'](_0x537066,{'range':_0x1a85ad,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4fc3f2){for(const _0x150dd5 of this['getRanges']())if(_0x150dd5['isIntersecting'](_0x4fc3f2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xcfdc30=>_0xcfdc30['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x9baa13,_0x28462b)=>[..._0x9baa13,..._0x28462b['getItems']()],[]);}['getFirstRange'](){var _0x48c55f;return(null===(_0x48c55f=this['getFirstMarker']())||void 0x0===_0x48c55f?void 0x0:_0x48c55f['getRange']())||null;}['getContainedElement'](){const _0x40d739=this['getRanges']();if(0x1!=_0x40d739['length'])return null;const _0x32abcf=_0x40d739[0x0],_0x8518c9=_0x32abcf['start']['nodeAfter'],_0x3a481b=_0x32abcf['end']['nodeBefore'];return _0x8518c9 instanceof _0x48a58f?_0x8518c9!=_0x3a481b?null:_0x8518c9: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 _0x524d60=[];let _0x3fdd27=this['head'];for(;_0x3fdd27;)_0x524d60['push'](_0x3fdd27),_0x3fdd27=_0x3fdd27['next'];return _0x524d60;}['setAttribute'](_0x5ac5c4,_0x178ca1){const _0x238298=_0x4d7932(this['attributes']);_0x2aeb3(_0x238298,_0x5ac5c4,_0x178ca1),_0x6378b5(_0x238298,this['attributes'])||(this['attributes']=_0x238298,this['_onAttributesChange'](_0x238298));}['removeAttribute'](_0x4933da){const _0x4db0e8=_0x4d7932(this['attributes']);_0x215823(_0x4db0e8,_0x4933da),_0x6378b5(_0x4db0e8,this['attributes'])||(this['attributes']=_0x4db0e8,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 _0x23d99a()['substr'](0x1,0x5);}constructor(_0x35ac4b,_0x36c9c9){super(),this['_isDataLoaded']=!0x1,this['id']=_0x36c9c9['id'],this['type']=_0x36c9c9['type'],this['subType']=_0x36c9c9['subType']||null,this['author']=_0x36c9c9['author'],this['creator']=_0x36c9c9['creator']||_0x36c9c9['author'],this['isExternal']=Boolean(_0x36c9c9['attributes']&&_0x36c9c9['attributes']['@external']),this['data']=null,this['_model']=_0x35ac4b,this['_onAccept']=_0x36c9c9['onAccept'],this['_onDiscard']=_0x36c9c9['onDiscard'],this['_onAttributesChange']=_0x36c9c9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x36c9c9['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(_0x26e4a8,_0x3d264e,_0x553359){const t=_0x26e4a8['t'];switch(_0x3d264e){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',_0x553359);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x553359);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x553359);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x553359);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x553359);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',_0x553359);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x553359);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',_0x553359);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x553359);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x553359);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x553359);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x553359);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x553359);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x553359);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x553359);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x553359);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x553359);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x553359);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x553359);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x553359);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x553359);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x553359);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x553359);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'},_0x553359);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x553359);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x553359);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x553359);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x553359);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x553359);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'},_0x553359);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x553359);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x553359);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x553359);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x553359);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'},_0x553359);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x553359);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'},_0x553359);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'},_0x553359);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x553359);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'},_0x553359);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x553359);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'},_0x553359);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x553359);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x553359);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'},_0x553359);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'},_0x553359);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 _0x3d264e;}}class f{['getDescriptions'](_0x354996){const _0x459b7b=[],_0x526642=new Set(),_0x215b4d=new Set();for(let _0x116634=0x0;_0x116634<_0x354996['length'];_0x116634++){const _0x3943c7=_0x354996[_0x116634];if(!_0x3943c7['isInContent'])continue;const _0x4b98b9=this['_handleCustomCallbackDescription'](_0x3943c7);if(_0x4b98b9){if(null!=_0x3943c7['subType']){if(_0x526642['has'](_0x3943c7['subType']))continue;_0x526642['add'](_0x3943c7['subType']);}_0x459b7b['push'](_0x4b98b9);}else{if('attribute'!=_0x3943c7['type'])'insertion'!=_0x3943c7['type']&&'deletion'!=_0x3943c7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x459b7b,_0x3943c7,_0x354996[_0x116634+0x1]);else{const _0x196ee9=_0x3943c7['data']['key'];if(_0x215b4d['has'](_0x196ee9))continue;_0x215b4d['add'](_0x3943c7['data']['key']),_0x196ee9==m?this['_handleRenameSuggestionDescription'](_0x459b7b,_0x3943c7):this['_handleAttributeSuggestionDescription'](_0x459b7b,_0x3943c7);}}}return this['_resolveDescriptionItems'](_0x459b7b);}['registerDescriptionCallback'](_0x249ea2){this['_customCallbacks']['push'](_0x249ea2);}['registerElementLabel'](_0x124363,_0x2ac646,_0x5f58f1=_0xe86b65['normal']){'function'==typeof _0x124363?_0x1bc42a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x124363,'label':_0x2ac646,'priority':_0x5f58f1}):this['_itemLabels']['set'](_0x124363,_0x2ac646);}['registerAttributeLabel'](_0x4e79e2,_0x376e8d){this['_attributeLabels']['set'](_0x4e79e2,_0x376e8d);}['getItemLabel'](_0x52c7f4,_0x393fe7=0x1){let _0x55ac39;for(const _0x5968c3 of this['_itemLabelsCallbacks'])if(_0x5968c3['matchingCallback'](_0x52c7f4)){_0x55ac39=_0x5968c3['label'];break;}return _0x55ac39||(_0x55ac39=this['_itemLabels']['get'](_0x52c7f4['name'])),_0x55ac39?_0x55ac39(_0x393fe7):0x1!==_0x393fe7?_0x393fe7+'\x20'+_0x52c7f4['name']+'s':''+_0x52c7f4['name'];}['_addDescriptionItems'](_0x11c708,_0x247ee6){const _0x2c0007=_0x247ee6['getFirstRange']()['getWalker'](),_0x6e6887='insertion'==_0x247ee6['type']?'add':'remove';for(const _0x22fa76 of _0x2c0007){const _0x46e580=_0x22fa76['item'],_0x128e27=_0x11c708[_0x11c708['length']-0x1];if(_0x46e580['is']('$textProxy'))_0x128e27&&_0x128e27['type']['indexOf']('Container')>-0x1&&_0x11c708['pop'](),_0x128e27&&'text'==_0x128e27['type']?_0x128e27[_0x6e6887]+=_0x46e580['data']:_0x11c708['push']({'type':'text','add':'add'==_0x6e6887?_0x46e580['data']:'','remove':'remove'==_0x6e6887?_0x46e580['data']:''});else{if(this['_schema']['isObject'](_0x46e580)){const _0x103b3f=_0x46e580;if(_0x128e27&&_0x128e27['type']['indexOf']('Container')>-0x1&&_0x11c708['pop'](),'elementEnd'==_0x22fa76['type'])continue;_0x128e27&&_0x128e27['type']==_0x6e6887+'Object'&&_0x128e27['element']['name']==_0x103b3f['name']?_0x128e27['quantity']++:_0x11c708['push']({'type':_0x6e6887+'Object','element':_0x103b3f,'quantity':0x1}),_0x2c0007['skip'](_0x3a12a9=>!('elementEnd'==_0x3a12a9['type']&&_0x3a12a9['item']==_0x46e580));}else{if(this['_schema']['checkChild'](_0x46e580,'$text')||_0x46e580['is']('element','softBreak')){const _0x1aee9e=_0x46e580;if('add'==_0x6e6887&&'elementStart'==_0x22fa76['type']||'remove'==_0x6e6887&&'elementEnd'==_0x22fa76['type'])continue;if(_0x128e27&&-0x1==_0x128e27['type']['indexOf']('Container')){'text'==_0x128e27['type']&&(_0x128e27[_0x6e6887]+='\x0a');continue;}let _0x30b62f;if(_0x30b62f='add'==_0x6e6887?_0x1aee9e['nextSibling']&&!this['_schema']['isObject'](_0x1aee9e['nextSibling'])?_0x1aee9e['nextSibling']:null:_0x1aee9e['previousSibling']&&!this['_schema']['isObject'](_0x1aee9e['previousSibling'])?_0x1aee9e['previousSibling']:null,_0x1aee9e['isEmpty']||_0x30b62f&&_0x30b62f['isEmpty']){const _0x2ebe50=_0x30b62f&&_0x30b62f['isEmpty']?_0x30b62f:_0x1aee9e;_0x128e27&&_0x128e27['type']==_0x6e6887+'EmptyContainer'&&_0x128e27['element']['name']==_0x2ebe50['name']?_0x128e27['quantity']++:_0x11c708['push']({'type':_0x6e6887+'EmptyContainer','element':_0x2ebe50,'quantity':0x1});}else _0x11c708['push']({'type':_0x6e6887+'Container','element':_0x1aee9e});}}}}}['_resolveDescriptionItems'](_0x91ce20){const _0x3dddc0=this['_locale'],_0x41ceba=[],_0x29dc4a=[],_0x44abf9=[];for(const _0x16e2ba of _0x91ce20)switch(_0x16e2ba['type']){case'text':if(_0x16e2ba['add']=_0x16e2ba['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x16e2ba['remove']=_0x16e2ba['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x16e2ba['add']&&''!=_0x16e2ba['remove']){_0x41ceba['push']({'type':'replace','content':o(_0x3dddc0,'REPLACE_TEXT',['\x22'+_0x16e2ba['remove']+'\x22','\x22'+_0x16e2ba['add']+'\x22'])});continue;}if(null!=_0x16e2ba['add']['match'](/^ +$/)){_0x41ceba['push']({'type':'insertion','content':o(_0x3dddc0,'*Insert:*\x20%0',o(_0x3dddc0,'ELEMENT_SPACE',_0x16e2ba['add']['length']))});continue;}if(null!=_0x16e2ba['remove']['match'](/^ +$/)){_0x41ceba['push']({'type':'deletion','content':o(_0x3dddc0,'*Remove:*\x20%0',o(_0x3dddc0,'ELEMENT_SPACE',_0x16e2ba['remove']['length']))});continue;}if(''!=_0x16e2ba['add']){_0x41ceba['push']({'type':'insertion','content':o(_0x3dddc0,'*Insert:*\x20%0','\x22'+_0x16e2ba['add']+'\x22')});continue;}_0x41ceba['push']({'type':'deletion','content':o(_0x3dddc0,'*Remove:*\x20%0','\x22'+_0x16e2ba['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x41ceba['push']({'type':'insertion','content':o(_0x3dddc0,'*Insert:*\x20%0',this['getItemLabel'](_0x16e2ba['element'],_0x16e2ba['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x41ceba['push']({'type':'deletion','content':o(_0x3dddc0,'*Remove:*\x20%0',this['getItemLabel'](_0x16e2ba['element'],_0x16e2ba['quantity']))});continue;case'addContainer':_0x41ceba['push']({'type':'insertion','content':o(_0x3dddc0,'*Split:*\x20%0',this['getItemLabel'](_0x16e2ba['element'],_0x16e2ba['quantity']))});continue;case'removeContainer':_0x41ceba['push']({'type':'deletion','content':o(_0x3dddc0,'*Merge:*\x20%0',this['getItemLabel'](_0x16e2ba['element'],_0x16e2ba['quantity']))});continue;case'addFormat':_0x29dc4a['push'](_0x16e2ba['key']);continue;case'removeFormat':_0x44abf9['push'](_0x16e2ba['key']);continue;default:_0x41ceba['push'](_0x16e2ba);}if(_0x29dc4a['length']){const _0x4f1864=_0x29dc4a['map'](_0x2e78ee=>this['_attributeLabels']['has'](_0x2e78ee)?this['_attributeLabels']['get'](_0x2e78ee):_0x2e78ee)['join'](',\x20');_0x41ceba['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4f1864)});}if(_0x44abf9['length']){const _0x7209be=_0x44abf9['map'](_0x102440=>this['_attributeLabels']['has'](_0x102440)?this['_attributeLabels']['get'](_0x102440):_0x102440)['join'](',\x20');_0x41ceba['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x7209be)});}return _0x41ceba;}['_handleCustomCallbackDescription'](_0x595755){for(const _0x3ded41 of this['_customCallbacks']){const _0x581257=_0x3ded41(_0x595755);if(_0x581257&&'type'in _0x581257)return _0x581257;}}['_handleAttributeSuggestionDescription'](_0x8690dd,_0x5aa314){const _0x1f93cc=_0x5aa314['data'],_0x37b0d9=void 0x0===_0x1f93cc['newValue']?'removeFormat':'addFormat';_0x8690dd['push']({'type':_0x37b0d9,'key':_0x1f93cc['key']});}['_handleRenameSuggestionDescription'](_0x39f5cd,_0x378e09){_0x39f5cd['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x378e09['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x327ab8,_0x5c1845,_0x5cc615){if(this['_addDescriptionItems'](_0x327ab8,_0x5c1845),_0x5cc615&&_0x5cc615['getFirstRange']()&&!_0x5c1845['getFirstRange']()['end']['isEqual'](_0x5cc615['getFirstRange']()['start'])){const _0xca096b=_0x327ab8[_0x327ab8['length']-0x1],_0xa1a657='insertion'==_0x5c1845['type']?'add':'remove';_0xca096b&&'text'==_0xca096b['type']&&(_0xca096b[_0xa1a657]+='\x0a');}}constructor(_0x521dca,_0x1f1cb9){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x521dca,this['_locale']=_0x1f1cb9;}}class E extends _0x17098e{['afterInit'](){const _0x224eb1=this['editor'],_0x5d7a3b=_0x224eb1['plugins']['get']('TrackChangesEditing');_0x224eb1['commands']['get']('showAIAssistant')&&_0x5d7a3b['enableCommand']('showAIAssistant');}}class V extends _0x17098e{['afterInit'](){const _0x54b86e=this['editor'],_0x591cb3=_0x54b86e['locale'];if(!_0x54b86e['plugins']['has']('AlignmentEditing'))return;const _0x5610db=_0x54b86e['plugins']['get']('TrackChangesEditing');_0x5610db['enableDefaultAttributesIntegration']('alignment'),_0x5610db['registerBlockAttribute']('alignment'),_0x5610db['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x591cb3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x576b74=this['editor'],_0x3df254=_0x576b74['locale'];_0x576b74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb97be0=>{if('formatBlock'!=_0xb97be0['type'])return;const {data:_0x4b4cbb}=_0xb97be0;if(_0x4b4cbb&&'alignment'==_0x4b4cbb['commandName']){const _0x106239=_0x4b4cbb['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3df254,'*Format:*\x20%0',function(_0x179ca4){switch(_0x179ca4){case'left':return o(_0x3df254,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3df254,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3df254,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3df254,'FORMAT_JUSTIFY_TEXT');}}(_0x106239))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x17098e{['afterInit'](){const _0x42e45a=this['editor'],_0x5d24e6=_0x42e45a['plugins']['get']('TrackChangesEditing'),_0x465b17=_0x42e45a['locale'];for(const _0x1b51ed of ti){if(!_0x42e45a['plugins']['has'](_0x1b51ed))continue;const _0x40331e=_0x1b51ed['slice'](0x0,-0x7)['toLowerCase'](),_0x862d9e='FORMAT_'+_0x40331e['toUpperCase']();_0x5d24e6['enableDefaultAttributesIntegration'](_0x40331e),_0x5d24e6['registerInlineAttribute'](_0x40331e),_0x5d24e6['descriptionFactory']['registerAttributeLabel'](_0x40331e,o(_0x465b17,_0x862d9e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3da146=this['editor'],_0x3e659d=_0x3da146['locale'],_0xd4d862=_0x3da146['plugins']['get']('TrackChangesEditing');function _0x24ae53(_0x5d69e5,_0x1707f2){_0xd4d862['descriptionFactory']['registerDescriptionCallback'](_0x516496=>{if('formatInline'!=_0x516496['type'])return;const {data:_0x743441}=_0x516496;return _0x743441&&_0x743441['commandName']===_0x5d69e5?_0x743441['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e659d,'*Format:*\x20%0',_0x1707f2)}:{'type':'format','content':o(_0x3e659d,'*Remove\x20format:*\x20%0',_0x1707f2)}:void 0x0;});}_0x24ae53('bold',o(_0x3e659d,'FORMAT_BOLD')),_0x24ae53('italic',o(_0x3e659d,'FORMAT_ITALIC')),_0x24ae53('underline',o(_0x3e659d,'FORMAT_UNDERLINE')),_0x24ae53('code',o(_0x3e659d,'FORMAT_CODE')),_0x24ae53('strikethrough',o(_0x3e659d,'FORMAT_STRIKETHROUGH')),_0x24ae53('subscript',o(_0x3e659d,'FORMAT_SUBSCRIPT')),_0x24ae53('superscript',o(_0x3e659d,'FORMAT_SUPERSCRIPT'));}}class O extends _0x17098e{['afterInit'](){const _0x373e81=this['editor'],_0x2e2f51=_0x373e81['locale'];if(!_0x373e81['plugins']['has']('BlockQuoteEditing'))return;const _0x4bb46d=_0x373e81['plugins']['get']('TrackChangesEditing'),_0x3c749a=this['editor']['commands']['get']('blockQuote');_0x4bb46d['enableCommand']('blockQuote',(_0x804971,_0x116918={})=>{const _0xb38c7d=this['editor']['model']['document']['selection'],_0x337925=_0x116918&&void 0x0!==_0x116918['forceValue']?_0x116918['forceValue']:!_0x3c749a['value'];let _0x8f611=[];if(_0x337925){const _0x3d4530=Array['from'](_0xb38c7d['getSelectedBlocks']())['filter'](_0x200a22=>oo(_0x200a22)||function(_0x4b6a74,_0x4a4390){const _0x4ddb4b=_0x4a4390['checkChild'](_0x4b6a74['parent'],'blockQuote'),_0x34ec91=_0x4a4390['checkChild'](['$root','blockQuote'],_0x4b6a74);return _0x4ddb4b&&_0x34ec91;}(_0x200a22,this['editor']['model']['schema']));_0x8f611=to(_0x3d4530,_0x373e81['model']);}else{const _0x2b716e=Array['from'](_0xb38c7d['getSelectedBlocks']())['filter'](_0x455a2e=>oo(_0x455a2e));_0x8f611=to(_0x2b716e,_0x373e81['model']);}_0x373e81['model']['change'](()=>{for(const _0x2ce94a of _0x8f611)_0x4bb46d['markBlockFormat'](_0x2ce94a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x337925}]});});}),_0x4bb46d['descriptionFactory']['registerDescriptionCallback'](_0x4729f5=>{const {data:_0x52669a}=_0x4729f5;if(_0x52669a&&'blockQuote'==_0x52669a['commandName']){const _0x5ebcc5=o(_0x2e2f51,'ELEMENT_BLOCK_QUOTE');return _0x52669a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e2f51,'*Set\x20format:*\x20%0',_0x5ebcc5)}:{'type':'format','content':o(_0x2e2f51,'*Remove\x20format:*\x20%0',_0x5ebcc5)};}});}}function oo(_0x46d3bb){return'blockQuote'==_0x46d3bb['parent']['name'];}class F extends _0x17098e{['afterInit'](){const _0x1aa11e=this['editor'];_0x1aa11e['plugins']['has']('CaseChange')&&(_0x1aa11e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1aa11e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1aa11e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x17098e{['afterInit'](){const _0x5a32ae=this['editor'];_0x5a32ae['commands']['get']('ckbox')&&_0x5a32ae['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x17098e{['afterInit'](){const _0x307ee0=this['editor'];if(!_0x307ee0['plugins']['has']('CodeBlock'))return;const _0x339e46=_0x307ee0['plugins']['get']('TrackChangesEditing'),_0x1ebae8=_0x307ee0['locale'],_0x303a81=_0x307ee0['config']['get']('codeBlock')['languages'],_0x18459d=_0x307ee0['commands']['get']('codeBlock');_0x339e46['enableCommand']('indentCodeBlock'),_0x339e46['enableCommand']('outdentCodeBlock'),_0x339e46['enableCommand']('codeBlock',(_0x4e61a4,_0x3f4fce={})=>{const _0x321313=_0x307ee0['model'],_0x9d3aa5=_0x307ee0['model']['document']['selection'],_0x11601f=_0x3f4fce&&void 0x0!==_0x3f4fce['forceValue']?_0x3f4fce['forceValue']:!_0x18459d['value'];let _0x5847db;_0x3f4fce['language']||(_0x3f4fce['language']=_0x303a81[0x0]['language']),_0x5847db=_0x11601f?Array['from'](_0x9d3aa5['getSelectedBlocks']())['filter'](_0x532ba7=>eo(_0x532ba7)||function(_0x5c6718,_0x316b1e){if(_0x5c6718['is']('rootElement')||_0x316b1e['isLimit'](_0x5c6718))return!0x1;return _0x316b1e['checkChild'](_0x5c6718['parent'],'codeBlock');}(_0x532ba7,_0x321313['schema'])):Array['from'](_0x9d3aa5['getSelectedBlocks']())['filter'](_0x3b6a59=>eo(_0x3b6a59));const _0xf2ec65=to(_0x5847db,_0x321313);_0x321313['change'](()=>{for(const _0x25434e of _0xf2ec65)_0x339e46['markBlockFormat'](_0x25434e,{'commandName':'codeBlock','commandParams':[{..._0x3f4fce,'forceValue':_0x11601f}],'formatGroupId':'blockName'});});}),(_0x339e46['descriptionFactory']['registerElementLabel']('codeBlock',_0x41e92a=>o(_0x1ebae8,'ELEMENT_CODE_BLOCK',_0x41e92a)),_0x339e46['descriptionFactory']['registerDescriptionCallback'](_0xaad50=>{if('formatBlock'!=_0xaad50['type'])return;const _0x2b44be=_0x1ebae8['t'],{data:_0x20534a}=_0xaad50;if(!_0x20534a||'codeBlock'!=_0x20534a['commandName'])return;const _0x174ccc=_0x20534a['commandParams'][0x0]['language'],_0x1da6f8=_0x2b44be(_0x303a81['find'](_0x4a79fe=>_0x4a79fe['language']===_0x174ccc)['label'])['toLowerCase']();return _0x20534a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ebae8,'*Set\x20format:*\x20%0',o(_0x1ebae8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1da6f8+')')}:{'type':'format','content':o(_0x1ebae8,'*Remove\x20format:*\x20%0',o(_0x1ebae8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x591171){return'codeBlock'==_0x591171['name'];}class H extends _0x17098e{['afterInit'](){const _0x8d60cf=this['editor'];if(!_0x8d60cf['plugins']['has']('CommentsEditing'))return;_0x8d60cf['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x262877,_0x4813c0,_0x3b4356){const _0x4f7d63=[];for(const _0x1c38f6 of _0x4813c0['getItems']())_0x1c38f6['hasAttribute'](_0x262877)&&_0x4f7d63['push'](_0x3b4356['createRangeOn'](_0x1c38f6));return _0x4f7d63;}function _e(_0x420683,_0x500216,{showActiveMarker:_0x403443=!0x0}={}){const _0x205da7=_0x420683['plugins']['get']('TrackChangesEditing');return(_0x5eda99,_0x17dbc1,_0x438c24)=>{if(!_0x438c24['consumable']['test'](_0x17dbc1['markerRange'],_0x5eda99['name']))return;const _0x3283a0=_0x17dbc1['markerRange']['getWalker'](),_0xb1b54f=_0x17dbc1['markerRange']['start'],_0x179df9=_0x420683['model']['schema'];let _0x57202a=null,_0x35a37a=null,_0x549dbb=!0x1,_0x378728=!0x1;for(const _0xae31bc of _0x3283a0){const _0x23e723=_0xae31bc['item'];_0x549dbb=_0x549dbb||_0x179df9['isContent'](_0x23e723);const _0x25a408=_0x438c24['mapper']['toViewElement'](_0x23e723);if(_0x25a408&&_0x25a408['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xae31bc['type']&&(_0x179df9['isBlock'](_0x23e723)&&!_0x179df9['isLimit'](_0x23e723)&&(_0x23e723['nextSibling']||_0xb1b54f['isAtEnd']?_0x57202a&&_0x57202a['parent']==_0x23e723||(_0x57202a=_0x23e723,_0x33bc30(_0xae31bc['previousPosition']),_0x378728=!0x0):_0x35a37a=_0x35a37a||_0xae31bc['previousPosition']));}function _0x33bc30(_0x11d090){const _0x431690=_0x438c24['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x500216}),_0x44d02e=_0x438c24['mapper']['toViewPosition'](_0x11d090);_0x403443&&_0x205da7['activeMarkers']['includes'](_0x17dbc1['markerName'])&&_0x438c24['writer']['addClass']('ck-suggestion-marker--active',_0x431690),_0x438c24['writer']['insert'](_0x44d02e,_0x431690),_0x438c24['mapper']['bindElementToMarker'](_0x431690,_0x17dbc1['markerName']);}_0x549dbb||_0x378728||!_0x35a37a||_0x33bc30(_0x35a37a);};}class q extends _0x17098e{static get['requires'](){return[_0x40dd17];}['init'](){const _0x42cadd=this['editor'],_0x33fa4e=_0x42cadd['plugins']['get']('TrackChangesEditing');_0x33fa4e['enableCommand']('delete');const _0x538c26=_0x42cadd['commands']['get']('deleteForward');_0x33fa4e['enableCommand']('deleteForward',(_0x17cba4,_0x34cbbc={})=>{const _0x52b7e3=_0x42cadd['model']['createSelection'](_0x42cadd['model']['document']['selection']);_0x52b7e3['isCollapsed']&&_0x42cadd['model']['modifySelection'](_0x52b7e3,{'direction':'forward','unit':_0x34cbbc['unit']});const _0x2340d0=_0x52b7e3['getFirstRange'](),_0x3fc155=_0x19d68e['fromRange'](_0x2340d0);let _0x3d99aa;_0x17cba4(_0x34cbbc),_0x3d99aa='$graveyard'==_0x3fc155['root']['rootName']?_0x42cadd['model']['createRange'](_0x2340d0['start']):_0x42cadd['model']['createRange'](_0x3fc155['start'],_0x3fc155['end']),_0x3fc155['detach'](),_0x42cadd['model']['enqueueChange'](_0x538c26['buffer']['batch'],_0x32cecb=>{_0x538c26['buffer']['lock'](),_0x32cecb['setSelection'](_0x32cecb['createRange'](_0x3d99aa['end'])),_0x538c26['buffer']['unlock']();});}),_0x42cadd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x42cadd,'merge'),{'priority':'high'}),_0x42cadd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1fb798,_0x2766b9,_0x48f028)=>{_0x48f028['options']['showSuggestionHighlights']&&_e(_0x42cadd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1fb798,_0x2766b9,_0x48f028);},{'priority':'high'}),_0x42cadd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x218c7f,_0x56685b,_0x192ee2)=>{const _0x4ee8db=_0x192ee2['mapper']['markerNameToElements'](_0x56685b['markerName']);if(_0x4ee8db){for(const _0x3216b5 of _0x4ee8db)_0x3216b5['is']('uiElement')&&(_0x192ee2['mapper']['unbindElementFromMarkerName'](_0x3216b5,_0x56685b['markerName']),_0x192ee2['writer']['remove'](_0x3216b5));}},{'priority':'high'});}}class z extends _0x17098e{['afterInit'](){const _0x2a67bb=this['editor'];if(!_0x2a67bb['plugins']['has']('ListEditing'))return;const _0x46001f=_0x2a67bb['locale'],_0x76db20=_0x2a67bb['plugins']['get']('TrackChangesEditing'),_0x195e38=_0x2a67bb['plugins']['has']('TodoListEditing'),_0x3794d0=!!_0x2a67bb['config']['get']('list.multiBlock');function _0x5df08f(_0x5a5035){return{'type':'format','content':''+o(_0x46001f,'*Set\x20format:*\x20%0',_0x5a5035)};}function _0x3699b6(_0x3ea62b){return{'type':'format','content':''+o(_0x46001f,'*Remove\x20format:*\x20%0',_0x3ea62b)};}_0x76db20['enableDefaultAttributesIntegration']('numberedList'),_0x76db20['enableDefaultAttributesIntegration']('bulletedList'),_0x76db20['enableDefaultAttributesIntegration']('customNumberedList'),_0x76db20['enableDefaultAttributesIntegration']('customBulletedList'),_0x76db20['enableDefaultAttributesIntegration']('indentList'),_0x76db20['enableDefaultAttributesIntegration']('outdentList'),_0x76db20['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x76db20['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x76db20['registerBlockAttribute']('listItemId'),_0x76db20['registerBlockAttribute']('listType'),_0x76db20['registerBlockAttribute']('listIndent'),_0x3794d0&&(_0x76db20['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x76db20['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x195e38&&(_0x76db20['enableDefaultAttributesIntegration']('todoList'),_0x76db20['enableDefaultAttributesIntegration']('checkTodoList'),_0x76db20['registerBlockAttribute']('todoListChecked'),_0x76db20['descriptionFactory']['registerDescriptionCallback'](_0x1414b5=>{const {data:_0xbda9ee}=_0x1414b5;if(_0xbda9ee&&'todoListChecked'==_0xbda9ee['key'])return{'type':'format','content':_0xbda9ee['newValue']?o(_0x46001f,'*Check\x20item*'):o(_0x46001f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x205207=>{if(_0x205207['batch']['isUndo'])return!0x1;let _0xbd5133=!0x1;const _0x203fc0=_0x76db20['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37c428=>'todoListChecked'===_0x76db20['_getAttributeKey'](_0x37c428));for(const _0x1002ba of _0x203fc0){'todo'!=_0x1002ba['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x76db20['_findSuggestions'](_0x1002ba['getFirstRange'](),'attribute')['find'](_0xdb0fe0=>'listType'===_0x76db20['_getAttributeKey'](_0xdb0fe0['suggestion']))||(_0x205207['removeMarker'](_0x1002ba['getFirstMarker']()),_0xbd5133=!0x0));}return _0xbd5133;})),_0x76db20['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x46001f,'FORMAT_INDENT'));const _0x319dfe={'type':'format','content':''};_0x76db20['descriptionFactory']['registerDescriptionCallback'](_0x27e9c6=>{const {data:_0x573f7f}=_0x27e9c6;if(!_0x573f7f||'listType'!=_0x573f7f['key'])return;let _0x2bd0d0=_0x27e9c6['head'];for(;_0x2bd0d0;){if(_0x2bd0d0['data']&&(('listStyle'==_0x2bd0d0['data']['key']||'listMarkerStyle'==_0x2bd0d0['data']['key'])&&(_0x2bd0d0['data']['newValue']&&'default'!=_0x2bd0d0['data']['newValue']||'default'!=_0x2bd0d0['data']['oldValue']&&!_0x573f7f['newValue'])||!_0x3794d0&&_0x2bd0d0['data']['key']==m))return _0x319dfe;_0x2bd0d0=_0x2bd0d0['next'];}if(null==_0x573f7f['newValue'])switch(_0x573f7f['oldValue']){case'bulleted':return _0x3699b6(o(_0x46001f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3699b6(o(_0x46001f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3699b6(o(_0x46001f,'ELEMENT_TODO_LIST'));}switch(_0x573f7f['newValue']){case'bulleted':return _0x5df08f(o(_0x46001f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5df08f(o(_0x46001f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5df08f(o(_0x46001f,'ELEMENT_TODO_LIST'));}}),_0x76db20['descriptionFactory']['registerDescriptionCallback'](_0x5e866f=>{const {data:_0x523fd1}=_0x5e866f;if(_0x523fd1&&'listIndent'==_0x523fd1['key'])return null==_0x523fd1['newValue']||null==_0x523fd1['oldValue']&&0x0==_0x523fd1['newValue']?_0x319dfe:void 0x0;}),_0x76db20['descriptionFactory']['registerDescriptionCallback'](_0x5fea35=>{if('attribute'!=_0x5fea35['type'])return;const {data:_0x2fa887}=_0x5fea35;if(!_0x2fa887||'listItemId'!=_0x2fa887['key'])return;const _0x341598=le(_0x5fea35);return'newValue'==_0x341598?{'type':'format','content':o(_0x46001f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x341598?{'type':'format','content':o(_0x46001f,'*Split:*\x20list\x20item')}:_0x319dfe;}),_0x2a67bb['model']['document']['registerPostFixer'](_0x3f75c1=>this['listItemIdFixer'](_0x3f75c1)),_0x2a67bb['model']['document']['registerPostFixer'](_0x35ff7f=>this['noTrackChangesFixer'](_0x35ff7f)),_0x2a67bb['model']['document']['registerPostFixer'](_0x22ae25=>this['assureChains'](_0x22ae25)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4d7e22){if(_0x4d7e22['batch']['isUndo']||!_0x4d7e22['batch']['isLocal'])return!0x1;let _0x1d222e=!0x1;const _0x280295=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5889a4=>_0x5889a4['data']&&'listItemId'==_0x5889a4['data']['key'])['filter'](_0x54b2de=>_0x54b2de['data']['newValue']&&_0x54b2de['data']['oldValue']);for(const _0x4ed058 of _0x280295)le(_0x4ed058)||(_0x4d7e22['removeMarker'](_0x4ed058['getFirstMarker']()),_0x1d222e=!0x0);return _0x1d222e;}['noTrackChangesFixer'](_0x3cd9ad){if(_0x3cd9ad['batch']['isUndo']||!_0x3cd9ad['batch']['isLocal'])return!0x1;const _0x1b29ac=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1b29ac['trackChangesCommand']['value'])return!0x1;let _0x33b710=!0x1;const _0x57d6f7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2bebc9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2f1267=>'attribute'==_0x2f1267['type'])['filter'](_0x4fad66=>_0x57d6f7['includes'](_0x4fad66['attributeKey']));if(0x0==_0x2bebc9['length'])return _0x33b710;for(const _0x502cdc of _0x2bebc9){const _0x1914fb=_0x1b29ac['_findSuggestions'](_0x502cdc['range'],'attribute')['filter'](_0x5e49cc=>!_0x5e49cc['meta']['isNextTo'])['map'](_0x5cfd61=>_0x5cfd61['suggestion'])['filter'](_0x136d9f=>{const _0x7aa4d=_0x1b29ac['_getAttributeKey'](_0x136d9f);return _0x57d6f7['includes'](_0x7aa4d);});if(_0x1914fb['length']){for(const _0x34495c of _0x1914fb)_0x3cd9ad['removeMarker'](_0x34495c['getFirstMarker']());_0x33b710=!0x0;}}return _0x33b710;}['assureChains'](_0x448f65){if(_0x448f65['batch']['isUndo']||!_0x448f65['batch']['isLocal'])return!0x1;const _0x3a26fd=this['editor']['plugins']['get']('TrackChangesEditing');let _0x682c40=!0x1;const _0x4ad4da=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x7f921a of _0x3a26fd['getSuggestions']({'skipNotAttached':!0x0})){const _0x491d24=_0x3a26fd['_findSuggestions'](_0x7f921a['getFirstRange'](),'attribute')['map'](_0x3689fb=>_0x3689fb['suggestion'])['filter'](_0x2c1ad6=>_0x2c1ad6['data']&&_0x4ad4da['includes'](_0x2c1ad6['data']['key']));if(!_0x491d24['length'])continue;const _0x253d0f=_0x491d24[0x0]['head']['attributes']['groupId'];if(!_0x491d24['every'](_0x15d1c8=>_0x15d1c8['attributes']['groupId']===_0x253d0f)){for(const _0xda0897 of _0x491d24)_0x3b2f8a(_0xda0897,_0x253d0f)&&(_0x682c40=!0x0);}}return _0x682c40;function _0x411ef1(_0x1cd1e9,_0x5b7215){for(const _0x3dd6fe of _0x3a26fd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf945d9=>'attribute'==_0xf945d9['type']&&_0xf945d9['attributes']['groupId']==_0x1cd1e9))_0x3dd6fe['setAttribute']('groupId',_0x5b7215);}function _0x3b2f8a(_0x5cfd03,_0x30a4db){let _0x4b5afa=_0x5cfd03['head'],_0x10628a=!0x1;for(;_0x4b5afa;)_0x4b5afa['attributes']['groupId']!=_0x30a4db&&(_0x411ef1(_0x4b5afa['attributes']['groupId'],_0x30a4db),_0x4b5afa['setAttribute']('groupId',_0x30a4db),_0x10628a=!0x0),_0x4b5afa=_0x4b5afa['next'];return _0x10628a;}}['_supportLegacySuggestions'](){const _0x46b240=this['editor'],_0x221b98=_0x46b240['locale'],_0x269187=_0x46b240['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x269187['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x542b52,_0x36dd1d){const _0x59ba71=[];for(let _0x12fa7a of _0x542b52)_0x12fa7a['start']['nodeAfter']===_0x12fa7a['end']['parent']&&(_0x12fa7a=_0x46b240['model']['createRange'](_0x46b240['model']['createPositionAt'](_0x12fa7a['start']['nodeAfter'],0x0))),_0x59ba71['push'](_0x12fa7a);_0x46b240['model']['change'](_0x361ced=>{const _0x5168cb=_0x46b240['model']['document']['selection'],_0x2894d8=Array['from'](_0x5168cb['getRanges']())['map'](_0x255cdc=>_0x19d68e['fromRange'](_0x255cdc));_0x361ced['setSelection'](_0x59ba71),_0x46b240['commands']['get'](_0x36dd1d['commandName'])['refresh'](),_0x36dd1d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x46b240['execute'](_0x36dd1d['commandName'],..._0x36dd1d['commandParams']),_0x361ced['setSelection'](_0x2894d8);for(const _0x5a7e0e of _0x2894d8)_0x5a7e0e['detach']();});}),_0x269187['descriptionFactory']['registerElementLabel'](function(_0x5f54f5){const _0x48e74c=!_0x46b240['model']['schema']['isObject'](_0x5f54f5),_0x4081b4=_0x5f54f5['previousSibling'],_0x5f0cdd=_0x5f54f5['nextSibling'],_0x40cd32=_0x5f54f5['getAttribute']('listItemId'),_0x30c886=!_0x4081b4||_0x4081b4['getAttribute']('listItemId')!==_0x40cd32,_0x9cadcf=!_0x5f0cdd||_0x5f0cdd['getAttribute']('listItemId')!==_0x40cd32;return _0x48e74c&&Boolean(_0x40cd32)&&_0x30c886&&_0x9cadcf;},_0x393e89=>o(_0x221b98,'ELEMENT_LIST_ITEM',_0x393e89));}['_registerLegacyDescription'](){const _0x38cd2d=this['editor'],_0x41f55e=_0x38cd2d['locale'];function _0x2eb041(_0x671f5f){const _0x45d7de=_0x38cd2d['commands']['get']('bulletedList')['value'],_0x4f4bab=_0x38cd2d['commands']['get']('numberedList')['value'];return'numberedList'===_0x671f5f?_0x45d7de:_0x4f4bab;}_0x38cd2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x228988){if('formatBlock'!=_0x228988['type'])return;const {data:_0x2b79de}=_0x228988;if(!_0x2b79de)return;let _0x579305,_0x12a4c8,_0x22a1d6,_0x1f22cf;switch(_0x2b79de['commandName']){case'bulletedList':_0x22a1d6=_0x2b79de['commandParams'][0x0]['forceValue'],_0x1f22cf=_0x2eb041(_0x2b79de['commandName']),_0x579305=_0x22a1d6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f22cf&&_0x38cd2d['config']['get']('list.multiBlock')||(_0x579305='*Change\x20to:*\x20%0'),_0x12a4c8={'type':'format','content':o(_0x41f55e,_0x579305,o(_0x41f55e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x22a1d6=_0x2b79de['commandParams'][0x0]['forceValue'],_0x1f22cf=_0x2eb041(_0x2b79de['commandName']),_0x579305=_0x22a1d6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f22cf&&_0x38cd2d['config']['get']('list.multiBlock')||(_0x579305='*Change\x20to:*\x20%0'),_0x12a4c8={'type':'format','content':o(_0x41f55e,_0x579305,o(_0x41f55e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x579305='*Indent:*\x20%0',_0x12a4c8={'type':'format','content':o(_0x41f55e,_0x579305,o(_0x41f55e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x579305=function(_0xbae0b7){const _0x2e9f36=_0xbae0b7['getFirstRange']();let _0x43af69=_0x2e9f36['start']['nodeAfter'];for(;_0x43af69&&_0x2e9f36['containsItem'](_0x43af69);){if(_0x43af69['getAttribute']('listIndent')>0x0)return!0x1;_0x43af69=_0x43af69['nextSibling'];}return!0x0;}(_0x228988)?o(_0x41f55e,'*Format:*\x20remove\x20from\x20%0',o(_0x41f55e,function(_0x1cd767){return'ELEMENT_'+_0x1cd767['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x228988))):o(_0x41f55e,'*Outdent:*\x20%0',o(_0x41f55e,'ELEMENT_LIST_ITEM')),_0x12a4c8={'type':'format','content':_0x579305};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2b79de['multipleBlocks']&&(_0x579305='*Merge:*\x20%0',_0x12a4c8={'type':'deletion','content':o(_0x41f55e,_0x579305,o(_0x41f55e,'ELEMENT_LIST_ITEM'))});}return _0x12a4c8;});}}function le(_0x7a23aa){let _0x24ed90=_0x7a23aa['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x24ed90;){const _0x4b5edf=_0x24ed90['getAttribute']('listItemId');if(!_0x4b5edf)return!0x1;if(_0x4b5edf==_0x7a23aa['data']['newValue'])return'newValue';if(_0x4b5edf==_0x7a23aa['data']['oldValue'])return'oldValue';_0x24ed90=_0x24ed90['previousSibling'];}return!0x1;}class ue extends _0x17098e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x169718=this['editor']['config']['get']('list.properties'),_0x355c2f=this['editor']['plugins']['get']('TrackChangesEditing');_0x169718['styles']&&(_0x355c2f['enableDefaultAttributesIntegration']('listStyle'),_0x355c2f['registerBlockAttribute']('listStyle')),_0x169718['reversed']&&(_0x355c2f['enableDefaultAttributesIntegration']('listReversed'),_0x355c2f['registerBlockAttribute']('listReversed')),_0x169718['startIndex']&&(_0x355c2f['enableDefaultAttributesIntegration']('listStart'),_0x355c2f['registerBlockAttribute']('listStart'));const _0x4f4757={'type':'format','content':''};_0x355c2f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4986e3=this['editor']['locale'];_0x355c2f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4986e3,'FORMAT_LIST_REVERSED')),_0x355c2f['descriptionFactory']['registerDescriptionCallback'](_0x21af2a=>{const {data:_0xab378}=_0x21af2a;if(_0xab378&&'listReversed'==_0xab378['key'])return null==_0xab378['newValue']||0x0==_0xab378['newValue']&&null==_0xab378['oldValue']?_0x4f4757:void 0x0;}),_0x355c2f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4986e3,'FORMAT_LIST_START')),_0x355c2f['descriptionFactory']['registerDescriptionCallback'](_0x3a8c71=>{const {data:_0x113177}=_0x3a8c71;if(_0x113177&&'listStart'==_0x113177['key'])return null==_0x113177['newValue']||0x1==_0x113177['newValue']&&null==_0x113177['oldValue']?_0x4f4757:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x46305c=>{if(_0x46305c['batch']['isUndo'])return!0x1;let _0x32895e=!0x1;const _0x25d9ed=_0x355c2f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b332d=>{const _0x352c09=_0x355c2f['_getAttributeKey'](_0x5b332d);return'listStart'==_0x352c09||'listReversed'==_0x352c09;});for(const _0x3cfb5c of _0x25d9ed){const _0xfa81c9=_0x3cfb5c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xfa81c9||'customNumbered'==_0xfa81c9)continue;_0x355c2f['_findSuggestions'](_0x3cfb5c['getFirstRange'](),'attribute')['find'](_0x449154=>'listType'==_0x355c2f['_getAttributeKey'](_0x449154['suggestion']))||(_0x46305c['removeMarker'](_0x3cfb5c['getFirstMarker']()),_0x32895e=!0x0);}return _0x32895e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x313adc){const _0x53f2fd=this['editor']['locale'],{data:_0x37c328}=_0x313adc,_0x82c811={'type':'format','content':''};if(!_0x37c328||'listStyle'!=_0x37c328['key'])return;if(!_0x37c328['oldValue'])return'default'==_0x37c328['newValue']?_0x82c811:{'type':'format','content':''+o(_0x53f2fd,'*Set\x20format:*\x20%0',o(_0x53f2fd,this['_getTranslationKeyForListStyle'](_0x37c328['newValue'])))};if(!_0x37c328['newValue']){if('default'==_0x37c328['oldValue'])return _0x82c811;let _0x349241=_0x313adc['head'];for(;_0x349241;){if(_0x349241['data']&&'listType'==_0x349241['data']['key']&&_0x349241['data']['newValue'])return _0x82c811;_0x349241=_0x349241['next'];}return{'type':'format','content':''+o(_0x53f2fd,'*Remove\x20format:*\x20%0',o(_0x53f2fd,this['_getTranslationKeyForListStyle'](_0x37c328['oldValue'])))};}if('default'!=_0x37c328['newValue'])return{'type':'format','content':''+o(_0x53f2fd,'*Set\x20format:*\x20%0',o(_0x53f2fd,this['_getTranslationKeyForListStyle'](_0x37c328['newValue'])))};let _0x143609=_0x313adc['head'];for(;_0x143609;){if(_0x143609['data']&&'listType'==_0x143609['data']['key']&&_0x143609['data']['newValue']&&_0x143609['data']['oldValue'])return _0x82c811;_0x143609=_0x143609['next'];}return{'type':'format','content':o(_0x53f2fd,'*Set\x20format:*\x20%0',o(_0x53f2fd,'ELEMENT_'+_0x313adc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x34a96a=this['editor'],_0x2a249e=_0x34a96a['locale'];_0x34a96a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dc38a=>{if('formatBlock'!=_0x1dc38a['type'])return;const {data:_0x56fb93}=_0x1dc38a;if(!_0x56fb93)return;let _0x460b89,_0x5db51f;switch(_0x56fb93['commandName']){case'listStyle':_0x460b89='*Change\x20to:*\x20%0',_0x5db51f={'type':'format','content':o(_0x2a249e,_0x460b89,o(_0x2a249e,this['_getTranslationKeyForListStyle'](_0x56fb93['commandParams'][0x0]['type'])))};break;case'listReversed':_0x460b89=_0x56fb93['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5db51f={'type':'format','content':o(_0x2a249e,_0x460b89)};break;case'listStart':_0x460b89='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5db51f={'type':'format','content':o(_0x2a249e,_0x460b89,_0x56fb93['commandParams'][0x0]['startIndex'])};}return _0x5db51f;});}['_getTranslationKeyForListStyle'](_0xe67c6a){return'ELEMENT_'+function(_0xcbba2e){if(pe['includes'](_0xcbba2e))return'bulleted';if(ye['includes'](_0xcbba2e))return'numbered';return null;}(_0xe67c6a)['toUpperCase']()+'_LIST_'+_0xe67c6a['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x17098e{static get['requires'](){return[_0x257dc1];}['init'](){const _0x5a92af=this['editor'],_0x4a63c7=_0x5a92af['plugins']['get']('TrackChangesEditing'),_0x4fd302=_0x5a92af['commands']['get']('enter');_0x4a63c7['enableCommand']('enter',()=>{_0x5a92af['model']['change'](_0x371c5e=>{const _0x57230f=_0x5a92af['model']['document']['selection'],_0x9e2120=_0x57230f['getFirstPosition'](),_0x4e8236=_0x19d68e['fromRange'](_0x57230f['getFirstRange']());if(_0x4fd302['enterBlock'](_0x371c5e)){const _0x7546bd=_0x5a92af['model']['createPositionAt'](_0x9e2120['parent']['nextSibling'],0x0),_0xff87a5=_0x371c5e['createRange'](_0x9e2120,_0x7546bd);_0x4a63c7['markInsertion'](_0xff87a5);}else _0x371c5e['setSelection'](_0x371c5e['createRange'](_0x4e8236['end']));_0x4e8236['detach'](),_0x4fd302['fire']('afterExecute',{'writer':_0x371c5e});});}),_0x5a92af['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5a92af,'split'),{'priority':'high'}),_0x5a92af['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x415608,_0x3d19ba,_0x26eedf)=>{const _0x258145=_0x26eedf['mapper']['markerNameToElements'](_0x3d19ba['markerName']);if(_0x258145){for(const _0x1cf384 of _0x258145)_0x1cf384['hasClass']('ck-suggestion-marker-split')&&(_0x26eedf['mapper']['unbindElementFromMarkerName'](_0x1cf384,_0x3d19ba['markerName']),_0x26eedf['writer']['remove'](_0x1cf384));}},{'priority':'high'}),_0x5a92af['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x31559f,_0x4c8dd5,_0x5d901a)=>{_0x5d901a['options']['showSuggestionHighlights']&&_e(_0x5a92af,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x31559f,_0x4c8dd5,_0x5d901a);},{'priority':'high'});}}class J extends _0x17098e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1411a5=this['editor']['plugins']['get']('TrackChangesEditing');_0x1411a5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1411a5['enableCommand']('findNext'),_0x1411a5['enableCommand']('findPrevious'),_0x1411a5['enableCommand']('replace'),_0x1411a5['enableCommand']('replaceAll');}['handleFindCommand'](_0x39d16f,_0x4728b3,_0x371847={}){const _0x1ac822=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x39d16f(_0x429dab=>('string'==typeof _0x4728b3?_0x1ac822['findByTextCallback'](_0x4728b3,_0x371847):_0x4728b3)(_0x429dab)['filter'](_0xb3e34e=>!0x1===this['_isInDeletionRange'](_0xb3e34e,_0x429dab['item'])),_0x371847);}['_isInDeletionRange'](_0x407011,_0x2294bf){const _0x5e07cc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2294bf,_0x407011['start']),this['editor']['model']['createPositionAt'](_0x2294bf,_0x407011['end']));for(const _0x19432b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5e07cc['getIntersection'](_0x19432b['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 _0x17098e{['afterInit'](){const _0x1c4870=this['editor']['locale'],_0x51a02d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2ff90b,commandName:_0x4d09f7}of ro)this['editor']['plugins']['has'](_0x2ff90b)&&(_0x51a02d['enableDefaultAttributesIntegration'](_0x4d09f7),_0x51a02d['registerInlineAttribute'](_0x4d09f7));_0x1c4870['t'],_0x51a02d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1c4870,'FORMAT_FONT_SIZE')),_0x51a02d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1c4870,'FORMAT_FONT_FAMILY')),_0x51a02d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1c4870,'FORMAT_FONT_COLOR')),_0x51a02d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1c4870,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44a605=this['editor'],_0x288b1f=_0x44a605['locale'];_0x44a605['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d40aa=>{const _0x1a1d8a=_0x288b1f['t'];if('formatInline'!=_0x1d40aa['type'])return;const {data:_0x339d63}=_0x1d40aa;if(null!=_0x339d63){if('fontSize'==_0x339d63['commandName']){const _0x5952c9=_0x339d63['commandParams'][0x0]['value'];if(_0x5952c9){const _0x15c389=_0x1a1d8a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4c3816=>_0x4c3816['model']==_0x5952c9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x288b1f,'*Set\x20font\x20size:*\x20%0',_0x15c389)};}return{'type':'format','content':o(_0x288b1f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x339d63['commandName']){const _0x403c05=_0x339d63['commandParams'][0x0]['value'];return _0x403c05?{'type':'format','content':o(_0x288b1f,'*Set\x20font\x20family:*\x20%0',_0x403c05)}:{'type':'format','content':o(_0x288b1f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x339d63['commandName']){const _0x504e22=_0x339d63['commandParams'][0x0]['value'];if(_0x504e22){const _0x49c872=_0x48d038(this['editor']['config']['get']('fontColor.colors'))['find'](_0x940e53=>_0x940e53['model']==_0x504e22);let _0x2821fa=_0x504e22,_0x2799d0='';return _0x49c872&&(_0x2821fa=_0x49c872['label'],_0x2799d0=_0x1a1d8a(_0x2821fa)['toLowerCase']()),{'type':'format','content':o(_0x288b1f,'*Set\x20font\x20color:*\x20%0',_0x2799d0)['trim'](),'color':{'value':_0x504e22,'title':_0x2799d0||_0x2821fa}};}return{'type':'format','content':o(_0x288b1f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x339d63['commandName']){const _0x5a6368=_0x339d63['commandParams'][0x0]['value'];if(_0x5a6368){const _0x14bc6c=_0x48d038(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x309ba4=>_0x309ba4['model']==_0x5a6368);let _0x49e99f=_0x5a6368,_0x452b51='';return _0x14bc6c&&(_0x49e99f=_0x14bc6c['label'],_0x452b51=_0x1a1d8a(_0x49e99f)['toLowerCase']()),{'type':'format','content':o(_0x288b1f,'*Set\x20font\x20background\x20color:*\x20%0',_0x452b51)['trim'](),'color':{'value':_0x5a6368,'title':_0x452b51||_0x49e99f}};}return{'type':'format','content':o(_0x288b1f,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x17098e{['afterInit'](){const _0x4d806c=this['editor'],_0x41eb80=_0x4d806c['plugins']['get']('TrackChangesEditing'),_0x1dd91c=_0x4d806c['commands']['get']('copyFormat'),_0x5ce1d4=_0x4d806c['commands']['get']('pasteFormat');_0x1dd91c&&_0x5ce1d4&&(_0x41eb80['enableDefaultAttributesIntegration']('pasteFormat'),_0x41eb80['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x408c0b=this['editor'],_0x3fded8=_0x408c0b['locale'];_0x408c0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29bd21=>{if('formatBlock'!=_0x29bd21['type']&&'formatInline'!=_0x29bd21['type'])return;const {data:_0x2470b4}=_0x29bd21;if(_0x2470b4&&'pasteFormat'===_0x2470b4['commandName']){const _0x6b2a72=[],_0x595e0e=_0x2470b4['commandParams'][0x0];for(const [_0x21f7b1,_0x9d9e1b]of Object['entries'](_0x595e0e))_0x6b2a72['push'](so(_0x408c0b,_0x21f7b1,_0x9d9e1b));return _0x6b2a72['length']?{'type':'format','content':o(_0x3fded8,'*Set\x20format\x20to:*\x20%0',_0x6b2a72['join'](',\x20'))}:{'type':'format','content':o(_0x3fded8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x187a37,_0x9130a7,_0xb45af6){const _0x20a81f=_0x187a37['locale']['t'],_0x2f46ea=_0x9130a7['split'](/(?=[A-Z])/)['join']('\x20'),_0x94df01=_0x20a81f(_0x2f46ea['charAt'](0x0)['toUpperCase']()+_0x2f46ea['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xb45af6)return _0x94df01;if('fontColor'===_0x9130a7||'fontBackgroundColor'===_0x9130a7){const _0xcc4d5b=_0x48d038(_0x187a37['config']['get']('fontColor.colors'))['find'](_0x302bcd=>_0x302bcd['model']==_0xb45af6);return _0x94df01+'\x20('+(_0xcc4d5b?_0x20a81f(_0xcc4d5b['label'])['toLowerCase']():_0xb45af6)+')';}if('fontSize'===_0x9130a7&&isNaN(parseFloat(_0xb45af6))){const _0x47976e=_0x187a37['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x187a37['config']['get']('fontSize.options'))['find'](_0x25fa6f=>_0x25fa6f['model']==_0xb45af6);return _0x94df01+'\x20('+(_0x47976e?_0x20a81f(_0x47976e['title'])['toLowerCase']():_0xb45af6)+')';}return _0x94df01+'\x20('+_0xb45af6+')';}class Y extends _0x17098e{['afterInit'](){const _0x569b03=this['editor'];if(!_0x569b03['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x569b03['config']['get']('heading.options');const _0x538a5d=_0x569b03['locale'],_0x23bb30=_0x569b03['plugins']['get']('TrackChangesEditing');_0x23bb30['enableDefaultAttributesIntegration']('heading');for(const _0x32eede of this['_headingOptions'])'paragraph'!=_0x32eede['model']&&_0x23bb30['descriptionFactory']['registerElementLabel'](_0x32eede['model'],_0xd90f34=>{const _0x1c7954=this['_getHeadingLevel'](_0x32eede['model']);return null!==_0x1c7954?_0x4d7ae7(_0xd90f34,_0x1c7954):_0x18b0fa(_0xd90f34,_0x32eede['title']);});function _0x4d7ae7(_0x58343b,_0x2303aa){return o(_0x538a5d,'ELEMENT_HEADING',[_0x58343b,_0x2303aa]);}function _0x18b0fa(_0x313dd6,_0x2f7be7){return o(_0x538a5d,'ELEMENT_HEADING_CUSTOM',[_0x313dd6,_0x2f7be7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c6b8e=this['editor'],_0x539f9b=_0x3c6b8e['locale'];function _0x298dfc(_0x57e2b4,_0x13b079){return o(_0x539f9b,'ELEMENT_HEADING_CUSTOM',[_0x57e2b4,_0x13b079]);}_0x3c6b8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b4629=>{if('formatBlock'!=_0x3b4629['type'])return;const {data:_0xb8bfc6}=_0x3b4629;if(_0xb8bfc6&&'heading'==_0xb8bfc6['commandName']){const _0x2fb2f6=_0xb8bfc6['commandParams'][0x0]['value'],_0x282ef5=this['_getHeadingLevel'](_0x2fb2f6);if(null!==_0x282ef5)return{'type':'format','content':o(_0x539f9b,'*Change\x20to:*\x20%0',(_0x5052ed=0x1,_0x11bb1a=_0x282ef5,o(_0x539f9b,'ELEMENT_HEADING',[_0x5052ed,_0x11bb1a])))};const _0x326862=this['_headingOptions']['find'](_0x2ec96d=>_0x2ec96d['model']===_0x2fb2f6)['title'];return{'type':'format','content':o(_0x539f9b,'*Change\x20to:*\x20%0',_0x298dfc(0x1,_0x326862))};}var _0x5052ed,_0x11bb1a;});}['_getHeadingLevel'](_0x2971ec){var _0x3ec7dc,_0x265f8f;const _0x53e980=_0x2971ec['match'](/^heading(\d+)/);if(_0x53e980)return _0x53e980[0x1];const _0x445afa=null===(_0x3ec7dc=this['_headingOptions'])||void 0x0===_0x3ec7dc?void 0x0:_0x3ec7dc['find'](_0x15f687=>_0x15f687['model']==_0x2971ec);if(_0x445afa&&_0x445afa['view']){const _0x4d891c=_0x445afa['view'],_0xc6cc4b=(null!==(_0x265f8f=_0x4d891c['name'])&&void 0x0!==_0x265f8f?_0x265f8f:_0x4d891c)['match'](/^h(\d+)/);if(_0xc6cc4b)return _0xc6cc4b[0x1];}return null;}}class Z extends _0x17098e{['afterInit'](){const _0x53ae0f=this['editor'];if(!_0x53ae0f['plugins']['has']('HighlightEditing'))return;const _0x52cffe=_0x53ae0f['plugins']['get']('TrackChangesEditing'),_0x451eb1=_0x53ae0f['locale'];_0x52cffe['enableDefaultAttributesIntegration']('highlight'),_0x52cffe['registerInlineAttribute']('highlight'),_0x52cffe['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x451eb1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52f55e=this['editor'],_0x2206e5=_0x52f55e['locale'];_0x52f55e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e9439=>{if('formatInline'!=_0x3e9439['type'])return;const {data:_0x152103}=_0x3e9439;if(_0x152103&&'highlight'==_0x152103['commandName']){const _0x548738=_0x2206e5['t'],_0x4f7e75=_0x152103['commandParams'][0x0]['value'];if(_0x4f7e75){const _0x2dd940=_0x52f55e['config']['get']('highlight.options')['find'](_0x321488=>_0x321488['model']==_0x4f7e75),_0x16090a=_0x548738(_0x2dd940['title'])['toLowerCase']();return{'type':'format','content':o(_0x2206e5,'*Set\x20highlight:*\x20%0',_0x16090a),'color':{'value':_0x2dd940['color'],'title':_0x2dd940['title']}};}return{'type':'format','content':o(_0x2206e5,'*Remove\x20highlight*',o(_0x2206e5,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x17098e{['afterInit'](){const _0x838568=this['editor'];if(!_0x838568['plugins']['has']('HorizontalLineEditing'))return;_0x838568['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xeb428f=_0x838568['plugins']['get']('TrackChangesEditing'),_0x5dd73=_0x838568['locale'];_0xeb428f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x58d0ba=>o(_0x5dd73,'ELEMENT_HORIZONTAL_LINE',_0x58d0ba)),_0x838568['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x29ee0a,{writer:_0x534c74,options:_0x4695e6})=>{if(!_0x4695e6['showSuggestionHighlights'])return null;const _0x4b3002=_0x534c74['createContainerElement']('div'),_0x4415f2=_0x534c74['createEmptyElement']('hr');return _0x534c74['addClass']('ck-horizontal-line',_0x4b3002),_0x534c74['insert'](_0x534c74['createPositionAt'](_0x4b3002,0x0),_0x4415f2),_0x4b3002;},'converterPriority':'high'});}}class et extends _0x17098e{['afterInit'](){const _0x30e943=this['editor'];if(!_0x30e943['plugins']['has']('HtmlEmbed'))return;const _0x132eab=_0x30e943['plugins']['get']('TrackChangesEditing'),_0x5d1f9d=_0x30e943['locale'];_0x132eab['descriptionFactory']['registerElementLabel']('rawHtml',_0xd2194a=>o(_0x5d1f9d,'ELEMENT_HTML_EMBED',_0xd2194a)),_0x132eab['enableDefaultAttributesIntegration']('htmlEmbed'),_0x132eab['registerBlockAttribute']('value'),_0x132eab['descriptionFactory']['registerDescriptionCallback'](_0x2ca3f8=>{if('attribute'!=_0x2ca3f8['type'])return;const {data:_0x50ffbf}=_0x2ca3f8;if(_0x50ffbf&&'value'==_0x50ffbf['key']&&_0x2ca3f8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3442ec=o(_0x5d1f9d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5d1f9d,'*Change\x20%0\x20content*',_0x3442ec)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37aed6=this['editor'],_0x381c46=_0x37aed6['locale'];_0x37aed6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x158802=>{if('formatBlock'!=_0x158802['type'])return;const {data:_0x1238dc}=_0x158802;if(_0x1238dc&&'htmlEmbed'==_0x1238dc['commandName']){const _0x3170cf=o(_0x381c46,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x381c46,'*Change\x20%0\x20content*',_0x3170cf)};}});}}class it extends _0x17098e{['afterInit'](){const _0x1dbc9f=this['editor'];if(!_0x1dbc9f['plugins']['has']('ImageEditing'))return;const _0xe47113=_0x1dbc9f['plugins']['get']('TrackChangesEditing'),_0x105df7=_0x1dbc9f['plugins']['get']('ImageUtils'),_0x146335=_0x1dbc9f['locale'];_0xe47113['enableCommand']('insertImage'),_0xe47113['descriptionFactory']['registerElementLabel']('imageBlock',_0x253dbc=>o(_0x146335,'ELEMENT_IMAGE',_0x253dbc)),_0xe47113['descriptionFactory']['registerElementLabel']('imageInline',_0x367124=>o(_0x146335,'ELEMENT_INLINE_IMAGE',_0x367124)),_0xe47113['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x146335,'ELEMENT_CAPTION')),_0x1dbc9f['plugins']['has']('ImageUploadEditing')&&_0xe47113['enableCommand']('uploadImage'),_0x1dbc9f['plugins']['has']('ImageBlockEditing')&&_0x1dbc9f['plugins']['has']('ImageInlineEditing')&&(_0xe47113['enableCommand']('imageTypeInline',(_0x307a8e,_0xac7551)=>{const _0x3f13de=_0x105df7['getClosestSelectedImageElement'](_0x1dbc9f['model']['document']['selection']);_0x1dbc9f['model']['change'](()=>{_0xe47113['markBlockFormat'](_0x3f13de,{'commandName':'imageTypeInline','commandParams':[_0xac7551]},[],'convertBlockImageToInline');});}),_0xe47113['enableCommand']('imageTypeBlock',(_0xa4952e,_0x5a6bfb)=>{_0x1dbc9f['model']['change'](_0x26a991=>{let _0x38b271=_0x105df7['getClosestSelectedImageElement'](_0x1dbc9f['model']['document']['selection']),_0x194d56=_0x26a991['createRangeOn'](_0x38b271);const _0x4bc9f5=_0x458ffb['fromPosition'](_0x194d56['start'],'toPrevious'),_0x10026e=_0x458ffb['fromPosition'](_0x194d56['end'],'toNext');_0xe47113['forceDefaultExecution'](()=>_0xa4952e(_0x5a6bfb)),_0x38b271=_0x105df7['getClosestSelectedImageElement'](_0x1dbc9f['model']['document']['selection']),_0x194d56=_0x26a991['createRangeOn'](_0x38b271);const _0x314ce6=_0x26a991['createRange'](_0x4bc9f5,_0x10026e);_0x4bc9f5['detach'](),_0x10026e['detach'](),_0xe47113['markBlockFormat'](_0x38b271,{'commandName':'imageTypeInline','commandParams':[_0x5a6bfb]},[],'convertInlineImageToBlock'),_0x314ce6['start']['isBefore'](_0x194d56['start'])&&_0xe47113['markInsertion'](_0x26a991['createRange'](_0x314ce6['start'],_0x194d56['start']),'convertInlineImageToBlock'),_0x194d56['end']['isBefore'](_0x314ce6['end'])&&_0xe47113['markInsertion'](_0x26a991['createRange'](_0x194d56['end'],_0x314ce6['end']),'convertInlineImageToBlock');});}),_0xe47113['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xe47113['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xe47113['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xe47113['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xe47113['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xe47113['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1d208d])=>{const _0x2157a6=_0xe47113['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x9f21fc=_0x1d208d['start'],_0x581266=_0x1d208d['end'];const _0x22980d=_0x1dbc9f['model']['schema']['getNearestSelectionRange'](_0x9f21fc,'backward'),_0x3c1143=_0x1dbc9f['model']['schema']['getNearestSelectionRange'](_0x581266,'forward');_0x22980d['isCollapsed']&&(_0x9f21fc=_0x22980d['start']),_0x3c1143['isCollapsed']&&(_0x581266=_0x3c1143['end']),_0x2157a6([_0x1dbc9f['model']['createRange'](_0x9f21fc,_0x581266)]);}),_0xe47113['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1f6426),_0xe47113['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1f6426)),_0x1dbc9f['plugins']['has']('ImageCaptionEditing')&&(_0xe47113['enableCommand']('toggleImageCaption',(_0x3ec66c,_0x224e30)=>{const _0x25c514=_0x1dbc9f['plugins']['get']('ImageCaptionUtils');let _0x2c0db0=_0x105df7['getClosestSelectedImageElement'](_0x1dbc9f['model']['document']['selection']),_0x43489d=_0x25c514['getCaptionFromImageModelElement'](_0x2c0db0);_0x1dbc9f['model']['change'](()=>{if(_0x43489d)return void _0xe47113['markDeletion'](_0x1dbc9f['model']['createRangeOn'](_0x43489d));const _0x136891=_0x105df7['isBlockImage'](_0x2c0db0);_0x3ec66c(_0x224e30),_0x2c0db0=_0x105df7['getClosestSelectedImageElement'](_0x1dbc9f['model']['document']['selection']),_0x43489d=_0x25c514['getCaptionFromImageModelElement'](_0x2c0db0),_0xe47113['markInsertion'](_0x1dbc9f['model']['createRangeOn'](_0x43489d),_0x136891?null:'imageCaption');});}),_0xe47113['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1f6426));const _0x1c5733=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x898e44(_0x47bb79,_0x895ceb){const _0x897ba3=_0x1c5733['findIndex'](({type:_0x377309,subType:_0x5b29e6})=>_0x47bb79['type']==_0x377309&&_0x47bb79['subType']==_0x5b29e6),_0x18c1de=_0x1c5733['findIndex'](({type:_0x3d302e,subType:_0x219c37})=>_0x895ceb['type']==_0x3d302e&&_0x895ceb['subType']==_0x219c37);if(_0x897ba3<0x0||_0x18c1de<0x0)return!0x1;const _0x3dffcf=_0x47bb79['getFirstRange'](),_0x3e8ce2=_0x895ceb['getFirstRange']();if((0x0==_0x897ba3||0x1==_0x897ba3)&&0x2==_0x18c1de&&_0x3dffcf['isIntersecting'](_0x3e8ce2))return!0x0;if(0x2==_0x897ba3&&0x3==_0x18c1de){const _0x333bf5=_0xe47113['_findSuggestions'](_0x3dffcf,'insertion')['filter'](({suggestion:_0x27f2bf,meta:_0x4afa61})=>_0x4afa61['isOwn']&&'convertInlineImageToBlock'==_0x27f2bf['subType']);if(_0x333bf5['length']>0x1&&_0x3e8ce2['end']['isEqual'](_0x3dffcf['start']))return!0x0;if(0x1==_0x333bf5['length']&&(_0x3dffcf['start']['isEqual'](_0x3e8ce2['end'])||_0x3dffcf['end']['isEqual'](_0x3e8ce2['start'])))return!0x0;}if(0x3==_0x897ba3&&0x3==_0x18c1de&&_0x3dffcf['start']['isBefore'](_0x3e8ce2['start'])){const _0x1c05c5=_0x3dffcf['end']['nodeAfter'],_0x4dcbe3=_0x3e8ce2['start']['nodeBefore'];return _0x105df7['isBlockImage'](_0x1c05c5)&&_0x1c05c5===_0x4dcbe3;}return!0x1;}function _0x1f6426(_0x2b7909,_0x3d987e){return _0x898e44(_0x2b7909,_0x3d987e)?[_0x2b7909,_0x3d987e]:_0x898e44(_0x3d987e,_0x2b7909)?[_0x3d987e,_0x2b7909]:null;}_0x1dbc9f['plugins']['has']('ImageResize')&&(_0xe47113['enableDefaultAttributesIntegration']('resizeImage'),_0xe47113['registerBlockAttribute']('resizedWidth'),_0xe47113['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x146335,'FORMAT_IMAGE_SIZE'))),_0x1dbc9f['plugins']['has']('ImageTextAlternativeEditing')&&(_0xe47113['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xe47113['registerBlockAttribute']('alt')),_0xe47113['descriptionFactory']['registerDescriptionCallback'](_0x590da0=>{if(!!_0x1c5733['find'](({type:_0x38ddde,subType:_0xf5df3a})=>_0x590da0['type']==_0x38ddde&&_0x590da0['subType']==_0xf5df3a))return _0x590da0['previous']?{}:void 0x0;}),_0xe47113['descriptionFactory']['registerDescriptionCallback'](_0x2258c5=>{if('insertion'==_0x2258c5['type']||'deletion'==_0x2258c5['type']){const _0x128217=_0x2258c5['getContainedElement']();if(_0x128217&&_0x128217['is']('element','caption'))return{'type':'insertion'==_0x2258c5['type']?'addObject':'removeObject','element':_0x128217,'quantity':0x1};}}),_0xe47113['descriptionFactory']['registerDescriptionCallback'](_0x32b258=>'formatBlock'==_0x32b258['type']&&'convertInlineImageToBlock'==_0x32b258['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x32b258['type']&&'convertBlockImageToInline'==_0x32b258['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xe47113['descriptionFactory']['registerDescriptionCallback'](_0x43e79a=>{if('attribute'!=_0x43e79a['type'])return;const {data:_0x55277e}=_0x43e79a;if(!_0x55277e||'alt'!=_0x55277e['key'])return;const _0x5adb02=_0x55277e['newValue'];return _0x5adb02?{'type':'format','content':o(_0x146335,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5adb02+'\x22')}:{'type':'format','content':o(_0x146335,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18d3e2=this['editor'],_0x539f6d=_0x18d3e2['locale'];_0x18d3e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f1dec=>{if('formatBlock'!=_0x1f1dec['type']&&'formatInline'!=_0x1f1dec['type'])return;const {data:_0x2c88cc}=_0x1f1dec;if(_0x2c88cc){if('imageTextAlternative'==_0x2c88cc['commandName']){const _0x5ea026=_0x2c88cc['commandParams'][0x0]['newValue'];return _0x5ea026?{'type':'format','content':o(_0x539f6d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5ea026+'\x22')}:{'type':'format','content':o(_0x539f6d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2c88cc['commandName']){const _0x209bbd=_0x2c88cc['commandParams'][0x0]['width'];return _0x209bbd?{'type':'format','content':o(_0x539f6d,'*Set\x20image\x20width:*\x20%0',_0x209bbd)}:{'type':'format','content':o(_0x539f6d,'*Reset\x20image\x20width*')};}}});}}class st extends _0x17098e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x462f33=this['editor']['locale'],_0x50f1b4=this['editor']['plugins']['get']('TrackChangesEditing');_0x50f1b4['enableDefaultAttributesIntegration']('replaceImageSource'),_0x50f1b4['registerBlockAttribute']('src'),_0x50f1b4['descriptionFactory']['registerDescriptionCallback'](_0x2435cc=>{if('attribute'!=_0x2435cc['type'])return;const {data:_0x21263b}=_0x2435cc;return _0x21263b&&'src'==_0x21263b['key']?_0x21263b['newValue']&&_0x21263b['oldValue']?{'type':'format','content':o(_0x462f33,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3e1005=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e1005['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3e1005['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3e1005['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3e1005['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b7789=this['editor'],_0x4abc03=_0x4b7789['locale'];_0x4b7789['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e423a=>{if('formatBlock'!=_0x4e423a['type']&&'formatInline'!=_0x4e423a['type'])return;const {data:_0x46ff61}=_0x4e423a;if(!_0x46ff61||'replaceImageSource'!=_0x46ff61['commandName'])return;return{'type':'format','content':o(_0x4abc03,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x17098e{['afterInit'](){const _0x5a3996=this['editor'];if(!_0x5a3996['plugins']['has']('ImageStyleEditing'))return;const _0x144b40=_0x5a3996['plugins']['get']('TrackChangesEditing'),_0x55bcc3=_0x5a3996['plugins']['get']('ImageUtils'),_0x3b3aac={};_0x144b40['enableCommand']('imageStyle',(_0x2b46a4,_0x4e008c)=>{const _0x30cdce=_0x5a3996['plugins']['get']('Users')['me'],_0x384a8a=_0x5a3996['commands']['get']('imageStyle');let _0x1a36a8=_0x55bcc3['getClosestSelectedImageElement'](_0x5a3996['model']['document']['selection']),_0x35c32c=_0x5a3996['model']['createRangeOn'](_0x1a36a8),_0x3457f4=_0x384a8a['value'];if(_0x3457f4==_0x4e008c['value'])return;const _0x4635e6={'commandName':'imageStyle','commandParams':[_0x4e008c],'formatGroupId':_0x23d99a()};_0x5a3996['model']['change'](()=>{if(_0x144b40['getSuggestions']()['filter'](_0x5e6969=>_0x5e6969['isInContent']&&_0x30cdce==_0x5e6969['author']&&('formatBlock'==_0x5e6969['type']||'formatInline'==_0x5e6969['type'])&&('imageStylePreApply'==_0x5e6969['subType']||'imageStylePostApply'==_0x5e6969['subType'])&&_0x5e6969['getFirstRange']()['isEqual'](_0x35c32c))['forEach'](_0xbb43c8=>_0x144b40['discardSuggestion'](_0xbb43c8['head'])),_0x1a36a8=_0x55bcc3['getClosestSelectedImageElement'](_0x5a3996['model']['document']['selection']),_0x35c32c=_0x5a3996['model']['createRangeOn'](_0x1a36a8),_0x384a8a['refresh'](),_0x5a3996['commands']['get']('imageTypeInline')['refresh'](),_0x5a3996['commands']['get']('imageTypeBlock')['refresh'](),_0x3457f4=_0x384a8a['value'],_0x3457f4!=_0x4e008c['value'])return _0x55bcc3['isInlineImage'](_0x1a36a8)&&_0x384a8a['shouldConvertImageType'](_0x4e008c['value'],_0x1a36a8)?(_0x2b46a4({..._0x4e008c,'setImageSizes':!0x1}),_0x1a36a8=_0x55bcc3['getClosestSelectedImageElement'](_0x5a3996['model']['document']['selection']),void _0x144b40['markBlockFormat'](_0x1a36a8,{..._0x4635e6,'commandReversedParams':[{'value':_0x3457f4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x55bcc3['isBlockImage'](_0x1a36a8)?_0x144b40['markBlockFormat'](_0x1a36a8,_0x4635e6,[],'imageStylePostApply'):_0x144b40['markInlineFormat'](_0x35c32c,_0x4635e6,'imageStylePostApply'));});});for(const _0x259eda of _0x5a3996['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3b3aac[_0x259eda['name']]=_0x259eda['title']['toLowerCase']();_0x144b40['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x144b40['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x144b40['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x144b40['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4b41ec])=>{_0x55bcc3['setImageNaturalSizeAttributes'](_0x4b41ec['getContainedElement']());}),_0x144b40['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x213bbd,_0x25c61b)=>{_0x144b40['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x213bbd,{'commandName':_0x25c61b['commandName'],'commandParams':_0x25c61b['commandReversedParams']});}),_0x144b40['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4ece9c,_0x431289){if(_0x21519b(_0x4ece9c,_0x431289))return[_0x4ece9c,_0x431289];if(_0x21519b(_0x431289,_0x4ece9c))return[_0x431289,_0x4ece9c];return null;});const _0x416903=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x21519b(_0xe30a3f,_0x216dc9){const _0x26446b=_0x416903['findIndex'](({type:_0xc21d6f,subType:_0x5e6428})=>_0xe30a3f['type']==_0xc21d6f&&_0xe30a3f['subType']==_0x5e6428),_0x513e97=_0x416903['findIndex'](({type:_0x110d27,subType:_0x414078})=>_0x216dc9['type']==_0x110d27&&_0x216dc9['subType']==_0x414078);if(_0x26446b<0x0||_0x513e97<0x0)return!0x1;const _0x2a7bcd=_0xe30a3f['getFirstRange'](),_0x2bafb3=_0x216dc9['getFirstRange']();if((0x0==_0x26446b||0x1==_0x26446b)&&0x2==_0x513e97&&_0x2a7bcd['isIntersecting'](_0x2bafb3))return!0x0;if(0x2==_0x26446b&&0x3==_0x513e97){const _0x1fcc68=_0x144b40['_findSuggestions'](_0x2a7bcd,'insertion')['filter'](({suggestion:_0x44513f,meta:_0x531312})=>_0x531312['isOwn']&&'convertInlineImageToBlock'==_0x44513f['subType']);if(_0x1fcc68['length']>0x1&&_0x2bafb3['end']['isEqual'](_0x2a7bcd['start']))return!0x0;if(0x1==_0x1fcc68['length']&&(_0x2a7bcd['start']['isEqual'](_0x2bafb3['end'])||_0x2a7bcd['end']['isEqual'](_0x2bafb3['start'])))return!0x0;}if(0x3==_0x26446b&&0x3==_0x513e97&&_0x2a7bcd['start']['isBefore'](_0x2bafb3['start'])){const _0x318a8d=_0x2a7bcd['end']['nodeAfter'],_0x3947c9=_0x2bafb3['start']['nodeBefore'];return _0x55bcc3['isBlockImage'](_0x318a8d)&&_0x318a8d===_0x3947c9;}return!0x1;}_0x5a3996['model']['document']['registerPostFixer'](()=>{let _0x35917e=!0x1;const _0xb57757=Array['from'](_0x5a3996['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe18435,data:_0x11dc69}of _0xb57757){const {group:_0xd090bf,type:_0x619fdb,subType:_0x351dcc,id:_0x3cdc49}=_0x144b40['_splitMarkerName'](_0xe18435);if('suggestion'==_0xd090bf&&_0x144b40['hasSuggestion'](_0x3cdc49)){if('formatBlock'==_0x619fdb&&('imageStylePreApply'==_0x351dcc||'imageStylePostApply'==_0x351dcc)){const _0x2eaf12=_0x144b40['getSuggestion'](_0x3cdc49);if(_0x11dc69['newRange']){const _0x991911=_0x2eaf12['getFirstRange']()['getContainedElement']();if(_0x55bcc3['isBlockImage'](_0x991911))continue;_0x144b40['discardSuggestion'](_0x2eaf12),_0x35917e=!0x0;}}if('insertion'==_0x619fdb&&'imageCaption'==_0x351dcc&&!_0x11dc69['newRange']){const _0x56ff62=_0x144b40['getSuggestion'](_0x3cdc49);_0x56ff62['next']&&_0x56ff62['next']['isInContent']&&(_0x144b40['discardSuggestion'](_0x56ff62['next']),_0x35917e=!0x0);}}}return _0x35917e;}),this['_registerLegacyDescription'](_0x3b3aac);}['_registerLegacyDescription'](_0x401dcf){const _0x37291b=this['editor'],_0x4a0066=_0x37291b['locale'];_0x37291b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x400c4e=>{if('formatBlock'!=_0x400c4e['type']&&'formatInline'!=_0x400c4e['type'])return;const {data:_0x1cb194}=_0x400c4e;if(!_0x1cb194||'imageStyle'!=_0x1cb194['commandName'])return;const _0x23336c=_0x1cb194['commandParams'][0x0]['value'];return _0x1b8e6d('side'===_0x23336c?o(_0x4a0066,'FORMAT_SIDE_IMAGE'):_0x401dcf[_0x23336c]||_0x23336c);function _0x1b8e6d(_0x222fb4){return{'type':'format','content':o(_0x4a0066,'*Format:*\x20%0',_0x222fb4)};}});}}class ot extends _0x17098e{['afterInit'](){const _0x33e18f=this['editor'],_0x4fe0ba=_0x33e18f['commands']['get']('importWord'),_0x53c5f7=_0x33e18f['commands']['get']('trackChanges');_0x4fe0ba&&(_0x4fe0ba['on']('execute',(_0x4df14e,[,_0x3a923b])=>{this['_trackChangesValueDuringImport']=_0x53c5f7['value'],_0x3a923b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4fe0ba,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4fe0ba,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x53c5f7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x33e18f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3d6de4,_0x3b1575){const {suggestions:_0x1f2995}=_0x3b1575,_0x1d894c=this['editor']['commands']['get']('trackChanges'),_0x3544c9=_0x1d894c['value'];this['_trackChangesValueDuringImport']!==_0x3544c9&&(_0x1d894c['execute'](),this['_trackChangesExecuted']=!0x0),_0x1f2995&&_0x1f2995['forEach'](({id:_0x2daeec,type:_0x2fe1a1,author:_0x20fa38,created_at:_0x3e73d8})=>{const _0x4d30c1={'id':_0x2daeec,'type':_0x2fe1a1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x20fa38,'createdAt':_0x3e73d8?new Date(_0x3e73d8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4d30c1);});}constructor(_0x5af36a){super(_0x5af36a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x17098e{['afterInit'](){const _0x2892c4=this['editor'],_0x208f07=_0x2892c4['plugins']['get']('TrackChangesEditing');if(_0x2892c4['plugins']['has']('IndentEditing')&&(_0x208f07['enableCommand']('indent'),_0x208f07['enableCommand']('outdent')),_0x2892c4['plugins']['has']('IndentBlock')){for(const _0x304181 of['indentBlock','outdentBlock'])_0x208f07['enableDefaultAttributesIntegration'](_0x304181);}const _0xec361e=_0x2892c4['locale'];_0x208f07['registerBlockAttribute']('blockIndent'),_0x208f07['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xec361e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x353e47=this['editor'],_0x5d5dbf=_0x353e47['locale'],_0x4e3c60=_0x353e47['plugins']['get']('TrackChangesEditing');_0x4e3c60['descriptionFactory']['registerDescriptionCallback'](_0x48cc94=>{if('formatBlock'!=_0x48cc94['type'])return;const {data:_0x2795f8}=_0x48cc94;if(!_0x2795f8)return;if('indentBlock'!=_0x2795f8['commandName']&&'outdentBlock'!=_0x2795f8['commandName'])return;const _0x336d76=_0x48cc94['getItems']()[0x0],_0x32075f=_0x4e3c60['descriptionFactory']['getItemLabel'](_0x336d76);return'indentBlock'==_0x2795f8['commandName']?{'type':'format','content':o(_0x5d5dbf,'*Indent:*\x20%0',_0x32075f)}:'outdentBlock'==_0x2795f8['commandName']?{'type':'format','content':o(_0x5d5dbf,'*Outdent:*\x20%0',_0x32075f)}:void 0x0;});}}class at extends _0x17098e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x17098e{['afterInit'](){const _0x45a464=this['editor'];if(!_0x45a464['plugins']['has']('LinkEditing'))return;const _0x13b811=_0x45a464['plugins']['get']('TrackChangesEditing'),_0x5ee706=_0x45a464['commands']['get']('link');_0x13b811['enableDefaultAttributesIntegration']('link'),_0x13b811['enableDefaultAttributesIntegration']('unlink'),_0x13b811['registerInlineAttribute']('linkHref');for(const _0x30dbe2 of _0x5ee706['manualDecorators'])_0x13b811['registerInlineAttribute'](_0x30dbe2['id']),_0x13b811['descriptionFactory']['registerAttributeLabel'](_0x30dbe2['id'],'link\x20('+_0x30dbe2['label']['toLowerCase']()+')');_0x13b811['descriptionFactory']['registerDescriptionCallback'](_0x177e36=>{if('attribute'!=_0x177e36['type'])return;const {data:_0x3c5cca}=_0x177e36;if(!_0x3c5cca||'linkHref'!=_0x3c5cca['key'])return;const _0x3079b1=_0x3c5cca['newValue'],_0x57ce95=_0x45a464['locale'];return{'type':'format','content':null==_0x3079b1?o(_0x57ce95,'*Remove\x20link*'):o(_0x57ce95,'*Set\x20link:*\x20%0','\x22'+_0x3079b1+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x67b5ba=this['editor'],_0x2ad97f=_0x67b5ba['locale'];_0x67b5ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56f54e=>{if('formatInline'!=_0x56f54e['type'])return;const {data:_0x19f79a}=_0x56f54e;if(_0x19f79a){if('link'==_0x19f79a['commandName']){const _0x271579=_0x19f79a['commandParams'][0x0];return{'type':'format','content':o(_0x2ad97f,'*Set\x20link:*\x20%0','\x22'+_0x271579+'\x22')};}return'unlink'==_0x19f79a['commandName']?{'type':'format','content':o(_0x2ad97f,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x17098e{['afterInit'](){const _0x1358cb=this['editor'],_0x48766c=_0x1358cb['locale'];if(!_0x1358cb['plugins']['has']('LegacyListEditing'))return;const _0x4a7bc1=_0x1358cb['plugins']['get']('TrackChangesEditing'),_0x343511=_0x1358cb['plugins']['has']('LegacyTodoListEditing');function _0x333903(_0x4ab8dc){return()=>{const _0x118448=_0x1358cb['model']['document']['selection'],_0x34e909=_0x1358cb['commands']['get'](_0x4ab8dc);if(_0x34e909['value'])return void _0x1358cb['execute']('paragraph',{});const _0x2b645a=_0x4ab8dc['slice'](0x0,-0x4),_0x1e50f5=function(_0x38d6b2,_0x1da73d,_0x1d27dd){let _0x57aeb0=Array['from'](_0x38d6b2)['filter'](_0xf24ae7=>function(_0x2bd6f0,_0x5f3cc5){return _0x5f3cc5['checkChild'](_0x2bd6f0['parent'],'listItem')&&!_0x5f3cc5['isObject'](_0x2bd6f0);}(_0xf24ae7,_0x1d27dd));_0x57aeb0=_0x57aeb0['filter'](_0x189b43=>!_0x189b43['is']('element','listItem')||_0x189b43['getAttribute']('listType')!=_0x1da73d);const _0x252f4c=new Set();for(const _0x3bb69d of _0x57aeb0)_0x3bb69d['is']('element','listItem')?_0x252f4c['add'](me(_0x3bb69d)):_0x252f4c['add'](_0x3bb69d);return Array['from'](_0x252f4c);}(_0x118448['getSelectedBlocks'](),_0x2b645a,_0x1358cb['model']['schema']);_0x1358cb['model']['change'](()=>{for(const _0x24a5ce of _0x1e50f5)_0x4a7bc1['markBlockFormat'](_0x24a5ce,{'commandName':_0x4ab8dc,'commandParams':[{'forceValue':!_0x34e909['value']}],'formatGroupId':'blockName'},fe(_0x24a5ce));});};}function _0x5c4ad9(_0xe20369){return()=>{const _0x5e4186=function(_0x2b2efb){let _0x1f7671=Array['from'](_0x2b2efb);const _0x2850ff=_0x1f7671['findIndex'](_0xde7997=>'listItem'!=_0xde7997['name']);return _0x2850ff>-0x1&&(_0x1f7671=_0x1f7671['slice'](0x0,_0x2850ff)),_0x1f7671;}(_0x1358cb['model']['document']['selection']['getSelectedBlocks']()),_0x144c27=_0x1358cb['model']['createRange'](_0x1358cb['model']['createPositionAt'](_0x5e4186[0x0],'before'),_0x1358cb['model']['createPositionAt'](_0x5e4186[_0x5e4186['length']-0x1],'end'));_0x1358cb['model']['change'](()=>{_0x4a7bc1['markBlockFormat'](_0x144c27,{'commandName':_0xe20369,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4ba2aa){const _0x27171d=new Set();for(const _0x2222d7 of _0x4ba2aa){let _0xbbeccb=_0x2222d7['nextSibling'];for(;_0xbbeccb&&_0xbbeccb['getAttribute']('listIndent')>_0x2222d7['getAttribute']('listIndent');)_0x27171d['add'](_0xbbeccb),_0xbbeccb=_0xbbeccb['nextSibling'];}return Array['from'](_0x27171d);}(_0x5e4186));});};}_0x4a7bc1['enableCommand']('numberedList',_0x333903('numberedList')),_0x4a7bc1['enableCommand']('bulletedList',_0x333903('bulletedList')),_0x343511&&_0x4a7bc1['enableCommand']('todoList',_0x333903('todoList')),_0x4a7bc1['enableCommand']('indentList',_0x5c4ad9('indentList')),_0x4a7bc1['enableCommand']('outdentList',_0x5c4ad9('outdentList')),_0x343511&&_0x4a7bc1['enableCommand']('checkTodoList',()=>{const _0x1cb1ee=_0x1358cb['commands']['get']('checkTodoList'),_0x1a7919=Array['from'](_0x1cb1ee['_selectedElements']);_0x1a7919['filter'](_0x19424f=>_0x19424f['getAttribute']('todoListChecked')!=_0x1cb1ee['value']),_0x1358cb['model']['change'](()=>{for(const _0x497afa of _0x1a7919)_0x4a7bc1['markBlockFormat'](_0x497afa,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1cb1ee['value']}]});});}),_0x4a7bc1['descriptionFactory']['registerElementLabel']('listItem',_0x4a17f5=>o(_0x48766c,'ELEMENT_LIST_ITEM',_0x4a17f5)),_0x4a7bc1['descriptionFactory']['registerDescriptionCallback'](_0x315ce3=>{if('formatBlock'!=_0x315ce3['type']&&'formatInline'!=_0x315ce3['type'])return;const {data:_0x85d4c7}=_0x315ce3;if(_0x85d4c7){if('numberedList'==_0x85d4c7['commandName']||'bulletedList'==_0x85d4c7['commandName']||'todoList'==_0x85d4c7['commandName'])switch(_0x85d4c7['commandName']['replace']('List','')){case'bulleted':return _0x3993d0(o(_0x48766c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3993d0(o(_0x48766c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3993d0(o(_0x48766c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x85d4c7['commandName'])return{'type':'format','content':o(_0x48766c,'*Indent:*\x20%0',o(_0x48766c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x85d4c7['commandName'])return{'type':'format','content':o(_0x48766c,'*Outdent:*\x20%0',o(_0x48766c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x85d4c7['commandName'])return _0x85d4c7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48766c,'*Check\x20item*')}:{'type':'format','content':o(_0x48766c,'*Uncheck\x20item*')};}function _0x3993d0(_0x4759c4){return{'type':'format','content':o(_0x48766c,'*Change\x20to:*\x20%0',_0x4759c4)};}});}}function me(_0x592486){const _0x4a5858=_0x592486['getAttribute']('listIndent');if(0x0==_0x4a5858)return _0x592486;let _0x2ce1b9=_0x592486;for(;_0x592486['previousSibling']&&_0x592486['previousSibling']['is']('element','listItem');){const _0x263f71=_0x592486['previousSibling']['getAttribute']('listIndent');if(_0x263f71==_0x4a5858)_0x2ce1b9=_0x592486['previousSibling'];else{if(_0x263f71<_0x4a5858)break;}_0x592486=_0x592486['previousSibling'];}return _0x2ce1b9;}function fe(_0x36ec49){const _0x1c6387=[];if(_0x36ec49['is']('element','listItem')&&_0x36ec49['getAttribute']('listIndent')>0x0){let _0x22ba4a=_0x36ec49['nextSibling'];for(;_0x22ba4a&&'listItem'==_0x22ba4a['name']&&_0x22ba4a['getAttribute']('listIndent')==_0x36ec49['getAttribute']('listIndent');)_0x1c6387['push'](_0x22ba4a),_0x22ba4a=_0x22ba4a['nextSibling'];}return _0x1c6387;}class K extends _0x17098e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x54f00b=this['editor']['config']['get']('list.properties'),_0x33cfd8=this['editor']['plugins']['get']('TrackChangesEditing');_0x54f00b['styles']&&_0x33cfd8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x54f00b['reversed']&&_0x33cfd8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x54f00b['startIndex']&&_0x33cfd8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x33cfd8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xfda80c,_0x4f5242={}){const _0x53b38d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x235df3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x53b38d['markMultiRangeBlockFormat'](_0x235df3,{'commandName':'listStyle','commandParams':[{'type':_0x4f5242['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3e3c9c,_0xd73d8c={}){const _0x922bce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36967a=this['_getSuggestionBlocks'](_0x1d1990=>_0x1d1990['is']('element','listItem')&&'numbered'===_0x1d1990['getAttribute']('listType'));if(_0x36967a['length']<0x1)return;const _0x314ded=_0x36967a['map'](_0x415603=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x415603,'before'),this['editor']['model']['createPositionAt'](_0x415603,0x0)));this['editor']['model']['change'](()=>{_0x922bce['markMultiRangeBlockFormat'](_0x314ded,{'commandName':'listReversed','commandParams':[{'reversed':_0xd73d8c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4d2bd2,_0x2ef1b1={}){const _0x2b6672=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3eeaf2=this['_getSuggestionBlocks'](_0x59c9f8=>_0x59c9f8['is']('element','listItem')&&'numbered'===_0x59c9f8['getAttribute']('listType'));if(_0x3eeaf2['length']<0x1)return;const _0x35d482=_0x3eeaf2['map'](_0x72eef=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x72eef,'before'),this['editor']['model']['createPositionAt'](_0x72eef,0x0)));this['editor']['model']['change'](()=>{_0x2b6672['markMultiRangeBlockFormat'](_0x35d482,{'commandName':'listStart','commandParams':[{'startIndex':_0x2ef1b1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x6b017f){if('formatBlock'!=_0x6b017f['type']&&'formatInline'!=_0x6b017f['type'])return;const _0x3898c0=this['editor']['locale'],{data:_0x50d951}=_0x6b017f;if(!_0x50d951)return;let _0x244508,_0x1acd65;switch(_0x50d951['commandName']){case'listStyle':_0x244508='*Change\x20to:*\x20%0',_0x1acd65={'type':'format','content':o(_0x3898c0,_0x244508,o(_0x3898c0,this['_getTranslationKeyForListStyle'](_0x50d951['commandParams'][0x0]['type'])))};break;case'listReversed':_0x244508=_0x50d951['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1acd65={'type':'format','content':o(_0x3898c0,_0x244508)};break;case'listStart':_0x244508='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1acd65={'type':'format','content':o(_0x3898c0,_0x244508,_0x50d951['commandParams'][0x0]['startIndex'])};}return _0x1acd65;}['_getSuggestionBlocksForListStyle'](){var _0x4a5fe0,_0x2e676f,_0x44109b,_0xb654a;const _0x2b859d=this['editor']['plugins']['get']('LegacyListUtils');let _0x4cb757=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x4a5fe0=_0x4cb757[0x0])||void 0x0===_0x4a5fe0?void 0x0:_0x4a5fe0['is']('element','listItem'))&&_0x4cb757['unshift'](..._0x2b859d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x2e676f=_0x4cb757[_0x4cb757['length']-0x1])||void 0x0===_0x2e676f?void 0x0:_0x2e676f['is']('element','listItem'))&&_0x4cb757['push'](..._0x2b859d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4cb757=[...new Set(_0x4cb757)],(null===(_0xb654a=null===(_0x44109b=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x44109b?void 0x0:_0x44109b['parent'])||void 0x0===_0xb654a?void 0x0:_0xb654a['is']('element','listItem'))&&(_0x4cb757=_0x4cb757['filter'](_0x1d565f=>_0x1d565f['is']('element','listItem'))),_0x4cb757;}['_getSuggestionBlocks'](_0x341e8b){const _0x5ebcfa=this['editor']['plugins']['get']('LegacyListUtils');let _0xdbc977=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x341e8b)['map'](_0x4aec03=>{const _0x312961=this['editor']['model']['createPositionAt'](_0x4aec03,0x0);return[..._0x5ebcfa['getSiblingNodes'](_0x312961,'backward'),..._0x5ebcfa['getSiblingNodes'](_0x312961,'forward')];})['flat']();return _0xdbc977=[...new Set(_0xdbc977)],_0xdbc977;}['_getTranslationKeyForListStyle'](_0x1a90e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1a90e)||'default')['toUpperCase']()+'_LIST_'+_0x1a90e['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x17098e{['afterInit'](){const _0x1f9d06=this['editor'];if(!_0x1f9d06['plugins']['has']('MediaEmbedEditing'))return;const _0x4947df=_0x1f9d06['plugins']['get']('TrackChangesEditing'),_0x47fcdc=_0x1f9d06['locale'];_0x4947df['enableCommand']('mediaEmbed'),_0x4947df['descriptionFactory']['registerElementLabel']('media',_0xb9c457=>o(_0x47fcdc,'ELEMENT_MEDIA',_0xb9c457)),_0x1f9d06['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1164bc,{writer:_0x599b87,options:_0x41bf5b})=>{if(_0x41bf5b['showSuggestionHighlights'])return _0x599b87['createEmptyElement']('div');},'converterPriority':'high'}),_0x1f9d06['data']['downcastDispatcher']['on']('attribute:url:media',(_0x243345,_0x43edc6,_0x305cd3)=>{_0x305cd3['options']['showSuggestionHighlights']&&_0x243345['stop']();},{'priority':'high'});}}class gt extends _0x17098e{['afterInit'](){const _0x56e89a=this['editor'];_0x56e89a['plugins']['has']('MentionEditing')&&_0x56e89a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x17098e{['afterInit'](){const _0x29a7e7=this['editor'],_0x404ad1=_0x29a7e7['plugins']['get']('TrackChangesEditing');_0x29a7e7['plugins']['has']('MultiLevelList')&&(_0x404ad1['enableDefaultAttributesIntegration']('multiLevelList'),_0x404ad1['registerBlockAttribute']('listMarkerStyle'),_0x404ad1['descriptionFactory']['registerDescriptionCallback'](_0x3db34b=>this['handleDescriptions'](_0x3db34b)));}['handleDescriptions'](_0x41aed5){const _0x2f98ef=this['editor']['locale'],{data:_0xc11278}=_0x41aed5,_0x1d881d={'type':'format','content':''};if(_0xc11278&&'listMarkerStyle'==_0xc11278['key']){if(!_0xc11278['oldValue'])return{'type':'format','content':o(_0x2f98ef,'*Set\x20format:*\x20%0',o(_0x2f98ef,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc11278['newValue']+')'};if(!_0xc11278['newValue']){let _0x2f9087=_0x41aed5['head'];for(;_0x2f9087;){if(_0x2f9087['data']&&'listType'==_0x2f9087['data']['key']&&_0x2f9087['data']['newValue'])return _0x1d881d;_0x2f9087=_0x2f9087['next'];}return{'type':'format','content':o(_0x2f98ef,'*Remove\x20format:*\x20%0',o(_0x2f98ef,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc11278['oldValue']+')'};}}}}class mt extends _0x17098e{['afterInit'](){const _0x4c3bc3=this['editor'];if(!_0x4c3bc3['plugins']['has']('PageBreakEditing'))return;_0x4c3bc3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x23b16b=_0x4c3bc3['plugins']['get']('TrackChangesEditing'),_0x21672b=_0x4c3bc3['locale'];_0x23b16b['descriptionFactory']['registerElementLabel']('pageBreak',_0x5b010c=>o(_0x21672b,'ELEMENT_PAGE_BREAK',_0x5b010c));}}class dt extends _0x17098e{['afterInit'](){const _0x4c929e=this['editor'];if(!_0x4c929e['plugins']['has']('Paragraph'))return;const _0x15c394=_0x4c929e['locale'],_0x329640=_0x4c929e['plugins']['get']('TrackChangesEditing');_0x329640['descriptionFactory']['registerElementLabel']('paragraph',_0x1d1b9f=>o(_0x15c394,'ELEMENT_PARAGRAPH',_0x1d1b9f)),_0x329640['enableDefaultAttributesIntegration']('paragraph'),_0x329640['enableCommand']('insertParagraph'),_0x4c929e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4c929e),{'priority':'highest'}),_0x4c929e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x415bf6,_0x4c3cea,_0x2d6fd)=>{_0x2d6fd['options']['showSuggestionHighlights']&&nr(_0x4c929e,{'showActiveMarker':!0x1})(_0x415bf6,_0x4c3cea,_0x2d6fd);},{'priority':'highest'});const _0x52e151=_0x329640['descriptionFactory'];_0x52e151['registerDescriptionCallback'](_0x22f610=>{if('insertion'!==_0x22f610['type'])return;const {start:_0x5e9879,end:_0x53a402}=_0x22f610['getFirstRange']();if(!_0x5e9879['isTouching'](_0x53a402)||!_0x5e9879['nodeAfter'])return;const _0x1bfd53=_0x4c929e['model']['schema'],_0x52f19c=_0x5e9879['nodeAfter'];return _0x1bfd53['isBlock'](_0x52f19c)&&!_0x1bfd53['isLimit'](_0x52f19c)&&_0x1bfd53['checkChild'](_0x52f19c,'$text')?{'type':'insertion','content':o(_0x15c394,'*Insert:*\x20%0',_0x52e151['getItemLabel'](_0x52f19c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10c608=this['editor'],_0xa274cf=_0x10c608['locale'];_0x10c608['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23dced=>{if('formatBlock'!=_0x23dced['type'])return;const {data:_0x35cb2e}=_0x23dced;return _0x35cb2e&&'paragraph'==_0x35cb2e['commandName']?{'type':'format','content':o(_0xa274cf,'*Change\x20to:*\x20%0',o(_0xa274cf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x29b75c,{showActiveMarker:_0x15f5db=!0x0}={}){return(_0x153685,_0x5bf51c,_0x270096)=>{const _0x21fb16=_0x29b75c['plugins']['get']('TrackChangesEditing'),_0x3bd1d3=_0x5bf51c['markerRange']['start'],_0x7eed24=_0x5bf51c['markerRange']['end'],_0x4cf58f=_0x29b75c['model']['schema'];if(!_0x3bd1d3['isTouching'](_0x7eed24)||!_0x3bd1d3['nodeAfter'])return;const _0x587671=_0x3bd1d3['nodeAfter'];if(_0x4cf58f['isBlock'](_0x587671)&&!_0x4cf58f['isLimit'](_0x587671)&&_0x4cf58f['checkChild'](_0x587671,'$text')){if(!_0x270096['consumable']['consume'](_0x5bf51c['markerRange'],_0x153685['name']))return;const _0x51d332=_0x270096['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5247c6=_0x270096['mapper']['toViewPosition'](_0x7eed24);_0x15f5db&&_0x21fb16['activeMarkers']['includes'](_0x5bf51c['markerName'])&&_0x270096['writer']['addClass']('ck-suggestion-marker--active',_0x51d332),_0x270096['writer']['insert'](_0x5247c6,_0x51d332),_0x270096['mapper']['bindElementToMarker'](_0x51d332,_0x5bf51c['markerName']);}};}class pt extends _0x17098e{['afterInit'](){const _0xb7da37=this['editor'];if(!_0xb7da37['plugins']['has']('RemoveFormatEditing'))return;_0xb7da37['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x373171=this['editor'];_0x373171['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41fd82=>{if('formatBlock'!=_0x41fd82['type']&&'formatInline'!=_0x41fd82['type'])return;const {data:_0x5257b7}=_0x41fd82;return _0x5257b7&&'removeFormat'==_0x5257b7['commandName']?{'type':'format','content':o(_0x373171['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x17098e{['afterInit'](){const _0x1c32d2=this['editor'];if(!_0x1c32d2['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x32fc5a=_0x1c32d2['plugins']['get']('TrackChangesEditing');_0x32fc5a['enableCommand']('goToPreviousRestrictedEditingException'),_0x32fc5a['enableCommand']('goToNextRestrictedEditingException');const _0x2caaf2=_0x1c32d2['plugins']['get']('RestrictedEditingModeEditing');_0x2caaf2['enableCommand']('trackChanges'),_0x2caaf2['enableCommand']('acceptSuggestion'),_0x2caaf2['enableCommand']('discardSuggestion'),_0x2caaf2['enableCommand']('acceptAllSuggestions'),_0x2caaf2['enableCommand']('discardAllSuggestions'),_0x2caaf2['enableCommand']('acceptSelectedSuggestions'),_0x2caaf2['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x17098e{static get['requires'](){return[_0x3aae70];}['init'](){const _0x119487=this['editor'],_0x39ab54=_0x119487['plugins']['get']('TrackChangesEditing');_0x39ab54['enableCommand']('shiftEnter'),_0x119487['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x119487),{'priority':'high'}),_0x119487['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x119487),{'priority':'high'}),_0x119487['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd28069,_0xdd9996,_0x1352d4)=>{_0x1352d4['options']['showSuggestionHighlights']&&de(_0x119487,{'showActiveMarker':!0x1})(_0xd28069,_0xdd9996,_0x1352d4);}),_0x39ab54['descriptionFactory']['registerElementLabel']('softBreak',_0x1e76b2=>o(_0x119487['locale'],'ELEMENT_LINE_BREAK',_0x1e76b2));}}function de(_0x44d298,{showActiveMarker:_0x26ad51=!0x0}={}){return(_0x410beb,_0xca3a85,_0x5cffb1)=>{const _0x54984c=_0x44d298['plugins']['get']('TrackChangesEditing');if(!_0x5cffb1['consumable']['test'](_0xca3a85['markerRange'],_0x410beb['name']))return;const _0x1fe5cd=_0x44d298['model'];for(const _0x35a861 of _0xca3a85['markerRange']['getItems']()){if(!_0x35a861['is']('element','softBreak'))continue;const _0x5bb0c8='deletion'==_0xca3a85['markerName']['split'](':')[0x1]?'merge':'split',_0x2d9cbc=_0x5cffb1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5bb0c8}),_0xb0ebd4=_0x5cffb1['mapper']['toViewPosition'](_0x1fe5cd['createPositionBefore'](_0x35a861));_0x26ad51&&_0x54984c['activeMarkers']['includes'](_0xca3a85['markerName'])&&_0x5cffb1['writer']['addClass']('ck-suggestion-marker--active',_0x2d9cbc),_0x5cffb1['writer']['insert'](_0xb0ebd4,_0x2d9cbc),_0x5cffb1['mapper']['bindElementToMarker'](_0x2d9cbc,_0xca3a85['markerName']);}};}class wt extends _0x17098e{['afterInit'](){const _0x218a13=this['editor'],_0x1b68f8=_0x218a13['model'],_0x504759=_0x218a13['locale'];if(!_0x218a13['plugins']['has']('StandardEditingModeEditing'))return;const _0x47583c=_0x218a13['plugins']['get']('TrackChangesEditing'),_0x281782='restrictedEditingException',_0x3c7268=_0x218a13['commands']['get'](_0x281782);_0x47583c['enableCommand'](_0x281782,(_0x4bc8f4,_0xb62b48={})=>{const _0x340d63=_0x1b68f8['document']['selection'];if(_0x340d63['isCollapsed'])return void _0x4bc8f4(_0xb62b48);const _0x30cb05=void 0x0!==_0xb62b48['forceValue']?_0xb62b48['forceValue']:!_0x3c7268['value'];_0x1b68f8['change'](()=>{const _0x369c4c=Array['from'](_0x340d63['getRanges']());for(const _0x5c2d22 of _0x369c4c){const _0x4401f0=_0x30cb05?[_0x5c2d22]:io(_0x281782,_0x5c2d22,_0x1b68f8);for(const _0x27093d of _0x4401f0)_0x47583c['markInlineFormat'](_0x27093d,{'commandName':_0x281782,'commandParams':[{'forceValue':_0x30cb05}]});}});}),_0x47583c['descriptionFactory']['registerDescriptionCallback'](_0x2b725b=>{if('formatBlock'!=_0x2b725b['type']&&'formatInline'!=_0x2b725b['type'])return;const {data:_0x5c8593}=_0x2b725b;return _0x5c8593&&_0x5c8593['commandName']==_0x281782?_0x5c8593['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x504759,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x504759,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x17098e{['afterInit'](){const _0x5a6d65=this['editor'];if(!_0x5a6d65['plugins']['has']('Style')||!_0x5a6d65['plugins']['has']('DataSchema'))return;const _0x4fd422=_0x5a6d65['plugins']['get']('TrackChangesEditing'),_0x6260c8=_0x5a6d65['locale'],_0x163753=_0x5a6d65['config']['get']('style')||{},_0x28200a=_0x5a6d65['plugins']['get']('GeneralHtmlSupport'),_0x3b3ce3=_0x5a6d65['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5a6d65['plugins']['get']('DataSchema'),_0x163753['definitions']);_0x4fd422['enableDefaultAttributesIntegration']('style');const _0x48d4f1=new Set();for(const _0x17c3c4 of _0x3b3ce3['block']){const _0x3a2159=_0x28200a['getGhsAttributeNameForElement'](_0x17c3c4['element']);_0x48d4f1['add'](_0x3a2159);}const _0x5704ec=new Set();for(const _0x3c2e11 of _0x3b3ce3['inline']){const _0x4b85fe=_0x28200a['getGhsAttributeNameForElement'](_0x3c2e11['element']);_0x5704ec['add'](_0x4b85fe);for(const _0x298a62 of _0x3c2e11['ghsAttributes'])_0x5704ec['add'](_0x298a62);}for(const _0x3b21c1 of _0x48d4f1)_0x4fd422['registerBlockAttribute'](_0x3b21c1),_0x4fd422['descriptionFactory']['registerAttributeLabel'](_0x3b21c1,o(_0x6260c8,'FORMAT_STYLE'));for(const _0x5d1115 of _0x5704ec)_0x4fd422['registerInlineAttribute'](_0x5d1115),_0x4fd422['descriptionFactory']['registerAttributeLabel'](_0x5d1115,o(_0x6260c8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25029e=this['editor'],_0x4a8a13=_0x25029e['locale'];_0x25029e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x183d83=>{if('formatBlock'!=_0x183d83['type']&&'formatInline'!=_0x183d83['type'])return;const {data:_0x2842c3}=_0x183d83;return _0x2842c3&&'style'===_0x2842c3['commandName']?_0x2842c3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a8a13,'*Set\x20format:*\x20%0',_0x2842c3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4a8a13,'*Remove\x20format:*\x20%0',_0x2842c3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x17098e{['afterInit'](){const _0x3e5332=this['editor'],_0x23d2f1=_0x3e5332['model']['document']['selection'];if(!_0x3e5332['plugins']['has']('TableEditing'))return;const _0x1e57be=_0x3e5332['locale'],_0x51ab3f=_0x3e5332['plugins']['get']('TrackChangesEditing'),_0x49e46c=_0x3e5332['plugins']['get']('TableUtils');_0x51ab3f['descriptionFactory']['registerElementLabel']('table',_0x4d1050=>o(_0x1e57be,'ELEMENT_TABLE',_0x4d1050)),this['_setupColumnsRowsFixing'](),_0x51ab3f['enableCommand']('insertTable'),_0x51ab3f['enableCommand']('selectTableRow'),_0x51ab3f['enableCommand']('selectTableColumn');for(const _0x3af123 of['insertTableRowAbove','insertTableRowBelow']){const _0x57d26c=_0x3e5332['commands']['get'](_0x3af123);_0x51ab3f['enableCommand'](_0x3af123,_0x34cbae=>{_0x3e5332['model']['change'](_0x599f05=>{_0x34cbae();const _0x5d5ffe='above'===_0x57d26c['order'],_0x2f0726=_0x49e46c['getSelectionAffectedTableCells'](_0x23d2f1),_0x4aeee4=_0x49e46c['getRowIndexes'](_0x2f0726),_0x4e6f50=_0x5d5ffe?_0x4aeee4['first']-0x1:_0x4aeee4['last']+0x1,_0x557a7d=_0x2f0726[0x0]['findAncestor']('table'),_0xbbe2ee=_0x49e46c['createTableWalker'](_0x557a7d,{'startRow':_0x4e6f50,'endRow':_0x4e6f50}),_0x305cfa=Array['from'](_0xbbe2ee)['map'](_0x3d66a7=>_0x599f05['createRangeOn'](_0x3d66a7['cell']));_0x51ab3f['markMultiRangeInsertion'](_0x305cfa,'tableRow');});});}for(const _0x181b49 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2dfaba=_0x3e5332['commands']['get'](_0x181b49);_0x51ab3f['enableCommand'](_0x181b49,_0x5239e0=>{_0x3e5332['model']['change'](_0x2da312=>{_0x5239e0();const _0x18478c='left'===_0x2dfaba['order'],_0x40c892=_0x49e46c['getSelectionAffectedTableCells'](_0x23d2f1),_0x2f03bb=_0x49e46c['getColumnIndexes'](_0x40c892),_0x5a7337=_0x18478c?_0x2f03bb['first']-0x1:_0x2f03bb['last']+0x1,_0x3e5b14=_0x40c892[0x0]['findAncestor']('table'),_0x184b6f=_0x49e46c['createTableWalker'](_0x3e5b14,{'startRow':0x0,'column':_0x5a7337,'includeAllSlots':!0x1}),_0x3289f1=Array['from'](_0x184b6f)['map'](_0x40c72a=>_0x2da312['createRangeOn'](_0x40c72a['cell']));_0x51ab3f['markMultiRangeInsertion'](_0x3289f1,'tableColumn');});});}for(const _0xc7d862 of['removeTableRow','removeTableColumn']){const _0x217aae=_0xc7d862['substr'](0xb),_0x490489=_0x217aae['toLowerCase'](),_0x539d90=_0x490489['substr'](0x0,0x3)+'span',_0x194a95='table'+_0x217aae,_0x2d5149='min'+_0x217aae,_0x306328='max'+_0x217aae;_0x51ab3f['enableCommand'](_0xc7d862,()=>{_0x3e5332['model']['change'](_0x4555c6=>{const _0x1d0a58=_0x49e46c['getSelectionAffectedTableCells'](_0x23d2f1),_0x571fec=_0x1d0a58[0x0]['findAncestor']('table');let _0x4611fe;if('removeTableRow'==_0xc7d862){const _0x1fc40a=_0x49e46c['getRowIndexes'](_0x1d0a58);_0x4611fe={'startRow':_0x1fc40a['first'],'endRow':_0x1fc40a['last'],'includeAllSlots':!0x0};}else{const _0x2e4d7e=_0x49e46c['getColumnIndexes'](_0x1d0a58);_0x4611fe={'startColumn':_0x2e4d7e['first'],'endColumn':_0x2e4d7e['last'],'includeAllSlots':!0x0};}const _0x101a9e=_0x49e46c['createTableWalker'](_0x571fec,_0x4611fe),_0x31d867=Array['from'](_0x101a9e)['map'](({cell:_0x92dad8})=>_0x92dad8),_0xdd290e=Ee(_0x31d867['filter'](_0x4a8982=>_0x4a8982['hasAttribute'](_0x539d90))),_0x206411=Ee(_0x31d867['filter'](_0x114f0a=>!_0x114f0a['hasAttribute'](_0x539d90)))['map'](_0x1d3f5c=>_0x4555c6['createRangeOn'](_0x1d3f5c)),_0x37a042=_0x51ab3f['markMultiRangeDeletion'](_0x206411,_0x194a95);if(_0x37a042&&('tableRow'==_0x37a042['subType']||'tableColumn'==_0x37a042['subType'])){const _0x750564=this['_getSuggestionCoords'](_0x37a042);for(const _0x5e0204 of _0xdd290e){const _0x42cd37=_0x4555c6['createRangeOn'](_0x5e0204),_0x1e6415=_0x49e46c['getCellLocation'](_0x5e0204),_0x5000aa=_0x5e0204['getAttribute'](_0x539d90)-0x1,_0x2e0e2e=_0x750564[_0x2d5149],_0x572e9d=_0x750564[_0x306328];_0x2e0e2e<=_0x1e6415[_0x490489]&&_0x1e6415[_0x490489]+_0x5000aa<=_0x572e9d&&_0x37a042['addRange'](_0x42cd37);}}});});}function _0x2c53cc(_0x59553e){const _0x4b8a6a=Array['from'](_0x23d2f1['getRanges']())['map'](_0x401cd5=>_0x19d68e['fromRange'](_0x401cd5));_0x3e5332['model']['change'](_0x3a6ca2=>{const _0x262c33=_0x3a6ca2['batch'];_0x59553e=_0x59553e['filter'](_0x43c6d0=>'$graveyard'!=_0x43c6d0['root']['rootName']),_0x3a6ca2['setSelection'](_0x59553e),_0x3e5332['commands']['get']('removeTableRow')['refresh'](),_0x3e5332['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3e5332['model']['enqueueChange'](()=>{_0x3e5332['model']['enqueueChange'](_0x262c33,_0x56e45b=>{const _0x349aa7=_0x4b8a6a['filter'](_0xdc04e4=>'$graveyard'!=_0xdc04e4['root']['rootName']);_0x349aa7['length']>0x0&&_0x56e45b['setSelection'](_0x349aa7);for(const _0x4023f6 of _0x4b8a6a)_0x4023f6['detach']();});});});}function _0x12bd98(_0x56e7a4){_0x3e5332['model']['change'](_0x1aa053=>{const _0xf5f5e9=Array['from'](_0x23d2f1['getRanges']())['map'](_0x3ae76a=>_0x19d68e['fromRange'](_0x3ae76a)),_0x955505=[];for(const _0x15c053 of _0x56e7a4)for(const _0x2251bb of _0x15c053['getItems']({'shallow':!0x0}))_0x955505['push'](_0x2251bb);for(const _0x38692f of _0x955505)'$graveyard'!=_0x38692f['root']['rootName']&&(_0x1aa053['setSelection'](_0x1aa053['createPositionAt'](_0x38692f,0x0)),_0x3e5332['commands']['get']('removeTableColumn')['refresh'](),_0x3e5332['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1da140=_0xf5f5e9['filter'](_0x293104=>'$graveyard'!=_0x293104['root']['rootName']);_0x1da140['length']>0x0&&_0x1aa053['setSelection'](_0x1da140);for(const _0x51577e of _0xf5f5e9)_0x51577e['detach']();});}function _0x537101(_0xd37fa0,_0x37c0da){return _0x37c0da['every'](_0x850bc6=>_0xd37fa0['some'](_0x49dff4=>_0x49dff4['end']['isEqual'](_0x850bc6['start'])||_0x850bc6['end']['isEqual'](_0x49dff4['start'])));}function _0x5571b8(_0x35b0b2,_0x530792){return _0x35b0b2['some'](_0x5111cb=>_0x530792['some'](_0x2e16d5=>_0x5111cb['end']['isTouching'](_0x2e16d5['start'])));}_0x3e5332['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5da7c8,_0x622c66,_0x5e785c)=>{if(!_0x5e785c['options']['showSuggestionHighlights'])return;const _0x14f48d=_0x622c66['item'];if(!_0x14f48d)return;const _0x41de23=_0x5e785c['mapper']['toViewElement'](_0x14f48d);function _0x4b9650(_0x598685){return Array['isArray'](_0x598685)?_0x598685:[_0x598685];}_0x41de23&&'tableCell'===_0x14f48d['name']&&_0x4c5ebc(_0x41de23,_0x5e785c['writer'],(_0x16361b,_0x29d43f,_0x2afed5)=>_0x2afed5['addClass'](_0x4b9650(_0x29d43f['classes']),_0x16361b),(_0x373658,_0x525e9d,_0x1e4e2f)=>_0x1e4e2f['removeClass'](_0x4b9650(_0x525e9d['classes']),_0x373658));},{'priority':'highest'}),_0x51ab3f['descriptionFactory']['registerDescriptionCallback'](_0x12af92=>{if('insertion'!=_0x12af92['type']&&'deletion'!=_0x12af92['type'])return;const _0x2aa039=_0x12af92['getContainedElement']();if(null!=_0x2aa039&&_0x2aa039['is']('element','table')){if('insertion'==_0x12af92['type']){const _0x29f0f5=_0x12af92['getItems']()['filter'](_0x227c5b=>_0x227c5b['is']('$textProxy'))['map'](_0x310794=>_0x310794['data']);if(_0x29f0f5['length'])return{'type':'insertion','content':o(_0x1e57be,'*Insert:*\x20%0',o(_0x1e57be,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x29f0f5['join']('\x20')+'\x22'))};}if('deletion'==_0x12af92['type']){const _0x59459b=_0x12af92['getItems']()['filter'](_0x402c01=>_0x402c01['is']('$textProxy'))['map'](_0x580484=>_0x580484['data']);if(_0x59459b['length'])return{'type':'deletion','content':o(_0x1e57be,'*Remove:*\x20%0',o(_0x1e57be,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x59459b['join']('\x20')+'\x22'))};}}}),_0x51ab3f['descriptionFactory']['registerDescriptionCallback'](_0x8158ff=>{if('tableRow'==_0x8158ff['subType']){const _0x573b3c=_0x8158ff['getItems']()['filter'](_0x3d37a5=>_0x3d37a5['is']('$textProxy'))['map'](_0x50bead=>_0x50bead['data']),_0x1122a5=this['_getSuggestionCoords'](_0x8158ff),_0x3a4422=_0x1122a5['maxRow']-_0x1122a5['minRow']+0x1;if('insertion'==_0x8158ff['type'])return _0x573b3c['length']?{'type':'insertion','content':o(_0x1e57be,'*Insert:*\x20%0',o(_0x1e57be,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a4422,'\x22'+_0x573b3c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e57be,'*Insert:*\x20%0',o(_0x1e57be,'ELEMENT_TABLE_ROW',_0x3a4422))};if('deletion'==_0x8158ff['type'])return _0x573b3c['length']?{'type':'deletion','content':o(_0x1e57be,'*Remove:*\x20%0',o(_0x1e57be,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a4422,'\x22'+_0x573b3c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e57be,'*Remove:*\x20%0',o(_0x1e57be,'ELEMENT_TABLE_ROW',_0x3a4422))};}if('tableColumn'==_0x8158ff['subType']){const _0x36914=_0x8158ff['getItems']()['filter'](_0x147924=>_0x147924['is']('$textProxy'))['map'](_0x1b1a97=>_0x1b1a97['data']),_0x42cf54=this['_getSuggestionCoords'](_0x8158ff),_0x4346fe=_0x42cf54['maxColumn']-_0x42cf54['minColumn']+0x1;if('insertion'==_0x8158ff['type'])return _0x36914['length']?{'type':'insertion','content':o(_0x1e57be,'*Insert:*\x20%0',o(_0x1e57be,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4346fe,'\x22'+_0x36914['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e57be,'*Insert:*\x20%0',o(_0x1e57be,'ELEMENT_TABLE_COLUMN',_0x4346fe))};if('deletion'==_0x8158ff['type'])return _0x36914['length']?{'type':'deletion','content':o(_0x1e57be,'*Remove:*\x20%0',o(_0x1e57be,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4346fe,'\x22'+_0x36914['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e57be,'*Remove:*\x20%0',o(_0x1e57be,'ELEMENT_TABLE_COLUMN',_0x4346fe))};}}),_0x51ab3f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2c53cc),_0x51ab3f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2c53cc),_0x51ab3f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x12bd98),_0x51ab3f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x12bd98),_0x51ab3f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x537101),_0x51ab3f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x537101),_0x51ab3f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5571b8),_0x51ab3f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5571b8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x18dfef=this['editor'],_0x4a4f1b=_0x18dfef['model']['document']['selection'];return(_0x251699,_0x102c42)=>{_0x18dfef['model']['change'](_0xd5357d=>{const {commandName:_0x25c538,commandParams:_0x3e9533}=_0x102c42;let _0x1ecef5=_0x251699[0x0]['end']['nodeBefore'];_0x3e9533&&_0x3e9533[0x0]&&!0x1===_0x3e9533[0x0]['forceValue']&&(_0x1ecef5=_0x251699[0x0]['start']['nodeAfter']);const _0x41cc50=_0xd5357d['createRangeIn'](_0x1ecef5);if('$graveyard'==_0x41cc50['root']['rootName'])return;const _0x246903=Array['from'](_0x4a4f1b['getRanges']())['map'](_0x5edf0b=>_0x19d68e['fromRange'](_0x5edf0b));_0xd5357d['setSelection'](_0x41cc50),_0x18dfef['commands']['get'](_0x25c538)['refresh'](),_0x3e9533['push']({'forceDefaultExecution':!0x0}),_0x18dfef['execute'](_0x25c538,..._0x3e9533);const _0x2090a7=_0x246903['filter'](_0x522be7=>'$graveyard'!=_0x522be7['root']['rootName']);_0x2090a7['length']>0x0&&_0xd5357d['setSelection'](_0x2090a7);for(const _0x1cdbaa of _0x246903)_0x1cdbaa['detach']();});};}['_getCoordsForCells'](_0x16704d){const _0x5b9387=this['editor']['plugins']['get']('TableUtils');let _0x452e2b=Number['MAX_SAFE_INTEGER'],_0xca6b90=Number['MIN_SAFE_INTEGER'],_0x320d16=Number['MAX_SAFE_INTEGER'],_0x2b3caf=Number['MIN_SAFE_INTEGER'];for(const _0x4bf3b1 of _0x16704d){if('$graveyard'==_0x4bf3b1['root']['rootName'])continue;const {row:_0x5539b3,column:_0x1ed02f}=_0x5b9387['getCellLocation'](_0x4bf3b1),_0x5ceb9a=_0x4bf3b1['hasAttribute']('rowspan')?_0x4bf3b1['getAttribute']('rowspan')-0x1:0x0,_0x20e2d7=_0x4bf3b1['hasAttribute']('colspan')?_0x4bf3b1['getAttribute']('colspan')-0x1:0x0;_0x452e2b=_0x5539b3<_0x452e2b?_0x5539b3:_0x452e2b,_0xca6b90=_0x5539b3+_0x5ceb9a>_0xca6b90?_0x5539b3+_0x5ceb9a:_0xca6b90,_0x320d16=_0x1ed02f<_0x320d16?_0x1ed02f:_0x320d16,_0x2b3caf=_0x1ed02f+_0x20e2d7>_0x2b3caf?_0x1ed02f+_0x20e2d7:_0x2b3caf;}return{'minRow':_0x452e2b,'maxRow':_0xca6b90,'minColumn':_0x320d16,'maxColumn':_0x2b3caf};}['_setupColumnsRowsFixing'](){const _0xa3025a=this['editor'],_0x2d08a7=_0xa3025a['plugins']['get']('TrackChangesEditing'),_0x105dba=_0xa3025a['plugins']['get']('TableUtils');_0xa3025a['model']['document']['on']('change:data',()=>{const _0x1fd328=Array['from'](_0xa3025a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26873b,data:_0xae7633}of _0x1fd328){const {group:_0x5486f1,id:_0x510006,subType:_0xf11bc7}=_0x2d08a7['_splitMarkerName'](_0x26873b);if('suggestion'!=_0x5486f1)continue;if(null!=_0xae7633['oldRange'])continue;const _0x254979=_0x2d08a7['getSuggestion'](_0x510006);this['_tablePostFixingSubtypes']['includes'](_0xf11bc7)&&this['_tableSuggestions']['add'](_0x254979);}},{'priority':'low'});const _0x13be4c=(_0x1534cd,_0x556a2f)=>{let _0x1eeb87=!0x1;const _0x140400=_0x556a2f['createRangeOn'](_0x1534cd),_0x277403=_0x1534cd['findAncestor']('table'),_0x596621=_0x105dba['getCellLocation'](_0x1534cd);for(const _0xeee7d8 of this['_tableSuggestions']){const _0x4c2b2c=_0xeee7d8['subType'],_0x45efc9=_0x4c2b2c['startsWith']('tablePaste'),_0x113b44=_0x4c2b2c['substr'](_0x45efc9?0xa:0x5),_0x10581a=_0x113b44['toLowerCase'](),_0x57ad3f=_0x10581a['substr'](0x0,0x3)+'span',_0x4ca492='min'+_0x113b44,_0x516aac='max'+_0x113b44;if(!_0xeee7d8['isInContent'])continue;if(_0x277403!=_0xeee7d8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xeee7d8['isIntersectingWithRange'](_0x140400))continue;const _0x22ec77=_0x1534cd['hasAttribute'](_0x57ad3f)?_0x1534cd['getAttribute'](_0x57ad3f)-0x1:0x0,_0x3db617=this['_getSuggestionCoords'](_0xeee7d8),_0x42f877=_0x3db617[_0x4ca492],_0x508398=_0x3db617[_0x516aac];_0x42f877<=_0x596621[_0x10581a]&&_0x596621[_0x10581a]+_0x22ec77<=_0x508398&&(_0xeee7d8['addRange'](_0x140400),_0x1eeb87=!0x0);}return _0x1eeb87;};_0xa3025a['model']['document']['registerPostFixer'](_0x1b67f2=>{let _0x231456=!0x1;for(const _0x2c1cc7 of _0xa3025a['model']['document']['differ']['getChanges']())if('insert'==_0x2c1cc7['type']){if('tableRow'==_0x2c1cc7['name']){for(const _0x635b45 of _0x2c1cc7['position']['nodeAfter']['getChildren']())_0x231456=_0x231456||_0x13be4c(_0x635b45,_0x1b67f2);}else'tableCell'==_0x2c1cc7['name']&&(_0x231456=_0x231456||_0x13be4c(_0x2c1cc7['position']['nodeAfter'],_0x1b67f2));}return _0x231456;});}['_getSuggestionCoords'](_0x44a148){return this['_getCoordsForCells'](_0x44a148['getRanges']()['map'](_0x502c32=>_0x502c32['start']['nodeAfter']));}constructor(_0x5a0e9f){super(_0x5a0e9f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x12f5e8){return Array['from'](new Set(_0x12f5e8)['values']());}class St extends _0x17098e{static get['requires'](){return[jt];}['afterInit'](){const _0x57b2f5=this['editor'],_0x365ca1=_0x57b2f5['model']['document']['selection'],_0x343d84=_0x57b2f5['locale'];if(!_0x57b2f5['plugins']['has']('TableEditing'))return;const _0x12554f=_0x57b2f5['plugins']['get']('TrackChangesEditing'),_0x18a787=_0x57b2f5['plugins']['get']('TableUtils'),_0x2db9fc=_0x57b2f5['plugins']['get'](jt);_0x2db9fc['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x12554f['enableCommand']('mergeTableCells',()=>{const _0x59a281=_0x18a787['getSelectionAffectedTableCells'](_0x57b2f5['model']['document']['selection']);_0x57b2f5['model']['change'](()=>{_0x12554f['markMultiRangeBlockFormat'](_0x59a281,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x57b2f5['commands']['get']('mergeTableCells')['on']('execute',(_0x196dba,_0x19f369)=>{_0x57b2f5['commands']['get']('trackChanges')['value']&&(_0x19f369['length']>0x0&&_0x19f369[_0x19f369['length']-0x1]&&_0x19f369[_0x19f369['length']-0x1]['forceDefaultExecution']||_0x12554f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x196dba['stop']());},{'priority':'highest'});for(const _0x4bf919 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x233c78=_0x57b2f5['commands']['get'](_0x4bf919);_0x12554f['enableCommand'](_0x4bf919,()=>{const _0xe47661=_0x57b2f5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1fa020=>_0x1fa020['is']('element','tableCell')),_0x370eba=_0x233c78['value'];_0x57b2f5['model']['change'](()=>{_0x12554f['markMultiRangeBlockFormat']([_0xe47661,_0x370eba],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xcd007e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x470386=_0x57b2f5['commands']['get'](_0xcd007e);_0x12554f['enableCommand'](_0xcd007e,()=>{const _0x27b59d=_0x18a787['getSelectionAffectedTableCells'](_0x57b2f5['model']['document']['selection'])[0x0],_0x4e395e=_0x27b59d['findAncestor']('table'),{column:_0x32fd01,row:_0x12fb84}=_0x18a787['getCellLocation'](_0x27b59d);let _0xc8f7fe=[];if('horizontally'==_0x470386['direction']){const _0x5e22ba=_0x18a787['createTableWalker'](_0x4e395e,{'startRow':_0x12fb84,'endRow':_0x12fb84,'includeAllSlots':!0x0});_0xc8f7fe=Array['from'](_0x5e22ba)['map'](_0x381765=>_0x381765['cell']);}else{const _0x36ccce=_0x18a787['createTableWalker'](_0x4e395e,{'column':_0x32fd01,'includeAllSlots':!0x0});_0xc8f7fe=Array['from'](_0x36ccce)['map'](_0x261d59=>_0x261d59['cell']);}_0x57b2f5['model']['change'](_0x3fc14a=>{_0x12554f['markBlockFormat'](_0x3fc14a['createRangeOn'](_0x27b59d),{'commandName':_0xcd007e,'commandParams':[]},_0xc8f7fe,_0xcd007e);});});}_0x12554f['descriptionFactory']['registerDescriptionCallback'](_0x5cb245=>{if('formatBlock'!=_0x5cb245['type']&&'formatInline'!=_0x5cb245['type'])return;const {data:_0x25baf8}=_0x5cb245;return _0x25baf8&&'mergeTableCells'==_0x25baf8['commandName']?{'type':'format','content':o(_0x343d84,'*Merge\x20cells*')}:void 0x0;}),_0x12554f['descriptionFactory']['registerDescriptionCallback'](_0x2ae2c5=>{if('formatBlock'!=_0x2ae2c5['type']&&'formatInline'!=_0x2ae2c5['type'])return;const {data:_0x55efa4}=_0x2ae2c5;return _0x55efa4?'splitTableCellVertically'==_0x55efa4['commandName']?{'type':'format','content':o(_0x343d84,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x55efa4['commandName']?{'type':'format','content':o(_0x343d84,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x327018=_0x2db9fc['_acceptFormatSuggestionCallbackFactory']();for(const _0x1f9bf1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x12554f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f9bf1,'accept',_0x327018);for(const _0x2dc7ed of['splitTableCellVertically','splitTableCellHorizontally'])_0x12554f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2dc7ed,'accept',_0x327018);_0x12554f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x104af0=>{_0x57b2f5['model']['change'](_0x54250c=>{const _0x311db4=Array['from'](_0x365ca1['getRanges']())['map'](_0x734877=>_0x19d68e['fromRange'](_0x734877));_0x54250c['setSelection'](_0x104af0),_0x57b2f5['commands']['get']('mergeTableCells')['refresh'](),_0x57b2f5['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4c4cab=_0x311db4['filter'](_0x564a77=>'$graveyard'!=_0x564a77['root']['rootName']);_0x4c4cab['length']>0x0&&_0x54250c['setSelection'](_0x4c4cab);for(const _0x2f9f1f of _0x311db4)_0x2f9f1f['detach']();});});for(const _0x1f455c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2363f=_0x57b2f5['commands']['get'](_0x1f455c);_0x2363f['on']('set:isEnabled',(_0x4fccc2,_0x123ff4,_0x406710)=>{if(_0x406710){const _0x3ff164=_0x57b2f5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2b9f95=>_0x2b9f95['is']('element','tableCell'));this['_areMergableCells'](_0x2363f['value'],_0x3ff164)||(_0x4fccc2['return']=!0x1,_0x4fccc2['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x330287=this['editor']['commands']['get']('mergeTableCells'),_0x1ae33c=this['editor']['plugins']['get']('TableUtils');if(!_0x330287['isEnabled'])return!0x1;const _0x262e04=_0x1ae33c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x24266e of _0x262e04)for(const _0x4b2f3f of _0x262e04)if(_0x24266e!=_0x4b2f3f&&!this['_areMergableCells'](_0x24266e,_0x4b2f3f))return!0x1;return!0x0;}['_areMergableCells'](_0x350b4b,_0x3e67cf){const _0x25c3a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x554ff5=this['editor']['model']['createRangeOn'](_0x350b4b),_0x401c2d=this['editor']['model']['createRangeOn'](_0x3e67cf),_0x11196a=new Set(),_0x3fa92f=new Set();for(const _0x15af92 of _0x25c3a7['getSuggestions']())if(('insertion'==_0x15af92['type']||'deletion'==_0x15af92['type']||'mergeTableCells'==_0x15af92['subType'])&&_0x15af92['isInContent']){for(const _0x5727c9 of _0x15af92['getRanges']())_0x5727c9['containsRange'](_0x554ff5,!0x0)&&_0x11196a['add'](_0x15af92['type']+':'+_0x15af92['author']['id']),_0x5727c9['containsRange'](_0x401c2d,!0x0)&&_0x3fa92f['add'](_0x15af92['type']+':'+_0x15af92['author']['id']);}if(_0x11196a['size']!=_0x3fa92f['size'])return!0x1;for(const _0x55209b of _0x11196a)if(!_0x3fa92f['has'](_0x55209b))return!0x1;return!0x0;}}class At extends _0x17098e{static get['requires'](){return[jt];}['afterInit'](){const _0x4edc2f=this['editor'];if(!_0x4edc2f['plugins']['has']('TableEditing'))return;const _0x5e98a6=_0x4edc2f['locale'],_0x5e2714=_0x4edc2f['plugins']['get']('TrackChangesEditing');_0x5e2714['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5e2714['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5e2714['registerBlockAttribute']('headingRows'),_0x5e2714['registerBlockAttribute']('headingColumns'),_0x5e2714['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5e98a6,'FORMAT_HEADER_ROW')),_0x5e2714['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5e98a6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3ef2f7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x461b43=this['editor']['plugins']['get']('TableUtils'),_0x2f7c90=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x15ff40({showActiveMarker:_0x160e5d=!0x0,setDataAttribute:_0x4c27f6=!0x0}={}){return(_0x15100f,_0x3d5fa7,_0x314c03)=>{const {type:_0x1614b6,id:_0x4876a8}=_0x3ef2f7['_splitMarkerName'](_0x3d5fa7['markerName']),_0x158756=_0x3ef2f7['getSuggestion'](_0x4876a8),_0x55d624=_0x158756['data'];if('formatBlock'!=_0x158756['type']||!_0x55d624||'setTableColumnHeader'!=_0x55d624['commandName'])return;if(_0x3d5fa7['item'])return void _0x15100f['stop']();if(!_0x314c03['consumable']['consume'](_0x3d5fa7['markerRange'],_0x15100f['name']))return;const _0x2b60d3=_0x3d5fa7['markerRange']['start']['nodeAfter'],_0x4ad89c=_0x3d5fa7['markerRange']['end']['nodeBefore'],_0x2552d4=_0x2b60d3['parent']['parent'],{column:_0x58984f}=_0x461b43['getCellLocation'](_0x2b60d3),{column:_0x3e27f2}=_0x461b43['getCellLocation'](_0x4ad89c);for(let _0x19c848=_0x58984f;_0x19c848<=_0x3e27f2;_0x19c848++){const _0x40d622=_0x461b43['createTableWalker'](_0x2552d4,{'column':_0x19c848,'includeAllSlots':!0x1});for(const _0x2cafaa of _0x40d622){const _0x3faef0=_0x2cafaa['cell'],_0xeb589a=_0x314c03['mapper']['toViewElement'](_0x3faef0);_0x314c03['writer']['addClass']('ck-suggestion-marker-'+_0x1614b6,_0xeb589a),_0x4c27f6&&_0x314c03['writer']['setAttribute']('data-suggestion',_0x4876a8,_0xeb589a),_0x314c03['mapper']['bindElementToMarker'](_0xeb589a,_0x3d5fa7['markerName']),_0x160e5d&&(_0x3ef2f7['activeMarkers']['includes'](_0x3d5fa7['markerName'])?_0x314c03['writer']['addClass']('ck-suggestion-marker--active',_0xeb589a):_0x314c03['writer']['removeClass']('ck-suggestion-marker--active',_0xeb589a));}}};}_0x3ef2f7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2f7c90),_0x3ef2f7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2f7c90),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x15ff40(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x33e075,_0x16945d,_0x3d4815)=>{_0x3d4815['options']['showSuggestionHighlights']&&_0x15ff40({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x33e075,_0x16945d,_0x3d4815);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3107e1,_0x348978,_0x465cba)=>{const {type:_0x33a495,id:_0x3d4ca2}=_0x3ef2f7['_splitMarkerName'](_0x348978['markerName']),_0x15fee7=_0x3ef2f7['getSuggestion'](_0x3d4ca2),_0x53be7b=_0x15fee7['data'];if('formatBlock'!=_0x15fee7['type']||!_0x53be7b||'setTableColumnHeader'!=_0x53be7b['commandName'])return;const _0x4ee019=_0x465cba['mapper']['markerNameToElements'](_0x348978['markerName']);if(_0x4ee019){for(const _0x3b608a of _0x4ee019)_0x465cba['writer']['removeClass']('ck-suggestion-marker-'+_0x33a495,_0x3b608a),_0x465cba['writer']['removeClass']('ck-suggestion-marker--active',_0x3b608a),_0x465cba['writer']['removeAttribute']('data-suggestion',_0x3b608a),_0x465cba['mapper']['unbindElementFromMarkerName'](_0x3b608a,_0x348978['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40d09d=this['editor'],_0x344e23=_0x40d09d['locale'];function _0x2b914d(_0x1af2a3){return{'type':'format','content':o(_0x344e23,'*Format:*\x20%0',_0x1af2a3)};}_0x40d09d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36a999=>{if('formatBlock'!=_0x36a999['type'])return;const {data:_0x83bc89}=_0x36a999;if(_0x83bc89){if('setTableRowHeader'==_0x83bc89['commandName']){const _0x5d20ce=_0x83bc89['commandParams'][0x0]['forceValue'];return _0x2b914d(o(_0x344e23,_0x5d20ce?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x83bc89['commandName']){const _0x991e15=_0x83bc89['commandParams'][0x0]['forceValue'];return _0x2b914d(o(_0x344e23,_0x991e15?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x5e22af=>[_0x5e22af,null]));class It extends _0x17098e{static get['requires'](){return[jt];}['afterInit'](){const _0x1ce11e=this['editor'];if(!_0x1ce11e['plugins']['has']('TableClipboard'))return;const _0x2d666f=_0x1ce11e['plugins']['get']('TrackChangesEditing'),_0x58e818=_0x1ce11e['plugins']['get']('TableUtils'),_0x122044=_0x1ce11e['plugins']['get'](jt),_0xffedb4=_0x1ce11e['plugins']['get']('TableClipboard');_0x122044['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1ce11e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1ce11e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x59f850=null;_0x1ce11e['model']['on']('insertContent',(_0x3d15fc,_0x442fe8)=>{const [_0x52a064,_0x36d117]=_0x442fe8,_0x3418fa=_0x442fe8[_0x442fe8['length']-0x1];_0x3418fa&&_0x3418fa['forceDefaultExecution']||_0x2d666f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2800bf,_0x383325,_0x457387,_0x41d075,_0x1b6b1e){if(_0x383325&&!_0x383325['is']('documentSelection'))return!0x1;const _0x9f864a=_0x1b6b1e['getTableIfOnlyTableInContent'](_0x2800bf,_0x457387);if(!_0x9f864a||!he(_0x9f864a,void 0x0,_0x41d075))return!0x1;const _0x4f9af5=_0x41d075['getSelectionAffectedTableCells'](_0x457387['document']['selection']);if(!_0x4f9af5['length'])return!0x1;const _0x738ced=_0x4f9af5[0x0]['findAncestor']('table'),_0x40b7d4=_0x41d075['getRowIndexes'](_0x4f9af5),_0x1821bc=_0x41d075['getColumnIndexes'](_0x4f9af5),_0x4a480a={'startRow':_0x40b7d4['first'],'endRow':_0x40b7d4['last'],'startColumn':_0x1821bc['first'],'endColumn':_0x1821bc['last']};return 0x1==_0x4f9af5['length']&&(_0x4a480a['endRow']+=_0x41d075['getRows'](_0x9f864a)-0x1,_0x4a480a['endColumn']+=_0x41d075['getColumns'](_0x9f864a)-0x1),he(_0x738ced,_0x4a480a,_0x41d075);}(_0x52a064,_0x36d117,_0x1ce11e['model'],_0x58e818,_0xffedb4)&&(_0x3d15fc['stop'](),_0x59f850={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1ce11e['model']['change'](()=>{_0x1ce11e['model']['insertContent'](_0x442fe8[0x0],_0x442fe8[0x1],_0x442fe8[0x2],{'forceDefaultExecution':!0x0});const _0x428881=_0x23d99a(),{rowInsertionRanges:_0x5d1b92,columnInsertionRanges:_0x20deca,insertionRanges:_0x1703d6,deletionRanges:_0x16f108,cells:_0x357f1c}=_0x59f850;_0x5d1b92['length']&&_0x2d666f['markMultiRangeInsertion'](_0x5d1b92,'tablePasteRow',{'tablePasteChainId':_0x428881}),_0x20deca['length']&&_0x2d666f['markMultiRangeInsertion'](_0x20deca,'tablePasteColumn',{'tablePasteChainId':_0x428881}),_0x1703d6['length']&&(_0x2d666f['markMultiRangeInsertion'](_0x1703d6,'tablePaste',{'tablePasteChainId':_0x428881,'skipNestingCheck':!0x0}),_0x1703d6['forEach'](_0x8eb802=>{var _0x228ed8;return null===(_0x228ed8=_0x8eb802['detach'])||void 0x0===_0x228ed8?void 0x0:_0x228ed8['call'](_0x8eb802);})),_0x16f108['length']&&(_0x2d666f['markMultiRangeDeletion'](_0x16f108,'tablePaste',{'tablePasteChainId':_0x428881,'skipNestingCheck':!0x0}),_0x16f108['forEach'](_0x51faf5=>{var _0x44784e;return null===(_0x44784e=_0x51faf5['detach'])||void 0x0===_0x44784e?void 0x0:_0x44784e['call'](_0x51faf5);}));const _0x2feb42=_0x2d666f['markMultiRangeBlockFormat'](_0x357f1c['map'](({element:_0x685d50})=>_0x685d50),{'formatGroupId':_0x23d99a()},[],'tablePasteCell',{'tablePasteChainId':_0x428881});if(_0x2feb42){const _0x345013=_0x2feb42['getMarkers'](),_0x2e7ba7=[];for(const {element:_0x1e12cd,attributes:_0x20932a}of _0x357f1c){if(!_0x20932a)continue;const _0x46f33b=_0x1ce11e['model']['createRangeOn'](_0x1e12cd),_0x5d8e53=_0x345013['find'](_0x27c914=>_0x27c914['getRange']()['isEqual'](_0x46f33b));_0x5d8e53&&_0x2e7ba7['push']([_0x5d8e53['name'],_0x20932a]);}_0x2e7ba7['length']&&_0x2feb42['setAttribute']('markerAttributes',Object['fromEntries'](_0x2e7ba7));}_0x59f850=null;}));},{'priority':_0xe86b65['high']+0xa}),_0x1ce11e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4bca2f,_0x5f006b)=>{const [_0x6f9877,_0x1be60f,,_0x14e802]=_0x5f006b;if(!_0x59f850)return;_0x4bca2f['stop']();const _0xdbf141=_0x6f9877['cell'],_0x27ed8d=_0x1be60f,_0x51f1ad=Pe(_0xdbf141),_0x1633b8=Pe(_0x27ed8d);_0x4bca2f['return']=_0xdbf141;let _0x1592e3=null,_0x323e09=null;if(_0x1633b8||_0x51f1ad){if(_0x51f1ad&&!_0x1633b8){_0x14e802['remove'](_0xdbf141['getChild'](0x0));for(const _0x2ecb3a of Array['from'](_0x27ed8d['getChildren']()))_0x14e802['insert'](_0x2ecb3a,_0xdbf141,'end');const _0x3614f1=_0x59f850['rowInsertionIndexes']['includes'](_0x6f9877['row']),_0x1be378=_0x59f850['columnInsertionIndexes']['includes'](_0x6f9877['column']);_0x3614f1||_0x1be378||(_0x1592e3=_0x19d68e['fromRange'](_0x14e802['createRangeIn'](_0xdbf141)));}else _0x1633b8&&!_0x51f1ad&&(_0x323e09=_0x14e802['createRangeIn'](_0xdbf141));}else{const _0x169f85=_0x14e802['createElement']('tableCellSuggestion'),_0x3e0778=_0x14e802['createElement']('tableCellSuggestion');_0x14e802['wrap'](_0x14e802['createRangeIn'](_0xdbf141),_0x3e0778),_0x14e802['insert'](_0x169f85,_0xdbf141,0x0);for(const _0x149866 of Array['from'](_0x27ed8d['getChildren']()))_0x14e802['insert'](_0x149866,_0x169f85,'end');_0x1592e3=_0x19d68e['fromRange'](_0x14e802['createRangeOn'](_0x169f85)),_0x323e09=_0x19d68e['fromRange'](_0x14e802['createRangeOn'](_0x3e0778));}const _0x1b001b=Array['from'](_0x27ed8d['getAttributes']())['filter'](([_0x1c5118])=>ge['includes'](_0x1c5118));_0x59f850['cells']['push']({'element':_0xdbf141,'attributes':_0x1b001b['length']?Object['fromEntries'](_0x1b001b):null}),_0x1592e3&&_0x59f850['insertionRanges']['push'](_0x1592e3),_0x323e09&&_0x59f850['deletionRanges']['push'](_0x323e09);},{'priority':'high'}),_0x58e818['on']('insertColumns',(_0x278815,_0x2c5fe7)=>{const [_0x5c4af0,_0x249308={}]=_0x2c5fe7;if(!_0x59f850)return;const _0x34646b=_0x249308['at']||0x0,_0x5ab876=_0x249308['columns']||0x1;_0x59f850['columnInsertionIndexes']=new Array(_0x5ab876)['fill'](_0x34646b)['map']((_0x4c0e2b,_0x1bc0ed)=>_0x4c0e2b+_0x1bc0ed);for(const {cell:_0x108e11}of _0x58e818['createTableWalker'](_0x5c4af0,{'startColumn':_0x34646b,'endColumn':_0x34646b+_0x5ab876-0x1}))_0x59f850['columnInsertionRanges']['push'](_0x1ce11e['model']['createRangeOn'](_0x108e11));},{'priority':'low'}),_0x58e818['on']('insertRows',(_0x260e7a,_0x162562)=>{const [_0x43172e,_0x4a32ad={}]=_0x162562;if(!_0x59f850)return;const _0xf0fc73=_0x4a32ad['at']||0x0,_0x1a2315=_0x4a32ad['rows']||0x1;_0x59f850['rowInsertionIndexes']=new Array(_0x1a2315)['fill'](_0xf0fc73)['map']((_0x49da8a,_0x2cf99d)=>_0x49da8a+_0x2cf99d);for(const {cell:_0x378de8}of _0x58e818['createTableWalker'](_0x43172e,{'startRow':_0xf0fc73,'endRow':_0xf0fc73+_0x1a2315-0x1}))_0x59f850['rowInsertionRanges']['push'](_0x1ce11e['model']['createRangeOn'](_0x378de8));},{'priority':'low'}),_0x2d666f['descriptionFactory']['registerDescriptionCallback'](_0x1836a7=>{if(_0x1836a7['subType']&&_0x1836a7['subType']['startsWith']('tablePaste'))return _0x1836a7['previous']?{}:{'type':'insertion','content':o(_0x1ce11e['locale'],'*Replace\x20table\x20cells*')};});const _0x2b57b0=()=>!0x1;for(const _0x3e80ae of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2d666f['_suggestionFactory']['registerCustomCallback']('insertion',_0x3e80ae,'join',_0x2b57b0),_0x2d666f['_suggestionFactory']['registerCustomCallback']('deletion',_0x3e80ae,'join',_0x2b57b0),_0x2d666f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e80ae,'join',_0x2b57b0);_0x2d666f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2b57b0),_0x2d666f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a2277,_0x2abef4,_0x507257)=>{const _0x1c6a16=_0x4a2277['map'](_0x5a857e=>_0x5a857e['getContainedElement']())['filter'](_0x189634=>_0x189634),_0x33e767=new Map(_0x1c6a16['map'](_0x50f384=>[_0x50f384,null]));if(_0x59f850){for(const {element:_0x400d3a,attributes:_0x2f28ca}of _0x59f850['cells'])_0x2f28ca&&_0x33e767['set'](_0x400d3a,_0x2f28ca);}else{if(_0x507257&&_0x507257['markerAttributes'])for(const [_0x1b8fbd,_0x47ccd1]of Object['entries'](_0x507257['markerAttributes'])){const _0x1754de=_0x1ce11e['model']['markers']['get'](_0x1b8fbd),_0x4710d0=_0x1754de?_0x1754de['getRange']()['getContainedElement']():null;_0x4710d0&&_0x33e767['set'](_0x4710d0,_0x47ccd1);}}_0x1ce11e['model']['change'](_0x551016=>{for(const [_0x1e7685,_0x26671c]of _0x33e767)_0x551016['setAttributes']({...Ce,..._0x26671c},_0x1e7685);});});const _0x23fc85=(_0xe0af4d,_0xcc249a)=>{_0x2d666f['_suggestionFactory']['registerCustomCallback'](_0xe0af4d,'tablePaste',_0xcc249a,(_0x56da4b,_0x540f87,_0x1f0eb5)=>{_0x1ce11e['model']['change'](_0x2737b0=>{const _0x3aeab7=[];for(const _0x3e7657 of _0x56da4b){const _0x383084=_0x3e7657['start']['nodeAfter'];_0x383084['is']('element','tableCellSuggestion')&&_0x3aeab7['push'](_0x383084);}_0x2d666f['_suggestionFactory']['getSuggestionCallback'](_0xe0af4d,null,_0xcc249a)(_0x56da4b,_0x540f87,_0x1f0eb5);for(const _0x5977a0 of _0x3aeab7)'$graveyard'!=_0x5977a0['root']['rootName']&&_0x2737b0['unwrap'](_0x5977a0);});});};_0x23fc85('insertion','accept'),_0x23fc85('insertion','discard'),_0x23fc85('deletion','accept'),_0x23fc85('deletion','discard'),_0x2d666f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5381bc=>{const _0x44f0d6=_0x5381bc['map'](_0x200387=>_0x200387['getContainedElement']()),_0x5025c8=_0x44f0d6[0x0]['findAncestor']('table'),{minRow:_0x956744,maxRow:_0x54acf2}=_0x122044['_getCoordsForCells'](_0x44f0d6);_0x58e818['removeRows'](_0x5025c8,{'at':_0x956744,'rows':_0x54acf2-_0x956744+0x1});}),_0x2d666f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x171b03=>{const _0x5dd8e8=_0x171b03['map'](_0x48bbf7=>_0x48bbf7['getContainedElement']()),_0x6bd914=_0x5dd8e8[0x0]['findAncestor']('table'),{minColumn:_0x5a3a45,maxColumn:_0x456182}=_0x122044['_getCoordsForCells'](_0x5dd8e8);_0x58e818['removeColumns'](_0x6bd914,{'at':_0x5a3a45,'columns':_0x456182-_0x5a3a45+0x1});});const _0x3f124d=(_0x23b14e,_0x3badf6)=>{if(!_0x3badf6['subType']||!_0x3badf6['subType']['startsWith']('tablePaste'))return;const _0x5d77ac=_0x3badf6['attributes']['tablePasteChainId'],_0x46ce50=_0x2d666f['getSuggestions']()['filter'](_0x4bafb9=>_0x4bafb9['isInContent']&&_0x4bafb9['attributes']&&_0x4bafb9['attributes']['tablePasteChainId']==_0x5d77ac);_0x46ce50['length']&&_0x3badf6['getAllAdjacentSuggestions']()['length']!=_0x46ce50['length']&&_0x46ce50['reduce']((_0x47d9d5,_0x3c382a)=>(_0x47d9d5['next']=_0x3c382a,_0x3c382a['previous']=_0x47d9d5,_0x3c382a));};function _0x365de3(_0x131899,_0x24d158=!0x0){const {id:_0x4256c8}=_0x2d666f['_splitMarkerName'](_0x131899['markerName']),_0x4aee3c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x43209f=_0x2d666f['activeMarkers']['includes'](_0x131899['markerName']);return _0x43209f&&_0x4aee3c['push']('ck-suggestion-marker--active'),{'classes':_0x4aee3c,'attributes':{'data-suggestion':_0x4256c8},'priority':_0x43209f&&_0x24d158?0xbc2:0xbb8};}_0x2d666f['on']('suggestionLoaded',_0x3f124d,{'priority':'high'}),_0x2d666f['on']('suggestionUnloaded',_0x3f124d,{'priority':'high'}),_0x1ce11e['model']['document']['registerPostFixer'](()=>{let _0x546f2e=!0x1;const _0x564437=Array['from'](_0x1ce11e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8b40c4,data:_0x3f55be}of _0x564437){const {group:_0x897d39,type:_0x2e3780,id:_0x5e1ac1}=_0x2d666f['_splitMarkerName'](_0x8b40c4);if('suggestion'!=_0x897d39||'deletion'!=_0x2e3780||_0x3f55be['oldRange'])continue;if(!_0x2d666f['hasSuggestion'](_0x5e1ac1))continue;const _0x41654b=_0x2d666f['getSuggestion'](_0x5e1ac1)['getRanges'](),_0x6f7770=_0x1ce11e['plugins']['get']('Users')['me'];for(const _0x473815 of _0x2d666f['getSuggestions']()){if(!_0x473815['isInContent']||_0x473815['author']!=_0x6f7770)continue;if('formatBlock'!=_0x473815['type']||'tablePasteCell'!=_0x473815['subType'])continue;if(_0x473815['getRanges']()['every'](_0x3e82c2=>_0x41654b['some'](_0x367a50=>_0x367a50['containsRange'](_0x3e82c2,!0x0)))){for(const _0x45f71d of _0x473815['getAllAdjacentSuggestions']())_0x45f71d['isInContent']&&(_0x45f71d['discard'](),_0x546f2e=!0x0);}}}return _0x546f2e;}),_0x1ce11e['model']['document']['registerPostFixer'](_0x57fdbf=>{const _0x26dfe7=_0x1ce11e['commands']['get']('redo');if(!_0x26dfe7||!_0x26dfe7['_createdBatches']['has'](_0x57fdbf['batch']))return!0x1;let _0x3a9b3c=!0x1;const _0x39adcb=_0x1ce11e['plugins']['get']('Users')['me'],_0x5e03e4=_0x1ce11e['model']['document']['differ']['getChanges'](),_0x4d516b=Array['from'](_0x1ce11e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4584cb,data:_0x349899})=>{const {group:_0x2ce4ce,subType:_0x2782f3,authorId:_0x31a62b}=_0x2d666f['_splitMarkerName'](_0x4584cb);return'suggestion'==_0x2ce4ce&&'tablePaste'==_0x2782f3&&_0x31a62b==_0x39adcb['id']&&!_0x349899['oldRange'];});for(const _0x36fb19 of _0x5e03e4){if('insert'!=_0x36fb19['type']||'tableCellSuggestion'!=_0x36fb19['name']||0x1!=_0x36fb19['length'])continue;const _0x5a57c1=_0x57fdbf['createRange'](_0x36fb19['position'],_0x36fb19['position']['getShiftedBy'](0x1));if(!_0x4d516b['find'](({data:_0x3e06e0})=>_0x3e06e0['newRange']['isEqual'](_0x5a57c1))){for(const {name:_0x5b3d59,data:_0x457981}of _0x4d516b)if(_0x5a57c1['containsRange'](_0x457981['newRange'])){_0x57fdbf['updateMarker'](_0x5b3d59,{'range':_0x5a57c1}),_0x3a9b3c=!0x0;break;}}}return _0x3a9b3c;}),_0x1ce11e['model']['document']['registerPostFixer'](_0x2a5187=>{let _0x227a00=!0x1;const _0x151a2a=_0x1ce11e['plugins']['get']('Users')['me'],_0x1bd36e=_0x2d666f['getSuggestions']()['filter'](_0x4f8883=>_0x4f8883['isInContent']&&_0x4f8883['author']==_0x151a2a),_0x118cf2=new Set(),_0x2973b1=new Set();for(const _0x185860 of _0x1bd36e)if('tablePaste'==_0x185860['subType'])for(const _0x218eb2 of _0x185860['getMarkers']()){const _0x1839c7=_0x218eb2['getRange']()['getContainedElement']();if(_0x1839c7){if(_0x1839c7['is']('element','tableCellSuggestion')&&Pe(_0x1839c7)){_0x185860['removeMarker'](_0x218eb2['name']),_0x118cf2['add'](_0x1839c7),_0x227a00=!0x0;const _0x17b539=_0x1839c7['nextSibling'],_0x48b4f8=_0x1839c7['previousSibling'],_0x5d581c=_0x17b539&&_0x17b539['is']('element','tableCellSuggestion'),_0x41dda1=_0x48b4f8&&_0x48b4f8['is']('element','tableCellSuggestion');_0x5d581c&&!_0x118cf2['has'](_0x17b539)&&_0x2973b1['add'](_0x17b539),_0x41dda1&&!_0x118cf2['has'](_0x48b4f8)&&_0x2973b1['add'](_0x48b4f8);}else _0x1839c7['is']('element','paragraph')&&_0x1839c7['isEmpty']&&(_0x185860['removeMarker'](_0x218eb2['name']),_0x227a00=!0x0);}}else{if('tablePasteCell'==_0x185860['subType']){if(!_0x185860['attributes']||!_0x185860['attributes']['tablePasteChainId'])continue;const _0x1da66b=_0x185860['attributes']['markerAttributes'];if(_0x1da66b&&Object['keys'](_0x1da66b)['length'])continue;const _0x5df199=_0x185860['attributes']['tablePasteChainId'];let _0x5eb302=!0x0,_0x55bbb6=!0x0;for(const _0x2dee72 of _0x1bd36e)if(_0x2dee72['subType']&&_0x2dee72['subType']['startsWith']('tablePaste')){if(!_0x2dee72['attributes']['tablePasteChainId']){_0x55bbb6=!0x1;break;}if(_0x2dee72['id']!=_0x185860['id']&&_0x2dee72['attributes']['tablePasteChainId']==_0x5df199){_0x5eb302=!0x1;break;}}_0x55bbb6&&_0x5eb302&&(_0x185860['removeMarkers'](),_0x227a00=!0x0);}}for(const _0x236214 of _0x118cf2)_0x2a5187['remove'](_0x236214);for(const _0x5c29e2 of _0x2973b1)_0x2a5187['unwrap'](_0x5c29e2);return _0x227a00;}),_0x1ce11e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5739ee,_0x2580fe)=>_0x365de3(_0x5739ee),'converterPriority':'high'}),_0x1ce11e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1cefce,_0x91b48e)=>_0x91b48e['options']['showSuggestionHighlights']?_0x365de3(_0x1cefce,!0x1):null,'converterPriority':'high'});const _0x56ac57=_0x1ce11e['editing']['view'];this['listenTo'](_0x56ac57['document'],'clipboardOutput',(_0x587adc,_0x51a3c0)=>{const _0x49dc36=[];for(const _0x1ef4fc of _0x56ac57['createRangeIn'](_0x51a3c0['content'])['getItems']())_0x1ef4fc['is']('element','suggestion-td')&&_0x49dc36['push'](_0x1ef4fc);_0x56ac57['change'](_0xa6d215=>{for(const _0x25ab11 of _0x49dc36)_0xa6d215['move'](_0xa6d215['createRangeIn'](_0x25ab11),_0xa6d215['createPositionBefore'](_0x25ab11)),_0xa6d215['remove'](_0x25ab11);});});}}function Pe(_0x2700e9){if(_0x2700e9['isEmpty'])return!0x0;const _0x3b0b85=_0x2700e9['getChild'](0x0);return _0x3b0b85['is']('element','paragraph')&&_0x3b0b85['isEmpty'];}function he(_0x451ae1,_0x3a8ab0={},_0x220e93){for(const {isAnchor:_0x3e9857,cellHeight:_0xd38fdb,cellWidth:_0x1b0d31}of _0x220e93['createTableWalker'](_0x451ae1,{'includeAllSlots':!0x0,..._0x3a8ab0}))if(!_0x3e9857||0x1!=_0xd38fdb||0x1!=_0x1b0d31)return!0x1;return!0x0;}class vt extends _0x17098e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x562c00=this['editor']['plugins']['get']('TrackChangesEditing');_0x562c00['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x562c00['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x562c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x562c00['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x562c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x562c00['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x7cf7b0,_0x481aea){const _0x4ff0bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x193217=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x33571c=_0x481aea['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x139af0=_0x193217['getColumnGroupElement'](_0x33571c);let _0x4c145d=_0x139af0?_0x193217['getTableColumnsWidths'](_0x139af0):null,_0x33ffef=_0x33571c['getAttribute']('tableWidth')||null;const _0x4e9833=_0x481aea['tableWidth']||_0x33ffef,_0x56e20f=_0x481aea['columnWidths']||_0x4c145d,_0x3430c9=this['editor']['plugins']['get']('Users')['me'];for(const _0x571ae1 of _0x4ff0bd['getSuggestions']()){const _0x5166ec=_0x571ae1['getContainedElement']();if('resizeTable'===_0x571ae1['subType']&&_0x5166ec===_0x33571c){_0x571ae1['author']!==_0x3430c9&&_0x571ae1['discard']();const _0x1c53ed=_0x571ae1['data']['commandParams'];_0x33ffef=_0x1c53ed[0x0]['tableWidth'],_0x4c145d=_0x1c53ed[0x0]['columnWidths'];break;}}_0x7cf7b0({'table':_0x33571c,'tableWidth':_0x4e9833,'columnWidths':_0x56e20f}),_0x4ff0bd['markBlockFormat'](_0x33571c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x33ffef,'columnWidths':_0x4c145d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x28747a){if('formatBlock'!=_0x28747a['type']&&'formatInline'!=_0x28747a['type'])return;const {data:_0xb7e4a6}=_0x28747a;if(_0xb7e4a6&&'resizeTable'===_0xb7e4a6['formatGroupId']){const _0x571ab8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x571ab8)};}}}class _t extends _0x17098e{['afterInit'](){const _0xf91aa0=this['editor'];_0xf91aa0['plugins']['has']('Template')&&_0xf91aa0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x17098e{['afterInit'](){const _0x4d5c5c=this['editor'];if(!_0x4d5c5c['commands']['get']('insertTableOfContents'))return;_0x4d5c5c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1731c5=_0x4d5c5c['plugins']['get']('TrackChangesEditing'),_0x3f5164=_0x4d5c5c['locale'];_0x1731c5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x295406=>o(_0x3f5164,'ELEMENT_TABLE_OF_CONTENTS',_0x295406));}}class Dt extends _0x17098e{['afterInit'](){const _0x1a41ba=this['editor'];if(!_0x1a41ba['plugins']['has']('Title'))return;const _0x26a24b=_0x1a41ba['plugins']['get']('TrackChangesEditing');_0x26a24b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1a41ba['locale'],'ELEMENT_TITLE')),_0x1a41ba['model']['document']['registerPostFixer'](_0x4188b3=>{let _0x2cb1e2=!0x1;const _0x886ab3=Array['from'](_0x1a41ba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1059e2,data:_0x267a5e}of _0x886ab3){const {group:_0x327fe0}=_0x26a24b['_splitMarkerName'](_0x1059e2);if('suggestion'!==_0x327fe0||!_0x267a5e['newRange'])continue;const _0x3a87dc=_0x267a5e['newRange'],_0x5b87f1=_0x3a87dc['end']['nodeBefore'];if(!_0x5b87f1||!_0x5b87f1['is']('element','title-content'))continue;if(!_0x3a87dc['start']['isTouching'](_0x3a87dc['end']))continue;const _0x40f3c8=_0x1a41ba['model']['schema']['getNearestSelectionRange'](_0x3a87dc['end'],'forward');if(_0x40f3c8&&_0x40f3c8['isCollapsed']){const _0x16970c=_0x4188b3['createRange'](_0x3a87dc['start'],_0x40f3c8['start']);_0x16970c['isEqual'](_0x3a87dc)||(_0x4188b3['updateMarker'](_0x1059e2,{'range':_0x16970c}),_0x2cb1e2=!0x0);}_0x2cb1e2||(_0x4188b3['removeMarker'](_0x1059e2),_0x2cb1e2=!0x0);}return _0x2cb1e2;});}}class Nt extends _0x17098e{['afterInit'](){const _0x56b124=this['editor'],_0x5a6f65=_0x56b124['plugins']['get']('TrackChangesEditing');_0x56b124['plugins']['has']('UndoEditing')&&(_0x5a6f65['enableCommand']('undo'),_0x5a6f65['enableCommand']('redo'));}}class Mt extends _0x17098e{static get['requires'](){return[jt];}['afterInit'](){const _0x5d913b=this['editor'];if(!_0x5d913b['plugins']['has']('TableCaptionEditing'))return;_0x5d913b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x17098e{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x44ed39=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1b8b4f of this['tableProperties'])_0x44ed39['enableCommand'](_0x1b8b4f,(_0x55010f,_0x343772)=>{const _0xd1f84a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1b8b4f,[_0xd1f84a],this['tableProperties'],'tableProperties',_0x55010f,_0x343772);});_0x44ed39['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x44ed39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44ed39['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x10319b,_0x1d5197)=>this['handleDiscardAction'](this['tableProperties'],_0x10319b,_0x1d5197)),_0x44ed39['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1c4818 of this['tableCellProperties'])_0x44ed39['enableCommand'](_0x1c4818,(_0x315130,_0x1edc3e)=>{const _0x227ece=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1c4818,_0x227ece,this['tableCellProperties'],'tableCellProperties',_0x315130,_0x1edc3e);});_0x44ed39['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x44ed39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44ed39['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5651cc,_0x135684)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5651cc,_0x135684)),_0x44ed39['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x44ed39['descriptionFactory']['registerDescriptionCallback'](_0x2fbbde=>this['handleSuggestionDescription'](_0x2fbbde));}['_handlePropertyChange'](_0x12e45c,_0x4719cc,_0xec7967,_0x2b14e0,_0x14fa55,_0x300ead){const _0x353461=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x300ead['batch'],()=>{for(const _0x186e9e of _0x4719cc){if(this['_getSuggestion'](_0x186e9e,_0x2b14e0))_0x14fa55(_0x300ead);else{const _0x1cacf3={};for(const _0x5ce308 of _0xec7967){const _0x1d801a=_0x186e9e['getAttribute'](_0x5ce308);void 0x0!==_0x1d801a&&(_0x1cacf3[_0x5ce308]=_0x1d801a);}_0x14fa55(_0x300ead),_0x353461['markBlockFormat'](_0x186e9e,{'commandParams':[_0x1cacf3]},[],_0x2b14e0);}}});}['handleDiscardAction'](_0x4a6cee,_0x13f7f0,_0x3ef526){const _0x5ac9b7=_0x13f7f0[0x0]['start']['nodeAfter'],_0x24b5ab=_0x3ef526['commandParams'][0x0];this['editor']['model']['change'](_0x455369=>{for(const _0x51f04a of _0x4a6cee)void 0x0!==_0x24b5ab[_0x51f04a]?_0x455369['setAttribute'](_0x51f04a,_0x24b5ab[_0x51f04a],_0x5ac9b7):_0x455369['removeAttribute'](_0x51f04a,_0x5ac9b7);});}['handleSuggestionDescription'](_0x183da7){if(_0x183da7['data'])switch(_0x183da7['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'](_0x5cf4e3,_0x2c33a4){const _0x163ad1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1bef02 of _0x163ad1['getSuggestions']({'skipNotAttached':!0x0})){const _0x446cac=_0x1bef02['getContainedElement']();if(_0x1bef02['subType']===_0x2c33a4&&_0x446cac===_0x5cf4e3)return _0x1bef02;}return null;}constructor(_0x3f2811){super(_0x3f2811),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 _0x17098e{static get['requires'](){return['CommentsRepository',_0x5a2c56,_0x4d858a,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 _0x1eb457=this['editor'],_0x404c4c=(_0x59448c,_0x5f30fd)=>{if('attribute'!=_0x59448c)return'ck-suggestion-marker-'+_0x59448c;const _0x4accc4=_0x5f30fd['split']('|')[0x0];return this['_isBlockAttribute'](_0x4accc4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1eb457['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x100b64=>{const {id:_0x77655a,type:_0x58daf6,subType:_0x24a00c}=this['_splitMarkerName'](_0x100b64['markerName']),_0x127ae8=['ck-suggestion-marker',_0x404c4c(_0x58daf6,_0x24a00c)];let _0x49cbf4=0xbb8;return this['activeMarkers']['includes'](_0x100b64['markerName'])&&(_0x127ae8['push']('ck-suggestion-marker--active'),_0x49cbf4=0xbc2),'deletion'==_0x58daf6&&(_0x49cbf4+=0x5),{'classes':_0x127ae8,'attributes':{'data-suggestion':_0x77655a},'priority':_0x49cbf4};}}),_0x1eb457['conversion']['for']('dataDowncast')['add'](_0xe76b81=>{_0xe76b81['on']('addMarker:suggestion',(_0x5daf14,_0x3662d7,_0x5a0cdb)=>{if(!_0x5a0cdb['options']['showSuggestionHighlights'])return;const _0x4f4193=_0x3662d7['item'];if(!_0x4f4193)return;const _0x5d8605=_0x5a0cdb['mapper']['toViewElement'](_0x4f4193);_0x1eb457['model']['schema']['isObject'](_0x4f4193)&&_0x5d8605&&!_0x5d8605['getCustomProperty']('widget')&&_0x5d8605['is']('containerElement')&&_0x15f246(_0x5d8605,_0x5a0cdb['writer']);},{'priority':'high'});}),_0x1eb457['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5ee08d,_0x4dd4b6)=>{if(!_0x4dd4b6['options']['showSuggestionHighlights'])return null;const {type:_0x27e44b,subType:_0xdf7a08}=this['_splitMarkerName'](_0x5ee08d['markerName']);return{'classes':['ck-suggestion-marker',_0x404c4c(_0x27e44b,_0xdf7a08)],'priority':0xbb8};}});const _0xd25f5d=({showActiveMarkers:_0x47f43b=!0x0,isAttributeSuggestion:_0x24d967=!0x1}={})=>(_0x38fd9b,_0x33890b,_0x527891)=>{if(!_0x33890b['item'])return;const {id:_0x528da0}=this['_splitMarkerName'](_0x33890b['markerName']);if(_0x24d967){const _0x451b40=this['_suggestions']['get'](_0x528da0),_0xf192f7=this['_getAttributeKey'](_0x451b40);if(!this['_isBlockAttribute'](_0xf192f7))return;}if(_0x33890b['item']['is']('selection'))return void _0x527891['consumable']['consume'](_0x33890b['item'],_0x38fd9b['name']);const _0x492bbf=_0x527891['mapper']['toViewElement'](_0x33890b['item']);if(_0x33890b['item']['is']('element')&&_0x1eb457['model']['schema']['isBlock'](_0x33890b['item'])&&!_0x492bbf['getCustomProperty']('addHighlight')){_0x527891['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x492bbf),_0x527891['writer']['setAttribute']('data-suggestion',_0x528da0,_0x492bbf),_0x527891['mapper']['bindElementToMarker'](_0x492bbf,_0x33890b['markerName']),_0x47f43b&&(this['activeMarkers']['includes'](_0x33890b['markerName'])?_0x527891['writer']['addClass']('ck-suggestion-marker--active',_0x492bbf):_0x527891['writer']['removeClass']('ck-suggestion-marker--active',_0x492bbf));for(const _0x22a7f1 of _0x1eb457['model']['createRangeIn'](_0x33890b['item'])['getItems']())_0x527891['consumable']['consume'](_0x22a7f1,_0x38fd9b['name']);_0x527891['consumable']['consume'](_0x33890b['item'],_0x38fd9b['name']);}};_0x1eb457['conversion']['for']('dataDowncast')['add'](_0x221d83=>{_0x221d83['on']('addMarker:suggestion:formatBlock',(_0x2bc1cd,_0x576012,_0x4a4f38)=>{_0x4a4f38['options']['showSuggestionHighlights']&&_0xd25f5d({'showActiveMarkers':!0x1})(_0x2bc1cd,_0x576012,_0x4a4f38);},{'priority':'highest'});}),_0x1eb457['conversion']['for']('dataDowncast')['add'](_0x39d5e9=>{_0x39d5e9['on']('addMarker:suggestion:attribute',(_0x58f6e3,_0x478639,_0x4c3ab1)=>{_0x4c3ab1['options']['showSuggestionHighlights']&&_0xd25f5d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x58f6e3,_0x478639,_0x4c3ab1);},{'priority':'highest'});}),_0x1eb457['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x20f39f,_0x6d15f6)=>_0x6d15f6['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x20f39f['substr'](0xb)}}),_0x1eb457['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x366412,{writer:_0x99f174})=>{let _0x5ce3b0='suggestion:'+_0x366412['getAttribute']('suggestion-type')+':'+_0x366412['getAttribute']('id');return _0x366412['getAttribute']('marker-count')&&(_0x5ce3b0+=':'+_0x366412['getAttribute']('marker-count')),_0x99f174['createElement']('$marker',{'data-name':_0x5ce3b0});}}),_0x1eb457['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1eb457['conversion']['for']('editingDowncast')['add'](_0x47cfec=>{_0x47cfec['on']('addMarker:suggestion:formatBlock',_0xd25f5d(),{'priority':'high'});}),_0x1eb457['conversion']['for']('editingDowncast')['add'](_0x35b14e=>{_0x35b14e['on']('addMarker:suggestion:attribute',_0xd25f5d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1eb457['conversion']['for']('editingDowncast')['add'](_0x351235=>{_0x351235['on']('removeMarker:suggestion:formatBlock',(_0x3b72c7,_0x3f5156,_0x220739)=>{const _0x25c736=_0x220739['mapper']['markerNameToElements'](_0x3f5156['markerName']);if(_0x25c736){for(const _0x20338b of _0x25c736)_0x20338b['getCustomProperty']('addHighlight')||(_0x220739['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x20338b),_0x220739['writer']['removeAttribute']('data-suggestion',_0x20338b),_0x220739['mapper']['unbindElementFromMarkerName'](_0x20338b,_0x3f5156['markerName']));}},{'priority':'high'});}),_0x1eb457['conversion']['for']('editingDowncast')['add'](_0x145d52=>{_0x145d52['on']('removeMarker:suggestion:attribute',(_0x559a59,_0x4e463d,_0x5b3166)=>{const _0x4deea7=_0x5b3166['mapper']['markerNameToElements'](_0x4e463d['markerName']);if(!_0x4deea7)return;const {id:_0x427c87}=this['_splitMarkerName'](_0x4e463d['markerName']),_0x336abd=this['_suggestions']['get'](_0x427c87),_0x40bf54=this['_getAttributeKey'](_0x336abd);if(this['_isBlockAttribute'](_0x40bf54)){for(const _0x49c928 of _0x4deea7)_0x49c928['getCustomProperty']('addHighlight')||(_0x5b3166['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x49c928),_0x5b3166['writer']['removeAttribute']('data-suggestion',_0x49c928),_0x5b3166['mapper']['unbindElementFromMarkerName'](_0x49c928,_0x4e463d['markerName']));}},{'priority':'high'});}),_0x1eb457['model']['document']['registerPostFixer'](_0x472c64=>{let _0x591dfb=!0x1;const _0x280377=Array['from'](_0x1eb457['model']['document']['differ']['getChangedMarkers']()),_0x889182=new Set();for(const {name:_0x1a4ec8,data:_0x1fba14}of _0x280377){const {group:_0x82e996,type:_0x5958ac,subType:_0x4196cf,id:_0x2d8841}=this['_splitMarkerName'](_0x1a4ec8);if('suggestion'!==_0x82e996)continue;const _0x2b65f9=this['_suggestions']['get'](_0x2d8841);if(null!=_0x1fba14['newRange']){'formatInline'==_0x5958ac&&(_0x591dfb=_0x591dfb||Et(_0x1fba14['newRange'],_0x1a4ec8,_0x472c64,_0x1eb457['model']['schema']));const _0x272d3='attribute'==_0x5958ac&&this['_isBlockAttribute'](_0x4196cf['split']('|')[0x0]);if(_0x1fba14['newRange']['isCollapsed']||'$graveyard'==_0x1fba14['newRange']['root']['rootName']||'formatBlock'==_0x5958ac&&!Ut(_0x1fba14['newRange'])||_0x272d3&&!Ut(_0x1fba14['newRange'])||'deletion'==_0x5958ac&&!(!Tt(_0x59397e=_0x1fba14['newRange'])&&!function(_0x4d853e){return _0x4d853e['start']['parent']==_0x4d853e['end']['nodeBefore']&&_0x4d853e['start']['isAtEnd'];}(_0x59397e)))_0x472c64['removeMarker'](_0x1a4ec8),_0x591dfb=!0x0;else{if(!_0x2b65f9||!_0x2b65f9['isInContent'])continue;_0x889182['add'](_0x2b65f9);}}}var _0x59397e;return _0x889182['size']>0x0&&(_0x591dfb=!!this['_joinWithAdjacentSuggestions'](_0x889182)||_0x591dfb),_0x591dfb;}),_0x1eb457['model']['document']['registerPostFixer'](_0x245a38=>{let _0x5706c1=!0x1;for(const _0xb75aa1 of _0x1eb457['model']['document']['differ']['getChanges']())if('insert'==_0xb75aa1['type'])for(const _0x4d4ca7 of this['_suggestions']['values']()){if(_0x4d4ca7['isMultiRange']||!_0x4d4ca7['isInContent'])continue;const _0xbd072f='formatBlock'==_0x4d4ca7['type'],_0xcb6a43=this['_getAttributeKey'](_0x4d4ca7),_0x42513d=_0xcb6a43&&this['_isBlockAttribute'](_0xcb6a43);if(!_0xbd072f&&!_0x42513d)continue;const _0x3c1128=_0x4d4ca7['getFirstRange']();if(_0x3c1128['start']['parent']!=_0x3c1128['end']['parent']&&!_0x3c1128['end']['isAtEnd']){const _0x2a136b=_0x1eb457['model']['createPositionAt'](_0x3c1128['start']['nodeAfter'],'end'),_0x30a97d=_0x1eb457['model']['createRange'](_0x3c1128['start'],_0x2a136b);_0x245a38['updateMarker'](_0x4d4ca7['getFirstMarker'](),{'range':_0x30a97d}),_0x5706c1=!0x0;}}return _0x5706c1;}),_0x1eb457['model']['document']['registerPostFixer'](_0x454d70=>this['_processAttributeChanges'](_0x454d70)),_0x1eb457['model']['document']['registerPostFixer'](_0x36960c=>!_0x36960c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x36960c)),_0x1eb457['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1eb457['model']['document']['on']('change:data',(_0x48c4ad,_0x175f17)=>{if(!_0x175f17['isLocal']||_0x175f17['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x48dca2=_0x1eb457['model']['document']['differ']['getChanges']();if(0x0==_0x48dca2['length'])return;const _0x926eb3=[],_0x2cfa22=_0x48dca2['filter'](_0x249436=>'attribute'==_0x249436['type']),_0x261f7d=_0x48dca2['filter'](_0x4e4c79=>'insert'==_0x4e4c79['type']&&'$text'!=_0x4e4c79['name']),_0x36704a=_0x48dca2['filter'](_0x4d317e=>'remove'==_0x4d317e['type']&&'$text'!=_0x4d317e['name']);for(const _0x52b259 of _0x2cfa22)this['_isRegisteredAttribute'](_0x52b259['attributeKey'])&&_0x926eb3['push']({'key':_0x52b259['attributeKey'],'newValue':_0x52b259['attributeNewValue'],'oldValue':_0x52b259['attributeOldValue'],'range':Ot(_0x52b259['range'],_0x1eb457['model'])});for(const _0xc653ef of _0x261f7d){const _0x1e16b4=_0x36704a['find'](_0xb77232=>_0xb77232['_element']===_0xc653ef['_element']);if(_0x1e16b4){const _0x3f093e=Ft(_0xc653ef['position']['nodeAfter'],_0x1eb457['model']);_0x1e16b4['name']!==_0xc653ef['name']&&_0x926eb3['push']({'key':m,'newValue':_0xc653ef['name'],'oldValue':_0x1e16b4['name'],'range':_0x3f093e});for(const [_0x1fea21,_0x1ea91a]of _0x1e16b4['attributes']){if(!this['_isRegisteredAttribute'](_0x1fea21))continue;const _0x25a1ff=_0xc653ef['attributes']['get'](_0x1fea21);_0x1ea91a!==_0x25a1ff&&_0x926eb3['push']({'key':_0x1fea21,'newValue':_0x25a1ff,'oldValue':_0x1ea91a,'range':_0x3f093e});}for(const [_0x56ece9,_0x47ec25]of _0xc653ef['attributes'])this['_isRegisteredAttribute'](_0x56ece9)&&(_0x1e16b4['attributes']['has'](_0x56ece9)||_0x926eb3['push']({'key':_0x56ece9,'newValue':_0x47ec25,'oldValue':null,'range':_0x3f093e}));}}0x0!=_0x926eb3['length']&&_0x1eb457['model']['enqueueChange'](_0x175f17,_0x194e6a=>{const _0xaad5f2=_0x23d99a();for(const {range:_0x487f24,key:_0x6367ac,oldValue:_0x393b5b,newValue:_0x2f7157}of _0x926eb3)this['markAttributeChange'](_0x487f24,_0x6367ac,_0x393b5b,_0x2f7157,{'groupId':_0xaad5f2});this['_reduceExistingSuggestions'](_0x194e6a,_0x926eb3);});},{'priority':'lowest'}),_0x1eb457['model']['markers']['on']('update:suggestion',(_0x2a3867,_0xdbc706,_0x409fe3)=>{if(null==_0x409fe3){const {id:_0x30a19c}=this['_splitMarkerName'](_0xdbc706['name']),_0xc30cd2=this['_suggestions']['get'](_0x30a19c);_0xc30cd2&&_0xc30cd2['addMarkerName'](_0xdbc706['name']);}}),_0x1eb457['model']['document']['on']('change:data',()=>{const _0x16aa27=Array['from'](_0x1eb457['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1abac5=>'suggestion'===this['_splitMarkerName'](_0x1abac5['name'])['group']);if(0x0===_0x16aa27['length'])return;_0x16aa27['sort']((_0x53a4ba,_0x4050a5)=>{const _0x52fbe5=_0x53a4ba['data']['oldRange'],_0x2e7190=_0x4050a5['data']['oldRange'];return null===_0x52fbe5&&null===_0x2e7190?0x0:null===_0x52fbe5&&null!==_0x2e7190?-0x1:null!==_0x52fbe5&&null===_0x2e7190?0x1:_0x52fbe5['start']['isBefore'](_0x2e7190['start'])?-0x1:0x1;});const _0x590ad1=new Set(),_0x592ff2=new Set();for(const {name:_0x564fe5,data:_0x3a3cf8}of _0x16aa27){const {id:_0x1e1c4b}=this['_splitMarkerName'](_0x564fe5);if(null===_0x3a3cf8['oldRange']){const _0x142bac=this['_handleNewSuggestionMarker'](_0x564fe5);_0x592ff2['add'](_0x142bac);}else{const _0x3433c7=this['_suggestions']['get'](_0x1e1c4b);null!==_0x3a3cf8['newRange']||_0x3433c7['isInContent']?(_0x590ad1['add'](_0x3433c7['head']),_0x592ff2['add'](_0x3433c7)):this['_removeSuggestion'](_0x3433c7);}}_0x592ff2['size']>0x0&&this['_refreshSuggestionsChain'](_0x592ff2);for(const _0x41c0c8 of _0x590ad1)this['fire']('suggestionChanged',_0x41c0c8);}),_0x1eb457['model']['on']('applyOperation',(_0xb3ccf2,_0x2964e3)=>{const _0x3f4e71=_0x2964e3[0x0];if(!this['_suggestions']['size'])return;if(!_0x3f4e71['isDocumentOperation'])return;if(_0x3f4e71['batch']['isUndo']||!_0x3f4e71['batch']['isLocal'])return;let _0x3feb1d,_0xf79a60;switch(_0x3f4e71['type']){case'insert':_0x3feb1d=_0x1eb457['model']['createPositionAt'](_0x3f4e71['position']),_0xf79a60=_0x3feb1d['getShiftedBy'](_0x3f4e71['howMany']);break;case'split':_0x3feb1d=_0x1eb457['model']['createPositionAt'](_0x3f4e71['splitPosition']),_0xf79a60=_0x1eb457['model']['createPositionAt'](_0x3f4e71['moveTargetPosition']);break;case'move':_0x3feb1d=_0x1eb457['model']['createPositionAt'](_0x3f4e71['targetPosition']),_0xf79a60=_0x3feb1d['getShiftedBy'](_0x3f4e71['howMany']);break;default:return;}const _0x55b4e7=_0x1eb457['model']['createRange'](_0x3feb1d,_0xf79a60);_0x1eb457['model']['change'](()=>{for(const {suggestion:_0x3dcc62,meta:_0x12c458}of this['_findSuggestions'](_0x55b4e7)){if(_0x3dcc62['isMultiRange'])continue;if('formatInline'==_0x3dcc62['type'])continue;const _0x4beadb=this['_getAttributeKey'](_0x3dcc62);if(_0x4beadb&&this['_isBlockAttribute'](_0x4beadb)&&'split'!=_0x3f4e71['type'])continue;const _0x41b4b1=_0x3dcc62['data']&&_0x3dcc62['data']['multipleBlocks'];('formatBlock'!=_0x3dcc62['type']||'split'==_0x3f4e71['type']&&!_0x41b4b1)&&(_0x12c458['containsRangeInObject']||'insertion'==_0x3dcc62['type']&&_0x12c458['isOwn']||_0x3dcc62['getFirstRange']()['containsRange'](_0x55b4e7)&&this['_breakSuggestionMarker'](_0x3dcc62,_0x3feb1d,_0xf79a60));}});},{'priority':'lowest'}),_0x1eb457['model']['on']('deleteContent',(_0x1af1ed,_0x224696)=>{const _0x5b8198=_0x224696[0x0],_0x579234=_0x224696[0x1];if(_0x579234&&_0x579234['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5b8198['isCollapsed'])return;const _0x56742c=_0x1eb457['model']['schema'],{start:_0x3af215,end:_0x22f5a7}=_0x5b8198['getFirstRange'](),_0x5bcce2=_0x3af215['nodeAfter']&&_0x56742c['isLimit'](_0x3af215['nodeAfter'])?null:_0x56742c['getNearestSelectionRange'](_0x3af215,'forward'),_0x264b79=_0x22f5a7['nodeBefore']&&_0x56742c['isLimit'](_0x22f5a7['nodeBefore'])?null:_0x56742c['getNearestSelectionRange'](_0x22f5a7,'backward'),_0x134526=_0x1eb457['model']['createRange'](_0x5bcce2?_0x5bcce2['start']:_0x3af215,_0x264b79?_0x264b79['end']:_0x22f5a7);_0x1eb457['model']['change'](_0x20230a=>{this['markDeletion'](_0x134526);const _0x40ebd9=_0x1eb457['model']['schema']['getNearestSelectionRange'](_0x134526['start']);_0x5b8198['is']('documentSelection')?_0x20230a['setSelection'](_0x40ebd9):_0x5b8198['setTo'](_0x40ebd9);}),_0x1af1ed['stop']();},{'priority':_0xe86b65['normal']+0xa}),_0x1eb457['model']['on']('insertContent',(_0x426d42,_0x402cb4)=>{const _0x587bf5=_0x402cb4[_0x402cb4['length']-0x1];_0x587bf5&&_0x587bf5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1eb457['model']['change'](()=>{let _0x1f99ed=_0x1eb457['model']['insertContent'](_0x402cb4[0x0],_0x402cb4[0x1],_0x402cb4[0x2],{'forceDefaultExecution':!0x0});if(!_0x1f99ed)return;_0x426d42['return']=_0x1f99ed['clone']();const _0x21abae=_0x1f99ed['end']['nodeBefore'],_0x4f9611=_0x1eb457['model']['schema'];_0x21abae&&_0x4f9611['isBlock'](_0x21abae)&&!_0x4f9611['isObject'](_0x21abae)&&(_0x1f99ed=_0x1eb457['model']['createRange'](_0x1f99ed['start'],_0x1eb457['model']['createPositionAt'](_0x21abae,'end'))),this['markInsertion'](_0x1f99ed);}),_0x426d42['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4f9a5b=new $(_0x1eb457,this['_suggestions']);_0x1eb457['commands']['add']('acceptSuggestion',_0x4f9a5b),this['enableCommand']('acceptSuggestion');const _0x4158f0=new B(_0x1eb457,this['_suggestions']);_0x1eb457['commands']['add']('discardSuggestion',_0x4158f0),this['enableCommand']('discardSuggestion'),_0x1eb457['commands']['add']('acceptAllSuggestions',new x(_0x1eb457,_0x4f9a5b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1eb457['commands']['add']('discardAllSuggestions',new x(_0x1eb457,_0x4158f0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1eb457['commands']['add']('acceptSelectedSuggestions',new R(_0x1eb457,_0x4f9a5b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1eb457['commands']['add']('discardSelectedSuggestions',new R(_0x1eb457,_0x4158f0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4fc9da=_0x1eb457['plugins']['get']('CommentsRepository');this['listenTo'](_0x4fc9da,'addComment',(_0xd6b04,{threadId:_0x57af98})=>{const _0x2b75ef=this['_suggestions']['get'](_0x57af98);_0x2b75ef&&_0x2b75ef['commentThread']&&0x1===_0x2b75ef['commentThread']['length']&&this['_updateSuggestionData'](_0x57af98,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4fc9da,'removeComment',(_0x39e9b3,{threadId:_0x1b39a8})=>{const _0x28635c=this['_suggestions']['get'](_0x1b39a8);_0x28635c&&_0x28635c['commentThread']&&!_0x28635c['commentThread']['length']&&this['_updateSuggestionData'](_0x1b39a8,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x40cfa0){if(this['_adapter'])throw new _0x2594a2('track-changes-adapter-already-set',this);this['_adapter']=_0x40cfa0;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2b66e7=!0x1,toJSON:_0x54a5bb=!0x1}={}){const _0x47a1dc=[];for(const _0xfff47f of this['_suggestions']['values']())_0x2b66e7&&!_0xfff47f['isInContent']||_0x47a1dc['push'](_0xfff47f);return _0x54a5bb?_0x47a1dc['map'](_0x50afa5=>_0x50afa5['toJSON']()):_0x47a1dc;}['getSuggestion'](_0x43e179){const _0xc6426b=this['_suggestions']['get'](_0x43e179);if(!_0xc6426b)throw new _0x2594a2('track-changes-suggestion-not-found',this);return _0xc6426b;}['hasSuggestion'](_0x5605a2){return this['_suggestions']['has'](_0x5605a2);}['addSuggestionData'](_0x4835ce){const {authorId:_0xfdbaae,id:_0x43d356,attributes:_0x1a6230}=_0x4835ce,[_0x3ac089,_0x5d6f23]=_0x4835ce['type']['split'](':'),_0x2b73b6=this['_suggestions']['get'](_0x43d356)||this['_createSuggestion'](_0x3ac089,_0x5d6f23,_0x43d356,_0xfdbaae,_0x1a6230);if(this['_addThreadToSuggestion'](_0x2b73b6),this['_checkSuggestionCorrectness'](_0x2b73b6,_0x3ac089,_0x5d6f23||null,_0xfdbaae),_0x2b73b6['createdAt']=_0x4835ce['createdAt'],_0x2b73b6['_isDataLoaded']=!0x0,_0x1a6230&&_0x1a6230['@external']){const _0x8c71de=_0x1a6230['@external'],_0x19ae4e=this['_getExternalAuthor'](_0x8c71de['authorName']);_0x2b73b6['authoredAt']=_0x8c71de['createdAt'],_0x2b73b6['author']=_0x19ae4e,_0x2b73b6['isExternal']=!0x0;}else _0x2b73b6['authoredAt']=_0x4835ce['createdAt'];switch(_0x4835ce['data']&&(_0x2b73b6['data']=_0x4835ce['data']),_0x4835ce['attributes']&&(_0x2b73b6['attributes']=_0x4835ce['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2b73b6['_saved']=!0x0),this['_suggestionState']['get'](_0x2b73b6)){case'notReady':this['_suggestionState']['set'](_0x2b73b6,'dataReady');break;case'markerReady':_0x2b73b6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2b73b6])),this['_refreshSuggestionsChain'](new Set([_0x2b73b6])),this['_suggestionState']['set'](_0x2b73b6,'ready'),this['fire']('suggestionLoaded',_0x2b73b6)):this['_suggestionState']['set'](_0x2b73b6,'removed');}return _0x2b73b6;}['acceptSuggestion'](_0x5dc69d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3e0084 of _0x5dc69d['getAllAdjacentSuggestions']())_0x3e0084['accept']();});});}['discardSuggestion'](_0x286bec){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3fc53b of _0x286bec['getAllAdjacentSuggestions']())_0x3fc53b['discard']();});});}['enableCommand'](_0x2a85f,_0x230c2b){const _0x335559=this['editor']['commands']['get'](_0x2a85f);if(!_0x335559)throw new _0x2594a2('track-changes-command-not-found',this,{'commandName':_0x2a85f});if(this['_enabledCommands']['has'](_0x335559))throw new _0x2594a2('track-changes-enable-command-twice',this,{'commandName':_0x2a85f});this['_enabledCommands']['add'](_0x335559),_0x230c2b&&_0x335559['on']('execute',(_0x572bd4,_0x5044e0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5044e0['length']>0x0&&_0x5044e0[_0x5044e0['length']-0x1]&&_0x5044e0[_0x5044e0['length']-0x1]['forceDefaultExecution']?_0x5044e0['pop']():(_0x572bd4['return']=_0x230c2b((..._0x3378c0)=>_0x335559['execute'](..._0x3378c0,{'forceDefaultExecution':!0x0}),..._0x5044e0),_0x572bd4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x258e15){let _0x2db5b2,_0x4c0b6e;const _0x1e0b0b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2db5b2=_0x258e15();}catch(_0x512a02){_0x4c0b6e=_0x512a02;}return _0x1e0b0b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4c0b6e&&_0x2594a2['rethrowUnexpectedError'](_0x4c0b6e,this),_0x2db5b2;}['markInsertion'](_0x4ca9f5,_0x391bd9=null,_0x3a3dd6={}){if(_0x4ca9f5['isCollapsed'])return null;const _0x285a69=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x169f7a,meta:_0x1de114}of this['_findSuggestions'](_0x4ca9f5,'insertion'))if(_0x1de114['isOwn']){if(!_0x1de114['isNextTo']){if(_0x1de114['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x169f7a,_0x3a3dd6))continue;return _0x169f7a;}if(Lt(_0x169f7a,_0x3a3dd6))return _0x169f7a;this['_breakSuggestionMarker'](_0x169f7a,_0x4ca9f5['start'],_0x4ca9f5['end']);break;}if(_0x391bd9==_0x169f7a['subType']&&Lt(_0x169f7a,_0x3a3dd6)){const _0x2c9df8=_0x169f7a['getFirstRange']();return _0x2c9df8['start']['isEqual'](_0x4ca9f5['end'])?this['_setSuggestionRange'](_0x169f7a,this['_model']['createRange'](_0x4ca9f5['start'],_0x2c9df8['end'])):this['_setSuggestionRange'](_0x169f7a,this['_model']['createRange'](_0x2c9df8['start'],_0x4ca9f5['end'])),_0x169f7a;}}const _0x11d104=_0x23d99a(),_0x342e31=_0x285a69['id'],_0x1134b5=_0x391bd9?'insertion:'+_0x391bd9:'insertion',_0x56f0e8=this['_setSuggestionData']({'id':_0x11d104,'type':_0x1134b5,'createdAt':new Date(),'authorId':_0x342e31,'attributes':_0x3a3dd6});return this['_addSuggestionMarker'](_0x1134b5,_0x11d104,_0x342e31,_0x4ca9f5),_0x56f0e8;}['markMultiRangeInsertion'](_0x2747d5,_0x32ccb9='multi',_0x284024={}){const _0x86c83b=this['editor']['plugins']['get']('Users')['me'],_0x291346=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x32ccb9,'join');for(const _0x4c1e02 of this['getSuggestions']())if(_0x4c1e02['author']['id']==_0x86c83b['id']&&'insertion'==_0x4c1e02['type']&&_0x4c1e02['subType']==_0x32ccb9&&Lt(_0x4c1e02,_0x284024)&&(_0x291346(_0x4c1e02['getRanges'](),_0x2747d5)||_0x291346(_0x2747d5,_0x4c1e02['getRanges']()))){for(const _0x5d229d of _0x2747d5)_0x4c1e02['addRange'](_0x5d229d);return _0x4c1e02;}for(const {suggestion:_0x23bc7f,meta:_0x30dc5f}of this['_findSuggestions'](_0x2747d5,'insertion')){if(!_0x30dc5f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x30dc5f['containsRangeInObject'])continue;if(!Lt(_0x23bc7f,_0x284024))continue;let _0x3b5dfe=!0x0;for(const _0x27ef4d of _0x23bc7f['getRanges']())for(const _0xbd8500 of _0x2747d5)if(!_0x27ef4d['containsRange'](_0xbd8500)){_0x3b5dfe=!0x1;break;}if(_0x3b5dfe)return _0x23bc7f;}const _0x45b756=_0x23d99a(),_0xa9d9bf=_0x86c83b['id'],_0x264036='insertion:'+_0x32ccb9,_0x1c8fd7=this['_setSuggestionData']({'id':_0x45b756,'type':_0x264036,'createdAt':new Date(),'authorId':_0xa9d9bf,'attributes':_0x284024});for(const _0xda83e7 of _0x2747d5)this['_addSuggestionMarker'](_0x264036,_0x45b756,_0xa9d9bf,_0xda83e7,u['getMultiRangeId']());return _0x1c8fd7;}['markInlineFormat'](_0x5b464f,_0x22f82e,_0xac723e=null,_0x13040a={}){if(_0xac723e=_0xac723e||Vt(_0x22f82e),_0x5b464f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5bf63d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xac723e,'accept');return this['forceDefaultExecution'](()=>_0x5bf63d([_0x5b464f],_0x22f82e,_0x13040a)),null;}const _0x29a6b0=this['editor']['plugins']['get']('Users')['me'],_0x348861=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e35b3,meta:_0x436b64}of this['_findSuggestions'](_0x5b464f,'insertion'))_0x436b64['isOwn']&&!_0x436b64['isInsideObject']&&_0x348861['push'](..._0x1e35b3['getRanges']());}const _0x1ad128=function(_0xec110e,_0x238c65){const _0x55f567=[];for(const _0x2811a4 of _0x238c65){const _0x1d42a3=_0xec110e['getIntersection'](_0x2811a4);_0x1d42a3&&_0x55f567['push'](_0x1d42a3);}return _0x55f567;}(_0x5b464f,_0x348861),_0x2fcfc5=function(_0x3d6e17,_0x2571f3){const _0x191d33=[_0x3d6e17];for(const _0x47eb5c of _0x2571f3){let _0x2dda19=0x0;for(;_0x2dda19<_0x191d33['length'];){const _0x52d903=_0x191d33[_0x2dda19]['getDifference'](_0x47eb5c);_0x191d33['splice'](_0x2dda19,0x1,..._0x52d903),_0x2dda19+=_0x52d903['length'];}}return _0x191d33;}(_0x5b464f,_0x348861);_0x1ad128['length']&&this['_model']['change'](()=>{for(const _0x415db4 of _0x1ad128){const _0x53560b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xac723e,'accept');this['forceDefaultExecution'](()=>_0x53560b([_0x415db4],_0x22f82e,_0x13040a));}});for(const _0x2351e5 of _0x2fcfc5){let _0x5ac767=null,_0x36ca78=_0x2351e5['start'],_0x25b6dd=_0x2351e5['end'];for(const {suggestion:_0x552eb,meta:_0x479527}of this['_findSuggestions'](_0x2351e5,'formatInline')){if(!_0x479527['isOwn'])continue;if(_0x552eb['subType']!=_0xac723e)continue;if(!Lt(_0x552eb,_0x13040a))continue;const _0x24a488=_0x552eb['getFirstRange']();if(_0x24a488['containsRange'](_0x2351e5,!0x0))return null;_0x36ca78=_0x36ca78['isBefore'](_0x24a488['start'])?_0x36ca78:_0x24a488['start'],_0x25b6dd=_0x25b6dd['isAfter'](_0x24a488['end'])?_0x25b6dd:_0x24a488['end'],_0x5ac767?_0x24a488['start']['isBefore'](_0x5ac767['getFirstRange']()['start'])?(_0x5ac767['removeMarkers'](),_0x5ac767=_0x552eb):_0x552eb['removeMarkers']():_0x5ac767=_0x552eb;}const _0x25e039=this['_model']['createRange'](_0x36ca78,_0x25b6dd);if(_0x5ac767)this['_setSuggestionRange'](_0x5ac767,_0x25e039);else{const _0x15eef1=_0x23d99a(),_0x145193=_0x29a6b0['id'];this['_setSuggestionData']({'id':_0x15eef1,'type':'formatInline:'+_0xac723e,'data':_0x22f82e,'createdAt':new Date(),'authorId':_0x145193,'attributes':_0x13040a}),this['_addSuggestionMarker']('formatInline:'+_0xac723e,_0x15eef1,_0x145193,_0x25e039);}}return null;}['markBlockFormat'](_0x3619fd,_0x4e952a,_0x4e5041=[],_0x23414f=null,_0x2c58db={}){_0x4e952a['formatGroupId']||(_0x4e952a['formatGroupId']=_0x4e952a['commandName']),_0x4e952a['multipleBlocks']=_0x3619fd['is']('range'),_0x23414f=_0x23414f||Vt(_0x4e952a);const _0xc9b46=_0x4e5041['map'](_0x29b022=>Ft(_0x29b022,this['_model'])),_0x21f8ef=_0x3619fd['is']('range')?_0x3619fd:Ft(_0x3619fd,this['_model']);if('never'===this['_trackFormatChanges']){const _0x48eedf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23414f,'accept');return this['forceDefaultExecution'](()=>_0x48eedf([_0x21f8ef],_0x4e952a,_0x2c58db)),null;}_0xc9b46['push'](_0x21f8ef);let _0x58eb45=!0x0;for(const _0x44d9bb of _0xc9b46)if(!this['_rangeIsInLocalUserInsertion'](_0x44d9bb)){_0x58eb45=!0x1;break;}if(_0x58eb45&&'always'!==this['_trackFormatChanges']){const _0x5e2680=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23414f,'accept');return this['forceDefaultExecution'](()=>_0x5e2680([_0x21f8ef],_0x4e952a,_0x2c58db)),null;}let _0x525e80=null,_0x4e147d=_0x21f8ef['start'],_0x1540af=_0x21f8ef['end'];for(const {suggestion:_0x4824bc,meta:_0x3c5193}of this['_findSuggestions'](_0x21f8ef,'formatBlock')){if(!_0x3c5193['isOwn'])continue;if(_0x3c5193['isNextTo']||_0x3c5193['containsRangeInObject']||_0x3c5193['isInsideObject'])continue;if(_0x4824bc['data']['formatGroupId']!=_0x4e952a['formatGroupId'])continue;if(!Lt(_0x4824bc,_0x2c58db))continue;const _0x4b201d=_0x4824bc['getFirstRange']();if(_0x4824bc['subType']==_0x23414f){if(_0x4b201d['containsRange'](_0x21f8ef,!0x0))return null;_0x4e147d=_0x4e147d['isBefore'](_0x4b201d['start'])?_0x4e147d:_0x4b201d['start'],_0x1540af=_0x1540af['isAfter'](_0x4b201d['end'])?_0x1540af:_0x4b201d['end'],_0x525e80?_0x4b201d['start']['isBefore'](_0x525e80['getFirstRange']()['start'])?(_0x525e80['removeMarkers'](),_0x525e80=_0x4824bc):_0x4824bc['removeMarkers']():_0x525e80=_0x4824bc;}else{const _0x3364c6=_0x21f8ef['getIntersection'](_0x4b201d);this['_cutOutSuggestionMarker'](_0x4824bc,_0x3364c6);}}const _0x286b66=this['editor']['plugins']['get']('Users')['me'],_0x27cf63=_0x23d99a(),_0x35e5f2=_0x286b66['id'];if(_0x525e80)return this['_setSuggestionRange'](_0x525e80,this['_model']['createRange'](_0x4e147d,_0x1540af)),_0x525e80;{const _0x31927c=this['_setSuggestionData']({'id':_0x27cf63,'type':'formatBlock:'+_0x23414f,'data':_0x4e952a,'createdAt':new Date(),'authorId':_0x35e5f2,'attributes':_0x2c58db});return this['_addSuggestionMarker']('formatBlock:'+_0x23414f,_0x27cf63,_0x35e5f2,this['_model']['createRange'](_0x4e147d,_0x1540af)),_0x31927c;}}['markMultiRangeBlockFormat'](_0xe5b771,_0x47aee7,_0x16fa2b=[],_0x5ac899=null,_0xab5051={}){_0x47aee7['formatGroupId']||(_0x47aee7['formatGroupId']=_0x47aee7['commandName']);const _0x21310b=_0xe5b771[0x0];_0x47aee7['multipleBlocks']=_0x21310b['is']('range'),_0x5ac899=_0x5ac899||Vt(_0x47aee7);const _0xf2ef72=_0x16fa2b['map'](_0x3b8b52=>Ft(_0x3b8b52,this['_model'])),_0x10742e=_0x21310b['is']('range')?_0xe5b771:_0xe5b771['map'](_0x9ff70e=>Ft(_0x9ff70e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x327216=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ac899,'accept');return this['forceDefaultExecution'](()=>_0x327216(_0x10742e,_0x47aee7,_0xab5051)),null;}_0xf2ef72['push'](..._0x10742e);let _0x19c135=!0x0;for(const _0x46a37c of _0xf2ef72)if(!this['_rangeIsInLocalUserInsertion'](_0x46a37c)){_0x19c135=!0x1;break;}if(_0x19c135&&'always'!==this['_trackFormatChanges']){const _0x558887=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ac899,'accept');return this['forceDefaultExecution'](()=>_0x558887(_0x10742e,_0x47aee7,_0xab5051)),null;}const _0xdeb045=this['editor']['plugins']['get']('Users')['me'];for(const _0xb68028 of this['getSuggestions']()){if(_0xb68028['author']['id']!=_0xdeb045['id'])continue;if('formatBlock'!=_0xb68028['type']||_0xb68028['data']['formatGroupId']!=_0x47aee7['formatGroupId'])continue;if(!Lt(_0xb68028,_0xab5051))continue;const _0x3c1693=_0xb68028['subType']==_0x5ac899;for(let _0x21a963=0x0;_0x21a963<_0x10742e['length'];_0x21a963++){const _0x118457=_0x10742e[_0x21a963];for(const _0x2b6423 of _0xb68028['getMarkers']()){const _0x1dd279=_0x2b6423['getRange']();if(_0x118457['isEqual'](_0x1dd279)){_0x3c1693?(_0x10742e['splice'](_0x21a963,0x1),_0x21a963--):_0xb68028['removeMarker'](_0x2b6423['name']);break;}}}}if(0x0==_0x10742e['length'])return null;const _0x589516=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ac899,'join');for(const _0x3e1477 of this['getSuggestions']())if(_0x3e1477['author']['id']==_0xdeb045['id']&&'formatBlock'==_0x3e1477['type']&&_0x3e1477['data']['formatGroupId']==_0x47aee7['formatGroupId']&&_0x3e1477['subType']==_0x5ac899&&Lt(_0x3e1477,_0xab5051)&&(_0x589516(_0x3e1477['getRanges'](),_0x10742e)||_0x589516(_0x10742e,_0x3e1477['getRanges']()))){for(const _0x470cc4 of _0x10742e)_0x3e1477['addRange'](_0x470cc4);return _0x3e1477;}const _0x2bfe38=_0x23d99a(),_0x4cebba=_0xdeb045['id'],_0x8dc005='formatBlock:'+_0x5ac899,_0x5beb70=this['_setSuggestionData']({'id':_0x2bfe38,'type':_0x8dc005,'data':_0x47aee7,'createdAt':new Date(),'authorId':_0x4cebba,'attributes':_0xab5051});for(const _0x23c2ec of _0x10742e)this['_addSuggestionMarker'](_0x8dc005,_0x2bfe38,_0x4cebba,_0x23c2ec,u['getMultiRangeId']());return _0x5beb70;}['markDeletion'](_0x4038db,_0x28100b=null,_0xdb48b4={}){if(_0x4038db['isCollapsed'])return null;const _0x1d96e3=this['editor']['plugins']['get']('Users')['me'],_0x531b64=new _0x19d68e(_0x4038db['start'],_0x4038db['end']);for(const {suggestion:_0x4ff396,meta:_0xf60560}of this['_findSuggestions'](_0x531b64,'insertion'))if(_0xf60560['isOwn']&&!_0xf60560['isNextTo']){if(_0x4ff396['isMultiRange']){const _0x125997=_0x4ff396['getRanges']()['filter'](_0x1c35f7=>'$graveyard'!=_0x1c35f7['root']['rootName']);_0x125997['every'](_0x543712=>_0x531b64['containsRange'](_0x543712,!0x0))&&_0x4ff396['discard']();if(_0x125997['some'](_0x43f743=>_0x43f743['containsRange'](_0x531b64,!0x0))){const _0x1d63dd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28100b,'accept');return this['forceDefaultExecution'](()=>_0x1d63dd([_0x531b64],null,_0xdb48b4)),null;}}else{const _0x23a9b1=_0x531b64['getIntersection'](_0x4ff396['getFirstRange']());null!==_0x23a9b1&&_0x4ff396['_onDiscard']([_0x23a9b1],null,_0xdb48b4);}}if(_0x531b64['detach'](),_0x531b64['isCollapsed']||'$graveyard'==_0x531b64['root']['rootName'])return null;let _0xa3d71f=null,_0xa84de2=_0x531b64['start'],_0xe3ff73=_0x531b64['end'];const _0x5b1b07=this['_findSuggestions'](_0x531b64,'deletion');for(const {suggestion:_0x513975,meta:_0x3dd465}of _0x5b1b07){const _0x4e93ae=this['_model']['createRange'](_0xa84de2,_0xe3ff73);if(_0x3dd465['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3dd465['containsRangeInObject']&&!_0x3dd465['isInsideObject'])){if(_0x513975['isMultiRange']){if(!Lt(_0x513975,_0xdb48b4))continue;let _0x534b7b=!0x0;for(const _0x3e95bc of _0x513975['getRanges']()){if(_0x3e95bc['containsRange'](_0x4e93ae,!0x0))return _0x513975;_0x4e93ae['containsRange'](_0x3e95bc)||(_0x534b7b=!0x1);}_0x534b7b&&_0x513975['discard']();}else{const _0xab43e9=_0x513975['getFirstRange']();if(_0xab43e9['containsRange'](_0x4e93ae,!0x0))return _0x513975;if(!Lt(_0x513975,_0xdb48b4)){_0x4e93ae['containsRange'](_0xab43e9)?_0x513975['removeMarkers']():_0xab43e9['containsPosition'](_0xa84de2)?_0xa84de2=_0xab43e9['end']:_0xab43e9['containsPosition'](_0xe3ff73)&&(_0xe3ff73=_0xab43e9['start']);continue;}_0xa84de2=_0xa84de2['isBefore'](_0xab43e9['start'])?_0xa84de2:_0xab43e9['start'],_0xe3ff73=_0xe3ff73['isAfter'](_0xab43e9['end'])?_0xe3ff73:_0xab43e9['end'],_0xdb48b4=Object['assign']({},_0x513975['attributes']),_0xa3d71f?_0xab43e9['start']['isBefore'](_0xa3d71f['getFirstRange']()['start'])?(_0xa3d71f['removeMarkers'](),_0xa3d71f=_0x513975):_0x513975['removeMarkers']():_0xa3d71f=_0x513975;}}}if(_0xa3d71f)return this['_setSuggestionRange'](_0xa3d71f,this['_model']['createRange'](_0xa84de2,_0xe3ff73)),_0xa3d71f;{const _0x34a990=_0x23d99a(),_0x41ee28=this['_model']['createRange'](_0xa84de2,_0xe3ff73),_0x39fbda=_0x1d96e3['id'],_0x2dce04=_0x28100b?'deletion:'+_0x28100b:'deletion',_0x287c94=this['_setSuggestionData']({'id':_0x34a990,'type':_0x2dce04,'createdAt':new Date(),'authorId':_0x39fbda,'attributes':_0xdb48b4});return this['_addSuggestionMarker'](_0x2dce04,_0x34a990,_0x39fbda,_0x41ee28),_0x287c94;}}['markMultiRangeDeletion'](_0x5f5a68,_0x1d0631='multi',_0x26f58e={}){const _0x4c9a17=this['editor']['plugins']['get']('Users')['me'],_0x43035a=_0x5f5a68['map'](_0xc6523a=>new _0x19d68e(_0xc6523a['start'],_0xc6523a['end'])),_0x3fd2f8=new Set();for(const {suggestion:_0x59708b,meta:_0x5190cd}of this['_findSuggestions'](_0x43035a,'insertion'))_0x5190cd['isOwn']&&!_0x5190cd['isNextTo']&&_0x3fd2f8['add'](_0x59708b);for(const _0x5549d8 of _0x3fd2f8)if(_0x5549d8['isMultiRange']){const _0x2a9946=_0x5549d8['getRanges']();(!_0x5549d8['attributes']||!_0x5549d8['attributes']['skipNestingCheck'])&&(_0x2a9946['every'](_0x5e4bb7=>_0x43035a['some'](_0xb33cb4=>_0xb33cb4['containsRange'](_0x5e4bb7,!0x0)))&&_0x5549d8['discard']());if(_0x43035a['every'](_0x2facfe=>_0x2a9946['some'](_0x13e363=>_0x13e363['containsRange'](_0x2facfe,!0x0)))){const _0xb7c7f6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d0631,'accept');return this['forceDefaultExecution'](()=>_0xb7c7f6(_0x5f5a68,null,_0x26f58e)),null;}}else{const _0x481b93=_0x5549d8['getFirstRange']();_0x43035a['some'](_0x3408b3=>_0x3408b3['containsRange'](_0x481b93,!0x0))&&_0x5549d8['discard']();if(_0x43035a['every'](_0x545ae3=>_0x481b93['containsRange'](_0x545ae3,!0x0))){const _0x599de6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d0631,'accept');return this['forceDefaultExecution'](()=>_0x599de6(_0x43035a,null,_0x26f58e)),null;}}const _0x1864de=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d0631,'join');let _0x50db43=null;for(const _0x19dafb of this['getSuggestions']())if(_0x19dafb['author']['id']==_0x4c9a17['id']&&_0x19dafb['isInContent']&&'deletion'==_0x19dafb['type']&&_0x19dafb['subType']==_0x1d0631&&Lt(_0x19dafb,_0x26f58e)&&(_0x1864de(_0x19dafb['getRanges'](),_0x43035a)||_0x1864de(_0x43035a,_0x19dafb['getRanges']()))){if(_0x50db43){if(_0x19dafb['commentThread']&&_0x19dafb['commentThread']['length'])continue;for(const _0x447c09 of _0x19dafb['getRanges']())_0x50db43['isIntersectingWithRange'](_0x447c09)||_0x50db43['addRange'](_0x447c09);_0x19dafb['removeMarkers']();}else{_0x50db43=_0x19dafb;for(const _0x3a1f81 of _0x43035a)_0x19dafb['isIntersectingWithRange'](_0x3a1f81)||_0x19dafb['addRange'](_0x3a1f81);}}if(_0x50db43)return _0x50db43;_0x3fd2f8['clear']();for(const {suggestion:_0x599563,meta:_0x547935}of this['_findSuggestions'](_0x43035a,'deletion'))_0x547935['isOwn']&&(this['_mergeNestedSuggestions']||!_0x547935['containsRangeInObject']&&!_0x547935['isInsideObject'])&&Lt(_0x599563,_0x26f58e)&&_0x3fd2f8['add'](_0x599563);for(const _0x2b85a1 of _0x3fd2f8){const _0x3f4626=_0x2b85a1['getRanges']();if(!_0x26f58e||!_0x26f58e['skipNestingCheck']){if(_0x43035a['every'](_0x39ea56=>_0x3f4626['some'](_0xc676ac=>_0xc676ac['containsRange'](_0x39ea56,!0x0))))return _0x2b85a1;}(!_0x2b85a1['attributes']||!_0x2b85a1['attributes']['skipNestingCheck'])&&(_0x3f4626['every'](_0x52dfb3=>_0x43035a['some'](_0x320c97=>_0x320c97['containsRange'](_0x52dfb3,!0x0)))&&_0x2b85a1['discard']());}const _0x176fa8=_0x23d99a(),_0x2351d=_0x4c9a17['id'],_0x4b936d='deletion:'+_0x1d0631,_0x3a18e5=this['_setSuggestionData']({'id':_0x176fa8,'type':_0x4b936d,'createdAt':new Date(),'authorId':_0x2351d,'attributes':_0x26f58e});for(const _0x57824c of _0x43035a)_0x57824c['detach'](),_0x57824c['isCollapsed']||'$graveyard'==_0x57824c['root']['rootName']||this['_addSuggestionMarker'](_0x4b936d,_0x176fa8,_0x2351d,_0x57824c,u['getMultiRangeId']());return _0x3a18e5;}['markAttributeChange'](_0x135329,_0x4c16c5,_0x4f76f8,_0x1355fb,_0xe1606d){if(_0x135329['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4e5499=this['editor']['plugins']['get']('Users')['me']['id'],_0x1fe361=Array['from'](this['_suggestions']['values']())['filter'](_0x3ce7ac=>'attribute'==_0x3ce7ac['type']&&_0x3ce7ac['data']['key']==_0x4c16c5&&_0x3ce7ac['isIntersectingWithRange'](_0x135329));if('default'===this['_trackFormatChanges']){const _0x4d0572=this['_findSuggestions'](_0x135329,'insertion')['filter'](({meta:_0x146881})=>_0x146881['isOwn']&&!_0x146881['isInsideObject']&&!_0x146881['isNextTo'])['map'](({suggestion:_0x30a18b})=>_0x30a18b);_0x1fe361['unshift'](..._0x4d0572);}const _0x4c0bf3=new Map([[_0x135329,_0x4f76f8]]);for(const _0x1c3e9e of _0x1fe361){const _0x3d2d77='attribute'==_0x1c3e9e['type']?_0x1c3e9e['data']['oldValue']:void 0x0,_0xc259cd=_0x1c3e9e['getFirstRange'](),_0x263971=Array['from'](_0x4c0bf3['keys']())['find'](_0x408f15=>_0x408f15['isIntersecting'](_0xc259cd));if(!_0x263971)continue;const _0x69707d=_0x263971['getDifference'](_0xc259cd);this['_isBlockAttribute'](_0x4c16c5)&&'insertion'==_0x1c3e9e['type']&&0x0!=_0x69707d['length']||(_0x4c0bf3['delete'](_0x263971),_0x69707d['forEach'](_0x3a6c4a=>{_0x4c0bf3['set'](_0x3a6c4a,_0x4f76f8);}),'insertion'!=_0x1c3e9e['type']&&_0x3d2d77!=_0x1355fb&&_0x4c0bf3['set'](_0x263971['getIntersection'](_0xc259cd),_0x3d2d77));}const _0x4593c5=[];for(const [_0x5e1b4a,_0x4bd914]of _0x4c0bf3){const _0x4b0648=_0x23d99a(),_0x105d81={'key':_0x4c16c5,'oldValue':_0x4bd914,'newValue':_0x1355fb};_0x4c16c5['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':_0x4c16c5});const _0x10aed2=('attribute:'+(_0x4c16c5+'|'+Vt({'newValue':_0x1355fb})))['substring'](0x0,0x3c),_0x15984d=this['_setSuggestionData']({'id':_0x4b0648,'type':_0x10aed2,'data':_0x105d81,'createdAt':new Date(),'authorId':_0x4e5499,'attributes':_0xe1606d});_0x4593c5['push'](_0x15984d),this['_addSuggestionMarker'](_0x10aed2,_0x4b0648,_0x4e5499,_0x5e1b4a);}return _0x4593c5;}['enableDefaultAttributesIntegration'](_0xe81694){this['enableCommand'](_0xe81694,(_0x48fdc5,..._0x488f06)=>{this['_recordAttributeChanges'](()=>{_0x48fdc5(..._0x488f06);});});}['registerBlockAttribute'](_0x306323){this['_blockAttributeKeys']['add'](_0x306323);}['registerInlineAttribute'](_0x510413){this['_inlineAttributeKeys']['add'](_0x510413);}['_getAttributeKey'](_0x4c7715){return'attribute'==_0x4c7715['type']?_0x4c7715['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2cf9f2,_0x5d1cfc){const _0x5c559a=_0x2cf9f2['getFirstMarker']();this['_model']['change'](_0x3c03cf=>{_0x3c03cf['updateMarker'](_0x5c559a,{'range':_0x5d1cfc});});}['_addThreadToSuggestion'](_0x82f8d0){const _0x2da334=_0x82f8d0['id'],_0xe46a9d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2da334)||this['_commentsRepository']['addCommentThread']({'channelId':_0xe46a9d,'threadId':_0x2da334,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x41a4f1=this['_commentsRepository']['getCommentThread'](_0x2da334);_0x41a4f1['unbind']('isRemovable'),_0x41a4f1['isRemovable']=!0x1,_0x82f8d0['commentThread']=_0x41a4f1;}['_checkSuggestionCorrectness'](_0x3924be,_0x2b60f9,_0x254460,_0x3a15da){if(_0x3924be['type']!=_0x2b60f9||_0x3924be['subType']!=_0x254460||_0x3924be['creator']['id']!=_0x3a15da)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2594a2('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x16fb99,_0x186fa0){const _0x25e89e=_0x16fb99['getFirstRange']();if(_0x186fa0['isEqual'](_0x25e89e))_0x16fb99['removeMarkers']();else{if(_0x25e89e['containsRange'](_0x186fa0)){const _0x5f3952=this['_model']['createPositionAt'](_0x186fa0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16fb99,this['_model']['createRange'](_0x25e89e['start'],_0x5f3952));const _0x144942=_0x23d99a(),_0x454928=_0x16fb99['creator']['id'],_0x44d41a=_0x16fb99['type']+':'+_0x16fb99['subType'];this['_setSuggestionData']({'id':_0x144942,'type':_0x44d41a,'createdAt':new Date(),'authorId':_0x454928,'data':_0x16fb99['data'],'attributes':_0x16fb99['attributes']});const _0x2c70f8=this['_model']['createPositionAt'](_0x186fa0['end']['parent'],'after'),_0x16c793=this['_model']['createRange'](_0x2c70f8,_0x25e89e['end']);this['_addSuggestionMarker'](_0x44d41a,_0x144942,_0x454928,_0x16c793);}else{if(_0x25e89e['containsPosition'](_0x186fa0['start'])){const _0x472076=this['_model']['createPositionAt'](_0x186fa0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16fb99,this['_model']['createRange'](_0x25e89e['start'],_0x472076));}else{const _0x8e64cc=this['_model']['createPositionAt'](_0x186fa0['end']['parent'],'after');this['_setSuggestionRange'](_0x16fb99,this['_model']['createRange'](_0x8e64cc,_0x25e89e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1fbc99){for(const {suggestion:_0x4c58d8,meta:_0x1a9aa7}of this['_findSuggestions'](_0x1fbc99,'insertion')){if(!_0x1a9aa7['isOwn'])continue;const _0x56f670=_0x4c58d8['getRanges']();for(const _0x7e7ab0 of _0x56f670)if(!_0x1fbc99['getDifference'](_0x7e7ab0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xeeb2d6){const _0x555d24=this['editor']['plugins']['get']('Users')['getUser'](_0xeeb2d6);if(!_0x555d24)throw new _0x2594a2('track-changes-user-not-found',this);return _0x555d24;}['_getExternalAuthor'](_0x4489ab){const _0xd26d5d=this['editor']['plugins']['get']('Users'),_0x4ace4f=_0xb5a321('external:'+_0x4489ab),_0x16c6d1=_0xd26d5d['getUser'](_0x4ace4f);return _0x16c6d1||_0xd26d5d['addUser']({'id':_0x4ace4f,'name':_0x4489ab});}['_createSuggestion'](_0x58845c,_0x41c5d8,_0x242a11,_0xd92672,_0x5ecdf9){const _0x193f9f=this['_getAuthorFromId'](_0xd92672),_0x1b5ffb=this['_suggestionFactory']['buildSuggestion'](_0x58845c,_0x41c5d8,_0x242a11,_0x193f9f,_0x5ecdf9,_0x32884e=>{this['_updateSuggestionData'](_0x242a11,{'attributes':_0x32884e});const _0x2bb13f=this['getSuggestion'](_0x242a11);this['_joinWithAdjacentSuggestions'](new Set([_0x2bb13f])),this['_refreshSuggestionsChain'](new Set([_0x2bb13f]));});return this['listenTo'](_0x1b5ffb,'accept',()=>{this['_updateSuggestionData'](_0x242a11,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1b5ffb,'discard',()=>{this['_updateSuggestionData'](_0x242a11,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x242a11,_0x1b5ffb),this['_suggestionState']['set'](_0x1b5ffb,'notReady'),_0x1b5ffb;}['_splitMarkerName'](_0x4fcfaa){const _0x5b66db=_0x4fcfaa['split'](':');return{'group':_0x5b66db[0x0],'type':_0x5b66db[0x1],'subType':_0x5b66db['length']>=0x5?_0x5b66db[0x2]:null,'id':_0x5b66db['length']<0x5?_0x5b66db[0x2]:_0x5b66db[0x3],'authorId':_0x5b66db['length']<0x5?_0x5b66db[0x3]:_0x5b66db[0x4],'markerCount':0x6==_0x5b66db['length']?_0x5b66db[0x5]:null};}['_breakSuggestionMarker'](_0x3254e8,_0x35fab2,_0x4cd83a){const _0x53f5c3=_0x3254e8['getFirstRange'](),_0x5ce6b2=_0x53f5c3['start'],_0x37686b=_0x53f5c3['end'];this['_setSuggestionRange'](_0x3254e8,this['_model']['createRange'](_0x5ce6b2,_0x35fab2));const _0x538a2e=_0x23d99a(),_0x248b7d=_0x3254e8['creator']['id'],_0x56fc2f=_0x3254e8['type']+(_0x3254e8['subType']?':'+_0x3254e8['subType']:'');this['_setSuggestionData']({'id':_0x538a2e,'type':_0x56fc2f,'createdAt':new Date(),'authorId':_0x248b7d,'originalSuggestionId':_0x3254e8['id'],'attributes':_0x3254e8['attributes'],'data':_0x3254e8['data']});const _0x2c78f3=this['_getAttributeKey'](_0x3254e8);('formatBlock'==_0x3254e8['type']||_0x2c78f3&&this['_isBlockAttribute'](_0x2c78f3))&&(_0x4cd83a=this['_model']['createPositionBefore'](_0x4cd83a['parent'])),this['_addSuggestionMarker'](_0x56fc2f,_0x538a2e,_0x248b7d,this['_model']['createRange'](_0x4cd83a,_0x37686b));}['_findSuggestions'](_0x323452,_0x456010=null){const _0x153dcf=[],_0x45371b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x323452)||(_0x323452=[_0x323452]);for(const _0x4eb96d of this['getSuggestions']()){if(!_0x4eb96d['isInContent'])continue;if(_0x456010&&_0x4eb96d['type']!=_0x456010)continue;let _0x174b57=!0x1;for(const _0x202099 of _0x4eb96d['getRanges']()){for(const _0x234948 of _0x323452){const _0x1bba38=_0x234948['start']['isEqual'](_0x202099['end'])||_0x234948['end']['isEqual'](_0x202099['start']);if(_0x1bba38||_0x234948['getIntersection'](_0x202099)){const _0x3502c5=_0x234948['containsRange'](_0x202099)&&Rt(this['_model']['schema'],_0x202099['start'],_0x234948),_0x4de11e=_0x202099['containsRange'](_0x234948)&&Rt(this['_model']['schema'],_0x234948['start'],_0x202099);_0x153dcf['push']({'suggestion':_0x4eb96d,'meta':{'isOwn':_0x45371b==_0x4eb96d['author'],'isNextTo':_0x1bba38,'isInsideObject':_0x3502c5,'containsRangeInObject':_0x4de11e}}),_0x174b57=!0x0;break;}}if(_0x174b57)break;}}return _0x153dcf;}['_addSuggestionMarker'](_0x306ee6,_0x5c3649,_0x43b104,_0x2ced24,_0x21c328){this['_model']['change'](_0x4baf76=>{let _0x38e5b5='suggestion:'+_0x306ee6+':'+_0x5c3649+':'+_0x43b104;_0x21c328&&(_0x38e5b5=_0x38e5b5+':'+_0x21c328),_0x4baf76['addMarker'](_0x38e5b5,{'range':_0x2ced24,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x58ee2a){const _0x46af02=_0x58ee2a['previous'],_0xd7d311=_0x58ee2a['next'];_0x58ee2a['previous']=null,_0x58ee2a['next']=null,null!=_0x46af02&&_0x46af02['next']==_0x58ee2a&&(_0x46af02['next']=_0xd7d311),null!=_0xd7d311&&_0xd7d311['previous']==_0x58ee2a&&(_0xd7d311['previous']=_0x46af02),'ready'==this['_suggestionState']['get'](_0x58ee2a)&&(this['_suggestionState']['set'](_0x58ee2a,'removed'),this['fire']('suggestionUnloaded',_0x58ee2a,_0x46af02,_0xd7d311));}['_setSuggestionData'](_0x4568ad){const _0x5ac502=_0x4568ad['id'],_0x3a434a=this['addSuggestionData'](_0x4568ad);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x575a37=this['editor']['plugins']['get']('PendingActions'),_0x153475=_0x3a434a['hasComments'],_0x12b817=_0x3a434a['subType']?_0x3a434a['type']+':'+_0x3a434a['subType']:_0x3a434a['type'],_0x54705a=this['editor']['locale'],_0x143858=_0x575a37['add'](o(_0x54705a,'PENDING_ACTION_SUGGESTION')),_0x3c0af0={'id':_0x5ac502,'type':_0x12b817,'hasComments':_0x153475,'data':_0x4568ad['data']||null,'originalSuggestionId':_0x4568ad['originalSuggestionId']||null,'attributes':_0x3a434a['attributes']};this['_adapter']['addSuggestion'](_0x3c0af0)['then'](_0x11bbe5=>{_0x3a434a['_saved']=!0x0,_0x575a37['remove'](_0x143858),_0x11bbe5&&_0x11bbe5['createdAt']&&(this['_suggestions']['get'](_0x5ac502)['createdAt']=_0x11bbe5['createdAt']);})['catch'](_0x2305fc=>{throw _0x34d4e7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3a434a['discard']();}),_0x3a434a['stopListening'](),this['_suggestions']['delete'](_0x3a434a['id']),this['_suggestionState']['delete'](_0x3a434a),_0x2305fc;});}return _0x3a434a;}['_isBlockAttribute'](_0x3f890b){return this['_blockAttributeKeys']['has'](_0x3f890b);}['_updateSuggestionData'](_0x23db81,_0x586185){const _0x3d3e07=this['editor']['plugins']['get']('PendingActions'),_0x32374a=this['getSuggestion'](_0x23db81);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x32374a['_saved']){const _0x7e5d98=_0x3d3e07['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x23db81,_0x586185)['then'](()=>{_0x3d3e07['remove'](_0x7e5d98);});}else _0x32374a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x23db81,_0x586185);});}}['_getSuggestionData'](_0x3ec1e9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2594a2('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3ec1e9);}['_handleNewSuggestionMarker'](_0x191141){const {id:_0x495af9,type:_0x27dc27,subType:_0x268275,authorId:_0x524147}=this['_splitMarkerName'](_0x191141),_0x2cd864=this['_suggestions']['get'](_0x495af9)||this['_createSuggestion'](_0x27dc27,_0x268275,_0x495af9,_0x524147,{});switch(this['_checkSuggestionCorrectness'](_0x2cd864,_0x27dc27,_0x268275,_0x524147),this['_suggestionState']['get'](_0x2cd864)){case'notReady':this['_getSuggestionData'](_0x495af9)['then'](_0xca0400=>{let _0x2eed8b=Promise['resolve']();_0xca0400['hasComments']&&(_0x2eed8b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x495af9})),_0x2eed8b['then'](()=>{this['addSuggestionData'](_0xca0400)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2cd864,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x495af9,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2cd864,'ready'),this['fire']('suggestionLoaded',_0x2cd864);break;case'ready':this['fire']('suggestionChanged',_0x2cd864);}return _0x2cd864['addMarkerName'](_0x191141),_0x2cd864;}['_refreshSuggestionsChain'](_0x35a302){const _0x392f37=Array['from'](_0x35a302),_0xc3bd4c=_0x392f37['filter'](_0x2f43d7=>'attribute'==_0x2f43d7['type']);this['_refreshAttributeSuggestionsChain'](_0xc3bd4c);const _0x3539f4=_0x392f37['filter'](_0x22e237=>!_0x22e237['isMultiRange']&&'attribute'!=_0x22e237['type']),_0x1c729b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51ebe2=>!_0x51ebe2['isMultiRange']&&'attribute'!=_0x51ebe2['type']),_0x234b5a=_0x1c729b['filter'](_0x9eab9b=>!_0x35a302['has'](_0x9eab9b)),_0x2cf8fe=new Map(_0x1c729b['map'](_0x23e1ff=>[_0x23e1ff,this['_suggestionFactory']['getSuggestionCallback'](_0x23e1ff['type'],_0x23e1ff['subType'],'chain')])),_0x54b1a0=new Map(_0x1c729b['map'](_0x397c58=>[_0x397c58,_0x397c58['getFirstRange']()])),_0xdad536=new Set(),_0x66ed3a=new Set();for(let _0x3dd5f4=0x0;_0x3dd5f4<_0x3539f4['length'];_0x3dd5f4++)_0x3c4e39(_0x3539f4[_0x3dd5f4],_0x3539f4,_0x3dd5f4+0x1);for(let _0xc58ba9=0x0;_0xc58ba9<_0x3539f4['length'];_0xc58ba9++)_0x3c4e39(_0x3539f4[_0xc58ba9],_0x234b5a,0x0);const _0x2d5cf2=new Set();for(let _0x6265e8=0x0;_0x6265e8<_0x3539f4['length'];_0x6265e8++){const _0x17cc6c=_0x3539f4[_0x6265e8];!_0x66ed3a['has'](_0x17cc6c)&&_0x17cc6c['previous']&&(_0x2d5cf2['add'](_0x17cc6c['previous']),_0x17cc6c['previous']['next']===_0x17cc6c&&(_0x17cc6c['previous']['next']=null),_0x17cc6c['previous']=null),!_0xdad536['has'](_0x17cc6c)&&_0x17cc6c['next']&&(_0x2d5cf2['add'](_0x17cc6c['next']),_0x17cc6c['next']['previous']===_0x17cc6c&&(_0x17cc6c['next']['previous']=null),_0x17cc6c['next']=null);}function _0x3c4e39(_0x885126,_0x30152a,_0x13c8c9){for(let _0x4ec696=_0x13c8c9;_0x4ec696<_0x30152a['length'];_0x4ec696++){const _0x31a201=_0x2d35b8(_0x885126,_0x30152a[_0x4ec696]);_0x31a201&&(_0x31a201[0x0]['next']=_0x31a201[0x1],_0x31a201[0x1]['previous']=_0x31a201[0x0],_0xdad536['add'](_0x31a201[0x0]),_0x66ed3a['add'](_0x31a201[0x1]));}}function _0x2d35b8(_0x525711,_0x39440c){if(_0x525711['author']['id']!==_0x39440c['author']['id'])return null;const _0xe464c8=_0x2cf8fe['get'](_0x525711)(_0x525711,_0x39440c,_0x54b1a0['get'](_0x525711),_0x54b1a0['get'](_0x39440c));if(!_0xe464c8)return null;return _0x2cf8fe['get'](_0x39440c)(_0x525711,_0x39440c,_0x54b1a0['get'](_0x525711),_0x54b1a0['get'](_0x39440c))?_0xe464c8[0x1]['commentThread']&&_0xe464c8[0x1]['commentThread']['length']?null:_0xe464c8:null;}_0x2d5cf2['size']&&this['_refreshSuggestionsChain'](_0x2d5cf2);}['_refreshAttributeSuggestionsChain'](_0x5a8ba0){if(0x0==_0x5a8ba0['length'])return;const _0x197d0b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x250091=>'attribute'==_0x250091['type']&&_0x250091['_isDataLoaded']),_0x1c35d7=[],_0x26d6a9=new Map();for(const _0x31ef18 of _0x197d0b){const _0x280575=_0xb5a321(_0x31ef18['attributes']);_0x26d6a9['has'](_0x280575)||(_0x26d6a9['set'](_0x280575,_0x1c35d7['length']),_0x1c35d7['push']([]));const _0x1790a3=_0x26d6a9['get'](_0x280575);_0x1c35d7[_0x1790a3]['push'](_0x31ef18);}!(function(){_0x1c35d7['sort']((_0x1ae829,_0x1ae44a)=>{const _0x3fc8f5=_0x1ae829[0x0]['createdAt'],_0x3b51af=_0x1ae44a[0x0]['createdAt'];return _0x3fc8f5==_0x3b51af?_0x1ae829[0x0]['attributes']['groupId']<_0x1ae44a[0x0]['attributes']['groupId']?-0x1:0x1:_0x3fc8f5<_0x3b51af?-0x1:0x1;});for(const _0x2e1af0 of _0x1c35d7)_0x2e1af0['sort']((_0x32bf5c,_0x51b54d)=>_0x32bf5c['id']<_0x51b54d['id']?-0x1:0x1);}());for(let _0x1792fe=0x0;_0x1792fe<_0x1c35d7['length'];_0x1792fe++){if(0x0==_0x1c35d7[_0x1792fe]['length'])continue;const _0xbd8b1f=[];for(let _0x36c874=_0x1792fe+0x1;_0x36c874<_0x1c35d7['length'];_0x36c874++)0x0!=_0x1c35d7[_0x36c874]['length']&&_0x1bc074(_0x1c35d7[_0x1792fe],_0x1c35d7[_0x36c874])&&_0xbd8b1f['push'](_0x36c874);for(const _0x345668 of _0xbd8b1f)_0x1c35d7[_0x1792fe]=_0x1c35d7[_0x1792fe]['concat'](_0x1c35d7[_0x345668]),_0x1c35d7[_0x345668]=[];}for(const _0x52cb10 of _0x1c35d7)for(let _0x20af25=0x0;_0x20af25<_0x52cb10['length'];_0x20af25++)_0x52cb10[_0x20af25]['next']=_0x52cb10[_0x20af25+0x1]||null;for(const _0x147e02 of _0x1c35d7)for(let _0x153815=0x0;_0x153815<_0x147e02['length'];_0x153815++)_0x147e02[_0x153815]['previous']=_0x147e02[_0x153815-0x1]||null;function _0x1bc074(_0x5c046d,_0x43a938){if(_0x5c046d[0x0]['attributes']['groupId']!==_0x43a938[0x0]['attributes']['groupId']&&_0x5c046d[0x0]['author']!==_0x43a938[0x0]['author'])return!0x1;if(!function(_0xd1c7c9,_0xcd546){if(!_0xd1c7c9['hasComments']&&!_0xcd546['hasComments'])return!0x0;if(_0xd1c7c9['hasComments']&&_0xcd546['hasComments'])return!0x1;if(_0xd1c7c9['hasComments']&&_0xcd546['createdAt']<_0xd1c7c9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xcd546['hasComments']&&_0xd1c7c9['createdAt']<_0xcd546['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5c046d[0x0],_0x43a938[0x0]))return!0x1;const _0x3692ee=Bt(_0x5c046d[0x0]['attributes'],'groupId'),_0x46ae81=Bt(_0x43a938[0x0]['attributes'],'groupId');if(!_0x6378b5(_0x3692ee,_0x46ae81))return!0x1;return!!_0x5c046d['every'](_0x441195=>_0x43a938['some'](_0x5b96f9=>_0x441195['getFirstRange']()['isEqual'](_0x5b96f9['getFirstRange']())))&&_0x43a938['every'](_0x3d49c3=>_0x5c046d['some'](_0x47a078=>_0x3d49c3['getFirstRange']()['isEqual'](_0x47a078['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2e4f78){const _0x4caea1=Array['from'](_0x2e4f78),_0x4cd7dd=this['getSuggestions']({'skipNotAttached':!0x0}),_0x42d3de=_0x4cd7dd['filter'](_0x45c28e=>!_0x2e4f78['has'](_0x45c28e)),_0x3f4453=new Map(_0x4caea1['map'](_0xee447c=>[_0xee447c,this['_suggestionFactory']['getSuggestionCallback'](_0xee447c['type'],_0xee447c['subType'],'join')])),_0x241852=new Map(_0x4cd7dd['map'](_0x5cd2c4=>[_0x5cd2c4,_0x5cd2c4['getRanges']()]));for(let _0x237982=0x0;_0x237982<_0x4caea1['length'];_0x237982++){if(_0x413032(this,_0x4caea1[_0x237982],_0x4caea1,_0x237982+0x1))return!0x0;}for(let _0xc89c6f=0x0;_0xc89c6f<_0x4caea1['length'];_0xc89c6f++){if(_0x413032(this,_0x4caea1[_0xc89c6f],_0x42d3de,0x0))return!0x0;}return!0x1;function _0x413032(_0x190c31,_0x251342,_0x176211,_0x778ab2){for(let _0x50c2a7=_0x778ab2;_0x50c2a7<_0x176211['length'];_0x50c2a7++){const _0x1d8205=_0x176211[_0x50c2a7];if(_0x1d8205['type']!==_0x251342['type']||_0x1d8205['author']['id']!==_0x251342['author']['id']||_0x1d8205['subType']!==_0x251342['subType'])continue;if(!Pt(_0x251342,_0x1d8205,['groupId']))continue;if('attribute'==_0x251342['type']&&_0x251342['data']['oldValue']!=_0x1d8205['data']['oldValue'])continue;if('attribute'==_0x251342['type']&&_0x190c31['_isBlockAttribute'](_0x251342['data']['key']))continue;if('formatBlock'==_0x251342['type']){const _0x418b75=_0x190c31['editor']['model'],_0x5a136c=_0x251342['getContainedElement']();if(_0x5a136c&&(_0x418b75['schema']['isObject'](_0x5a136c)||_0x418b75['schema']['isLimit'](_0x5a136c)))continue;}const _0x295763=_0x3f4453['get'](_0x251342),_0x97b3a4=_0x241852['get'](_0x251342),_0x372c48=_0x241852['get'](_0x1d8205),_0x5468f8=_0x251342['commentThread']&&_0x251342['commentThread']['length'],_0xb800e1=_0x1d8205['commentThread']&&_0x1d8205['commentThread']['length'];if(!_0x5468f8&&_0x295763(_0x372c48,_0x97b3a4))return _0x190c31['_joinSuggestions'](_0x1d8205,_0x251342),_0x241852['delete'](_0x251342),!0x0;if(!_0xb800e1&&_0x295763(_0x97b3a4,_0x372c48))return _0x190c31['_joinSuggestions'](_0x251342,_0x1d8205),_0x241852['delete'](_0x1d8205),!0x0;}return!0x1;}}['_joinSuggestions'](_0x466f11,_0x107339){if(_0x466f11['isMultiRange']){for(const _0x38bc71 of _0x107339['getRanges']())_0x466f11['addRange'](_0x38bc71);}else{const _0x2cc3ef=_0x107339['getFirstRange']()['end'];this['_setSuggestionRange'](_0x466f11,this['_model']['createRange'](_0x466f11['getFirstRange']()['start'],_0x2cc3ef));}_0x107339['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3ef76d,_0x2419ba){const _0x24fb26=_0x3ef76d['startsWith']('format')||_0x3ef76d['startsWith']('attribute')?'FORMATTING':_0x3ef76d['toUpperCase']();return o(this['editor']['locale'],_0x2419ba+'_'+_0x24fb26+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4deb4b=this['editor'];if(!_0x4deb4b['ui'])return;const {ariaLiveAnnouncer:_0x5132a2}=_0x4deb4b['ui'];_0x1086e6(this['_model'],({left:_0x118dc3,entered:_0x8d5b11})=>{for(const _0x34b40e of _0x118dc3){const {group:_0x4f85f2,type:_0x1ed1a6}=this['_splitMarkerName'](_0x34b40e['name']);if('suggestion'===_0x4f85f2){_0x5132a2['announce'](this['_getMarkerAnnouncementText'](_0x1ed1a6,'LEAVE'));break;}}for(const _0x6f1b36 of _0x8d5b11){const {group:_0x2e8b71,type:_0x33b67d}=this['_splitMarkerName'](_0x6f1b36['name']);if('suggestion'===_0x2e8b71){_0x5132a2['announce'](this['_getMarkerAnnouncementText'](_0x33b67d,'ENTER'));break;}}});}['_processAttributeChanges'](_0x218ae0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1fb0c6=this['editor'],_0x134017=_0x1fb0c6['model']['document']['differ']['getChanges']();if(0x0==_0x134017['length'])return!0x1;const _0x58df97=[],_0x49700e=_0x134017['filter'](_0x30915b=>'attribute'==_0x30915b['type']),_0x3ad281=_0x134017['filter'](_0x54652a=>'insert'==_0x54652a['type']&&'$text'!=_0x54652a['name']),_0x27b3ce=_0x134017['filter'](_0x14b314=>'remove'==_0x14b314['type']&&'$text'!=_0x14b314['name']);for(const _0x499187 of _0x49700e)_0x58df97['push']({'key':_0x499187['attributeKey'],'newValue':_0x499187['attributeNewValue'],'oldValue':_0x499187['attributeOldValue'],'range':Ot(_0x499187['range'],_0x1fb0c6['model'])});for(const _0x269531 of _0x3ad281){const _0x453004=_0x27b3ce['find'](_0x531c4a=>_0x531c4a['position']['isEqual'](_0x269531['position']));_0x453004&&_0x58df97['push']({'key':m,'newValue':_0x269531['name'],'oldValue':_0x453004['name'],'range':_0x1fb0c6['model']['createRangeOn'](_0x269531['position']['nodeAfter'])});}return 0x0!=_0x58df97['length']&&this['_reduceExistingSuggestions'](_0x218ae0,_0x58df97);}['_processAttributeSuggestions'](_0x55ca0e){let _0x30f8fa=!0x1;const _0x34eb6f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x455b06=>_0x455b06['data']['newRange']&&_0x455b06['name']['startsWith']('suggestion:attribute:'));for(const _0x228dcc of _0x34eb6f){const {subType:_0x15e0b7,id:_0x3befef}=this['_splitMarkerName'](_0x228dcc['name']),_0xeed93f=_0x15e0b7['split']('|')[0x0];for(const _0x380eaa of this['getSuggestions']({'skipNotAttached':!0x0}))_0x380eaa['id']!=_0x3befef&&'attribute'==_0x380eaa['type']&&_0x380eaa['data']&&_0x380eaa['data']['key']==_0xeed93f&&_0x380eaa['getFirstRange']()['isIntersecting'](_0x228dcc['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x380eaa,_0x228dcc['data']['newRange'],_0x55ca0e),_0x30f8fa=!0x0);}return _0x30f8fa;}['_recordAttributeChanges'](_0x3bafa8){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x3bafa8();}['_isRegisteredAttribute'](_0x3377ae){const _0x5953a0=this['_isBlockAttribute'](_0x3377ae),_0x3426bd=this['_inlineAttributeKeys']['has'](_0x3377ae);return _0x5953a0||_0x3426bd;}['_reduceExistingSuggestions'](_0x31173f,_0x27c3f4){if(0x0==_0x27c3f4['length'])return!0x1;let _0x5caa7d=!0x1;for(const _0x389d21 of _0x27c3f4){const _0x16e15e=this['_findSuggestions'](_0x389d21['range'],'attribute')['filter'](_0x10f571=>!_0x10f571['meta']['isNextTo'])['map'](_0x43cf61=>_0x43cf61['suggestion']),_0x4e845e=_0xb5a321({'newValue':_0x389d21['newValue']});_0x16e15e['filter'](_0x1b2d25=>{const [_0x42ac61,_0xf460c1]=_0x1b2d25['subType']['split']('|');return _0x42ac61==_0x389d21['key']&&_0xf460c1!=_0x4e845e;})['forEach'](_0x17ae81=>{this['_reduceSuggestionAttributeRange'](_0x17ae81,_0x389d21['range'],_0x31173f),_0x5caa7d=!0x0;});}return _0x5caa7d;}['_reduceSuggestionAttributeRange'](_0x54e72a,_0x5c1ea0,_0x37de1b){const _0x2a9541=_0x54e72a['getFirstRange']()['getDifference'](_0x5c1ea0);0x0!==_0x2a9541['length']?0x1!==_0x2a9541['length']?this['_breakSuggestionMarker'](_0x54e72a,_0x5c1ea0['start'],_0x5c1ea0['end']):this['_setSuggestionRange'](_0x54e72a,_0x2a9541[0x0]):_0x37de1b['removeMarker'](_0x54e72a['getFirstMarker']());}constructor(_0x4d8b8e){function _0x562f86(_0x4b2cf7){return _0x4b2cf7['map'](_0x52de93=>String['fromCharCode'](_0x52de93))['join']('');}super(_0x4d8b8e),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x22472a,_0x1d3a46,_0xb038a1,_0x25b023)=>{this['_model']['change'](()=>{for(const _0x2a5c1f of[..._0x25b023,..._0xb038a1])this['_model']['markers']['has'](_0x2a5c1f)&&_0x4d8b8e['editing']['reconvertMarker'](_0x2a5c1f);});}),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']=_0x4d8b8e['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(),_0x4d8b8e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4d8b8e['config']['get']('trackChanges.trackFormatChanges'),_0x4d8b8e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4d8b8e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x4d8b8e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x562f86([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x562f86([0x34,0x30,0x34,0x38,0x31,0x30,0x33,0x34]);}}class xt{['buildSuggestion'](_0x43c223,_0x291e93,_0x2f5770,_0x1f85b3,_0x403645,_0x160a64){return new u(this['_model'],{'type':_0x43c223,'subType':_0x291e93,'id':_0x2f5770,'author':_0x1f85b3,'creator':_0x1f85b3,'attributes':_0x403645,'onAttributesChange':_0x160a64,'onAccept':(..._0x46bf68)=>this['getSuggestionCallback'](_0x43c223,_0x291e93,'accept')(..._0x46bf68),'onDiscard':(..._0x4f9eae)=>this['getSuggestionCallback'](_0x43c223,_0x291e93,'discard')(..._0x4f9eae)});}['registerCustomCallback'](_0x2a6a53,_0x22f00c,_0x446282,_0x65e59c){const _0x16eb95=_0x2a6a53+':'+_0x22f00c+':'+_0x446282;this['_customCallbacks']['set'](_0x16eb95,_0x65e59c);}['getSuggestionCallback'](_0xcd7fdc,_0xde896d,_0x965c80){const _0x55f548=_0xcd7fdc+':'+_0xde896d+':'+_0x965c80;return this['_customCallbacks']['get'](_0x55f548)||this['_defaultCallbacks']['get'](_0xcd7fdc+':'+_0x965c80);}['_registerDefaultCallbacks'](){const _0x3f30f0=()=>!0x1,_0x1dfa67=_0x306878=>{_0x306878['sort']((_0xdf0b59,_0x14f0b9)=>_0xdf0b59['start']['isBefore'](_0x14f0b9['start'])?0x1:-0x1),this['_model']['change'](_0x3d0559=>{for(const _0x97e217 of _0x306878){let _0x2e57ea;_0x2e57ea=_0x97e217['end']['isAtEnd']&&_0x97e217['end']['parent']==_0x97e217['start']['nodeAfter']?_0x3d0559['createSelection'](_0x97e217['start']['nodeAfter'],'on'):_0x3d0559['createSelection'](_0x97e217),this['_model']['deleteContent'](_0x2e57ea,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x15391d=(_0x16b87b,_0x433372)=>{_0x433372&&this['_model']['change'](_0x28c11f=>{const {commandName:_0x3002ba,commandParams:_0x867651=[]}=_0x433372,_0x172ee8=_0x16b87b['map'](_0x23fa7c=>(Tt(_0x23fa7c)&&(_0x23fa7c=this['_model']['createRange'](_0x23fa7c['end'])),_0x23fa7c))['filter'](_0x336af3=>'$graveyard'!==_0x336af3['root']['rootName']);if(_0x172ee8['length']<0x1)return;const _0x423903=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x49158e=>_0x19d68e['fromRange'](_0x49158e));_0x28c11f['setSelection'](_0x172ee8);for(const _0x5b7adb of this['_editor']['commands']['commands']())_0x5b7adb['refresh']();_0x867651['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3002ba,..._0x867651);const _0x4fdf58=_0x423903['filter'](_0x42868d=>'$graveyard'!=_0x42868d['root']['rootName']);_0x4fdf58['length']>0x0&&_0x28c11f['setSelection'](_0x4fdf58);for(const _0x58f13b of _0x423903)_0x58f13b['detach']();});},_0x4be820=(_0x2ef872,_0x1bdc25)=>0x1==_0x2ef872['length']&&0x1==_0x1bdc25['length']&&_0x2ef872[0x0]['end']['isEqual'](_0x1bdc25[0x0]['start']),_0x5b6d7e=(_0x21bb04,_0x55b42e,_0x572a02,_0x57704f)=>Gt(_0x21bb04,_0x55b42e,_0x572a02,_0x57704f,this['_model'])?[_0x21bb04,_0x55b42e]:Gt(_0x55b42e,_0x21bb04,_0x57704f,_0x572a02,this['_model'])?[_0x55b42e,_0x21bb04]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3f30f0),this['_defaultCallbacks']['set']('insertion:discard',_0x1dfa67),this['_defaultCallbacks']['set']('insertion:join',_0x4be820),this['_defaultCallbacks']['set']('insertion:chain',_0x5b6d7e),this['_defaultCallbacks']['set']('deletion:accept',_0x1dfa67),this['_defaultCallbacks']['set']('deletion:discard',_0x3f30f0),this['_defaultCallbacks']['set']('deletion:join',_0x4be820),this['_defaultCallbacks']['set']('deletion:chain',_0x5b6d7e),this['_defaultCallbacks']['set']('formatInline:accept',_0x15391d),this['_defaultCallbacks']['set']('formatInline:discard',_0x3f30f0),this['_defaultCallbacks']['set']('formatInline:join',_0x4be820),this['_defaultCallbacks']['set']('formatInline:chain',_0x3f30f0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x15391d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3f30f0),this['_defaultCallbacks']['set']('formatBlock:join',_0x4be820),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3f30f0),this['_defaultCallbacks']['set']('attribute:accept',_0x3f30f0),this['_defaultCallbacks']['set']('attribute:discard',(_0x5c3477,_0x3ed3f2)=>{if(!_0x3ed3f2)return;const _0x4a8cb3=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x712bd8=>{if(_0x3ed3f2['key']==m)for(const _0xac3434 of _0x5c3477){const _0x4acc45=_0xac3434['start']['nodeAfter'],_0x21617d=_0x3ed3f2['oldValue'];_0x712bd8['rename'](_0x4acc45,_0x21617d);}else{if(_0x4a8cb3['_isBlockAttribute'](_0x3ed3f2['key'])){for(const _0x5bfedf of _0x5c3477)void 0x0!==_0x3ed3f2['oldValue']?_0x712bd8['setAttribute'](_0x3ed3f2['key'],_0x3ed3f2['oldValue'],_0x5bfedf['start']['nodeAfter']):_0x712bd8['removeAttribute'](_0x3ed3f2['key'],_0x5bfedf['start']['nodeAfter']);}else{for(const _0x33e3a9 of _0x5c3477)_0x3ed3f2['oldValue']?_0x712bd8['setAttribute'](_0x3ed3f2['key'],_0x3ed3f2['oldValue'],_0x33e3a9):_0x712bd8['removeAttribute'](_0x3ed3f2['key'],_0x33e3a9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4be820);}constructor(_0x5f1ec2){this['_editor']=_0x5f1ec2,this['_model']=_0x5f1ec2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x1d31af,_0x35fcb5,_0x475397){for(const _0x29f248 of _0x35fcb5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x29f248['root']==_0x29f248)return!0x1;if(!_0x475397['containsItem'](_0x29f248))return!0x1;if(_0x1d31af['isObject'](_0x29f248)||_0x1d31af['isLimit'](_0x29f248))return!0x0;}return!0x1;}function Tt(_0x356136){return _0x356136['end']['parent']==_0x356136['start']['nodeAfter']&&_0x356136['end']['isAtStart'];}function Et(_0x480a56,_0x57975f,_0x156f9e,_0x250dea){const _0x9791ff=_0x4d47bd=>!_0x4d47bd['item']['is']('$textProxy')&&!_0x250dea['isObject'](_0x4d47bd['item']),_0x5f1a1e=_0x480a56['start']['getLastMatchingPosition'](_0x9791ff),_0x174411=_0x480a56['end']['getLastMatchingPosition'](_0x9791ff,{'direction':'backward'});return(!_0x480a56['start']['isEqual'](_0x5f1a1e)||!_0x480a56['end']['isEqual'](_0x174411))&&(_0x5f1a1e['isBefore'](_0x174411)?_0x156f9e['updateMarker'](_0x57975f,{'range':_0x156f9e['createRange'](_0x5f1a1e,_0x174411)}):_0x156f9e['removeMarker'](_0x57975f),!0x0);}function Vt(_0x3a0f91){return _0xb5a321(_0x3a0f91);}function Ut(_0x368170){const _0x53694d=_0x368170['start']['nodeAfter'];return _0x53694d&&_0x53694d['is']('element');}function Ot(_0x47fcbc,_0x443915){return null==_0x47fcbc['end']['nodeBefore']&&_0x47fcbc['end']['parent']==_0x47fcbc['start']['nodeAfter']?Ft(_0x47fcbc['start']['nodeAfter'],_0x443915):_0x47fcbc;}function Ft(_0x138926,_0x5d2382){const _0x3e4012=_0x5d2382['schema']['isObject'](_0x138926)||_0x5d2382['schema']['isSelectable'](_0x138926);return _0x5d2382['createRange'](_0x5d2382['createPositionAt'](_0x138926,'before'),_0x3e4012?_0x5d2382['createPositionAfter'](_0x138926):_0x5d2382['createPositionAt'](_0x138926,'end'));}function Gt(_0x4e595c,_0x6b2d29,_0x1a8530,_0x1c39ae,_0x5363d7){if(!Pt(_0x4e595c,_0x6b2d29))return!0x1;if(_0x1a8530['end']['isEqual'](_0x1c39ae['start']))return!0x0;if(_0x4e595c['type']!=_0x6b2d29['type'])return!0x1;if(!_0x1a8530['end']['isTouching'](_0x1c39ae['start']))return!0x1;const _0x26928b=_0x5363d7['createRange'](_0x1a8530['end'],_0x1c39ae['start'])['getWalker']();for(const _0x523ca5 of _0x26928b)if(['elementStart','elementEnd']['includes'](_0x523ca5['type'])&&_0x5363d7['schema']['isLimit'](_0x523ca5['item']))return!0x1;return!0x0;}function Pt(_0x35852c,_0x2a296e,_0x1566cc=[]){return!(!_0x35852c['_isDataLoaded']||!_0x2a296e['_isDataLoaded'])&&_0x6378b5(Bt(_0x35852c['attributes'],_0x1566cc),Bt(_0x2a296e['attributes'],_0x1566cc));}function Lt(_0x47ba80,_0x333c30){const _0x5ab747=Ht(_0x47ba80['attributes']),_0x421457=Ht(_0x333c30);if(!_0x47ba80['_isDataLoaded'])return!0x1;for(const _0x2336b7 of Object['keys'](_0x421457))if(!_0x6378b5(_0x5ab747[_0x2336b7],_0x421457[_0x2336b7]))return!0x1;return!0x0;}function Ht(_0x5f004e){const _0x83583c=Object['assign']({},_0x5f004e);return delete _0x83583c['skipNestingCheck'],delete _0x83583c['tablePasteChainId'],_0x83583c;}class oe extends _0x3ba909(){['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 _0x459ed9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x459ed9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x491e57,_0x5ae451,_0xa0a25a,_0x5c9ed2){super(),this['model']=_0x5ae451,this['view']=_0xa0a25a,this['commentThreadController']=_0x5c9ed2,this['_editor']=_0x491e57,this['_acceptCommand']=_0x491e57['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x491e57['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xd5ecbd,_0xf864a)=>_0xd5ecbd||_0xf864a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2e5eef=>_0x2e5eef&&this['_editor']['model']['canEditAt'](_0x5ae451['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x50553e=>_0x50553e&&this['_editor']['model']['canEditAt'](_0x5ae451['getRanges']())),this['_pendingAction']=null,_0xa0a25a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xa0a25a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xa0a25a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xa0a25a,'change:isDirty',()=>{_0xa0a25a['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x5225db{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xd60a0f}=this['_config'];this['commentsListView']=new _0xd60a0f(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',_0x4b8480=>_0x4b8480+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3e8085,_0x451261)=>_0x3e8085||!!_0x451261);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xeaaffa}=this['_config'],_0x4d509c=new _0xeaaffa(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x222f90=_0x4d509c['commentInputView'];return _0x4d509c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x222f90,'value',(_0x26395d,_0x52fc30,_0x539db2)=>!!_0x539db2||_0x26395d&&!_0x52fc30),_0x222f90['on']('submit',(_0x3f3d8d,_0x4164b5)=>{this['fire']('addComment',_0x4164b5),_0x222f90['editor']['setData']('');}),_0x222f90['on']('cancel',()=>this['focus']()),_0x222f90['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4d509c;}constructor(_0x3b98fa,_0x57c141,_0x485c1b,_0x874656){super(_0x3b98fa),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x57c141['authoredAt']),this['bind']('authoredAt')['to'](_0x57c141),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x57c141,this['_localUser']=_0x485c1b,this['_config']=_0x874656,_0x874656['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x201bca=this['bindTemplate'],_0x5bec28=[{'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':_0x201bca['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x201bca['to']('authoredAt',_0x4bb527=>this['_config']['formatDateTime'](_0x4bb527))}]}]},{'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']&&_0x5bec28['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2cf7a8={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x201bca['if']('isActive','ck-suggestion-wrapper--active'),_0x201bca['to']('type',_0x336ce9=>'ck-suggestion-'+_0x336ce9),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':_0x5bec28}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2cf7a8['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)),_0x2cf7a8;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x5c35b5,_0x1c0ae7,_0x3bfc2a)=>{this['_descriptionElement']['innerHTML']=_0x3bfc2a;});}['_createButton'](_0x46a7aa,_0x4428f5,_0x1314d0,_0x23c7bf,_0xc61ad1){const _0x19603a=new _0x396888(this['locale']);return _0x19603a['set']({'label':_0x46a7aa,'icon':_0x4428f5,'tooltip':!0x0,'tooltipPosition':_0xc61ad1}),_0x19603a['extendTemplate']({'attributes':{'class':_0x1314d0}}),_0x19603a['on']('execute',()=>{this['fire'](_0x23c7bf,this['_model']['id']);}),_0x19603a;}['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(_0x4412f7,_0x5ea029,_0x79487a,_0x5c0f27){super(_0x4412f7,_0x5ea029,_0x79487a,_0x5c0f27),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x55b34f=>_0x55b34f&&_0x55b34f[0x0]?_0x55b34f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3ac153,_0x3a94eb)=>{let _0x1f0980='';for(const _0x4236c0 of _0x3ac153)_0x1f0980+='<p>'+ds(_0x4236c0['content'],_0x4236c0['color'])+'</p>';return _0x3a94eb?_0x1f0980:_0x48cc1b(_0x1f0980,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x4412f7,'Accept\x20suggestion'),_0x5c7f4d['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x4412f7,'Discard\x20suggestion'),_0x5c7f4d['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3d82bb(_0x4412f7,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x42d92d,_0x25e387){let _0x1ee8b='';return _0x1ee8b+=_0x42d92d['split']('*')['map']((_0x34e773,_0x8ee4a9)=>_0x8ee4a9%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x34e773)+'</span>':us(_0x34e773))['join'](''),_0x25e387&&(_0x1ee8b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x25e387['value']+'\x22\x20title=\x22'+_0x25e387['title']+'\x22></span>'),_0x1ee8b;}function us(_0x3e8a0c){const _0x3a8885=document['createElement']('span');return _0x3a8885['innerText']=_0x3e8a0c,_0x3a8885['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 _0x17098e{static get['requires'](){return[p,_0x5a2c56,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x24223f,_0xf210b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3c79cd,_0x54cf01]of this['_handleControllerBuffer']){const _0x32dba0=this['_suggestionToController']['has'](_0x3c79cd);_0x32dba0||_0x54cf01?_0x32dba0&&_0x54cf01&&this['_destroyController'](_0x3c79cd):this['_initializeController'](_0x3c79cd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x24223f,_0xf210b);}['init'](){const _0x42a596=this['editor'],_0x13ef83=_0x42a596['plugins']['get']('TrackChangesEditing'),_0x1ae376=_0x42a596['plugins']['get']('Annotations'),_0x3f9097=_0x42a596['plugins']['get']('EditorAnnotations'),_0x3bc346=_0x42a596['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3f9097['addSourceCollector'](()=>{const _0x5e7edd=[];for(const [_0x464790,_0x2f0c60]of Array['from'](this['_suggestionToController'])){const _0x4365c3=_0x464790['getAllAdjacentSuggestions'](),_0x5d3114=[];for(const _0x260401 of _0x4365c3){if(!_0x260401['isInContent'])continue;if(_0x260401['isMultiRange']){_0x5d3114['push'](..._0x260401['getRanges']());continue;}const _0x1e681c=_0x260401['getFirstRange']();if(_0x5d3114['length']>0x0){const _0x43b6cb=_0x5d3114[0x0]['getJoined'](_0x1e681c);if(_0x43b6cb){_0x5d3114[0x0]=_0x43b6cb;continue;}}_0x5d3114['push'](_0x1e681c);}_0x5e7edd['push']([_0x2f0c60['view'],_0x5d3114]);}return _0x5e7edd;}),this['listenTo'](_0x13ef83,'suggestionLoaded',(_0x1a6ce9,_0x33b786)=>{this['listenTo'](_0x33b786,'change:previous',(_0x3370fb,_0x5e2f71,_0x5e6184,_0x540dcc)=>{_0x33b786['isInContent']&&(null==_0x5e6184?(this['_updateController'](_0x540dcc['head']),this['_handleSuggestionControllerDelayed'](_0x33b786,!0x1)):(this['_updateController'](_0x5e6184['head']),null==_0x540dcc&&this['_handleSuggestionControllerDelayed'](_0x33b786,!0x0)));}),null!==_0x33b786['previous']?this['_updateController'](_0x33b786['head']):this['_handleSuggestionControllerDelayed'](_0x33b786,!0x1);}),this['listenTo'](_0x13ef83,'suggestionUnloaded',(_0x37f6a8,_0x5adccf,_0x3d7450)=>{this['stopListening'](_0x5adccf,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5adccf),this['_suggestionToController']['has'](_0x5adccf)&&this['_destroyController'](_0x5adccf),_0x3d7450&&this['_updateController'](_0x3d7450['head']);}),this['listenTo'](_0x13ef83,'suggestionChanged',(_0x5234e4,_0x381e9d)=>{this['_updateController'](_0x381e9d);}),this['listenTo'](_0x1ae376,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3bc346,'addComment',(_0x20ee24,{threadId:_0x159a55,isFromAdapter:_0x2e6e2f})=>{if(_0x2e6e2f||!_0x13ef83['hasSuggestion'](_0x159a55))return;const _0x2e91fd=_0x13ef83['getSuggestion'](_0x159a55);this['_suggestionToController']['get'](_0x2e91fd)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x29b484=this['editor']['plugins']['get']('Annotations'),_0x5d8779=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3027f5=Array['from'](_0x29b484['activeAnnotations'],_0x1f5121=>_0x1f5121['innerView'])['filter'](_0x245606=>this['_viewToController']['has'](_0x245606)),_0x249522=[];for(const _0x5ea5cc of _0x3027f5){const _0x1cd256=this['_viewToController']['get'](_0x5ea5cc)['model']['getAllAdjacentSuggestions']();_0x249522['push'](..._0x1cd256['reduce']((_0xc99b36,_0x118ab1)=>[..._0xc99b36,..._0x118ab1['getMarkerNames']()],[]));}_0x5d8779['activeMarkers']=_0x249522;}['_addUIComponentsToFactory'](){const _0x43352a=this['editor'],_0x47f30e=_0x43352a['locale'],_0x445380=o(_0x47f30e,'Track\x20changes'),_0x266416=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x445380,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x47f30e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x47f30e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x47f30e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x47f30e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x536f5a of _0x266416)if(ae(_0x536f5a)){const _0x1b4a66=_0x43352a['commands']['get'](_0x536f5a['model']['commandName']);_0x536f5a['model']['bind']('isOn','isEnabled')['to'](_0x1b4a66,'value','isEnabled');}_0x43352a['ui']['componentFactory']['add']('trackChanges',_0x10f114=>this['_createToolbarButton'](_0x10f114,_0x266416,_0x445380)),_0x43352a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x101d37=>this['_createMenuBarMenu'](_0x101d37,_0x266416,_0x445380));}['_createToolbarButton'](_0xaec85e,_0x532964,_0x590dc4){const _0x243292=zt(_0xaec85e,Zt),_0x3674b1=this['editor']['commands']['get']('trackChanges');_0x243292['buttonView']['set']({'tooltip':_0x590dc4,'label':_0x590dc4,'icon':ie}),_0x243292['buttonView']['bind']('isOn')['to'](_0x3674b1,'value'),_0x243292['buttonView']['on']('execute',()=>{_0x3674b1['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x243292,_0x532964,{'role':'menu'});const _0x2876b6=[];for(const _0x3a388a of _0x532964)ae(_0x3a388a)&&_0x2876b6['push'](this['editor']['commands']['get'](_0x3a388a['model']['commandName']));const _0x8037b0=_0x243292['buttonView'];return _0x8037b0['actionView']['unbind']('isEnabled'),_0x8037b0['arrowView']['unbind']('isEnabled'),_0x8037b0['actionView']['bind']('isEnabled')['to'](_0x3674b1,'isEnabled'),_0x8037b0['arrowView']['bind']('isEnabled')['toMany'](_0x2876b6,'isEnabled',(..._0x188a34)=>_0x188a34['some'](_0x4dd82b=>_0x4dd82b)),_0x243292['on']('execute',_0x389ca4=>{this['editor']['execute'](_0x389ca4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x243292;}['_createMenuBarMenu'](_0x287776,_0x72325d,_0x5f4b6d){const _0x8d15ec=new Kt(_0x287776),_0x42a29e=this['editor']['commands']['get']('trackChanges');_0x8d15ec['buttonView']['set']({'label':_0x5f4b6d,'icon':ie});const _0x1b1189=new Qt(_0x287776);for(const _0x25a5fe of _0x72325d){if('separator'==_0x25a5fe['type']){_0x1b1189['items']['add'](new Jt(_0x287776));continue;}const _0x2b2f07=new Xt(_0x287776,_0x8d15ec),_0x120ee3=new Yt(_0x287776),_0x1844b2=_0x25a5fe['model'];_0x120ee3['bind'](...Object['keys'](_0x1844b2))['to'](_0x1844b2),_0x120ee3['delegate']('execute')['to'](_0x8d15ec),_0x120ee3['on']('execute',()=>{this['editor']['execute'](_0x1844b2['commandName']),this['editor']['editing']['view']['focus']();}),_0x2b2f07['children']['add'](_0x120ee3),_0x1b1189['items']['add'](_0x2b2f07);}return _0x8d15ec['bind']('isEnabled')['to'](_0x42a29e,'isEnabled'),_0x8d15ec['panelView']['children']['add'](_0x1b1189),_0x8d15ec;}['_initializeController'](_0x50f88d){const _0x5f4899=this['editor'],_0x47d0c1=_0x5f4899['config'],_0x124e63=_0x5f4899['plugins']['get']('Annotations'),_0x3941c8=_0x5f4899['plugins']['get']('CommentsRepository'),_0x5b53bc=_0x5f4899['plugins']['get']('EditorAnnotations'),_0x5a78ab=_0x5f4899['plugins']['get'](_0x5a2c56)['me'],_0x322e14=_0x47d0c1['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1ca4b5,CommentThreadInputView:_0x51e5f1}=_0x5f4899['plugins']['get']('CommentsUI');let _0x1ca8c5,_0x3b19e6;this['_annotationViews']['has'](_0x50f88d['id'])?(_0x3b19e6=this['_annotationViews']['get'](_0x50f88d['id']),_0x1ca8c5=_0x3b19e6['mainView']):(_0x1ca8c5=new _0x322e14(_0x5f4899['locale'],_0x50f88d,_0x5a78ab,{'disableComments':this['_disableComments'],'editorConfig':_0x47d0c1['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x47d0c1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x47d0c1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x47d0c1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5705f7(_0x47d0c1['get']('locale')),'CommentView':_0x47d0c1['get']('comments')['CommentView'],'CommentsListView':_0x1ca4b5,'CommentThreadInputView':_0x51e5f1}),_0x1ca8c5['acceptButton']['on']('execute',()=>{_0x5f4899['editing']['view']['focus']();}),_0x1ca8c5['discardButton']['on']('execute',()=>{_0x5f4899['editing']['view']['focus']();}),_0x3b19e6=_0x124e63['createAnnotationView'](this['editor']['locale'],_0x1ca8c5),_0x3b19e6['bind']('isDirty')['to'](_0x1ca8c5,'isDirty'),_0x3b19e6['bind']('length')['to'](_0x1ca8c5),_0x3b19e6['bind']('type')['to'](_0x1ca8c5,'type',_0x5edaae=>'suggestion-'+_0x5edaae),this['_annotationViews']['set'](_0x50f88d['id'],_0x3b19e6));const _0x1a1e22=_0x3941c8['createCommentThreadController'](_0x50f88d['commentThread'],_0x1ca8c5),_0x68b6b4=new oe(_0x5f4899,_0x50f88d,_0x1ca8c5,_0x1a1e22),_0x12ebc7=_0x50f88d['getAllAdjacentSuggestions']()['filter'](_0xa25727=>_0xa25727['isInContent']);_0x1ca8c5['descriptionParts']=_0x5f4899['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x12ebc7),this['_suggestionToController']['set'](_0x50f88d,_0x68b6b4),this['_viewToController']['set'](_0x1ca8c5,_0x68b6b4);const _0x29b7c8=_0x124e63['createAnnotation']({'view':_0x3b19e6,'target':()=>{const _0x38b6d8=[],_0x8aa629=_0x50f88d['getAllAdjacentSuggestions']()['filter'](_0x4f8d7b=>_0x4f8d7b['isInContent']);for(const _0x51053c of _0x8aa629)_0x38b6d8['push'](..._0x51053c['getMarkers']());return _0x1177a0(_0x5f4899['editing'],_0x38b6d8);},'type':()=>'suggestion-'+_0x68b6b4['view']['type']});_0x3941c8['_bindAnnotationToEditors'](_0x1ca8c5,_0x29b7c8),_0x124e63['add'](_0x29b7c8),_0x5b53bc['registerAnnotation'](_0x29b7c8);}['_destroyController'](_0x1c590e){const _0x2d650b=this['editor']['plugins']['get']('CommentsRepository'),_0x3e5c2e=this['editor']['plugins']['get']('Annotations'),_0x4dae33=this['_suggestionToController']['get'](_0x1c590e),_0x2145e9=_0x4dae33['view'],_0x1cbcd6=_0x3e5c2e['getByInnerView'](_0x2145e9);_0x2d650b['_unbindEditors'](_0x2145e9),_0x1cbcd6&&_0x3e5c2e['remove'](_0x1cbcd6),this['_suggestionToController']['delete'](_0x1c590e),this['_viewToController']['delete'](_0x2145e9),_0x4dae33['destroy']();}['_updateController'](_0x31d6eb){if(!_0x31d6eb['isInContent']||!this['_suggestionToController']['has'](_0x31d6eb))return;const _0x238481=this['editor']['plugins']['get']('TrackChangesEditing'),_0x495d2e=this['_suggestionToController']['get'](_0x31d6eb),_0x13b678=_0x31d6eb['getAllAdjacentSuggestions']();_0x495d2e['view']['descriptionParts']=_0x238481['descriptionFactory']['getDescriptions'](_0x13b678);}['destroy'](){for(const _0x1c4edc of this['_suggestionToController']['keys']())this['_destroyController'](_0x1c4edc);for(const _0x326400 of this['_annotationViews']['values']())_0x326400['mainView']['destroy']();super['destroy']();}constructor(_0xd0fcd2){super(_0xd0fcd2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a0d0e=this['editor']['config'];_0x4a0d0e['define']('trackChanges.SuggestionThreadView',ne),_0x4a0d0e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a0d0e['get']('trackChanges.disableComments');}}function ae(_0x2fa98b){return'model'in _0x2fa98b;}class k extends _0x17098e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x6c2f8){this['editor']['plugins']['get'](p)['adapter']=_0x6c2f8;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2f6f43){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2f6f43);}['getSuggestions']({skipNotAttached:_0x33dafa=!0x1,toJSON:_0x454641=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x33dafa,'toJSON':_0x454641});}['getSuggestion'](_0x37f215){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x37f215);}}const T=['Pagination'];class P extends _0x17098e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x41362c=this['editor'];if(_0x41362c['config']['define']('trackChangesData.editorCreator',_0xe492b9=>{const _0x4382ac=_0x41362c['model']['document']['getRootNames']()['reduce']((_0x4da54e,_0x5b21ed)=>(_0x4da54e[_0x5b21ed]='',_0x4da54e),{});return _0x41362c['constructor']['create'](_0x4382ac,_0xe492b9);}),'function'!=typeof _0x41362c['config']['get']('trackChangesData')['editorCreator'])throw new _0x2594a2('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3bd1f5){return N(this['editor'],!0x0,_0x3bd1f5);}['getDataWithDiscardedSuggestions'](_0x418a8b){return N(this['editor'],!0x1,_0x418a8b);}}class D extends _0x17098e{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(_0x41551c){super(_0x41551c),this['result']='end';}}function v(_0x4cdd20){return void 0x0!==_0x4cdd20['getRootsAttributes'];}async function N(_0x3c655e,_0x5c0e22,_0x2a44dc){const _0x4df46e=_0x307a5a(_0x3c655e,T);_0x4df46e['plugins']['push'](p,D),_0x4df46e['rootsAttributes']=v(_0x3c655e)?_0x3c655e['getRootsAttributes']():void 0x0;const _0x54dc85=document['createDocumentFragment'](),_0x418172=_0x3c655e['config']['get']('trackChangesData')['editorCreator'],_0x383809=await _0x418172(_0x4df46e,()=>function(_0x2fff71){const _0x58f99b=document['createElement']('div');return _0x2fff71['appendChild'](_0x58f99b),_0x58f99b;}(_0x54dc85));!function(_0x48b447,_0x9889b8){const _0x3bd64a=_0x48b447['model']['document']['getRootNames']()['reduce']((_0x26fa08,_0x402d2f)=>(_0x26fa08[_0x402d2f]=_0x48b447['data']['get']({'rootName':_0x402d2f}),_0x26fa08),{}),_0x2568d0=_0x48b447['plugins']['get']('Users')['users']['map'](_0x16d8d8=>({'id':_0x16d8d8['id'],'name':_0x16d8d8['name']})),_0x1463e1=_0x48b447['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1cca0b=_0x48b447['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ab513=_0x9889b8['plugins']['get']('Users'),_0x4ef587=_0x9889b8['plugins']['get']('TrackChangesEditing'),_0xdddc7d=_0x9889b8['plugins']['get']('CommentsRepository');for(const _0x3a2f26 of _0x2568d0)_0x2ab513['getUser'](_0x3a2f26['id'])||_0x2ab513['addUser'](_0x3a2f26);_0x2ab513['me']||_0x2ab513['useAnonymousUser']();for(const _0x5d7119 of _0x1463e1)_0x4ef587['addSuggestionData'](_0x5d7119);for(const _0x38e661 of _0x1cca0b)_0xdddc7d['addCommentThread'](_0x38e661);_0x9889b8['data']['set'](_0x3bd64a);}(_0x3c655e,_0x383809),_0x383809['execute'](_0x5c0e22?'acceptAllSuggestions':'discardAllSuggestions');const _0x39e380=v(_0x383809)?_0x383809['getFullData'](_0x2a44dc):_0x383809['data']['get'](_0x2a44dc);return await _0x383809['destroy'](),_0x39e380;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};